/* Live Streaming pages (family "ls"): the ONE stylesheet of every streaming page, loaded from /Live_Streaming/stream.css.
   It only adds what the unchanged Standard_Text_Page template does not have; every rule is scoped to .ls so nothing else on a page changes,
   and every colour comes from the template's own variables so all themes work. Change the look HERE, then run `ls.py build` and `ls.py check`. */

/* click-to-play YouTube picture inside the template's 16:9 .video-wrapper (nothing is requested from YouTube before the click) */
.ls .yt-facade {
    position: absolute;
    inset: 0;
    display: block;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}
.ls .yt-facade img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .9;
}
.ls .yt-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 68px;
    height: 48px;
    margin: -24px 0 0 -34px;
    border-radius: 12px;
    background: rgba(200, 0, 0, .93);
}
.ls .yt-play::after {
    content: "";
    position: absolute;
    left: 27px;
    top: 14px;
    border: 10px solid transparent;
    border-left: 18px solid #fff;
    border-right: 0;
}
.ls .yt-facade:hover .yt-play,
.ls .yt-facade:focus .yt-play { background: #f00; }
.ls .yt-facade:focus-visible { outline: 3px solid #fc0; outline-offset: -3px; }

/* the Download list: one line of circled files per video, e.g.  [High MP4 795 MB] [Med MP4 463 MB] [Low MP4 239 MB] */
.ls .files {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    margin: .5rem 0 1.25rem;
}
.ls .file-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem .5rem;
    margin: 0;
    text-align: left;
}
.ls .file-title { margin-right: .25rem; }
.ls .tag.file {
    margin: 0;
    padding: .12em .75em;
    line-height: 1.4;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
}

/* the small button that opens the player with the owner's own MP4 ("Play from our server"; shown when a YouTube video stands above it).
   It is as wide as its words, centred, never a whole line (Robert 2026-11-20). Opened, it becomes a full-width box around the player. */
.ls details.own-player {
    width: fit-content;
    max-width: 100%;
    margin: .6rem auto 1.25rem;
    padding: .1rem .95rem;
    border-radius: 999px;
}
.ls details.own-player summary {
    padding: .3rem 0;
    font-size: .95rem;
}
.ls details.own-player summary::before { margin-right: .4em; }
.ls details.own-player[open] {
    width: 100%;
    padding: .35rem 1rem 1rem;
    border-radius: var(--border-radius);
}
/* with no YouTube video the own player IS the page's video: no button, no box around it */
.ls details.own-player.main {
    width: 100%;
    margin: 0 0 1.25rem;
    padding: 0;
    background: none;
    border: 0;
}
.ls details.own-player.main > summary { display: none; }
.ls details.own-player.main > .video-wrapper { margin-top: 0; }
