/* ════════════════════════════════════════════════════════════════
   ATB HUB · Tema familia ATB (fondo blanco + cabina navy)
   ────────────────────────────────────────────────────────────────
   Regla de la casa: BLANCO PARA LEER, NAVY PARA ESCUCHAR.
   · Página, tarjetas y textos: fondo blanco, como www.atb.com.bo.
   · Todo lo que suena (barra superior, reproductor, ticker, logos de
     programas, pie): bloque navy de cabina, la firma de la radio.
   · Colores de marca ATB (manual 2026): navy #16253F · cian #65CDE5 ·
     amarillo #F9ED58 · naranja #FF9C1A. El cian, el amarillo y el naranja
     de marca NO se usan como texto sobre blanco (contraste < 2:1): van
     como relleno con texto navy, o sobre navy. Para texto sobre blanco
     se usan sus versiones oscuras (todas ≥ 4.5:1, WCAG AA).
   Este archivo lo cargan index.html y programa.html.
   ════════════════════════════════════════════════════════════════ */

:root, body {
  /* Marca */
  --atb-navy:   #16253F;
  --atb-navy-2: #0F1A2E;
  --atb-cyan:   #65CDE5;
  --atb-yellow: #F9ED58;
  --atb-orange: #FF9C1A;
  --atb-red:    #DC2626;   /* EN VIVO (rojo del canal, versión AA) */

  /* Tokens de la interfaz en zona clara */
  --bg:       #FFFFFF;
  --bg-alt:   #F4F7FA;
  --surf1:    #FFFFFF;
  --surf2:    #F1F5F9;
  --surf3:    #E2E8F0;
  --text:     #16253F;
  --muted:    #56657C;     /* 5.9:1 sobre blanco */
  --cyan:     #0E7490;     /* cian ATB oscuro para texto: 5.4:1 */
  --cyan-dim: #0B5E73;
  --yellow:   #8A6D00;     /* amarillo ATB oscuro para texto: 4.9:1 */
  --orange:   #B45309;     /* naranja ATB oscuro para texto: 5.0:1 */
  --green:    #15803D;
  --red:      #DC2626;
  --live:     #DC2626;
  --metal2:   #94A3B8;
  --border:   #E2E8F0;
  --r:        14px;
  --shadow:   0 10px 30px rgba(22,37,63,.10);
  --shadow-sm:0 1px 3px rgba(22,37,63,.08), 0 6px 18px rgba(22,37,63,.05);
  --font:     'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono:     'Space Mono', ui-monospace, monospace;
}

/* ── Zona de CABINA (navy): los mismos componentes, re-tematizados ── */
.dark-scope, .topbar, .player-wrap, .ticker, .site-footer .footer-bar, #toast-notification {
  --bg:       #0F1A2E;
  --surf1:    #16253F;
  --surf2:    #1D3050;
  --surf3:    #28406A;
  --text:     #F1F5FB;
  --muted:    #A7B6CC;
  --cyan:     #65CDE5;
  --cyan-dim: #3BA9C4;
  --yellow:   #F9ED58;
  --orange:   #FF9C1A;
  --green:    #4ADE80;
  --red:      #F87171;
  --metal2:   #7F91B3;
  --border:   rgba(101,205,229,.18);
  color: var(--text);
}

/* ── Base ─────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: #CBD5E1; }
a { color: var(--cyan); }
:focus-visible { outline: 2px solid var(--atb-cyan); outline-offset: 2px; }

/* ── 1. Barra superior navy (espejo de atb.com.bo) ────────────── */
.topbar { background: var(--atb-navy); }
.topbar-in {
  max-width: 1400px; margin: 0 auto; padding: 8px 24px;
  display: flex; align-items: center; gap: 12px; min-height: 48px;
}
.onair-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--atb-red); color: #fff; border: 0; cursor: pointer;
  border-radius: 999px; padding: 7px 16px;
  font: 800 12.5px/1 var(--font); letter-spacing: 1px; text-transform: uppercase;
  transition: transform .15s, box-shadow .15s;
}
.onair-pill:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(220,38,38,.45); }
.onair-pill .live-dot, .live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #fff;
  animation: pulse 1.4s ease-in-out infinite;
}
.topbar .listeners-badge {
  background: rgba(255,255,255,.06); border: 1px solid var(--border);
  color: var(--muted); font-family: var(--font); font-size: 12px; font-weight: 600;
}
.topbar .listeners-badge span { color: var(--green); font-family: var(--mono); }
.topbar .listeners-badge .peak-inline b { color: var(--cyan); font-family: var(--mono); }
.topbar .listeners-badge .peak-sep { color: var(--muted); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.tv-pill {
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
  background: var(--atb-cyan); color: var(--atb-navy);
  border-radius: 999px; padding: 7px 16px;
  font: 800 12.5px/1 var(--font); letter-spacing: .8px; text-transform: uppercase;
  transition: transform .15s;
}
.tv-pill:hover { transform: translateY(-1px); }
.wa-btn {
  background: #25D366; color: #053D1F; border-radius: 999px;
  font-family: var(--font); font-weight: 800; text-decoration: none; padding: 7px 14px;
}

/* ── 2. Header blanco con logo y menú (sticky) ────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(22,37,63,.06);
}
.site-header-in {
  max-width: 1400px; margin: 0 auto; padding: 0 24px; height: 68px;
  display: flex; align-items: center; gap: 24px;
}
.brand { margin: 0; line-height: 0; flex-shrink: 0; }
.brand .logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand .logo-img { height: 40px; width: auto; border-radius: 0; display: block; }
.brand .hub-tag {
  font: 800 10px/1 var(--font); letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--atb-navy); border-left: 2px solid var(--atb-cyan); padding: 4px 0 4px 10px;
  line-height: 1.25;
}
.brand .hub-tag small { display: block; font-weight: 600; letter-spacing: .6px; color: var(--muted); text-transform: none; font-size: 11px; }
.site-header nav { display: flex; gap: 2px; margin-left: 8px; flex: 1; min-width: 0; }
.site-header nav a {
  color: var(--atb-navy); text-decoration: none; position: relative;
  font: 700 14px/1 var(--font); padding: 10px 12px; border-radius: 8px;
  transition: background .15s, color .15s; white-space: nowrap; background: none;
}
.site-header nav a:hover { background: var(--bg-alt); color: var(--atb-navy); }
.site-header nav a.active::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 3px;
  border-radius: 3px; background: var(--atb-cyan);
}
.header-play {
  margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 8px;
  width: auto; height: 42px; padding: 0 18px 0 14px; border-radius: 999px;
  background: var(--atb-red) !important; border: 0 !important; color: #fff;
  font: 800 13px/1 var(--font); letter-spacing: .4px; cursor: pointer;
  animation: playpulse 2.2s ease-out infinite;
}
.header-play svg { width: 14px; height: 14px; fill: #fff; }
.header-play .hp-label::before { content: 'Escuchar en vivo'; }
.header-play.playing { background: var(--atb-navy) !important; animation: none; }
.header-play.playing .hp-label::before { content: 'Pausar'; }
@keyframes playpulse {
  0%{ box-shadow:0 0 0 0 rgba(220,38,38,.5) }
  70%{ box-shadow:0 0 0 10px rgba(220,38,38,0) }
  100%{ box-shadow:0 0 0 0 rgba(220,38,38,0) }
}

/* ── 3. Ticker (marquesina de cabina) ─────────────────────────── */
.ticker {
  background: var(--atb-navy-2); border: 0; color: #DCE6F2;
  font-family: var(--font); font-size: 12.5px; font-weight: 500; padding: 9px 0;
}
.ticker-sep { color: var(--atb-cyan); }
.ticker-link { color: var(--atb-cyan); }

/* ── 4. Banda de logos de programas (escenario navy) ──────────── */
.promo-banner {
  background: radial-gradient(120% 140% at 50% 0%, #1D3050 0%, var(--atb-navy) 55%, var(--atb-navy-2) 100%);
  border: 0; box-shadow: var(--shadow-sm);
}
.marquee-track img { filter: drop-shadow(0 4px 10px rgba(0,0,0,.45)); }
.marquee-track img:hover { filter: drop-shadow(0 6px 16px rgba(101,205,229,.55)); }

/* ── 5. Tarjetas y encabezados de sección (zona clara) ────────── */
.card {
  background: var(--surf1); border: 1px solid var(--border);
  border-radius: var(--r); box-shadow: var(--shadow-sm);
}
.card-head {
  background: var(--bg-alt); border-bottom: 1px solid var(--border);
  color: var(--atb-navy); font-family: var(--font); font-weight: 800; letter-spacing: 1.2px;
  box-shadow: inset 3px 0 0 var(--atb-cyan);
}
.card-head .meta { font-size: 10.5px; color: var(--muted); font-weight: 600; letter-spacing: .4px; text-transform: none; }
.section-label { color: var(--cyan); font-family: var(--font); font-weight: 800; }
.section-label::before { background: var(--atb-cyan); width: 22px; height: 3px; }
.section-title {
  font-family: var(--font); font-weight: 800; font-size: 24px; letter-spacing: -.4px;
  color: var(--atb-navy); margin-bottom: 16px;
}
.social-section { padding-top: 26px; }

/* ── 6. CABINA: reproductor (bloque navy) ─────────────────────── */
.player-wrap {
  background: var(--surf1); border: 0; box-shadow: 0 18px 44px rgba(22,37,63,.28);
}
.platform-tabs { background: var(--atb-navy-2); border-bottom: 1px solid var(--border); }
.ptab { font-family: var(--font); }
.ptab.active { color: var(--atb-cyan); border-bottom-color: var(--atb-cyan); }
.player-overlay { background: linear-gradient(to top, rgba(15,26,46,.92) 0%, transparent 55%); }
.now-playing-label { color: var(--atb-cyan); font-family: var(--font); font-weight: 800; }
.now-playing-title { color: #fff; font-family: var(--font); font-weight: 800; }
.now-playing-artist { color: #C9D5E6; }
.audio-bar { background: var(--surf2); }
.play-btn { background: var(--atb-cyan); box-shadow: 0 0 0 4px rgba(101,205,229,.18); }
.play-btn svg { fill: var(--atb-navy); }
.vol-area input[type=range] { accent-color: var(--atb-cyan); }
.upgrade-screen h3 { color: #fff; font-family: var(--font); font-weight: 800; }
.upgrade-cta {
  background: var(--atb-cyan); color: var(--atb-navy); border-radius: 999px;
  font-family: var(--font); font-weight: 800;
}
.channel-tabs { background: rgba(15,26,46,.7) !important; }

/* ── 7. Barra de frecuencias FM (debajo del reproductor) ─────── */
.fm-strip {
  margin: 4px 24px 18px; padding: 12px 16px; border-radius: var(--r);
  background: var(--bg-alt); border: 1px solid var(--border);
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px;
}
.fm-title { font-weight: 800; font-size: 13px; color: var(--atb-navy); margin-right: 4px; }
.fm-chip {
  display: inline-flex; align-items: baseline; gap: 6px; background: #fff;
  border: 1px solid var(--border); border-left: 3px solid var(--atb-cyan);
  border-radius: 8px; padding: 6px 10px; font-size: 12px; color: var(--muted); font-weight: 600;
}
.fm-chip b { font-family: var(--mono); font-size: 13px; color: var(--atb-navy); }
.fm-soon { font-size: 11.5px; color: var(--muted); font-style: italic; }

/* ── 8. Chat y votación (tarjetas claras) ─────────────────────── */
.chat-tab { font-family: var(--font); }
.chat-tab.active { color: var(--atb-navy); border-color: var(--atb-cyan); }
.community-strip { background: linear-gradient(90deg, rgba(101,205,229,.14), transparent); color: var(--muted); }
.community-strip b { color: var(--atb-navy); }
.live-strip { background: linear-gradient(90deg, rgba(220,38,38,.08), transparent); }
.msg-bubble { background: var(--surf2); }
.msg-text { color: var(--text); opacity: .86; }
.chat-input { background: #fff; border-color: #CBD5E1; color: var(--text); font-family: var(--font); }
.chat-input:focus { border-color: var(--atb-navy); box-shadow: 0 0 0 3px rgba(101,205,229,.35); }
.send-btn { background: var(--atb-navy); box-shadow: none; }
.vote-q { font-family: var(--font); font-weight: 800; color: var(--atb-navy); }
.vote-opt.votable:hover { background: var(--bg-alt); border-color: var(--border); }
.vote-opt.mine { background: rgba(101,205,229,.14); }
.vote-bar-bg { background: var(--surf3); }

/* ── 9. Redes ─────────────────────────────────────────────────── */
.social-btn {
  background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  border-radius: 999px; font-family: var(--font);
}
.social-btn.live:hover { box-shadow: var(--shadow); }
.social-btn .sb-name { font-family: var(--font); font-weight: 800; }
.social-btn .sb-status { font-family: var(--font); }

/* ── 10. Reporteros en Ruta: SEÑALÉTICA VIAL (firma de la radio) ─ */
.rep-section { margin: 30px 24px 0; }
.rep-wrap {
  position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--border); border-radius: 18px;
  box-shadow: var(--shadow-sm); padding: 28px 24px 24px;
}
.rep-wrap::before {           /* franja de seguridad tipo valla vial */
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 8px;
  background: repeating-linear-gradient(-45deg, var(--atb-yellow) 0 14px, var(--atb-navy) 14px 28px);
}
.sign-tag {
  display: inline-block; margin-bottom: 10px;
  background: var(--atb-yellow); color: var(--atb-navy);
  border: 2px solid var(--atb-navy); border-radius: 7px; padding: 5px 11px;
  font: 800 11px/1 var(--font); letter-spacing: 1px; text-transform: uppercase;
}
.rep-head h3 { font-family: var(--font); font-weight: 900; font-size: 26px; color: var(--atb-navy); letter-spacing: -.4px; }
.rep-head p { color: var(--muted); }
.rep-step { background: var(--bg-alt); border: 1px solid var(--border); }
.rep-step b {
  width: 28px; height: 28px; border-radius: 50%; display: inline-flex !important;
  align-items: center; justify-content: center; margin-bottom: 6px !important;
  background: var(--atb-yellow); color: var(--atb-navy) !important; border: 2px solid var(--atb-navy);
  font-family: var(--mono); font-size: 13px !important;
}
.rep-step span { color: var(--muted); }
.rep-box { background: #fff; border: 1px solid var(--border); }
.rep-box .bt { color: var(--atb-navy); }
.rep-box .bt .live-tag { color: var(--green); }
.rep-box .bt .ded-tag { color: var(--orange); }
.rep-feed-item { border-bottom-color: var(--border); }
.rep-feed-item .dep { color: var(--cyan); font-weight: 700; }
.rank-row .pos { background: var(--surf2); }
.rank-row.top1 .pos { background: var(--atb-yellow); color: var(--atb-navy); }
.rank-row .pts { color: var(--cyan); }
.rep-prize { background: #FEFCE8; border: 1px dashed #D9C93A; color: var(--text); }
.rep-prize b { color: var(--atb-navy); }
.rep-input {
  background: #fff; border: 1px solid #CBD5E1; color: var(--text); font-family: var(--font);
}
.rep-input:focus { border-color: var(--atb-navy); box-shadow: 0 0 0 3px rgba(249,237,88,.6); }
.btn-report, .btn-sign {
  width: 100%; justify-content: center; border: 0; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  padding: 13px 22px; font: 800 14px/1 var(--font); transition: transform .15s, box-shadow .15s;
}
.btn-report { background: var(--atb-navy); color: #fff; }
.btn-report:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(22,37,63,.25); }
.btn-sign { background: var(--atb-yellow); color: var(--atb-navy); border: 2px solid var(--atb-navy); }
.btn-sign:hover { transform: translateY(-2px); }

/* ── 11. Programas: tarjeta blanca + escenario navy para el logo ─ */
.prog-card {
  background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  border-radius: var(--r);
}
.prog-card:hover {
  border-color: color-mix(in srgb, var(--accent, var(--atb-cyan)) 70%, transparent);
  box-shadow: 0 14px 34px rgba(22,37,63,.16);
}
.prog-thumb {
  position: relative;
  background: radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--accent, #65CDE5) 30%, #16253F), #0F1A2E 78%);
  border-bottom: 3px solid var(--accent, var(--atb-cyan));
}
.prog-thumb .ph { color: #fff; font-family: var(--mono); }
.prog-name { font-family: var(--font); font-weight: 800; color: var(--atb-navy); font-size: 15px; }
.prog-host { color: var(--muted); font-weight: 600; }
.prog-sched { color: color-mix(in srgb, var(--accent, #0E7490) 42%, #16253F); font-family: var(--mono); font-weight: 700; }
.prog-flag { background: var(--surf2); color: var(--muted); font-family: var(--font); }
.prog-flag.star { background: var(--atb-yellow); color: var(--atb-navy); }
.prog-flag.own  { background: #E0F5FA; color: var(--cyan); }

/* Modal de programa */
.modal-bg { background: rgba(15,26,46,.62); }
.modal { background: #fff; border: 0; box-shadow: 0 30px 80px rgba(15,26,46,.4); }
.modal-head {
  background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--accent, #65CDE5) 32%, #16253F), #0F1A2E 80%);
}
.modal-head .ph { color: #fff; }
.modal-cont h2 { color: var(--atb-navy); font-family: var(--font); }
.modal-sched { color: color-mix(in srgb, var(--accent, #0E7490) 42%, #16253F); }
.modal-cta {
  background: var(--atb-navy); color: #fff; border-radius: 999px; font-family: var(--font);
}
.modal-cta:hover { background: #1D3050; }

/* ── 12. Charts, cápsulas, archivo, videos (tokens claros) ────── */
.chart-item { border-bottom-color: var(--border); }
.chart-req { color: var(--cyan); background: rgba(14,116,144,.08); border-color: rgba(14,116,144,.25); }
.cap-item, .caps-row { background: var(--bg-alt); }
.cap-item:hover, .caps-row:hover { background: #fff; border-color: var(--border); }
.caps-player { background: var(--atb-navy); border: 0; --text:#F1F5FB; --muted:#A7B6CC; --surf2:#1D3050; --border:rgba(101,205,229,.18); --cyan:#65CDE5; }
.caps-btn { background: var(--surf2); color: var(--text); }
.caps-btn.main { background: var(--atb-cyan); color: var(--atb-navy); }
.caps-all { border-color: var(--atb-cyan); color: var(--atb-cyan); }
.caps-all:hover { background: var(--atb-cyan); color: var(--atb-navy); }
.caps-row-art, .arch-art, .caps-now-art { background: var(--atb-navy); }
.arch-card { background: #fff; box-shadow: var(--shadow-sm); }
.yt-card { border: 0; box-shadow: var(--shadow-sm); }
.dept-item { background: var(--bg-alt); }

/* Explora más (plegable) */
.more-toggle {
  margin: 10px 24px 0; padding: 14px 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--r);
  color: var(--atb-navy); font: 800 14px/1.3 var(--font); transition: border-color .2s, background .2s;
}
.more-toggle:hover { border-color: var(--atb-cyan); background: #fff; }
.more-toggle .mt-sub { font-weight: 500; font-size: 12px; color: var(--muted); }
.more-toggle .mt-chev { color: var(--cyan); font-size: 13px; transition: transform .25s; }
.more-wrap.open .mt-chev { transform: rotate(180deg); }
#more-sections { overflow: hidden; }

/* ── 13. Pie de página (familia ATB) ──────────────────────────── */
.site-footer { margin-top: 48px; background: var(--bg-alt); border-top: 4px solid var(--atb-cyan); }
.footer-grid {
  max-width: 1200px; margin: 0 auto; padding: 40px 24px 32px;
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 32px;
}
.footer-logo { height: 44px; width: auto; display: block; margin-bottom: 14px; }
.site-footer p { font-size: 13px; color: var(--muted); line-height: 1.6; max-width: 300px; }
.site-footer h4 {
  font: 800 12px/1 var(--font); letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--atb-navy); margin-bottom: 14px; padding-left: 10px; border-left: 3px solid var(--atb-cyan);
}
.site-footer ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 9px; font-size: 13px; }
.site-footer ul a { color: var(--muted); text-decoration: none; font-weight: 600; }
.site-footer ul a:hover { color: var(--atb-navy); text-decoration: underline; text-underline-offset: 3px; }
.site-footer .contact li { color: var(--muted); }
.site-footer .contact a { color: var(--atb-navy); font-weight: 800; }
.footer-bar { background: var(--atb-navy); }
.footer-bar-in {
  max-width: 1200px; margin: 0 auto; padding: 16px 24px;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px;
  font-size: 12px; color: var(--muted);
}
.footer-bar a { color: #DCE6F2; text-decoration: none; font-weight: 700; }
.footer-bar a:hover { color: var(--atb-cyan); }
.footer-social { display: flex; gap: 18px; }

/* Toast */
#toast-notification { background: rgba(22,37,63,.97) !important; border-color: var(--atb-cyan) !important; }

/* ── 14. Layout heredado (antes en el bloque "cyber") ─────────── */
@media (min-width: 1025px){
  .hero > .sidebar{ height: 100%; }
  .sidebar > .card:first-child{ display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
  .sidebar > .card:first-child .chat-body{ max-height: none; flex: 1 1 auto; min-height: 220px; }
}
.bottom{ align-items: stretch; }
.bottom .cap-card, .bottom .chart-card, .bottom .map-card{ grid-column: auto !important; }
.bottom > .card{ display: flex; flex-direction: column; }
.bottom > .card > .dept-grid, .bottom > .card > .cap-grid, .bottom > .card > .chart-list{ flex: 1 1 auto; }
.bottom > .card > .chart-list{ display: flex; flex-direction: column; }
.bottom > .card > .chart-list > .chart-item{ flex: 1 1 0; }
@media (min-width: 561px){ .bottom{ grid-template-columns: 1fr 1fr !important; } }
@media (max-width: 560px){ .bottom{ grid-template-columns: 1fr !important; } }
.listeners-badge span, #vote-count, .vote-label > span:last-child, .dept-count, .chart-pos{ font-family: var(--mono); }

/* ── 15. Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px){
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .site-header nav { overflow-x: auto; scrollbar-width: none; }
  .site-header nav::-webkit-scrollbar { display: none; }
}
@media (max-width: 760px){
  .topbar-in { padding: 8px 14px; gap: 8px; }
  .tv-pill, .wa-btn { padding: 7px 11px; }
  .topbar .listeners-badge { padding: 4px 9px; }
  .site-header-in { height: auto; padding: 10px 14px 0; flex-wrap: wrap; gap: 10px; }
  .brand .logo-img { height: 32px; }
  .brand .hub-tag { display: none; }
  .header-play { height: 40px; padding: 0 14px 0 12px; font-size: 12px; }
  .header-play .hp-label::before { content: 'En vivo'; }
  .header-play.playing .hp-label::before { content: 'Pausar'; }
  .site-header nav { order: 3; flex-basis: 100%; margin: 0 -6px; padding-bottom: 6px; }
  .site-header nav a { font-size: 13px; padding: 9px 10px; }
  .section-title { font-size: 20px; }
  .fm-strip { margin: 0 12px 14px; }
  .rep-section { margin: 22px 12px 0; }
  .rep-wrap { padding: 24px 14px 16px; }
  .more-toggle { margin: 10px 12px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; padding: 32px 18px 24px; }
}
@media (max-width: 420px){
  .topbar .listeners-badge .ly-label { display: none; }
  .tv-pill { display: none; }
}
@media (prefers-reduced-motion: reduce){
  .header-play, .live-dot, .ticker-inner, .marquee-track { animation: none !important; }
}

/* Anula el layout del <header> viejo (flex de 60px) para la nueva estructura */
.site-header { display: block; height: auto; padding: 0; gap: 0; }

/* ── Ajustes tras revisión visual ─────────────────────────────── */
.onair-pill { white-space: nowrap; flex-shrink: 0; }
.rep-step b { display: flex !important; }
.prog-thumb a { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; }
.community-strip { display: block; line-height: 1.5; }
.community-strip .cdot { display: inline-block; margin-right: 6px; vertical-align: middle; }
#toast-notification { opacity: 0; pointer-events: none; transition: transform .4s cubic-bezier(.175,.885,.32,1.275), opacity .3s !important; }
#toast-notification.show { opacity: 1; pointer-events: auto; }
@media (max-width: 420px){
  .prog-grid { grid-template-columns: 1fr 1fr !important; gap: 10px; }
  .prog-thumb { height: 120px; padding: 6px; }
  .prog-body { padding: 9px 10px; }
  .prog-name { font-size: 13.5px; }
  .prog-sched { font-size: 9.5px; }
  .prog-flag { font-size: 8.5px; padding: 2px 6px; }
}
@media (max-width: 680px){
  .video-sound-btn { top: 12px; bottom: auto; }
  .now-playing-artist { font-size: 12.5px; }
}
.social-btn.live .sb-name { filter: brightness(.8); }   /* rojo YouTube / azul Facebook legibles sobre blanco */
.modal { position: relative; }   /* la ✕ queda dentro de la tarjeta, no en la esquina de la pantalla */

/* ── 15. Diseño en caja, como atb.com.bo (oct 2026) ───────────────
   Todo el sitio vive en una columna central de 1140 px; a los lados queda blanco.
   Para cambiar el ancho, edita --caja. */
:root { --caja: 1140px; }
html, body { background: #FFFFFF; }
.site-shell { max-width: var(--caja); margin: 0 auto; background: var(--bg); position: relative; }
.topbar-in, .site-header-in, .footer-grid, .footer-bar-in { max-width: none; }

/* ── 16. Player arriba: video en 16:9 y controles siempre a la vista ── */
.hero { min-height: 0; align-items: stretch; }
.player-screen { flex: 0 0 auto; aspect-ratio: 16 / 9; min-height: 0; }
@media (max-width: 680px) { .player-screen { min-height: 0; } }
@media (min-width: 1025px) {
  /* el chat se acomoda a la altura del player (con scroll propio) para que no sobre espacio bajo los controles */
  .sidebar > .card:first-child .chat-body { min-height: 110px; }
}

/* ── 17. Banner de publicidad superior (oct 2026) ─────────────────
   Franja blanca sobre la barra azul, como los costados. 970 x 90 en escritorio, 320 x 50 en celular. */
.ad-top { background: #FFFFFF; padding: 12px 24px; display: flex; justify-content: center; }
.ad-top-box {
  width: 970px; max-width: 100%; height: 90px; display: flex; align-items: center; justify-content: center;
  background: #F4F6FA; border: 1px solid #E3E8F0; border-radius: 4px; text-decoration: none; overflow: hidden;
}
.ad-top-box.con-anuncio { background: transparent; border: 0; border-radius: 0; }
.ad-top-box picture, .ad-top-box img { display: block; width: 100%; height: 100%; object-fit: contain; }
.ad-top-empty { font: 700 11px/1 var(--font); letter-spacing: 1.6px; text-transform: uppercase; color: #94A3B8; }
@media (max-width: 680px) {
  .ad-top { padding: 8px 12px; }
  .ad-top-box { width: 320px; height: 50px; }
}

/* ── 18. Controles de audio arriba del video ───────────────────── */
.player-wrap > .audio-bar { border-top: 0; }
/* la onda del audio cede espacio para que el volumen no se corte en celular */
.audio-bar .waveform { min-width: 0; overflow: hidden; }
