:root {
  --bg: #0b0b0d; --card: #1c1c1e; --line: rgba(255,255,255,0.08); --ink: #f5f5f7; --soft: #a1a1a6;
  --blue: #0a84ff; --live: #ff453a;
  --sans: -apple-system, "SF Pro Text", "SF Pro Display", "Helvetica Neue", "Geist", sans-serif;
  --mono: "SF Mono", "Geist Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
main { max-width: 760px; margin: 0 auto; padding: max(16px, env(safe-area-inset-top)) 16px 40px; }
.top { display: flex; align-items: baseline; justify-content: space-between; padding: 8px 2px 14px; }
h1 { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.count { color: var(--soft); font-size: 13px; font-variant-numeric: tabular-nums; }
.stage { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.screen { position: relative; aspect-ratio: 16 / 9; background: #000; }
video { width: 100%; height: 100%; display: block; object-fit: contain; background: #000; }
.veil { position: absolute; inset: 0; display: grid; place-items: center; color: var(--soft); font-size: 14px; background: #000; transition: opacity 250ms ease; }
.veil.gone { opacity: 0; pointer-events: none; }
.sound { position: absolute; right: 10px; bottom: 10px; border: 0; border-radius: 8px; padding: 7px 11px; font: 600 12px var(--sans); color: var(--ink); background: rgba(28,28,30,0.82); backdrop-filter: blur(8px); cursor: pointer; }
.sound:active, .quality button:active, .row:active { transform: scale(0.98); }
.now { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 14px 16px 16px; }
.now-text { min-width: 0; }
h2 { margin: 0 0 3px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.now p { margin: 0; color: var(--soft); font-size: 13px; line-height: 1.45; text-wrap: pretty; }
.quality { display: flex; flex: none; background: var(--bg); border: 1px solid var(--line); border-radius: 9px; padding: 2px; }
.quality button { border: 0; background: transparent; color: var(--soft); font: 600 12px var(--sans); padding: 7px 10px; border-radius: 7px; cursor: pointer; transition: background 200ms, color 200ms; }
.quality button[aria-pressed="true"] { background: var(--card); color: var(--ink); }
.quality button:disabled { opacity: 0.35; cursor: default; }
.list h3 { margin: 26px 2px 10px; font-size: 13px; font-weight: 600; color: var(--soft); letter-spacing: 0.01em; }
ul { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--card); }
ul:empty { display: none; }
.row { display: grid; grid-template-columns: 12px 1fr auto; gap: 12px; align-items: center; width: 100%; text-align: left; padding: 14px 16px; border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--ink); font: inherit; cursor: pointer; transition: background 200ms; }
li:first-child .row { border-top: 0; }
.row:hover { background: rgba(255,255,255,0.03); }
.row[aria-current="true"] { background: rgba(10,132,255,0.10); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #48484a; }
.dot.on { background: var(--live); box-shadow: 0 0 0 4px rgba(255,69,58,0.16); }
.row-title { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-sub { color: var(--soft); font-size: 12.5px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tag { font: 600 11px var(--mono); color: var(--soft); text-transform: uppercase; letter-spacing: 0.05em; }
.tag.on { color: var(--live); }
.empty { color: var(--soft); font-size: 14px; line-height: 1.5; padding: 4px 2px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
