:root { --bg:#0f1115; --panel:#181b22; --text:#eef0f4; --muted:#9aa3b2; --accent:#ff4d6d; --ok:#2ecc71; --warn:#f5a623; --bad:#e5484d; }
* { box-sizing: border-box; }
body { margin:0; background:var(--bg); color:var(--text); font:16px/1.4 system-ui,-apple-system,Segoe UI,sans-serif; }
a { color:inherit; }
.muted { color:var(--muted); }
header.bar { display:flex; align-items:center; justify-content:space-between; padding:12px 16px; }
header.bar a { text-decoration:none; color:var(--muted); font-size:14px; }
header.bar h1 { font-size:18px; margin:0; }
main { padding:0 16px 24px; max-width:1100px; margin:0 auto; }

.landing-main { min-height:100vh; display:flex; flex-direction:column; justify-content:center; gap:16px; padding:24px 16px; max-width:480px; margin:0 auto; }
.landing-main h1 { margin:0; font-size:32px; }
.big-link { display:block; text-align:center; text-decoration:none; font-size:22px; font-weight:600; padding:28px 16px; border-radius:14px; background:var(--accent); color:#fff; }
.big-link.alt { background:var(--panel); border:1px solid #2b3040; }

.player { position:relative; width:100%; max-width:420px; aspect-ratio:9/16; max-height:80vh; margin:0 auto; background:#000; border-radius:12px; overflow:hidden; }
.player video, .player .ovp { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; background:#000; }
.player .ovp[hidden], .player video[hidden] { display:none; }
.badges { position:absolute; top:8px; left:8px; right:8px; display:flex; gap:6px; flex-wrap:wrap; z-index:2; pointer-events:none; }
.badge { background:rgba(0,0,0,.65); padding:2px 8px; border-radius:999px; font-size:12px; font-variant-numeric:tabular-nums; }
.overlay { position:absolute; inset:0; z-index:3; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:12px; background:rgba(0,0,0,.75); text-align:center; padding:16px; }
.overlay[hidden] { display:none; }
button, .btn { font:inherit; padding:10px 16px; border-radius:8px; border:1px solid #333a4a; background:var(--panel); color:var(--text); cursor:pointer; }
button.primary { background:var(--accent); border-color:var(--accent); color:#fff; }
button:disabled { opacity:.5; cursor:default; }
.controls { display:flex; justify-content:center; margin-top:12px; }

.monitors { display:grid; grid-template-columns:1fr; gap:16px; }
@media (min-width:768px) { .monitors { grid-template-columns:1fr 1fr; } }
.monitor h2, .panel h2 { font-size:15px; margin:0 0 8px; color:var(--muted); font-weight:600; }
.monitor .player { max-width:100%; max-height:70vh; }
.panel { background:var(--panel); border-radius:12px; padding:16px; margin-top:16px; }
.row { display:flex; gap:10px; flex-wrap:wrap; align-items:center; margin:8px 0; }
.row select { flex:1 1 160px; min-width:0; padding:8px; border-radius:8px; background:var(--bg); color:var(--text); border:1px solid #333a4a; font:inherit; }
.pill { display:inline-block; padding:2px 10px; border-radius:999px; font-size:13px; font-weight:600; background:#333a4a; }
.pill.connecting { background:var(--warn); color:#000; }
.pill.live { background:var(--ok); color:#000; }
.pill.failed { background:var(--bad); }
.stats { font-size:13px; color:var(--muted); margin-top:6px; font-variant-numeric:tabular-nums; }
code, pre { font:13px ui-monospace,Menlo,monospace; background:var(--bg); border-radius:6px; }
code { padding:1px 5px; word-break:break-all; }
pre { padding:10px; overflow-x:auto; margin:6px 0; white-space:pre-wrap; word-break:break-all; }
.err { color:var(--bad); font-size:14px; min-height:1.2em; }
