/* Keep inline playback and controls inside the visible window; native fullscreen is independent. */
#movie-player{min-width:0;scroll-margin-top:90px}
#movie-player .vf-movie-player-frame{--vf-movie-available-height:calc(100svh - 190px);width:min(100%,calc(var(--vf-movie-available-height)*16/9));max-width:100%;aspect-ratio:16/9;align-self:center;min-width:0;background:#000}
#movie-player .vf-movie-player-frame>.youtube-player,#movie-player .vf-movie-player-frame>div:not(.plyr),#movie-player .vf-movie-player-frame>.plyr:not(.plyr--fullscreen-active){width:100%;height:100%;min-width:0;max-width:100%;aspect-ratio:16/9}
#movie-player .vf-movie-player-frame .plyr:not(.plyr--fullscreen-active) .plyr__video-wrapper{height:100%;padding-bottom:0;aspect-ratio:16/9!important;min-width:0}
#movie-player .vf-movie-player-frame .plyr:not(.plyr--fullscreen-active) iframe,#movie-player .vf-movie-player-frame>div:not(.plyr)>iframe{width:100%;height:100%;max-width:100%}
#movie-player .vf-movie-player-frame>video,#movie-player .vf-movie-player-frame .plyr:not(.plyr--fullscreen-active) video{width:100%;height:100%;object-fit:contain}
@media(max-width:767px){#movie-player .vf-movie-player-frame{--vf-movie-available-height:calc(100svh - 230px)}}
/* Plyr's default controls respond to window width, not the smaller fitted player. */
#movie-player .vf-movie-player-frame{container-type:inline-size;container-name:vf-movie-player}
@container vf-movie-player (max-width:420px){
#movie-player .plyr:not(.plyr--fullscreen-active) .plyr__volume{min-width:0;width:auto;max-width:none}
#movie-player .plyr:not(.plyr--fullscreen-active) .plyr__volume input{display:none}
#movie-player .plyr:not(.plyr--fullscreen-active) .plyr__controls{padding-inline:8px;gap:4px}
#movie-player .plyr:not(.plyr--fullscreen-active) .plyr__controls__item{flex-shrink:0}
#movie-player .plyr:not(.plyr--fullscreen-active) .plyr__progress__container{flex:1;min-width:20px}
}
@container vf-movie-player (max-width:300px){#movie-player .plyr:not(.plyr--fullscreen-active) .plyr__time{display:none}}
