:root {
  color-scheme: dark;
  --bg: #0e1116;
  --panel: #161b22;
  --line: #2a313c;
  --text: #e6edf3;
  --muted: #8b949e;
  --accent: #3b82f6;
  --live: #22c55e;
  --danger: #f87171;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); }

.login { display: grid; place-items: center; min-height: 100%; padding: 16px; }
.card { width: 100%; max-width: 360px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 28px; }
.card h1 { margin: 0 0 4px; font-size: 22px; }
.card p.sub { margin: 0 0 20px; color: var(--muted); font-size: 14px; }
label { display: block; font-size: 13px; color: var(--muted); margin: 14px 0 6px; }
input { width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font-size: 15px; }
input:focus { outline: 2px solid var(--accent); border-color: transparent; }
button { cursor: pointer; border: 1px solid var(--line); background: var(--panel); color: var(--text); padding: 8px 12px; border-radius: 8px; font-size: 14px; }
button.primary { width: 100%; margin-top: 22px; padding: 11px; background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
button:disabled { opacity: .6; cursor: wait; }
.error { color: var(--danger); min-height: 1.2em; font-size: 14px; margin: 12px 0 0; }

.play { display: flex; flex-direction: column; height: 100%; }
.bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 8px 16px; border-bottom: 1px solid var(--line); background: var(--panel); }
.bar .brand { font-weight: 600; }
.bar .spacer { flex: 1; }
#status { color: var(--muted); font-size: 13px; }
#status[data-live="true"] { color: var(--live); }
#admin { display: flex; gap: 6px; }
#player { position: relative; flex: 1; min-height: 0; }
