:root { --bg:#0f1115; --panel:#181b22; --text:#e8eaf0; --muted:#9aa1b2; --accent:#e5484d; --line:#2a2f3a; }
* { box-sizing: border-box; }
body { margin:0; font:15px/1.5 system-ui, sans-serif; background:var(--bg); color:var(--text); }
main { max-width:1200px; margin:0 auto; padding:24px 16px; }
h1 { font-size:22px; margin:0 0 16px; }
.card { background:var(--panel); border:1px solid var(--line); border-radius:10px; padding:20px; max-width:420px; }
input, button { font:inherit; padding:10px 12px; border-radius:8px; border:1px solid var(--line); background:#0c0e12; color:var(--text); width:100%; margin:6px 0; }
button { background:var(--accent); border:0; cursor:pointer; font-weight:600; }
button.secondary { background:transparent; border:1px solid var(--line); }
.muted { color:var(--muted); }
.error { color:#ff8a8a; min-height:1.5em; }
.layout { display:grid; grid-template-columns: 1fr 340px; gap:16px; }
@media (max-width: 860px) { .layout { grid-template-columns: 1fr; } }
video { width:100%; aspect-ratio:16/9; background:#000; border-radius:10px; }
#chat { display:flex; flex-direction:column; height:min(70vh, 640px); background:var(--panel); border:1px solid var(--line); border-radius:10px; }
#msgs { flex:1; overflow-y:auto; padding:12px; }
#msgs div { margin:0 0 6px; word-wrap:break-word; }
#msgs b { color:#8ab4ff; margin-right:6px; }
#chatform { display:flex; gap:8px; padding:10px; border-top:1px solid var(--line); }
#chatform input { margin:0; } #chatform button { width:auto; margin:0; }
.badge { display:inline-block; padding:2px 8px; border-radius:99px; background:var(--accent); font-size:12px; font-weight:700; margin-left:8px; }
