:root { --bg:#101218; --panel:#181b23; --line:#2a2e3a; --text:#e8eaf0; --muted:#8b93a7; --accent:#4f8cff; --ok:#3ecf8e; --warn:#f5b84b; --bad:#ef5b5b; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.45 "Segoe UI", system-ui, sans-serif; }
a { color: var(--accent); text-decoration: none; }
header#top { display: flex; align-items: center; justify-content: space-between; padding: 10px 20px; border-bottom: 1px solid var(--line); background: var(--panel); position: sticky; top: 0; z-index: 5; }
.logo { font-weight: 600; color: var(--text); font-size: 17px; }
#nav { display: flex; gap: 14px; align-items: center; }
main { max-width: 1280px; margin: 0 auto; padding: 18px 20px 60px; }
.muted { color: var(--muted); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 14px; }
.card.narrow { max-width: 420px; margin: 40px auto; }
h1, h2, h3 { margin: 0 0 10px; }
h2 { font-size: 18px; } h3 { font-size: 15px; color: var(--muted); font-weight: 500; }
label { display: block; margin: 10px 0 4px; color: var(--muted); font-size: 13px; }
input, select { width: 100%; padding: 9px 11px; background: #0e1015; color: var(--text); border: 1px solid var(--line); border-radius: 8px; font: inherit; }
input[type=range] { padding: 0; accent-color: var(--accent); }
input[type=checkbox] { width: auto; }
button, .btn { padding: 8px 14px; background: #232734; color: var(--text); border: 1px solid var(--line); border-radius: 8px; cursor: pointer; font: inherit; }
button:hover:not(:disabled) { background: #2b3040; }
button:disabled { opacity: .45; cursor: default; }
button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
button.danger { color: var(--bad); }
button.small { padding: 4px 9px; font-size: 13px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row > .grow { flex: 1; min-width: 0; }
.tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.tabs button.on { background: var(--accent); border-color: var(--accent); }
.msg { padding: 10px 12px; border-radius: 8px; margin: 10px 0; background: #20242f; }
.msg.ok { border-left: 3px solid var(--ok); } .msg.err { border-left: 3px solid var(--bad); } .msg.warn { border-left: 3px solid var(--warn); }
.list .item { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.list .item:last-child { border-bottom: 0; }
.pill { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: #232734; color: var(--muted); }
.pill.pending { color: var(--warn); } .pill.approved, .pill.owner, .pill.member { color: var(--ok); } .pill.denied, .pill.banned { color: var(--bad); }
.room { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; }
@media (max-width: 900px) { .room { grid-template-columns: 1fr; } }
.stage { background: #000; border-radius: 12px; overflow: hidden; position: relative; aspect-ratio: 16 / 9; }
.stage video, .stage iframe, .stage .yt { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.stage .empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--muted); padding: 20px; }
.stage .overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.6); z-index: 2; }
.controls { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-top: 10px; }
.controls .seek { display: flex; gap: 10px; align-items: center; }
.controls .seek span { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 13px; min-width: 46px; text-align: center; }
.controls .btns { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.controls .vol { display: flex; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); }
.controls .vol input { width: 110px; }
.sync { font-size: 13px; padding: 4px 10px; border-radius: 999px; background: #20242f; }
.sync.good { color: var(--ok); } .sync.mid { color: var(--warn); } .sync.bad { color: var(--bad); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--muted); margin-right: 6px; }
.dot.good { background: var(--ok); } .dot.mid { background: var(--warn); } .dot.bad { background: var(--bad); }
.toast { position: fixed; right: 18px; bottom: 18px; background: #2f6feb; padding: 10px 14px; border-radius: 8px; z-index: 20; max-width: 80vw; }
.toast.err { background: #c0392b; } .hidden { display: none; }
.gbtn { margin-top: 12px; display: flex; justify-content: center; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
td, th { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 500; }
.small { font-size: 12px; }
.controls select { width: auto; }
.controls .btns input[type=range] { width: 110px; }
