/* CONEXIONES 2026 · LA PANTALLA DEL SHOW (t-cnx-v52) · hoja ADITIVA, va después de cx2.css, adiciones.css y cronograma.css.
 * Solo aplica con .cx-vivo--barra (la pone js/cnx-show-pantalla.js): sin ese script la pantalla queda como en v51.
 * 1 · barra compacta ARRIBA, una línea de 32 px de dibujo; cada botón con 44 px de toque (::after), como la píldora de antes.
 * 2 · «¿Qué sigue?» se despliega debajo de la barra, sin taparla.
 * 3 · la pantalla de espera: deriva lenta (16 s) y el neón del tiquete que respira (5,2 s); nada que destelle. «Reducir movimiento»: quieta.
 * v55 (Kley, 01-12): fuera «el hilo»; el cronograma (y la cabecera de «¿Qué sigue?») con el arte del tiquete de producción. */

/* ── 1 · BARRA COMPACTA ──────────────────────────────────────────────── */
.cx-vivo--barra .cx-vivo-hud { top: calc(var(--borde) + 6px); bottom: auto; left: 8px; right: 8px; height: 32px; gap: 6px;
  padding: 2px 2px 2px 10px; background: rgba(0, 0, 0, .78); }
.cx-vivo--barra .cx-vivo-hud::before { top: -6px; height: 44px; }
.cx-vivo--barra .cx-vivo-btn { height: 28px; min-width: 38px; padding: 0 8px; }
.cx-vivo--barra .cx-vivo-btn::after { top: -8px; height: 44px; }
/* la señal: el punto + una palabra (el texto «EN VIVO · butaca» sigue en el DOM para lectores de pantalla y para mantener apretado) */
.cx-vivo--barra .cx-vivo-en { flex: 0 0 auto; min-width: 0; display: inline-flex; align-items: center; font-size: 0; line-height: 28px; letter-spacing: 0; }
.cx-vivo--barra .cx-vivo-en::before { margin: 0 6px 0 0; flex: 0 0 auto; }
.cx-vivo--barra .cx-vivo-en::after { content: "EN VIVO"; font: 800 9px var(--c2-titulo); letter-spacing: .14em; color: rgba(255, 255, 255, .62); white-space: nowrap; }
.cx-vivo--barra .cx-vivo-en[data-canal="respaldo"]::before { background: rgb(var(--c2-oro)); box-shadow: 0 0 6px rgba(var(--c2-oro), .8); }
.cx-vivo--barra .cx-vivo-en[data-canal="respaldo"]::after { content: "SEÑAL BAJA"; color: rgba(253, 230, 138, .8); }
.cx-vivo--barra .cx-vivo-en[data-canal="butaca"]::after { content: "SIN SEÑAL"; color: rgba(255, 255, 255, .45); }
/* el número: ocupa lo que sobra, una línea, puntos suspensivos */
.cx-bar-num { flex: 1 1 auto; justify-content: flex-start; gap: 6px; min-width: 0; padding: 0 8px; background: rgba(var(--c2-cian), .10);
  border: 1px solid rgba(var(--c2-cian), .28); color: #e9fbff; }
.cx-bar-num-t { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 800 10px var(--c2-titulo); letter-spacing: .08em; }
.cx-bar-flecha { flex: 0 0 auto; width: 6px; height: 6px; margin-top: -3px; border-right: 1.5px solid rgb(var(--c2-cian)); border-bottom: 1.5px solid rgb(var(--c2-cian));
  transform: rotate(45deg); transition: transform 200ms var(--deriva); }
.cx-bar-num[aria-expanded="true"] .cx-bar-flecha { transform: rotate(-135deg); margin-top: 3px; }
.cx-bar-num:disabled { opacity: .55; cursor: default; }
.cx-bar-num:disabled .cx-bar-flecha { display: none; }
/* Grabar y «Puedo no participar»: iconos (el texto queda para lectores de pantalla) */
.cx-vivo--barra #cx-vivo-grabar { font-size: 0; gap: 0; }
.cx-vivo--barra #cx-vivo-grabar > span, .cx-vivo--barra #cx-vivo-disc > span[aria-hidden], .cx-vivo--barra #cx-vivo-sens > span { font-size: 14px; }
.cx-vivo--barra .cx-vivo-disc-txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cx-vivo--barra .cx-vivo-btn--disc { flex: 0 0 auto; }
/* salir: ✕; armado (primer toque) se pone rojo y dice que hay que tocar otra vez */
.cx-bar-salir { flex: 0 0 auto; }
.cx-bar-salir-t { font: 800 13px var(--c2-ui); white-space: nowrap; }
.cx-bar-salir[data-armado="1"] { background: rgba(var(--c2-rojo), .9); }
/* armado: por 4 s la barra deja solo la señal, el número y el botón rojo (así «¿SALIR? TOCÁ OTRA VEZ» entra entero en 360 px) */
.cx-vivo--barra .cx-vivo-hud[data-salir="1"] #cx-vivo-grabar, .cx-vivo--barra .cx-vivo-hud[data-salir="1"] #cx-vivo-sens, .cx-vivo--barra .cx-vivo-hud[data-salir="1"] #cx-vivo-disc { display: none; }
.cx-bar-salir[data-armado="1"] .cx-bar-salir-t { font: 800 9.5px var(--c2-titulo); letter-spacing: .08em; }
/* lo que antes se acomodaba al HUD de abajo */
.cx-vivo--barra .cx-vivo-toast { top: calc(var(--borde) + 50px); }
.cx-vivo--barra .cx-vivo-guardar { bottom: calc(var(--pie) + 16px); }
.cx-vivo--barra .dm-lev { padding-top: calc(var(--borde) + 56px); }

/* ── 2 · ¿QUÉ SIGUE? ─────────────────────────────────────────────────── */
.cx-sigue { position: absolute; left: 8px; right: 8px; top: calc(var(--borde) + 46px); z-index: 10; min-width: 0;
  max-height: calc(100dvh - var(--borde) - var(--pie) - 58px); overflow-y: auto; overscroll-behavior: contain;
  border-radius: 16px; border: 1px solid #2A313C; background: rgba(7, 8, 11, .98);   /* v55: paleta apagada v53c (tinta #07080B, borde #2A313C) */
  box-shadow: 0 14px 40px rgba(0, 0, 0, .7); animation: cxSigueBaja 260ms var(--deriva); }
@keyframes cxSigueBaja { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.cx-sigue-cab { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0;
  padding: 6px 6px 6px 16px; background: rgba(7, 8, 11, .98); border-bottom: 2px dashed #2A313C;
  box-shadow: inset 6px 0 0 #6A1A2C, inset 8px 0 0 #F43F5E; }   /* v55: el talón rojo vino y la línea de corte del tiquete */
.cx-sigue-t { display: flex; align-items: center; gap: 9px; margin: 0; min-width: 0; font: 800 10px var(--c2-titulo); letter-spacing: .26em; color: #6FC3CF; }
/* el icono del cronograma de la v53c (cronograma.css lo deja en --ap-ic-crono) */
.cx-sigue-t::before { content: ""; flex: 0 0 auto; width: 20px; height: 20px; background: var(--ap-ic-crono) center / contain no-repeat; }
.cx-sigue-x { --c: 8px; flex: 0 0 auto; min-height: 44px; min-width: 44px; padding: 0 14px; border: 0; border-radius: 0; background: linear-gradient(180deg, #1A2029, #11151C 55%, #080A0E);
  clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c)); box-shadow: inset 0 0 0 1px #3B6E78;
  font: 800 11px var(--c2-ui); letter-spacing: .12em; color: #fff; cursor: pointer; }
.cx-sigue-x:focus-visible, .cx-bar-num:focus-visible, .cx-bar-salir:focus-visible { outline: 2px solid rgb(var(--c2-cian)); outline-offset: 2px; }
.cx-sigue-crono .cr { padding: 14px 12px 16px; }
/* nadie en escena (antes del primer número): sin el «MIRÁ EL ESCENARIO» de 60 dvh, que acá no tiene sentido */
.cx-sigue-crono .cr-mirar, .cx-espera-crono .cr-mirar { display: none; }

/* ── 3 · LA PANTALLA DE ESPERA ───────────────────────────────────────── */
.cx-espera { position: absolute; inset: 0; z-index: 8; overflow: hidden; background: #050507; opacity: 1; transition: opacity 600ms var(--deriva); }
.cx-espera[data-sale="1"] { opacity: 0; }
.cx-espera[hidden], .cx-sigue[hidden] { display: none !important; }
.cx-espera-fondo { position: absolute; inset: -20%; pointer-events: none; opacity: .55;
  background: radial-gradient(42% 30% at 28% 30%, rgba(var(--c2-cian), .22), transparent 70%),
    radial-gradient(40% 30% at 76% 72%, rgba(var(--c2-rojo), .16), transparent 70%);
  animation: cxEsperaDeriva 16s ease-in-out infinite alternate; }
@keyframes cxEsperaDeriva { from { transform: translate3d(-4%, -3%, 0) rotate(0deg); } to { transform: translate3d(4%, 3%, 0) rotate(6deg); } }
.cx-espera-in { position: relative; height: 100%; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; align-items: center;
  gap: 12px; padding: calc(var(--borde) + 66px) 16px calc(var(--pie) + 24px); text-align: center; }
.cx-espera-in > * { flex: 0 0 auto; min-width: 0; max-width: 26rem; width: 100%; }
.cx-espera-marca { width: auto; font-size: clamp(22px, 7vw, 30px); }
.cx-espera-t { margin: 0; font: 700 clamp(26px, 8vw, 32px)/1.1 var(--c2-texto); color: #fff; letter-spacing: .01em; }
.cx-espera-p { margin: 0; font: 600 13.5px/1.45 var(--c2-ui); color: #a1a1aa; }
.cx-espera-k { margin: 10px 0 0; font: 800 9.5px var(--c2-titulo); letter-spacing: .28em; color: #6FC3CF; }
.cx-espera-k[hidden] { display: none; }
.cx-espera-lista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; text-align: left; }
.cx-espera-fila { display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 44px; padding: 6px 14px; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .03); font: 700 15px/1.3 var(--c2-texto); color: #e4e4e7; }
.cx-espera-fila > * { min-width: 0; }
.cx-espera-fila svg { flex: 0 0 auto; width: 20px; height: 20px; fill: none; stroke: rgb(var(--c2-cian)); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cx-espera-crono { text-align: left; border-radius: 16px; border: 1px solid #2A313C; background: rgba(7, 8, 11, .82); }
/* el tiquete de la espera: su neón respira lento (solo filter, como el del tiquete de producción; 5,2 s por ciclo) */
.cx-espera-crono .cr-tiq-caja { animation: cxTiqNeon 5.2s ease-in-out infinite alternate; }
@keyframes cxTiqNeon { from { filter: drop-shadow(0 0 2px rgba(var(--c2-cian), .5)); } to { filter: drop-shadow(0 0 10px rgba(var(--c2-cian), .45)); } }
.cx-espera-crono:empty { display: none; }
.cx-espera-crono .cr { padding: 12px 12px 14px; }

@media (prefers-reduced-motion: reduce) {
  .cx-espera-fondo, .cx-espera-crono .cr-tiq-caja, .cx-sigue { animation: none !important; }
  .cx-espera, .cx-bar-flecha { transition: none !important; }
}
