:root { --bg: #0e1116; --panel: #161b22; --line: #232a35; --text: #e6edf3; --muted: #8b98a8; --accent: #4fb3ff; --good: #3fdc8a; --warn: #ffb020; --bad: #ff5a5a; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font: 14px/1.4 system-ui, -apple-system, 'Segoe UI', sans-serif; }
button, .file { font: inherit; color: var(--text); background: #222a35; border: 1px solid #2e3846; border-radius: 8px; padding: 8px 14px; cursor: pointer; }
button:hover, .file:hover { background: #2a3442; }
button:disabled { opacity: .45; cursor: default; }
.ghost { background: transparent; }
.file input { display: none; }
header { display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
header h1 { margin: 0; font-size: 17px; }
header h1 span { color: var(--muted); font-weight: 500; }
.spacer { flex: 1; }
.status { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #444; }
.dot.ok { background: var(--good); box-shadow: 0 0 8px var(--good); }
.dot.err { background: var(--bad); box-shadow: 0 0 8px var(--bad); }
main { padding: 16px 18px; display: grid; gap: 16px; }
#transport { display: flex; align-items: center; gap: 28px; background: var(--panel); border-radius: 12px; padding: 16px 22px; flex-wrap: wrap; }
.clock #tc { font: 600 54px/1 ui-monospace, 'SF Mono', Menlo, Consolas, monospace; letter-spacing: -1px; }
.clock #remain { color: var(--muted); font: 500 16px ui-monospace, Menlo, monospace; margin-top: 4px; }
.buttons { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.big { font-size: 18px; font-weight: 700; padding: 14px 26px; border-radius: 10px; }
.big.play { background: #1d6b3f; border-color: #2b8a55; }
.big.play.pause { background: #7a5a12; border-color: #9c7418; }
.lock { color: var(--muted); font-size: 13px; display: flex; gap: 6px; align-items: center; }
.vol { margin-left: auto; color: var(--muted); }
#tl { background: var(--panel); border-radius: 12px; padding: 8px; }
#tlCanvas { width: 100%; height: 230px; display: block; cursor: pointer; }
#lower { display: grid; grid-template-columns: 1fr 1.4fr 0.8fr; gap: 16px; }
@media (max-width: 1100px) { #lower { grid-template-columns: 1fr; } }
#lower > div { background: var(--panel); border-radius: 12px; padding: 12px 16px; min-width: 0; }
h2 { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 6px 0 8px; }
h2 small { text-transform: none; letter-spacing: 0; }
.cue { display: grid; grid-template-columns: 74px 1fr; gap: 8px; padding: 6px 8px; border-radius: 6px; margin-bottom: 4px; background: #1c222b; }
.cue .k { font: 600 11px ui-monospace, Menlo, monospace; color: var(--muted); }
.cue .txt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cue.now { border-left: 3px solid var(--accent); }
.frame { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 8px; overflow: hidden; }
.frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mixrow { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; padding: 4px 0; }
.mixrow input[type=range] { width: 100px; }
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.72); display: none; place-items: center; z-index: 10; }
.overlay.on { display: grid; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 26px 30px; width: min(460px, 92vw); text-align: center; }
.card h2 { font-size: 20px; color: var(--text); text-transform: none; letter-spacing: 0; }
.bar { height: 6px; background: #222a35; border-radius: 99px; overflow: hidden; margin-top: 16px; }
.bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.muted { color: var(--muted); }
.qrcard { width: auto; background: #fff; color: #111; }
.qrcard img { width: min(70vh, 80vw); image-rendering: pixelated; }
