/* Mockup only: keep the existing frame, controls, video ratio and styling. */
@media(min-width:1001px){
 html[data-player-size=large] body:not(.mobile-playing) #modal .window{
  width:min(1280px,92vw,calc((100dvh - 200px)*16/9));
  max-height:calc(100dvh - 48px);
 }
}
/* Center the transport group within the entire player window. */
body:not(.mobile-playing) #modal .videoarea{position:relative}
body:not(.mobile-playing) #modal .desktop-video-toggle{position:absolute;inset:0;z-index:2;width:100%;height:100%;padding:0;border:0;background:transparent;cursor:pointer}
body:not(.mobile-playing) #modal .desktop-video-toggle:focus-visible{outline:2px solid #7aa7da;outline-offset:-3px}
@media(min-width:1001px){
 html[data-player-size=large] body:not(.mobile-playing) #modal .desktop-player-controls,
 html[data-player-size=large] body:not(.mobile-playing) #modal .desktop-player-controls .left.transport{position:static}
 html[data-player-size=large] body:not(.mobile-playing) #modal .desktop-player-controls .transport-buttons{position:absolute;left:50%;bottom:10px;transform:translateX(-50%)}
 html[data-player-size=large] body:not(.mobile-playing) #modal .desktop-player-controls .volume-control{margin-left:auto}
}

/* Crop only measured source padding; keep the existing player chrome. */
#videoarea iframe[data-content-frame]{position:absolute;max-width:none;max-height:none}
body:not(.mobile-playing) #modal .window[data-content-aspect]:not(:fullscreen){width:min(1280px,92vw,calc(var(--playback-video-limit,calc(100dvh - 280px))*var(--playback-aspect)))}
body:not(.mobile-playing) #modal .window[data-content-aspect]:not(:fullscreen) .videoarea{aspect-ratio:var(--playback-aspect);overflow:hidden}
