/* PLAY-VIBE V134: content page top alignment, exclusive right-side player controls,
   and a compact swipeable 'Watch in' language rail. All existing features are retained. */

/* V28's --mv28-player-top was forced to >=48px even when .topbar was hidden.
   Scope the zero-offset correction to the open movie page only. */
body.pv133-content-page .app-column>.topbar{display:none!important;min-height:0!important;height:0!important;margin:0!important;padding:0!important;border:0!important}
body.pv133-content-page .app-column{row-gap:0!important;column-gap:0!important;gap:0!important}
body.pv133-content-page.inline-player{--mv28-player-top:0px}
@media(max-width:760px){
 body.pv133-content-page.inline-player.mv-detail-sticky28 .app-column>#player-root{
   position:sticky!important;top:env(safe-area-inset-top,0px)!important;
   margin:0!important;padding:0!important;border:0!important;outline:0!important;
   line-height:normal!important;background:#000!important;
 }
 body.pv133-content-page.inline-player .app-column>#player-root>.player-shell.expanded:not(.cinema-fullview){
   margin:0!important;padding:0!important;gap:0!important;top:0!important;bottom:auto!important;
   border:0!important;outline:0!important;box-shadow:none!important;
 }
 body.pv133-content-page.inline-player .app-column>#player-root>.player-shell.expanded:not(.cinema-fullview) .player-media{
   margin:0!important;padding:0!important;border:0!important;outline:0!important;background:#000!important;
 }
 /* Remove the old 13px top padding and any reserved space after the sticky player. */
 body.pv133-content-page.inline-player .app-column>#content{
   padding-top:0!important;margin-top:0!important;scroll-margin-top:0!important;
 }
 body.pv133-content-page .app-column>#content .detail-container{padding-top:10px!important;margin-top:0!important;}
}

/* LOCK or HIDE is exclusive: both affordances use the same right-center position. */
#player-root .player-shell.player-locked12 .player-touch-lock13{justify-content:flex-end!important;align-items:center!important}
#player-root .player-shell.player-locked12 .player-touch-lock13 #player-unlock13,
body.inline-player #player-root .player-shell.player-locked12 .player-touch-lock13 #player-unlock13,
body.pv133-content-page.inline-player #player-root .player-shell.player-locked12 .player-touch-lock13 #player-unlock13{
  position:absolute!important;top:50%!important;right:10px!important;left:auto!important;bottom:auto!important;
  transform:translateY(-50%)!important;display:grid!important;place-items:center!important;
  min-width:43px!important;width:43px!important;min-height:43px!important;height:43px!important;
  background:rgba(8,17,28,.38)!important;border:1px solid rgba(255,255,255,.30)!important;
  border-radius:13px!important;box-shadow:0 2px 8px rgba(0,0,0,.15)!important;
  color:#fff!important;opacity:.68!important;z-index:155!important;
  -webkit-backdrop-filter:none!important;backdrop-filter:none!important;
}
#player-root .player-shell.player-locked12 #player-unlock13 svg{
  color:#fff!important;stroke:#fff!important;fill:none;width:24px!important;height:24px!important;opacity:1!important;
}
#player-root #pv133-reveal{
  top:50%!important;right:10px!important;left:auto!important;bottom:auto!important;
  transform:translateY(-50%)!important;width:43px!important;height:43px!important;
  background:rgba(8,17,28,.38)!important;border:1px solid rgba(255,255,255,.30)!important;
  color:#fff!important;opacity:.68!important;border-radius:13px!important;
  box-shadow:0 2px 8px rgba(0,0,0,.15)!important;
}
#player-root #pv133-reveal svg{color:#fff!important;stroke:#fff!important;width:24px!important;height:24px!important;opacity:1!important}
#player-root .player-shell.player-locked12 #pv133-reveal,
#player-root .player-shell.pv133-controls-disguised .player-touch-lock13{display:none!important}
#player-root #pv133-reveal[hidden],#player-root .player-touch-lock13[hidden]{display:none!important}
#player-root #pv133-reveal:hover,#player-root #pv133-reveal:focus-visible,
#player-root #player-unlock13:hover,#player-root #player-unlock13:focus-visible{opacity:1!important;background:rgba(9,20,33,.74)!important}

/* Compact, glass-dark Watch in card: one row with native swipe for 2+ choices.
   No extra provider icons or per-item "Watch in" text; the heading covers it once. */
#content .detail-container .language-section22{
  max-width:100%;min-width:0!important;overflow:hidden;
  margin:12px 0 15px!important;padding:12px 13px!important;
  border:1px solid rgba(143,188,230,.23)!important;border-radius:14px!important;
  background:linear-gradient(125deg,rgba(23,35,55,.96),rgba(13,25,39,.98))!important;
  box-shadow:0 6px 22px rgba(0,0,0,.14)!important;
}
#content .detail-container .language-section22:before{display:none!important}
#content .detail-container .language-heading22{min-height:0!important;gap:8px!important;margin:0 0 8px!important}
#content .detail-container .language-heading22 .language-icon22{
  flex:0 0 30px!important;width:30px!important;height:30px!important;border-radius:9px!important;
  box-shadow:none!important;
}
#content .detail-container .language-heading22 h2{font-size:13px!important;line-height:1.35!important;letter-spacing:0!important;font-weight:750!important;margin:0!important}
#content .detail-container .language-kicker22{font-size:9px!important;letter-spacing:.10em!important;opacity:.75}
#content .detail-container .language-grid22{
  display:flex!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:flex-start!important;
  overflow-x:auto!important;overflow-y:hidden!important;
  gap:7px!important;padding:2px 1px 5px!important;width:100%!important;
  scroll-snap-type:x proximity!important;overscroll-behavior-x:contain!important;
  -webkit-overflow-scrolling:touch!important;scrollbar-width:none!important;touch-action:pan-x pan-y!important;
}
#content .detail-container .language-grid22::-webkit-scrollbar{display:none!important}
#content .detail-container .language-grid22 .language-button22:not([hidden]){
  flex:0 0 auto!important;display:inline-flex!important;justify-content:center!important;align-items:center!important;
  min-width:105px!important;max-width:200px!important;width:auto!important;
  min-height:38px!important;height:auto!important;
  padding:8px 13px!important;margin:0!important;
  font-size:12px!important;line-height:1.2!important;text-align:center!important;
  border-radius:10px!important;border:1px solid rgba(152,192,234,.29)!important;
  background:rgba(100,149,204,.105)!important;color:#f2f8ff!important;
  box-shadow:none!important;transform:none!important;scroll-snap-align:start!important;
  transition:background-color .14s ease,border-color .14s ease!important;
  white-space:nowrap!important;
}
#content .detail-container .language-button22 .language-button-name22{
  display:block!important;min-width:0!important;max-width:100%!important;flex:initial!important;
  font-size:12px!important;font-weight:680!important;line-height:1.2!important;
  overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;
}
#content .detail-container .language-grid22 .language-button22.language-active22{
  background:rgba(69,155,197,.25)!important;border-color:rgba(117,216,241,.82)!important;
  box-shadow:inset 0 0 0 1px rgba(115,221,241,.14)!important;
}
#content .detail-container .language-grid22 .language-button22:focus-visible{
  outline:2px solid #a7e4ff!important;outline-offset:2px!important;
}
/* The in-player language recovery chooser remains available and compact. */
#player-root .player-languages12{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto!important;gap:6px!important;scrollbar-width:none}
#player-root .player-languages12 button{flex:0 0 auto;min-height:36px!important;padding:6px 10px!important;font-size:12px!important}

@media(max-width:760px){
 /* The poster, old back button, and decorative heading are hidden ONLY on mobile title pages. */
 body.pv133-content-page #content .detail-container>.back-link{display:none!important}
 body.pv133-content-page #content .detail-main>.detail-poster{display:none!important}
 body.pv133-content-page #content .detail-main{display:block!important;width:100%!important;max-width:100%!important;margin:0!important;}
 body.pv133-content-page #content .detail-main>.detail-body{display:block!important;min-width:0!important;width:100%!important;max-width:100%!important;margin:0!important;padding:0!important;}
 body.pv133-content-page #content .detail-body>h1{margin:4px 0 7px!important;font-size:clamp(20px,5.8vw,29px)!important;line-height:1.2!important}
 body.pv133-content-page #content .language-mobile22{
   display:block!important;margin:7px 0 14px!important;padding:10px 10px 9px!important;
   border-radius:12px!important;background:rgba(19,33,52,.91)!important;
   box-shadow:none!important;
 }
 body.pv133-content-page #content .language-mobile22 .language-heading22{
   margin:0 0 6px!important;padding:0!important;min-height:0!important;
 }
 body.pv133-content-page #content .language-mobile22 .language-heading22 .language-icon22,
 body.pv133-content-page #content .language-mobile22 .language-kicker22,
 body.pv133-content-page #content .language-mobile22 .language-heading22 small,
 body.pv133-content-page #content .language-mobile22 .language-button-mark22,
 body.pv133-content-page #content .language-mobile22 .language-button-arrow22{display:none!important}
 body.pv133-content-page #content .language-mobile22 .language-heading22 h2{
   font-size:12px!important;font-weight:700!important;line-height:1.2!important;color:#cfddea!important;
 }
 body.pv133-content-page #content .language-mobile22 .language-grid22{gap:6px!important;padding:1px 0 3px!important;}
 body.pv133-content-page #content .language-mobile22 .language-grid22 .language-button22:not([hidden]){
   min-width:86px!important;max-width:min(44vw,150px)!important;
   min-height:34px!important;padding:7px 11px!important;border-radius:9px!important;
 }
 body.pv133-content-page #content .language-mobile22 .language-button-name22{font-size:11.5px!important;font-weight:700!important}
}
@media(prefers-reduced-motion:reduce){#content .language-button22{transition:none!important}}
