/* ==============================================================================
 * LIVETOCAST · DEDICATED CONCERT & CLASSICAL TV PLAYER STYLESHEET
 * Scoped exclusively to concert_viewer.html (zero sports/general CSS leakage)
 * ============================================================================== */

:root {
  --bg-deep: #06080d;
  --neon-cyan: #00f0ff;
  --neon-cyan-glow: rgba(0, 240, 255, 0.45);
  --neon-red: #ff3344;
  --concert-gold: #d4af37;
  --border-subtle: rgba(255, 255, 255, 0.12);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Cinzel', 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;
}

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

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

/* TOP-LEFT CLIENT BRAND / LOGO SLOT (Hidden unless client uploads logo or sets custom brand) */
.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.72);
  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.55);
  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 via whitelabel_mode = 1) */
.powered-by-badge {
  position: absolute;
  bottom: 40px;
  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 CORNER BUG */
.sponsor-bug {
  display: none;
  position: absolute;
  top: 96px;
  right: 20px;
  z-index: 28;
  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;
}

/* TOP-RIGHT NOW PERFORMING CHASSIS */
.music-now-playing-chassis {
  position: absolute;
  top: 18px;
  right: 20px;
  z-index: 30;
  background: rgba(15, 23, 42, 0.84);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(212, 175, 55, 0.42);
  border-right: 4px solid var(--concert-gold);
  border-radius: 12px;
  padding: 10px 18px;
  min-width: 240px;
  max-width: 340px;
  display: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  animation: slideInRight 0.4s ease-out;
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.music-now-label {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #fef08a;
  margin-bottom: 2px;
}

.music-title {
  font-family: var(--font-serif), var(--font-sans);
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 2px;
}

.music-meta {
  font-size: 11px;
  color: var(--neon-cyan);
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* UNMUTE OVERLAY */
.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: 9px 18px;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.3);
}

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

/* CONCERT GRAPHICS LAYER */
.overlay-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 20;
}

/* ARTIST LOWER THIRD (Cleanly positioned 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: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 5px solid var(--concert-gold);
  border-radius: 0 10px 10px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65);
  padding: 12px 22px;
}

.lt-badge {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #fef08a;
  margin-bottom: 3px;
  text-transform: uppercase;
}

.lt-title {
  font-family: var(--font-serif), var(--font-sans);
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.lt-subtitle {
  font-size: 0.85rem;
  color: #cbd5e1;
  font-weight: 500;
  margin-top: 3px;
}

/* 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(--concert-gold);
  box-shadow: 0 0 40px rgba(212, 175, 55, 0.3);
  border-radius: 16px;
  padding: 30px 45px;
  text-align: center;
  max-width: 600px;
  transform: scale(0.92);
  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);
}

/* BOTTOM 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;
  }
  .music-now-playing-chassis {
    top: 10px;
    right: 10px;
    padding: 7px 12px;
    min-width: 170px;
  }
  .lower-third-dock {
    bottom: 84px;
    left: 10px;
    max-width: calc(100% - 20px);
  }
  .lower-third-chassis {
    padding: 9px 14px;
  }
  .lt-title {
    font-size: 1rem;
  }
  .powered-by-badge {
    bottom: 38px;
    right: 10px;
  }
}

/* DEDICATED 9:16 VERTICAL OUTPUT MODE (IG / YouTube Vertical Live Safe-Zone) */
.concert-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);
}
.concert-stage.aspect-9x16 .concert-video { object-fit: cover; }
.concert-stage.aspect-9x16 .client-brand-slot { top: 12px; left: 10px; padding: 4px 8px; }
.concert-stage.aspect-9x16 .client-brand-slot img { height: 24px; max-width: 110px; }
.concert-stage.aspect-9x16 .music-now-playing-chassis {
  top: 52px;
  left: 10px;
  right: 10px;
  min-width: 0;
  max-width: none;
  padding: 8px 12px;
}
.concert-stage.aspect-9x16 .lower-third-dock {
  bottom: 96px;
  left: 10px;
  right: 10px;
  max-width: calc(100% - 20px);
}
.concert-stage.aspect-9x16 .lower-third-chassis { padding: 9px 14px; }
.concert-stage.aspect-9x16 .lt-title { font-size: 1.05rem; }
.concert-stage.aspect-9x16 .powered-by-badge { bottom: 42px; right: 10px; }
