/* PLAY-VIBE V137: existing UI and routes are retained; scoped patches only. */
/* Remove discontinued left rail in all viewer pages; Studio navigation stays available. */
.mv-layout34>.sidebar,.mv-layout34 aside.sidebar{display:none!important}
.mv-layout34{display:block!important;grid-template-columns:minmax(0,1fr)!important}
.mv-layout34>.app-column{width:100%!important;max-width:none!important;min-width:0!important}
/* View-all is a direct catalog, not a second reload toolbar. */
#content .mv-browse-controls36{display:none!important;height:0!important;min-height:0!important;margin:0!important;padding:0!important;gap:0!important}
/* A consistent one-second entrance, with motion-reduction respected. */
@keyframes pv137-page-arrive{from{opacity:0;transform:translateY(17px) scale(.995)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes pv137-player-arrive{from{opacity:0;transform:translateY(36px)}to{opacity:1;transform:translateY(0)}}
#content>.pv135-page-enter{animation:pv137-page-arrive 1s cubic-bezier(.16,.77,.26,1) both!important;translate:none!important}
#player-root .pv135-play-in,#pv102-screen.pv135-play-in{animation:pv137-player-arrive 1s cubic-bezier(.17,.8,.23,1) both!important;translate:none!important}
/* Prevent large helper copy from crowding personal profile; account switch remains usable. */
#content .mv88-account-info,#content .mv88-accounts .mv88-section-heading,#content .mv69-account-version{display:none!important}
/* A low-profile swipe strip enables touch gestures above provider iframe controls. */
#player-root .player-media{position:relative}
#player-root .pv137-movie-swipe-handle{position:absolute;top:2px;left:50%;transform:translateX(-50%);z-index:190;display:block;width:74px;height:28px;touch-action:none;cursor:grab;border:0;background:transparent!important}
#player-root .pv137-movie-swipe-handle:after,.pv137-swipe-handle:after{content:'';display:block;margin:6px auto;width:43px;height:5px;border-radius:999px;background:rgba(244,251,255,.8);box-shadow:0 1px 5px #0009}
#player-root .player-shell.minimized .pv137-movie-swipe-handle,#player-root .player-shell.player-locked12 .pv137-movie-swipe-handle{display:none!important}
/* Live player must start below the real device status area without extra site-header space. */
body.pv133-live-viewing .mv-layout34>.app-column{gap:0!important;row-gap:0!important}
body.pv133-live-viewing .mv-layout34 #content,
body.pv133-live-viewing .mv-layout34 .content{padding-top:0!important;margin-top:0!important;border-top:0!important;scroll-padding-top:0!important;scroll-margin-top:0!important}
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;gap:0!important;border:0!important}
body.pv133-live-viewing #content .pv108-live-app.pv113-now-playing>.pv108-player:not(.pv133-live-mini){top:env(safe-area-inset-top,0px)!important;margin-top:0!important;padding-top:0!important;border:0!important;outline:0!important;border-radius:0!important;box-shadow:none!important}
body.pv133-live-viewing #content #pv103-stage{margin:0!important;border:0!important;outline:0!important;border-radius:0!important;box-shadow:none!important}
body.pv133-live-viewing #content .pv108-live-app.pv113-now-playing>.pv135-live-filter-top,
body.pv133-live-viewing #content .pv108-live-app.pv113-now-playing>.pv133-recent,
body.pv133-live-viewing #content .pv108-live-app.pv113-now-playing>.pv133-saved-access{display:none!important}
body.pv133-live-viewing #content .pv108-live-app.pv113-now-playing>.pv108-library{display:block!important;margin-top:9px!important}
body.pv133-live-viewing #content .pv108-live-app.pv113-now-playing>.pv108-library .pv108-library-head h2{font-size:18px!important}
/* Preserve a clear separation between live player and channel return CTA. */
body.pv133-live-viewing #content .pv108-live-app.pv113-now-playing>.pv133-live-return{display:block!important;margin:16px 0 10px!important;padding:10px 12px!important}
/* Mini controls: actual play/pause, return, fullscreen, close icons; a visible grip supports pointer dragging. */
#pv135-live-dock .pv137-drag-handle,
#content #pv102-screen.pv133-live-mini .pv137-drag-handle{display:grid;place-items:center;flex:0 0 38px;min-width:38px;min-height:34px;margin-right:auto;color:#f7fbff;cursor:grab;touch-action:none;user-select:none;border:1px solid #bde6ff44;border-radius:10px;background:#e2efff12}
#pv135-live-dock .pv137-drag-handle:active,
#content #pv102-screen.pv133-live-mini .pv137-drag-handle:active{cursor:grabbing}
#pv135-live-dock .pv133-live-mini-buttons button svg,
#content #pv102-screen.pv133-live-mini .pv133-live-mini-buttons button svg{width:19px;height:19px;stroke:white!important;stroke-width:1.9}
#pv135-live-dock #pv102-screen.pv133-live-mini,
#content #pv102-screen.pv133-live-mini{will-change:transform;transition:box-shadow .2s ease;touch-action:pan-y}
#pv102-screen .pv133-live-player-toolbar{position:relative;min-height:52px!important;gap:7px;z-index:1}
#pv102-screen .pv137-swipe-handle{position:absolute;left:50%;top:0;transform:translateX(-50%);width:84px;height:26px;cursor:grab;touch-action:none;z-index:3}
#pv102-screen.pv133-live-mini .pv137-swipe-handle{display:none!important}
/* Fullscreen is the video stage only; surrounding page, list and dock never enter fullscreen. */
#pv102-screen #pv103-stage:fullscreen{position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;max-width:none!important;max-height:none!important;aspect-ratio:auto!important;background:#000!important;border:0!important;border-radius:0!important;margin:0!important;overflow:hidden!important}
#pv102-screen #pv103-stage:fullscreen .pv103-media{position:absolute!important;inset:0!important;width:100%!important;height:100%!important}
#pv102-screen #pv103-stage:fullscreen iframe,#pv102-screen #pv103-stage:fullscreen video{width:100%!important;height:100%!important;object-fit:contain!important}
#pv102-screen #pv103-stage:fullscreen .pv103-controls{z-index:12!important}
@media(orientation:portrait){
 #pv102-screen.pv103-force-landscape #pv103-stage:fullscreen{inset:auto!important;left:100vw!important;top:0!important;width:100dvh!important;height:100vw!important;transform:rotate(90deg)!important;transform-origin:0 0!important}
}
/* If native fullscreen is unsupported, the pseudo-player still fills the usable viewport. */
#pv102-screen.pv103-pseudo-full .pv103-stage{width:100%!important;height:100%!important;max-height:100dvh!important;aspect-ratio:auto!important}
#pv102-screen.pv103-pseudo-full .pv133-live-player-toolbar{display:none!important}
/* The new fullscreen searchable selection panel uses minimum top padding. */
#pv135-filter-layer{padding-top:env(safe-area-inset-top,0px)!important}
#pv135-filter-layer .pv135-filter-header{min-height:51px!important;padding-block:5px!important}
#pv135-filter-layer .pv135-filter-search{margin-top:7px!important;margin-bottom:5px!important}
#pv135-filter-layer .pv135-filter-options{padding-top:0!important}
/* Two columns stay visible in channel, recommendations and history pages. */
#content .pv108-live-app .pv102-grid,#content .pv109-related .pv109-related-list,#content .pv133-library-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
@media(prefers-reduced-motion:reduce){
 #content>.pv135-page-enter,#player-root .pv135-play-in,#pv102-screen.pv135-play-in{animation:none!important;transform:none!important;transition:none!important}
 #player-root .pv137-movie-swipe-handle,#pv102-screen .pv137-swipe-handle{transition:none!important}
}

/* Gesture feedback is quick and uses transforms only; video DOM remains mounted. */
@keyframes pv137-swipe-peek{0%{filter:brightness(1);opacity:1}65%{filter:brightness(.93);opacity:.90}100%{filter:brightness(1);opacity:1}}
#player-root .pv137-swipe-dismiss,#pv102-screen.pv137-swipe-dismiss{animation:pv137-swipe-peek .26s ease-out both!important}
@media(prefers-reduced-motion:reduce){#player-root .pv137-swipe-dismiss,#pv102-screen.pv137-swipe-dismiss{animation:none!important}}
