/* ==============================================================================
 * LIVETOCAST · DEDICATED GENERAL / CEREMONY / CONFERENCE VIEWER STYLESHEET
 * Scoped exclusively to viewer.html (Sacred Utsavam, Family & Conference UI)
 * ============================================================================== */

:root {
  --bg-deep: #06080d;
  --neon-cyan: #00f0ff;
  --neon-cyan-glow: rgba(0, 240, 255, 0.45);
  --neon-red: #ff3344;
  --ceremony-gold: #f59e0b;
  --border-subtle: rgba(255, 255, 255, 0.12);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html, body {
  width: 100%;
  height: 100%;
  background: #000;
  color: var(--text-main);
  font-family: var(--font-sans);
  overflow: hidden;
  user-select: none;
}

.event-stage {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.event-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* TOP-LEFT CLIENT BRAND / LOGO SLOT */
.client-brand-slot {
  position: absolute;
  top: 18px;
  left: 20px;
  z-index: 32;
  display: none;
  align-items: center;
  gap: 10px;
  background: rgba(6, 8, 13, 0.78);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 6px 12px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

.client-brand-slot img {
  height: 32px;
  max-width: 150px;
  object-fit: contain;
  display: none;
}

.client-brand-text {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}

/* POWERED BY BADGE (Free trials only; Turnkey plans opt out) */
.powered-by-badge {
  position: absolute;
  top: 18px;
  right: 20px;
  z-index: 35;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(6, 7, 9, 0.78);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 5px 12px;
  text-decoration: none;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.powered-by-badge img {
  height: 18px;
  width: auto;
  object-fit: contain;
}

.sponsor-bug {
  display: none;
  position: absolute;
  top: 56px;
  right: 20px;
  z-index: 30;
  pointer-events: none;
  background: rgba(6, 7, 9, 0.68);
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
}

.sponsor-bug img {
  height: 30px;
  max-width: 120px;
  object-fit: contain;
}

/* SACRED CEREMONY / FAMILY MUHURTHAM PILL */
.family-muhurtham-pill {
  display: none;
  position: absolute;
  top: 66px;
  left: 20px;
  z-index: 30;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-radius: 10px;
  padding: 8px 14px;
  color: #fff;
}

.btn-open-guestbook {
  display: none;
  position: absolute;
  bottom: 48px;
  right: 20px;
  z-index: 40;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #041019;
  font-weight: 800;
  font-size: 12px;
  padding: 8px 14px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35);
}

.unmute-prompt {
  display: none;
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  background: rgba(0, 0, 0, 0.86);
  border: 1px solid var(--neon-cyan);
  padding: 8px 16px;
  border-radius: 50px;
  cursor: pointer;
}

.unmute-prompt span {
  color: var(--neon-cyan);
  font-size: 0.85rem;
  font-weight: 700;
}

.overlay-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 20;
}

/* LOWER THIRD (Cleanly sits above bottom ticker) */
.lower-third-dock {
  position: absolute;
  bottom: 48px;
  left: 20px;
  max-width: min(540px, calc(100% - 40px));
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 28;
}

.lower-third-dock.visible {
  opacity: 1;
  transform: translateY(0);
}

.lower-third-chassis {
  background: rgba(11, 15, 23, 0.9);
  backdrop-filter: blur(16px);
  border-left: 5px solid var(--neon-cyan);
  border-radius: 0 10px 10px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  padding: 12px 22px;
}

.lt-badge { font-size: 0.65rem; font-weight: 800; letter-spacing: 1.5px; color: var(--neon-cyan); margin-bottom: 2px; text-transform: uppercase; }
.lt-title { font-size: 1.25rem; font-weight: 800; color: #fff; line-height: 1.2; }
.lt-subtitle { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; margin-top: 2px; }

/* MID-SCREEN FLASH ANNOUNCEMENT */
.flash-announcement-backdrop {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 8, 13, 0.7);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 50;
}

.flash-announcement-backdrop.visible {
  opacity: 1;
  pointer-events: auto;
}

.flash-card {
  background: linear-gradient(135deg, rgba(17, 23, 36, 0.96), rgba(11, 15, 23, 0.96));
  border: 2px solid var(--neon-cyan);
  box-shadow: 0 0 40px var(--neon-cyan-glow);
  border-radius: 16px;
  padding: 30px 45px;
  text-align: center;
  max-width: 600px;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.flash-announcement-backdrop.visible .flash-card { transform: scale(1); }
.flash-badge { display: inline-block; background: var(--neon-red); color: #fff; font-size: 0.75rem; font-weight: 800; letter-spacing: 2px; padding: 5px 14px; border-radius: 50px; margin-bottom: 12px; }
.flash-headline { font-size: 1.8rem; font-weight: 800; color: #fff; margin-bottom: 8px; line-height: 1.2; }
.flash-subtext { font-size: 1rem; color: var(--text-muted); }

/* OPTIONAL MUSIC NOW PLAYING DOCK */
.music-dock {
  position: absolute;
  top: 64px;
  right: 20px;
  background: rgba(11, 15, 23, 0.9);
  backdrop-filter: blur(12px);
  border-right: 4px solid #d4af37;
  border-radius: 8px 0 0 8px;
  padding: 10px 18px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  text-align: right;
  z-index: 25;
}

.music-song { font-size: 1rem; font-weight: 800; color: #fff; }
.music-raga { font-size: 0.75rem; color: #fef08a; font-weight: 600; margin-top: 2px; }

/* TICKER */
.ticker-dock {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 32px;
  background: rgba(6, 8, 13, 0.95);
  border-top: 1px solid var(--border-subtle);
  overflow: hidden;
  display: none;
  align-items: center;
  z-index: 32;
}

.ticker-content {
  white-space: nowrap;
  animation: tickerSlide 25s linear infinite;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

@keyframes tickerSlide {
  0% { transform: translateX(100vw); }
  100% { transform: translateX(-100%); }
}

@media (max-width: 640px) {
  .client-brand-slot { top: 10px; left: 10px; padding: 4px 8px; }
  .client-brand-slot img { height: 24px; max-width: 110px; }
  .powered-by-badge { top: 10px; right: 10px; }
  .lower-third-dock { bottom: 84px; left: 10px; max-width: calc(100% - 20px); }
}

/* DEDICATED 9:16 VERTICAL OUTPUT MODE (IG / YouTube Vertical Live Safe-Zone) */
.event-stage.aspect-9x16 {
  width: min(100vw, 56.25vh);
  height: 100vh;
  height: 100dvh;
  margin: 0 auto;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  overflow: hidden;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.9);
}
.event-stage.aspect-9x16 .event-video { object-fit: cover; }
.event-stage.aspect-9x16 .client-brand-slot { top: 12px; left: 10px; padding: 4px 8px; }
.event-stage.aspect-9x16 .client-brand-slot img { height: 24px; max-width: 110px; }
.event-stage.aspect-9x16 .powered-by-badge { top: 12px; right: 10px; }
.event-stage.aspect-9x16 .family-muhurtham-pill { top: 52px; left: 10px; right: 10px; max-width: calc(100% - 20px); }
.event-stage.aspect-9x16 .lower-third-dock { bottom: 96px; left: 10px; right: 10px; max-width: calc(100% - 20px); }
.event-stage.aspect-9x16 .btn-open-guestbook { bottom: 48px; left: 10px; right: auto; }
