/* VSS2026 Stage — Kit B (purple + lavender). Shared by LAP + AAP shells. */
:root {
  --brand-purple:        #4b3762;
  --brand-purple-light:  #715293;
  --brand-lavender:      #d6bcfa;
  --brand-lavender-soft: #f3edff;
  --brand-dark:          #06062e;
  --brand-light:         #f8f8f8;
  --brand-accent:        #757bbd;
  --white:               #ffffff;
  --text-dark:           #1F2937;
  --text-muted:          #4B5563;
  --border-color:        #e0e0e0;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius:    20px;
  --radius-sm: 12px;
  --transition: 0.3s ease;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text-dark); background: var(--brand-light); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--brand-purple-light); }

.h-serif { font-family: var(--font-heading); font-style: italic; font-weight: 400; }

/* ---------- Upsell slim bar (LAP only) ---------- */
.upsell-bar {
  background: var(--brand-dark); color: #fff; text-align: center;
  font-size: 0.82rem; font-weight: 500; padding: 9px 16px; line-height: 1.45;
}
.upsell-bar strong { font-weight: 600; color: var(--brand-lavender); }
.upsell-bar a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Header ---------- */
.stage-header {
  background:
    radial-gradient(120% 90% at 85% 8%, rgba(117,123,189,.45) 0%, rgba(117,123,189,0) 55%),
    linear-gradient(158deg, #2a1d3d 0%, var(--brand-dark) 60%, #04041f 100%);
  color: #fff; padding: 26px 20px 30px; text-align: center; position: relative; overflow: hidden;
}
.stage-header .lockup { height: 74px; width: auto; }
.stage-header .watermark { position: absolute; right: -110px; top: -90px; width: 380px; opacity: .06; pointer-events: none; }
.stage-header h1 { font-family: var(--font-heading); font-style: italic; font-weight: 400; font-size: clamp(1.7rem, 4.6vw, 2.5rem); margin-top: 14px; letter-spacing: -0.01em; }
.stage-header .sub { margin-top: 8px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--brand-lavender); }
.aap-badge {
  display: inline-block; margin-top: 12px; padding: 5px 14px; border: 1px solid var(--brand-lavender);
  border-radius: 999px; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brand-lavender);
}

/* ---------- Status strip ---------- */
.status-strip {
  background: var(--brand-purple); color: #fff; text-align: center; padding: 10px 16px;
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.02em;
}
.status-strip .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-lavender); margin-right: 8px; vertical-align: 1px; }
.status-strip.is-live .dot { background: #ff5c7a; animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .status-strip.is-live .dot { animation: none; } }

/* ---------- Main layout ---------- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 18px; }
.stage-main { padding: 28px 0 10px; }

/* Player region */
.player-zone { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: stretch; }
.player-panel { background: var(--brand-dark); border-radius: var(--radius); overflow: hidden; position: relative; min-height: 320px; display: flex; flex-direction: column; }
.player-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.player-frame iframe, .player-frame #yt-player { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.chat-panel { background: var(--white); border: 1px solid var(--border-color); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.chat-panel .chat-head { padding: 12px 16px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand-purple); border-bottom: 1px solid var(--border-color); }
.chat-panel iframe { flex: 1; width: 100%; border: 0; min-height: 380px; }
.chat-note { padding: 10px 16px; font-size: 0.74rem; color: var(--text-muted); border-top: 1px solid var(--border-color); line-height: 1.5; }
@media (max-width: 900px) { .player-zone { grid-template-columns: 1fr; } .chat-panel iframe { min-height: 320px; } }

/* Curtain (pre-live / between states) */
.curtain { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #fff; padding: 44px 24px; background: linear-gradient(158deg, #2a1d3d 0%, var(--brand-dark) 70%); }
.curtain .mark { width: 74px; opacity: .5; margin-bottom: 18px; }
.curtain h2 { font-family: var(--font-heading); font-style: italic; font-weight: 400; font-size: clamp(1.4rem, 3.4vw, 2rem); }
.curtain p { margin-top: 10px; font-size: 0.95rem; color: rgba(255,255,255,.75); max-width: 480px; line-height: 1.6; }
.countdown { display: flex; gap: 10px; justify-content: center; margin-top: 22px; }
.cd-box { background: rgba(255,255,255,.08); border: 1px solid rgba(214,188,250,.35); border-radius: var(--radius-sm); padding: 10px 0; width: 74px; }
.cd-box .n { font-size: 1.6rem; font-weight: 600; color: var(--brand-lavender); font-variant-numeric: tabular-nums; }
.cd-box .l { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-top: 3px; }

/* Now-playing meta under player */
.now-meta { padding: 16px 20px 18px; color: #fff; }
.now-meta .np-label { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brand-lavender); }
.now-meta h2 { font-size: 1.05rem; font-weight: 600; margin-top: 6px; line-height: 1.35; }
.now-meta .spk { margin-top: 4px; font-size: 0.85rem; color: rgba(255,255,255,.72); }
.now-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }

/* Enter overlay (audio unlock) */
.enter-overlay { position: absolute; inset: 0; background: rgba(6,6,46,.86); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; z-index: 5; padding: 24px; }
.enter-overlay p { color: rgba(255,255,255,.8); font-size: 0.85rem; margin-top: 12px; max-width: 380px; line-height: 1.55; }

/* Buttons */
.btn { display: inline-block; font-family: var(--font-body); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.04em; padding: 12px 26px; border-radius: 999px; text-decoration: none; cursor: pointer; border: 0; transition: var(--transition); }
.btn-primary { background: var(--brand-lavender); color: var(--brand-dark); }
.btn-primary:hover { background: #e6d6ff; }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(214,188,250,.6); }
.btn-ghost:hover { border-color: var(--brand-lavender); }
.btn-solid { background: var(--brand-purple); color: #fff; }
.btn-solid:hover { background: var(--brand-purple-light); }
.btn[disabled] { opacity: .45; cursor: default; }

/* CTA row */
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 26px 0 6px; }

/* ---------- Bonus rail (AAP) ---------- */
.bonus-rail { margin-top: 34px; background: var(--brand-lavender-soft); border: 1px solid #e4d7fb; border-radius: var(--radius); padding: 22px 22px 8px; }
.bonus-rail .rail-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.bonus-rail h3 { font-family: var(--font-heading); font-style: italic; font-weight: 400; font-size: 1.35rem; color: var(--brand-purple); }
.bonus-rail .rail-sub { font-size: 0.8rem; color: var(--text-muted); }

/* ---------- Agenda ---------- */
.agenda-zone { margin-top: 34px; }
.day-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.day-tab { flex: 1; min-width: 150px; text-align: center; background: var(--white); border: 1px solid var(--border-color); border-radius: var(--radius-sm); padding: 12px 10px; cursor: pointer; font-family: var(--font-body); transition: var(--transition); }
.day-tab .dt-day { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brand-accent); }
.day-tab .dt-title { font-family: var(--font-heading); font-style: italic; font-weight: 400; font-size: 1.02rem; color: var(--brand-purple); margin-top: 3px; }
.day-tab.active { background: var(--brand-purple); border-color: var(--brand-purple); }
.day-tab.active .dt-day { color: var(--brand-lavender); }
.day-tab.active .dt-title { color: #fff; }
.day-tab.is-today { box-shadow: 0 0 0 2px var(--brand-lavender); }

.session-list { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.ses-card { display: grid; grid-template-columns: 92px minmax(0,1fr) auto; gap: 14px; align-items: center; background: var(--white); border: 1px solid var(--border-color); border-radius: var(--radius-sm); padding: 14px 16px; }
.ses-card .time { font-size: 0.8rem; font-weight: 600; color: var(--brand-purple); border-left: 3px solid var(--brand-lavender); padding-left: 10px; line-height: 1.3; }
.ses-card .title { font-size: 0.92rem; font-weight: 600; line-height: 1.35; }
.ses-card .spk { font-size: 0.78rem; color: var(--text-muted); margin-top: 3px; }
.ses-card .side { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; }
.ses-card.is-live { border-color: var(--brand-purple); background: linear-gradient(90deg, rgba(214,188,250,.18), rgba(214,188,250,0) 55%), var(--white); }
.ses-card.is-past { opacity: .88; }
@media (max-width: 640px) { .ses-card { grid-template-columns: 1fr; } .ses-card .side { flex-direction: row; align-items: center; justify-content: space-between; width: 100%; } .ses-card .time { border-left: 0; padding-left: 0; } }

.pill { font-size: 0.6rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.pill-keynote { background: var(--brand-purple); color: #fff; }
.pill-panel   { background: var(--brand-purple-light); color: #fff; }
.pill-lab     { background: var(--brand-lavender); color: var(--brand-dark); }
.pill-story   { background: transparent; color: var(--brand-purple-light); border: 1.3px solid var(--brand-purple-light); }
.pill-sponsor { background: transparent; color: var(--brand-accent); border: 1.3px dashed var(--brand-accent); }
.pill-qa      { background: var(--brand-accent); color: #fff; }
.pill-talk    { background: var(--brand-lavender-soft); color: var(--brand-purple); }

.chip { font-size: 0.7rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; white-space: nowrap; }
.chip-live { background: #ff5c7a; color: #fff; }
.chip-next { background: var(--brand-lavender-soft); color: var(--brand-purple); }
.chip-replay { background: var(--brand-purple); color: #fff; text-decoration: none; cursor: pointer; }
.chip-soon { background: var(--brand-light); color: var(--text-muted); border: 1px solid var(--border-color); }
.chip-meet { background: var(--brand-accent); color: #fff; text-decoration: none; }
.dl-link { font-size: 0.72rem; font-weight: 600; color: var(--brand-purple-light); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Upsell section (LAP) ---------- */
.upsell-section { margin-top: 40px; background: linear-gradient(158deg, #2a1d3d 0%, var(--brand-dark) 70%); border-radius: var(--radius); color: #fff; padding: 36px 28px; text-align: center; }
.upsell-section h3 { font-family: var(--font-heading); font-style: italic; font-weight: 400; font-size: clamp(1.4rem, 3.2vw, 1.9rem); }
.upsell-section p { margin: 12px auto 0; max-width: 560px; font-size: 0.92rem; line-height: 1.65; color: rgba(255,255,255,.78); }
.upsell-section .price { font-size: 2rem; font-weight: 600; color: var(--brand-lavender); margin-top: 16px; }
.upsell-section .micro { display: block; margin-top: 14px; font-size: 0.75rem; color: rgba(255,255,255,.55); }

/* ---------- Footer ---------- */
.stage-footer { margin-top: 44px; border-top: 1px solid var(--border-color); padding: 26px 18px 34px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; max-width: 1180px; margin-left: auto; margin-right: auto; }
.stage-footer img { height: 30px; width: auto; }
.stage-footer .links { display: flex; gap: 18px; flex-wrap: wrap; font-size: 0.78rem; font-weight: 500; }
.stage-footer a { color: var(--text-muted); text-decoration: none; }
.stage-footer a:hover { color: var(--brand-purple); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
