/* Full screen made by sh-fullscreen.js where the phone has none (iPhone): the player fills the window,
   with the same rules as the browser's full screen (:fullscreen) on the other phones. */
html.sh-fs-on,
html.sh-fs-on body { overflow: hidden !important; }

.sh-fs {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483000 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-width: none !important;
    max-height: none !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    margin: 0 !important;
    border-radius: 0 !important;
    transform: none !important;
    background: #000;
}

/* Live TV and the radio screen */
html.shasha .sh-live__screen.sh-fs::before,
html.shasha .sh-live__screen.sh-fs::after { display: none; }
html.shasha .sh-live__screen.sh-fs .sh-live__video { object-fit: contain; }
html.shasha .sh-live__screen.sh-fs .sh-live__frame { inset: 0; height: 100%; }
html.shasha .sh-live__screen.sh-fs .sh-live__fsbar { display: flex; }
html.shasha .sh-live__screen.sh-fs:is(.is-awake, .is-paused) .sh-live__fsbar { opacity: 1; }
html.shasha .sh-ascreen .sh-live__screen.sh-fs::after {
    display: block;
    background: linear-gradient(to top, rgba(0, 0, 0, .7) 0, rgba(0, 0, 0, 0) 40%);
}

/* Match: the player and the chat side by side; the chat button still hides the column */
html.shasha .sh-watch.sh-fs {
    display: grid;
    grid-template-columns: minmax(0, 1fr) min(340px, 38vw);
    padding: 0;
}
html.shasha .sh-watch.sh-fs .sh-event__stage { height: 100%; max-height: none; aspect-ratio: auto; min-height: 0; }
html.shasha .sh-watch.sh-fs .sh-event-chat { display: block; height: 100%; }
html.shasha .sh-watch.sh-fs .sh-event-chat__box { height: 100%; }
html.shasha .sh-watch.sh-fs .sh-event-chat__body { flex: 1; min-height: 0; height: auto; }
html.shasha .sh-watch.sh-fs .sh-watch__pill { display: inline-flex; top: 16px; opacity: 1; }
html.shasha .sh-watch.is-chat-hidden.sh-fs { grid-template-columns: minmax(0, 1fr); }
html.shasha .sh-watch.is-chat-hidden.sh-fs .sh-event-chat { display: none; }

/* A Vidstack player put in full screen by its own button */
html.shasha media-player.sh-fs,
html.shasha .sh-vplayer.sh-fs media-player { width: 100% !important; height: 100% !important; }

/* Match on a phone held upright: the player alone fills the screen, as on the live TV page; the chat comes back sideways */
@media (orientation: portrait) {
    html.shasha .sh-watch:is(.sh-fs, :fullscreen) { grid-template-columns: minmax(0, 1fr); }
    html.shasha .sh-watch:is(.sh-fs, :fullscreen) .sh-event-chat,
    html.shasha .sh-watch:is(.sh-fs, :fullscreen) .sh-watch__pill { display: none; }
}
html.shasha .sh-event__stage.sh-fs .sh-event__player { inset: 0; }

/* Full-screen button of a linked match player (iframe) */
html.shasha .sh-event__full {
    position: absolute;
    top: 12px;
    inset-inline-end: 12px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}
html.shasha .sh-event__full:hover, html.shasha .sh-event__full:focus-visible { background: rgba(0, 0, 0, .8); }
