:root {
  --bg: #f7f7f8; --fg: #16161a; --muted: #6b6b76; --card: #ffffff;
  --line: #e3e3e8; --accent: #4f46e5; --accent-fg: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111114; --fg: #ececf1; --muted: #9a9aa6; --card: #1b1b20;
    --line: #2c2c34; --accent: #8b85ff; --accent-fg: #111114;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
main { max-width: 1100px; margin: 0 auto; padding: 24px 16px 48px; }
.frame { background: #000; border-radius: 12px; overflow: hidden; }
video { display: block; width: 100%; max-height: 75vh; background: #000; }
h1 { font-size: 22px; margin: 18px 0 2px; overflow-wrap: anywhere; }
.byline, .expires { color: var(--muted); margin: 0; }
.expires { margin-top: 24px; font-size: 13px; }
.toolbar {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  margin-top: 16px;
}
.speeds, .actions { display: flex; gap: 6px; flex-wrap: wrap; }
button, .actions a {
  font: inherit; font-size: 14px; color: var(--fg); background: var(--card);
  border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px;
  cursor: pointer; text-decoration: none;
}
button[aria-pressed="true"] {
  background: var(--accent); color: var(--accent-fg); border-color: var(--accent);
}
.center { min-height: 100vh; display: grid; place-items: center; text-align: center; }
.center p { color: var(--muted); }
.download {
  display: inline-block; margin-top: 8px; padding: 10px 18px; border-radius: 10px;
  background: var(--accent); color: var(--accent-fg); text-decoration: none; font-weight: 600;
}
.small { font-size: 13px; }
