/* VUMOO_V102616A_ORDER_OVERLAY
   Consistent player sequence: heading, video, controls, existing ad, details,
   related titles and independently configured bottom ads.
   Native iframe/fullscreen behavior and all ad codes remain unchanged. */
#player-dialog[open]:not(.vumoo-landscape-theatre) {
  height:auto !important;
  max-height:calc(100dvh - 18px) !important;
  overflow-x:hidden !important;
  overflow-y:auto !important;
  overscroll-behavior:contain;
}
#player-dialog[open]:not(.vumoo-landscape-theatre) > .player-heading {order:0 !important;}
#player-dialog[open]:not(.vumoo-landscape-theatre) > #player-frame-wrap {
  order:1 !important;
  width:100% !important;
  height:auto !important;
  min-height:0 !important;
  flex:0 0 auto !important;
  aspect-ratio:16 / 9 !important;
}
#player-dialog[open]:not(.vumoo-landscape-theatre) > .player-toolbar {order:2 !important;flex:0 0 auto !important;}
#player-dialog[open]:not(.vumoo-landscape-theatre) > #player-episode-controls {order:3 !important;flex:0 0 auto !important;}
#player-dialog[open]:not(.vumoo-landscape-theatre) > section.vumoo-ad-slot[data-ad-slot="player_after_controls"] {
  order:4 !important;
  flex:0 0 auto !important;
}
#player-dialog[open]:not(.vumoo-landscape-theatre) > #vumoo-home-player-details-v10-26-16 {
  order:5 !important;
  flex:0 0 auto !important;
  width:100% !important;
  min-width:0 !important;
}
/* Allow the advertisement creative to lay out while it is being checked.
   Visibility-hidden retains geometry; display:none does not. */
.vumoo-player-overlay-ad.vumoo-overlay-measuring:not([hidden]) {
  visibility:hidden !important;
  opacity:0 !important;
  pointer-events:none !important;
}
/* Never change the existing native fullscreen geometry. */
#player-frame-wrap:fullscreen,
#player-frame-wrap:-webkit-full-screen {
  width:100vw !important;
  height:100vh !important;
  aspect-ratio:auto !important;
  flex:1 1 auto !important;
  min-height:0 !important;
}
