:root {
  color-scheme: light dark;
  --bg: #0b0b0c;
  --fg: #eaeaea;
  --muted: #9a9a9a;
  --accent: #4da3ff;
  --border: rgba(128, 128, 128, 0.3);
}
@media (prefers-color-scheme: light) {
  :root { --bg: #fafafa; --fg: #111; --muted: #555; --border: rgba(0, 0, 0, 0.15); }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--fg);
}

header nav {
  display: flex;
  gap: 0.5rem;
  padding: 1rem;
  border-bottom: 1px solid var(--border);
}

.tab {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: inherit;
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
  cursor: pointer;
}
.tab.active { border-color: var(--accent); color: var(--accent); }
.tab:disabled { opacity: 0.4; cursor: not-allowed; }

main {
  padding: 1rem;
  max-width: 900px;
  margin: 0 auto;
}

#live-status { color: var(--muted); }

#stream-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 8px;
}
