/* ══ Radio (static/radio.js) ══ */
#radio-root { display: none; }
/* grid (no block) y min-width: 0: es un hijo flex de #main-content y, sin eso, crecia hasta
   el ancho de la fila de filtros y el telefono tenia que alejar el zoom para mostrarlo */
body.modo-radio #radio-root { display: grid; min-width: 0; width: 100%; }
/* minmax(0, 1fr): sin el, la fila de filtros (mas ancha que el telefono) estiraba la columna y todo se salia de la pantalla */
.rd { color: var(--ink); font-family: var(--G); max-width: 560px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding-bottom: 24px; }
.rd > *, .rd-player > * { min-width: 0; }
.rd button { font: inherit; color: inherit; cursor: pointer; }

.rd-head { display: grid; gap: 6px; padding: 4px 0 2px; }
.rd-eyebrow { font-family: var(--M); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-faint); }
.rd-title { font-family: var(--S); font-style: italic; font-weight: 400; font-size: 30px; line-height: 1; margin: 4px 0 0; }
.rd-sub { margin: 0; color: var(--ink-faint); font-size: 14px; }

.rd-filtros { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.rd-filtros::-webkit-scrollbar { display: none; }
.rd-filtros button { flex: none; border: 1px solid var(--rule); background: var(--paper); border-radius: 999px; padding: 7px 14px; font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.rd-filtros button.on { background: var(--purple); border-color: var(--purple); color: var(--paper); }
.rd-nota { margin: -6px 0 0; font-size: 13px; color: var(--ink-faint); min-height: 1em; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.rd-favs { border: 0; background: none; padding: 0; color: var(--purple); font-weight: 600; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.rd-estado { color: var(--ink-faint); padding: 24px 0; }
.rd-estado button { border: 1px solid var(--purple); color: var(--purple); background: none; border-radius: 999px; padding: 6px 14px; margin-left: 6px; }

/* Portada: los mismos colores en los dos temas (es la imagen del audio) */
.rd-cover { position: relative; aspect-ratio: 4 / 3; max-width: 100%; border-radius: 18px; overflow: hidden; color: #fbfaf7;
  padding: 22px; display: flex; flex-direction: column; justify-content: space-between; }
.rd-tipo { font-family: var(--M); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; opacity: .85; padding-right: 90px; }
.rd-marca { position: absolute; top: 20px; right: 22px; font-family: var(--S); font-style: italic; font-size: 17px; opacity: .9; }
.rd-cover-tit { font-family: var(--S); font-size: clamp(24px, 7.5vw, 34px); line-height: 1.1; text-wrap: balance; }
.rd-cover-meta { font-size: 13px; opacity: .8; margin-top: 6px; font-variant-numeric: tabular-nums; }
.rd-onda { position: absolute; inset: 58px 22px auto; height: 44px; display: flex; align-items: flex-end; gap: 3px; opacity: .3; }
.rd-onda i { flex: 1; background: currentColor; border-radius: 2px; }
.rd-t-equipo, .rd-t-temporada { background: oklch(0.40 0.130 295); }
.rd-t-jugador { background: oklch(0.50 0.120 60); }
.rd-t-jornada { background: oklch(0.30 0.035 285); }
.rd-t-hace { background: oklch(0.44 0.110 25); }
.rd-t-pregunta { background: oklch(0.42 0.035 250); }
.rd-t-liga { background: oklch(0.40 0.085 180); }
.rd-t-duelo { background: oklch(0.42 0.120 340); }
.rd-t-temporadas { background: oklch(0.44 0.090 130); }
.rd-t-top { background: oklch(0.38 0.100 255); }

.rd-player { display: grid; gap: 12px; }
.rd-ahora { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.rd-ahora h2 { font-family: var(--S); font-weight: 400; font-size: 21px; line-height: 1.2; margin: 0; min-width: 0; text-wrap: balance; }
.rd-ahora a { flex: none; font-size: 14px; font-weight: 600; color: var(--purple); text-decoration: none; }
.rd-barra { height: 22px; display: flex; align-items: center; cursor: pointer; touch-action: none; }
.rd-riel { height: 5px; width: 100%; border-radius: 3px; background: var(--paper-deep); overflow: hidden; }
.rd-riel i { display: block; height: 100%; width: 0; background: var(--purple); }
.rd-tiempos { display: flex; justify-content: space-between; margin-top: -8px; font-size: 12px; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.rd-controles { display: flex; justify-content: center; align-items: center; gap: 22px; }
.rd-controles button { border: 0; background: none; display: grid; place-items: center; border-radius: 50%; }
.rd-controles svg { width: 26px; height: 26px; fill: currentColor; }
.rd-sec { width: 48px; height: 48px; color: var(--ink); }
.rd-sec:hover { background: var(--paper-deep); }
.rd-play { width: 70px; height: 70px; background: var(--purple) !important; color: var(--paper) !important; }
.rd-play svg { width: 30px; height: 30px; }
.rd-acciones { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.rd-acciones button { border: 1px solid var(--rule); background: var(--paper); border-radius: 999px; padding: 7px 14px; font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.rd-acciones button.on { border-color: var(--purple); color: var(--purple); background: var(--purple-soft); }
.rd-aviso { text-align: center; font-size: 14px; color: var(--purple); min-height: 20px; }
.rd-texto { border-top: 1px solid var(--rule); padding-top: 14px; }
.rd-texto p { font-size: 17px; line-height: 1.6; color: var(--ink-faint); margin: 0 0 12px; }
.rd-texto p.activo { color: var(--ink); }

.rd-cola h3 { font-family: var(--M); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); font-weight: 400; margin: 0 0 8px; }
.rd-cola ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.rd-cola li button { width: 100%; display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; background: none; border: 0;
  border-bottom: 1px solid var(--rule); padding: 9px 0; text-align: left; }
.rd-cola li button:hover { background: var(--paper-warm); }
.rd-fin { padding: 12px 0; color: var(--ink-faint); font-size: 14px; }
.rd-mc { width: 48px; height: 48px; border-radius: 10px; display: grid; place-items: center; color: #fbfaf7; font-family: var(--S); font-style: italic; font-size: 20px; }
.rd-q { min-width: 0; }
.rd-q b { display: block; font-weight: 600; line-height: 1.25; font-size: 15px; }
.rd-q small { color: var(--ink-faint); font-size: 12.5px; }
.rd-dur { font-size: 12px; color: var(--ink-faint); font-variant-numeric: tabular-nums; }

/* Mini reproductor: sigue sonando en las otras secciones */
.rd-mini { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 0 10px calc(10px + env(safe-area-inset-bottom, 0px)); pointer-events: none; }
body.modo-radio .rd-mini { display: none; }
body.con-radio:not(.modo-radio) #main-content { padding-bottom: 92px; }
.rd-mini-caja { pointer-events: auto; max-width: 520px; margin: 0 auto; background: var(--ink); color: var(--paper); border-radius: 14px; overflow: hidden;
  box-shadow: 0 8px 28px oklch(0.2 0.02 290 / .25); cursor: pointer; }
.rd-mini-fila { display: grid; grid-template-columns: 40px 1fr 44px 44px; gap: 10px; align-items: center; padding: 8px 6px 8px 10px; }
.rd-mini .rd-mc { width: 40px; height: 40px; font-size: 16px; border-radius: 8px; }
.rd-mini .rd-q b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-mini .rd-q small { color: inherit; opacity: .7; }
.rd-mini button { border: 0; background: none; color: inherit; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; cursor: pointer; }
.rd-mini svg { width: 22px; height: 22px; fill: currentColor; }
.rd-mini-linea { height: 3px; background: oklch(1 0 0 / .15); }
.rd-mini-linea i { display: block; height: 100%; width: 0; background: var(--gold); }
@media (prefers-reduced-motion: reduce) { .rd * { transition: none !important; } }
