/* PLAY-VIBE 138: player handoff, flush live stage, usable gestures, compact toolbars.
   This stylesheet overrides only presentation; original resources stay untouched. */
/* Never reserve a second app-header row over an active live player. The Android
   OS status bar is owned by WebView and is not controlled by site CSS. */
body.pv133-live-viewing .mv-layout34,
body.pv133-live-viewing .mv-layout34>.app-column{padding-top:0!important;margin-top:0!important;row-gap:0!important;gap:0!important;min-height:0!important}
body.pv133-live-viewing .mv-layout34>.app-column>.topbar{display:none!important;height:0!important;min-height:0!important;margin:0!important;padding:0!important}
body.pv133-live-viewing .mv-layout34>.app-column>#player-root:empty{display:none!important;min-height:0!important;height:0!important;padding:0!important;margin:0!important}
body.pv133-live-viewing .mv-layout34>.app-column>#content,
body.pv133-live-viewing #content .pv108-live-app,
body.pv133-live-viewing #content .pv108-live-app.pv113-now-playing{padding-top:0!important;margin-top:0!important;border-top:0!important;scroll-margin-top:0!important;scroll-padding-top:0!important}
body.pv133-live-viewing #content .pv108-live-app.pv113-now-playing>#pv102-screen:not(.pv133-live-mini){top:0!important;padding-top:0!important;margin-top:0!important;border-top:0!important;outline:0!important;border-radius:0!important;box-shadow:none!important}
body.pv133-live-viewing #content #pv103-stage,
body.pv133-live-viewing #content #pv102-media{top:0!important;margin-top:0!important;padding-top:0!important;border:0!important;outline:0!important;border-radius:0!important}
body.pv133-live-viewing #content #pv102-screen>.pv133-live-player-toolbar{margin-top:0!important}
/* Movie filters: first row starts at the viewport's usable top edge, no fake header spacer. */
body.pv96-filter-open #pv96-filter-overlay{inset:0!important;top:0!important;padding:0!important;margin:0!important;scroll-padding-top:0!important}
#pv96-filter-overlay .pv96-filter-panel{padding:0 clamp(12px,3vw,24px) 12px!important;gap:10px!important;min-height:100dvh!important;box-sizing:border-box!important}
#pv96-filter-overlay .pv96-filter-head{padding:6px 0 9px!important;margin:0!important;align-items:center!important;min-height:69px!important}
#pv96-filter-overlay .pv96-filter-head h2{margin:0!important;line-height:1.17!important;font-size:clamp(23px,5vw,31px)!important}
#pv96-filter-overlay .pv96-filter-kicker{font-size:10px!important}
#pv96-filter-overlay .pv96-filter-form{gap:10px!important}
#pv96-filter-overlay .pv96-filter-grid{gap:10px!important}
#pv96-filter-overlay .pv96-filter-field{padding:10px 11px!important;gap:7px!important;border-radius:14px!important}
#pv96-filter-overlay .pv96-filter-footer{padding:9px 0 max(8px,env(safe-area-inset-bottom,0px))!important}
/* Header logo becomes legible while retaining space for notifications and profile. */
@media(max-width:760px){
 .mv-layout34 .topbar.mv-topbar34 .mv-header-logo34 .brand-name{font-size:clamp(16px,4.25vw,20px)!important;font-weight:880!important;letter-spacing:-.055em!important}
 .mv-layout34 .topbar.mv-topbar34 .mv-header-logo34 .brand-emblem img{width:clamp(30px,8vw,38px)!important;height:clamp(30px,8vw,38px)!important}
 .mv-layout34 .topbar.mv-topbar34 .mv-header-logo34>button{gap:6px!important}
 .mv-layout34 .topbar.mv-topbar34{gap:6px!important}
}
@media(max-width:340px){.mv-layout34 .topbar.mv-topbar34 .mv-header-logo34 .brand-name{font-size:15px!important}}
/* Portrait player: show small label beneath Change Server SVG without shifting title. */
#player-root .pv133-portrait-bar .pv138-server-trigger{flex:0 0 58px!important;min-width:58px!important;min-height:44px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:2px!important;padding:4px!important}
#player-root .pv138-server-trigger small{color:#f8fafc;font-weight:690;font-size:9px;letter-spacing:-.035em;white-space:nowrap;line-height:1}
#player-root .pv133-portrait-bar .pv133-portrait-title{min-width:0!important;overflow:hidden!important;flex:1!important;text-overflow:ellipsis!important;white-space:nowrap!important}
@media(max-width:350px){#player-root .pv133-portrait-bar{gap:4px!important;padding-inline:6px!important}#player-root .pv133-portrait-bar .pv133-portrait-brand{max-width:50px!important}}
/* Better mobile swipe affordances: no visible grip button, no blocking iframe taps.
   Native video/stage gestures are full width; cross-origin embedded players have
   edge gesture lanes (iframe center remains fully interactive). */
#player-root .pv137-movie-swipe-handle,#pv102-screen .pv137-swipe-handle{display:none!important}
#player-root .player-shell.expanded .player-media{position:relative!important}
#player-root .pv138-movie-swipe-edge,#pv102-screen .pv138-live-swipe-edge{display:none;position:absolute;top:0;bottom:0;width:clamp(17px,7vw,36px);background:transparent;z-index:134;touch-action:none;cursor:grab}
#player-root .pv138-movie-swipe-edge-left,#pv102-screen .pv138-live-swipe-edge-left{left:0}
#player-root .pv138-movie-swipe-edge-right,#pv102-screen .pv138-live-swipe-edge-right{right:0}
@media(pointer:coarse){
 #player-root .player-shell.expanded:not(.player-locked12) .pv138-movie-swipe-edge{display:block}
 #pv102-screen:not(.pv133-live-mini):not(.pv103-locked) .pv138-live-swipe-edge{display:block}
}
#pv102-screen .pv103-stage{position:relative!important}
#pv102-screen.pv133-live-mini .pv138-live-swipe-edge{display:none!important}
#player-root .player-shell.minimized .pv138-movie-swipe-edge{display:none!important}
/* Mini player: controls ABOVE media, no menu/grip icon, drag from the image. */
#pv135-live-dock #pv102-screen.pv133-live-mini,
#content .pv108-live-app #pv102-screen.pv133-live-mini{display:flex!important;flex-direction:column!important;gap:0!important;touch-action:none!important;overflow:hidden!important}
#pv135-live-dock #pv102-screen.pv133-live-mini .pv133-live-mini-buttons,
#content #pv102-screen.pv133-live-mini .pv133-live-mini-buttons{order:-1!important;display:flex!important;justify-content:flex-end!important;align-items:center!important;gap:8px!important;min-height:44px!important;background:#0d1b2c!important;padding:5px 8px!important;border-bottom:1px solid #eaf6ff18!important}
#pv135-live-dock #pv102-screen.pv133-live-mini .pv103-stage,
#content #pv102-screen.pv133-live-mini .pv103-stage{order:0!important;width:100%!important;margin:0!important}
#pv135-live-dock #pv102-screen.pv133-live-mini .pv133-live-player-toolbar,
#content #pv102-screen.pv133-live-mini .pv133-live-player-toolbar{display:none!important}
#pv102-screen.pv133-live-mini #pv138-live-mini-grab{position:absolute;display:block;inset:0;z-index:119;touch-action:none;cursor:grab;background:transparent}
#pv102-screen.pv133-live-mini #pv138-live-mini-grab:active{cursor:grabbing}
#pv102-screen:not(.pv133-live-mini) #pv138-live-mini-grab{display:none!important}
#pv102-screen.pv133-live-mini .pv103-controls,
#pv102-screen.pv133-live-mini #pv112-iframe-tools,
#pv102-screen.pv133-live-mini #pv107-tap-surface{display:none!important}
#pv102-screen.pv133-live-mini .pv133-live-mini-buttons button{color:#fff!important;border:1px solid #e4f0ff2b!important;background:#ffffff10!important;min-height:33px!important;min-width:35px!important;display:grid!important;place-items:center!important}
#pv102-screen.pv133-live-mini .pv133-live-mini-buttons button[hidden],#pv102-screen.pv133-live-mini .pv133-live-mini-buttons button:disabled{display:none!important}
#pv102-screen.pv133-live-mini .pv133-live-mini-buttons svg{width:19px!important;height:19px!important;stroke:#fff!important;stroke-width:1.9!important}
@keyframes pv138-player-fly{0%{transform:translateY(0) scale(1);opacity:1}100%{transform:translateY(42vh) scale(.38);opacity:.70}}
@media(prefers-reduced-motion:reduce){#pv102-screen,#player-root .player-shell{scroll-behavior:auto!important}}
/* Hide audio toggle when there is no loaded video preview to control. */
#hero-rotator .hero-mute26[hidden]{display:none!important}
/* Touching the native Live TV surface should detect a downward swipe rather than
   handing the gesture to page scroll. Remote iframe surfaces stay interactive. */
#pv102-screen:not(.pv133-live-mini):not(.pv103-iframe-mode) #pv107-tap-surface{touch-action:none!important}
