/* ==========================================================================
   BAR LUA TV - INTERFAZ PARA PANTALLA GIGANTE DEL LOCAL
   Diseñado para TV 1080p/4K, alta legibilidad a distancia, estética lounge.
   ========================================================================== */

:root {
  --bg-tv: #050209;
  --bg-panel: rgba(16, 7, 28, 0.88);
  --gold-primary: #e6ca65;
  --gold-gradient: linear-gradient(135deg, #fff7d6 0%, #e6ca65 40%, #b89128 100%);
  --neon-pink: #ff007f;
  --neon-purple: #9d4edd;
  --font-serif: 'Cinzel', 'Playfair Display', Georgia, serif;
  --font-sans: 'Montserrat', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body, html {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background-color: var(--bg-tv);
  color: #fff;
  font-family: var(--font-sans);
  user-select: none;
}

/* Fondo con marca de agua del logo Bar Lua */
.tv-background {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 60% 40%, rgba(55, 14, 85, 0.35) 0%, #050209 85%);
  z-index: 0;
  pointer-events: none;
}

#luxury-particles-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  opacity: 0.65;
}

.tv-watermark {
  position: fixed;
  top: 50%;
  left: 35%;
  transform: translate(-50%, -50%);
  width: 650px;
  height: 650px;
  opacity: 0.04;
  pointer-events: none;
}

/* Luces de ambiente */
.tv-ambient-pink {
  position: fixed;
  top: 5%;
  left: -5%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(255, 0, 127, 0.18) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
}

.tv-ambient-purple {
  position: fixed;
  bottom: 5%;
  right: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(157, 78, 221, 0.2) 0%, transparent 70%);
  filter: blur(90px);
  pointer-events: none;
}

/* Layout Principal de la Pantalla */
.tv-container {
  position: relative;
  z-index: 2;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0.85rem 1.5rem 0.75rem;
}

/* 1. Barra Superior (Sin fecha ni hora) */
.tv-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 0.15rem 0 0.45rem;
  border-bottom: 1px solid rgba(230, 202, 101, 0.25);
  margin-bottom: 0.55rem;
}

.tv-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.tv-crest-logo {
  width: 42px;
  height: 42px;
  filter: drop-shadow(0 0 10px rgba(230, 202, 101, 0.5));
}

.tv-brand-logo-img {
  height: 44px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 14px rgba(230, 202, 101, 0.55));
}

.tv-brand-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 4px;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.tv-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid #43d67a;
  color: #79f2a5;
  padding: 0.18rem 0.7rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  animation: pulseLive 2s infinite ease-in-out;
}

@keyframes pulseLive {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

.tv-slogan {
  font-family: 'Great Vibes', cursive;
  font-size: 1.55rem;
  color: #ff55a3;
  text-shadow: 0 0 12px rgba(255, 0, 127, 0.6);
}

.tv-channel-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-primary);
  background: rgba(230, 202, 101, 0.1);
  border: 1px solid rgba(230, 202, 101, 0.3);
  padding: 0.3rem 0.85rem;
  border-radius: 9999px;
}

/* 2. Área Central (Video Grande + Columna Lateral) */
.tv-main-grid {
  flex-grow: 1;
  display: grid;
  grid-template-columns: 68% 32%;
  gap: 1.25rem;
  min-height: 0;
  margin-bottom: 0.6rem;
}

/* Marco del Reproductor de Video de YouTube con brillo animado sutil */
.tv-video-stage {
  position: relative;
  background: #000;
  border-radius: 18px;
  overflow: hidden;
  border: 2px solid rgba(230, 202, 101, 0.45);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.9), 0 0 25px rgba(255, 0, 127, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  animation: stageGlowAnim 6s infinite alternate ease-in-out;
}

@keyframes stageGlowAnim {
  0% {
    border-color: rgba(230, 202, 101, 0.35);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.9), 0 0 20px rgba(255, 0, 127, 0.14), 0 0 25px rgba(230, 202, 101, 0.08);
  }
  50% {
    border-color: rgba(255, 0, 127, 0.55);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.92), 0 0 35px rgba(255, 0, 127, 0.3), 0 0 45px rgba(120, 30, 160, 0.2);
  }
  100% {
    border-color: rgba(230, 202, 101, 0.7);
    box-shadow: 0 15px 48px rgba(0, 0, 0, 0.9), 0 0 28px rgba(230, 202, 101, 0.32), 0 0 35px rgba(255, 0, 127, 0.2);
  }
}

.tv-player-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Dos capas de YouTube permiten preparar el siguiente vídeo y fundirlo
   con el actual, sin el corte visual entre canciones. */
.tv-player-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 1;
  pointer-events: none;
  transition: opacity 1.9s ease-in-out;
}
.tv-player-layer.is-active { opacity: 1; z-index: 2; pointer-events: auto; }
.tv-player-layer iframe { width: 100%; height: 100%; border: 0; }

/* Columna Lateral: QR de Petición + Now Playing */
.tv-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 0;
  justify-content: space-between;
}

/* Caja de Petición: QR y PIN Integrados Lado a Lado (Nunca se corta) con brillo animado sutil */
.tv-qr-box {
  background: var(--bg-panel);
  border: 1.5px solid rgba(230, 202, 101, 0.6);
  border-radius: 16px;
  padding: 1rem 1.15rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 18px rgba(230, 202, 101, 0.12);
  position: relative;
  overflow: hidden;
  animation: qrGlowAnim 5s infinite alternate ease-in-out;
}

@keyframes qrGlowAnim {
  0% {
    border-color: rgba(230, 202, 101, 0.45);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 12px rgba(230, 202, 101, 0.12);
  }
  100% {
    border-color: rgba(230, 202, 101, 0.85);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.65), 0 0 26px rgba(230, 202, 101, 0.3), 0 0 35px rgba(255, 0, 127, 0.15);
  }
}

.tv-qr-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--neon-pink), var(--gold-primary), var(--neon-purple));
}

.tv-qr-flex-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.tv-qr-img-wrap {
  width: 115px;
  height: 115px;
  background: #fff;
  padding: 6px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tv-qr-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tv-qr-details {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.tv-qr-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--gold-primary);
  letter-spacing: 1px;
  line-height: 1.2;
}

.tv-qr-subtitle {
  font-size: 0.72rem;
  color: #dfceef;
  line-height: 1.3;
}

.tv-web-url {
  color: #fff4c4;
  font-size: 0.72rem;
  line-height: 1.2;
  letter-spacing: 0.15px;
}

.tv-web-url strong {
  color: var(--gold-primary);
  font-weight: 800;
}

/* PIN Dinámico del Día - Destacado y Siempre Visible */
.tv-pin-banner {
  background: linear-gradient(135deg, rgba(255, 0, 127, 0.25) 0%, rgba(121, 40, 202, 0.35) 100%);
  border: 1px solid var(--neon-pink);
  border-radius: 10px;
  padding: 0.4rem 0.65rem;
  margin-top: 0.25rem;
  text-align: center;
  box-shadow: 0 0 12px rgba(255, 0, 127, 0.3);
}

.tv-pin-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #ffb3d9;
  letter-spacing: 1px;
  display: block;
}

.tv-pin-code {
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: 6px;
  color: #fff;
  text-shadow: 0 0 15px rgba(255, 0, 127, 0.9);
  line-height: 1.1;
}

/* Tarjeta Sonando Ahora con brillo animado sutil */
.tv-now-playing-box {
  background: var(--bg-panel);
  border: 1.5px solid rgba(255, 0, 127, 0.45);
  border-radius: 16px;
  padding: 1.1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255,255,255,0.04);
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-grow: 1;
  animation: nowPlayingGlowAnim 5.5s infinite alternate ease-in-out;
}

@keyframes nowPlayingGlowAnim {
  0% {
    border-color: rgba(255, 0, 127, 0.38);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 0, 127, 0.15);
  }
  100% {
    border-color: rgba(255, 0, 127, 0.75);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.6), 0 0 28px rgba(255, 0, 127, 0.32), 0 0 40px rgba(138, 43, 226, 0.18);
  }
}

.tv-now-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.tv-now-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold-primary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* Ecualizador Animado */
.tv-equalizer {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 16px;
}

.eq-bar {
  width: 3px;
  background: var(--neon-pink);
  border-radius: 2px;
  animation: eqBounce 1.2s infinite ease-in-out;
}

.eq-bar:nth-child(1) { height: 40%; animation-delay: 0.1s; }
.eq-bar:nth-child(2) { height: 90%; animation-delay: 0.3s; }
.eq-bar:nth-child(3) { height: 60%; animation-delay: 0.2s; }
.eq-bar:nth-child(4) { height: 100%; animation-delay: 0.4s; }

@keyframes eqBounce {
  0%, 100% { transform: scaleY(0.3); }
  50% { transform: scaleY(1); }
}

.tv-now-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tv-now-artist {
  font-size: 0.86rem;
  color: #bfa8d5;
  margin-bottom: 0.65rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tv-requested-by-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(230, 202, 101, 0.15);
  border: 1px solid var(--gold-primary);
  color: var(--gold-primary);
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  width: fit-content;
}

/* Visualizador de Audio Spectrum Pro (Abarca el ancho completo del recuadro) */
.tv-spectrum {
  width: 100%;
  height: 40px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3px;
  margin: 0.4rem 0 0.95rem;
  padding: 0.2rem 0.5rem 0.35rem;
  box-sizing: border-box;
  background: rgba(12, 5, 24, 0.55);
  border-radius: 8px;
  border: 1px solid rgba(255, 0, 127, 0.18);
  border-bottom: 2px solid rgba(230, 202, 101, 0.5);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.7), 0 0 15px rgba(255, 0, 127, 0.12);
}

.tv-spectrum span {
  flex: 1;
  min-width: 2px;
  height: 25%;
  border-radius: 3px 3px 1px 1px;
  background: linear-gradient(180deg, #ffe082 0%, #ff007f 55%, #7928ca 100%);
  box-shadow: 0 0 6px rgba(255, 0, 127, 0.45);
  animation: spectrumDance 1.1s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate;
}

/* Distribución rítmica y frecuencias por bandas */
.tv-spectrum span:nth-child(6n+1) { animation-delay: -0.2s; animation-duration: 0.85s; }
.tv-spectrum span:nth-child(6n+2) { animation-delay: -0.65s; animation-duration: 1.1s; }
.tv-spectrum span:nth-child(6n+3) { animation-delay: -0.35s; animation-duration: 0.75s; }
.tv-spectrum span:nth-child(6n+4) { animation-delay: -0.9s; animation-duration: 1.25s; }
.tv-spectrum span:nth-child(6n+5) { animation-delay: -0.5s; animation-duration: 0.95s; }
.tv-spectrum span:nth-child(6n) { animation-delay: -0.1s; animation-duration: 1.05s; }

/* Gradiente tonal por espectro de audio (Graves dorados / Medios magenta / Agudos violeta brillante) */
.tv-spectrum span:nth-child(-n+10) {
  background: linear-gradient(180deg, #ffd54f 0%, #ff007f 55%, #590979 100%);
}
.tv-spectrum span:nth-child(n+11):nth-child(-n+26) {
  background: linear-gradient(180deg, #fff3b0 0%, #ff1493 50%, #7b2cbf 100%);
}
.tv-spectrum span:nth-child(n+27) {
  background: linear-gradient(180deg, #ffe082 0%, #d9048e 65%, #3a0ca3 100%);
}

@keyframes spectrumDance {
  0% { height: 12%; filter: brightness(0.85); }
  25% { height: 42%; filter: brightness(1.02); }
  55% { height: 85%; filter: brightness(1.2); }
  80% { height: 50%; filter: brightness(1.05); }
  100% { height: 95%; filter: brightness(1.3); }
}

.tv-queue-panel {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255,255,255,0.09);
}

.tv-queue-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #bba3d0;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 1.3px;
}

.tv-queue-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #61e88c;
  box-shadow: 0 0 10px rgba(97, 232, 140, 0.9);
  animation: queueDotPulse 1.6s infinite ease-in-out;
}

@keyframes queueDotPulse { 50% { transform: scale(0.55); opacity: 0.45; } }

.tv-queue-preview {
  margin-top: 0.42rem;
  padding: 0.48rem 0.6rem;
  border-radius: 8px;
  border: 1px solid rgba(230, 202, 101, 0.17);
  background: rgba(0,0,0,0.18);
  color: #f1e7fb;
  font-size: 0.78rem;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 3. BANNERS ANIMADOS DE PROMOCIONES (TICKER / CARROUSEL) con brillo animado sutil */
.tv-promos-ticker-wrap {
  height: 60px;
  background: linear-gradient(90deg, rgba(20, 8, 35, 0.95) 0%, rgba(35, 12, 55, 0.95) 50%, rgba(20, 8, 35, 0.95) 100%);
  border: 1.5px solid rgba(230, 202, 101, 0.5);
  border-radius: 12px;
  padding: 0.45rem 1.25rem;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.6), inset 0 0 15px rgba(255, 0, 127, 0.2);
  animation: tickerGlowAnim 6s infinite alternate ease-in-out;
}

@keyframes tickerGlowAnim {
  0% {
    border-color: rgba(230, 202, 101, 0.4);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.6), inset 0 0 15px rgba(255, 0, 127, 0.15), 0 0 15px rgba(230, 202, 101, 0.12);
  }
  50% {
    border-color: rgba(255, 0, 127, 0.5);
    box-shadow: 0 5px 28px rgba(0, 0, 0, 0.65), inset 0 0 20px rgba(255, 0, 127, 0.25), 0 0 22px rgba(255, 0, 127, 0.22);
  }
  100% {
    border-color: rgba(230, 202, 101, 0.75);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.7), inset 0 0 18px rgba(230, 202, 101, 0.25), 0 0 24px rgba(230, 202, 101, 0.25);
  }
}

.tv-promo-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  width: 100%;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.tv-promo-pill.promo-leaving {
  opacity: 0;
  transform: translateY(-12px);
}

.tv-promo-pill.promo-entering {
  opacity: 0;
  transform: translateY(12px);
  transition: none !important;
}

.tv-promo-pill.is-dedication {
  background: linear-gradient(90deg, rgba(255, 0, 127, 0.28), rgba(120, 20, 160, 0.45), rgba(255, 0, 127, 0.28));
  border-color: rgba(255, 0, 127, 0.6);
  box-shadow: 0 0 25px rgba(255, 0, 127, 0.4);
}

.tv-promo-pill.is-dedication .tv-promo-price { display: none; }
.tv-promo-pill.is-dedication .tv-promo-title { 
  color: #ffb3db; 
  letter-spacing: 1.5px;
  text-shadow: 0 0 12px rgba(255, 0, 127, 0.7);
}
.tv-promo-pill.is-dedication .tv-promo-msg { 
  color: #ffffff; 
  font-weight: 700; 
  font-size: 1.05rem; 
  font-style: italic;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}
.tv-promo-pill.is-dedication .tv-promo-cta { 
  background: linear-gradient(135deg, #ff007f, #d70d7b); 
  color: #fff; 
  font-weight: 800;
  box-shadow: 0 0 15px rgba(255, 0, 127, 0.6);
}

.tv-promo-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(230, 202, 101, 0.6));
}

.tv-promo-body {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-grow: 1;
  min-width: 0;
  overflow: hidden;
}

.tv-promo-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 1px;
  white-space: nowrap;
  flex-shrink: 0;
}

.tv-promo-price {
  font-size: 1.15rem;
  font-weight: 900;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
  flex-shrink: 0;
}

.tv-promo-msg {
  font-size: 0.85rem;
  color: #d1bde4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-grow: 1;
}

/* BOTÓN "¡PIDE EN BARRA!" - NUNCA SE ROMPE EN 2 LÍNEAS */
.tv-promo-cta {
  background: var(--gold-gradient);
  color: #110502;
  font-weight: 800;
  font-size: 0.78rem;
  padding: 0.45rem 1.15rem;
  border-radius: 9999px;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  display: inline-block;
  box-shadow: 0 2px 12px rgba(230, 202, 101, 0.4);
}

/* Overlay de Activación de Audio (Para políticas de autoplay de navegadores) */
.tv-audio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(8, 3, 14, 0.85);
  backdrop-filter: blur(8px);
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  cursor: pointer;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.tv-unmute-btn {
  background: linear-gradient(135deg, #e6ca65 0%, #b8933b 50%, #e6ca65 100%);
  color: #0b0410;
  border: 2px solid #ffd700;
  padding: 1.1rem 2.5rem;
  border-radius: 9999px;
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  box-shadow: 0 0 35px rgba(230, 202, 101, 0.6), 0 0 20px rgba(255, 0, 127, 0.4);
  animation: tvPulseAudio 2s infinite alternate ease-in-out;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.tv-unmute-btn:hover {
  transform: scale(1.05);
  filter: brightness(1.15);
}

.tv-unmute-btn .pulse-icon {
  font-size: 1.5rem;
  animation: tvIconBeat 1s infinite alternate ease-in-out;
}

@keyframes tvPulseAudio {
  0% {
    box-shadow: 0 0 25px rgba(230, 202, 101, 0.5), 0 0 15px rgba(255, 0, 127, 0.3);
  }
  100% {
    box-shadow: 0 0 45px rgba(230, 202, 101, 0.8), 0 0 30px rgba(255, 0, 127, 0.6);
  }
}

@keyframes tvIconBeat {
  0% { transform: scale(1); }
  100% { transform: scale(1.25); }
}

.tv-audio-hint {
  color: #e3d2f5;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

/* Modal de Advertencia cuando se abre por file:// */
.tv-file-warning-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 2, 9, 0.96);
  backdrop-filter: blur(15px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.tv-file-card {
  background: #150921;
  border: 2px solid var(--gold-primary);
  border-radius: 20px;
  max-width: 600px;
  width: 100%;
  padding: 2.5rem;
  text-align: center;
  box-shadow: 0 0 50px rgba(230, 202, 101, 0.3), 0 20px 40px rgba(0, 0, 0, 0.9);
}

.tv-open-server-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: var(--gold-gradient);
  color: #110502;
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: 1.5px;
  padding: 1rem 2rem;
  border-radius: 9999px;
  text-decoration: none;
  box-shadow: 0 0 25px rgba(230, 202, 101, 0.5);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.tv-open-server-btn:hover {
  transform: scale(1.04);
  filter: brightness(1.1);
}

/* La pantalla TV está pensada para horizontal, pero en móvil debe seguir
   siendo consultable sin recortes ni scroll horizontal. */
@media (max-width: 900px) and (orientation: portrait) {
  html, body { width: 100%; height: auto; min-height: 100dvh; overflow-x: hidden; overflow-y: auto; }
  .tv-container { width: 100%; height: auto; min-height: 100dvh; padding: .65rem; }
  .tv-topbar { min-height: 48px; margin-bottom: .6rem; }
  .tv-brand-logo-img { height: 32px; max-width: 155px; }
  .tv-live-badge { padding: .16rem .5rem; font-size: .58rem; letter-spacing: .8px; }
  .tv-slogan { display: none; }
  .tv-main-grid { grid-template-columns: minmax(0, 1fr); gap: .75rem; flex-grow: 0; }
  .tv-video-stage { height: auto; aspect-ratio: 16 / 9; border-radius: 12px; }
  .tv-sidebar { gap: .75rem; }
  .tv-qr-box, .tv-now-playing-box { padding: .8rem; }
  .tv-qr-flex-row { gap: .75rem; }
  .tv-qr-img-wrap { width: 88px; height: 88px; }
  .tv-qr-title { font-size: .85rem; }
  .tv-qr-subtitle, .tv-web-url { font-size: .64rem; }
  .tv-pin-code { font-size: 1.2rem; }
  .tv-now-playing-box { min-height: 190px; }
  .tv-now-title { font-size: .95rem; }
  .tv-promos-ticker-wrap { height: auto; min-height: 54px; padding: .55rem .7rem; margin-top: .75rem; }
  .tv-promo-pill { gap: .55rem; }
  .tv-promo-icon { font-size: 1.35rem; }
  .tv-promo-title { font-size: .72rem; }
  .tv-promo-price { font-size: .85rem; }
  .tv-promo-msg { font-size: .67rem; }
  .tv-promo-cta { display: none; }
}
