:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #172033;
  background: #f4f6fa;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
.topbar {
  display: flex; justify-content: space-between; gap: 24px; align-items: flex-start;
  padding: 28px 32px; background: #fff; border-bottom: 1px solid #dfe3eb;
  position: sticky; top: 0; z-index: 20;
}
.eyebrow { margin: 0 0 6px; font-size: 12px; font-weight: 800; letter-spacing: .16em; }
h1 { margin: 0; font-size: 28px; line-height: 1.15; }
.subhead { margin: 8px 0 0; color: #5b6475; max-width: 760px; }
.top-actions, .stage-controls { display: flex; gap: 10px; align-items: center; }
.button, .icon-button {
  border: 0; border-radius: 10px; padding: 10px 14px; font-weight: 700; cursor: pointer;
  background: #172033; color: #fff; text-decoration: none; display: inline-flex; align-items: center; justify-content: center;
}
.button.secondary, .icon-button { background: #eef1f6; color: #172033; }
.layout {
  display: grid; grid-template-columns: minmax(270px, 330px) 1fr; gap: 22px;
  padding: 24px 32px 16px;
}
.chapters { display: flex; flex-direction: column; gap: 14px; }
.status-card, .production-note, .stage-card {
  background: #fff; border: 1px solid #dfe3eb; border-radius: 16px; box-shadow: 0 10px 30px rgba(22,31,50,.05);
}
.status-card { padding: 18px; display: grid; gap: 6px; }
.status-card span { font-size: 28px; font-weight: 800; }
.status-card small { color: #687184; line-height: 1.45; }
#chapter-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.chapter-button {
  width: 100%; text-align: left; border: 1px solid #dfe3eb; background: #fff; border-radius: 12px;
  padding: 12px; cursor: pointer; display: grid; gap: 4px;
}
.chapter-button strong { font-size: 14px; }
.chapter-button span { color: #667085; font-size: 12px; }
.chapter-button.active { border-color: #172033; box-shadow: inset 4px 0 0 #172033; }
.stage-card { overflow: hidden; }
.stage-toolbar, .chapter-notes {
  display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 16px 18px;
}
.stage-toolbar { border-bottom: 1px solid #e4e7ec; }
.stage-toolbar > div:first-child { display: grid; gap: 3px; }
#chapter-range { color: #687184; font-size: 13px; }
.stage {
  position: relative; aspect-ratio: 16 / 9; background: #0f1420; overflow: hidden;
}
#product-frame { width: 100%; height: 100%; border: 0; background: #fff; }
.presenter-panel {
  position: absolute; right: 22px; bottom: 68px; width: min(22%, 250px);
  background: rgba(255,255,255,.95); border-radius: 16px; padding: 8px; box-shadow: 0 18px 45px rgba(0,0,0,.22);
}
.presenter-panel video { width: 100%; display: block; border-radius: 12px; background: #111; }
.presenter-label { padding: 8px 6px 2px; display: grid; gap: 2px; font-size: 12px; }
.presenter-label span { color: #667085; }
.caption-bar {
  position: absolute; left: 5%; right: 5%; bottom: 16px; padding: 12px 16px;
  background: rgba(10,14,22,.88); color: #fff; border-radius: 10px; font-size: clamp(14px,1.45vw,20px);
  line-height: 1.35; text-align: center;
}
.progress-wrap { padding: 14px 18px 4px; }
.progress-track { height: 8px; border-radius: 999px; background: #e9edf3; overflow: hidden; }
#progress-bar { width: 0; height: 100%; background: #172033; }
.progress-meta { display: flex; justify-content: space-between; padding-top: 7px; color: #667085; font-size: 12px; }
.chapter-notes { align-items: flex-start; }
.chapter-notes h2 { margin: 0 0 6px; font-size: 18px; }
.chapter-notes p { margin: 0; color: #596273; line-height: 1.5; max-width: 850px; }
.production-note { margin: 0 32px 32px; padding: 16px 18px; color: #485166; }
@media (max-width: 900px) {
  .topbar { position: static; flex-direction: column; }
  .layout { grid-template-columns: 1fr; padding: 18px; }
  .presenter-panel { width: 28%; right: 12px; bottom: 72px; }
  .production-note { margin: 0 18px 24px; }
}
