/* ============================================================================
   BETTIX — En Vivo (envivo.css)
   Estilos de la sección En Vivo nueva (envivo.js). Se carga DESPUÉS de
   styles.css, live-v3.css y musica.css. Todo va con prefijo .ev- para no pelear
   con las reglas viejas de live-v3.css; solo se pisan, acotadas al reproductor,
   las de pantalla completa por id (#livePlayerCard…) que siguen haciendo falta.
   Estética sobria: negro y grises, texto blanco, rojo solo para "EN VIVO" cuando
   es verdad, dorado sutil para VIP. Sin brillos cian ni tonos por canal.
   ========================================================================== */

:root {
  --ev-red: #ff2b4c;
  --ev-line: rgba(255, 255, 255, .09);
  --ev-muted: #a3a3a3;
  --ev-dim: #767676;
  --ev-tile-w: clamp(196px, 15.5vw, 268px);
  --ev-event-w: clamp(276px, 22vw, 344px);
  --ev-ease: cubic-bezier(.16, 1, .3, 1);
}

/* El atributo hidden manda aunque la regla de la pieza diga display:flex */
.ev-page [hidden], .ev-player [hidden], .ev-tile [hidden],
.ev-milista[hidden], .ev-milista [hidden], .ev-rail [hidden] { display: none !important; }

.ev-sr {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@keyframes evPulso { 0%, 100% { opacity: 1 } 50% { opacity: .35 } }
@keyframes evAparece { from { opacity: 0 } to { opacity: 1 } }
@keyframes evSube { from { opacity: 0; transform: translateY(10px) } to { opacity: 1; transform: none } }
@keyframes evGiro { to { transform: rotate(360deg) } }
@keyframes evBarra { 0% { transform: translateX(-110%) } 100% { transform: translateX(300%) } }
@keyframes evEq { 0%, 100% { height: 4px } 50% { height: 14px } }
@keyframes evEspera { from { transform: scaleX(0) } to { transform: scaleX(1) } }
@keyframes evBrillo { from { background-position: 120% 0 } to { background-position: -120% 0 } }
@keyframes evGuiaEntra { from { opacity: 0; transform: translateX(24px) } to { opacity: 1; transform: none } }
@keyframes evHojaEntra { from { opacity: 0; transform: translateY(40px) } to { opacity: 1; transform: none } }
@keyframes evMini { from { opacity: 0; transform: translateY(16px) scale(.97) } to { opacity: 1; transform: none } }

/* ---------------------------------------------------------------------------
   1. Cabecera: título, conteo real y buscador
   ------------------------------------------------------------------------ */
.ev-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin: 8px 0 18px;
}
.ev-head-copy { min-width: 0; }
.ev-title {
  margin: 0;
  font: 800 clamp(32px, 3.6vw, 54px)/1 Outfit, sans-serif;
  letter-spacing: -.035em;
  color: #fff;
}
.ev-sub {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 10px 0 0;
  color: var(--ev-muted);
  font: 500 14px/1.3 Inter, sans-serif;
  font-variant-numeric: tabular-nums;
}
.ev-onair {
  flex: none;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ev-red);
  animation: evPulso 2s ease-in-out infinite;
}

.ev-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(380px, 100%);
  height: 46px;
  padding: 0 6px 0 16px;
  border-radius: 999px;
  background: #141414;
  border: 1px solid var(--ev-line);
  transition: border-color .18s ease, background .18s ease;
}
/* Foco del buscador bien visible con el mando (el input no lleva anillo propio) */
.ev-search:focus-within { border-color: #fff; box-shadow: 0 0 0 2px #fff; background: #181818; }
.ev-search .ev-search-clear:focus-visible { outline-offset: -3px; }
.ev-search > i { color: var(--ev-dim); font-size: 14px; }
.ev-search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: none;
  color: #fff;
  font: 500 15px Inter, sans-serif;
}
.ev-search input::placeholder { color: #7a7a7a; }
.ev-search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.ev-search input:focus, .ev-search input:focus-visible { outline: none !important; box-shadow: none !important; }
.ev-search-clear {
  display: none;
  place-items: center;
  width: 34px; height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: #ddd;
}
.ev-search-clear:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.ev-search.has-value .ev-search-clear { display: grid; }

/* ---------------------------------------------------------------------------
   2. Chips de categoría (elegida = blanco sobre negro)
   ------------------------------------------------------------------------ */
.ev-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  /* Lugar para el anillo de foco (offset + ancho) sin mover el diseño: el margen negativo lo compensa */
  margin: -4px -5px 18px;
  padding: 7px;
  overflow-x: auto;
  scrollbar-width: none;
}
.ev-chips::-webkit-scrollbar { display: none; }
.ev-chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: transparent;
  color: #d4d4d4;
  font: 600 13px/1 Inter, sans-serif;
  white-space: nowrap;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.ev-chip:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.ev-chip small { font: 500 12px/1 Inter, sans-serif; opacity: .6; font-variant-numeric: tabular-nums; }
.ev-chip.is-on { background: #fff; border-color: #fff; color: #0a0a0a; }
.ev-chip.is-on small { opacity: .55; }
.ev-chip-sep { flex: none; width: 1px; height: 20px; margin: 0 4px; background: rgba(255, 255, 255, .14); }

/* ---------------------------------------------------------------------------
   3. Aviso de sección (Magis sin respuesta)
   ------------------------------------------------------------------------ */
.ev-aviso {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #161616;
  border: 1px solid rgba(255, 255, 255, .12);
  animation: evAparece .3s ease both;
}
.ev-aviso > i { flex: none; font-size: 18px; color: #e5e5e5; }
.ev-aviso-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ev-aviso-copy b { font: 700 14px/1.3 Inter, sans-serif; color: #fff; }
.ev-aviso-copy span { font: 500 13px/1.45 Inter, sans-serif; color: var(--ev-muted); }
.ev-aviso-btn { flex: none; min-height: 40px; }

/* ---------------------------------------------------------------------------
   4. Cartel "Seguir viendo" (último canal visto, sin vista previa)
   ------------------------------------------------------------------------ */
.ev-billboard {
  display: grid;
  grid-template-columns: minmax(220px, 40%) minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 3vw, 48px);
  margin: 0 0 clamp(28px, 3vw, 42px);
  padding: clamp(16px, 2.2vw, 30px);
  border-radius: 16px;
  border: 1px solid var(--ev-line);
  background:
    radial-gradient(90% 120% at 0% 0%, rgba(255, 255, 255, .055), transparent 60%),
    linear-gradient(180deg, #151515, #0d0d0d);
  overflow: hidden;
  animation: evAparece .35s ease both;
}
.ev-bb-art { min-width: 0; }
.ev-bb-logo {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .06);
}
.ev-bb-logo > .ev-mono { font-size: clamp(34px, 4.6vw, 64px); }
.ev-bb-logo > img { max-width: 58%; max-height: 54%; }
.ev-bb-copy { min-width: 0; }
.ev-eyebrow {
  display: block;
  font: 700 11px/1 Inter, sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ev-muted);
}
.ev-bb-title {
  margin: 10px 0 8px;
  font: 800 clamp(28px, 3.4vw, 52px)/1.04 Outfit, sans-serif;
  letter-spacing: -.03em;
  color: #fff;
  overflow-wrap: anywhere;
}
.ev-bb-meta { margin: 0; color: var(--ev-muted); font: 500 15px/1.4 Inter, sans-serif; }
.ev-bb-event { display: flex; align-items: center; margin: 12px 0 0; color: #fff; font: 600 15px/1.4 Inter, sans-serif; }
.ev-bb-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.ev-bb-actions .primary-btn, .ev-bb-actions .secondary-btn { min-height: 48px; padding: 0 22px; font-size: 15px; }

.ev-dot-live {
  display: inline-block;
  flex: none;
  width: 7px; height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--ev-red);
  vertical-align: middle;
}

/* ---------------------------------------------------------------------------
   5. Dock del reproductor (arriba de la sección, solo con un canal puesto)
   ------------------------------------------------------------------------ */
.ev-dock { position: relative; margin: 0 0 clamp(26px, 3vw, 40px); }
.ev-page:not([data-activo="1"]) .ev-dock { display: none; }
.ev-frame {
  position: relative;
  width: 100%;
  /* Que entre entero debajo del título y los chips, con sus controles a la vista */
  max-width: calc((100vh - var(--topbar, 72px) - 230px) * 16 / 9);
  max-width: calc((100dvh - var(--topbar, 72px) - 230px) * 16 / 9);
  min-width: min(100%, 560px);
  margin: 0 auto;
  aspect-ratio: 16 / 9;
}
@supports not (aspect-ratio: 16 / 9) {
  .ev-frame { height: 0; padding-top: 56.25%; }
}
.ev-mini-hold {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 12px;
  background: #0b0b0b;
  border: 1px solid var(--ev-line);
  color: var(--ev-dim);
  font: 500 13px Inter, sans-serif;
}
.ev-mini-hold i { font-size: 26px; color: #3a3a3a; }
.ev-frame.is-mini .ev-mini-hold { display: flex; }

/* ---------------------------------------------------------------------------
   6. Reproductor
   ------------------------------------------------------------------------ */
.ev-player {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #000;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .06);
  color: #fff;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.ev-player video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}

.ev-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .74) 0%, rgba(0, 0, 0, .3) 17%, transparent 34%),
    linear-gradient(0deg, rgba(0, 0, 0, .84) 0%, rgba(0, 0, 0, .34) 20%, transparent 40%);
  transition: opacity .3s ease;
}

/* Botones redondos de vidrio (mismo lenguaje que el reproductor de películas) */
.ev-ibtn {
  flex: none;
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 42px; height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.ev-ibtn:hover { background: rgba(255, 255, 255, .14); }
.ev-ibtn:active { transform: scale(.94); }
.ev-ibtn.active { background: rgba(255, 255, 255, .18); }
.ev-ibtn-main { font-size: 19px; }

/* Barra superior: logo, nombre, categoría, EN VIVO, calidad y señal */
.ev-top {
  position: absolute;
  left: 0; right: 0; top: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px 0 10px;
  transition: opacity .28s ease, transform .28s var(--ev-ease);
}
.ev-top-logo {
  flex: none;
  width: 54px; height: 34px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, .08);
}
.ev-top-logo > .ev-mono { font-size: 12px; }
.ev-top-logo > img { max-width: 76%; max-height: 72%; }
.ev-top-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ev-top-copy h2 {
  margin: 0;
  font: 700 17px/1.2 Outfit, sans-serif;
  letter-spacing: -.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .6);
}
#liveControlMeta {
  font: 500 12px/1.3 Inter, sans-serif;
  color: #d0d0d0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .6);
}
.ev-top-chips { flex: none; display: flex; align-items: center; gap: 6px; }
.ev-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 8px;
  border: 0;
  border-radius: 4px;
  background: var(--ev-red);
  color: #fff;
  font: 700 10px/1 Inter, sans-serif;
  letter-spacing: .12em;
  cursor: default;
}
.ev-pill i { width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.ev-pill[data-estado="diferido"], .ev-pill[data-estado="pausa"] { background: rgba(255, 255, 255, .16); cursor: pointer; }
.ev-pill[data-estado="diferido"] i, .ev-pill[data-estado="pausa"] i { background: #bdbdbd; }
.ev-pill[data-estado="espera"] { display: none; }
.ev-chip-q {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 7px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, .34);
  background: rgba(0, 0, 0, .25);
  color: #ececec;
  font: 600 11px/1 Inter, sans-serif;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Barra inferior */
.ev-bottom {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 10px 10px;
  transition: opacity .28s ease, transform .28s var(--ev-ease);
}
.ev-bar-left, .ev-bar-mid, .ev-bar-right { display: flex; align-items: center; gap: 4px; min-width: 0; }
.ev-bar-left { flex: 1 1 0; }
.ev-bar-mid { flex: none; }
.ev-bar-right { flex: 1 1 0; justify-content: flex-end; }
.ev-guide-btn {
  width: auto;
  display: inline-flex;
  gap: 8px;
  padding: 0 14px 0 12px;
  border-radius: 999px;
  font: 600 13px/1 Inter, sans-serif;
}
.ev-guide-btn i { font-size: 15px; }

.ev-vol { display: flex; align-items: center; }
.ev-vol-range {
  width: 0;
  height: 4px;
  margin: 0;
  opacity: 0;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 4px;
  background: linear-gradient(90deg, #fff var(--p, 100%), rgba(255, 255, 255, .28) var(--p, 100%));
  cursor: pointer;
  transition: width .2s var(--ev-ease), opacity .2s ease, margin .2s ease;
}
.ev-vol:hover .ev-vol-range, .ev-vol:focus-within .ev-vol-range { width: 92px; opacity: 1; margin: 0 8px 0 2px; }
.ev-vol-range::-webkit-slider-thumb { -webkit-appearance: none; width: 13px; height: 13px; border-radius: 50%; border: 0; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .4); }
.ev-vol-range::-moz-range-thumb { width: 13px; height: 13px; border-radius: 50%; border: 0; background: #fff; }
.ev-vol-range::-moz-range-track { background: transparent; }
@media (hover: none) { .ev-vol-range { display: none; } }

.ev-live-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  margin-left: 6px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(0, 0, 0, .38);
  color: #fff;
  font: 600 12px/1 Inter, sans-serif;
  white-space: nowrap;
}
.ev-live-btn:hover { background: rgba(255, 255, 255, .14); }

/* Botones de la mini ventana */
.ev-mini-actions { display: none; }

/* ---------------------------------------------------------------------------
   7. Carga, rebuffer y error
   ------------------------------------------------------------------------ */
.ev-loading {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 64px 20px 70px;
  text-align: center;
  color: #fff;
  background: radial-gradient(75% 75% at 50% 42%, #171717 0%, #070707 62%, #000 100%);
}
.ev-load-logo { width: 128px; height: 80px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .07); }
.ev-load-logo > .ev-mono { font-size: 28px; }
.ev-load-title { margin: 0; max-width: 90%; font: 600 15px/1.35 Inter, sans-serif; color: #f0f0f0; }
.ev-load-bar {
  position: relative;
  width: min(220px, 46%);
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .14);
  overflow: hidden;
}
.ev-load-bar i {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 36%;
  border-radius: inherit;
  background: #fff;
  animation: evBarra 1.25s ease-in-out infinite;
}
.ev-load-slow { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 4px; animation: evAparece .3s ease both; }
.ev-load-slow p { margin: 0; color: var(--ev-muted); font: 500 13px/1.4 Inter, sans-serif; }
.ev-load-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.ev-load-actions .primary-btn, .ev-load-actions .secondary-btn { min-height: 42px; padding: 0 16px; font-size: 13px; }
.ev-spin { display: none; }
/* Rebuffer: sobre el último cuadro, solo un indicador discreto */
.ev-loading.is-rebuffer { padding: 0; background: transparent; pointer-events: none; }
.ev-loading.is-rebuffer > * { display: none !important; }
.ev-loading.is-rebuffer > .ev-spin {
  display: block !important;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .22);
  border-top-color: #fff;
  animation: evGiro .9s linear infinite;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .6));
}

.ev-error {
  position: absolute;
  inset: 0;
  z-index: 7;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 64px 20px;
  overflow: auto;
  text-align: center;
  color: #fff;
  background: radial-gradient(75% 75% at 50% 40%, #161616 0%, #070707 62%, #000 100%);
}
.ev-err { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; max-width: 560px; }
.ev-err-logo { width: 96px; height: 60px; border-radius: 8px; opacity: .85; }
.ev-err-logo > .ev-mono { font-size: 20px; }
.ev-err-ico { font-size: 34px; color: #5a5a5a; }
.ev-err h3 { margin: 6px 0 0; font: 700 clamp(18px, 2vw, 23px)/1.25 Outfit, sans-serif; color: #fff; }
.ev-err p { margin: 0; max-width: 440px; color: var(--ev-muted); font: 500 14px/1.5 Inter, sans-serif; }
.ev-err-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.ev-err-alts { width: 100%; margin-top: 16px; }
.ev-err-alts-title {
  display: block;
  margin: 0 0 8px;
  font: 600 11px/1 Inter, sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ev-dim);
}
.ev-err-alts-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ev-alt {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 52px;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .05);
  color: #fff;
  text-align: left;
}
.ev-alt:hover { background: rgba(255, 255, 255, .1); }
.ev-alt-logo { flex: none; width: 52px; height: 32px; border-radius: 5px; }
.ev-alt-logo > .ev-mono { font-size: 12px; }
.ev-alt-copy { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ev-alt-copy b { font: 600 13px/1.2 Inter, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-alt-copy small { font: 500 11px/1.2 Inter, sans-serif; color: var(--ev-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Contenido viejo de app.js (si el aviso no pasó por envivo.js) */
.ev-error > strong { font: 700 18px Outfit, sans-serif; }
.ev-error > span { color: var(--ev-muted); font-size: 14px; }
.ev-error .live-error-acciones { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* Play grande (en pausa) y "Tocá para activar el sonido" */
.ev-center {
  position: absolute;
  left: 50%; top: 50%;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 76px; height: 76px;
  margin: -38px 0 0 -38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(0, 0, 0, .5);
  color: #fff;
  font-size: 26px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.ev-center i { margin-left: 4px; }
.ev-unmute {
  position: absolute;
  left: 14px;
  bottom: 70px;
  z-index: 9;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #0a0a0a;
  font: 700 13px/1 Inter, sans-serif;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .45);
  transition: bottom .28s var(--ev-ease);
  animation: evSube .3s var(--ev-ease) both;
}

/* ---------------------------------------------------------------------------
   8. Cartel de zapping
   ------------------------------------------------------------------------ */
.ev-zap {
  position: absolute;
  left: clamp(12px, 2.6vw, 40px);
  bottom: clamp(70px, 12%, 112px);
  z-index: 9;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 6px 16px;
  width: min(560px, calc(100% - 24px));
  padding: 14px 18px 14px 14px;
  border-radius: 14px;
  background: rgba(14, 14, 14, .94);   /* sin blur: un backdrop-filter sobre video se recalcula en cada cuadro */
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .55);
  overflow: hidden;
  pointer-events: none;
  animation: evSube .26s var(--ev-ease) both;
  transition: bottom .28s var(--ev-ease);
}
.ev-zap-logo { grid-row: 1 / span 2; width: 104px; height: 64px; border-radius: 8px; }
.ev-zap-logo > .ev-mono { font-size: 20px; }
.ev-zap-copy { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ev-zap-pos {
  font: 600 11px/1.2 Inter, sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ev-dim);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ev-zap-copy b { font: 700 20px/1.2 Outfit, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-zap-meta { display: flex; align-items: center; min-width: 0; font: 500 13px/1.3 Inter, sans-serif; color: #d6d6d6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-zap-nav { grid-column: 2; display: flex; gap: 18px; min-width: 0; font: 500 12px/1.2 Inter, sans-serif; color: var(--ev-dim); }
.ev-zap-nav span { display: inline-flex; align-items: center; gap: 6px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-zap-nav i { font-size: 10px; }
.ev-zap-wait {
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: #fff;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left center;
}
.ev-zap.is-pending .ev-zap-wait { opacity: 1; animation: evEspera .6s linear forwards; }

/* ---------------------------------------------------------------------------
   9. Menú de calidad / audio / subtítulos (solo si hls trae más de uno)
   ------------------------------------------------------------------------ */
.ev-menu {
  position: absolute;
  right: 12px;
  bottom: 66px;
  z-index: 10;
  width: min(300px, calc(100% - 24px));
  max-height: min(64%, 440px);
  overflow: auto;
  padding: 8px;
  border-radius: 12px;
  background: rgba(20, 20, 20, .96);
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 22px 50px rgba(0, 0, 0, .6);
  animation: evSube .22s var(--ev-ease) both;
}
.ev-msec + .ev-msec { margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(255, 255, 255, .08); }
.ev-mtitle {
  display: block;
  padding: 8px 10px 6px;
  font: 700 11px/1 Inter, sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ev-dim);
}
.ev-mrow {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #e3e3e3;
  font: 500 14px/1.2 Inter, sans-serif;
  text-align: left;
}
.ev-mrow i { width: 14px; font-size: 12px; opacity: 0; }
.ev-mrow:hover { background: rgba(255, 255, 255, .08); }
.ev-mrow.is-on { color: #fff; font-weight: 600; }
.ev-mrow.is-on i { opacity: 1; }

/* Avisos dentro del reproductor (se ven en pantalla completa) */
.ev-toast {
  position: absolute;
  left: 50%; top: 16%;
  z-index: 11;
  max-width: calc(100% - 40px);
  transform: translateX(-50%);
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(20, 20, 20, .92);
  color: #fff;
  font: 600 13px/1.2 Inter, sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  animation: evAparece .2s ease both;
}

/* ---------------------------------------------------------------------------
   10. Controles que se esconden solos
   ------------------------------------------------------------------------ */
.ev-player.ev-cromo-off { cursor: none; }
.ev-cromo-off .ev-top { opacity: 0; transform: translateY(-10px); pointer-events: none; }
.ev-cromo-off .ev-bottom { opacity: 0; transform: translateY(10px); pointer-events: none; }
.ev-cromo-off .ev-scrim { opacity: 0; }
.ev-cromo-off .ev-zap { bottom: clamp(16px, 4%, 44px); }
.ev-cromo-off .ev-unmute { bottom: 16px; }
.ev-cromo-off .ev-menu { display: none; }
/* app.js pone .fs-idle por su cuenta: el cursor lo decide envivo.js */
#livePlayerCard.ev-player.fs-idle:not(.ev-cromo-off) { cursor: auto; }

/* ---------------------------------------------------------------------------
   11. Pantalla completa (las reglas por id de styles.css/live-v3.css ya ponen
       la tarjeta fija a toda la pantalla; acá solo el cromo)
   ------------------------------------------------------------------------ */
.ev-player.ev-fs { border-radius: 0; border: 0; }
.ev-fs .ev-top {
  padding: max(18px, env(safe-area-inset-top)) max(22px, env(safe-area-inset-right)) 0 max(18px, env(safe-area-inset-left));
  gap: 14px;
}
.ev-fs .ev-bottom {
  padding: 0 max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}
.ev-fs .ev-top-copy h2 { font-size: 22px; }
.ev-fs #liveControlMeta { font-size: 13px; }
.ev-fs .ev-top-logo { width: 68px; height: 42px; }
.ev-fs .ev-ibtn { width: 48px; height: 48px; font-size: 19px; }
.ev-fs .ev-guide-btn { width: auto; }
.ev-fs .ev-scrim {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .3) 14%, transparent 28%),
    linear-gradient(0deg, rgba(0, 0, 0, .86) 0%, rgba(0, 0, 0, .34) 16%, transparent 32%);
}
.ev-player.ev-fs[data-ancho="l"] .ev-vol-range { width: 92px; opacity: 1; margin: 0 8px 0 2px; }
.ev-fs .ev-unmute { bottom: 92px; }

/* Lo viejo pintaba de cian los botones activos (con !important) */
#livePlayerCard #liveFillToggle.active,
#livePlayerCard #liveFsBottom.active,
#livePlayerCard #livePipBtn.active {
  background: rgba(255, 255, 255, .18) !important;
  border-color: transparent !important;
  color: #fff !important;
}

/* Con la pantalla completa "de mentira" (TV) nada por encima puede formar capa */
body.body-live-fullscreen .ev-dock { position: static !important; z-index: auto !important; }

/* ---------------------------------------------------------------------------
   12. Mini reproductor (escritorio, al bajar por los rieles)
   ------------------------------------------------------------------------ */
.ev-player.ev-mini {
  position: fixed;
  inset: auto;
  right: 24px;
  bottom: calc(24px + var(--music-bar-h, 0px));
  width: min(400px, 34vw);
  height: calc(min(400px, 34vw) * .5625);
  z-index: 450;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .7);
  animation: evMini .3s var(--ev-ease) both;
}
.ev-mini .ev-top, .ev-mini .ev-bar-mid, .ev-mini .ev-bar-right, .ev-mini .ev-vol-range,
.ev-mini .ev-live-btn, .ev-mini .ev-zap, .ev-mini .ev-err-alts, .ev-mini .ev-err p,
.ev-mini .ev-err-logo, .ev-mini .ev-load-slow p, .ev-mini .ev-load-logo, .ev-mini .ev-menu,
.ev-mini .ev-unmute span { display: none !important; }
.ev-mini .ev-mini-actions {
  position: absolute;
  top: 8px; right: 8px;
  z-index: 12;
  display: flex;
  gap: 4px;
  transition: opacity .2s ease;
}
.ev-mini .ev-mini-actions .ev-ibtn { width: 34px; height: 34px; font-size: 14px; background: rgba(0, 0, 0, .55); }
.ev-mini.ev-cromo-off .ev-mini-actions { opacity: 0; pointer-events: none; }
.ev-mini .ev-error { padding: 40px 12px 12px; }
.ev-mini .ev-err h3 { font-size: 15px; }
.ev-mini .ev-err-actions .primary-btn, .ev-mini .ev-err-actions .secondary-btn { min-height: 36px; padding: 0 12px; font-size: 12px; }
.ev-mini .ev-center { width: 52px; height: 52px; margin: -26px 0 0 -26px; font-size: 18px; }
.ev-mini .ev-unmute { left: 8px; bottom: 54px; min-height: 36px; padding: 0 12px; }

/* ---------------------------------------------------------------------------
   13. Guía dentro del reproductor: panel derecho / hoja inferior en el celular
   ------------------------------------------------------------------------ */
.ev-guide-scrim {
  position: fixed;
  inset: 0;
  z-index: 1099;
  background: rgba(0, 0, 0, .5);
  animation: evAparece .2s ease both;
}
.ev-fs .ev-guide-scrim { background: linear-gradient(270deg, rgba(0, 0, 0, .62) 0%, rgba(0, 0, 0, .14) 55%, transparent); }
.ev-guide {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  width: min(430px, 92vw);
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(14, 14, 14, .97);
  border-left: 1px solid rgba(255, 255, 255, .08);
  box-shadow: -24px 0 60px rgba(0, 0, 0, .55);
  color: #fff;
  cursor: auto;
  animation: evGuiaEntra .3s var(--ev-ease) both;
}
/* Abierta fuera de pantalla completa en el celular: el dock pegado sube por encima del menú inferior */
/* El segundo selector le gana a la regla del celular (.ev-page[data-activo="1"] .ev-dock, z 60), que
   si no deja la hoja debajo del menú inferior y de la barra superior. */
body.ev-guia-abierta .ev-dock,
body.ev-guia-abierta .ev-page[data-activo="1"] .ev-dock { z-index: 1100; }
.ev-guide-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 12px 10px 20px;
}
.ev-guide-head h3 { margin: 0; font: 700 21px/1 Outfit, sans-serif; letter-spacing: -.01em; }
.ev-guide-tabs {
  display: flex;
  gap: 6px;
  padding: 7px 20px 14px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.ev-guide-tabs::-webkit-scrollbar { display: none; }
.ev-gtab {
  flex: none;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: transparent;
  color: #d0d0d0;
  font: 600 12.5px/1 Inter, sans-serif;
  white-space: nowrap;
}
.ev-gtab:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.ev-gtab.is-on { background: #fff; border-color: #fff; color: #0a0a0a; }
.ev-guide-list {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .2) transparent;
}
.ev-guide-space { position: relative; width: 100%; }
/* La fila mide 64px: el mismo número que FILA_GUIA en envivo.js */
.ev-grow {
  position: absolute;
  left: 0; right: 0;
  height: 64px;
  display: grid;
  grid-template-columns: 30px 60px minmax(0, 1fr) 18px 40px;
  align-items: center;
  gap: 12px;
  padding: 0 8px 0 12px;
  border-left: 3px solid transparent;
  color: #fff;
  cursor: pointer;
  outline: none;
}
.ev-grow:hover { background: rgba(255, 255, 255, .05); }
.ev-grow.is-sel { background: rgba(255, 255, 255, .08); }
.ev-grow:focus-visible { background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 2px #fff; }
.ev-grow.is-now { border-left-color: #fff; }
.ev-grow.is-dim { opacity: .55; }
.ev-grow-num { font: 600 12px/1 Inter, sans-serif; color: var(--ev-dim); text-align: right; font-variant-numeric: tabular-nums; }
.ev-grow-logo { width: 60px; height: 38px; border-radius: 6px; }
.ev-grow-logo > .ev-mono { font-size: 13px; }
.ev-grow-copy { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ev-grow-copy b { font: 600 14px/1.2 Inter, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-grow-copy small { display: flex; align-items: center; min-width: 0; font: 500 12px/1.2 Inter, sans-serif; color: var(--ev-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-guide-empty { margin: 0; padding: 40px 24px; color: var(--ev-muted); font: 500 14px/1.5 Inter, sans-serif; text-align: center; }

/* ---------------------------------------------------------------------------
   14. Logo de canal y monograma neutro
   ------------------------------------------------------------------------ */
.ev-logo {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(70% 80% at 50% 45%, #232323 0%, #151515 72%);
}
.ev-logo > img {
  position: relative;
  z-index: 1;
  max-width: 64%;
  max-height: 60%;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .45));
}
.ev-mono {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font: 700 24px/1 Outfit, sans-serif;
  letter-spacing: .02em;
  color: #ececec;
}
.ev-logo.has-logo > .ev-mono { display: none; }

/* ---------------------------------------------------------------------------
   15. Rieles y tarjetas de canal
   ------------------------------------------------------------------------ */
.ev-rails { min-height: 120px; }
.ev-rail { --rail-h: 250px; }
.ev-page .ev-rail .rail-head, .ev-milista .rail-head { padding: 0; margin-bottom: 4px; }
.ev-page .ev-rail-scroll, .ev-milista .ev-rail-scroll {
  gap: 12px;
  padding: 10px 10px 18px;
  margin: 0 -10px;
  scroll-padding: 0 10px;
}
/* Portada: la fila vive en .content-stack, no en .ev-page. Además .rail-v2 lleva
   content-visibility:auto, que recorta en la caja de la sección; sin esto el anillo
   de foco del primer o último tile se corta a la izquierda o a la derecha. */
.ev-rail-home { content-visibility: visible; }
.ev-rail-home .ev-rail-scroll { padding: 10px 12px 18px; margin: 0 -12px; scroll-padding: 0 12px; }
.ev-rail .rail-arrow {
  top: 10px;
  height: calc(var(--ev-tile-w) * .5625);
  max-height: calc(100% - 28px);
}
.ev-rail-events .rail-arrow { height: calc(100% - 28px); }
.ev-sentinel { height: 1px; }

.ev-tile {
  position: relative;
  flex: 0 0 var(--ev-tile-w);
  width: var(--ev-tile-w);
  min-width: 0;
  scroll-snap-align: start;
  color: #fff;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.ev-tile-art {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: #141414;
  border: 1px solid rgba(255, 255, 255, .07);
  transition: transform .22s var(--ev-ease), border-color .22s ease, box-shadow .22s ease;
}
@supports not (aspect-ratio: 16 / 9) {
  .ev-tile-art { height: 0; padding-top: 56.25%; }
}
.ev-tile-art > .ev-logo { position: absolute; inset: 0; }
@media (hover: hover) {
  .ev-tile:hover .ev-tile-art { transform: scale(1.04); border-color: rgba(255, 255, 255, .22); box-shadow: 0 14px 34px rgba(0, 0, 0, .6); }
}
.ev-tile:focus-visible .ev-tile-art {
  transform: scale(1.04);
  outline: 3px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .6);
}
.ev-tile.is-now .ev-tile-art { border-color: rgba(255, 255, 255, .72); }
.ev-tile.is-dim .ev-tile-art { filter: grayscale(.6) brightness(.7); }

.ev-badge-live {
  position: absolute;
  left: 8px; top: 8px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 20px;
  padding: 0 7px;
  border-radius: 4px;
  background: var(--ev-red);
  color: #fff;
  font: 700 9.5px/1 Inter, sans-serif;
  letter-spacing: .12em;
}
.ev-badge-live i { width: 5px; height: 5px; border-radius: 50%; background: #fff; }
.ev-badge-vip {
  position: absolute;
  left: 8px; bottom: 8px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 6px;
  border-radius: 4px;
  border: 1px solid rgba(245, 185, 66, .5);
  background: rgba(0, 0, 0, .55);
  color: var(--vip, #f5b942);
  font: 700 9.5px/1 Inter, sans-serif;
  letter-spacing: .12em;
}
.ev-now {
  position: absolute;
  right: 10px; bottom: 10px;
  z-index: 2;
  display: none;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}
.ev-now i { width: 3px; height: 8px; border-radius: 1px; background: #fff; animation: evEq 1s ease-in-out infinite; }
.ev-now i:nth-child(2) { animation-delay: -.4s; }
.ev-now i:nth-child(3) { animation-delay: -.7s; }
.ev-tile.is-now .ev-now { display: flex; }
.ev-heart {
  position: absolute;
  right: 8px; top: 8px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font-size: 13px;
  opacity: 0;
  transition: opacity .18s ease, background .18s ease;
}
.ev-heart:hover { background: rgba(0, 0, 0, .82); }
.ev-heart.is-on { opacity: 1; }
.ev-tile:hover .ev-heart, .ev-tile:focus-within .ev-heart, .ev-heart:focus-visible { opacity: 1; }
@media (hover: none) { .ev-tile .ev-heart { opacity: 1; } }
/* Corazón dentro de la guía y de la barra superior */
.ev-heart-row, .ev-top .ev-heart { position: static; opacity: 1; width: 38px; height: 38px; border-color: transparent; background: transparent; }
.ev-heart-row:hover, .ev-top .ev-heart:hover { background: rgba(255, 255, 255, .12); }
.ev-now-row { position: static; display: flex; }

.ev-tile-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 9px 2px 0; }
.ev-tile-copy b { font: 600 14px/1.25 Inter, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-tile-meta { min-height: 1.3em; font: 500 12px/1.3 Inter, sans-serif; color: var(--ev-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-tile-ev { font: 600 12px/1.3 Inter, sans-serif; color: #e8e8e8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------------------------------------------------------------------------
   16. Eventos de hoy (deportes)
   ------------------------------------------------------------------------ */
.ev-event {
  flex: 0 0 var(--ev-event-w);
  width: var(--ev-event-w);
  min-width: 0;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 16px 16px;
  border-radius: 12px;
  background: linear-gradient(180deg, #171717, #111);
  border: 1px solid rgba(255, 255, 255, .07);
  color: #fff;
}
.ev-event.is-live { border-color: rgba(255, 255, 255, .18); }
.ev-event.is-final { opacity: .78; }
.ev-ev-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 20px; }
.ev-ev-league {
  min-width: 0;
  font: 600 11px/1.2 Inter, sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ev-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ev-ev-state { flex: none; font: 600 12px/1 Inter, sans-serif; color: #d6d6d6; font-variant-numeric: tabular-nums; }
.ev-ev-state.is-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 20px;
  padding: 0 7px;
  border-radius: 4px;
  background: var(--ev-red);
  color: #fff;
  font: 700 9.5px/1 Inter, sans-serif;
  letter-spacing: .12em;
}
.ev-ev-state.is-live i { width: 5px; height: 5px; border-radius: 50%; background: #fff; animation: evPulso 1.6s ease-in-out infinite; }
.ev-ev-body { display: flex; flex-direction: column; gap: 8px; }
.ev-team { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 28px; }
.ev-crest { width: 28px; height: 28px; border-radius: 50%; background: #222; }
.ev-crest > img { max-width: 78%; max-height: 78%; filter: none; }
.ev-crest > .ev-mono { font-size: 10px; color: #cfcfcf; }
.ev-team-name { min-width: 0; font: 600 15px/1.2 Inter, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-score { min-width: 1.4ch; font: 700 19px/1 Outfit, sans-serif; text-align: right; font-variant-numeric: tabular-nums; }
.ev-ev-title { margin: 0; font: 600 15px/1.35 Inter, sans-serif; }
.ev-ev-note { margin-top: -4px; font: 500 12px/1.2 Inter, sans-serif; color: var(--ev-dim); }
/* El botón principal va entero (antes se cortaba en "Ver e…" cuando había otros canales); las otras
   señales van en una segunda fila más chica. La altura fija del pie mantiene parejas las tarjetas. */
.ev-ev-foot { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 8px; min-width: 0; min-height: 80px; margin-top: auto; padding-top: 2px; }
.ev-ev-watch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 100%;
  justify-content: center;
  min-width: 0;
  max-width: 100%;
  height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: #0a0a0a;
  font: 700 13px/1 Inter, sans-serif;
}
.ev-ev-watch span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-ev-watch:hover { background: #e6e6e6; }
.ev-ev-alt {
  flex: 1 1 0;
  min-width: 0;
  max-width: none;
  height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .06);
  color: #e6e6e6;
  font: 600 12px/1 Inter, sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ev-ev-alt:hover { background: rgba(255, 255, 255, .12); }

/* ---------------------------------------------------------------------------
   17. Grilla (categoría o búsqueda), "Ver más" y vacíos
   ------------------------------------------------------------------------ */
.ev-gridwrap { margin-top: 4px; }
.ev-grid-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 14px; }
.ev-grid-head h2 { margin: 0; font: 700 clamp(20px, 1.8vw, 26px)/1.2 Outfit, sans-serif; letter-spacing: -.02em; }
.ev-grid-count { color: var(--ev-muted); font: 500 13px/1.3 Inter, sans-serif; font-variant-numeric: tabular-nums; }
.ev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 24px 14px; }
.ev-grid .ev-tile { flex: none; width: auto; }
.ev-more { display: flex; justify-content: center; margin: 30px 0 10px; }
.ev-more .soft-btn { min-height: 46px; padding: 0 22px; border-radius: 999px; }
.ev-empty { grid-column: 1 / -1; padding: 64px 20px; text-align: center; color: var(--ev-muted); }
.ev-empty > i { font-size: 34px; color: #3d3d3d; }
.ev-empty h3 { margin: 16px 0 6px; font: 700 20px/1.25 Outfit, sans-serif; color: #fff; }
.ev-empty p { max-width: 420px; margin: 0 auto 18px; font: 500 14px/1.5 Inter, sans-serif; }

/* Esqueletos mientras llega la lista */
.ev-sk-rail { margin: 0 0 30px; }
.ev-sk-row { display: flex; gap: 12px; padding-top: 10px; overflow: hidden; }
.ev-sk-tile { flex: 0 0 var(--ev-tile-w); display: flex; flex-direction: column; gap: 8px; }
.ev-sk {
  display: block;
  border-radius: 8px;
  background: linear-gradient(90deg, #141414 0%, #1e1e1e 45%, #141414 90%);
  background-size: 220% 100%;
  animation: evBrillo 1.4s linear infinite;
}
.ev-sk-title { width: 180px; height: 20px; border-radius: 6px; }
.ev-sk-art { aspect-ratio: 16 / 9; min-height: 80px; }
.ev-sk-line { width: 70%; height: 12px; border-radius: 4px; }
.ev-sk-short { width: 42%; }

/* Mi Lista: fila "Canales" */
.ev-milista { margin: 0 0 30px; }
.ev-milista-vacio { margin: 6px 0 0; color: var(--ev-muted); font: 500 14px/1.5 Inter, sans-serif; }

/* ---------------------------------------------------------------------------
   18. Foco (TV y teclado): anillo blanco, sin cian
   ------------------------------------------------------------------------ */
.ev-page button:focus-visible, .ev-page [role="button"]:focus-visible, .ev-page input:focus-visible, .ev-page [tabindex]:focus-visible,
.ev-player button:focus-visible, .ev-player input:focus-visible,
.ev-tile button:focus-visible, .ev-milista button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
  box-shadow: none;
}
/* Sobre video claro el anillo blanco necesita un halo oscuro (igual que el reproductor de películas) */
.ev-player button:focus-visible, .ev-player input:focus-visible { box-shadow: 0 0 0 5px rgba(0, 0, 0, .55); }
/* Filas de la guía: anillo interior (un outline lo recorta la lista con scroll) */
.ev-page .ev-grow:focus-visible { outline: none; box-shadow: inset 0 0 0 3px #fff; background: rgba(255, 255, 255, .12); }
.ev-tile[data-focusable=true]:focus-visible { outline: none !important; box-shadow: none !important; }
.ev-page [data-focusable=true]:not(.ev-tile):focus-visible,
.ev-player [data-focusable=true]:focus-visible {
  outline: 3px solid #fff !important;
  outline-offset: 3px !important;
  box-shadow: none !important;
}
.ev-player.ev-player:focus-visible { outline: none; }
.ev-player .primary-btn:focus-visible, .ev-page .primary-btn:focus-visible { outline-offset: 3px; }

/* ---------------------------------------------------------------------------
   19. Tamaño del reproductor (envivo.js pone data-ancho = s | m | l)
   ------------------------------------------------------------------------ */
.ev-player[data-ancho="s"] .ev-hide-s,
.ev-player[data-ancho="s"] #evChipSenal,
.ev-player[data-ancho="s"] .ev-top-logo,
.ev-player[data-ancho="s"] .ev-vol-range { display: none !important; }
.ev-player[data-ancho="s"] .ev-top { gap: 8px; padding: 8px 8px 0 4px; }
.ev-player[data-ancho="s"] .ev-top-copy h2 { font-size: 15px; }
.ev-player[data-ancho="s"] #liveControlMeta { font-size: 11px; }
.ev-player[data-ancho="s"] .ev-bottom { gap: 2px; padding: 0 4px 4px; }
.ev-player[data-ancho="s"] .ev-bar-left, .ev-player[data-ancho="s"] .ev-bar-mid, .ev-player[data-ancho="s"] .ev-bar-right { gap: 0; }
.ev-player[data-ancho="s"] .ev-guide-btn { width: 42px; padding: 0; border-radius: 50%; }
.ev-player[data-ancho="s"] .ev-guide-btn span { display: none; }
/* En 360px el texto no entra (pisaba CH−/CH+): queda solo el ícono, con aria-label y title */
.ev-player[data-ancho="s"] .ev-live-btn { width: 40px; height: 40px; margin-left: 0; padding: 0; justify-content: center; }
.ev-player[data-ancho="s"] .ev-live-btn span { display: none; }
/* Pantalla completa con el celular parado: los botones de 48px de .ev-fs no entran en 360px */
.ev-player.ev-fs[data-ancho="s"] .ev-bottom .ev-ibtn:not(.ev-guide-btn) { width: 44px; height: 44px; font-size: 17px; }
.ev-player[data-ancho="s"] .ev-zap { left: 8px; bottom: 54px; width: calc(100% - 16px); padding: 10px 12px 10px 10px; gap: 2px 12px; }
.ev-player[data-ancho="s"] .ev-zap-logo { width: 64px; height: 40px; }
.ev-player[data-ancho="s"] .ev-zap-copy b { font-size: 16px; }
.ev-player[data-ancho="s"] .ev-zap-nav { display: none; }
.ev-player[data-ancho="s"] .ev-loading { gap: 10px; padding: 46px 14px 52px; }
.ev-player[data-ancho="s"] .ev-load-logo { width: 84px; height: 52px; }
.ev-player[data-ancho="s"] .ev-load-logo > .ev-mono { font-size: 18px; }
.ev-player[data-ancho="s"] .ev-load-title { font-size: 13px; }
.ev-player[data-ancho="s"] .ev-load-slow p { display: none; }
.ev-player[data-ancho="s"] .ev-error { padding: 44px 12px 50px; }
.ev-player[data-ancho="s"] .ev-err-logo, .ev-player[data-ancho="s"] .ev-err p, .ev-player[data-ancho="s"] .ev-err-alts { display: none; }
.ev-player[data-ancho="s"] .ev-err h3 { font-size: 16px; }
.ev-player[data-ancho="s"] .ev-err-actions .primary-btn, .ev-player[data-ancho="s"] .ev-err-actions .secondary-btn { min-height: 40px; padding: 0 14px; font-size: 13px; }
.ev-player[data-ancho="s"] .ev-unmute { left: 8px; bottom: 54px; }
.ev-player[data-ancho="s"] .ev-center { width: 60px; height: 60px; margin: -30px 0 0 -30px; font-size: 22px; }
.ev-player[data-ancho="s"] .ev-menu { right: 8px; bottom: 54px; }
.ev-player[data-ancho="m"] .ev-err-alts-list { gap: 6px; }

/* ---------------------------------------------------------------------------
   20. Celular (≤768px)
   ------------------------------------------------------------------------ */
@media (max-width: 768px) {
  :root {
    --ev-tile-w: clamp(150px, 42vw, 190px);
    --ev-event-w: min(84vw, 330px);
  }
  .ev-head { align-items: stretch; margin: 4px 0 14px; }
  .ev-title { font-size: 34px; }
  .ev-sub { margin-top: 8px; font-size: 13px; }
  .ev-search { width: 100%; }
  .ev-chips { margin: -4px -14px 12px; padding: 7px 14px; }
  .ev-aviso { flex-wrap: wrap; }
  .ev-aviso-btn { width: 100%; }
  .ev-billboard { grid-template-columns: 1fr; gap: 16px; padding: 14px; margin-bottom: 24px; }
  .ev-bb-logo { aspect-ratio: 21 / 9; }
  .ev-bb-title { margin-top: 8px; }
  .ev-bb-actions { margin-top: 16px; }
  .ev-bb-actions .primary-btn { flex: 1; }
  /* El reproductor queda pegado arriba mientras se recorre la lista */
  .ev-page[data-activo="1"] .ev-dock {
    position: sticky;
    top: var(--topbar, 60px);
    z-index: 60;
    margin: 0 -14px 18px;
    background: var(--bg, #05070a);
  }
  .ev-frame { max-width: none; min-width: 0; }
  .ev-player { border-radius: 0; border-left: 0; border-right: 0; }
  .ev-page .ev-rail-scroll, .ev-milista .ev-rail-scroll { gap: 10px; padding: 8px 14px 14px; margin: 0 -14px; scroll-padding: 0 14px; }
  /* Portada en el celular: los mismos 16px de costado que los demás rieles, sin margen negativo */
  .ev-rail-home .ev-rail-scroll { padding: 8px 16px 14px; margin: 0; scroll-padding: 0 16px; }
  .ev-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 10px; }
  .ev-ibtn { width: 44px; height: 44px; }
  .ev-tile-copy b { font-size: 13px; }
  .ev-tile-meta, .ev-tile-ev { font-size: 11px; }
  .ev-mono { font-size: 20px; }
  .ev-err-alts-list { grid-template-columns: 1fr; }
  /* Guía como hoja inferior */
  .ev-guide {
    top: auto; left: 0; right: 0;
    width: auto;
    height: min(76dvh, 620px);
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, .1);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -24px 60px rgba(0, 0, 0, .6);
    animation-name: evHojaEntra;
  }
  .ev-guide-head { padding-top: 22px; }
  .ev-guide-head::before {
    content: "";
    position: absolute;
    top: 8px; left: 50%;
    width: 40px; height: 4px;
    margin-left: -20px;
    border-radius: 4px;
    background: rgba(255, 255, 255, .22);
  }
  .ev-grow { grid-template-columns: 24px 56px minmax(0, 1fr) 18px 44px; gap: 10px; }
}
/* Celular acostado en pantalla completa: la guía vuelve a ser panel lateral */
@media (max-width: 900px) and (max-height: 520px) and (orientation: landscape) {
  .ev-guide {
    top: 0; bottom: 0; left: auto; right: 0;
    width: min(400px, 60vw);
    height: auto;
    border-radius: 0;
    border-top: 0;
    border-left: 1px solid rgba(255, 255, 255, .08);
    animation-name: evGuiaEntra;
  }
  .ev-guide-head::before { display: none; }
}

/* ---------------------------------------------------------------------------
   21. TV y pantallas grandes
   ------------------------------------------------------------------------ */
@media (min-width: 1600px) {
  :root {
    --ev-tile-w: clamp(240px, 13vw, 310px);
    --ev-event-w: clamp(320px, 18vw, 384px);
  }
  .ev-tile-copy b { font-size: 15px; }
  .ev-tile-meta { font-size: 13px; }
  .ev-ibtn { width: 48px; height: 48px; font-size: 19px; }
  .ev-chip { height: 40px; font-size: 14px; }
  .ev-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
  .ev-guide { width: min(480px, 34vw); }
  /* A 3 m de la tele el anillo de 3px se pierde: 4px, como el reproductor de películas */
  .ev-page button:focus-visible, .ev-page [role="button"]:focus-visible, .ev-page input:focus-visible, .ev-page [tabindex]:focus-visible,
  .ev-player button:focus-visible, .ev-player input:focus-visible,
  .ev-tile button:focus-visible, .ev-milista button:focus-visible { outline-width: 4px; }
  .ev-page .ev-grow:focus-visible { box-shadow: inset 0 0 0 4px #fff; }
}

/* ---------------------------------------------------------------------------
   22. Movimiento reducido
   ------------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .ev-page *, .ev-page *::before, .ev-page *::after,
  .ev-player, .ev-player *, .ev-tile *, .ev-milista *,
  .ev-guide, .ev-guide-scrim, .ev-billboard {
    animation: none !important;
    transition: none !important;
  }
  .ev-tile:hover .ev-tile-art, .ev-tile:focus-visible .ev-tile-art { transform: none; }
  .ev-load-bar i { width: 100%; opacity: .5; }
  .ev-sk { background: #171717; }
}

/* ---------------------------------------------------------------------------
   23. Táctil: blancos de toque de 44px como mínimo (SPEC 7)
   Va al final para ganarle por orden a los bloques de ≤768px (misma especificidad).
   ------------------------------------------------------------------------ */
@media (pointer: coarse) {
  .ev-chip, .ev-gtab, .ev-ev-watch, .ev-ev-alt, .ev-live-btn { height: 44px; }
  .ev-player[data-ancho="s"] .ev-live-btn { width: 44px; height: 44px; }   /* solo ícono: redondo */
  .ev-mrow { min-height: 44px; }
  .ev-search-clear, .ev-heart-row { width: 44px; height: 44px; }
  .ev-ibtn { min-width: 44px; height: 44px; }   /* min-width y no width: .ev-guide-btn conserva width:auto con su "Guía" */
  .ev-mini .ev-mini-actions .ev-ibtn { min-width: 0; }   /* mini ventana (escritorio táctil): sus botones compactos siguen redondos */
  .ev-player[data-ancho="s"] .ev-guide-btn { width: 44px; height: 44px; }
  /* En 360px: 44+44+44 | 88 | 44+44+44 = 352 entran justo sin hueco entre grupos */
  .ev-player[data-ancho="s"] .ev-bottom { gap: 0; }
  .ev-tile .ev-heart::after { content: ""; position: absolute; inset: -6px; }   /* 32px a la vista, 44px al tocar */
  .ev-grow { grid-template-columns: 30px 60px minmax(0, 1fr) 18px 44px; }   /* lugar para el corazón de 44px en pantallas táctiles anchas */
}
@media (pointer: coarse) and (max-width: 768px) {
  .ev-grow { grid-template-columns: 24px 56px minmax(0, 1fr) 18px 44px; }   /* repite la grilla del celular para que la regla de arriba no la pise */
}


/* Ajustes tras probar en el celular (05-oct-2026):
   - el banner de zapeo ya nombra el canal: el "Conectando con…" de atrás se le superponía;
   - en el reproductor chico la barra de arriba iba muy cargada: se quedan el nombre y EN VIVO. */
.ev-player[data-ancho="s"]:has(.ev-zap:not(.hidden)) .ev-loading > * { visibility: hidden; }
.ev-player[data-ancho="s"] .ev-zap { bottom: 54px; padding: 10px 12px 10px 10px; gap: 4px 12px; }
.ev-player[data-ancho="s"] .ev-zap-logo { width: 72px; height: 44px; }
.ev-player[data-ancho="s"] .ev-zap-copy b { font-size: 16px; }
.ev-player[data-ancho="s"] .ev-zap-nav { display: none; }
.ev-player[data-ancho="s"] #liveControlMeta,
.ev-player[data-ancho="s"] #evChipCalidad,
.ev-player[data-ancho="s"] .ev-heart-top { display: none !important; }
.ev-bb-play, .ev-bb-fav { white-space: nowrap; }
