:root {
  --bg: #0b0d10;
  --fg: #e8eaed;
  --muted: #8a9099;
  --live: #e5322d;
  --panel: #15181d;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--fg);
  font: 15px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 12px 16px; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; }
.bar h1 { margin: 0; font-size: 1.15rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status { flex: none; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; background: var(--panel); color: var(--muted); }
.status.live { background: var(--live); color: #fff; }
.status.live::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px;
  border-radius: 50%; background: #fff; vertical-align: 1px; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.stage { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 6px; overflow: hidden; }
video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; }
.overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 24px; background: #000; color: var(--muted); }
.overlay strong { color: var(--fg); font-size: 1.1rem; }
.overlay[hidden], .unmute[hidden] { display: none; }
.unmute { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  border: 0; border-radius: 999px; padding: 12px 20px; font: inherit; font-weight: 600;
  background: rgba(0,0,0,.75); color: #fff; cursor: pointer; }
.unmute:hover { background: rgba(0,0,0,.9); }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 2px; color: var(--muted); font-size: .8rem; }
.foot #quality { flex: 1; }
.q { font: inherit; color: var(--fg); background: var(--panel); border: 1px solid #2a2f37;
  border-radius: 6px; padding: 4px 8px; cursor: pointer; }
.q[hidden] { display: none; }
@media (max-width: 600px) {
  .wrap { padding: 8px 0; }
  .bar, .foot { padding-left: 16px; padding-right: 16px; }
  .stage { border-radius: 0; }
}
