/* Autoplay videos (Nov 15): the live YouTube player and its Sound button. Loaded after styles.css. */
.yt-live { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: #000; }
.yt-live .yt__frame { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; }
.yt-sound { position: absolute; right: .75rem; top: .75rem; z-index: 2; display: inline-flex; align-items: center; gap: .4rem; min-height: 2.5rem; padding: .35rem .9rem .35rem .7rem; border: 0; border-radius: 999px; background: rgb(15 18 23 / .78); color: #fff; font: 600 .88rem/1 Archivo, system-ui, sans-serif; cursor: pointer; backdrop-filter: blur(6px); transition: background .2s; }
.yt-sound:hover, .yt-sound[aria-pressed="true"] { background: var(--blue); }
.yt-sound svg { width: 1.15rem; height: 1.15rem; }
.feat__media > .yt-live { position: relative; height: auto; }
.prow__media > .yt-live { height: 100%; aspect-ratio: auto; }
.hero__video:has(.yt-live) figcaption { display: none; }
/* hero cover: Serge's sharp portrait, framed on his face, no letterbox crop */
.yt--poster img { opacity: 1 !important; transform: none !important; object-position: 50% 28%; }
.yt--poster .yt__play { inset: auto; right: 1rem; bottom: 1rem; margin: 0; width: 4rem; height: 4rem; }
/* hide YouTube's own interface: the frame is taller than the box, so its title bar (top) and logo strip (bottom)
   sit outside the visible area; the video itself stays width-fitted and centred, so nothing of it is lost */
.yt-live .yt__frame { top: -64px; height: calc(100% + 128px); pointer-events: none; }
.yt-cover { position: absolute; inset: 0; z-index: 1; border: 0; padding: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.yt-cover__icon { width: 4.5rem; height: 4.5rem; border-radius: 50%; background: rgb(255 255 255 / .94); color: var(--blue-d); display: grid; place-items: center; box-shadow: var(--shadow); opacity: 0; transform: scale(.9); transition: opacity .25s, transform .25s; }
.yt-cover__icon svg { width: 1.8rem; height: 1.8rem; margin-left: 3px; }
.yt-live.is-paused .yt-cover__icon { opacity: 1; transform: none; }
.yt-cover:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; }
/* the thumbnail sits over the player until it is really playing; if a phone refuses to autoplay, YouTube's own
   play button comes back (is-native) so the visitor can always start it */
.yt-live__poster { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; transform: scale(1.34); pointer-events: none; transition: opacity .5s; }
.yt-live__poster.is-own { transform: none; object-position: 50% 28%; }
.yt-live.is-on .yt-live__poster { opacity: 0; }
.yt-live .yt-cover { z-index: 2; }
.yt-live .yt-sound { z-index: 3; }
.yt-live.is-native .yt-live__poster, .yt-live.is-native .yt-cover, .yt-live.is-native .yt-sound { display: none; }
.yt-live.is-native .yt__frame { top: 0; height: 100%; }
/* paused (by hand or ended): our cover picture returns over YouTube's paused screen and its buttons */
.yt-live.is-paused .yt-live__poster { opacity: 1; }
