:root {
  --bg: #f6f6f4; --card: #fff; --text: #1b1b1b; --muted: #6b6b6b; --line: #e3e3df;
  --accent: #3b5bdb; --accent-text: #fff; --danger: #c92a2a;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #141414; --card: #1e1e1e; --text: #ececec; --muted: #9a9a9a; --line: #2e2e2e; --accent: #748ffc; --accent-text: #0d0d0d; --danger: #ff6b6b; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; }
.wrap { max-width: 760px; margin: 0 auto; padding: 32px 20px 64px; }
h1 { font-size: 26px; margin: 0 0 4px; letter-spacing: -0.01em; }
h2 { font-size: 17px; margin: 32px 0 2px; }
.muted { color: var(--muted); margin: 0; }
.small { font-size: 13px; }
.hidden { display: none !important; }
.top { margin-bottom: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px; display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field > span { font-weight: 600; font-size: 13px; }
input[type=text], input[readonly] { font: inherit; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: inherit; width: 100%; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { border: 1px solid var(--line); border-radius: 8px; padding: 7px 12px; cursor: pointer; display: flex; gap: 6px; align-items: center; }
.seg label:has(input:checked) { border-color: var(--accent); }
.check { display: flex; gap: 8px; align-items: center; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn { font: inherit; font-weight: 600; padding: 9px 16px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--text); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.ghost { background: transparent; }
video { width: 100%; border-radius: 8px; background: #000; max-height: 60vh; }
.live { display: flex; gap: 10px; align-items: center; font-variant-numeric: tabular-nums; font-weight: 600; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--danger); animation: blink 1s infinite; }
.paused .dot { animation: none; opacity: .4; }
@keyframes blink { 50% { opacity: .3; } }
.progress { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.progress div { height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.result { display: flex; gap: 8px; }
#list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
#list li { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; display: flex; gap: 10px; align-items: center; }
#list .t { flex: 1; min-width: 0; }
#list .t a { color: inherit; font-weight: 600; text-decoration: none; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#list .t span { color: var(--muted); font-size: 12px; }
#list button { font: inherit; font-size: 13px; background: none; border: none; color: var(--muted); cursor: pointer; padding: 4px 6px; }
#list button:hover { color: var(--text); }
