:root{color-scheme:dark;--bg:#0b0e17;--panel:#141925;--border:#272e40;--muted:#929bb0;--accent:#b8ed81}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:#edf0f8;font:15px 'Segoe UI',system-ui,sans-serif}button,input,select,textarea{font:inherit;border:1px solid var(--border);border-radius:8px;background:#1b2231;color:inherit;padding:10px 14px}button{cursor:pointer;white-space:nowrap}button:hover{border-color:#a5b38e}button:disabled{opacity:.45;cursor:wait}.primary{background:var(--accent);color:#142109;border-color:var(--accent);font-weight:650}input:focus,textarea:focus{outline:2px solid #b8ed8188}.eyebrow{font-size:11px;letter-spacing:2px;color:var(--muted)}h1{font-size:38px;letter-spacing:-1.5px;margin:8px 0 10px}h2{font-size:18px;margin:0 0 10px}p{color:var(--muted);line-height:1.65;margin:6px 0 16px}aside{position:fixed;inset:0 auto 0 0;width:226px;padding:30px 22px;border-right:1px solid var(--border);background:#101420}.brand{font-size:34px;font-weight:800;color:var(--accent);letter-spacing:-2px;margin-bottom:45px}.brand span{display:block;font-size:10px;letter-spacing:2px;color:#e8ebf5;margin-top:3px}nav{display:grid;gap:9px;margin-top:20px}nav button{text-align:left;background:transparent;border-color:transparent;padding:13px 10px;color:var(--muted)}nav button.active{color:var(--accent);background:#b8ed8112}.asidebottom{position:absolute;bottom:24px;color:#c1cadb;font-size:13px}.asidebottom small{display:block;color:var(--muted);margin:8px 0}.live{color:var(--accent)}main{margin-left:226px;padding:28px 38px;max-width:1700px}header{display:flex;align-items:center;justify-content:space-between;padding-bottom:26px;border-bottom:1px solid var(--border);gap:20px}.pill{background:#1d2630;padding:8px 13px;border-radius:20px;font-size:12px;color:#b8ed81}.heading{display:flex;justify-content:space-between;align-items:center;margin:32px 0 22px;gap:15px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:22px}.stats article{background:var(--panel);border:1px solid var(--border);border-radius:12px;padding:20px}.stats span{display:block;color:var(--muted);font-size:13px}.stats strong{display:block;font-size:29px;margin-top:12px;letter-spacing:-1px}.panel{background:var(--panel);border:1px solid var(--border);border-radius:12px;padding:24px;margin-bottom:22px}.upload{display:flex;justify-content:space-between;align-items:center;gap:20px}.upload p{margin:0}label{display:block;font-size:13px;color:#c2cadd}label input,label select{display:block;margin-top:8px;width:100%}label small{color:var(--muted);margin-left:10px}.toolbar{display:flex;gap:8px;margin:18px 0;flex-wrap:wrap}.toolbar input{flex:1;min-width:160px}.tablewrap{border:1px solid var(--border);border-radius:12px;overflow:auto}table{width:100%;border-collapse:collapse;text-align:left}th{color:var(--muted);font-size:10px;letter-spacing:1.5px;background:#101521;padding:16px}td{padding:18px 16px;border-top:1px solid var(--border)}td small{display:block;color:var(--muted);margin-top:5px}td code{color:#b8ed81}td button{padding:6px 9px;margin:3px;font-size:12px}.badge{font-size:12px;color:#9fb0c7}.badge.ready{color:#b8ed81}.badge.failed{color:#ffa0a0}#empty{text-align:center;padding:60px 25px}.muted{font-size:12px}.legend{display:flex;gap:24px;margin-bottom:18px}.male{color:#55aaff}.female{color:#ffa0a0}.group{color:#d7bdff}textarea{display:block;width:100%;margin:12px 0;font:14px/1.8 Consolas,monospace;resize:vertical}audio{width:100%}#liveLyrics{font-size:32px;text-align:center;min-height:70px;padding:20px;font-weight:650}#liveLyrics.group{background:linear-gradient(90deg,#55aaff,#ffa0a0,#aaff99,#ffdd55);background-clip:text;color:transparent}video{width:100%;height:45vh;background:#101426;border-radius:8px}.stage{text-align:center}#playQueue li{padding:12px;border-bottom:1px solid var(--border)}#playQueue button{float:right;padding:4px 9px;margin-left:5px}#notice{position:sticky;top:8px;z-index:3;background:#233327;border:1px solid #749555;padding:14px 20px;border-radius:8px;margin-top:16px}.auth{display:grid;min-height:100vh;place-items:center;background:radial-gradient(ellipse at top right,#2e3c29,transparent 65%)}.authcard{max-width:480px;width:90%;padding:42px;background:#141925;border:1px solid var(--border);border-radius:18px}.authcard h1{font-size:48px;margin:25px 0}.authcard input{margin:10px 0 18px;width:100%}.authcard button{width:100%}#authError{color:#ffa0a0}dialog{background:#141925;border:1px solid #404c62;color:white;border-radius:12px;max-width:85vw}pre{white-space:pre-wrap;max-height:65vh;overflow:auto;font-size:12px}[hidden]{display:none!important}@media(max-width:950px){aside{width:180px;padding:25px 12px}main{margin-left:180px;padding:20px}.upload{display:block}.upload label{margin-top:15px}h1{font-size:30px}}@media(max-width:680px){aside{position:static;width:auto;border-right:0;padding:15px}.brand{margin:0;font-size:26px}.brand span,.asidebottom,aside>.eyebrow{display:none}nav{display:flex;overflow:auto;margin-top:10px;gap:0}nav button{font-size:12px}main{margin:0;padding:15px}.stats{gap:8px}.stats article{padding:12px}.stats strong{font-size:22px}.heading{align-items:flex-start}.heading>.primary{font-size:12px}.panel{padding:17px}}
.button{display:inline-block;border:1px solid #39403b;border-radius:9px;padding:10px 14px;color:inherit;text-decoration:none;font-size:13px}.actions{display:flex;gap:6px;flex-wrap:wrap}.actions button{font-size:12px;padding:7px 9px}.songtitle{display:block;font-weight:600}.songmeta{display:block;font-size:12px;color:#929c99;margin-top:5px}.shortcut{font-family:monospace;font-size:18px;letter-spacing:2px;color:#cbfa74}.status{font-size:12px;display:inline-block;padding:6px 9px;border-radius:20px;background:#252d28}.status.ready{color:#c6f778;background:#293422}.status.failed{color:#ffaaaa}#uploadProgress{padding:16px;background:#293422;border-radius:12px;margin:16px 0}.filelinks{display:flex;flex-wrap:wrap;gap:10px}#detail{max-width:650px;width:90vw}#detailBody{margin:20px 0}.error{color:#ffb2b2}#authError{color:#ffb2b2}.upload small{color:#a8b3ad;display:block;max-width:650px}.authcard label{margin-top:16px}.legend{gap:20px}button:disabled{opacity:.5;cursor:wait}[hidden]{display:none!important}#notice{white-space:pre-wrap}#confirmWrap{margin-top:14px}
@media(max-width:680px){aside{position:relative}.asidebottom{display:block;position:absolute;top:13px;right:15px;bottom:auto;font-size:0}.asidebottom small,.asidebottom .live,.asidebottom br{display:none}.asidebottom button{font-size:12px;padding:6px 10px}.legend{flex-wrap:wrap;gap:10px}.authcard{padding:26px}.heading{flex-wrap:wrap}}

.lyrics-panel{margin:18px 0;text-align:left}.current-lyric{font-size:clamp(22px,3vw,38px);font-weight:700;min-height:2.4em;text-align:center;color:#eef2ff}.current-lyric.group,.lyric-line.group{color:#ddbbff}.current-lyric.group{background:linear-gradient(90deg,#55aaff,#ffa0a0,#aaff99,#ffdd55);background-clip:text;color:transparent}.full-lyrics{max-height:360px;overflow:auto;padding-left:24px}.lyric-line{white-space:normal;text-align:left;line-height:1.6;width:100%;margin:4px 0;background:transparent}.active-lyric{border-color:#b8ed81;background:#b8ed811a}.lyrics-panel summary{cursor:pointer;padding:12px 0}.lyrics-panel .male{color:#55aaff}.lyrics-panel .female{color:#ffa0a0}

.checkline{display:flex;align-items:center;gap:10px}.checkline input{width:auto;min-height:auto}#consumerAccessForm{margin-top:18px}#consumerAccessStatus{color:var(--muted,#a7aec4)}
.current-lyric,.lyric-line{color:#fff}.karaoke-word{--fill:0%;--sung-color:#55aaff;display:inline-block;background:linear-gradient(var(--fill-direction,90deg),var(--sung-color) 0%,var(--sung-color) var(--fill),#fff var(--fill),#fff 100%);background-clip:text;-webkit-background-clip:text;color:transparent;-webkit-text-fill-color:transparent}.current-lyric{background:none}

.account-table-wrap{overflow-x:auto}.account-table-wrap td{overflow-wrap:anywhere;min-width:100px}.account-table-wrap table{min-width:820px}#accountCounts{line-height:1.8}#accountSearch{max-width:100%}
.karaoke-stage{width:100%;background:#0a1020;border-radius:12px;overflow:hidden}.karaoke-stage.rotating>video{display:none}.art-scene{position:relative;aspect-ratio:16/9;overflow:hidden;background:#0a1020;container-type:inline-size}.art-scene>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity 1.2s ease;transform:scale(1.025)}.art-scene>img.visible{opacity:1;animation:art-drift 15s ease-in-out alternate infinite}.stage-caption{position:absolute;left:5%;right:5%;bottom:11%;font-size:clamp(16px,3.6cqw,46px);font-weight:700;text-align:center;line-height:1.25;filter:drop-shadow(0 2px 2px #000)}.stage-controls{display:flex;align-items:center;gap:8px;padding:12px;flex-wrap:wrap;background:#101624}.stage-controls input{width:auto;min-width:80px;flex:1}.stage-controls span{font-variant-numeric:tabular-nums;font-size:13px}.stage-controls button{font-size:13px;padding:8px}.karaoke-stage:fullscreen,.karaoke-stage.expanded{border-radius:0;display:flex;flex-direction:column;justify-content:center;background:#000}.karaoke-stage.expanded{position:fixed;inset:0;z-index:10000}.karaoke-stage:fullscreen .art-scene,.karaoke-stage.expanded .art-scene{max-height:calc(100dvh - 100px);width:100%;aspect-ratio:16/9}.karaoke-stage:fullscreen .art-scene>img,.karaoke-stage.expanded .art-scene>img{object-fit:contain}@keyframes art-drift{from{transform:scale(1.025) translateX(-.3%)}to{transform:scale(1.065) translateX(.3%)}}@media(prefers-reduced-motion:reduce){.art-scene>img.visible{animation:none}.art-scene>img{transition:none}}

#quickLyrics{max-height:500px;overflow:auto;margin:14px 0}.quick-lyric{border:1px solid #30394a;border-radius:10px;padding:14px;margin:10px 0}.quick-lyric textarea{min-height:65px}.quick-lyric .actions{justify-content:space-between;align-items:center}.lyric-savebar{position:sticky;bottom:0;background:#151b29;padding:12px;z-index:2}

.stage-identity{position:absolute;inset:0 0 auto;display:flex;justify-content:space-between;align-items:flex-start;gap:7%;padding:2.4% 3%;color:#fff;background:linear-gradient(#000b,#0005,transparent);text-shadow:0 2px 3px #000;pointer-events:none}.stage-code{font:700 clamp(15px,2.6cqw,34px)/1.2 monospace;letter-spacing:.12em}.stage-details{max-width:68%;text-align:right;overflow-wrap:anywhere;font-size:clamp(14px,2.2cqw,29px);line-height:1.3}.stage-details strong,.stage-details span{display:block}.stage-details span{font-size:.9em;margin-top:.25em}

.stage-countdown{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;pointer-events:none;color:#fff;text-shadow:0 3px 12px #000,0 1px 3px #000}.stage-countdown strong{font-size:clamp(48px,9cqw,115px);line-height:1.1}.stage-countdown span{font-size:clamp(16px,2.4cqw,30px);font-weight:600}

.brand-logo{display:block;width:100%;height:auto;max-width:240px}.authcard .brand{margin-bottom:24px}.authcard .brand-logo{max-width:280px}@media(max-width:680px){aside .brand-logo{width:150px}}

.karaoke-word:dir(rtl){--fill-direction:270deg}.current-lyric,.stage-caption,.lyric-line,.stage-details,.quick-lyric textarea{font-family:"Segoe UI","Noto Sans","Noto Sans CJK SC","Noto Sans Arabic",system-ui,sans-serif}

#remoteView{max-width:420px;margin:auto}#dialKeys{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:18px 0}#dialKeys button{font-size:26px;min-height:66px}#dialCode,#roomInput{font:700 30px monospace;letter-spacing:.2em;text-align:center;width:100%}#sendSong{width:100%;min-height:55px}#disconnectPhone{margin-top:20px}#pairCode{font-size:34px}#remoteStatus{color:#b8ed81;margin-top:18px}

/* Consumer stage sidebar; admin and phone dial pad retain their layouts. */
.consumer-page:not(.phone-remote) #stageSidebar{width:280px;overflow-y:auto;z-index:10002;transition:transform .2s ease,visibility .2s}
.consumer-page:not(.phone-remote) main{margin-left:280px;max-width:none;transition:margin-left .2s ease}
#stageSetup{margin-top:28px}#stageSetup h1{font-size:25px;letter-spacing:-.5px}#stageSetup .panel{padding:14px}#stageSetup p{font-size:13px;overflow-wrap:anywhere}#stageSetup button{white-space:normal;width:100%}#stageSetup .shortcut{font-size:30px}
.consumer-page.stage-menu-hidden:not(.phone-remote) #stageSidebar{transform:translateX(-100%);visibility:hidden;pointer-events:none}
.consumer-page.stage-menu-hidden:not(.phone-remote) main{margin-left:0}
#showStageMenu{position:fixed;left:16px;bottom:84px;z-index:10003;background:#101420e8;border-color:#b8ed81}
.consumer-page #notice:empty{display:none}
/* Fill the available screen automatically, without requiring browser fullscreen. */
.consumer-page:not(.phone-remote) #app{height:100dvh;overflow:hidden;background:var(--bg);--sidebar-width:280px}
.consumer-page:not(.phone-remote) main{height:100%;padding:0;margin-left:var(--sidebar-width)}
.consumer-page.stage-menu-hidden:not(.phone-remote) main{margin-left:0}
.consumer-page:not(.phone-remote) #screenView{height:100%;position:relative}
.consumer-page:not(.phone-remote) #screenView>.panel{height:100%;margin:0;padding:14px;border:0;border-radius:0;display:grid;grid-template-rows:auto minmax(0,1fr) minmax(160px,28vh) auto;gap:10px}
.consumer-page:not(.phone-remote) #playing{margin:0;font-size:16px}
.consumer-page:not(.phone-remote) .karaoke-stage{min-height:0;height:100%;display:flex;flex-direction:column;justify-content:center;border-radius:0;background:#000}
.consumer-page:not(.phone-remote) .art-scene{flex:1;min-height:0;width:100%;height:auto;aspect-ratio:auto;max-height:none}
.consumer-page:not(.phone-remote) .art-scene>img{object-fit:contain}
.consumer-page:not(.phone-remote) .karaoke-stage>video{height:100%;min-height:0;object-fit:contain}
.consumer-page:not(.phone-remote) .stage-controls{flex-shrink:0}
.consumer-page:not(.phone-remote) #viewerLyrics{overflow:auto;min-height:0;margin:0;padding:12px;background:#141925;border:1px solid var(--border);border-radius:10px}
.consumer-page:not(.phone-remote) #next{justify-self:start}
.consumer-page.stage-menu-hidden:not(.phone-remote) #screenView>.panel{padding:0;display:block}
.consumer-page.stage-menu-hidden:not(.phone-remote) #playing,.consumer-page.stage-menu-hidden:not(.phone-remote) #viewerLyrics,.consumer-page.stage-menu-hidden:not(.phone-remote) #next{display:none}
.consumer-page:not(.phone-remote) #notice{position:absolute;left:20px;right:20px;top:0;z-index:10}
#stageLibrary{margin-top:20px}#stageLibrary .panel{padding:12px}#stageLibrary .toolbar{display:grid}#stageLibrary .toolbar input{min-width:0;width:100%}#stageLibrary button{white-space:normal}#stageLibrary #songs p{font-size:13px}#stageLibrary #songs button{margin:4px 4px 0 0;padding:6px 10px}#stageLibrary #queue{padding-left:20px}#stageLibrary .button{font-size:13px}
.consumer-page #app.stage-fullscreen{position:fixed;inset:0;z-index:10000}
@media(max-width:680px){.consumer-page:not(.phone-remote) #app{--sidebar-width:38vw}.consumer-page:not(.phone-remote) #stageSidebar{position:fixed;width:var(--sidebar-width);padding:12px 8px}.consumer-page:not(.phone-remote) #stageSidebar .brand-logo{width:100%}.consumer-page:not(.phone-remote) #stageSetup h1{font-size:19px}.consumer-page:not(.phone-remote) #screenView>.panel{padding:6px;grid-template-rows:auto minmax(0,1fr) minmax(110px,25vh) auto}.consumer-page.stage-menu-hidden:not(.phone-remote) #screenView>.panel{padding:0}}
@media(prefers-reduced-motion:reduce){.consumer-page #stageSidebar,.consumer-page main{transition:none!important}}

.stage-caption,.lyric-line,.lyrictext,.quick-lyric textarea{font-family:'Noto Sans Khmer','Noto Sans Thai','Noto Sans Lao','Noto Sans CJK TC','Noto Sans CJK SC','Noto Sans CJK KR','Segoe UI',system-ui,sans-serif;line-height:1.5}

@font-face{font-family:'Noto Sans Khmer';src:url('/fonts/khmer');font-weight:100 900;font-display:swap;unicode-range:U+1780-17FF,U+19E0-19FF}

@font-face{font-family:'Noto Sans Thai';src:url('/fonts/thai');font-weight:100 900;font-display:swap;unicode-range:U+0E00-0E7F}

@font-face{font-family:'Noto Sans Lao';src:url('/fonts/lao');font-weight:100 900;font-display:swap;unicode-range:U+0E80-0EFF}

@font-face{font-family:'Noto Sans CJK TC';src:url('/fonts/chinese');font-weight:100 900;font-display:swap;unicode-range:U+3000-303F,U+3400-9FFF,U+F900-FAFF,U+FF00-FFEF}

@font-face{font-family:'Noto Sans CJK KR';src:url('/fonts/korean');font-weight:100 900;font-display:swap;unicode-range:U+1100-11FF,U+3130-318F,U+A960-A97F,U+AC00-D7FF}

#chorusChoice{background:#151a26;color:#fff;border:1px solid #91b35c;border-radius:18px;max-width:560px;padding:28px}#chorusChoice::backdrop{background:rgba(0,0,0,.8)}#chorusChoice label{display:block;margin:16px 0}#chorusChoice input{width:auto;margin-right:10px}


#songRequestDialog{width:min(560px,calc(100vw - 32px));max-height:85dvh;overflow:auto;padding:24px}#songRequestDialog input,#songRequestDialog textarea{width:100%;box-sizing:border-box}.request-card{overflow-wrap:anywhere}.request-card h4{margin-bottom:8px}#songRequestHistory .request-card{border-top:1px solid #404650;padding:12px 0}

#micPanel{padding:12px 0;border-top:1px solid var(--border)}#micPanel p{font-size:13px;line-height:1.5}#micPanel select,#micPanel input,#micLevel{width:100%;max-width:100%;box-sizing:border-box}#micPanel button{margin:4px 0}#micResult{max-width:min(480px,85vw)}.timing-score{font-size:clamp(32px,7vw,60px);font-weight:800;color:#c4ff65}.phone-remote #micPanel{display:none}

.session-controls{display:flex;gap:8px;margin:16px 0}.session-controls button{width:100%;min-height:44px}.session-controls [hidden]{display:none!important}

.password-reset-help{margin:-2px 0 16px}.password-reset-help a{display:inline-block;padding:8px 0;color:#baff58;text-decoration:underline;text-underline-offset:3px}.password-reset-help small{display:block;color:#b7c0cf;font-size:.85rem;line-height:1.4}.password-reset-help[hidden]{display:none}
/* Viewport-safe karaoke layout, including older Fire OS WebViews. */
.consumer-page:not(.phone-remote) #app{position:fixed;inset:0;height:100vh;height:100dvh;overflow:hidden;--sidebar-width:clamp(240px,25vw,340px);padding:2vh 2vw}
.consumer-page:not(.phone-remote) #stageSidebar{position:absolute;inset:2vh auto 2vh 2vw;height:auto;width:var(--sidebar-width);padding:12px;display:flex;flex-direction:column;gap:10px;overflow:hidden}
.consumer-page #stageSidebar>.brand{margin:0;flex:0 0 auto}.consumer-page #stageSidebar>.brand .brand-logo{width:130px;max-height:55px;object-fit:contain}
#stageSection{width:100%;flex:0 0 auto;min-height:36px}.stage-section-frame{flex:1;min-height:0;overflow:hidden}.stage-section-content{transform-origin:top left}.stage-section-inactive,.collection-offpage{display:none!important}
.consumer-page #stageSidebar nav{margin:0;display:block}.consumer-page #stageSidebar .panel{margin:8px 0;padding:10px}.consumer-page #stageSidebar p{margin:6px 0;line-height:1.35}.consumer-page #stageSetup,.consumer-page #stageLibrary{margin-top:0}.consumer-page #stageSetup h1{font-size:22px;margin:0 0 8px}
.collection-pages{display:flex;align-items:center;justify-content:space-between;gap:6px;margin:6px 0}.collection-pages button{padding:5px 8px;font-size:12px}.collection-pages span{font-size:12px;white-space:nowrap}
.consumer-page:not(.phone-remote) main{height:100%;min-height:0;min-width:0;margin-left:calc(var(--sidebar-width) + 12px);padding:0}
.consumer-page.stage-menu-hidden:not(.phone-remote) main{margin-left:0}
.consumer-page:not(.phone-remote) #screenView>.panel{height:100%;min-height:0;overflow:hidden;display:flex;flex-direction:column;padding:0;gap:6px}
.consumer-page:not(.phone-remote) #playing{flex:0 0 auto;font-size:clamp(12px,2.3vh,20px);line-height:1.2;overflow-wrap:anywhere}
.consumer-page:not(.phone-remote) .karaoke-stage{flex:1 1 0%;min-height:0;height:auto;overflow:hidden}
.consumer-page:not(.phone-remote) .karaoke-stage>video{flex:1 1 0%;height:0;min-height:0;width:100%;object-fit:contain}
.consumer-page:not(.phone-remote) .stage-controls{flex:0 0 auto;min-height:0;padding:5px;gap:5px;flex-wrap:nowrap}.consumer-page .stage-controls button{font-size:clamp(10px,1.9vh,15px);padding:5px}.consumer-page .stage-controls input{min-width:30px;width:0}.consumer-page .stage-controls span{font-size:11px}
.consumer-page:not(.phone-remote) #viewerLyrics{flex:0 1 auto;max-height:28%;overflow:hidden;padding:6px;display:flex;flex-direction:column;gap:4px}
.consumer-page #viewerLyrics>.muted{display:none}.consumer-page #viewerLyrics .current-lyric{font-size:clamp(16px,3.4vh,34px);line-height:1.4;min-height:0;max-height:12vh;overflow-wrap:anywhere;margin:0;padding:0;overflow:hidden}
.consumer-page #viewerLyrics details{font-size:12px;min-height:0}.consumer-page #viewerLyrics .full-lyrics{margin:0;padding-left:22px;max-height:none;overflow:hidden}.consumer-page #viewerLyrics .lyric-line{font-size:12px;padding:2px;white-space:normal}.consumer-page #viewerLyrics .collection-pages{margin:2px 0}
.consumer-page:not(.phone-remote) #next{flex:0 0 auto;align-self:flex-start;padding:5px 10px;font-size:12px}
.consumer-page.stage-menu-hidden:not(.phone-remote) #screenView>.panel{display:flex}.consumer-page.stage-menu-hidden:not(.phone-remote) .karaoke-stage{height:100%}
.consumer-page .stage-caption{left:4%;right:4%;bottom:8%;max-height:35%;font-size:clamp(18px,4vh,46px);overflow-wrap:anywhere;overflow:hidden;line-height:1.45}
@media(max-width:680px){.consumer-page:not(.phone-remote) #app{--sidebar-width:38vw}.consumer-page:not(.phone-remote) #stageSidebar{padding:6px}.consumer-page #stageSidebar>.brand .brand-logo{width:100px}.consumer-page:not(.phone-remote) #viewerLyrics{max-height:30%}}

/* Up next occupies the right side only while requested or for five seconds after a song. */
.consumer-page #queueTray{position:absolute;right:2vw;top:2vh;bottom:2vh;width:clamp(180px,20vw,300px);padding:14px;background:#101420f5;border:1px solid #394354;border-radius:12px;z-index:10001;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .4s ease,visibility .4s;overflow:hidden;margin:0}
.consumer-page.queue-visible #queueTray{opacity:1;visibility:visible;pointer-events:auto}
.consumer-page.queue-visible:not(.phone-remote) main{margin-right:calc(clamp(180px,20vw,300px) + 10px)}
#queueTray #queue{padding-left:20px;margin:10px 0}#queueTray li{overflow-wrap:anywhere;line-height:1.4;margin:12px 0}#queueTray button{white-space:normal;padding:6px}
.consumer-page .karaoke-stage:not(.rotating)>video{height:100%!important;flex:1 1 auto!important;max-height:100%;object-fit:contain}

/* Compact app controls and phone pairing; PDF remains a browser-only feature. */
.app-client #songPdf{display:none!important}
.app-client #stageSidebar button,.app-client #stageSidebar input,.app-client #stageSidebar select,.app-client #stageSidebar .button{font-size:clamp(11px,1.8vh,15px);padding:5px 7px;min-height:30px;max-width:100%;box-sizing:border-box;white-space:normal}
.app-client #stageSidebar .toolbar{display:flex;flex-wrap:wrap;gap:5px;min-width:0}.app-client #stageSidebar #search{width:100%;min-width:0;flex:1 1 100%}
.app-client #stageSidebar{gap:6px!important;padding:8px!important}.app-client #stageSidebar p{font-size:clamp(11px,1.8vh,15px);overflow-wrap:anywhere}
.app-client #stageSidebar>.brand .brand-logo{width:100px;max-height:40px}.app-client #stageSidebar .panel{padding:7px;margin:5px 0}
.app-client #stageSidebar button:focus-visible,.app-client #stageSidebar input:focus-visible,.app-client #stageSidebar select:focus-visible{outline:3px solid #baff58;outline-offset:1px}
#pairSummary{flex:0 0 auto;font-size:12px;display:flex;flex-wrap:wrap;align-items:center;gap:5px}#pairSummary[hidden]{display:none}#pairSummaryCode{letter-spacing:2px;color:#baff58;font-size:18px}#pairSummary button{font-size:12px;padding:5px}
.pair-qr{display:block;width:140px;height:140px;max-width:100%;background:white}.pair-qr-link{display:block;width:max-content;max-width:100%;margin:5px auto}#pairCode{font-size:28px;letter-spacing:4px}#pairStatus:empty{display:none}
.app-client #chorusChoice{max-height:80vh;padding:14px}.app-client #chorusChoice button{padding:7px 12px;font-size:15px}

/* Apps use lyrics on the karaoke video; the separate transcript is web-only. */
.consumer-page.app-client #viewerLyrics{display:none!important}

/* Screen code and QR are always side by side while the menu is visible. */
#pairSummary{flex-wrap:nowrap;justify-content:space-between;gap:8px}#pairSummary>span{min-width:0;flex:1}#pairSummaryCode{display:block;margin-top:5px;white-space:nowrap}#pairSummary .pair-qr-link{flex:0 0 104px;width:104px;margin:0}#pairSummary .pair-qr{width:104px;height:104px}

/* Slide the complete left panel out as playback starts, expanding the stage. */
.consumer-page:not(.phone-remote) #stageSidebar{transition:transform .3s ease,visibility 0s linear 0s}
.consumer-page.stage-menu-hidden:not(.phone-remote) #stageSidebar{transform:translateX(calc(-100% - 2vw));visibility:hidden;transition:transform .3s ease,visibility 0s linear .3s}
.consumer-page:not(.phone-remote) main{transition:margin-left .3s ease,margin-right .3s ease}
@media(prefers-reduced-motion:reduce){.consumer-page:not(.phone-remote) #stageSidebar,.consumer-page:not(.phone-remote) main{transition:none!important}}
