:root{color-scheme:dark;--bg:#101216;--surface:#191c23;--line:#2b2e37;--text:#f3f3f7;--muted:#a4a9b8;--accent:#b5a1ff;--radius:12px;font-family:Inter,Segoe UI,Arial,sans-serif;font-size:15px;color:var(--text);background:var(--bg)}*{box-sizing:border-box}body{margin:0;min-width:320px}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:10px;border:1px solid var(--line);border-radius:9px;min-height:44px;padding:10px 16px;color:var(--text);background:var(--surface);white-space:nowrap}button:hover{background:#242832;border-color:#626778}button:disabled{opacity:.4;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:2px solid var(--accent);outline-offset:3px}input,select,textarea{color:var(--text);background:var(--surface);border:1px solid var(--line);border-radius:9px;min-width:0}input::placeholder{color:var(--muted)}svg{width:22px;height:22px;stroke:currentColor;stroke-width:1.7;fill:none;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.symbols{display:none}[hidden]{display:none!important}.header{height:72px;display:flex;align-items:center;border-bottom:1px solid var(--line);padding:0 28px;gap:54px}.brand{display:flex;align-items:center;gap:11px;color:var(--text);text-decoration:none;font-size:28px;font-weight:650;letter-spacing:-.6px}.brand svg{width:38px;height:38px}.header nav{display:flex;align-self:stretch;gap:26px}.nav{border:0;background:none;border-radius:0;position:relative;color:var(--muted);padding:0 5px;min-height:0}.nav:hover{background:none;color:var(--text)}.nav.active{color:var(--accent)}.nav.active:after{content:"";height:3px;background:var(--accent);position:absolute;bottom:0;left:0;right:0;border-radius:2px}.header>#logout{margin-left:auto}.quiet{background:none;border-color:transparent;padding:9px 8px}.quiet:hover{background:#ffffff08;border-color:transparent}.primary{background:linear-gradient(130deg,#b398fa,#ab92f4);border-color:#b6a0fc;color:#100b1d;font-weight:600}.primary:hover{background:#c3aeff;border-color:#c3aeff}.secondary{background:#1b1e26}.layout{display:grid;grid-template-columns:minmax(0,1fr) clamp(280px,25.5vw,405px);min-height:calc(100vh - 72px)}.workspace{padding:24px 26px 16px;min-width:0}.address-bar{display:flex;gap:10px;margin-bottom:20px;height:50px}.square{width:50px;padding:0;flex-shrink:0}.address{display:flex;align-items:center;gap:12px;background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:0 14px;flex:1;min-width:0;color:var(--muted)}.address input{width:100%;border:0;background:none;outline:none;height:46px}.address:focus-within{border-color:var(--accent)}.address-bar .primary{padding:0 24px}.player{border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;background:#0b0d10}.screen{aspect-ratio:16/9;width:100%;position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden;background:#090b0e}.screen canvas{display:block;width:100%;height:100%;object-fit:contain;touch-action:none;outline:none}.screen canvas:focus-visible{box-shadow:inset 0 0 0 2px var(--accent)}.welcome{text-align:center;padding:24px}.welcome-cube{width:64px;height:64px;stroke-width:1.3;margin-bottom:20px}.welcome h1{font-size:clamp(25px,2.4vw,38px);font-weight:600;letter-spacing:-1px;margin:4px 0 14px}.welcome p{color:var(--muted);font-size:clamp(14px,1.35vw,19px);margin:0 0 34px;line-height:1.5}.shortcuts{display:flex;gap:18px;justify-content:center}.shortcuts button{background:transparent;border-color:#7f8494;min-width:152px;height:50px}.shortcuts button:hover{background:#1c1e29;border-color:var(--accent)}.netflix{font-size:25px;line-height:22px;letter-spacing:-3px;margin-right:5px}.controls{height:76px;display:flex;align-items:center;gap:14px;background:#171a21;padding:12px 16px;border-top:1px solid var(--line)}.controls .square{width:47px;height:47px}.controls #volume{width:140px}.control-space{flex:1}.controls select{padding:11px 12px;font-size:14px}.controls .quiet{font-size:13px}.icon-only{padding:8px}input[type=range]{accent-color:var(--accent);height:5px;cursor:pointer}.status-line{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:13px;min-height:46px;line-height:1.5}.status-dot{height:9px;width:9px;border-radius:50%;background:#898fa0;flex-shrink:0}.status-dot.live{background:#83d6b6}.status-dot.error{background:#f29b9b}#live-metrics{margin-left:auto;font-variant-numeric:tabular-nums;white-space:nowrap}.library{border-left:1px solid var(--line);padding:30px 25px 20px;display:flex;flex-direction:column;min-width:0}.library h2{font-size:24px;letter-spacing:-.5px;margin:0 0 8px;font-weight:600}.library-heading p{color:var(--muted);margin:0 0 22px}.upload{width:100%;margin-bottom:18px}.search{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:10px;padding:0 12px;height:46px;color:var(--muted)}.search input{background:none;border:0;width:100%;height:42px;outline:none}.search:focus-within{border-color:var(--accent)}.video-list{margin-top:24px;display:flex;flex-direction:column;gap:14px}.video-row{width:100%;padding:0;justify-content:start;border:0;background:none;text-align:left;white-space:normal;gap:14px}.video-row:hover{background:#ffffff06}.video-thumb{width:78px;height:55px;background:#242733;border-radius:8px;display:grid;place-items:center;flex-shrink:0;color:#d5c9ff}.video-thumb svg{width:21px;height:21px;fill:currentColor;stroke-width:0}.video-info{min-width:0;display:flex;flex-direction:column;gap:6px}.video-info strong{font-size:14px;font-weight:550;overflow-wrap:anywhere;line-height:1.35}.video-info small{font-size:12px;color:var(--muted);line-height:1.5}.library-bottom{margin-top:auto;padding-top:30px}.library-bottom>button{border-top:1px solid var(--line);border-radius:0;width:100%;justify-content:start;padding:16px 0;color:var(--accent)}details{font-size:13px;color:var(--muted);line-height:1.6}details p{margin:10px 0}summary{cursor:pointer}code{font-family:ui-monospace,Consolas,monospace;overflow-wrap:anywhere;font-size:12px}h1,h2,p{overflow-wrap:break-word}.diagnostic-footer{color:#747d90;font-size:11px;display:flex;flex-wrap:wrap;gap:8px 20px;border-top:1px solid #20242c;padding-top:12px;line-height:1.5}.diagnostic-footer small{width:100%;font-size:11px}.diagnostic-footer code{font-size:10px}.browser-tools{display:flex;align-items:center;gap:10px;margin:-8px 0 12px;color:var(--muted);font-size:12px}.browser-tools label{display:flex;align-items:center;gap:8px;margin-right:auto;min-width:0}.browser-tools select{padding:7px;max-width:300px}.browser-tools button{min-height:34px;padding:4px 7px}.browser-tools svg{width:18px;height:18px}.seek-bar{display:flex;align-items:center;gap:14px;padding:12px 18px;background:#13161d;font-size:12px;font-variant-numeric:tabular-nums;color:var(--muted)}.seek-bar input{flex:1}.test-panel{margin-bottom:20px;display:flex;flex-wrap:wrap;align-items:center;gap:18px;justify-content:space-between}.test-panel h1{font-size:25px;margin:0 0 8px}.test-panel p{color:var(--muted);max-width:650px;font-size:14px;line-height:1.6;margin:0}.test-panel progress{width:100%;height:5px;accent-color:var(--accent)}.test-results{border-top:1px solid var(--line);padding:20px 0;margin:5px 0 20px}.result-heading{display:flex;justify-content:space-between;gap:15px;align-items:center}.result-heading h2{font-size:20px;margin:0}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin:25px 0}.metrics dt{font-size:12px;color:var(--muted)}.metrics dd{font-size:24px;margin:8px 0 0;font-variant-numeric:tabular-nums}.test-results p{font-size:14px;color:var(--muted)}.observations{display:flex;gap:12px;margin:16px 0 22px;flex-wrap:wrap}.observations label{display:flex;flex-direction:column;gap:8px;font-size:12px;color:var(--muted);flex:1}.observations select{padding:10px;font-size:13px}.test-results details{border-top:1px solid var(--line);padding-top:14px}.muted{color:var(--muted);font-size:13px;line-height:1.7}#upload-status{font-size:13px;color:var(--accent);line-height:1.6;margin:-4px 0 15px;overflow-wrap:anywhere}.library-view .workspace{display:none}.library-view .layout{display:block}.library-view .library{max-width:1050px;margin:auto;border:0;min-height:calc(100vh - 72px);padding-top:40px}.library-view .upload,.library-view .search{max-width:400px}.library-view .video-row{padding:12px;border-bottom:1px solid var(--line);border-radius:0}.library-view .video-info strong{font-size:17px}.library-view .video-thumb{width:96px;height:64px}.audio-prompt{position:absolute;bottom:20px;left:50%;transform:translateX(-50%)}dialog{width:min(540px,calc(100vw - 32px));background:#191c23;color:var(--text);border:1px solid #393d49;border-radius:16px;padding:26px}dialog::backdrop{background:#000a;backdrop-filter:blur(4px)}dialog h2{font-size:23px;margin:0 0 12px}dialog p{color:var(--muted);font-size:14px;line-height:1.5}dialog textarea{width:100%;padding:12px;resize:vertical}.dialog-actions{display:flex;justify-content:end;gap:12px;margin-top:18px}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);max-width:calc(100vw - 32px);width:max-content;background:#322931;border:1px solid #725263;color:#ffdae3;padding:14px 20px;border-radius:12px;z-index:20;box-shadow:0 8px 40px #0009;font-size:14px;line-height:1.5}.player:fullscreen{display:flex;flex-direction:column;justify-content:center;background:#000;border:0;border-radius:0}.player:fullscreen .screen{flex:1;min-height:0;aspect-ratio:auto}.player:fullscreen canvas{object-fit:contain}.player:fullscreen .controls{flex-shrink:0}.login-body{display:grid;place-items:center;min-height:100vh;padding:24px}.login-card{width:390px;max-width:100%;padding:32px;background:#16191f;border:1px solid var(--line);border-radius:16px}.login-card .brand{margin-bottom:35px}.login-card h1{font-size:24px;margin:0 0 10px}.login-card p{color:var(--muted);line-height:1.6;font-size:14px}.login-card label{display:block;font-size:13px;margin:22px 0 8px}.login-card input{width:100%;padding:13px}.login-card button{width:100%;margin-top:16px}.login-card #error{color:#f5adb3;min-height:20px;font-size:13px}
@media(min-width:1700px){.layout{grid-template-columns:minmax(0,1fr) 370px}.workspace{padding:26px 30px}.library{padding:32px}.welcome h1{font-size:42px}}
@media(max-width:1100px){.layout{grid-template-columns:minmax(0,1fr) 280px}.workspace{padding:18px}.library{padding:24px 18px}.controls{gap:10px;padding:12px}.controls #volume{width:90px}.controls #fullscreen span{display:none}.shortcuts button{min-width:115px}.shortcuts{gap:10px}.header{gap:35px}.welcome p{margin-bottom:22px}.browser-tools select{max-width:180px}.metrics{grid-template-columns:repeat(2,1fr)}}
@media(max-width:800px){.layout{display:flex;flex-direction:column}.header{height:64px;padding:0 16px;gap:20px}.brand{font-size:23px}.brand svg{width:30px;height:30px}.header nav{gap:18px}.nav{font-size:13px}.header #logout span{display:none}.workspace{padding:16px}.library{border-left:0;border-top:1px solid var(--line);padding:24px 20px;min-height:360px}.library .video-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.library-bottom{padding-top:24px}.address-bar{height:44px;gap:7px;margin-bottom:16px}.square{width:43px;min-height:44px}.address{padding:0 10px}.address input{height:40px;font-size:13px}.address-bar .primary{padding:0 16px}.controls{height:65px}.controls .square{width:42px;height:40px;min-height:40px}.welcome-cube{width:44px;height:44px;margin-bottom:10px}.welcome h1{font-size:27px}.welcome p{font-size:15px}.shortcuts button{height:42px;min-height:42px}.status-line{flex-wrap:wrap;gap:7px;font-size:12px}.diagnostic-footer{margin-top:4px}.test-panel h1{font-size:23px}.test-results .result-heading{align-items:start}.test-results h2{font-size:18px}.test-results .secondary{font-size:12px;min-height:36px}.observations{flex-direction:column}.library-view .library .video-list{grid-template-columns:1fr}.browser-tools{flex-wrap:wrap}.browser-tools label{max-width:55%}}
@media(max-width:480px){.header{gap:17px}.header nav{gap:12px;flex:1;justify-content:space-between}.brand{gap:7px;font-size:22px}.brand svg{width:27px;height:27px}.nav{font-size:11px;padding:0}.header>#logout{margin-left:0;padding:4px;min-height:36px}.header>#logout svg{width:19px}.workspace{padding:12px}.address-bar{gap:6px}.address-bar #forward{display:none}.address-bar .square{width:36px;min-height:40px}.address-bar .square svg{width:19px}.address>svg{display:none}.address-bar .primary{padding:0 13px}.welcome{padding:12px}.welcome-cube{width:32px;height:32px;margin:0 0 6px}.welcome h1{font-size:22px;letter-spacing:-.6px;margin:4px 0 8px}.welcome p{font-size:12px;margin-bottom:16px}.shortcuts{gap:7px}.shortcuts button{min-width:0;min-height:36px;height:36px;padding:6px 10px;font-size:11px;gap:6px}.shortcuts svg{width:17px;height:17px}.netflix{font-size:20px}.controls{gap:8px;padding:10px;height:60px}.controls #volume{width:62px}.controls #quality{width:122px;font-size:11px;padding:10px 5px}.controls .square{width:36px;height:36px;min-height:36px}.controls #mute{padding:3px}.controls #fullscreen{padding:3px}.controls svg{width:19px;height:19px}.control-space{min-width:0}.library .video-list{grid-template-columns:1fr}#live-metrics{margin-left:19px;width:100%;font-size:11px}.browser-tools select{max-width:125px;font-size:11px}.browser-tools{gap:5px;font-size:11px}.browser-tools button{font-size:11px}.browser-tools svg{display:none}.diagnostic-footer{font-size:10px}.diagnostic-footer code{font-size:9px}.test-panel .primary{width:100%}.metrics dd{font-size:22px}.screen{min-height:205px}}
@media(prefers-reduced-motion:no-preference){button{transition:background .15s,border-color .15s}.status-dot{transition:background .2s}}

.screen{max-height:calc(100dvh - 285px)}.player:fullscreen .screen{max-height:none}

#report-json{width:100%;margin:12px 0;padding:14px;font-family:ui-monospace,Consolas,monospace;font-size:12px;line-height:1.5;resize:vertical}

.current-file{margin-right:auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted)}

.library-bottom details+details{margin-top:12px}a{color:var(--accent)}

#mute[aria-pressed="true"]{color:var(--accent);background:#b5a1ff18;opacity:.65}
@media(min-width:1400px){.shortcuts button{min-width:180px}.welcome p{font-size:21px}}
