/* Top 40 JNSP — diseño del top (mismo que Figma «Top 40 JNSP · móvil»). */
.jnsp-top { font-family: 'Fira Sans', sans-serif; color: #111; margin: 0 0 32px; }
.jnsp-top * { box-sizing: border-box; }
.jnsp-top ol, .jnsp-top ul, .jnsp-top li { list-style: none; margin: 0; padding: 0; }
.jnsp-top li::before { content: none; }
.jnsp-top img { display: block; max-width: none; margin: 0; border: 0; }
.jnsp-top a, .jnsp-top a:hover { color: inherit; text-decoration: none; }
/* Nº 1 — móvil: portada y título en fila; datos y «Escuchar» debajo */
.jt-hero { position: relative; display: grid; grid-template-columns: 136px 1fr; gap: 16px; align-items: end; background: #111; color: #fff; border-radius: 12px; padding: 16px; margin: 0 0 16px; }
.jt-hero.jt-hero-nocover { grid-template-columns: 1fr; }
.jt-hero-art { width: 136px; height: 136px; }
.jt-hero-art img { width: 100%; height: 100%; border-radius: 6px; object-fit: cover; }
/* El enlace está en el título y se estira para cubrir la tarjeta o la fila entera */
.jt-hero-title a::after, .jt-title a::after { content: ''; position: absolute; inset: 0; }
.jnsp-top .jt-hero-title a, .jnsp-top .jt-hero-title a:hover { color: #fff; }
.jt-hero-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.jt-hero-pos { font-weight: 800; font-size: 64px; line-height: 56px; color: #f10547; }
.jt-hero-title { font-weight: 600; font-size: 22px; line-height: 26px; }
.jt-hero-artist { font-size: 15px; line-height: 20px; color: #d0d0d0; }
.jt-hero-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid #333; padding-top: 12px; }
.jt-hero-meta { font-size: 13px; line-height: 18px; color: #bdbdbd; }
.jt-listen { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; font-size: 14px; white-space: nowrap; }
.jt-listen-long { display: none; }
/* Filas 2–40 */
.jt-cols { display: none; }
.jt-list > .jt-row { position: relative; display: flex; align-items: center; gap: 12px; min-height: 72px; padding: 10px 0; border-bottom: 1px solid #f0f0f0; }
.jt-pos { width: 30px; flex: none; text-align: right; font-weight: 700; font-size: 20px; font-variant-numeric: tabular-nums; }
.jt-cover { width: 48px; height: 48px; flex: none; }
.jt-cover img { width: 100%; height: 100%; border-radius: 4px; object-fit: cover; }
.jt-noimg { display: flex; align-items: center; justify-content: center; border-radius: 4px; background: #fde8ee; color: #b0002f; font-weight: 700; font-size: 18px; }
.jt-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.jt-title { font-weight: 600; font-size: 16px; line-height: 20px; }
.jt-artist { font-size: 14px; line-height: 18px; color: #4a4a4a; }
.jt-meta { font-size: 12px; line-height: 16px; color: #6b6b6b; }
.jt-num { display: none; }
.jt-mov { width: 52px; flex: none; display: flex; justify-content: flex-end; align-items: center; font-size: 14px; font-weight: 700; }
.jt-up { color: #0f7a4d; }
.jt-down { color: #6b6b6b; font-weight: 500; }
.jt-same { color: #8a8a8a; font-size: 16px; font-weight: 600; }
.jt-badge { font-size: 10px; letter-spacing: 1px; font-weight: 700; padding: 4px 6px; border-radius: 3px; background: #d6033f; color: #fff; }
.jt-badge-re { background: transparent; color: #d6033f; border: 1.5px solid #d6033f; padding: 3px 5px; }
/* Candidatas */
.jt-cands { background: #fafafa; margin: 32px -16px 0; padding: 32px 16px 24px; }
.jnsp-top .jt-cands h2 { font-family: 'Fira Sans', sans-serif; font-weight: 600; font-size: 22px; line-height: 28px; margin: 0 0 6px; color: #111; }
.jnsp-top .jt-cands p { font-size: 14px; line-height: 20px; color: #4a4a4a; margin: 0 0 16px; }
.jt-cand { display: flex; flex-direction: column; gap: 2px; min-height: 56px; justify-content: center; padding: 10px 0; border-bottom: 1px solid #eee; background: #fff; }
.jt-cand strong { font-weight: 600; font-size: 16px; line-height: 20px; }
.jt-cand span { font-size: 14px; line-height: 18px; color: #4a4a4a; }
/* Botones */
.jt-actions { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 32px 0 8px; }
.jt-actions > div:first-child { width: 100%; }
.jnsp-top a.jt-vote, .jnsp-top a.jt-vote:hover { display: flex; align-items: center; justify-content: center; min-height: 52px; width: 100%; background: #d6033f; color: #fff; border-radius: 8px; font-weight: 600; font-size: 16px; }
.jnsp-top a.jt-playlist, .jnsp-top a.jt-playlist:hover { display: flex; align-items: center; justify-content: center; min-height: 44px; color: #1a7fc9; font-weight: 500; font-size: 15px; }
@media (min-width: 768px) {
  .jt-hero { grid-template-columns: 216px 1fr; grid-template-rows: 1fr auto; column-gap: 28px; row-gap: 12px; align-items: start; padding: 24px 28px 24px 24px; margin: 0 0 32px; }
  .jt-hero-art { width: 216px; height: 216px; grid-row: 1 / 3; }
  .jt-hero-body { gap: 8px; }
  .jt-hero-pos { font-size: 88px; line-height: 80px; }
  .jt-hero-title { font-size: 32px; line-height: 38px; }
  .jt-hero-artist { font-size: 18px; line-height: 24px; }
  .jt-hero-foot { grid-column: auto; flex-direction: column; align-items: flex-start; gap: 12px; border-top: 0; padding-top: 0; }
  .jt-hero-meta { font-size: 14px; line-height: 20px; }
  .jt-listen { min-height: 0; padding: 11px 16px; border: 1px solid #555; border-radius: 8px; font-size: 15px; }
  .jt-listen-long { display: inline; }
  .jt-cols { display: flex; gap: 16px; padding: 0 16px 10px; border-bottom: 2px solid #111; font-weight: 600; font-size: 11px; letter-spacing: 1px; color: #6b6b6b; text-transform: uppercase; }
  .jt-cols div:nth-child(1) { width: 36px; text-align: right; }
  .jt-cols div:nth-child(2) { flex: 1; }
  .jt-cols div:nth-child(3), .jt-cols div:nth-child(4) { width: 56px; text-align: center; }
  .jt-cols div:nth-child(5) { width: 64px; text-align: right; }
  .jt-list > .jt-row { gap: 16px; min-height: 76px; padding: 10px 16px; border-bottom-color: #eee; }
  .jt-list > .jt-row:has(a):hover { background: #f6f6f6; }
  .jt-list > .jt-row:hover .jt-title a { text-decoration: underline; }
  .jt-pos { width: 36px; font-size: 22px; }
  .jt-cover { width: 56px; height: 56px; }
  .jt-title { font-size: 17px; line-height: 22px; }
  .jt-artist { font-size: 15px; line-height: 20px; }
  .jt-meta { display: none; }
  .jt-num { display: block; width: 56px; flex: none; text-align: center; font-size: 15px; color: #4a4a4a; font-variant-numeric: tabular-nums; }
  .jt-mov { width: 64px; }
  .jt-cands { background: #fff; margin: 48px 0 0; padding: 0; }
  .jnsp-top .jt-cands h2 { font-size: 28px; line-height: 34px; }
  .jnsp-top .jt-cands p { font-size: 15px; line-height: 22px; }
  .jt-cands ul { display: grid; grid-template-columns: 1fr 1fr; grid-auto-flow: column; grid-template-rows: repeat(5, auto); column-gap: 32px; }
  .jt-actions > div:first-child { width: auto; }
  .jnsp-top a.jt-vote, .jnsp-top a.jt-vote:hover { width: auto; padding: 0 24px; }
}
/* Encuesta incrustada (WP-Polls) al final: sus botones con el estilo del top.
   «Votar» es la acción principal (relleno); «Ver resultados» y, en la vista
   de resultados, «Votar», secundarias (contorno). */
.jt-poll { margin-top: 32px; }
.jnsp-top .jt-poll .wp-polls p[style*="text-align: center"] { margin: 12px 0 0; }
.jnsp-top .jt-poll .wp-polls input.Buttons,
.jnsp-top .jt-poll .wp-polls a[href="#ViewPollResults"],
.jnsp-top .jt-poll .wp-polls a[href="#VotePoll"] {
  display: flex; align-items: center; justify-content: center; box-sizing: border-box;
  width: 100%; min-height: 52px; margin: 0; padding: 0 24px; border-radius: 8px;
  font-family: 'Fira Sans', sans-serif; font-weight: 600; font-size: 16px; line-height: 1;
  text-decoration: none; cursor: pointer; -webkit-appearance: none; appearance: none; box-shadow: none;
}
.jnsp-top .jt-poll .wp-polls input.Buttons { background: #d6033f; color: #fff; border: 0; }
.jnsp-top .jt-poll .wp-polls input.Buttons:hover { background: #b0002f; }
.jnsp-top .jt-poll .wp-polls a[href="#ViewPollResults"],
.jnsp-top .jt-poll .wp-polls a[href="#VotePoll"] { background: transparent; color: #d6033f; border: 1.5px solid #d6033f; }
.jnsp-top .jt-poll .wp-polls a[href="#ViewPollResults"]:hover,
.jnsp-top .jt-poll .wp-polls a[href="#VotePoll"]:hover { background: #fdeef2; color: #b0002f; }
.jnsp-top .jt-poll .wp-polls input.Buttons:focus-visible,
.jnsp-top .jt-poll .wp-polls a:focus-visible { outline: 2px solid #111; outline-offset: 2px; }
@media (min-width: 768px) {
  .jnsp-top .jt-poll .wp-polls input.Buttons,
  .jnsp-top .jt-poll .wp-polls a[href="#ViewPollResults"],
  .jnsp-top .jt-poll .wp-polls a[href="#VotePoll"] { display: inline-flex; width: auto; min-width: 260px; }
}
