/* Pipio 5.0.12: native fullscreen + landscape lock from user interaction.
   CSS rotation is a fallback only if the browser refuses the orientation API. */
body.pipio-pro .view-watch .pw-player-shell{isolation:isolate}
body.pipio-pro .view-watch .pw-player-shell .pw-expand{
 display:inline-flex!important;align-items:center!important;justify-content:center!important;
 gap:6px;z-index:100!important;min-height:42px;touch-action:manipulation;
 background:rgba(12,12,20,.72)!important;color:#fff!important;
 border:1px solid rgba(255,255,255,.56)!important;
 box-shadow:0 2px 12px rgba(0,0,0,.32);
}
body.pipio-pro .view-watch .pw-player-shell .pw-inline-start[hidden]{display:none!important}
body.pipio-pro .view-watch .pw-inline-start{
 position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
 z-index:15;display:inline-flex;align-items:center;justify-content:center;gap:10px;
 padding:12px 16px;border:1px solid rgba(255,255,255,.6);
 border-radius:999px;background:rgba(38,23,69,.93);box-shadow:0 4px 18px #0008;
 color:#fff;font:800 13px/1.2 system-ui,sans-serif;cursor:pointer;min-width:124px;min-height:48px;
}
body.pipio-watch-theater-open{overflow:hidden!important;overscroll-behavior:none!important;background:#000!important}
body.pipio-watch-theater-open .view-watch .sidebar,
body.pipio-watch-theater-open .view-watch .mobilebar,
body.pipio-watch-theater-open .view-watch .topbar,
body.pipio-watch-theater-open .view-watch .pw-layout{visibility:hidden!important}
body.pipio-pro .view-watch .pw-page>.pw-video-wrap.pipio-watch-theater-wrap{
 display:block!important;position:fixed!important;inset:0!important;
 width:100vw!important;height:100dvh!important;max-width:none!important;max-height:none!important;
 margin:0!important;padding:0!important;z-index:2147483000!important;
 background:#000!important;border:0!important;border-radius:0!important;
 overflow:hidden!important;box-shadow:none!important;
}
body.pipio-pro .view-watch .pw-page>.pw-video-wrap.pipio-watch-theater-wrap .pw-player-shell{
 display:flex!important;position:absolute!important;inset:0!important;
 width:100%!important;height:100%!important;min-width:0!important;min-height:0!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;
 box-shadow:none!important;background:#000!important;
}
body.pipio-pro .view-watch .pw-page>.pw-video-wrap.pipio-watch-theater-wrap .pw-iframe,
body.pipio-pro .view-watch .pw-page>.pw-video-wrap.pipio-watch-theater-wrap .pw-html-video{
 display:block!important;width:100%!important;height:100%!important;
 max-width:100%!important;max-height:100%!important;
 object-fit:contain!important;border:0!important;
}
/* Only Cloudflare video controls while expanded; no duplicate Pipio toolbar. */
body.pipio-pro .view-watch .pw-page>.pw-video-wrap.pipio-watch-theater-wrap .g3-player-tools,
body.pipio-pro .view-watch .pw-page>.pw-video-wrap.pipio-watch-theater-wrap .g3-resume{display:none!important}
body.pipio-pro .view-watch .pw-page>.pw-video-wrap.pipio-watch-theater-wrap .pw-expand,
body.pipio-pro .view-watch .pw-player-shell:fullscreen>.pw-expand,
body.pipio-pro .view-watch .pw-player-shell:-webkit-full-screen>.pw-expand{
 position:absolute!important;top:max(12px,env(safe-area-inset-top))!important;
 right:max(12px,env(safe-area-inset-right))!important;
 display:inline-flex!important;opacity:1!important;visibility:visible!important;
 z-index:100!important;padding:8px 14px!important;min-height:44px!important;
 background:rgba(7,7,12,.68)!important;
}
/* Native fullscreen is the first choice: the target is the video stage only. */
body.pipio-pro .view-watch .pw-player-shell:fullscreen,
body.pipio-pro .view-watch .pw-player-shell:-webkit-full-screen{
 position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;
 max-width:none!important;max-height:none!important;aspect-ratio:auto!important;
 border:0!important;border-radius:0!important;background:#000!important;
}
body.pipio-pro .view-watch .pw-player-shell:fullscreen .pw-iframe,
body.pipio-pro .view-watch .pw-player-shell:-webkit-full-screen .pw-iframe,
body.pipio-pro .view-watch .pw-player-shell:fullscreen .pw-html-video{
 width:100%!important;height:100%!important;object-fit:contain!important;
}
/* Browser denied screen.orientation.lock(): sideways stage, ready when user turns phone. */
@media (orientation:portrait){
 body.pipio-pro .view-watch .pw-player-shell:fullscreen.pipio-watch-force-rotate,
 body.pipio-pro .view-watch .pw-player-shell:-webkit-full-screen.pipio-watch-force-rotate{
   position:fixed!important;top:0!important;left:100vw!important;right:auto!important;bottom:auto!important;
   width:100dvh!important;height:100vw!important;max-width:none!important;max-height:none!important;
   transform-origin:top left!important;transform:rotate(90deg)!important;
 }
 body.pipio-pro .view-watch .pw-page>.pw-video-wrap.pipio-watch-theater-wrap.pipio-watch-force-rotate{
   position:fixed!important;top:0!important;left:100vw!important;right:auto!important;bottom:auto!important;
   width:100dvh!important;height:100vw!important;max-width:none!important;max-height:none!important;
   transform-origin:top left!important;transform:rotate(90deg)!important;
 }
}
@media(max-width:420px){body.pipio-pro .view-watch .pw-expand>span{font-size:11px}}
