html {
  background-color: #131313;
}

body.tv {
  margin: 0;
  padding: 0;
  background-color: #131313;
  color: #e5e2e1;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 24px;
  line-height: 1.4;
}

.tv__shell {
  display: table;
  width: 100%;
  height: 100%;
  min-height: 100vh;
}

.tv__fallback {
  display: table-cell;
  vertical-align: middle;
  text-align: center;
  padding: 48px;
}

.tv__eyebrow {
  margin: 0 0 16px 0;
  color: #53e076;
  font-size: 18px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.tv__title {
  margin: 0 0 24px 0;
  font-size: 64px;
  font-weight: bold;
  color: #fff;
}

.tv__message {
  margin: 0 auto;
  max-width: 720px;
  color: #bccbb9;
}

.tv__scrim {
  background-color: rgba(0, 0, 0, 0.2);
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
}

.tv__noscript {
  margin: 0;
  padding: 16px;
  text-align: center;
  color: #bccbb9;
  border-top: 1px solid #2a2a2a;
}

.tv-notice {
  display: table;
  width: 100%;
  min-height: 100vh;
  text-align: center;
}

.tv__notice {
  display: table-cell;
  vertical-align: middle;
  padding: 48px;
}

/* ==========================================================================
 * gez-party-tv · src/styles/projector/core.css
 *
 * Reseteos mínimos + tokens de color “Sonic Pulse” para la pantalla gigante.
 * CSS 2.1 + CSS3 (-webkit-* donde aporta compatibilidad de TV). Sin flexbox,
 * sin grid, sin CSS variables con fallback-computed, sin calc/clamp/vh/dvh.
 *
 * Tokens (de src/styles/app.css del backoffice):
 *   surface            #131313   on-surface          #e5e2e1
 *   surface-container-lowest  #0e0e0e  on-surface-variant #bccbb9
 *   surface-container  #201f1f   surface-container-high #2a2a2a
 *   surface-container-highest #353534  primary #53e076
 *   cyan-electric      #00e3fd   gold-euphoric #ffe792
 *   coral-destructive  #ff4d6d   magenta-primary #f235f2
 *   Aura (evento): fondo #fbf9f5, texto #1f1e1b, acento #b88e52, verde #284e3f,
 *                  borde #e7e2d7, muted #6c655a.
 * ========================================================================== */

html,
body {
  margin: 0;
  padding: 0;
  font-size: 16px; /* base de `em` antes de que JS aplique la escala raíz */
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #0e0e0e;
  color: #e5e2e1;
  font-family: "Plus Jakarta Sans", "Noto Sans", "DejaVu Sans", "Roboto",
    "Arial", sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  cursor: default;
}

*,
*:before,
*:after {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

button {
  font-family: inherit;
  font-size: inherit;
  margin: 0;
  cursor: pointer;
}

button::-moz-focus-inner {
  border: 0;
  padding: 0;
}

img {
  border: 0;
  vertical-align: middle;
}

h1,
h2,
h3,
p,
ul,
ol,
li,
blockquote,
figure {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

/* Accesibilidad: el texto real de los glifos se expone vía aria-label. */
.tv-sr-only {
  position: absolute;
  width: 0.0625em;
  height: 0.0625em;
  padding: 0;
  margin: -0.0625em;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Contenedor raíz de la vista: ocupa el 100% con posicionamiento absoluto
 * en lugar de height:100vh/dvh (TV antiguas). */
.tv-root {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  background-color: #0e0e0e;
  color: #e5e2e1;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  cursor: none;
}

/* Modo evento: fondo cálido claro. */
.tv-root.tv-mode-event {
  background-color: #fbf9f5;
  color: #1f1e1b;
}

/* Anti-burn-in: desplazamiento imperceptible (±3px cada 120 s) aplicado por
 * JS a header y footer; aquí solo la transición. */
.tv-shiftable {
  -webkit-transition: -webkit-transform 1s ease-in-out;
  transition: transform 1s ease-in-out;
}

/* Helper de accesibilidad para foco visible en botones (ver buttons.css). */
.tv-icon {
  display: inline-block;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
  vertical-align: middle;
}

/* ==========================================================================
 * gez-party-tv · src/styles/projector/02-font.css
 *
 * TIPOGRAFÍA: pila sans-serif legible de TV (fallback exigido). No se cargan
 * webfonts ni glifos PNG en runtime: el texto se pinta nativo y el ajuste de
 * tamaño lo hace JS con búsqueda binaria (scrollWidth/scrollHeight).
 *
 * La marca visual de referencia usa "Plus Jakarta Sans" (SIL OFL 1.1); si el
 * dispositivo la tiene instalada se usa, si no se degrada a Noto/DejaVu/Roboto/
 * Arial sin romper el layout. NO se sirve webfont para no arriesgar licencia ni
 * compatibilidad en Orsay.
 *
 * Prohibido aquí: flex, grid, gap, variables CSS y capas modernas,
* consultas de contenedor, filter, animar ancho/alto.
 * Solo CSS 2.1 + CSS3 prefijado.
 * ========================================================================== */

/* Cita protagonista: texto nativo ajustado por JS (view-model / dom.ts). */
.tv-quote-text {
  display: block;
  margin: 0;
  padding: 0;
  width: auto;
  text-align: center;
  font-family: "Plus Jakarta Sans", "Noto Sans", "DejaVu Sans", "Roboto",
    "Arial", sans-serif;
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.2;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* ==========================================================================
 * gez-party-tv · src/styles/projector/pairing.css
 *
 * Pantalla de emparejamiento. Reproduce `ProjectorPairingScreen` del
 * backoffice SIN QR: no hay QR, no hay Canvas, no aparece “escanea” en la
 * pantalla de emparejamiento (solo instrucciones de código).
 *
 * Layout con posicionamiento absoluto + inline-block (CSS 2.1 friendly).
 * Escala con una única clase raíz `.tv-scale-{540|720|1080}` en <html>
 * (la fija el entrypoint en función del alto de la ventana, sin ResizeObserver).
 * ========================================================================== */

/* ---------------------------------------------------------------- Escalas */
/* Toda la hoja usa `em`; esta regla fija la escala raíz según viewport.    */
/* 1em = 16px a 1080p, 13.5px a 720p y 10.5px a 540p (proporción fiel BO).  */
body.tv-scale-1080 .tv-root {
  font-size: 16px;
}
body.tv-scale-720 .tv-root {
  font-size: 13.5px;
}
body.tv-scale-540 .tv-root {
  font-size: 10.5px;
}
body.tv-portrait.tv-scale-720 .tv-root {
  font-size: 12px;
}
body.tv-portrait.tv-scale-540 .tv-root {
  font-size: 9.5px;
}

/* ---------------------------------------------------------------- Página */
.tv-pair {
  text-align: center;
  padding: 1.5em 4em;
  background-color: #0e0e0e;
}

/* Aurora de fondo (equivalente a blur 140px cyan 20% con opacidad 30%). */
.tv-pair-aurora {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 37.5em;
  height: 37.5em;
  margin-left: -18.75em;
  margin-top: -18.75em;
  border-radius: 50%;
  background-color: rgba(0, 227, 253, 0.06);
  -webkit-box-shadow: 0 0 8.75em 2.5em rgba(0, 227, 253, 0.14);
  box-shadow: 0 0 8.75em 2.5em rgba(0, 227, 253, 0.14);
  pointer-events: none;
  opacity: 0.3;
}

/* ---------------------------------------------------------------- Header */
.tv-pair-header {
  position: relative;
  width: 100%;
  padding-bottom: 1.5em;
  border-bottom: 0.0625em solid rgba(53, 53, 52, 0.6);
  text-align: left;
  height: 6em;
}

.tv-pair-brand {
  position: absolute;
  left: 0;
  top: 0;
}

.tv-pair-brand-icon {
  display: inline-block;
  width: 3.5em;
  height: 3.5em;
  line-height: 3.5em;
  text-align: center;
  border: 0.0625em solid rgba(0, 227, 253, 0.3);
  border-radius: 0.75em;
  background-color: rgba(0, 227, 253, 0.15);
  vertical-align: middle;
}

.tv-pair-brand-icon .tv-icon {
  width: 2em;
  height: 2em;
}

.tv-pair-brand-text {
  display: inline-block;
  vertical-align: middle;
  margin-left: 1em;
}

.tv-pair-title {
  font-family: "Plus Jakarta Sans", "Noto Sans", "DejaVu Sans", sans-serif;
  font-size: 1.875em;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #e5e2e1;
}

.tv-pair-subtitle {
  font-size: 1em;
  line-height: 1.3;
  color: #bccbb9;
  margin-top: 0.125em;
}

/* Píldora de estado */
.tv-pair-badge {
  position: absolute;
  right: 0;
  top: 0.25em;
  height: 2.75em;
  line-height: 2.625em;
  padding: 0 1.5em;
  border: 0.0625em solid rgba(53, 53, 52, 0.8);
  border-radius: 1.375em;
  background-color: #201f1f;
  text-align: right;
  white-space: nowrap;
}

.tv-pair-badge-dot {
  display: inline-block;
  position: relative;
  width: 0.875em;
  height: 0.875em;
  margin-right: 0.75em;
  vertical-align: middle;
  border-radius: 50%;
  background-color: #00e3fd;
}

.tv-pair-badge-dot.tv-dot-gold {
  background-color: #ffe792;
}
.tv-pair-badge-dot.tv-dot-coral {
  background-color: #ff4d6d;
}

.tv-pair-badge-ping {
  position: absolute;
  left: -0.3125em;
  top: -0.3125em;
  width: 1.5em;
  height: 1.5em;
  border-radius: 50%;
  background-color: currentColor;
  opacity: 0.7;
  -webkit-animation: tv-ping 1.2s cubic-bezier(0, 0, 0.2, 1) infinite;
  animation: tv-ping 1.2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.tv-pair-badge-dot.tv-dot-cyan .tv-pair-badge-ping {
  background-color: #00e3fd;
}
.tv-pair-badge-dot.tv-dot-gold .tv-pair-badge-ping {
  background-color: #ffe792;
}

.tv-pair-badge-label {
  display: inline-block;
  vertical-align: middle;
  font-size: 1em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tv-pair-badge-label.tv-text-cyan {
  color: #00e3fd;
}
.tv-pair-badge-label.tv-text-gold {
  color: #ffe792;
}
.tv-pair-badge-label.tv-text-coral {
  color: #ff4d6d;
}

@-webkit-keyframes tv-ping {
  0% {
    -webkit-transform: scale(1);
    transform: scale(1);
    opacity: 0.7;
  }
  75%,
  100% {
    -webkit-transform: scale(2);
    transform: scale(2);
    opacity: 0;
  }
}
@keyframes tv-ping {
  0% {
    -webkit-transform: scale(1);
    transform: scale(1);
    opacity: 0.7;
  }
  75%,
  100% {
    -webkit-transform: scale(2);
    transform: scale(2);
    opacity: 0;
  }
}

/* ---------------------------------------------------------------- Tarjeta */
.tv-pair-main {
  position: absolute;
  left: 4%;
  right: 4%;
  top: 7.5em;
  bottom: 5.5em;
  display: table;
  width: 92%;
  max-width: 56em;
  height: auto;
  margin: 0 auto;
}

.tv-pair-main-cell {
  display: table-cell;
  vertical-align: middle;
  width: 100%;
  text-align: center;
}

.tv-pair-card {
  position: relative;
  display: block;
  width: 100%;
  padding: 2.5em 3em;
  border: 0.125em solid #353534;
  border-radius: 1.25em;
  background-color: rgba(32, 31, 31, 0.85);
  text-align: center;
  overflow: hidden;
  -webkit-box-shadow: 0 1.5625em 3.125em -0.75em rgba(0, 0, 0, 0.6);
  box-shadow: 0 1.5625em 3.125em -0.75em rgba(0, 0, 0, 0.6);
}

body.tv-scale-720 .tv-pair-card {
  padding: 2em 2.25em;
}

body.tv-scale-540 .tv-pair-card,
body.tv-portrait .tv-pair-card {
  padding: 1.5em 1.25em;
}

/* Bloque de estado genérico (CHECKING, RECONNECTING, RATE_LIMITED, FATAL). */
.tv-pair-state {
  padding: 1.25em 0;
}

/* Bloque que escala en altura con su contenido (centrado manual en JS no
 * es necesario: usamos margen negativo simétrico por mitad del alto conocido
 * en cada estado; el contenedor .tv-pair-card se ajusta por estado). */

.tv-pair-state-icon {
  display: inline-block;
  width: 4em;
  height: 4em;
  line-height: 4em;
  border-radius: 0.75em;
  text-align: center;
  margin-bottom: 1.5em;
}

.tv-pair-state-icon .tv-icon {
  width: 2.25em;
  height: 2.25em;
}

.tv-icon-box-cyan {
  background-color: rgba(0, 227, 253, 0.15);
  border: 0.0625em solid rgba(0, 227, 253, 0.3);
}
.tv-icon-box-gold {
  background-color: rgba(255, 231, 146, 0.15);
  border: 0.0625em solid rgba(255, 231, 146, 0.3);
}
.tv-icon-box-coral {
  background-color: rgba(255, 77, 109, 0.15);
  border: 0.0625em solid rgba(255, 77, 109, 0.3);
}

.tv-pair-loading {
  width: 3.5em;
  height: 3.5em;
  -webkit-animation: tv-spin 1s linear infinite;
  animation: tv-spin 1s linear infinite;
}

@-webkit-keyframes tv-spin {
  to {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@keyframes tv-spin {
  to {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

.tv-pair-h2 {
  font-family: "Plus Jakarta Sans", "Noto Sans", "DejaVu Sans", sans-serif;
  font-size: 2.25em;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #e5e2e1;
  margin: 0 auto 1em;
  max-width: 40em;
}

.tv-pair-p {
  font-size: 1.125em;
  line-height: 1.4;
  color: #bccbb9;
  margin: 0 auto 1em;
  max-width: 36em;
}

.tv-pair-p-sm {
  font-size: 1em;
}

.tv-pair-hint-gold {
  color: #ffe792;
  font-weight: 600;
}

.tv-pair-strong {
  color: #e5e2e1;
  font-weight: 800;
}

/* Código visible: píldora “CERO CREDENCIALES”. */
.tv-pair-pill {
  display: inline-block;
  padding: 0.375em 1em;
  border: 0.0625em solid rgba(0, 227, 253, 0.2);
  border-radius: 62.4375em;
  background-color: rgba(0, 227, 253, 0.1);
  color: #00e3fd;
  font-size: 0.875em;
  font-weight: 600;
  margin-bottom: 1.5em;
}

.tv-pair-pill .tv-icon {
  width: 1em;
  height: 1em;
  margin-right: 0.5em;
}

.tv-pair-reconnect-banner {
  display: inline-block;
  text-align: left;
  padding: 0.75em 1.5em;
  margin-bottom: 1.5em;
  border: 0.0625em solid rgba(255, 231, 146, 0.4);
  border-radius: 1em;
  background-color: rgba(255, 231, 146, 0.15);
  color: #ffe792;
  font-size: 1.125em;
  font-weight: 700;
}

.tv-pair-reconnect-banner .tv-icon {
  width: 1.25em;
  height: 1.25em;
  margin-right: 0.75em;
}

.tv-pair-instructions {
  font-size: 1.5em;
  font-weight: 500;
  line-height: 1.35;
  color: #bccbb9;
  max-width: 42em;
  margin: 0 auto 2em;
}

.tv-pair-instructions .tv-pair-tv-chip {
  display: inline-block;
  width: 2em;
  height: 1.75em;
  line-height: 1.625em;
  border-radius: 0.75em;
  background-color: #2a2a2a;
  border: 0.0625em solid rgba(255, 255, 255, 0.1);
  text-align: center;
  vertical-align: middle;
  margin: 0 0.25em;
}

.tv-pair-instructions .tv-pair-tv-chip .tv-icon {
  width: 1.125em;
  height: 1.125em;
}

/* Código Base32 gigante (proporcionado y sin desborde en ninguna resolución) */
.tv-pair-code-box {
  display: inline-block;
  max-width: 100%;
  padding: 1.25em 2.25em;
  margin: 0.75em 0;
  border: 0.0625em solid rgba(0, 227, 253, 0.4);
  border-radius: 1em;
  background-color: rgba(14, 14, 14, 0.9);
  overflow: hidden;
  -webkit-box-shadow: inset 0 0.125em 0.75em rgba(0, 0, 0, 0.6);
  box-shadow: inset 0 0.125em 0.75em rgba(0, 0, 0, 0.6);
}

.tv-pair-code-box.tv-pair-code-expired {
  border-color: rgba(255, 231, 146, 0.3);
  opacity: 0.4;
}

.tv-pair-code {
  display: inline-block;
  font-family: "Plus Jakarta Sans", "Noto Sans", "DejaVu Sans", sans-serif;
  font-weight: 900;
  font-size: 4.75em;
  line-height: 1;
  letter-spacing: 0.12em;
  color: #00e3fd;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  /* drop-shadow(0 0 35px cyan 35%) ⇒ text-shadow equivalente. */
  text-shadow: 0 0 2.1875em rgba(0, 227, 253, 0.35);
}

body.tv-scale-720 .tv-pair-code {
  font-size: 4em;
  letter-spacing: 0.1em;
}

body.tv-scale-540 .tv-pair-code,
body.tv-portrait .tv-pair-code {
  font-size: 3em;
  letter-spacing: 0.08em;
}

body.tv-portrait .tv-pair-code-box {
  padding: 1em 1.25em;
}

body.tv-portrait .tv-pair-footer-right {
  display: none;
}

.tv-pair-meta {
  display: block;
  margin-top: 2em;
  color: #bccbb9;
  font-size: 1.125em;
  line-height: 1.4;
  text-align: center;
}

.tv-pair-meta-label {
  vertical-align: middle;
}

.tv-pair-meta-clock {
  font-family: "DejaVu Sans Mono", "Menlo", "Consolas", "Courier New", monospace;
  font-weight: 700;
  font-size: 1.25em;
  color: #ffe792;
  margin-left: 0.5em;
  vertical-align: middle;
  font-variant-numeric: tabular-nums;
}

.tv-pair-meta .tv-btn {
  margin-left: 1em;
}

/* Aviso de expiración */
.tv-pair-expired-title {
  font-size: 1.5em;
  font-weight: 700;
  color: #ffe792;
  margin: 0.5em 0;
}

.tv-pair-expired-sub {
  font-size: 1em;
  color: #bccbb9;
  margin-bottom: 1em;
}

/* Rate-limit contador */
.tv-pair-limit-box {
  display: inline-block;
  padding: 1.5em 2.5em;
  margin: 0.5em 0;
  border: 0.0625em solid rgba(255, 231, 146, 0.4);
  border-radius: 1em;
  background-color: rgba(14, 14, 14, 0.9);
  text-align: center;
}

.tv-pair-limit-label {
  display: block;
  font-size: 0.875em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #bccbb9;
  margin-bottom: 0.5em;
}

.tv-pair-limit-clock {
  display: block;
  font-family: "DejaVu Sans Mono", "Menlo", "Consolas", "Courier New", monospace;
  font-weight: 900;
  font-size: 4em;
  line-height: 1;
  color: #ffe792;
  font-variant-numeric: tabular-nums;
}

/* Píldora técnica de soporte */
.tv-pair-technical {
  margin-top: 2em;
  text-align: center;
}

.tv-pair-technical span {
  display: inline-block;
  max-width: 100%;
  padding: 0.375em 1em;
  border: 0.0625em solid #353534;
  border-radius: 62.4375em;
  background-color: rgba(14, 14, 14, 0.9);
  font-family: "DejaVu Sans Mono", "Menlo", "Consolas", "Courier New", monospace;
  font-size: 0.75em;
  color: rgba(188, 203, 185, 0.8);
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

/* ---------------------------------------------------------------- Footer */
.tv-pair-footer {
  position: absolute;
  left: 4em;
  right: 4em;
  bottom: 1.5em;
  padding-top: 1.5em;
  border-top: 0.0625em solid rgba(53, 53, 52, 0.4);
  color: rgba(188, 203, 185, 0.7);
  font-size: 0.875em;
  line-height: 1.4;
  text-align: left;
}

.tv-pair-footer-left {
  display: inline-block;
  vertical-align: middle;
}

.tv-pair-footer-right {
  position: absolute;
  right: 0;
  top: 1.5em;
  max-width: 40em;
  text-align: right;
  vertical-align: middle;
}

.tv-pair-http-badge {
  display: inline-block;
  padding: 0.25em 0.75em;
  border: 0.0625em solid rgba(255, 231, 146, 0.3);
  border-radius: 62.4375em;
  background-color: rgba(255, 231, 146, 0.1);
  color: #ffe792;
  font-size: 0.75em;
  font-weight: 600;
}

.tv-pair-http-badge .tv-icon {
  width: 0.875em;
  height: 0.875em;
  margin-right: 0.375em;
}

/* ---------------------------------------------------------------- Botones */
.tv-btn {
  display: inline-block;
  vertical-align: middle;
  border: 0;
  border-radius: 62.4375em;
  padding: 1em 2em;
  font-family: "Plus Jakarta Sans", "Noto Sans", "DejaVu Sans", sans-serif;
  font-size: 1.125em;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  background-color: #00e3fd;
  color: #0e0e0e;
  -webkit-transition: opacity 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  transition: opacity 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.tv-btn .tv-icon {
  width: 1.25em;
  height: 1.25em;
  margin-right: 0.75em;
}

.tv-btn-primary:hover,
.tv-btn-primary:focus {
  opacity: 0.9;
}

.tv-btn-ghost {
  padding: 1em 1.5em;
  font-size: 1em;
  font-weight: 700;
  background-color: #2a2a2a;
  color: #e5e2e1;
  border: 0.0625em solid #353534;
}

.tv-btn-ghost .tv-icon {
  width: 1em;
  height: 1em;
  margin-right: 0.5em;
}

.tv-btn-small {
  padding: 0.5em 1em;
  font-size: 0.875em;
  font-weight: 600;
  background-color: #2a2a2a;
  color: #bccbb9;
  border: 0.0625em solid #353534;
}

.tv-btn-small .tv-icon {
  width: 1em;
  height: 1em;
  margin-right: 0.5em;
}

/* Foco visible (D-pad / teclado) — sin outline:none, con ring cian. */
.tv-btn:focus {
  outline: none;
}
.tv-btn:focus-visible,
.tv-root.tv-keyboard-nav .tv-btn:focus {
  -webkit-box-shadow: 0 0 0 0.25em rgba(0, 227, 253, 0.4);
  box-shadow: 0 0 0 0.25em rgba(0, 227, 253, 0.4);
}

/* Botón “accionando” (evita doble acción por click + keydown). */
.tv-btn[disabled],
.tv-btn.tv-btn-busy {
  opacity: 0.5;
  cursor: default;
}

/* ==========================================================================
 * gez-party-tv · src/styles/projector/live.css
 *
 * Escenario EN VIVO. Reproduce `ProjectorLiveStage` + `ActiveConfessionStage`
 * + `SpotlightConfessionSlide` + `BottomBlurredDeck` + `DwellProgressBar`
 * + `LiveReactionFountain` + `ProjectorPhotoFrame` + `ProjectorClubPulseBadge`,
 * con la única excepción intencional: SIN QR (el footer muestra ClubPulse,
 * código de sala y `/r/<code>` como texto).
 *
 * Toda animación mueve SOLO `opacity` y `transform`; nada de width/height/
 * top/left animados.
 * ========================================================================== */

/* Refuerzo visual del root en modo live (cursor oculto como en referencia). */
.tv-root.tv-live {
  padding: 1.25em 1.5em;
  cursor: none;
}

body.tv-scale-720 .tv-root.tv-live {
  padding: 1em 1.25em;
}
body.tv-scale-540 .tv-root.tv-live,
body.tv-portrait .tv-root.tv-live {
  padding: 0.75em 1em;
}

/* Fondo: aura radial (club oscuro / evento claro). */
.tv-live-bg {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
}

.tv-live-bg-club {
  background: #131313; /* fallback plano para TVs sin degradados */
  background-image: radial-gradient(ellipse at top, #201f1f 0%, #0e0e0e 100%);
}

.tv-live-bg-event {
  background: #fbf9f5;
  background-image: radial-gradient(ellipse at top, #fffdf9 0%, #f2ece0 100%);
}

/* ---------------------------------------------------------------- Header */
.tv-live-header {
  position: absolute;
  left: 1.5em;
  right: 1.5em;
  top: 1em;
  height: 2.875em;
  line-height: 2.25em;
  padding-bottom: 0.625em;
  border-bottom: 0.0625em solid rgba(53, 53, 52, 0.4);
  z-index: 40;
  text-align: left;
  white-space: nowrap;
}

body.tv-scale-720 .tv-live-header {
  left: 1.25em;
  right: 1.25em;
  top: 0.875em;
}

body.tv-scale-540 .tv-live-header,
body.tv-portrait .tv-live-header {
  left: 1em;
  right: 1em;
  top: 0.75em;
}

.tv-live-event .tv-live-header,
.tv-live-event .tv-live-footer {
  border-color: #e7e2d7;
}

.tv-live-header-left {
  display: inline-block;
  vertical-align: middle;
  max-width: 70%;
  overflow: hidden;
}

.tv-live-dot {
  display: inline-block;
  position: relative;
  width: 0.5em;
  height: 0.5em;
  margin-right: 0.625em;
  vertical-align: middle;
  border-radius: 50%;
  background-color: #00e3fd;
}

.tv-live-event .tv-live-dot {
  background-color: #284e3f;
}

.tv-live-dot.tv-live-dot-closed {
  background-color: #ffe792;
}

.tv-live-event .tv-live-dot.tv-live-dot-closed {
  background-color: #b88e52;
}

.tv-live-dot-ping {
  position: absolute;
  left: -0.125em;
  top: -0.125em;
  width: 0.75em;
  height: 0.75em;
  border-radius: 50%;
  background-color: #00e3fd;
  opacity: 0.75;
  -webkit-animation: tv-ping 1.2s cubic-bezier(0, 0, 0.2, 1) infinite;
  animation: tv-ping 1.2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.tv-live-event .tv-live-dot-ping {
  background-color: #284e3f;
}

.tv-live-venue {
  display: inline-block;
  vertical-align: middle;
  font-family: "Plus Jakarta Sans", "Noto Sans", "DejaVu Sans", sans-serif;
  font-size: 1.125em;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: #e5e2e1;
  max-width: 32.5em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tv-live-event .tv-live-venue {
  color: #1f1e1b;
}

.tv-live-subtitle {
  display: inline-block;
  vertical-align: baseline;
  font-size: 0.875em;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #bccbb9;
  margin-left: 0.625em;
  max-width: 26.25em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tv-live-event .tv-live-subtitle {
  color: #6c655a;
}

.tv-live-header-right {
  position: absolute;
  right: 0;
  top: 0.125em;
  height: 2em;
  line-height: 2em;
  white-space: nowrap;
}

/* Píldoras del header */
.tv-live-pill {
  display: inline-block;
  vertical-align: middle;
  height: 2em;
  line-height: 1.875em;
  padding: 0 0.875em;
  margin-left: 0.5em;
  border: 0.0625em solid rgba(255, 231, 146, 0.4);
  border-radius: 62.4375em;
  background-color: rgba(32, 31, 31, 0.85);
  color: #ffe792;
  font-size: 0.75em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.tv-live-pill .tv-icon {
  width: 0.875em;
  height: 0.875em;
  margin-right: 0.4375em;
}

.tv-live-event .tv-live-pill {
  border-color: rgba(184, 142, 82, 0.45);
  background-color: rgba(255, 255, 255, 0.95);
  color: #8c6935;
}

.tv-live-pill-neutral {
  border-color: #353534;
  background-color: rgba(32, 31, 31, 0.7);
  color: #bccbb9;
}

.tv-live-event .tv-live-pill-neutral {
  border-color: #e7e2d7;
  background-color: rgba(255, 255, 255, 0.9);
  color: #6c655a;
}

.tv-live-pill-closed {
  border-color: rgba(255, 231, 146, 0.4);
  background-color: rgba(255, 231, 146, 0.15);
  color: #ffe792;
}

.tv-live-event .tv-live-pill-closed {
  border-color: rgba(184, 142, 82, 0.45);
  background-color: rgba(184, 142, 82, 0.12);
  color: #8c6935;
}

.tv-live-pill-dot {
  display: inline-block;
  width: 0.375em;
  height: 0.375em;
  margin-right: 0.5em;
  border-radius: 50%;
  background-color: currentColor;
  vertical-align: middle;
}

.tv-live-pill-status {
  border-color: #353534;
  background-color: rgba(32, 31, 31, 0.9);
  color: #53e076;
}

.tv-live-event .tv-live-pill-status {
  border-color: #e7e2d7;
  background-color: rgba(255, 255, 255, 0.9);
  color: #284e3f;
}

/* Conectando (gold) / desconectado (coral) */
.tv-live-pill-status.tv-status-connecting {
  color: #ffe792;
}
.tv-live-pill-status.tv-status-disconnected {
  color: #ff4d6d;
}
.tv-live-event .tv-live-pill-status.tv-status-connecting {
  color: #b88e52;
}
.tv-live-event .tv-live-pill-status.tv-status-disconnected {
  color: #ff4d6d;
}

.tv-live-pill-status .tv-live-pill-dot {
  -webkit-animation: tv-pulse 1.6s ease-in-out infinite;
  animation: tv-pulse 1.6s ease-in-out infinite;
}

@-webkit-keyframes tv-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}
@keyframes tv-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

/* ---------------------------------------------------------------- Escenario */
.tv-live-main {
  position: absolute;
  left: 1.5em;
  right: 1.5em;
  top: 4.625em;
  bottom: 8.25em;
  overflow: visible;
  z-index: 10;
}

body.tv-scale-720 .tv-live-main {
  left: 1.25em;
  right: 1.25em;
  top: 4.375em;
  bottom: 7.5em;
}
body.tv-scale-540 .tv-live-main,
body.tv-portrait .tv-live-main {
  left: 1em;
  right: 1em;
  top: 4em;
  bottom: 6.75em;
}

.tv-live-stage {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
}

/* Reserva espacio inferior cuando hay barra de dwell para que el mazo y la
 * barra respiren debajo de la tarjeta (fiel al Backoffice). */
.tv-stage-has-dwell .tv-slide-holder,
.tv-stage-has-dwell .tv-deck-layer {
  bottom: 1.625em;
}

/* Pila de capas con z-index explícito (sin isolate). */
.tv-deck-layer {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  border: 0.125em solid;
  border-radius: 1.5em;
  -webkit-transform-origin: bottom center;
  transform-origin: bottom center;
  -webkit-transform: translate(0, 0.625em) scale(0.97, 0.99);
  transform: translate(0, 0.625em) scale(0.97, 0.99);
  -webkit-transition: opacity 0.5s ease, -webkit-transform 0.5s ease;
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}

.tv-deck-layer-1 {
  opacity: 0.6;
  -webkit-box-shadow: 0 1.25em 1.5625em -0.3125em rgba(0, 0, 0, 0.3);
  box-shadow: 0 1.25em 1.5625em -0.3125em rgba(0, 0, 0, 0.3);
}

.tv-deck-layer-2 {
  z-index: 0;
  opacity: 0.35;
  -webkit-transform: translate(0, 1.25em) scale(0.94, 0.98);
  transform: translate(0, 1.25em) scale(0.94, 0.98);
}

.tv-live-event .tv-deck-layer-1 {
  opacity: 0.7;
}
.tv-live-event .tv-deck-layer-2 {
  opacity: 0.45;
}

.tv-slide-holder {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  -webkit-transform-origin: center center;
  transform-origin: center center;
  will-change: transform, opacity;
}

.tv-slide-holder.tv-slide-outgoing {
  z-index: 30;
  pointer-events: none;
}

/* Barra de dwell (siempre visible bajo la tarjeta cuando hay cola/rotación). */
.tv-dwell {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 0.375em;
  border-radius: 62.4375em;
  overflow: hidden;
  background-color: rgba(53, 53, 52, 0.7);
  z-index: 35;
}

.tv-live-event .tv-dwell {
  background-color: #e7e2d7;
}

.tv-dwell-fill {
  width: 100%;
  height: 100%;
  border-radius: 62.4375em;
  background-color: rgba(0, 227, 253, 0.8);
  -webkit-transform-origin: left center;
  transform-origin: left center;
  -webkit-transform: scaleX(0);
  transform: scaleX(0);
  /* Sólo `transform` se anima; la duración se fija inline por dwell restante. */
  -webkit-transition-property: -webkit-transform;
  transition-property: transform;
  -webkit-transition-timing-function: linear;
  transition-timing-function: linear;
  -webkit-transition-duration: 0s;
  transition-duration: 0s;
}

.tv-live-event .tv-dwell-fill {
  background: #b88e52;
  background-image: linear-gradient(to right, #b88e52 0%, #284e3f 100%);
}

/* ---------------------------------------------------------------- Tarjeta */
.tv-slide {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  padding: 1.5em;
  border-radius: 1.5em;
  overflow: hidden;
  text-align: left;
  -webkit-transition: opacity 0.3s ease, -webkit-transform 0.3s ease;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

body.tv-scale-720 .tv-slide {
  padding: 1.125em;
}
body.tv-scale-540 .tv-slide {
  padding: 0.875em;
}

/* Club: oscuro con borde de color; Evento: blanco con borde suave. */
.tv-slide-club {
  border: 0.125em solid rgba(0, 227, 253, 0.3);
  background-color: rgba(32, 31, 31, 0.85);
  -webkit-box-shadow: 0 1.5625em 3.125em -0.75em rgba(0, 0, 0, 0.6);
  box-shadow: 0 1.5625em 3.125em -0.75em rgba(0, 0, 0, 0.6);
}

.tv-slide-event {
  border: 0.0625em solid #e7e2d7;
  background-color: #fff;
  color: #1f1e1b;
  -webkit-box-shadow: 0 0.75em 1.875em -0.375em rgba(31, 30, 27, 0.08),
    0 0.25em 0.625em -0.125em rgba(31, 30, 27, 0.04);
  box-shadow: 0 0.75em 1.875em -0.375em rgba(31, 30, 27, 0.08),
    0 0.25em 0.625em -0.125em rgba(31, 30, 27, 0.04);
}

/* Columnas foto/texto: dos bloques absolutos sin flex/grid. */
.tv-slide-body {
  position: absolute;
  left: 1.5em;
  top: 1.5em;
  right: 1.5em;
  bottom: 1.5em;
}

body.tv-scale-720 .tv-slide-body {
  left: 1.25em;
  top: 1.25em;
  right: 1.25em;
  bottom: 1.25em;
}
body.tv-scale-540 .tv-slide-body {
  left: 1em;
  top: 1em;
  right: 1em;
  bottom: 1em;
}

/* Layout 2 columnas (fiel al Backoffice): foto a altura completa a la
 * izquierda; autor + cita + reacciones en la columna derecha. */
.tv-slide-photo-col {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 58%;
}

.tv-slide-text-col {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  left: 61%;
}

.tv-slide-text-middle {
  position: absolute;
  left: 0;
  right: 0;
  top: 5em;
  bottom: 5.25em;
}

.tv-slide-photo-col.tv-photo-wide {
  width: 63.6%;
}
.tv-slide-text-col.tv-photo-wide {
  left: 66.6%;
}

/* Pantallas verticales (9:16): foto arriba (46%) y texto+reacciones abajo. */
body.tv-portrait .tv-slide-photo-col {
  left: 0;
  right: 0;
  top: 0;
  bottom: auto;
  width: 100%;
  height: 46%;
}

body.tv-portrait .tv-slide-text-col {
  left: 0;
  right: 0;
  top: 49%;
  bottom: 0;
  width: 100%;
}

/* Avatar + alias (cabecera de la tarjeta). */
.tv-slide-author {
  position: absolute;
  left: 1.5em;
  right: 1.5em;
  top: 1.25em;
  height: 4.5em;
  padding-bottom: 0.875em;
  border-bottom: 0.0625em solid rgba(53, 53, 52, 0.6);
  white-space: nowrap;
}

.tv-slide-with-photo .tv-slide-author {
  left: 0;
  right: 0;
  top: 0;
  height: 4.25em;
}

.tv-slide-event .tv-slide-author {
  border-bottom-color: #e7e2d7;
}

.tv-slide-avatar {
  display: inline-block;
  width: 3.5em;
  height: 3.5em;
  line-height: 3.375em;
  text-align: center;
  border: 0.0625em solid #353534;
  border-radius: 1em;
  background-color: #2a2a2a;
  vertical-align: middle;
  overflow: hidden;
  -webkit-box-shadow: inset 0 0.125em 0.375em rgba(0, 0, 0, 0.18);
  box-shadow: inset 0 0.125em 0.375em rgba(0, 0, 0, 0.18);
}

.tv-slide-event .tv-slide-avatar {
  border-color: #e7e2d7;
  background-color: #fbf9f5;
  -webkit-box-shadow: inset 0 0.0625em 0.1875em rgba(31, 30, 27, 0.06);
  box-shadow: inset 0 0.0625em 0.1875em rgba(31, 30, 27, 0.06);
}

.tv-slide-avatar img {
  width: 2.125em;
  height: 2.125em;
  margin-top: 0.625em;
}

.tv-slide-author-text {
  display: inline-block;
  max-width: 60%;
  vertical-align: middle;
  margin-left: 0.875em;
  white-space: normal;
}

.tv-slide-alias {
  display: block;
  font-family: "Plus Jakarta Sans", "Noto Sans", "DejaVu Sans", sans-serif;
  font-size: 1.625em;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #e5e2e1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tv-slide-event .tv-slide-alias {
  color: #1f1e1b;
}

.tv-slide-mood {
  display: block;
  font-size: 0.875em;
  font-weight: 500;
  line-height: 1.2;
  color: #bccbb9;
  margin-top: 0.125em;
  white-space: nowrap;
}

.tv-slide-event .tv-slide-mood {
  color: #6c655a;
}

.tv-slide-mood img {
  width: 1em;
  height: 1em;
  margin-right: 0.25em;
  vertical-align: -0.1875em;
}

/* Badge encore / TOP (a la derecha de la cabecera). */
.tv-slide-encore {
  position: absolute;
  right: 0;
  top: 0.125em;
  max-width: 48%;
  padding: 0.375em 0.875em;
  border: 0.0625em solid rgba(0, 227, 253, 0.6);
  border-radius: 0.75em;
  background-color: rgba(19, 19, 19, 0.9);
  color: #00e3fd;
  font-size: 0.875em;
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
  -webkit-animation: tv-pulse 1.6s ease-in-out infinite;
  animation: tv-pulse 1.6s ease-in-out infinite;
}

.tv-slide-event .tv-slide-encore {
  border-color: rgba(184, 142, 82, 0.5);
  background-color: #fbf9f5;
  color: #8c6935;
  -webkit-box-shadow: 0 0.25em 0.375em rgba(0, 0, 0, 0.1);
  box-shadow: 0 0.25em 0.375em rgba(0, 0, 0, 0.1);
}

.tv-slide-encore .tv-encore-fire {
  width: 1em;
  height: 1em;
  vertical-align: -0.1875em;
  margin-right: 0.25em;
}

.tv-slide-encore .tv-encore-label {
  font-family: "Plus Jakarta Sans", "Noto Sans", "DejaVu Sans", sans-serif;
  font-weight: 800;
  color: #ffe792;
  margin-right: 0.375em;
}

.tv-slide-event .tv-slide-encore .tv-encore-label {
  color: #b88e52;
}

.tv-encore-delta-hearts {
  color: #ff4d6d;
  margin-left: 0.375em;
}
.tv-encore-delta-laughs {
  color: #ffe792;
  margin-left: 0.375em;
}
.tv-slide-event .tv-encore-delta-hearts {
  color: #be123c;
}
.tv-slide-event .tv-encore-delta-laughs {
  color: #8c6935;
}
.tv-slide-encore .tv-emoji-inline {
  width: 0.875em;
  height: 0.875em;
  vertical-align: -0.125em;
  margin-left: 0.125em;
}

/* Texto principal: host fijo donde vive el texto medido. */
.tv-slide-quote {
  position: absolute;
  left: 0.5em;
  right: 0.5em;
  top: 0;
  bottom: 0;
  overflow: hidden;
  text-align: center;
}

.tv-slide-quote-inner {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  /* `em` se evalúa contra el font-size heredado de la tarjeta. */
  font-size: inherit;
  /* JS fija `top` y `margin-top` inline para centrar el bloque. */
}

.tv-slide-quote .gx {
  color: #e5e2e1;
  text-shadow: 0 0.125em 0.25em rgba(0, 0, 0, 0.25);
}

.tv-live-event .tv-slide-quote .gx {
  color: #1f1e1b;
  text-shadow: none;
}

/* Tarjeta “solo texto”: quote ocupa todo el ancho/alto útil. */
.tv-slide-body.tv-slide-textonly {
  top: 6.25em;
  bottom: 6.25em;
}

.tv-slide-textonly .tv-slide-quote {
  top: 0;
  bottom: 0;
  left: 1.25em;
  right: 1.25em;
}

/* Reacciones a pie de la tarjeta. */
.tv-slide-reactions {
  position: absolute;
  left: 1.5em;
  right: 1.5em;
  bottom: 1em;
  height: 4.875em;
  padding-top: 0.875em;
  border-top: 0.0625em solid rgba(53, 53, 52, 0.6);
  text-align: center;
}

.tv-slide-with-photo .tv-slide-reactions {
  left: 0;
  right: 0;
  bottom: 0;
  height: 4.75em;
}

.tv-slide-event .tv-slide-reactions {
  border-top-color: #e7e2d7;
}

/* Foto sin texto: “MOMENTO EN VIVO”. */
.tv-slide-moment {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  text-align: center;
}

.tv-slide-moment-emoji {
  display: block;
  margin: 0 auto 0.75em;
  width: 4em;
  height: 4em;
}

.tv-slide-moment-label {
  display: block;
  font-size: 1em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #bccbb9;
}

.tv-live-event .tv-slide-moment-label {
  color: #6c655a;
}

/* Tarjeta vacía (sin confesión). */
.tv-slide-empty {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  display: table;
  width: 100%;
  height: 100%;
  text-align: center;
}

.tv-slide-empty-inner {
  display: table-cell;
  vertical-align: middle;
  text-align: center;
}

.tv-slide-empty-icon {
  display: inline-block;
  width: 5em;
  height: 5em;
  line-height: 4.875em;
  margin-bottom: 1.25em;
  border-radius: 1.5em;
  border: 0.0625em solid rgba(0, 227, 253, 0.3);
  background-color: rgba(0, 227, 253, 0.12);
}

.tv-slide-empty-icon .tv-icon {
  width: 2.5em;
  height: 2.5em;
}

.tv-slide-event .tv-slide-empty-icon {
  border-color: rgba(184, 142, 82, 0.3);
  background-color: rgba(184, 142, 82, 0.12);
}

.tv-slide-empty-pill {
  display: inline-block;
  padding: 0.375em 1em;
  margin-top: 1.25em;
  border: 0.0625em solid rgba(0, 227, 253, 0.2);
  border-radius: 62.4375em;
  background-color: rgba(0, 227, 253, 0.1);
  color: #00e3fd;
  font-size: 0.875em;
  font-weight: 700;
}

.tv-slide-event .tv-slide-empty-pill {
  border-color: rgba(40, 78, 63, 0.25);
  background-color: rgba(40, 78, 63, 0.1);
  color: #284e3f;
}

.tv-slide-empty-title {
  font-family: "Plus Jakarta Sans", "Noto Sans", "DejaVu Sans", sans-serif;
  font-size: 4em;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #e5e2e1;
  margin: 0.75em auto;
  max-width: 85%;
}

.tv-slide-event .tv-slide-empty-title {
  color: #1f1e1b;
}

.tv-slide-empty-sub {
  font-size: 1.375em;
  line-height: 1.5;
  color: #bccbb9;
  max-width: 42em;
  margin: 0 auto;
}

.tv-slide-event .tv-slide-empty-sub {
  color: #6c655a;
}

/* ---------------------------------------------------------------- Foto */
.tv-photo {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  border-radius: 1em;
  border: 0.0625em solid rgba(255, 255, 255, 0.1);
  background-color: rgba(14, 14, 14, 0.9);
  text-align: center;
}

.tv-live-event .tv-photo {
  border-color: #e7e2d7;
  background-color: #f4efe4;
}

.tv-photo-skeleton {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(42, 42, 42, 0.6);
  -webkit-animation: tv-pulse 1.6s ease-in-out infinite;
  animation: tv-pulse 1.6s ease-in-out infinite;
}

.tv-live-event .tv-photo-skeleton {
  background-color: #ebe4d6;
}

.tv-photo-img {
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  opacity: 0;
  -webkit-transition: opacity 0.3s ease;
  transition: opacity 0.3s ease;
}

.tv-photo-img.tv-photo-loaded {
  opacity: 1;
}

/* Texto alternativo (fallback) cuando la foto falla; sin reintentos. */
.tv-photo-fallback {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  margin-top: -1.875em;
  padding: 0 1.5em;
  font-size: 1em;
  font-weight: 600;
  color: #bccbb9;
  text-align: center;
}

/* ---------------------------------------------------------------- Reacciones */
.tv-reactions {
  display: inline-block;
  margin: 0 auto;
  position: relative;
  white-space: nowrap;
  text-align: center;
}

.tv-reaction-pill {
  display: inline-block;
  vertical-align: middle;
  padding: 0.5em 1.25em;
  margin: 0 0.625em;
  border: 0.0625em solid #353534;
  border-radius: 1em;
  background-color: rgba(32, 31, 31, 0.9);
  white-space: nowrap;
  -webkit-box-shadow: 0 0.125em 0.375em rgba(0, 0, 0, 0.25);
  box-shadow: 0 0.125em 0.375em rgba(0, 0, 0, 0.25);
}

.tv-live-event .tv-reaction-pill {
  border-color: #e7e2d7;
  background-color: #fbf9f5;
  -webkit-box-shadow: 0 0.125em 0.25em rgba(31, 30, 27, 0.05);
  box-shadow: 0 0.125em 0.25em rgba(31, 30, 27, 0.05);
}

.tv-reaction-pill img {
  width: 2em;
  height: 2em;
  vertical-align: middle;
  margin-right: 0.625em;
}

.tv-reaction-count {
  display: inline-block;
  vertical-align: middle;
  font-family: "Plus Jakarta Sans", "Noto Sans", "DejaVu Sans", sans-serif;
  font-size: 2em;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.tv-reaction-hearts .tv-reaction-count {
  color: #ff4d6d;
}
.tv-reaction-laughs .tv-reaction-count {
  color: #ffe792;
}
.tv-live-event .tv-reaction-hearts .tv-reaction-count {
  color: #be123c;
}
.tv-live-event .tv-reaction-laughs .tv-reaction-count {
  color: #8c6935;
}

/* Partículas flotantes: capa absoluta sobre el bloque de reacciones. */
.tv-fountain {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 11em;
  overflow: visible;
  pointer-events: none;
  z-index: 36;
}

.tv-fountain-particle {
  position: absolute;
  bottom: 0.5em;
  width: 2.5em;
  height: 2.5em;
  margin-left: -1.25em;
  -webkit-animation: tv-fountain-rise 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation: tv-fountain-rise 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: transform, opacity;
  pointer-events: none;
}

@-webkit-keyframes tv-fountain-rise {
  0% {
    -webkit-transform: translate3d(0, 0, 0) scale(0.8);
    transform: translate3d(0, 0, 0) scale(0.8);
    opacity: 0;
  }
  20% {
    -webkit-transform: translate3d(0, -1.25em, 0) scale(1.1);
    transform: translate3d(0, -1.25em, 0) scale(1.1);
    opacity: 1;
  }
  80% {
    -webkit-transform: translate3d(0, -5.625em, 0) scale(1);
    transform: translate3d(0, -5.625em, 0) scale(1);
    opacity: 0.9;
  }
  100% {
    -webkit-transform: translate3d(0, -8.75em, 0) scale(0.7);
    transform: translate3d(0, -8.75em, 0) scale(0.7);
    opacity: 0;
  }
}
@keyframes tv-fountain-rise {
  0% {
    -webkit-transform: translate3d(0, 0, 0) scale(0.8);
    transform: translate3d(0, 0, 0) scale(0.8);
    opacity: 0;
  }
  20% {
    -webkit-transform: translate3d(0, -1.25em, 0) scale(1.1);
    transform: translate3d(0, -1.25em, 0) scale(1.1);
    opacity: 1;
  }
  80% {
    -webkit-transform: translate3d(0, -5.625em, 0) scale(1);
    transform: translate3d(0, -5.625em, 0) scale(1);
    opacity: 0.9;
  }
  100% {
    -webkit-transform: translate3d(0, -8.75em, 0) scale(0.7);
    transform: translate3d(0, -8.75em, 0) scale(0.7);
    opacity: 0;
  }
}

/* Coreografía de entrada/salida de tarjeta (solo opacity/transform). */
.tv-slide-holder.tv-anim-in {
  -webkit-animation: tv-slide-in 0.44s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation: tv-slide-in 0.44s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.tv-slide-holder.tv-anim-out {
  -webkit-animation: tv-slide-out 0.44s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation: tv-slide-out 0.44s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@-webkit-keyframes tv-slide-in {
  0% {
    -webkit-transform: translate3d(0, -2em, 0) scale(0.97);
    transform: translate3d(0, -2em, 0) scale(0.97);
    opacity: 0;
  }
  100% {
    -webkit-transform: translate3d(0, 0, 0) scale(1);
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
  }
}
@keyframes tv-slide-in {
  0% {
    -webkit-transform: translate3d(0, -2em, 0) scale(0.97);
    transform: translate3d(0, -2em, 0) scale(0.97);
    opacity: 0;
  }
  100% {
    -webkit-transform: translate3d(0, 0, 0) scale(1);
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
  }
}
@-webkit-keyframes tv-slide-out {
  0% {
    -webkit-transform: translate3d(0, 0, 0) scale(1);
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
  }
  100% {
    -webkit-transform: translate3d(0, 2.5em, 0) scale(0.96);
    transform: translate3d(0, 2.5em, 0) scale(0.96);
    opacity: 0;
  }
}
@keyframes tv-slide-out {
  0% {
    -webkit-transform: translate3d(0, 0, 0) scale(1);
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
  }
  100% {
    -webkit-transform: translate3d(0, 2.5em, 0) scale(0.96);
    transform: translate3d(0, 2.5em, 0) scale(0.96);
    opacity: 0;
  }
}

/* Barrido de foto horizontal (transform puro, duración inline por dwell). */
.tv-photo-pan {
  -webkit-animation-name: tv-photo-pan;
  animation-name: tv-photo-pan;
  -webkit-animation-timing-function: ease-in-out;
  animation-timing-function: ease-in-out;
  -webkit-animation-iteration-count: infinite;
  animation-iteration-count: infinite;
  will-change: transform;
}

@-webkit-keyframes tv-photo-pan {
  0%,
  8% {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
  44%,
  56% {
    -webkit-transform: translate3d(-6.25em, 0, 0);
    transform: translate3d(-6.25em, 0, 0);
  }
  92%,
  100% {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
}
@keyframes tv-photo-pan {
  0%,
  8% {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
  44%,
  56% {
    -webkit-transform: translate3d(-6.25em, 0, 0);
    transform: translate3d(-6.25em, 0, 0);
  }
  92%,
  100% {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
}

/* ---------------------------------------------------------------- Cerrada */
.tv-live-main.tv-live-main-closed {
  top: 7.5em;
}

.tv-live-closed-banner {
  position: absolute;
  left: 50%;
  top: 0.25em;
  width: 48.75em;
  margin-left: -24.375em;
  padding: 1.25em 2.5em;
  border: 0.0625em solid rgba(255, 231, 146, 0.4);
  border-radius: 1em;
  background-color: #201f1f;
  text-align: center;
  z-index: 45;
  -webkit-box-shadow: 0 0.625em 0.9375em rgba(0, 0, 0, 0.3);
  box-shadow: 0 0.625em 0.9375em rgba(0, 0, 0, 0.3);
}

.tv-live-event .tv-live-main.tv-live-main-closed {
  top: 7.5em;
}

.tv-live-event .tv-live-closed-banner {
  border-color: rgba(184, 142, 82, 0.4);
  background-color: #fff;
}

.tv-live-closed-kicker {
  display: block;
  font-size: 0.6875em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #ffe792;
}

.tv-live-event .tv-live-closed-kicker {
  color: #b88e52;
}

.tv-live-closed-kicker img {
  width: 1em;
  height: 1em;
  vertical-align: -0.1875em;
  margin-right: 0.375em;
}

.tv-live-closed-title {
  display: block;
  font-family: "Plus Jakarta Sans", "Noto Sans", "DejaVu Sans", sans-serif;
  font-size: 2em;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #e5e2e1;
  margin: 0.25em 0;
}

.tv-live-event .tv-live-closed-title {
  color: #1f1e1b;
}

.tv-live-closed-sub {
  display: block;
  font-size: 0.875em;
  font-weight: 500;
  color: #bccbb9;
}

.tv-live-event .tv-live-closed-sub {
  color: #6c655a;
}

/* ---------------------------------------------------------------- Footer */
.tv-live-footer {
  position: absolute;
  left: 1.5em;
  right: 1.5em;
  bottom: 1em;
  height: 6.5em;
  padding-top: 0.75em;
  border-top: 0.0625em solid rgba(53, 53, 52, 0.4);
  z-index: 40;
  white-space: nowrap;
}

body.tv-scale-720 .tv-live-footer {
  left: 1.25em;
  right: 1.25em;
  height: 5.875em;
}
body.tv-scale-540 .tv-live-footer,
body.tv-portrait .tv-live-footer {
  left: 1em;
  right: 1em;
  height: 5.25em;
}

.tv-live-footer-left {
  display: table;
  height: 100%;
  max-width: 44%;
  white-space: normal;
}

.tv-live-footer-left-cell {
  display: table-cell;
  vertical-align: middle;
  text-align: left;
}

body.tv-portrait .tv-live-footer-left {
  display: none;
}

.tv-live-footer-head {
  display: block;
  font-family: "Plus Jakarta Sans", "Noto Sans", "DejaVu Sans", sans-serif;
  font-size: 0.875em;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #e5e2e1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tv-live-event .tv-live-footer-head {
  color: #1f1e1b;
}

.tv-live-footer-sub {
  display: block;
  font-size: 0.75em;
  color: #bccbb9;
  margin-top: 0.25em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tv-live-event .tv-live-footer-sub {
  color: #6c655a;
}

/* Píldora de presencia (Pulso + Código + URL corta). NO hay QR. */
.tv-live-footer-pills {
  position: absolute;
  right: 0;
  top: 0.75em;
  bottom: 0;
  white-space: nowrap;
}

.tv-pulse {
  display: inline-block;
  vertical-align: top;
  height: 100%;
  padding: 0 1.25em;
  margin-left: 0.75em;
  border: 0.0625em solid rgba(255, 255, 255, 0.1);
  border-radius: 1em;
  background-color: rgba(32, 31, 31, 0.9);
  text-align: left;
  white-space: nowrap;
  -webkit-box-shadow: 0 0.375em 1em rgba(0, 0, 0, 0.3);
  box-shadow: 0 0.375em 1em rgba(0, 0, 0, 0.3);
}

.tv-live-event .tv-pulse {
  border-color: #e7e2d7;
  background-color: #fff;
  -webkit-box-shadow: 0 0.375em 1em rgba(31, 30, 27, 0.07);
  box-shadow: 0 0.375em 1em rgba(31, 30, 27, 0.07);
}

.tv-pulse.tv-pulse-syncing {
  border-color: rgba(255, 231, 146, 0.4);
}

.tv-pulse-table {
  display: table;
  height: 100%;
}

.tv-pulse-label-wrap {
  display: table-cell;
  vertical-align: middle;
  text-align: left;
}

.tv-pulse-label {
  display: block;
  font-size: 0.75em;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #53e076;
  white-space: nowrap;
}

.tv-pulse-label img {
  width: 0.875em;
  height: 0.875em;
  margin-right: 0.375em;
  vertical-align: -0.125em;
  -webkit-animation: tv-pulse 1.6s ease-in-out infinite;
  animation: tv-pulse 1.6s ease-in-out infinite;
}

.tv-live-event .tv-pulse-label {
  color: #284e3f;
}

.tv-pulse-sublabel {
  display: block;
  font-size: 0.6875em;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #bccbb9;
  margin-top: 0.125em;
  white-space: nowrap;
}

.tv-live-event .tv-pulse-sublabel {
  color: #6c655a;
}

.tv-pulse-sep-cell {
  display: table-cell;
  vertical-align: middle;
  padding: 0 0.875em;
}

.tv-pulse-sep {
  display: block;
  width: 0.0625em;
  height: 2.5em;
  background-color: rgba(255, 255, 255, 0.1);
}

.tv-live-event .tv-pulse-sep {
  background-color: #e7e2d7;
}

.tv-pulse-digits {
  display: table-cell;
  position: relative;
  min-width: 3.5em;
  vertical-align: middle;
  text-align: center;
  line-height: 1;
  color: #53e076;
  text-shadow: 0 0 1em rgba(83, 224, 118, 0.35);
}

.tv-live-event .tv-pulse-digits {
  color: #284e3f;
  text-shadow: none;
}

.tv-pulse-digits-value {
  display: block;
  font-family: "Plus Jakarta Sans", "Noto Sans", "DejaVu Sans", sans-serif;
  font-size: 3em;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.tv-pulse-digits.tv-pulse-syncing .tv-pulse-digits-value {
  opacity: 0.3;
  -webkit-transform: scale(0.95);
  transform: scale(0.95);
}

.tv-pulse-digits-spinner {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1.25em;
  height: 1.25em;
  margin: -0.625em 0 0 -0.625em;
  -webkit-animation: tv-spin 1s linear infinite;
  animation: tv-spin 1s linear infinite;
}

/* Píldora de código/URL (sustituye al QR; el QR se eliminó a propósito). */
.tv-roomcode {
  display: inline-block;
  vertical-align: top;
  height: 100%;
  padding: 0 1.25em;
  margin-left: 0.75em;
  border: 0.0625em solid #353534;
  border-radius: 1em;
  background-color: rgba(32, 31, 31, 0.9);
  color: #bccbb9;
  text-align: left;
  white-space: nowrap;
  -webkit-box-shadow: 0 0.375em 1em rgba(0, 0, 0, 0.3);
  box-shadow: 0 0.375em 1em rgba(0, 0, 0, 0.3);
}

.tv-live-event .tv-roomcode {
  border-color: #e7e2d7;
  background-color: #fff;
  -webkit-box-shadow: 0 0.375em 1em rgba(31, 30, 27, 0.07);
  box-shadow: 0 0.375em 1em rgba(31, 30, 27, 0.07);
}

.tv-roomcode-table {
  display: table;
  height: 100%;
}

.tv-roomcode-cell {
  display: table-cell;
  vertical-align: middle;
  text-align: left;
}

.tv-roomcode-label {
  display: block;
  font-size: 0.625em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #bccbb9;
  line-height: 1.2;
}

.tv-live-event .tv-roomcode-label {
  color: #6c655a;
}

.tv-roomcode-code {
  display: block;
  font-family: "Plus Jakarta Sans", "Noto Sans", "DejaVu Sans", sans-serif;
  font-size: 1.5em;
  font-weight: 900;
  line-height: 1.1;
  color: #e5e2e1;
  letter-spacing: 0.02em;
  margin-top: 0.0625em;
}

.tv-live-event .tv-roomcode-code {
  color: #1f1e1b;
}

.tv-roomcode-url {
  display: block;
  font-family: "DejaVu Sans Mono", "Menlo", "Consolas", "Courier New", monospace;
  font-size: 0.75em;
  font-weight: 700;
  line-height: 1.25;
  color: #00e3fd;
  margin-top: 0.125em;
  max-width: 24em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tv-live-event .tv-roomcode-url {
  color: #8c6935;
}

/* Footer en estado cerrado */
.tv-live-footer-closed {
  display: block;
  width: 100%;
  text-align: left;
  font-size: 0.75em;
  color: #bccbb9;
}

.tv-live-footer-closed .tv-live-footer-head {
  display: inline-block;
  color: #ffe792;
}

.tv-live-event .tv-live-footer-closed .tv-live-footer-head {
  color: #8c6935;
}

.tv-live-footer-closed-sub {
  display: inline-block;
  margin-left: 1em;
  color: #bccbb9;
}

.tv-live-event .tv-live-footer-closed-sub {
  color: #6c655a;
}

/* Cooldown anti-burn-in aplicado al escenario completo. */
.tv-live-shift {
  -webkit-transition: -webkit-transform 1s ease-in-out;
  transition: transform 1s ease-in-out;
}

/* Preferencias de movimiento reducido: desactiva animaciones decorativas. */
@media (prefers-reduced-motion: reduce) {
  .tv-photo-pan,
  .tv-slide-holder.tv-anim-in,
  .tv-slide-holder.tv-anim-out,
  .tv-fountain-particle,
  .tv-pair-badge-ping,
  .tv-live-dot-ping {
    -webkit-animation: none;
    animation: none;
  }
}

/*
 * Estilos de pantalla del proyector (a partir de la base).
 * Se compilan junto al fallback en `dist/styles/projector.css`.
 *
 * Piso legacy (Safari/WebKit en Orsay, Chrome 25): CSS 2.1 + CSS3 prefijado.
 * Prohibido: flex, grid, gap, variables CSS, capas o contenedores.
 */

/* Pantalla completa del proyector. */
.proyector {
  display: table;
  width: 100%;
  min-height: 100vh;
  background-color: #0e0e0e;
}

.proyector__stage {
  display: table-cell;
  vertical-align: middle;
  padding: 64px;
}

.proyector__meta {
  color: #53e076;
  font-size: 20px;
  letter-spacing: 3px;
  text-transform: uppercase;
}
