/* ============================================================
   Radio España — estilos
   Tema oscuro premium · glassmorphism · aurora animada
   ============================================================ */

:root {
  --bg:        #070a12;
  --bg-2:      #0b0f1a;
  --card:      rgba(255, 255, 255, 0.045);
  --card-brd:  rgba(255, 255, 255, 0.09);
  --txt:       #eef1f8;
  --txt-dim:   #9aa3b8;
  --accent:    #6d8bff;
  --accent-2:  #c46bff;
  --pink:      #ff5db1;
  --radius:    20px;
  --player-h:  92px;
  --shadow:    0 20px 50px -12px rgba(0,0,0,.65);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* El atributo hidden SIEMPRE gana (si no, las reglas con display:flex/grid
   lo anulan y se ven elementos que deberían estar ocultos). */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--txt);
  min-height: 100vh;
  overflow-x: hidden;
  padding-bottom: calc(var(--player-h) + 28px);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: #fff; }

/* ---------- Fondo aurora ---------- */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% -10%, #141b30 0%, var(--bg) 55%);
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .55;
  animation: float 18s ease-in-out infinite;
}
.blob-1 { width: 46vw; height: 46vw; left: -8vw; top: -6vw;
  background: radial-gradient(circle, #4f6bff, transparent 65%); }
.blob-2 { width: 40vw; height: 40vw; right: -6vw; top: 8vw;
  background: radial-gradient(circle, #c046ff, transparent 65%);
  animation-delay: -6s; }
.blob-3 { width: 38vw; height: 38vw; left: 25vw; top: 42vw;
  background: radial-gradient(circle, #ff4d8d, transparent 65%);
  animation-delay: -11s; }
@keyframes float {
  0%,100% { transform: translate(0,0) scale(1); }
  33%     { transform: translate(4vw,3vw) scale(1.08); }
  66%     { transform: translate(-3vw,2vw) scale(.95); }
}
.grain {
  position: absolute; inset: 0; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Cabecera ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 18px;
  padding: 16px clamp(16px, 4vw, 44px);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  background: linear-gradient(180deg, rgba(7,10,18,.85), rgba(7,10,18,.45));
  border-bottom: 1px solid var(--card-brd);
}
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-logo {
  width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 24px -6px rgba(109,139,255,.6);
}
.eq-mini { display: flex; align-items: flex-end; gap: 3px; height: 20px; }
.eq-mini i {
  width: 3px; background: #fff; border-radius: 2px;
  animation: bounce 1.1s ease-in-out infinite;
}
.eq-mini i:nth-child(1){ height: 8px;  animation-delay: 0s; }
.eq-mini i:nth-child(2){ height: 18px; animation-delay: -.3s; }
.eq-mini i:nth-child(3){ height: 12px; animation-delay: -.6s; }
.eq-mini i:nth-child(4){ height: 16px; animation-delay: -.15s; }
@keyframes bounce { 0%,100%{ transform: scaleY(.4);} 50%{ transform: scaleY(1);} }

.brand-text h1 { font-size: 1.15rem; font-weight: 800; letter-spacing: -.5px; line-height: 1; }
.brand-text h1 span { color: var(--accent); }
.brand-text p { font-size: .72rem; color: var(--txt-dim); margin-top: 3px; letter-spacing: .5px; }

.search {
  flex: 1; max-width: 560px; margin: 0 auto;
  position: relative; display: flex; align-items: center;
}
.search-icon {
  position: absolute; left: 16px; width: 20px; height: 20px;
  color: var(--txt-dim); pointer-events: none;
}
.search input {
  width: 100%;
  padding: 13px 44px 13px 46px;
  border-radius: 999px;
  border: 1px solid var(--card-brd);
  background: rgba(255,255,255,.05);
  color: var(--txt);
  font-family: inherit; font-size: .95rem;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.search input::placeholder { color: var(--txt-dim); }
.search input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255,255,255,.08);
  box-shadow: 0 0 0 4px rgba(109,139,255,.18);
}
.clear-search {
  position: absolute; right: 12px;
  width: 26px; height: 26px; border-radius: 50%;
  border: none; cursor: pointer;
  background: rgba(255,255,255,.1); color: var(--txt);
  font-size: 1.1rem; line-height: 1; display: grid; place-items: center;
}
.clear-search:hover { background: rgba(255,255,255,.2); }

.fav-toggle {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
  padding: 11px 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--card-brd);
  background: rgba(255,255,255,.05);
  color: var(--txt); font-family: inherit; font-size: .88rem; font-weight: 500;
  transition: all .2s;
}
.fav-toggle svg { width: 18px; height: 18px; }
.fav-toggle:hover { background: rgba(255,255,255,.1); }
.fav-toggle[aria-pressed="true"] {
  border-color: var(--pink);
  background: rgba(255,93,177,.15);
  color: var(--pink);
}
.fav-toggle[aria-pressed="true"] svg { fill: var(--pink); }
.fav-toggle span { display: inline; }

.share-app-btn {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
  padding: 11px 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--card-brd);
  background: rgba(255,255,255,.05);
  color: var(--txt); font-family: inherit; font-size: .88rem; font-weight: 500;
  transition: all .2s;
}
.share-app-btn svg { width: 18px; height: 18px; }
.share-app-btn:hover { background: rgba(109,139,255,.14); border-color: rgba(109,139,255,.4); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: clamp(38px, 7vw, 80px) 20px clamp(20px, 3vw, 34px);
}
.hero-kicker {
  font-size: .72rem; letter-spacing: 3px; font-weight: 600;
  color: var(--accent);
  margin-bottom: 16px;
}
.hero-title {
  font-size: clamp(2rem, 6vw, 3.7rem);
  font-weight: 800; line-height: 1.05; letter-spacing: -1.5px;
}
.hero-title span {
  background: linear-gradient(120deg, var(--accent), var(--accent-2) 50%, var(--pink));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub {
  margin: 18px auto 0; max-width: 520px;
  color: var(--txt-dim); font-size: 1.02rem; line-height: 1.5;
}

/* ---------- Chips de género ---------- */
.chips-wrap {
  display: flex; align-items: center; gap: 8px;
  padding: 6px clamp(16px, 4vw, 44px) 20px;
}
.chips-nav {
  flex-shrink: 0; cursor: pointer;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.13);
  background: rgba(255,255,255,.06);
  color: var(--txt);
  backdrop-filter: blur(12px);
  transition: transform .2s, background .2s, border-color .2s;
}
.chips-nav:hover { transform: translateY(-1px); border-color: rgba(109,139,255,.45); background: rgba(109,139,255,.16); }
.chips-nav svg {
  width: 17px; height: 17px;
  fill: none; stroke: currentColor; stroke-width: 2.4;
  stroke-linecap: round; stroke-linejoin: round;
}
.chips {
  display: flex; gap: 10px; overflow-x: auto;
  padding: 0;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0; cursor: pointer;
  padding: 9px 18px; border-radius: 999px;
  border: 1px solid var(--card-brd);
  background: rgba(255,255,255,.04);
  color: var(--txt-dim); font-family: inherit; font-size: .85rem; font-weight: 500;
  white-space: nowrap; transition: all .2s;
}
.chip:hover { color: var(--txt); border-color: rgba(255,255,255,.25); }
.chip.active {
  color: #fff; border-color: transparent;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  box-shadow: 0 6px 18px -6px rgba(109,139,255,.6);
}

/* ---------- Rejilla ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
  padding: 4px clamp(16px, 4vw, 44px) 40px;
  max-width: 1400px; margin: 0 auto;
}

.card {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--card-brd);
  background: var(--card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 16px;
  cursor: pointer;
  overflow: hidden;
  transition: transform .25s cubic-bezier(.2,.7,.3,1), border-color .25s, box-shadow .25s;
  animation: cardIn .5s both;
}
@keyframes cardIn { from{ opacity:0; transform: translateY(14px) scale(.97);} }
.card::before {
  content: ""; position: absolute; inset: 0; opacity: 0;
  background: radial-gradient(120% 80% at 50% 0%, rgba(255,255,255,.08), transparent 60%);
  transition: opacity .25s;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,255,255,.22);
  box-shadow: var(--shadow);
}
.card:hover::before { opacity: 1; }
.card.playing {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 16px 40px -14px rgba(109,139,255,.7);
}

.logo-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  display: grid; place-items: center;
  overflow: hidden;
  margin-bottom: 14px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.07);
}
.logo-tile.big { margin: 0; width: 100%; height: 100%; border-radius: 13px; }
.logo-tile img {
  position: absolute; inset: 0; z-index: 2;
  width: 100%; height: 100%; object-fit: contain; padding: 12%;
  background: #fff;
}
.logo-tile .logo-text {
  font-weight: 900; letter-spacing: -1px;
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  text-align: center; padding: 0 8px; line-height: 1;
  color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.3);
}

/* botón play que aparece al pasar el ratón */
.play-overlay {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: rgba(7,10,18,.45);
  opacity: 0; transition: opacity .2s;
}
.card:hover .play-overlay { opacity: 1; }
.play-overlay .pulse {
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.95); color: #0b0f1a;
  transform: scale(.85); transition: transform .2s;
  box-shadow: 0 8px 30px rgba(0,0,0,.4);
}
.card:hover .play-overlay .pulse { transform: scale(1); }
.play-overlay svg { width: 24px; height: 24px; margin-left: 2px; }

.card-name {
  font-weight: 600; font-size: .98rem; line-height: 1.2;
  display: flex; align-items: center; gap: 6px;
}
.card-tag { font-size: .76rem; color: var(--txt-dim); margin-top: 4px; }

.card-fav {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  width: 32px; height: 32px; border-radius: 50%;
  border: none; cursor: pointer;
  background: rgba(7,10,18,.5); backdrop-filter: blur(6px);
  color: #fff; display: grid; place-items: center;
  opacity: 0; transform: scale(.8); transition: all .2s;
}
.card:hover .card-fav, .card-fav.on { opacity: 1; transform: scale(1); }
.card-fav svg { width: 16px; height: 16px; }
.card-fav.on { background: var(--pink); }
.card-fav.on svg { fill: #fff; }

/* mini ecualizador en la tarjeta que suena */
.now-eq { display: none; align-items: flex-end; gap: 2px; height: 13px; }
body.audio-playing .card.playing .now-eq { display: inline-flex; }
.now-eq i { width: 2.5px; background: var(--accent); border-radius: 2px;
  animation: bounce .9s ease-in-out infinite; }
.now-eq i:nth-child(2){ animation-delay:-.3s; }
.now-eq i:nth-child(3){ animation-delay:-.6s; }

/* ---------- Estado vacío / carga ---------- */
.empty { text-align: center; color: var(--txt-dim); padding: 60px 20px; font-size: 1.05rem; }
.skeleton {
  border-radius: var(--radius); height: 230px;
  background: linear-gradient(100deg, rgba(255,255,255,.04) 30%, rgba(255,255,255,.09) 50%, rgba(255,255,255,.04) 70%);
  background-size: 200% 100%;
  animation: shimmer 1.3s infinite;
}
@keyframes shimmer { from{ background-position: 200% 0;} to{ background-position: -200% 0;} }

.foot { text-align: center; color: var(--txt-dim); font-size: .82rem; padding: 10px 20px 30px; }

/* ---------- Reproductor ---------- */
.player {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  padding: 0 clamp(10px, 3vw, 28px) max(12px, env(safe-area-inset-bottom));
  transform: translateY(140%);
  transition: transform .45s cubic-bezier(.2,.8,.2,1);
}
.player.show { transform: translateY(0); }
.player-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  height: var(--player-h);
  padding: 0 18px;
  border-radius: 22px;
  border: 1px solid var(--card-brd);
  background: rgba(13,17,28,.72);
  backdrop-filter: blur(26px) saturate(160%);
  -webkit-backdrop-filter: blur(26px) saturate(160%);
  box-shadow: 0 -10px 50px -16px rgba(0,0,0,.8), var(--shadow);
}

.player-station { display: flex; align-items: center; gap: 14px; min-width: 0; }
.player-logo {
  width: 56px; height: 56px; border-radius: 13px; flex-shrink: 0;
  display: grid; place-items: center; overflow: hidden;
  font-weight: 900; color: #fff; font-size: .9rem; text-align: center; line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1);
}
.player-logo img { width: 100%; height: 100%; object-fit: contain; padding: 10%; background:#fff; }
.player-meta { min-width: 0; }
.player-meta strong { display: block; font-size: 1rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .72rem; letter-spacing: 1px; color: var(--txt-dim); margin-top: 3px;
}
.err-tag { color: var(--pink); font-weight: 600; }
.player-song {
  display: flex; align-items: center; gap: 8px; margin-top: 3px; max-width: 300px;
}
.song-wrap { overflow: hidden; max-width: 232px; }
.song-text {
  display: inline-block; white-space: nowrap;
  font-size: .82rem; color: var(--accent); font-weight: 500;
}
.song-text.scroll { animation: marquee 11s linear infinite; }
@keyframes marquee {
  0%, 12%   { transform: translateX(0); }
  88%, 100% { transform: translateX(calc(-100% + 220px)); }
}
.song-mini {
  flex-shrink: 0; width: 28px; height: 28px; display: grid; place-items: center;
  border-radius: 50%; transition: transform .15s;
}
.song-mini:hover { transform: scale(1.14); }
.song-mini svg { width: 26px; height: 26px; display: block; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #2ee06a;
  box-shadow: 0 0 0 0 rgba(46,224,106,.7); animation: pulse 1.6s infinite; }
@keyframes pulse {
  0%{ box-shadow: 0 0 0 0 rgba(46,224,106,.6);} 70%{ box-shadow: 0 0 0 7px rgba(46,224,106,0);} 100%{ box-shadow:0 0 0 0 rgba(46,224,106,0);}
}

.player-controls { display: flex; align-items: center; gap: 16px; }
.play-btn {
  position: relative;
  width: 56px; height: 56px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(145deg, var(--accent), var(--accent-2));
  color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 28px -8px rgba(109,139,255,.8);
  transition: transform .15s;
}
.play-btn:hover { transform: scale(1.06); }
.play-btn:active { transform: scale(.96); }
.play-btn svg { width: 26px; height: 26px; grid-area: 1/1; }
.play-btn .ic-pause, .play-btn .spinner { display: none; }
.player.playing .play-btn .ic-play { display: none; }
.player.playing .play-btn .ic-pause { display: block; }
.player.loading .play-btn .ic-play,
.player.loading .play-btn .ic-pause { display: none; }
.player.loading .play-btn .spinner { display: block; }
.spinner {
  width: 24px; height: 24px; grid-area: 1/1; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.35); border-top-color: #fff;
  animation: spin .7s linear infinite;
}
@keyframes spin { to{ transform: rotate(360deg);} }

/* ecualizador grande */
.eq { display: none; align-items: flex-end; gap: 3px; height: 28px; }
.player.playing .eq { display: flex; }
.eq i { width: 4px; background: linear-gradient(var(--accent), var(--accent-2)); border-radius: 3px;
  animation: bounce 1s ease-in-out infinite; }
.eq i:nth-child(1){ animation-delay: -.1s; }
.eq i:nth-child(2){ animation-delay: -.5s; }
.eq i:nth-child(3){ animation-delay: -.3s; }
.eq i:nth-child(4){ animation-delay: -.7s; }
.eq i:nth-child(5){ animation-delay: -.2s; }

.player-right { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; border: none; cursor: pointer;
  background: transparent; color: var(--txt-dim); display: grid; place-items: center;
  transition: all .2s;
}
.icon-btn:hover { background: rgba(255,255,255,.08); color: var(--txt); }
.icon-btn svg { width: 20px; height: 20px; }
#playerFav.on { color: var(--pink); }
#playerFav.on svg { fill: var(--pink); }

.volume { display: flex; align-items: center; gap: 8px; }
.vol-icon { width: 20px; height: 20px; color: var(--txt-dim); flex-shrink: 0; }
input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 90px; height: 5px; border-radius: 999px; cursor: pointer;
  background: rgba(255,255,255,.18);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.5);
}
input[type="range"]::-moz-range-thumb {
  width: 14px; height: 14px; border: none; border-radius: 50%; background: #fff;
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .topbar { flex-wrap: wrap; gap: 12px; padding: 12px 14px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .fav-toggle span { display: none; }
  .fav-toggle { padding: 11px; }
  .share-app-btn span { display: none; }
  .share-app-btn { padding: 11px; }
  .search input { font-size: 16px; }   /* evita el zoom automático de iOS */
  .grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }

  /* Reproductor móvil: estación | reproducir+temporizador | cerrar
     (volumen = botones del móvil; favorito/compartir = pantalla completa) */
  .player-inner { grid-template-columns: 1fr auto auto; gap: 8px; padding: 0 10px; }
  .player-right { display: flex; order: 3; }
  .volume, #playerFav { display: none; }
  #reportBtn { display: none; }
  .player-controls { order: 2; gap: 8px; }
  .player-song { max-width: 190px; }
  .song-wrap { max-width: 142px; }
}
@media (max-width: 420px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .eq { display: none !important; }
  .play-btn { width: 50px; height: 50px; }
  .player-logo { width: 48px; height: 48px; }
}

/* Pantalla "Ahora suena": en pantallas bajas, hacerla desplazable */
@media (max-height: 760px) {
  .np-inner { justify-content: flex-start; overflow-y: auto; padding-top: 60px; }
}
@media (max-height: 620px) {
  .np-art { width: min(40vw, 180px); }
  .np-history { width: min(88vw, 360px); }
  .hist-item { padding: 8px 10px; }
  .np-controls { gap: 22px; }
}

/* ============================================================
   Funcionalidades extra: recientes, explorar más, temporizador,
   reportar, avisos (toast)
   ============================================================ */

/* ---- Escuchado recientemente ---- */
.recent {
  max-width: 1400px; margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 44px) 2px;
}
.row-title {
  font-size: .95rem; font-weight: 600; color: var(--txt-dim);
  margin: 4px 0 12px; letter-spacing: .2px;
}
/* Flechas para pasar la fila, flotando a los lados (raton/desktop, donde
   no se puede arrastrar la fila como en movil). Solo se muestran si la
   fila tiene mas contenido del que cabe (ver refreshRowNavArrows en app.js) */
.row-shell { position: relative; }
.row-side-nav {
  display: flex; align-items: center; justify-content: space-between;
  position: absolute; top: 0; bottom: 10px; left: -16px; right: -16px;
  z-index: 6; pointer-events: none;
}
.row-side-btn {
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 999px; border: 1px solid rgba(255,255,255,.16);
  background: rgba(10,14,25,.68); color: var(--txt); cursor: pointer;
  pointer-events: auto; backdrop-filter: blur(12px);
  box-shadow: 0 12px 30px -18px rgba(0,0,0,.8);
  opacity: .86;
  transition: background .2s, border-color .2s, transform .2s, opacity .2s;
}
.row-side-btn:hover {
  transform: scale(1.04); opacity: 1;
  border-color: rgba(109,139,255,.45);
  background: rgba(109,139,255,.16);
}
.row-side-btn svg {
  width: 19px; height: 19px; fill: none; stroke: currentColor;
  stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
}
/* Utilidad: oculta flechas cuando la fila no desborda (nada que pasar) */
.is-hidden { display: none !important; }
.recent-row {
  display: flex; gap: 14px; overflow-x: auto;
  padding-bottom: 10px; scrollbar-width: none;
}
.recent-row::-webkit-scrollbar { display: none; }
.recent-card { flex-shrink: 0; width: 80px; cursor: pointer; text-align: center; }
.recent-card .logo-tile {
  width: 80px; height: 80px; margin-bottom: 7px; border-radius: 18px;
  transition: transform .2s;
}
.recent-card:hover .logo-tile { transform: translateY(-3px) scale(1.04); }
.recent-card .logo-text { font-size: .9rem; }
.recent-card span {
  display: block; font-size: .72rem; color: var(--txt-dim);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.recent-card:hover span { color: var(--txt); }

/* ---- Sonando ahora (carátula + emisora + canción) ---- */
.sonando-card { flex-shrink: 0; width: 112px; cursor: pointer; text-align: center; }
.son-cover {
  width: 112px; height: 112px; border-radius: 16px; overflow: hidden;
  display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
  transition: transform .2s;
}
.sonando-card:hover .son-cover { transform: translateY(-3px) scale(1.03); }
.son-cover img { width: 100%; height: 100%; object-fit: cover; }
.son-name { display: block; font-size: .78rem; font-weight: 600; margin-top: 7px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.son-song { display: block; font-size: .72rem; color: var(--accent);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- Botón explorar más ---- */
.pop-hits-section {
  max-width: 1400px;
  margin: -2px auto 26px;
  padding: 0 clamp(16px, 4vw, 44px);
  overflow: hidden;
}
.pop-hits-section .row-title {
  margin: 0 0 12px;
}
.pop-hits-row {
  padding: 2px 0 10px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.pop-hits-row::-webkit-scrollbar {
  display: none;
}
.pop-hits-row .sonando-card {
  width: 118px;
}
.pop-hits-row .son-cover {
  width: 118px;
  height: 118px;
  border-radius: 18px;
}

.sports-now-section { margin-top: 18px; }
.sports-guide-section {
  max-width: 1400px;
  margin: -2px auto 26px;
  padding: 0 clamp(16px, 4vw, 44px);
}
.sports-guide-section .row-title {
  margin: 0 0 12px;
}
.sports-section-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
.sports-section-head .row-title { flex: 1; min-width: 0; }
.sports-cal-btn {
  flex-shrink: 0; margin-bottom: 12px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 999px;
  padding: 7px 14px;
  cursor: pointer;
  background: rgba(255,255,255,.055);
  color: var(--txt-dim);
  font: inherit;
  font-size: .8rem;
  font-weight: 700;
  transition: background .2s, border-color .2s, color .2s;
}
.sports-cal-btn:hover {
  color: #fff;
  border-color: rgba(109,139,255,.45);
  background: rgba(109,139,255,.18);
}
.sports-now-row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 0 10px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}
.sports-now-row::-webkit-scrollbar {
  display: none;
}
.sports-now-row.single .sports-card { flex-basis: min(92vw, 450px); }
.sports-card {
  flex: 0 0 min(84vw, 360px);
  scroll-snap-align: start;
  min-height: 138px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 9px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  background:
    linear-gradient(140deg, rgba(109,139,255,.16), rgba(196,107,255,.1)),
    rgba(9,13,24,.48);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03);
  backdrop-filter: blur(14px);
}
.sports-card.is-live {
  border-color: rgba(109,139,255,.48);
  box-shadow: inset 0 0 0 1px rgba(109,139,255,.12), 0 16px 42px -28px rgba(109,139,255,.8);
}
.sports-card strong {
  color: var(--txt);
  font-size: 1.02rem;
  line-height: 1.15;
}
.sports-match {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}
.sports-team {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--txt);
  font-size: .92rem;
  font-weight: 800;
  line-height: 1.15;
}
.sports-team-away {
  justify-content: flex-end;
  text-align: right;
}
.sports-team span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sports-team-flag {
  width: 34px;
  height: 24px;
  flex: 0 0 34px;
  border-radius: 5px;
  object-fit: cover;
  background: transparent;
  box-shadow: 0 0 0 1px rgba(255,255,255,.18), 0 8px 18px -14px rgba(0,0,0,.9);
}
.sports-score {
  min-width: 58px;
  padding: 6px 11px;
  border-radius: 12px;
  background: rgba(255,255,255,.075);
  color: #fff;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.075);
}
.sports-score span {
  color: var(--txt-dim);
  font-size: .78rem;
  letter-spacing: .8px;
}
.sports-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--accent);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.sports-kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 5px rgba(109,139,255,.12);
}
.sports-card.is-live .sports-kicker::before {
  background: #31e981;
  box-shadow: 0 0 0 5px rgba(49,233,129,.13), 0 0 18px rgba(49,233,129,.55);
}
.sports-meta {
  color: var(--txt-dim);
  font-size: .82rem;
  line-height: 1.35;
}
.sports-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 2px;
}
/* El boton de "ver" va a la derecha de los chips de radio cuando cabe
   (por eso la fila puede envolver: con 2-3 botones de "ver" a la vez no
   entran junto a 4 chips en una tarjeta de 360px). Los chips tienen un
   ancho base propio para que sigan haciendo su wrap normal (2 por linea)
   en vez de comprimirse a uno por linea cuando el grupo de botones ocupa
   mas sitio. */
.sports-chips-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.sports-chips-row .sports-chips { flex: 1 1 150px; }
.sports-chips-row .sports-watch-row { flex: 0 1 auto; padding-top: 2px; }
.sports-station-chip {
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  padding: 7px 10px;
  cursor: pointer;
  background: rgba(255,255,255,.07);
  color: var(--txt);
  font-family: inherit;
  font-size: .74rem;
  font-weight: 700;
}
.sports-station-chip:hover {
  background: rgba(109,139,255,.18);
  border-color: rgba(109,139,255,.45);
}
.sports-watch-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 3px;
}
.sports-watch-chip {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  color: #fff;
  font-family: inherit;
  font-size: .76rem;
  font-weight: 850;
  line-height: 1;
  box-shadow: 0 10px 28px -20px rgba(0,0,0,.9);
  transition: transform .18s, border-color .18s, filter .18s;
}
.sports-watch-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.34);
  filter: brightness(1.08);
}
.sports-watch-chip.tv {
  background: linear-gradient(135deg, #2563eb, #13b981);
}
.sports-watch-chip.dazn {
  background: linear-gradient(135deg, #070b12, #1f2937);
  border-color: rgba(221,255,79,.45);
  color: #efff7a;
}
.sports-watch-chip.rtve {
  background: linear-gradient(135deg, #00345e, #00a3e0);
}
.sports-f1 {
  background:
    linear-gradient(140deg, rgba(255,159,67,.15), rgba(109,139,255,.1)),
    rgba(9,13,24,.48);
}
.sports-f1 .sports-kicker,
.sports-f1 .sports-meta { color: #ffb366; }
.sports-motogp {
  background:
    linear-gradient(140deg, rgba(255,72,72,.14), rgba(109,139,255,.1)),
    rgba(9,13,24,.48);
}
.sports-motogp .sports-kicker,
.sports-motogp .sports-meta,
.np-talk-motogp span { color: #ff7a7a; }
/* Icono de coche/moto junto al nombre del GP: mismo golpe de vista rapido
   que dan las banderitas en las tarjetas de futbol, sin tocar nada mas */
.sports-race-icon {
  display: inline-block;
  margin-right: 6px;
  font-size: 1.05em;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.35));
}

@media (max-width: 520px) {
  .sports-match {
    gap: 8px;
  }
  .sports-team {
    flex-direction: column;
    gap: 5px;
    align-items: flex-start;
    font-size: .78rem;
  }
  .sports-team-away {
    align-items: flex-end;
  }
  .sports-team-flag {
    width: 30px;
    height: 21px;
    flex-basis: 30px;
    border-radius: 4px;
  }
  .sports-score {
    min-width: 52px;
    padding: 6px 8px;
    font-size: .96rem;
  }
}

/* ---- Actualidad ahora (solo categoria Noticias) ---- */
.news-now-section {
  max-width: 1400px;
  margin: -2px auto 28px;
  padding: 0 clamp(16px, 4vw, 44px);
  overflow: hidden;
}
.news-now-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 12px;
}
.news-now-head .row-title {
  margin: 0;
}
.news-now-controls {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.news-now-nav {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.13);
  background: rgba(255,255,255,.06);
  color: var(--txt);
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: background .2s, border-color .2s, transform .2s;
}
.news-now-nav:hover {
  transform: translateY(-1px);
  border-color: rgba(109,139,255,.45);
  background: rgba(109,139,255,.16);
}
.news-now-nav svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.news-now-shell {
  position: relative;
  overflow: hidden;
  margin: 0 calc(clamp(16px, 4vw, 44px) * -1);
  padding: 0 clamp(16px, 4vw, 44px);
}
.news-now-row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 0 10px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -ms-overflow-style: none;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}
.news-now-row::-webkit-scrollbar {
  display: none;
}
.news-now-card {
  flex: 0 0 clamp(282px, 30vw, 370px);
  scroll-snap-align: start;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 15px 16px;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  background:
    linear-gradient(140deg, rgba(58,160,255,.12), rgba(255,255,255,.035)),
    rgba(9,13,24,.44);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.025);
  backdrop-filter: blur(14px);
}
.news-now-card:hover {
  border-color: rgba(109,139,255,.42);
  transform: translateY(-2px);
}
.news-now-station {
  color: var(--accent);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.news-now-card strong {
  color: var(--txt);
  font-size: 1rem;
  line-height: 1.18;
}
.news-now-meta,
.news-now-next {
  color: var(--txt-dim);
  font-size: .78rem;
  line-height: 1.35;
}
.news-now-progress {
  height: 5px;
  margin-top: auto;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
}
.news-now-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3aa0ff, var(--accent));
}

@media (max-width: 720px) {
  .news-now-section {
    margin-bottom: 24px;
  }
  .news-now-controls {
    display: none;
  }
  .news-now-card {
    flex-basis: min(84vw, 330px);
  }
}

.loadmore-wrap { text-align: center; padding: 6px 20px 54px; }
.loadmore {
  padding: 14px 28px; border-radius: 999px; cursor: pointer;
  font-family: inherit; font-weight: 600; font-size: .92rem; color: var(--txt);
  border: 1px solid var(--card-brd); background: rgba(255,255,255,.05);
  transition: all .2s;
}
.loadmore:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.28); transform: translateY(-2px); }
.loadmore:disabled { opacity: .55; cursor: default; transform: none; }

/* ---- Botón "¿No funciona?" ---- */
.report-btn {
  display: inline-block; margin-top: 5px; padding: 0;
  background: none; border: none; cursor: pointer;
  color: var(--txt-dim); font-family: inherit; font-size: .7rem;
  text-decoration: underline; text-underline-offset: 2px;
}
.report-btn:hover { color: var(--pink); }

/* ---- Temporizador ---- */
.sleep { position: relative; display: flex; }
.sleep-btn { width: auto !important; padding: 0 10px; gap: 5px; }
.sleep-label { font-size: .72rem; font-weight: 700; letter-spacing: .3px; }
#sleepBtn.on { color: var(--accent); background: rgba(109,139,255,.12); }
.sleep-menu {
  position: absolute; bottom: 52px; right: 0;
  display: flex; flex-direction: column; gap: 3px; padding: 8px;
  border-radius: 16px; background: rgba(18,23,38,.98);
  border: 1px solid var(--card-brd);
  backdrop-filter: blur(16px); box-shadow: var(--shadow); z-index: 70;
  min-width: 190px;
}
.sleep-menu button {
  padding: 11px 16px; border: none; border-radius: 10px;
  background: transparent; color: var(--txt);
  font-family: inherit; font-size: .88rem; cursor: pointer;
  text-align: left; white-space: nowrap; transition: background .15s;
}
.sleep-menu button:hover { background: rgba(255,255,255,.1); }
.sleep-menu button.off { color: var(--txt-dim); margin-top: 2px; border-top: 1px solid var(--card-brd); border-radius: 0 0 10px 10px; }

/* ---- Aviso flotante (toast) ---- */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--player-h) + 42px);
  transform: translateX(-50%) translateY(18px);
  background: rgba(18,23,38,.96); border: 1px solid var(--card-brd);
  color: var(--txt); padding: 12px 22px; border-radius: 999px;
  font-size: .88rem; font-weight: 500;
  backdrop-filter: blur(14px); box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; z-index: 300;
  transition: opacity .3s, transform .3s;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 720px) {
  /* en móvil mantenemos visible el temporizador dentro de los controles */
  .player-controls { gap: 10px; }
  .sleep-btn { padding: 0 6px; }
}

/* ============================================================
   Práctica: categorías, cabecera de sección, comunidad, instalar
   ============================================================ */
.chips-wrap { padding-top: clamp(22px, 3vw, 34px); }

/* Botón instalar app */
.install-btn {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
  padding: 11px 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #fff; font-family: inherit; font-size: .88rem; font-weight: 600;
  box-shadow: 0 8px 22px -8px rgba(109,139,255,.7);
  transition: transform .2s, box-shadow .2s;
}
.install-btn:hover { transform: translateY(-2px); }
.install-btn svg { width: 18px; height: 18px; }

/* Cabecera de sección */
.section-head {
  max-width: 1400px; margin: 0 auto;
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  padding: 8px clamp(16px, 4vw, 44px) 18px;
}
#sectionTitle {
  font-size: clamp(1.3rem, 3vw, 1.9rem); font-weight: 800; letter-spacing: -.6px;
}
.section-count { font-size: .9rem; color: var(--txt-dim); font-weight: 500; }
.section-hint {
  max-width: 1400px;
  margin: -8px auto 18px;
  padding: 0 clamp(16px, 4vw, 44px);
  color: var(--txt-dim);
  font-size: .92rem;
  line-height: 1.42;
}

/* Barra de comunidad */
.region-bar {
  max-width: 1400px; margin: 0 auto;
  display: flex; align-items: center; gap: 12px;
  padding: 2px clamp(16px, 4vw, 44px) 4px;
  font-size: .92rem; color: var(--txt-dim);
}
.region-bar select {
  flex: 1; max-width: 320px;
  padding: 11px 16px; border-radius: 12px; cursor: pointer;
  background: rgba(255,255,255,.05); color: var(--txt);
  border: 1px solid var(--card-brd);
  font-family: inherit; font-size: .92rem;
}
.region-bar select:focus { outline: none; border-color: var(--accent); }
.region-bar option { background: #11192b; color: var(--txt); }

/* Filtro por subgénero (Latinas) */
.latin-filter-bar {
  max-width: 1400px; margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 9px;
  padding: 2px clamp(16px, 4vw, 44px) 14px;
}
.latin-filter-chip {
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  background: rgba(255,255,255,.055);
  color: var(--txt-dim);
  font: inherit;
  font-size: .84rem;
  font-weight: 700;
}
.latin-filter-chip:hover,
.latin-filter-chip.active {
  color: #fff;
  border-color: rgba(109,139,255,.45);
  background: rgba(109,139,255,.18);
}

/* chip de categoría especial (icono) */
.chip.special { border-color: rgba(255,255,255,.18); }

@media (max-width: 720px) {
  .install-btn span { display: none; }
  .install-btn { padding: 11px; }
}

/* ============================================================
   Carruseles (portada), badge de tendencia y "Ahora suena"
   ============================================================ */
.home { max-width: 1400px; margin: 0 auto; padding: 4px clamp(16px,4vw,44px) 30px; }
.moment-finder {
  padding: 4px 0 28px;
}
.moment-finder-copy {
  max-width: 760px;
  margin-bottom: 18px;
}
.moment-finder-copy span {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.moment-finder-copy h2 {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: -.8px;
}
.moment-finder-copy p {
  max-width: 560px;
  margin-top: 10px;
  color: var(--txt-dim);
  font-size: .98rem;
  line-height: 1.45;
}
.moment-searchbox {
  position: relative;
  max-width: 760px;
  margin-bottom: 14px;
}
.moment-searchbox svg {
  position: absolute;
  left: 18px;
  top: 50%;
  width: 22px;
  height: 22px;
  transform: translateY(-50%);
  fill: none;
  stroke: var(--txt-dim);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.moment-searchbox input {
  width: 100%;
  min-height: 58px;
  padding: 16px 18px 16px 52px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.13);
  background: rgba(255,255,255,.055);
  color: var(--txt);
  font: inherit;
  font-size: 1rem;
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.025);
}
.moment-searchbox input:focus {
  border-color: rgba(109,139,255,.55);
  box-shadow: 0 0 0 4px rgba(109,139,255,.16);
}
.moment-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 22px;
}
.moment-chip {
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 999px;
  padding: 9px 13px;
  cursor: pointer;
  background: rgba(255,255,255,.055);
  color: var(--txt-dim);
  font: inherit;
  font-size: .84rem;
  font-weight: 700;
}
.moment-chip:hover,
.moment-chip.active {
  color: #fff;
  border-color: rgba(109,139,255,.45);
  background: rgba(109,139,255,.18);
}
.moment-empty {
  max-width: 620px;
  padding: 18px 0 8px;
}
.moment-empty strong,
.moment-empty span {
  display: block;
}
.moment-empty strong {
  color: var(--txt);
  font-size: 1.08rem;
}
.moment-empty span {
  margin-top: 6px;
  color: var(--txt-dim);
  line-height: 1.45;
}
.moment-result {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: clamp(18px, 3vw, 30px);
  align-items: start;
}
.moment-result-copy span {
  color: var(--accent);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.moment-result-copy h3 {
  margin-top: 7px;
  font-size: clamp(1.25rem, 2.3vw, 1.8rem);
  line-height: 1.1;
}
.moment-result-copy p {
  margin-top: 9px;
  color: var(--txt-dim);
  line-height: 1.42;
}
.moment-result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
}

@media (max-width: 720px) {
  .moment-finder {
    overflow: hidden;
    padding-bottom: 140px;
  }
  .moment-searchbox {
    max-width: 100%;
  }
  .moment-suggestions {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .moment-suggestions::-webkit-scrollbar {
    display: none;
  }
  .moment-chip {
    flex: 0 0 auto;
  }
  .moment-result {
    grid-template-columns: 1fr;
    gap: 16px;
    min-width: 0;
  }
  .moment-result-grid {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 2px 14px;
    margin-inline: -2px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .moment-result-grid::-webkit-scrollbar {
    display: none;
  }
  .moment-result-grid .card {
    flex: 0 0 154px;
    width: 154px;
    padding: 12px;
    border-radius: 18px;
    scroll-snap-align: start;
  }
  .moment-result-grid .logo-tile {
    margin-bottom: 10px;
    border-radius: 13px;
  }
  .moment-result-grid .card-name {
    font-size: .9rem;
  }
  .moment-result-grid .card-tag {
    font-size: .7rem;
  }
}

.home-row { position: relative; margin-bottom: 30px; }
.home-section-links {
  margin: 0 0 26px;
}
.home-section-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.home-section-chip {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  padding: 10px 12px;
  background: rgba(255,255,255,.045);
  color: var(--txt);
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: transform .18s, border-color .18s, background .18s;
}
.home-section-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(109,139,255,.4);
  background: rgba(109,139,255,.13);
}
.home-section-chip span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  flex-shrink: 0;
}
.home-section-chip strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .86rem;
}
.home-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 4px 0 14px;
}
.home-row .row-title {
  font-size: 1.2rem; font-weight: 800; color: var(--txt);
  margin: 0; letter-spacing: -.3px;
}
.home-row-link {
  position: relative; z-index: 7;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255,255,255,.055);
  color: var(--txt-dim);
  cursor: pointer;
  font: inherit;
  font-size: .78rem;
  font-weight: 800;
  white-space: nowrap;
}
.home-row-link:hover {
  color: #fff;
  border-color: rgba(109,139,255,.45);
  background: rgba(109,139,255,.18);
}
.home-row-controls {
  display: flex;
  justify-content: space-between;
  position: absolute;
  left: -18px;
  right: -18px;
  top: 54%;
  z-index: 6;
  pointer-events: none;
}
.home-row-nav {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(10,14,25,.68);
  color: var(--txt);
  cursor: pointer;
  pointer-events: auto;
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 30px -18px rgba(0,0,0,.8);
  opacity: .86;
  transition: background .2s, border-color .2s, transform .2s, opacity .2s;
}
.home-row-nav:hover {
  transform: scale(1.04);
  opacity: 1;
  border-color: rgba(109,139,255,.45);
  background: rgba(109,139,255,.16);
}
.home-row-nav svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.row-scroll {
  display: flex; gap: clamp(14px,1.6vw,20px);
  overflow-x: auto; padding: 2px 2px 12px; scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.row-scroll::-webkit-scrollbar { display: none; }
.row-scroll .card { width: 190px; flex-shrink: 0; scroll-snap-align: start; }
.home-essential-row .row-scroll .card {
  width: 144px;
  padding: 14px;
}
.home-essential-row .logo-tile {
  margin-bottom: 10px;
  border-radius: 12px;
}
.home-essential-row .card-name { font-size: .9rem; }
.home-essential-row .card-tag { font-size: .7rem; }
.home-tv-row .row-scroll .card { width: 166px; }
.home-tv-row .tv-logo-tile { margin-bottom: 10px; }
.home-tv-row .tv-card-now { padding: 7px 8px; }
.home-tv-row .card-name { font-size: .94rem; }
.home-tv-row .card-tag { font-size: .72rem; }
.home-podcast-row .row-scroll .card { width: min(82vw, 330px); }
.home-podcast-card {
  min-height: 178px;
  padding: 16px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.035)),
    rgba(9,13,24,.58);
}
.home-podcast-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  min-width: 0;
}
.home-type-badge {
  display: inline-flex;
  align-self: flex-start;
  border-radius: 999px; padding: 3px 8px;
  background: rgba(109,139,255,.18);
  color: #dfe5ff;
  font-size: .62rem; font-weight: 900; letter-spacing: .4px;
  text-transform: uppercase;
}
.home-podcast-art {
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  border-radius: 14px;
  display: grid; place-items: center; overflow: hidden;
  padding: 8px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.home-podcast-art span {
  color: #fff; font-size: .74rem; font-weight: 900;
  text-shadow: 0 2px 10px rgba(0,0,0,.35);
}
.home-podcast-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.home-podcast-meta strong {
  color: var(--txt);
  font-size: .92rem;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-podcast-meta small {
  color: var(--txt-dim);
  font-size: .72rem;
}
.home-podcast-card .card-name {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 1.02rem;
  font-weight: 850;
}
.home-podcast-topic {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  margin-top: 12px;
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(255,255,255,.07);
  color: var(--txt-dim);
  font-size: .7rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (min-width: 1100px) {
  .home-podcast-row .home-row-controls {
    display: none;
  }
  .home-podcast-row .row-scroll {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    overflow: visible;
    padding: 2px 2px 10px;
    scroll-snap-type: none;
  }
  .home-podcast-row .row-scroll .card {
    width: auto;
    min-height: 158px;
  }
  .home-podcast-row .home-podcast-head {
    margin-bottom: 12px;
  }
  .home-podcast-row .home-podcast-art {
    flex-basis: 52px;
    width: 52px;
    height: 52px;
  }
}

/* Badge de tendencia */
.hot {
  position: absolute; top: 12px; left: 12px; z-index: 3;
  background: rgba(7,10,18,.55); backdrop-filter: blur(6px);
  border-radius: 999px; padding: 3px 9px; font-size: .7rem; font-weight: 700;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}

.player-station { cursor: pointer; }
.player-station .report-btn { cursor: pointer; }

/* ---- Vista "Ahora suena" a pantalla completa ---- */
.np {
  position: fixed; inset: 0; z-index: 100;
  transform: translateY(100%);
  transition: transform .42s cubic-bezier(.2,.85,.25,1);
  overflow: hidden;
}
.np.show { transform: translateY(0); }
body.np-open { overflow: hidden; }
.np-bg {
  position: absolute; inset: -25%;
  background-size: cover; background-position: center;
  filter: blur(70px) saturate(1.5) brightness(.55);
  transform: scale(1.25);
}
.np-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,10,18,.45), rgba(7,10,18,.94));
}
.np-inner {
  position: relative; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(10px, 1.55vh, 18px);
  padding: calc(56px + env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom));
  text-align: center;
}
.np-close {
  position: absolute;
  top: max(18px, env(safe-area-inset-top));
  left: max(18px, env(safe-area-inset-left));
  width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center;
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 34px rgba(0,0,0,.22);
  z-index: 4;
}
.np-close:hover { background: rgba(255,255,255,.2); }
.np-close svg { width: 26px; height: 26px; }
.np-art {
  width: clamp(210px, min(68vw, 32vh), 320px); aspect-ratio: 1; border-radius: 28px; overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.85);
  cursor: pointer;
}
.np-art .logo-tile { width: 100%; height: 100%; border-radius: 28px; margin: 0; }
.np-art.station-logo-mode {
  width: clamp(132px, min(34vw, 22vh), 210px);
  border-radius: 30px;
  background: rgba(255,255,255,.96);
}
.np-art.station-logo-mode .logo-tile {
  border-radius: 30px;
  background: #fff !important;
}
.np-art.station-logo-mode .logo-tile img {
  inset: 50% auto auto 50%;
  width: 78%;
  height: 78%;
  object-fit: contain;
  padding: 0;
  transform: translate(-50%, -50%);
}
.np-art .logo-text { font-size: 2rem; }
.np.sports-info-mode .np-inner { gap: clamp(12px, 1.8vh, 18px); }
.np.sports-info-mode .np-art { display: none; }
.np.sports-info-mode .np-info h2 { font-size: clamp(2rem, 5.4vw, 3rem); }
.np.sports-info-mode .np-song { margin-top: 10px; }
.np-info h2 { font-size: clamp(1.6rem, 5vw, 2.5rem); font-weight: 800; letter-spacing: -.5px; }
.np-tag {
  color: var(--txt-dim); font-size: .82rem; letter-spacing: 1px; margin-top: 10px;
  display: inline-flex; gap: 6px; align-items: center; justify-content: center;
}
.np-song { color: var(--accent); font-size: 1.02rem; margin-top: 8px; min-height: 1.3em; font-weight: 500; }
.np-meta { color: var(--txt-dim); font-size: .8rem; margin-top: 4px; letter-spacing: .3px; }
.np-up { color: var(--txt-dim); font-size: .72rem; letter-spacing: 1px; margin-top: 4px; opacity: .75; }
.np-talk-info {
  width: min(90vw, 390px);
  margin: 10px auto 0;
  padding: 12px 14px;
  text-align: left;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  background: rgba(7,10,18,.26);
  backdrop-filter: blur(14px);
}
.np.sports-info-mode .np-talk-info {
  width: min(92vw, 560px);
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(7,10,18,.32);
}
.np-talk-kicker {
  color: var(--txt-dim);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.np-talk-title { margin-top: 4px; font-size: .95rem; font-weight: 800; color: var(--txt); }
.np.sports-info-mode .np-talk-title { font-size: 1.15rem; }
.np-talk-sub,
.np-talk-next {
  margin-top: 4px;
  color: var(--txt-dim);
  font-size: .76rem;
  line-height: 1.4;
}
.np.sports-info-mode .np-talk-sub,
.np.sports-info-mode .np-talk-next { font-size: .84rem; }
.np-talk-progress {
  height: 5px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
}
.np-talk-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.np-talk-football {
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid rgba(255,255,255,.09);
  display: grid;
  gap: 3px;
}
.np-talk-football strong { color: #fff; font-size: .78rem; }
.np-talk-football span { color: var(--accent); font-size: .79rem; font-weight: 700; }
.np-talk-football em { color: var(--txt-dim); font-size: .72rem; font-style: normal; }
.np.sports-info-mode .np-talk-football {
  margin-top: 14px;
  padding-top: 12px;
  gap: 5px;
}
.np.sports-info-mode .np-talk-football strong { font-size: .9rem; }
.np.sports-info-mode .np-talk-football span { font-size: .95rem; }
.np.sports-info-mode .np-talk-football em { font-size: .8rem; }
.np-talk-f1 span { color: #ff9f43; }

/* Modo Aura: halo de color (sacado de la propia caratula) respirando
   alrededor, mas un rastro de chispas ARRIBA de la caratula -- nunca
   invade la zona de los controles de abajo, al reves que el visualizador
   de barras que tenia antes. */
.np-art.live-mode {
  width: clamp(196px, min(62vw, 30vh), 300px);
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  box-shadow: 0 22px 70px -26px var(--aura-color, var(--accent)), 0 24px 76px -34px rgba(0,0,0,.9);
  background: rgba(255,255,255,.05);
}
.np-aura {
  position: absolute; inset: 0; border-radius: inherit;
  background:
    radial-gradient(circle at 50% 30%, var(--aura-color, var(--accent)) 0%, transparent 58%),
    linear-gradient(145deg, rgba(255,255,255,.18), rgba(255,255,255,0) 42%);
  opacity: .48;
  animation: auraPulse 3.8s ease-in-out infinite; animation-play-state: paused;
  pointer-events: none;
}
.np.playing .np-art.live-mode .np-aura { animation-play-state: running; }
@keyframes auraPulse {
  0%, 100% { transform: scale(.98); opacity: .34; }
  50% { transform: scale(1.04); opacity: .64; }
}
.np-art.live-mode > img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  transform: scale(.86);
  box-shadow: 0 16px 42px -20px rgba(0,0,0,.82), 0 0 0 1px rgba(255,255,255,.14);
}
.np-sparkles {
  position: absolute; left: 16%; right: 16%; bottom: 12%; height: 20%;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 7px;
  pointer-events: none;
}
.np-sparkles i {
  position: static; width: 5px; height: 18px; border-radius: 999px;
  background: linear-gradient(180deg, #fff, var(--aura-color, var(--accent)));
  box-shadow: 0 0 10px var(--aura-color, var(--accent));
  opacity: .45;
  transform-origin: bottom;
  animation: liveBars 1.25s ease-in-out infinite; animation-play-state: paused;
}
.np.playing .np-art.live-mode .np-sparkles i { animation-play-state: running; }
.np-sparkles i:nth-child(2n) { animation-duration: 1.55s; }
.np-sparkles i:nth-child(3n) { animation-duration: 1.05s; }
@keyframes liveBars {
  0%, 100% { transform: scaleY(.32); opacity: .34; }
  45% { transform: scaleY(1); opacity: .82; }
}
.np-controls { display: flex; align-items: center; gap: 30px; margin-top: 6px; }
.np-ctl { width: 56px; height: 56px; border: none; background: transparent; color: #fff; cursor: pointer; opacity: .85; }
.np-ctl:hover { opacity: 1; }
.np-ctl svg { width: 34px; height: 34px; }
.np-play {
  position: relative; width: 80px; height: 80px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(145deg, var(--accent), var(--accent-2)); color: #fff;
  display: grid; place-items: center; box-shadow: 0 14px 40px -10px rgba(109,139,255,.85);
  transition: transform .15s;
}
.np-play:hover { transform: scale(1.05); }
.np-play svg { width: 38px; height: 38px; grid-area: 1/1; }
.np-play .ic-pause, .np-play .spinner { display: none; }
.np.playing .np-play .ic-play { display: none; }
.np.playing .np-play .ic-pause { display: block; }
.np.loading .np-play .ic-play, .np.loading .np-play .ic-pause { display: none; }
.np.loading .np-play .spinner { display: block; }
.np-actions { display: flex; gap: 10px; }
.np-action {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: none; border: none; cursor: pointer; color: var(--txt-dim);
  font-family: inherit; font-size: .74rem; font-weight: 500; padding: 0;
  transition: color .2s;
}
.np-action svg {
  width: 22px; height: 22px; padding: 13px; box-sizing: content-box;
  border-radius: 50%; background: rgba(255,255,255,.08);
  transition: background .2s, transform .15s;
}
.np-action:hover { color: var(--txt); }
.np-action:hover svg { background: rgba(255,255,255,.16); transform: translateY(-2px); }
.np-action.on { color: var(--pink); }
.np-action.on svg { background: rgba(255,93,177,.18); fill: var(--pink); }
.np-volume { display: flex; align-items: center; gap: 12px; width: min(80vw, 300px); }
.np-volume .vol-icon { width: 20px; height: 20px; color: var(--txt-dim); flex-shrink: 0; }
.np-volume input { flex: 1; }

/* Icono de sonido = mute */
.vol-icon { cursor: pointer; transition: opacity .15s; }
.vol-icon.muted { opacity: .4; }
.vol-icon.muted .volWave { display: none; }

/* Temporizador en pantalla completa (menú emergente hacia arriba) */
.np-sleep { position: relative; }
.np-sleep .sleep-menu { bottom: 100%; left: 50%; right: auto; transform: translateX(-50%); margin-bottom: 10px; }
#npSleep.on { color: var(--accent); }
#npSleep.on svg { background: rgba(109,139,255,.18); }
#npAdSkip.on { color: var(--accent); }
#npAdSkip.on svg { background: rgba(109,139,255,.18); }

/* "Sonando ahora": las cards nuevas aparecen con transición suave */
.sonando-card { animation: artIn .45s both; }
.sonando-card.is-updated .son-cover { animation: sonandoPulse .55s both; }

@keyframes sonandoPulse {
  0% { box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 0 0 0 rgba(109,139,255,.36); }
  100% { box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 0 0 12px rgba(109,139,255,0); }
}

@media (max-width: 720px) {
  .home-row-controls { display: none; }
  .row-side-nav { display: none; }
  .chips-nav { display: none; }
  .chips-wrap { padding-left: 0; padding-right: 0; gap: 0; }
  .chips-wrap .chips { padding: 0 clamp(16px, 4vw, 44px); }
}

@media (max-width: 480px) {
  .home-section-links { margin-bottom: 22px; }
  .home-section-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
  }
  .home-section-chip {
    min-height: 50px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 9px 8px;
    border-radius: 14px;
    text-align: center;
  }
  .home-section-chip span {
    width: 28px;
    height: 28px;
    border-radius: 9px;
  }
  .home-section-chip strong {
    width: 100%;
    font-size: .78rem;
  }
  .row-scroll .card { width: 150px; }
  .home-essential-row .row-scroll .card { width: 132px; }
  .home-podcast-row .row-scroll .card { width: min(86vw, 320px); }
  .home-tv-row .row-scroll .card { width: 154px; }
}

/* ---- Botones de canción (YouTube / Spotify) en pantalla completa ---- */
.np-song-actions { display: flex; gap: 12px; justify-content: center; margin-top: 6px; }
.song-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px; border-radius: 999px; cursor: pointer;
  font-family: inherit; font-size: .85rem; font-weight: 600; color: #fff;
  text-decoration: none; transition: transform .15s, filter .2s;
}
.song-btn svg { width: 20px; height: 20px; }
.song-btn:hover { transform: translateY(-2px); filter: brightness(1.1); }
.song-btn.yt { background: #ff0000; }
.song-btn.sp { background: #1db954; }
.song-btn.sp svg { color: #1db954; }

/* ---- "Antes sonó": solo la cancion anterior, una fila, sin scroll ---- */
.np-history {
  width: min(90vw, 380px); margin-top: 2px; text-align: left;
}
.hist-label {
  display: block; font-size: .74rem; color: var(--txt-dim); font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px; margin: 0 6px 8px;
}
.hist-item {
  display: flex; align-items: center; gap: 12px;
  padding: 8px; border-radius: 12px; text-decoration: none; color: var(--txt);
  transition: background .15s;
}
.hist-item:hover { background: rgba(255,255,255,.08); }
.hist-item img { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.hist-ph {
  width: 46px; height: 46px; border-radius: 10px; flex-shrink: 0;
  display: grid; place-items: center; background: rgba(255,255,255,.08); color: var(--accent);
}
.hist-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hist-text strong {
  font-size: .88rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hist-text em {
  font-size: .76rem; font-style: normal; color: var(--txt-dim);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hist-item::after {
  content: "▶"; margin-left: auto; padding-left: 8px;
  font-size: .62rem; color: var(--txt-dim); opacity: 0; transition: opacity .2s;
}
.hist-item:hover::after { opacity: .8; }
.is-program { color: #ffd27a !important; }   /* programa de radio (hablada) */

/* ============================================================
   Vinilo, transiciones, modo ambiente y micro-detalles
   ============================================================ */

/* ---- Transición suave de la carátula ---- */
@keyframes artIn { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: scale(1); } }
.art-in { animation: artIn .45s cubic-bezier(.2,.8,.2,1); }

/* ---- Disco de vinilo (pantalla completa) ---- */
.np-art.vinyl-mode {
  width: clamp(196px, min(62vw, 30vh), 300px);
  box-shadow: none;
  border-radius: 50%;
  overflow: visible;
  background: transparent;
}
.vinyl {
  width: 100%; height: 100%; border-radius: 50%; position: relative;
  display: grid; place-items: center;
  background:
    repeating-radial-gradient(circle at 50% 50%, #0c0c0e 0 1px, #18181c 1px 3px);
  box-shadow: 0 30px 80px -18px rgba(0,0,0,.9), inset 0 0 60px rgba(0,0,0,.6);
  animation: spin 9s linear infinite;
  animation-play-state: paused;
}
.np.playing .vinyl { animation-play-state: running; }
.vinyl-label {
  width: 60%; height: 60%; border-radius: 50%;
  background-size: cover; background-position: center;
  box-shadow: inset 0 0 0 4px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.08);
}
.vinyl-hole {
  position: absolute; width: 7%; height: 7%; border-radius: 50%;
  background: var(--bg-2); box-shadow: 0 0 0 3px #2a2a2e, inset 0 0 4px rgba(0,0,0,.8);
}
.vinyl::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: linear-gradient(125deg, rgba(255,255,255,.16), transparent 40%);
}

/* ---- Modo ambiente ---- */
.np-ambient-btn {
  position: absolute;
  top: max(18px, env(safe-area-inset-top));
  right: max(18px, env(safe-area-inset-right));
  width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center;
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 34px rgba(0,0,0,.22);
  z-index: 4;
}
.np-ambient-btn:hover { background: rgba(255,255,255,.2); }
.np-ambient-btn svg { width: 22px; height: 22px; }
.np-clock {
  display: none; font-size: clamp(3rem, 14vw, 6rem); font-weight: 800;
  letter-spacing: -3px; line-height: 1; margin-bottom: 6px; font-variant-numeric: tabular-nums;
}
.np.ambient .np-clock { display: block; }
.np.ambient .np-controls,
.np.ambient .np-actions,
.np.ambient .np-volume,
.np.ambient .np-history,
.np.ambient .np-talk-info,
.np.ambient .np-song-actions,
.np.ambient .np-ambient-btn,
.np.ambient .np-close { display: none; }
.np.ambient .np-art { width: min(78vw, 380px); }
.np.ambient .np-inner { cursor: pointer; gap: 18px; }

@media (min-width: 900px) and (min-height: 780px) {
  .np-art { width: clamp(250px, min(54vw, 34vh), 330px); }
  .np-art.vinyl-mode,
  .np-art.live-mode { width: clamp(230px, min(50vw, 31vh), 310px); }
}

@media (max-width: 720px) {
  .np-inner {
    justify-content: flex-start;
    overflow-y: auto;
    gap: 14px;
    padding: calc(78px + env(safe-area-inset-top)) 16px max(28px, env(safe-area-inset-bottom));
  }
  .np-close,
  .np-ambient-btn {
    width: 44px;
    height: 44px;
    top: max(14px, env(safe-area-inset-top));
  }
  .np-close { left: max(14px, env(safe-area-inset-left)); }
  .np-ambient-btn { right: max(14px, env(safe-area-inset-right)); }
  .np-art {
    width: clamp(196px, min(72vw, 31svh), 292px);
    border-radius: 24px;
  }
  .np-art.vinyl-mode,
  .np-art.live-mode { width: clamp(184px, min(66vw, 28svh), 272px); }
  .np-art.station-logo-mode { width: clamp(128px, min(42vw, 22svh), 190px); border-radius: 26px; }
  .np-art .logo-tile { border-radius: 24px; }
  .np-art.station-logo-mode .logo-tile { border-radius: 26px; }
  .np-info h2 { font-size: clamp(1.75rem, 9vw, 2.35rem); }
  .np-talk-info { width: min(94vw, 390px); padding: 11px 12px; }
  .np.sports-info-mode .np-info h2 { font-size: clamp(2rem, 11vw, 2.7rem); }
  .np.sports-info-mode .np-talk-info { width: min(94vw, 560px); padding: 14px; }
  .np-controls { gap: 22px; margin-top: 0; }
  .np-play { width: 76px; height: 76px; }
  .np-actions { flex-wrap: wrap; justify-content: center; row-gap: 14px; }
  .np-history { width: min(92vw, 420px); max-height: 24svh; }
}

@media (max-height: 720px) {
  .np-inner {
    justify-content: flex-start;
    overflow-y: auto;
    gap: 12px;
    padding-top: calc(72px + env(safe-area-inset-top));
  }
  .np-art { width: clamp(176px, min(52vw, 30svh), 260px); }
  .np-art.station-logo-mode { width: clamp(112px, min(32vw, 20svh), 170px); }
  .np.sports-info-mode .np-talk-info { margin-top: 8px; padding: 12px 14px; }
  .np.sports-info-mode .np-talk-football { margin-top: 10px; padding-top: 9px; }
  .np-history { width: min(90vw, 380px); max-height: 18svh; }
  .np-controls { gap: 22px; }
  .np-play { width: 74px; height: 74px; }
}

/* ---- Latido del corazón al dar favorito ---- */
@keyframes heartPop {
  0% { transform: scale(1); } 35% { transform: scale(1.45); }
  60% { transform: scale(.9); } 100% { transform: scale(1); }
}
.pop { animation: heartPop .45s ease; }

/* ---- Pulido de tarjetas ---- */
.card .logo-tile { transition: transform .25s cubic-bezier(.2,.7,.3,1); }
.card:hover .logo-tile { transform: scale(1.04); }

/* En móvil/táctil, el corazón de favorito siempre visible (no hay hover) */
@media (hover: none) {
  .card-fav { opacity: .92; transform: none; }
}

/* Aviso de instalación para iPhone */
.ios-hint {
  position: fixed; left: 12px; right: 12px; bottom: 16px; z-index: 90;
  max-width: 440px; margin: 0 auto;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 18px;
  background: rgba(18,23,38,.98); border: 1px solid var(--card-brd);
  backdrop-filter: blur(16px); box-shadow: var(--shadow);
  animation: artIn .4s;
}
.ios-hint-icon { width: 44px; height: 44px; border-radius: 11px; flex-shrink: 0; }
.ios-hint-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.ios-hint-text strong { font-size: .95rem; }
.ios-hint-text span { font-size: .8rem; color: var(--txt-dim); line-height: 1.4; }
.ios-hint-text b { color: var(--txt); }
.ios-hint-text svg { width: 15px; height: 15px; vertical-align: -3px; color: var(--accent); }
.ios-hint-close {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,.1); color: var(--txt); font-size: 1.3rem; line-height: 1;
}
.ios-hint-close:hover { background: rgba(255,255,255,.2); }

/* Ayudas contextuales (se ven una vez y no vuelven a salir) */
.coach-hint {
  display: flex; align-items: center; gap: 10px;
  max-width: 760px;
  margin: 0 0 14px;
  padding: 11px 14px;
  border-radius: 14px;
  background: rgba(109,139,255,.12);
  border: 1px solid rgba(109,139,255,.3);
  color: var(--txt);
  font-size: .86rem;
  line-height: 1.4;
  animation: artIn .3s;
}
.coach-hint span { flex: 1; }
.coach-hint-close {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,.12); color: var(--txt); font-size: 1.1rem; line-height: 1;
}
.coach-hint-close:hover { background: rgba(255,255,255,.22); }
.latin-filter-bar .coach-hint { flex-basis: 100%; max-width: none; }

/* Barra de filtros del podcast: chips de programa + selector de tema
   en una sola fila (antes eran dos filas de chips apiladas y quedaba
   como un popurri; el select de tema ocupa mucho menos sitio) */
.podcast-toolbar {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 14px; margin: 0 0 18px;
}
.podcast-show-chips { flex: 1 1 auto; margin: 0; min-width: 0; }
.podcast-topic-select {
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 999px;
  padding: 9px 34px 9px 16px;
  cursor: pointer;
  background: rgba(255,255,255,.055);
  color: var(--txt);
  font: inherit;
  font-size: .84rem;
  font-weight: 700;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa4bf' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}
.podcast-topic-select:hover,
.podcast-topic-select:focus {
  color: #fff;
  border-color: rgba(109,139,255,.45);
  background-color: rgba(109,139,255,.18);
  outline: none;
}
.podcast-topic-select option { background: #11192b; color: var(--txt); }
@media (max-width: 720px) {
  .podcast-toolbar { flex-wrap: wrap; }
  .podcast-topic-select { flex: 1 1 100%; }
}

.podcast-search-count {
  color: var(--txt-dim);
  font-size: .92rem;
  margin: 0 0 14px;
}
/* Podcast: lista de episodios (en vez de tarjetas cuadradas) */
.podcast-list {
  display: flex; flex-direction: column; gap: 12px;
  max-width: 900px;
}
.podcast-card {
  display: flex; align-items: center; gap: 16px;
  text-align: left;
}
.podcast-card-art {
  flex-shrink: 0; width: 64px; height: 64px; border-radius: 14px;
  display: grid; place-items: center;
  overflow: hidden;
}
.podcast-card-art span {
  font-size: .68rem; font-weight: 800; text-align: center; color: #fff;
  padding: 0 6px; line-height: 1.15; text-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.podcast-card-body { flex: 1; min-width: 0; }
.podcast-topic-tag {
  display: inline-block; margin-bottom: 5px;
  padding: 3px 10px; border-radius: 999px;
  background: rgba(109,139,255,.16); color: var(--accent);
  font-size: .7rem; font-weight: 700; letter-spacing: .2px;
}
.podcast-card-body strong {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; font-size: .96rem; line-height: 1.32;
}
.podcast-card-meta { display: block; margin-top: 4px; font-size: .78rem; color: var(--txt-dim); }
.podcast-card-body p {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; margin-top: 6px; font-size: .82rem; color: var(--txt-dim); line-height: 1.4;
}
.podcast-play-btn {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(109,139,255,.16); color: var(--txt);
}
.podcast-play-btn svg { width: 18px; height: 18px; }
.podcast-card.playing .podcast-play-btn { background: var(--accent); color: #fff; }
.podcast-tag-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); margin-right: 2px;
}
@media (min-width: 900px) {
  .podcast-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    max-width: 1320px;
  }
  .podcast-card {
    min-height: 166px;
    align-items: flex-start;
    padding: 18px;
  }
  .podcast-card-art {
    width: 58px;
    height: 58px;
  }
  .podcast-card-body strong {
    font-size: .98rem;
  }
  .podcast-card-body p {
    -webkit-line-clamp: 3;
  }
  .podcast-play-btn {
    align-self: center;
  }
}
@media (min-width: 1500px) {
  .podcast-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 1640px;
  }
}
@media (max-width: 720px) {
  .podcast-card-art { width: 52px; height: 52px; border-radius: 12px; }
  .podcast-card-body strong { font-size: .88rem; }
  .podcast-card-body p { display: none; }
}

/* Programación de hoy (panel) */
.guide-modal {
  position: fixed; inset: 0; z-index: 210; display: grid; place-items: center;
  background: rgba(0,0,0,.66); backdrop-filter: blur(6px); padding: 20px; animation: artIn .3s;
}
.guide-card {
  position: relative; width: 100%; max-width: 440px; max-height: 80vh; overflow-y: auto;
  background: linear-gradient(160deg, #16203a, #0d1322);
  border: 1px solid var(--card-brd); border-radius: 22px; padding: 22px; box-shadow: var(--shadow);
}
.guide-close {
  position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 50%;
  border: none; cursor: pointer; background: rgba(255,255,255,.1); color: #fff; font-size: 1.3rem; line-height: 1;
}
.guide-close:hover { background: rgba(255,255,255,.2); }
.guide-head { font-size: 1.15rem; font-weight: 800; margin-bottom: 16px; padding-right: 36px; }
.guide-item {
  display: flex; align-items: center; gap: 14px; padding: 12px 10px; border-radius: 12px;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.guide-item.now { background: rgba(109,139,255,.14); border-bottom-color: transparent; }
.guide-time { font-size: .9rem; color: var(--txt-dim); font-variant-numeric: tabular-nums; width: 48px; flex-shrink: 0; }
.guide-item.now .guide-time { color: var(--accent); font-weight: 700; }
.guide-name { flex: 1; font-size: .95rem; }
.guide-item.now .guide-name { font-weight: 700; }
.guide-live {
  font-size: .62rem; font-weight: 700; letter-spacing: 1px; color: #fff;
  background: var(--accent); padding: 3px 8px; border-radius: 999px; flex-shrink: 0;
}

/* Calendario deportivo (proximos partidos / carreras de F1 y MotoGP) */
.sports-cal-card { max-width: 480px; }
.sports-cal-tabs {
  display: flex; gap: 8px; margin-bottom: 14px;
}
.sports-cal-tab {
  flex: 1; border: 1px solid rgba(255,255,255,.13); border-radius: 999px;
  padding: 8px 10px; cursor: pointer; background: rgba(255,255,255,.055);
  color: var(--txt-dim); font: inherit; font-size: .82rem; font-weight: 700;
  transition: background .2s, border-color .2s, color .2s;
}
.sports-cal-tab:hover { color: #fff; }
.sports-cal-tab.active {
  color: #fff; border-color: rgba(109,139,255,.5); background: rgba(109,139,255,.2);
}
.sports-cal-body { max-height: 55vh; overflow-y: auto; }
.sports-cal-list { display: flex; flex-direction: column; gap: 4px; }
.sports-cal-item {
  display: flex; align-items: center; gap: 12px; padding: 11px 8px; border-radius: 12px;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.sports-cal-when {
  flex-shrink: 0; width: 76px; display: flex; flex-direction: column; align-items: flex-start;
}
.sports-cal-day {
  font-size: .78rem; font-weight: 700; color: var(--txt); text-transform: capitalize;
  white-space: nowrap;
}
.sports-cal-time { font-size: .76rem; color: var(--txt-dim); font-variant-numeric: tabular-nums; }
.sports-cal-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sports-cal-info strong { font-size: .92rem; line-height: 1.25; }
.sports-cal-info span { font-size: .78rem; color: var(--txt-dim); }
.sports-cal-empty { color: var(--txt-dim); padding: 18px 4px; line-height: 1.45; }
.sports-cal-group + .sports-cal-group { margin-top: 4px; }
.sports-cal-group-head {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  padding: 14px 8px 6px; border-top: 1px solid rgba(255,255,255,.08);
}
.sports-cal-group:first-child .sports-cal-group-head { border-top: none; padding-top: 2px; }
.sports-cal-group-head strong { font-size: .95rem; }
.sports-cal-group-head span { font-size: .78rem; color: var(--txt-dim); }

/* TV en directo (canales publicos RTVE) */
.tv-modal {
  position: fixed; inset: 0; z-index: 220; display: grid; place-items: center;
  background: rgba(0,0,0,.78); backdrop-filter: blur(6px); padding: 20px; animation: artIn .3s;
}
.tv-modal-inner {
  position: relative; width: 100%; max-width: 780px;
  background: linear-gradient(160deg, #16203a, #0d1322);
  border: 1px solid var(--card-brd); border-radius: 22px; padding: 18px; box-shadow: var(--shadow);
}
.tv-close {
  position: absolute; top: 14px; right: 14px; z-index: 2; width: 32px; height: 32px; border-radius: 50%;
  border: none; cursor: pointer; background: rgba(255,255,255,.14); color: #fff; font-size: 1.3rem; line-height: 1;
}
.tv-close:hover { background: rgba(255,255,255,.24); }
.tv-video-wrap {
  position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden;
  background: #000;
}
.tv-video { width: 100%; height: 100%; display: block; background: #000; }
.tv-video-status {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 20px; color: var(--txt-dim); font-size: .9rem; line-height: 1.4;
  background: rgba(6,9,16,.85);
}
.tv-modal-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 16px 2px 12px;
}
.tv-modal-head strong { font-size: 1.08rem; }
.tv-live-tag {
  display: flex; align-items: center; gap: 6px;
  font-size: .72rem; font-weight: 800; letter-spacing: .5px; color: var(--accent);
}
.tv-channel-switch { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 2px; }
.tv-switch-btn {
  border: 1px solid rgba(255,255,255,.13); border-radius: 999px; padding: 8px 16px;
  cursor: pointer; background: rgba(255,255,255,.055); color: var(--txt-dim);
  font: inherit; font-size: .84rem; font-weight: 700;
  transition: background .2s, border-color .2s, color .2s;
}
.tv-switch-btn:hover { color: #fff; }
.tv-switch-btn.active {
  color: #fff; border-color: rgba(109,139,255,.5); background: rgba(109,139,255,.2);
}
@media (max-width: 720px) {
  .tv-modal { padding: 0; }
  .tv-modal-inner { max-width: none; height: 100%; border-radius: 0; display: flex; flex-direction: column; justify-content: center; }
}

/* Rejilla de canales de TV (portada de la pestaña TV) */
.tv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
  max-width: 1400px;
}
.tv-channel-group { margin: 0 0 24px; }
.tv-channel-group + .tv-channel-group { margin-top: 2px; }
.tv-card { position: relative; }
.tv-card-fav {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  display: grid; place-items: center; width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,.16); border-radius: 50%;
  background: rgba(7,10,24,.58); color: rgba(255,255,255,.82);
  cursor: pointer; backdrop-filter: blur(12px);
  transition: transform .18s, border-color .18s, background .18s, color .18s;
}
.tv-card-fav:hover {
  transform: scale(1.06);
  border-color: rgba(255,255,255,.28);
  background: rgba(255,255,255,.13);
  color: #fff;
}
.tv-card-fav svg { width: 17px; height: 17px; }
.tv-card-fav.on {
  border-color: transparent;
  background: linear-gradient(135deg, #ff4db8, #8b6dff);
  color: #fff;
  box-shadow: 0 12px 24px -16px rgba(255,77,184,.9);
}
.tv-card-fav.on svg { fill: currentColor; }
.tv-card-now {
  margin-top: 10px; padding: 9px 10px;
  border: 1px solid rgba(255,255,255,.1); border-radius: 12px;
  background: rgba(255,255,255,.055);
}
.tv-card-now span {
  display: block; margin-bottom: 3px;
  color: var(--accent); font-size: .66rem; font-weight: 900;
  text-transform: uppercase; letter-spacing: .6px;
}
.tv-card-now strong {
  display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: rgba(255,255,255,.9); font-size: .82rem; font-weight: 800;
}
.tv-logo-tile { aspect-ratio: 16 / 9; }
.tv-logo-tile.has-logo .logo-text { opacity: 0; }
.tv-logo-tile img {
  object-fit: contain;
  padding: 16%;
  background: transparent;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.28));
}
.tv-official-card .tv-logo-tile img { padding: 17%; }
.tv-live-badge { display: flex; align-items: center; gap: 6px; }
.tv-guide-open-btn {
  display: inline-flex; align-items: center; gap: 12px;
  margin: 0 0 22px; padding: 12px 16px;
  border: 1px solid rgba(109,139,255,.35); border-radius: 16px;
  background: rgba(109,139,255,.14); color: #fff;
  cursor: pointer; font: inherit; text-align: left;
  box-shadow: 0 12px 28px -22px rgba(109,139,255,.75);
  transition: transform .2s, border-color .2s, background .2s;
}
.tv-guide-open-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(109,139,255,.62);
  background: rgba(109,139,255,.2);
}
.tv-guide-open-btn span { font-weight: 850; }
.tv-guide-open-btn small { color: var(--txt-dim); font-size: .78rem; font-weight: 700; }
.tv-section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  max-width: 1400px; margin: 0 0 12px;
}
.tv-section-head-spaced { margin-top: 28px; }
.tv-section-head strong {
  color: var(--txt); font-size: 1.02rem; font-weight: 850; letter-spacing: -.2px;
}
.tv-section-head span {
  color: var(--txt-dim); font-size: .82rem; text-align: right;
}
.tv-official-warning {
  display: flex; align-items: center; gap: 10px;
  max-width: 1400px; margin: -2px 0 14px; padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.1); border-radius: 14px;
  background: rgba(255,255,255,.045); color: var(--txt-dim);
  font-size: .8rem; line-height: 1.35;
}
.tv-official-warning strong {
  flex-shrink: 0; color: #fff; font-size: .74rem; text-transform: uppercase; letter-spacing: .7px;
}
.tv-official-warning span { min-width: 0; }
.tv-official-grid { padding-bottom: 8px; }
.tv-official-card {
  text-decoration: none; color: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.038));
}
.tv-official-card:hover { color: inherit; }
.tv-official-badge {
  background: rgba(255,255,255,.1); color: rgba(255,255,255,.82);
  border: 1px solid rgba(255,255,255,.14);
}
.tv-platform-note {
  margin-top: 10px; color: var(--txt-dim);
  font-size: .72rem; line-height: 1.3;
}
.tv-card-action {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.08);
  color: var(--accent); font-size: .82rem; font-weight: 850;
}
.tv-card-action span {
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: rgba(109,139,255,.16); color: #fff;
}
.tv-guide-modal-card { max-width: min(1180px, calc(100vw - 28px)); }
.tv-guide-tabs .sports-cal-tab { font-size: .78rem; }
.tv-guide-body {
  max-height: min(68vh, 720px);
  overflow: auto;
  padding-bottom: 4px;
  scrollbar-color: rgba(109,139,255,.55) rgba(255,255,255,.06);
}
.guide-card::-webkit-scrollbar,
.tv-guide-body::-webkit-scrollbar,
.tv-epg-wrap::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
.guide-card::-webkit-scrollbar-track,
.tv-guide-body::-webkit-scrollbar-track,
.tv-epg-wrap::-webkit-scrollbar-track {
  background: rgba(255,255,255,.055);
  border-radius: 999px;
}
.guide-card::-webkit-scrollbar-thumb,
.tv-guide-body::-webkit-scrollbar-thumb,
.tv-epg-wrap::-webkit-scrollbar-thumb {
  background: rgba(109,139,255,.55);
  border-radius: 999px;
}
.tv-epg-wrap {
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 0 10px;
  scrollbar-width: thin;
}
.tv-epg-summary {
  position: sticky;
  left: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 100%;
  margin-bottom: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  background: rgba(255,255,255,.045);
}
.tv-epg-summary strong {
  color: #fff;
  font-size: .86rem;
}
.tv-epg-summary span {
  color: var(--txt-dim);
  font-size: .78rem;
}
.tv-epg-head,
.tv-epg-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  min-width: max-content;
}
.tv-epg-head {
  position: sticky;
  top: 0;
  z-index: 6;
  background: linear-gradient(160deg, #16203a, #0d1322);
  padding-bottom: 8px;
}
.tv-epg-head-channel {
  position: sticky;
  left: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  padding: 0 10px;
  color: var(--accent);
  font-size: .76rem;
  font-weight: 900;
  text-transform: uppercase;
  background: linear-gradient(160deg, #16203a, #0d1322);
}
.tv-epg-hours {
  position: relative;
  height: 34px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.tv-epg-hour {
  position: absolute;
  top: 5px;
  transform: translateX(-50%);
  color: var(--txt-dim);
  font-size: .72rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.tv-epg-hour::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 28px;
  width: 1px;
  height: 999px;
  background: rgba(255,255,255,.055);
}
.tv-epg-rows { min-width: max-content; }
.tv-epg-row {
  min-height: 78px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.tv-epg-channel {
  position: sticky;
  left: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 150px;
  padding: 10px;
  border: 0;
  border-right: 1px solid rgba(255,255,255,.08);
  background: rgba(13,19,34,.96);
  color: var(--txt);
  cursor: pointer;
  text-align: left;
  font: inherit;
}
.tv-epg-channel strong {
  font-size: .84rem;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tv-epg-logo {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: rgba(255,255,255,.94);
  color: #111827;
  font-size: .74rem;
  font-weight: 900;
}
.tv-epg-logo img { width: 100%; height: 100%; object-fit: contain; padding: 7px; }
.tv-epg-track {
  position: relative;
  min-height: 78px;
  background: linear-gradient(90deg, rgba(255,255,255,.025), rgba(255,255,255,.01));
}
.tv-epg-block {
  position: absolute;
  top: 8px;
  bottom: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 10px 11px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 13px;
  background: rgba(255,255,255,.055);
  color: var(--txt);
  cursor: pointer;
  text-align: left;
  font: inherit;
  overflow: hidden;
  z-index: 1;
  transition: transform .2s, border-color .2s, background .2s;
}
.tv-epg-block:hover {
  transform: translateY(-1px);
  border-color: rgba(109,139,255,.45);
  background: rgba(109,139,255,.13);
  z-index: 4;
}
.tv-epg-block.now {
  border-color: rgba(109,139,255,.65);
  background: linear-gradient(135deg, rgba(109,139,255,.28), rgba(183,92,255,.16));
  box-shadow: 0 0 0 1px rgba(109,139,255,.18), 0 14px 34px -28px rgba(109,139,255,.9);
}
.tv-epg-block strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .84rem;
  line-height: 1.12;
}
.tv-epg-block span {
  color: var(--txt-dim);
  font-size: .7rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.tv-epg-block em {
  position: absolute;
  right: 8px;
  bottom: 7px;
  font-style: normal;
  font-size: .56rem;
  font-weight: 900;
  letter-spacing: .5px;
  color: #fff;
  background: var(--accent);
  padding: 3px 6px;
  border-radius: 999px;
}
.tv-epg-block.compact {
  padding-inline: 8px;
}
.tv-epg-block.compact strong {
  font-size: .78rem;
}
.tv-epg-block.compact em,
.tv-epg-block.tiny span,
.tv-epg-block.tiny em {
  display: none;
}
.tv-epg-block.tiny {
  padding-inline: 7px;
  align-items: center;
}
.tv-epg-block.tiny strong {
  width: 100%;
  font-size: .72rem;
  text-align: center;
}
.tv-epg-now-line {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 3;
  width: 2px;
  background: linear-gradient(180deg, rgba(183,92,255,.15), rgba(183,92,255,.95), rgba(183,92,255,.15));
  pointer-events: none;
}
.tv-epg-now-line span {
  position: absolute;
  top: -27px;
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--accent-2);
  color: #fff;
  font-size: .6rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: .4px;
}
.tv-epg-track .tv-epg-now-line span { display: none; }
.tv-guide-source {
  margin: 12px 4px 0; color: var(--txt-dim);
  font-size: .72rem; text-align: center;
}
@media (max-width: 720px) {
  .tv-section-head { align-items: flex-start; flex-direction: column; gap: 4px; }
  .tv-section-head span { text-align: left; }
  .tv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .tv-guide-open-btn { width: 100%; justify-content: space-between; }
  .tv-guide-modal-card { max-width: none; }
  .tv-guide-tabs { flex-wrap: wrap; }
  .tv-guide-tabs .sports-cal-tab { flex: 1 1 calc(50% - 6px); }
  .tv-official-warning { align-items: flex-start; flex-direction: column; gap: 4px; }
  .tv-epg-head, .tv-epg-row { grid-template-columns: 112px 1fr; }
  .tv-epg-channel { min-width: 112px; padding: 8px; gap: 7px; }
  .tv-epg-logo { width: 32px; height: 32px; border-radius: 9px; }
  .tv-epg-channel strong { font-size: .76rem; }
}

/* Etiqueta sutil de contexto en "Ahora suena" (por dónde saltan ⏮⏭) */
.np-context {
  font-size: .74rem; letter-spacing: 1px; color: var(--txt-dim);
  margin-top: -6px; opacity: .8;
}
