/* ── Live cinema page ── */

html:has(body.live-theater-page),
body.live-theater-page {
  background: #060a12 !important;
  color: #f4f7fb !important;
}

body.live-theater-page #navbar {
  background: rgba(6, 10, 18, 0.94) !important;
  border-bottom: 1px solid rgba(212, 175, 55, 0.16);
  backdrop-filter: blur(14px);
}

body.live-theater-page .footer {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(212, 175, 55, 0.1), transparent 45%),
    linear-gradient(180deg, #0c1830 0%, #05080f 100%) !important;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.theater {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  padding: 6.4rem 1.25rem 4.5rem;
}

.theater::before {
  content: '';
  pointer-events: none;
  position: absolute;
  inset: 3.5rem 5% auto;
  height: 380px;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(212, 175, 55, 0.18), transparent 58%),
    radial-gradient(ellipse at 15% 70%, rgba(37, 81, 160, 0.22), transparent 50%);
  filter: blur(10px);
  z-index: 0;
}

.theater > * {
  position: relative;
  z-index: 1;
}

.theater-marquee {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.theater-eyebrow {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #d4af37;
}

.theater-marquee h1 {
  margin: 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 4.8vw, 3.15rem);
  line-height: 1.05;
  color: #fff;
}

.theater-marquee h1 em {
  color: #d4af37;
  font-style: italic;
}

.theater-marquee-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
}

.live-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.live-status-pill.is-live {
  background: rgba(231, 76, 60, 0.16);
  color: #ff8a82;
  border: 1px solid rgba(231, 76, 60, 0.42);
}

.live-status-pill.is-live::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e74c3c;
  box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.5);
  animation: livePulse 1.5s ease infinite;
}

.live-status-pill.is-offline {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.45); }
  70% { box-shadow: 0 0 0 10px rgba(231, 76, 60, 0); }
  100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0); }
}

.live-sync-note {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
}

.live-setup-note {
  margin-bottom: 1.15rem;
  padding: 1rem 1.2rem;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  background: rgba(212, 175, 55, 0.1);
  color: #f0e2a8;
  font-size: 0.84rem;
  line-height: 1.65;
}

.live-setup-note a {
  color: #fff;
  font-weight: 700;
}

.proscenium {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.28);
  background: linear-gradient(180deg, #151d30 0%, #0b1220 100%);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.04);
}

.proscenium.is-offline {
  display: none;
}

.screen-frame {
  padding: 10px;
  background:
    linear-gradient(135deg, rgba(212, 175, 55, 0.55), rgba(212, 175, 55, 0.12) 40%, rgba(255, 255, 255, 0.06));
}

.screen-bevel {
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.live-player-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #03060c;
}

.live-player-wrap iframe,
.live-player-wrap #ytPlayerMount {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.live-player-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.92rem;
}

.live-player-placeholder-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d4af37;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.32);
}

.stage-apron {
  padding: 1.45rem 1.35rem 1.55rem;
  background: linear-gradient(180deg, #121a2c 0%, #0a101c 100%);
  border-top: 1px solid rgba(212, 175, 55, 0.18);
}

.live-stream-title {
  margin: 0 0 0.5rem;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  line-height: 1.3;
  color: #fff !important;
}

.live-stream-desc {
  margin: 0 0 0.95rem;
  color: rgba(255, 255, 255, 0.72) !important;
  font-size: 0.94rem;
  line-height: 1.7;
  white-space: pre-wrap;
}

.live-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.1rem;
  margin-bottom: 1.15rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

.live-meta-row strong {
  color: #d4af37;
  font-weight: 700;
}

.live-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

body.live-theater-page .live-tool-btn,
.live-tool-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 42px;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: #1a2438 !important;
  color: #f7f3e8 !important;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

body.live-theater-page .live-tool-btn:hover,
.live-tool-btn:hover {
  background: #24314a !important;
  border-color: #d4af37;
  color: #fff !important;
  transform: translateY(-1px);
}

body.live-theater-page .live-tool-btn.primary,
.live-tool-btn.primary {
  background: #d4af37 !important;
  border-color: #d4af37 !important;
  color: #0a1628 !important;
}

body.live-theater-page .live-tool-btn.primary:hover,
.live-tool-btn.primary:hover {
  background: #f0d060 !important;
  border-color: #f0d060 !important;
  color: #0a1628 !important;
}

.live-offline-card {
  text-align: center;
  padding: 3.2rem 1.5rem 2.9rem;
  border-radius: 20px;
  border: 1px solid rgba(212, 175, 55, 0.24);
  background:
    radial-gradient(ellipse at top, rgba(212, 175, 55, 0.12), transparent 55%),
    linear-gradient(180deg, #121a2b 0%, #0a101b 100%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.live-offline-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff8a82;
  background: rgba(196, 48, 43, 0.14);
  border: 1px solid rgba(196, 48, 43, 0.28);
}

.offline-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #d4af37;
}

.live-offline-card h2 {
  margin: 0 0 0.75rem;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  color: #fff !important;
}

.live-offline-card p {
  max-width: 500px;
  margin: 0 auto 1.4rem;
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 0.96rem;
  line-height: 1.75;
}

.live-offline-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

.live-latest-thumb {
  display: flex;
  gap: 1rem;
  align-items: center;
  text-align: left;
  max-width: 540px;
  margin: 1.6rem auto 0;
  padding: 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.live-latest-thumb img {
  width: 128px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}

.live-latest-label {
  margin-bottom: 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.live-latest-thumb a {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.4;
}

.live-latest-thumb a:hover {
  color: #d4af37;
}

@media (max-width: 768px) {
  .theater {
    padding: 5.7rem 0.9rem 3.4rem;
  }

  .theater-marquee {
    flex-direction: column;
    align-items: flex-start;
  }

  .theater-marquee-right {
    align-items: flex-start;
  }

  .screen-frame {
    padding: 7px;
  }

  .stage-apron {
    padding: 1.2rem 1rem 1.3rem;
  }

  .live-toolbar {
    width: 100%;
  }

  .live-tool-btn {
    flex: 1 1 calc(50% - 0.55rem);
    min-width: 140px;
  }

  .live-offline-card {
    padding: 2.5rem 1.1rem 2.2rem;
  }

  .live-latest-thumb {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .live-latest-thumb img {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .live-status-pill.is-live::before { animation: none; }
  .live-tool-btn:hover { transform: none; }
}
