.theatre-dialog{width:min(480px,94vw);padding:28px;max-height:90dvh;overflow:auto;background:var(--bg-card,#151620);color:var(--text,#f4f5f8);border:1px solid var(--border,#303340);border-radius:22px}.theatre-dialog h2{margin:8px 0;font-size:30px}.theatre-muted{color:var(--text-muted,#a2a9b8);line-height:1.6}.theatre-fine{font-size:12px;margin-bottom:0}.theatre-tabs{display:flex;gap:8px;margin:22px 0}.theatre-tabs>*{flex:1}.theatre-dialog label,.theatre-settings label,#theatreTitleManager>label{display:grid;gap:8px;font-size:13px;margin:16px 0}.theatre-dialog input:not([type=checkbox]),.theatre-dialog select,.theatre-settings select,#theatreTitleSearch{width:100%;min-width:0;padding:12px;border:1px solid var(--border,#3b4050);background:var(--bg,#10121a);color:inherit;border-radius:10px;font:inherit}.theatre-check{display:flex!important;align-items:center;gap:10px!important}.theatre-check input{width:18px;height:18px;accent-color:#e90022}.theatre-status{font-size:13px;min-height:20px;color:var(--text-muted,#a2a9b8)}#theatreSubmit{width:100%}#detailsTheatre img,.theatre-icon{width:18px;height:18px;filter:brightness(0) invert(1)}[data-theme=light] #detailsTheatre img{filter:none}#detailsTheatre{gap:8px}.theatre-room{padding:16px 20px;color:#eef0f5;border-top:1px solid #292d39;background:#10121b;border-radius:0 0 18px 18px}.theatre-room-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.theatre-room-head b{font-size:14px}.theatre-room-head small{color:#aab3c5}.theatre-room-tools{display:flex;gap:8px;flex-wrap:wrap}.theatre-room button,.theatre-strip button{border:1px solid #424958;background:#242934;color:#f5f6fa;border-radius:8px;padding:8px 10px;font:inherit;font-size:12px;cursor:pointer}.theatre-room button:disabled{opacity:.5}.theatre-people{display:flex;gap:8px;overflow-x:auto;padding:12px 0 3px}.theatre-person{display:flex;align-items:center;gap:7px;flex:none;padding:7px 10px;border:1px solid #373f50;border-radius:20px;background:#202635;color:#e8ecf5;font-size:12px;position:relative}.theatre-person.is-speaking{border-color:#5adea2;box-shadow:0 0 0 2px #5adea22b}.theatre-person.is-offline{opacity:.5}.theatre-person>span{max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.theatre-person .theatre-icon{width:13px;height:13px}.theatre-person-menu{padding:8px;background:#202632;box-shadow:0 8px 28px #0008;border-radius:12px;display:grid;gap:6px;max-width:230px}.theatre-person-menu button{text-align:left}.theatre-room-status{font-size:12px;color:#aab3c5;min-height:18px;margin-top:8px}.theatre-strip{display:none;position:absolute;bottom:114px;left:16px;right:16px;z-index:7;align-items:center;gap:8px;padding:5px;pointer-events:auto;max-width:100%;background:linear-gradient(90deg,#06090c60,#06090c12);border-radius:20px}.theatre-strip .theatre-people{padding:0;flex:1;min-width:0}.theatre-strip .theatre-person{background:#111820a6;backdrop-filter:blur(8px)}.theatre-activity{position:absolute;z-index:9;top:78px;left:50%;transform:translateX(-50%) translateY(-6px);max-width:85%;padding:8px 14px;border-radius:18px;background:#0a0d169c;backdrop-filter:blur(10px);color:#fff;font-size:13px;pointer-events:none;opacity:0;transition:opacity .22s,transform .22s;text-align:center}.theatre-activity.visible{opacity:1;transform:translateX(-50%)}.theatre-active>[data-jf-ad=player]{display:none!important}.theatre-active:fullscreen .theatre-room{display:none}.theatre-active:fullscreen .theatre-strip{display:flex}.theatre-active:-webkit-full-screen .theatre-room{display:none}.theatre-active:-webkit-full-screen .theatre-strip{display:flex}.theatre-active.chrome-hidden:fullscreen .theatre-strip{bottom:14px}.theatre-active.chrome-hidden:-webkit-full-screen .theatre-strip{bottom:14px}.theatre-active.chrome-hidden .theatre-activity{top:18px}.theatre-strip{transition:bottom .2s}#theatreTitleResults>div,#theatreRoomResults>div{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid var(--border,#303440);font-size:13px}#theatreTitleResults>div>span{min-width:0;overflow-wrap:anywhere}.theatre-settings{max-width:620px}#studioTheatrePanel{margin:20px 0;padding:22px;border:1px solid var(--border,#303440);border-radius:18px}#theatreStudioStatus{font-size:13px;color:var(--text-muted,#a2a9b8)}@media(max-width:600px){.theatre-dialog{padding:22px 18px}.theatre-room{padding:12px}.theatre-room-head{align-items:flex-start}.theatre-room-tools{gap:5px}.theatre-strip{left:7px;right:7px;bottom:85px}.theatre-activity{font-size:11px;top:58px;padding:6px 10px}.theatre-person{font-size:11px;padding:6px 8px}.theatre-person>span{max-width:95px}.theatre-room-head>div{max-width:100%}.theatre-dialog .close{position:sticky;float:right;top:0}.theatre-settings select{max-width:180px}}@media(prefers-reduced-motion:reduce){.theatre-activity,.theatre-strip{transition:none}}
#theatreModerationMenu{position:absolute;z-index:1000;max-height:calc(100% - 16px);overflow:auto;color:#f3f5fa;border:1px solid #505a70;box-sizing:border-box;min-width:210px}#theatreModerationMenu strong{font-size:12px;padding:4px 7px;overflow-wrap:anywhere}#theatreModerationMenu button{border:1px solid #485267;background:#292f3e;color:#fff;border-radius:7px;padding:10px 12px;font:inherit;font-size:12px;cursor:pointer}#theatreModerationMenu [data-moderate=ban]{color:#ffb3bc}.theatre-person .theatre-person-more{padding:3px 6px;min-width:28px;line-height:20px;font-weight:700;border-color:#68758e;background:#303b50;color:#fff}.theatre-host-settings{margin-top:12px;padding:14px;border:1px solid #3d4556;border-radius:12px;max-width:500px}.theatre-host-settings h4{margin:0 0 10px}.theatre-host-settings label:not(.theatre-check){display:grid;gap:6px;margin:12px 0;font-size:13px}.theatre-host-settings input[type=password]{box-sizing:border-box;max-width:100%;width:100%;padding:10px;border:1px solid #566078;background:#161c29;color:#fff;border-radius:8px;font:inherit}.theatre-host-settings small{display:block;font-size:11px;line-height:1.5;color:#b0bbd0;margin:8px 0}.theatre-host-settings details{margin-top:14px}.theatre-host-settings summary{font-size:12px;cursor:pointer}.theatre-ban-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-top:8px;font-size:12px}

/* Keep the fullscreen participant row just above the progress bar. */
#playerContainer .theatre-strip{left:max(5px,env(safe-area-inset-left));right:max(5px,env(safe-area-inset-right));bottom:var(--theatre-strip-bottom,82px);gap:5px;padding:2px;border-radius:14px;background:linear-gradient(90deg,#06090c48,#06090c08)}
#playerContainer .theatre-strip .theatre-people{gap:5px;scrollbar-width:none}
#playerContainer .theatre-strip .theatre-people::-webkit-scrollbar{display:none}
#playerContainer .theatre-strip .theatre-person{gap:5px;padding:4px 7px;font-size:11px;min-height:25px;box-sizing:border-box}
#playerContainer .theatre-strip>button{padding:6px 8px;font-size:11px;border-radius:7px}
#playerContainer .theatre-strip .theatre-person-more{min-width:25px;padding:1px 4px;line-height:20px}
#playerContainer.theatre-active.chrome-hidden:fullscreen .theatre-strip,#playerContainer.theatre-active.chrome-hidden:-webkit-full-screen .theatre-strip{bottom:max(5px,env(safe-area-inset-bottom))}

/* The keyboard changes the visual viewport independently of the layout viewport. */
#theatreDialog.modal{top:var(--theatre-visible-top,0px);bottom:auto;height:var(--theatre-visible-height,100dvh);box-sizing:border-box;padding:12px;overflow-y:auto;overscroll-behavior:contain;align-items:start;place-items:start center;touch-action:pan-y}
#theatreDialog .theatre-dialog{box-sizing:border-box;max-height:calc(var(--theatre-visible-height,100dvh) - 24px);margin:auto 0;overflow-y:auto;overscroll-behavior:contain;scroll-padding-block:18px;-webkit-overflow-scrolling:touch;touch-action:pan-y}
#theatreDialog input{scroll-margin-block:20px;font-size:16px}
#playerContainer.theatre-active:not(:fullscreen):not(:-webkit-full-screen){max-height:calc(var(--theatre-visible-height,100dvh) - 20px)}
#playerContainer.theatre-active:not(:fullscreen):not(:-webkit-full-screen) .player-viewport{flex:0 0 auto;max-height:calc(var(--theatre-visible-height,100dvh)*.66)}
#playerContainer.theatre-active .theatre-room{flex:1 1 auto;min-height:80px;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scroll-padding-block:14px;-webkit-overflow-scrolling:touch;touch-action:pan-y;box-sizing:border-box;max-width:100%}
.theatre-voice-tools{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:12px}
.theatre-voice-volume{display:flex;align-items:center;gap:8px;font-size:12px;color:#d6deed;max-width:100%;min-width:0}
.theatre-voice-volume input{width:130px;min-width:45px;max-width:100%;accent-color:#ed1233;touch-action:pan-x}
.theatre-voice-volume output{font-size:11px;min-width:30px;font-variant-numeric:tabular-nums}
.theatre-strip .theatre-voice-volume{background:#111820b3;border-radius:10px;padding:4px 6px;flex:0 1 140px;gap:4px}
.theatre-strip .theatre-voice-volume input{width:64px}
.theatre-strip .theatre-voice-volume output{display:none}
#theatreModerationMenu [data-moderate=kick]{color:#ff697d;border-color:#954353;background:#3a1e29}
.theatre-host-settings{box-sizing:border-box;width:100%;overflow-wrap:anywhere}
.theatre-host-settings input{scroll-margin-block:16px;font-size:16px!important}
#playerContainer .theatre-room .btn-quiet,#playerContainer .theatre-room .btn-quiet:hover{background:#242934;color:#f5f6fa;border-color:#424958}
@media(max-width:768px) and (orientation:portrait){
 #playerModal:has(.theatre-active){top:var(--theatre-visible-top,0px);bottom:auto;height:var(--theatre-visible-height,100dvh);box-sizing:border-box;align-items:start;padding:0}
 #playerContainer.theatre-active:not(:fullscreen):not(:-webkit-full-screen){max-height:var(--theatre-visible-height,100dvh);height:var(--theatre-visible-height,100dvh)}
 #playerContainer.theatre-active:not(:fullscreen):not(:-webkit-full-screen) .player-viewport{max-height:none;flex:0 0 auto}
 #playerContainer.theatre-active:not(:fullscreen):not(:-webkit-full-screen) .player-screen{height:min(56.25vw,calc(var(--theatre-visible-height,100dvh)*.34));min-height:70px;max-height:none;aspect-ratio:auto}
 #playerContainer.theatre-active .theatre-room{min-height:60px}
 .theatre-room-tools{width:100%}
}

/* Active audio is visibly distinct from a muted/inactive microphone. */
#playerContainer .theatre-room button.is-mic-on,#playerContainer .theatre-strip button.is-mic-on,#playerContainer .theatre-person.is-mic-on{background:#143e30;color:#bcf7d9;border-color:#49ba89;box-shadow:0 0 0 1px #49ba8926}
#playerContainer .theatre-person.is-speaking{background:#16533a;border-color:#72edb1;box-shadow:0 0 0 2px #5adea242}
#playerContainer #ctrlMute.is-audio-on{color:#89e8b6;background:#173b2c}
