:root {
  --bg: #07111f;
  --panel: #0f1d33;
  --panel2: #132741;
  --text: #f4f7fb;
  --muted: #a8b6ca;
  --accent: #33cc99;
  --accent2: #afd6d3;
  --danger: #fb7268;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: radial-gradient(circle at top, #132741 0, var(--bg) 55%); color: var(--text); }
.app { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 48px; }
.hero { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; margin-bottom: 24px; }
.eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 700; margin: 0 0 8px; }
h1 { margin: 0; font-size: clamp(30px, 4vw, 52px); line-height: 1.05; }
.lead { color: var(--muted); max-width: 760px; font-size: 18px; line-height: 1.5; }
.status-card { display: inline-flex; align-items: center; gap: 10px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); padding: 12px 16px; border-radius: 999px; white-space: nowrap; }
.dot { width: 12px; height: 12px; border-radius: 99px; background: #8893a7; box-shadow: 0 0 0 4px rgba(255,255,255,.05); }
.dot.live { background: var(--accent); }
.dot.error { background: var(--danger); }
.controls { display: grid; grid-template-columns: repeat(4, minmax(160px, 1fr)) auto auto; gap: 12px; align-items: end; background: rgba(15,29,51,.85); border: 1px solid rgba(255,255,255,.10); border-radius: 18px; padding: 16px; margin-bottom: 18px; }
label { color: var(--muted); font-size: 13px; display: grid; gap: 6px; }
select, button { border: 0; border-radius: 12px; min-height: 44px; padding: 0 14px; font: inherit; }
select { background: #09172a; color: var(--text); border: 1px solid rgba(255,255,255,.14); }
button { cursor: pointer; font-weight: 700; }
button:disabled { cursor: not-allowed; opacity: .5; }
.primary { background: var(--accent); color: #042018; }
.secondary { background: var(--panel2); color: var(--text); border: 1px solid rgba(255,255,255,.14); }
.check { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.check input { width: 18px; height: 18px; }
.stage { position: relative; overflow: hidden; border-radius: 24px; background: #000; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 28px 80px rgba(0,0,0,.35); aspect-ratio: 16 / 9; }
video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); display: block; }
.caption { position: absolute; left: 5%; right: 5%; bottom: 6%; text-align: center; display: flex; justify-content: center; }
.caption span { display: inline-block; background: rgba(0,0,0,.72); color: #fff; padding: .5em .75em; border-radius: 14px; font-weight: 800; line-height: 1.25; text-shadow: 0 2px 6px rgba(0,0,0,.5); max-width: 100%; }
.caption.normal span { font-size: clamp(24px, 3.2vw, 44px); }
.caption.large span { font-size: clamp(30px, 4vw, 56px); }
.caption.xl span { font-size: clamp(36px, 5vw, 72px); }
.panels { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.panel { background: rgba(15,29,51,.82); border: 1px solid rgba(255,255,255,.10); border-radius: 18px; padding: 16px; min-height: 180px; }
.panel h2 { margin: 0 0 10px; font-size: 18px; }
.transcript { color: var(--accent2); line-height: 1.6; white-space: pre-wrap; }
pre { white-space: pre-wrap; word-break: break-word; max-height: 360px; overflow: auto; color: #d8e2f0; }
@media (max-width: 900px) { .hero { display: block; } .controls { grid-template-columns: 1fr; } .panels { grid-template-columns: 1fr; } }
