/* MoviesVibe 28 — sticky mobile title playback + reliable mini-player return.
   Appended after v27: deliberately no changes to server, provider, or catalog styles. */
@media(max-width:760px){
  /* v15 mistakenly forces player-root to position:relative, making the movie
     and Change Server controls scroll away with the content. The column is
     the scroll container's content; position:sticky keeps player visible. */
  body.inline-player.mv-detail-sticky28 .app-column>#player-root{
    position:sticky!important;
    top:var(--mv28-player-top,60px)!important;
    left:auto!important;right:auto!important;bottom:auto!important;
    align-self:stretch!important;
    flex:0 0 auto!important;
    width:100%!important;max-width:100vw!important;
    margin:0!important;padding:0!important;
    overflow:visible!important;
    z-index:111!important;
    box-shadow:0 12px 24px rgba(0,0,0,.27)!important;
    isolation:isolate;
  }
  body.inline-player.mv-detail-sticky28 .app-column>#player-root>.player-shell.expanded:not(.cinema-fullview){
    position:relative!important;inset:auto!important;
    display:flex!important;flex-direction:column!important;
    max-width:100%!important;width:100%!important;
    max-height:none!important;height:auto!important;
    margin:0!important;transform:none!important;
    overflow:hidden!important;border-radius:0!important;
  }
  body.inline-player.mv-detail-sticky28 .app-column>#player-root>.player-shell.expanded:not(.cinema-fullview) .player-media{
    aspect-ratio:16/9!important;
    width:100%!important;height:auto!important;
    flex:none!important;overflow:hidden!important;
  }
  /* Keep Change Server immediately below the player. Keep the editorial note
     without letting an overflowing description cover the movie details. */
  body.inline-player.mv-detail-sticky28 #player-root .player-shell.expanded:not(.cinema-fullview) .player-foot{
    height:auto!important;min-height:0!important;max-height:none!important;
    overflow:visible!important;
    display:flex!important;align-items:flex-start!important;
    padding:7px 10px 9px!important;
  }
  body.inline-player.mv-detail-sticky28 #player-root .player-source-tools25{width:100%;min-width:0;gap:5px}
  body.inline-player.mv-detail-sticky28 #player-root .player-source-tools25>button{
    min-height:33px;max-height:40px;
    border:1px solid rgba(166,194,255,.52);
    background:linear-gradient(110deg,rgba(103,145,238,.25),rgba(168,110,238,.24));
    color:#edf3ff;
    border-radius:10px;
    box-shadow:0 3px 14px rgba(0,0,0,.13);
  }
  body.inline-player.mv-detail-sticky28 #player-root .player-server-warning25{
    padding:5px 8px!important;line-height:1.25!important;
    font-size:10px!important;max-width:100%;
  }
  body.inline-player.mv-detail-sticky28 .app-column>#content{
    position:relative!important;overflow:visible!important;
    min-height:120vh!important;
    z-index:1!important;
  }
  /* The mobile topbar remains above the sticky video at all times. */
  body.inline-player.mv-detail-sticky28 .app-column>.topbar{z-index:125!important;top:0!important}
  /* Minimized players are movable overlays, not permanently sticky. */
  #player-root .player-shell.minimized .player-top-btn[data-action="player-fullview"]{
    display:grid!important;place-items:center!important;
  }
}
@media(min-width:761px){
  /* In mini mode, Full View is a direct link back to the playing title. */
  #player-root .player-shell.minimized .player-top-btn[data-action="player-fullview"]{
    display:grid!important;place-items:center!important;
  }
}
#player-root .player-shell.minimized .player-top-btn[data-action="player-fullview"]{
  border:1px solid rgba(175,196,255,.32)!important;
  border-radius:9px;
}
#player-root .player-shell.minimized .player-top-btn[data-action="player-fullview"]:focus-visible,
#player-root .player-shell.minimized .player-top-btn[data-action="player-toggle"]:focus-visible{
  outline:2px solid #b9acff!important;outline-offset:2px!important;
}
@media(prefers-reduced-motion:reduce){
  body.inline-player.mv-detail-sticky28 .app-column>#player-root{box-shadow:none!important}
}
