/* Keep native watch-room controls inside the video, not the scrolling dialog. */
#party-player.eyeroom-shared-video{position:relative!important;isolation:isolate;box-sizing:border-box;width:100%;min-width:0;min-height:0;padding:0!important;margin:0;aspect-ratio:16/9;background:#000;overflow:hidden;line-height:normal}
#party-player.eyeroom-shared-video>mux-player{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:100%;--media-object-fit:contain;pointer-events:none}
#party-player.eyeroom-shared-video>.cinema-controls{position:absolute!important;inset:0!important;width:100%;height:100%;box-sizing:border-box;overflow:hidden}
#party-player .cinema-top{top:6px;left:6px;right:6px;gap:4px}
#party-player .cinema-tools{margin-left:auto;max-width:100%;min-width:0;overflow-x:auto;scrollbar-width:none;gap:0}
#party-player .cinema-tools::-webkit-scrollbar{display:none}
#party-player .cinema-tools button{flex-shrink:0}
#party-player .cinema-top>[data-action=close]{display:none!important}
#party-player .cinema-bottom{left:10px;right:10px;bottom:6px;max-width:calc(100% - 20px)}
#party-player .cinema-title{font-size:12px;line-height:1.2;margin-bottom:3px}
#party-player .cinema-center{top:48%;gap:20px}
#party-player .title-playback-row{display:none}
#party-player .cinema-announcement{left:12px;right:12px;bottom:54px;font-size:12px}
#party-player .cinema-settings{top:52px;max-height:calc(100% - 58px)}
/* Real fullscreen and the iPhone fallback use the video surface only. */
#party-player.eyeroom-shared-video:fullscreen,#party-player.eyeroom-shared-video.cinema-edge{position:fixed!important;inset:0!important;width:100vw!important;width:100dvw!important;height:100vh!important;height:100dvh!important;max-width:none!important;max-height:none!important;aspect-ratio:auto!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:#000;overflow:hidden!important;z-index:20}
#party-player:fullscreen .cinema-top,#party-player.cinema-edge .cinema-top{top:max(8px,env(safe-area-inset-top));left:max(8px,env(safe-area-inset-left));right:max(8px,env(safe-area-inset-right))}
#party-player:fullscreen .cinema-top>[data-action=close],#party-player.cinema-edge .cinema-top>[data-action=close]{display:inline-flex!important;flex-shrink:0}
#party-player:fullscreen .cinema-tools,#party-player.cinema-edge .cinema-tools{max-width:calc(100% - 52px)}
#party-player:fullscreen .cinema-bottom,#party-player.cinema-edge .cinema-bottom{bottom:max(12px,env(safe-area-inset-bottom));left:max(12px,env(safe-area-inset-left));right:max(12px,env(safe-area-inset-right));max-width:none}
#party-player:fullscreen .cinema-title,#party-player.cinema-edge .cinema-title{font-size:clamp(14px,2.2vw,24px);margin-bottom:8px}
#party-player:fullscreen .title-playback-row,#party-player.cinema-edge .title-playback-row{display:flex}
#watch-together.party-video-fullscreen{position:fixed!important;inset:0!important;box-sizing:border-box!important;width:100vw!important;width:100dvw!important;height:100vh!important;height:100dvh!important;max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;overflow:hidden!important;transform:none!important;background:#000!important}
#watch-together.party-video-fullscreen>.party-heading,#watch-together.party-video-fullscreen>#party-title,#watch-together.party-video-fullscreen>#party-status,#watch-together.party-video-fullscreen .party-chat,#watch-together.party-video-fullscreen #party-controls,#watch-together.party-video-fullscreen .party-roster{display:none!important}
#watch-together.party-video-fullscreen>.group-watch-layout,#watch-together.party-video-fullscreen>.group-watch-layout>section{position:absolute!important;inset:0!important;display:block!important;width:100%!important;height:100%!important;min-width:0!important;margin:0!important;padding:0!important;transform:none!important}
