/* ==========================================================================
   S2D26 — fullscreen fix for the series / episode player
   --------------------------------------------------------------------------
   The splash-screen option prints `#content-embed{display:none}` into the page
   head. Only the MOVIE path ever reverses it:

     movie.css  -> .s2d26-player-frame > #content-embed { display: block !important; ... }
                   plus a visible-when-playing state
     movie.js   -> content.style.setProperty('display', 'block', 'important')

   The TV path does neither: tv.css never mentions #content-embed at all, and
   tv.js never forces the inline style. So on series and episode pages the
   element holding the player iframe stays display:none, and Chrome refuses
   requestFullscreen() for an element inside a display:none subtree. That is
   precisely the player's own "Fullscreen Not Supported" toast - films are
   unaffected, and the PWA is unaffected because the splash style does not
   apply there.

   These rules give the TV page exactly what the movie page already had. They
   are scoped to the s2d26 body classes, so nothing else on the site can match
   them, and they only ever turn display ON - they cannot hide a player.

   The enqueue is in s2d26/account-cabinet.php.
   ========================================================================== */

/* Playing: the container must be rendered, or fullscreen is impossible. */
body.s2d26-tv-page .s2d26-player-stage.is-playing #content-embed,
body.s2d26-episode-page .s2d26-player-stage.is-playing #content-embed,
body.s2d26-tv-page .s2d26-player-frame.is-playing > #content-embed,
body.s2d26-episode-page .s2d26-player-frame.is-playing > #content-embed,
body.s2d26-tv-page.s2d26-player-is-open .s2d26-player-frame > #content-embed,
body.s2d26-episode-page.s2d26-player-is-open .s2d26-player-frame > #content-embed {
  display: block !important;
}

/* The iframe inside it likewise has to be rendered. */
body.s2d26-tv-page .s2d26-player-frame > #content-embed > iframe,
body.s2d26-episode-page .s2d26-player-frame > #content-embed > iframe {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
}
