/* ══════════════════════════════════════════
   ECUADOR TV — IPTV PLAYER  |  style.css (v2)
   Diseño: cinematic dark · acento tricolor Ecuador
═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #050608;
  --surface:   rgba(9, 11, 17, 0.94);
  --surface-2: rgba(255,255,255,0.04);
  --border:    rgba(255,255,255,0.08);
  --accent:    #FFD100;   /* amarillo */
  --red:       #E30613;   /* rojo */
  --blue:      #003087;   /* azul */
  --green:     #22c55e;
  --text:      #f0f2f8;
  --muted:     rgba(240,242,248,0.45);
  --muted-2:   rgba(240,242,248,0.30);
  --sidebar-w: 312px;
  --topbar-h:  60px;
  --bottom-h:  78px;
  --radius:    14px;
  --font:      'Outfit', system-ui, sans-serif;
  --ease:      cubic-bezier(.22,.68,0,1.2);
  --shadow:    0 20px 60px rgba(0,0,0,.55);
  --safe-b:    env(safe-area-inset-bottom, 0px);
  --safe-r:    env(safe-area-inset-right, 0px);
}

html, body {
  width: 100%; height: 100%;
  height: 100dvh;            /* alto real visible en móvil (sin contar la barra) */
  overflow: hidden;
  overscroll-behavior: none;
  background: var(--bg);
  font-family: var(--font);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.cursor-hidden { cursor: none; }

/* ── VIDEO ── */
#video {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  background: #000;
  z-index: 0;
}

/* ══════════════════════════════
   ONLINE BADGE — SIEMPRE VISIBLE
   Inferior derecha, sobre todo.
══════════════════════════════ */
#onlineBadge {
  position: fixed;
  right: calc(20px + var(--safe-r));
  bottom: calc(20px + var(--safe-b));
  z-index: 300;                /* por encima de la UI */
  display: flex; align-items: center; gap: 8px;
  background: rgba(8,10,16,0.78);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 30px;
  padding: 8px 16px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text);
  backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: 0 8px 30px rgba(0,0,0,.45);
  pointer-events: none;
  user-select: none;
}
#onlineBadge #onlineCount { color: var(--green); font-weight: 800; }
#onlineBadge .online-label { color: var(--muted); font-weight: 500; }
.pulse-dot {
  width: 9px; height: 9px;
  background: var(--green);
  border-radius: 50%;
  position: relative; flex-shrink: 0;
}
.pulse-dot::after {
  content: ''; position: absolute; inset: -3px;
  border-radius: 50%;
  background: rgba(34,197,94,.4);
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
  0%   { transform: scale(1);   opacity: 1; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* ══════════════════════════════
   UI OVERLAY
══════════════════════════════ */
#ui {
  position: fixed; inset: 0;
  z-index: 10;
  pointer-events: none;
  transition: opacity .4s ease;
}
#ui.idle { opacity: 0; pointer-events: none; }
#ui.idle #topBar    { transform: translateY(-110%); opacity: 0; }
#ui.idle #bottomBar { transform: translateY(110%);  opacity: 0; }
#ui.idle #sidebar   { transform: translateX(-100%); opacity: 0; }

/* ── TOP BAR (solo controles derecha) ── */
#topBar {
  position: absolute; top: 0; left: 0; right: 0;
  height: var(--topbar-h);
  background: linear-gradient(to bottom, rgba(5,6,8,.9) 0%, transparent 100%);
  display: flex; align-items: center; justify-content: flex-end;
  padding: 0 24px 0 calc(var(--sidebar-w) + 24px);
  gap: 16px;
  pointer-events: all;
  transition: transform .35s ease, opacity .35s ease;
}
.topbar-right { display: flex; align-items: center; gap: 14px; }
.clock {
  font-size: .85rem; font-weight: 600;
  color: var(--text);
  letter-spacing: .5px;
  font-variant-numeric: tabular-nums;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  padding: 6px 13px; border-radius: 30px;
  backdrop-filter: blur(10px);
}

/* ══════════════════════════════
   SIDEBAR
══════════════════════════════ */
#sidebar {
  position: absolute; top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w);
  background: var(--surface);
  backdrop-filter: blur(26px) saturate(1.4);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  pointer-events: all;
  box-shadow: var(--shadow);
  transition: transform .35s ease, opacity .35s ease;
}

/* LOGO / MARCA — arriba de la búsqueda */
.sidebar-head {
  padding: 22px 20px 14px;
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 13px; }
.brand-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  filter: drop-shadow(0 4px 12px rgba(255,209,0,.25));
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-size: 1.45rem; font-weight: 300; letter-spacing: -.5px; color: var(--text);
}
.brand-name strong { font-weight: 800; color: var(--accent); }
.brand-sub {
  font-size: .68rem; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--muted-2); margin-top: 3px;
}

/* SEARCH */
.search-box {
  position: relative;
  margin: 16px 16px 8px;
  display: flex; align-items: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 11px;
  transition: border .2s, background .2s;
}
.search-box:focus-within {
  border-color: rgba(255,209,0,.5);
  background: rgba(255,209,0,0.04);
}
.search-box svg {
  width: 16px; height: 16px;
  position: absolute; left: 13px;
  color: var(--muted); pointer-events: none;
}
.search-box input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--text); font-family: var(--font);
  font-size: .88rem; padding: 11px 38px 11px 38px;
}
.search-box input::placeholder { color: var(--muted); }
#clearSearch {
  position: absolute; right: 8px;
  background: rgba(255,255,255,0.06); border: none;
  color: var(--muted); font-size: .7rem; cursor: pointer;
  width: 22px; height: 22px; border-radius: 50%;
  display: none; align-items: center; justify-content: center;
}
#clearSearch.show { display: flex; }
#clearSearch:hover { background: rgba(255,255,255,0.12); color: var(--text); }

/* CONTADOR */
.list-meta {
  padding: 4px 20px 8px;
  font-size: .68rem; font-weight: 600; letter-spacing: .8px;
  text-transform: uppercase; color: var(--muted-2);
}
.list-meta #chCount { color: var(--accent); font-weight: 800; }

/* CHANNEL NAV */
#channelNav {
  flex: 1; overflow-y: auto;
  padding: 4px 10px calc(20px + var(--safe-b));
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}
#channelNav::-webkit-scrollbar { width: 5px; }
#channelNav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 5px; }
.no-results { text-align: center; color: var(--muted-2); font-size: .85rem; padding: 36px 0; }

.ch-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 12px;
  cursor: pointer; outline: none;
  border: 1px solid transparent;
  margin-bottom: 3px; position: relative;
  transition: background .14s, border .14s, transform .14s var(--ease);
}
.ch-item:hover { background: rgba(255,255,255,0.05); transform: translateX(2px); }
.ch-item:focus-visible { border-color: var(--accent); background: rgba(255,209,0,0.06); }
.ch-item.active {
  background: linear-gradient(90deg, rgba(255,209,0,0.12), rgba(255,209,0,0.03));
  border-color: rgba(255,209,0,0.30);
}
.ch-item.active::before {
  content: ''; position: absolute; left: 0; top: 18%; bottom: 18%;
  width: 3px; background: var(--accent); border-radius: 0 3px 3px 0;
}

.ch-logo-wrap {
  width: 46px; height: 46px; border-radius: 10px;
  background: rgba(255,255,255,0.06);
  flex-shrink: 0; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.06);
}
.ch-logo-wrap img { width: 40px; height: 40px; object-fit: contain; }

.ch-text { flex: 1; min-width: 0; }
.ch-name {
  font-size: .9rem; font-weight: 600; line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: var(--text);
}
.ch-res {
  display: inline-block; margin-top: 4px;
  font-size: .64rem; font-weight: 700; letter-spacing: .3px;
  padding: 2px 7px; border-radius: 5px;
  background: rgba(255,209,0,0.1); color: var(--accent);
}
.ch-res.hd1080 { background: rgba(227,6,19,0.15); color: #ff6b78; }
.ch-res.hd720  { background: rgba(255,209,0,0.12); color: var(--accent); }
.ch-res.sd     { background: rgba(255,255,255,0.06); color: var(--muted); }

.ch-playing { width: 18px; height: 18px; flex-shrink: 0; display: none; align-items: center; justify-content: center; }
.ch-item.active .ch-playing { display: flex; }
.eq-bars { display: flex; align-items: flex-end; gap: 2px; height: 14px; }
.eq-bars span { width: 3px; background: var(--accent); border-radius: 2px; animation: eq .8s ease-in-out infinite alternate; }
.eq-bars span:nth-child(2) { animation-delay: .2s; }
.eq-bars span:nth-child(3) { animation-delay: .4s; animation-duration: .6s; }
@keyframes eq { from { height: 3px; } to { height: 14px; } }

/* ══════════════════════════════
   BOTTOM BAR (ahora reproduciendo)
══════════════════════════════ */
#bottomBar {
  position: absolute; bottom: 0; left: 0; right: 0;
  min-height: var(--bottom-h);
  background: linear-gradient(to top, rgba(5,6,8,.92) 0%, transparent 100%);
  display: flex; align-items: center;
  /* padding derecho amplio para no chocar con el badge "en línea" */
  padding: 0 200px calc(var(--safe-b)) calc(var(--sidebar-w) + 28px);
  gap: 20px;
  pointer-events: all;
  transition: transform .35s ease, opacity .35s ease;
}
#nowInfo { display: flex; align-items: center; gap: 14px; min-width: 0; }
#nowLogo {
  width: 46px; height: 46px; border-radius: 9px; object-fit: contain;
  background: rgba(255,255,255,0.06); padding: 5px;
  border: 1px solid var(--border); display: none; flex-shrink: 0;
}
#nowLogo.show { display: block; }
#nowMeta { min-width: 0; }
#nowName { font-size: 1.02rem; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#nowSub  { font-size: .76rem; color: var(--muted); margin-top: 2px; }

#playerHints { margin-left: auto; display: flex; gap: 16px; flex-shrink: 0; }
#playerHints span {
  font-size: .68rem; color: var(--muted); font-weight: 500;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  padding: 4px 10px; border-radius: 7px; white-space: nowrap;
}
@media (max-width: 1100px) { #playerHints { display: none; } }

/* ══════════════════════════════
   BOTÓN ACTIVAR SONIDO
══════════════════════════════ */
#unmuteBtn {
  position: fixed;
  bottom: calc(96px + var(--safe-b)); left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  display: flex; align-items: center; gap: 9px;
  background: var(--accent); color: #000;
  border: none; border-radius: 30px;
  padding: 11px 22px;
  font-family: var(--font); font-size: .85rem; font-weight: 700;
  cursor: pointer; box-shadow: 0 10px 30px rgba(255,209,0,.3);
  animation: bob 1.6s ease-in-out infinite;
}
#unmuteBtn svg { width: 18px; height: 18px; }
#unmuteBtn:hover { filter: brightness(1.05); }
@keyframes bob { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-4px); } }

/* ══════════════════════════════
   LOADING
══════════════════════════════ */
#loadingScreen {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(5,6,8,.88);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
}
.loader-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.loader-ring {
  width: 58px; height: 58px;
  border: 3px solid rgba(255,255,255,0.08);
  border-top-color: var(--accent);
  border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
#loaderLogo {
  width: 64px; height: 64px; border-radius: 14px; object-fit: contain;
  background: rgba(255,255,255,0.06); padding: 8px; border: 1px solid var(--border);
}
#loaderName { font-size: .92rem; font-weight: 600; color: var(--muted); letter-spacing: .3px; }

/* ══════════════════════════════
   PLAY ICON FLASH
══════════════════════════════ */
#playIcon {
  position: fixed; inset: 0; z-index: 20;
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem; color: rgba(255,255,255,.85);
  pointer-events: none; animation: flashIn .4s ease forwards;
}
@keyframes flashIn { 0% { transform: scale(.5); opacity: 1; } 100% { transform: scale(1.3); opacity: 0; } }

/* ══════════════════════════════
   ERROR TOAST
══════════════════════════════ */
#errorToast {
  position: fixed; bottom: calc(100px + var(--safe-b)); left: 50%;
  transform: translateX(-50%);
  background: rgba(22,6,6,0.96);
  border: 1px solid rgba(227,6,19,0.35);
  border-radius: 14px; padding: 14px 20px;
  display: flex; align-items: center; gap: 14px;
  z-index: 60; backdrop-filter: blur(20px);
  min-width: 300px; max-width: 92vw;
  box-shadow: 0 14px 40px rgba(0,0,0,.5);
  animation: slideUp .3s ease;
}
@keyframes slideUp {
  from { transform: translateX(-50%) translateY(20px); opacity: 0; }
  to   { transform: translateX(-50%) translateY(0); opacity: 1; }
}
#errorToast span { font-size: 1.4rem; }
#errorToast div { flex: 1; }
#errorToast strong { display: block; font-size: .9rem; color: var(--text); }
#errorToast small { display: block; font-size: .76rem; color: var(--muted); margin-top: 2px; }
#errorToast button {
  background: var(--accent); color: #000; border: none; border-radius: 8px;
  padding: 8px 16px; font-size: .8rem; font-weight: 700; cursor: pointer;
  font-family: var(--font); white-space: nowrap;
}
#errorToast button:hover { filter: brightness(1.05); }

/* ══════════════════════════════
   VOLUME HUD
══════════════════════════════ */
#volHud {
  position: fixed; top: 76px; right: calc(24px + var(--safe-r));
  background: rgba(10,12,18,0.88);
  border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 18px; z-index: 40;
  backdrop-filter: blur(16px); min-width: 150px; text-align: center;
}
#volLabel { font-size: .78rem; font-weight: 600; color: var(--text); margin-bottom: 8px; }
#volBar { height: 5px; background: rgba(255,255,255,0.12); border-radius: 5px; overflow: hidden; }
#volFill { height: 100%; background: var(--accent); border-radius: 5px; transition: width .15s; }

/* ── UTIL ── */
.hidden { display: none !important; }
*:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ══════════════════════════════
   CAST BUTTON
══════════════════════════════ */
.cast-btn {
  display: flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 30px; padding: 7px 16px 7px 13px;
  color: var(--text); font-family: var(--font);
  font-size: .8rem; font-weight: 600; cursor: pointer;
  transition: all .2s; backdrop-filter: blur(10px); white-space: nowrap;
}
.cast-btn:hover { background: rgba(255,209,0,0.12); border-color: rgba(255,209,0,0.4); color: var(--accent); }
.cast-btn.casting { background: rgba(255,209,0,0.15); border-color: var(--accent); color: var(--accent); animation: castPulse 2s ease-in-out infinite; }
.cast-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
@keyframes castPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(255,209,0,0); } 50% { box-shadow: 0 0 0 6px rgba(255,209,0,0.15); } }

/* ══════════════════════════════
   CAST MODAL
══════════════════════════════ */
#castModal {
  position: fixed; inset: 0; background: rgba(5,6,8,.85);
  backdrop-filter: blur(20px); z-index: 400;
  display: flex; align-items: center; justify-content: center;
  padding: 20px; animation: fadeIn .25s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.cast-modal-inner {
  background: #12151f; border: 1px solid rgba(255,255,255,0.1);
  border-radius: 22px; padding: 36px 32px 32px;
  max-width: 420px; width: 100%; position: relative; text-align: center;
  box-shadow: 0 30px 80px rgba(0,0,0,.7);
  animation: slideUp2 .3s var(--ease);
}
@keyframes slideUp2 { from { transform: translateY(30px) scale(.96); opacity: 0; } to { transform: translateY(0) scale(1); opacity: 1; } }
.cast-modal-close {
  position: absolute; top: 16px; right: 16px;
  background: rgba(255,255,255,0.07); border: none; color: var(--muted);
  border-radius: 50%; width: 30px; height: 30px; cursor: pointer; font-size: .8rem;
  display: flex; align-items: center; justify-content: center; font-family: var(--font);
}
.cast-modal-close:hover { background: rgba(255,255,255,0.12); color: var(--text); }
.cast-modal-icon {
  width: 68px; height: 68px; background: rgba(255,209,0,0.1);
  border: 1.5px solid rgba(255,209,0,0.3); border-radius: 18px;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 20px;
}
.cast-modal-icon svg { width: 32px; height: 32px; stroke: var(--accent); }
.cast-modal-inner h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 12px; color: var(--text); }
.cast-modal-inner p { font-size: .85rem; color: var(--muted); line-height: 1.6; margin-bottom: 24px; }
.cast-steps { display: flex; flex-direction: column; gap: 10px; text-align: left; margin-bottom: 24px; }
.cast-step {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,0.04); border-radius: 12px; padding: 12px 16px; border: 1px solid var(--border);
}
.cast-step span {
  width: 26px; height: 26px; background: var(--accent); color: #000;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 800; flex-shrink: 0;
}
.cast-step p { font-size: .82rem; color: var(--muted); line-height: 1.4; }
.cast-step p strong { color: var(--text); }
.cast-compat { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.cast-compat span {
  font-size: .7rem; font-weight: 600; padding: 5px 12px; border-radius: 20px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border); color: var(--muted);
}

/* ══════════════════════════════
   CAST STATUS BAR
══════════════════════════════ */
#castStatus {
  position: fixed; bottom: calc(92px + var(--safe-b)); left: 50%;
  transform: translateX(-50%); z-index: 80; animation: slideUp .3s ease;
}
.cast-status-inner {
  display: flex; align-items: center; gap: 14px;
  background: rgba(10,12,20,0.95); border: 1px solid rgba(255,209,0,0.35);
  border-radius: 50px; padding: 10px 20px; backdrop-filter: blur(20px); white-space: nowrap;
}
.cast-active-icon { width: 18px; height: 18px; color: var(--accent); stroke: var(--accent); fill: none; stroke-width: 1.8; animation: castPulse 2s ease-in-out infinite; }
#castStatusText { font-size: .82rem; color: var(--text); font-weight: 500; }
#castStatusText strong { color: var(--accent); }
.cast-status-inner button {
  background: rgba(227,6,19,0.2); border: 1px solid rgba(227,6,19,0.4); color: #ff6b78;
  border-radius: 20px; padding: 5px 14px; font-size: .75rem; font-weight: 700; cursor: pointer; font-family: var(--font); transition: all .15s;
}
.cast-status-inner button:hover { background: rgba(227,6,19,0.35); }

/* ══════════════════════════════════════════
   RESPONSIVE — orientación
══════════════════════════════════════════ */

/* El video siempre ocupa el alto real visible */
#video { height: 100dvh; }

/* ───────── TELÉFONO / TABLET VERTICAL ───────── */
@media (max-width: 860px) and (orientation: portrait) {
  :root { --sidebar-w: 100%; --topbar-h: 52px; }

  #topBar { padding: 0 14px; }
  #video { object-fit: cover; }

  /* Sidebar = panel inferior tipo "hoja" (60% del alto real) */
  #sidebar {
    top: auto; bottom: 0; left: 0; right: 0;
    width: 100%;
    height: 60vh; height: 60dvh;
    border-right: none; border-top: 1px solid var(--border);
    border-radius: 20px 20px 0 0;
    transform: translateY(0);
  }
  #ui.idle #sidebar { transform: translateY(110%); }

  .sidebar-head { padding: 14px 18px 10px; }
  .brand-icon { width: 38px; height: 38px; }
  .brand-name { font-size: 1.25rem; }

  #bottomBar {
    padding: 0 14px 8px 14px;
    bottom: 60vh; bottom: 60dvh;       /* justo sobre el panel */
    background: linear-gradient(to top, rgba(5,6,8,.92), transparent);
  }
  #playerHints { display: none; }

  /* Badge "en línea": sobre el panel; al ocultarse la UI baja al borde */
  #onlineBadge { bottom: calc(60vh + 12px); bottom: calc(60dvh + 12px); right: 12px; }
  body.cursor-hidden #onlineBadge { bottom: calc(16px + var(--safe-b)); }

  #unmuteBtn { bottom: calc(60dvh + 12px); }
  body.cursor-hidden #unmuteBtn { bottom: calc(24px + var(--safe-b)); }
}

/* ───────── TELÉFONO HORIZONTAL (apaisado) ─────────
   El alto es pequeño → cambiamos a panel LATERAL como en escritorio,
   para que el video ocupe casi toda la pantalla. */
@media (orientation: landscape) and (max-height: 560px) {
  :root { --sidebar-w: 240px; --topbar-h: 44px; }

  #video { object-fit: contain; }

  #sidebar {
    top: 0; bottom: 0; left: 0; right: auto;
    width: var(--sidebar-w); height: 100dvh;
    border-top: none; border-right: 1px solid var(--border);
    border-radius: 0;
    transform: translateX(0);
  }
  #ui.idle #sidebar { transform: translateX(-100%); }

  .sidebar-head { padding: 10px 14px 8px; }
  .brand-sub { display: none; }
  .brand-icon { width: 30px; height: 30px; }
  .brand-name { font-size: 1.05rem; }
  .search-box { margin: 10px 12px 6px; }
  .search-box input { padding: 9px 36px; font-size: .82rem; }
  .list-meta { padding: 2px 16px 6px; }
  .ch-item { padding: 7px 9px; margin-bottom: 2px; }
  .ch-logo-wrap { width: 36px; height: 36px; }
  .ch-logo-wrap img { width: 30px; height: 30px; }
  .ch-name { font-size: .8rem; }

  #topBar { height: var(--topbar-h); padding: 0 14px 0 calc(var(--sidebar-w) + 14px); }
  #bottomBar {
    left: 0; right: 0; bottom: 0;
    min-height: 56px;
    padding: 0 150px calc(var(--safe-b)) calc(var(--sidebar-w) + 16px);
    background: linear-gradient(to top, rgba(5,6,8,.92), transparent);
  }
  #nowName { font-size: .9rem; }
  #nowSub  { font-size: .7rem; }
  #playerHints { display: none; }

  /* Badge abajo a la derecha, siempre */
  #onlineBadge { bottom: calc(12px + var(--safe-b)); right: calc(14px + var(--safe-r)); padding: 6px 12px; font-size: .72rem; }
  #unmuteBtn { bottom: calc(14px + var(--safe-b)); }
}

/* Pantallas muy estrechas */
@media (max-width: 420px) {
  #onlineBadge { font-size: .73rem; padding: 7px 13px; }
  #castLabel { display: none; }
  #playerHints { display: none; }
}

/* ── Movimiento reducido ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}