:root { --bg: #0b0d12; --card: #141824; --line: #252b3b; --txt: #e9ecf5; --mut: #8a93a8; --acc: #8b5cf6; --ok: #34d399; --bad: #fb4b62; color-scheme: dark; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--txt); font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
main { max-width: 760px; margin: 0 auto; padding: max(12px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom)); }
.top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand small { display: block; color: var(--mut); font-size: 12px; }
.logo { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-weight: 800; background: linear-gradient(135deg, #4dabf7, #7c4dff); }
.badge { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: #252b3b; color: var(--mut); }
.badge.on { background: rgba(52,211,153,.15); color: var(--ok); }
.badge.live { background: rgba(251,75,98,.18); color: #ff8fa0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px; margin-bottom: 12px; }
h1 { font-size: 20px; margin: 0 0 6px; }
.muted { color: var(--mut); font-size: 13.5px; }
label { display: block; font-size: 13px; color: var(--mut); margin: 10px 0 0; }
label small { color: #5f6880; }
input, select { display: block; width: 100%; margin-top: 4px; padding: 11px 12px; border-radius: 11px; border: 1px solid var(--line); background: #0f121a; color: var(--txt); font: inherit; }
#code { font-size: 22px; letter-spacing: .18em; font-weight: 700; text-transform: uppercase; text-align: center; }
.row { display: grid; grid-template-columns: 1.4fr 1fr .7fr; gap: 8px; }
@media (max-width: 420px) { .row { grid-template-columns: 1fr 1fr; } .row label:first-child { grid-column: 1 / -1; } }
.btn { display: block; width: 100%; margin-top: 14px; padding: 13px; border: 0; border-radius: 12px; font: inherit; font-weight: 700; color: #fff; background: #252b3b; }
.btn.main { background: linear-gradient(135deg, #7c4dff, #4dabf7); }
.err { color: #ff8fa0; font-size: 13.5px; margin: 10px 0 0; }
.stage { position: relative; border-radius: 16px; overflow: hidden; background: #000; margin-bottom: 12px; aspect-ratio: 16 / 9; }
.stage video { width: 100%; height: 100%; object-fit: contain; display: block; }
.stage.mirror video { transform: scaleX(-1); }
.pv-bar { position: absolute; left: 8px; top: 8px; display: flex; gap: 6px; }
.pill { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: rgba(0,0,0,.6); }
.pill.ok { color: var(--ok); } .pill.bad { color: #ff8fa0; }
.pv-ctrl { position: absolute; right: 8px; bottom: 8px; display: flex; gap: 8px; }
.round { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 18px; }
.round.off { background: rgba(251,75,98,.75); }
.round.red { background: rgba(251,75,98,.85); }
.h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.h small { color: var(--mut); font-size: 12px; }
.scenes { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.scenes button { padding: 14px 10px; border-radius: 12px; border: 1px solid var(--line); background: #0f121a; color: var(--txt); font: inherit; font-weight: 650; }
.scenes button.cur { border-color: var(--bad); background: rgba(251,75,98,.14); }
.scenes button.wait { opacity: .6; }
.msgs { max-height: 46vh; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.msg { font-size: 14px; word-wrap: break-word; }
.msg b { margin-right: 4px; }
.msg i { font-style: normal; font-size: 10.5px; font-weight: 800; padding: 1px 5px; border-radius: 5px; margin-right: 5px; vertical-align: 1px; background: #252b3b; }
.msg i.twitch { background: #9146ff; } .msg i.youtube { background: #ff0033; } .msg i.kick { background: #53fc18; color: #000; } .msg i.realdodos { background: #7c4dff; }
.foot { text-align: center; font-size: 12px; color: var(--mut); }
.foot a { color: var(--mut); }
[hidden] { display: none !important; }
