/* shared bits for the video prototypes */
/* YouTube's own overlays (title + channel at the start, logo, "watch on YouTube") live at the top and bottom
   edges of its iframe. The iframe is made 40% taller than the 16:9 picture and the extra is cropped away:
   YouTube letterboxes the video in the middle and its overlays fall outside what can be seen. */
.vid__yt { position: absolute; left: 0; right: 0; top: 50%; translate: 0 -50%; aspect-ratio: 16 / 9; max-height: 100%; margin: 0 auto; overflow: hidden; }
.vid__yt iframe { position: absolute; left: 0; top: -20%; width: 100%; height: 140%; border: 0; pointer-events: none; }
.vid__poster { position: absolute; inset: 0; background: #000 center / cover no-repeat; transition: opacity .6s ease; }
.vid__poster.gone { opacity: 0; pointer-events: none; }
.vid__catch { position: absolute; inset: 0; cursor: pointer; }
.vid__bigplay { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 78px; height: 78px; border-radius: 50%; border: 1px solid rgba(255,255,255,.8); display: grid; place-items: center; color: #fff; font-size: 16px; pointer-events: none; transition: transform .5s cubic-bezier(.22,1,.36,1), opacity .4s; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); background: rgba(0,0,0,.15); }
.vid__catch:hover + .vid__bigplay, .vid__catch:hover ~ .vid__bigplay { transform: scale(1.08); }
.playing .vid__bigplay { opacity: 0; }
.vid__bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; align-items: center; gap: 14px; padding: 14px 18px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.55)); opacity: 0; transition: opacity .4s; }
.vid:hover .vid__bar, .vid:not(.playing).started .vid__bar { opacity: 1; }
.vid__bar button { border: 0; background: none; color: inherit; cursor: pointer; font: 400 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; padding: 4px 2px; }
.vid__line { flex: 1; height: 14px; position: relative; cursor: pointer; }
.vid__line::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(255,255,255,.35); }
.vid__line i { position: absolute; left: 0; top: 50%; height: 1px; translate: 0 -.5px; width: calc(var(--p, 0) * 100%); background: #fff; }
.vid__time { font: 400 11px/1 var(--sans); letter-spacing: .1em; font-variant-numeric: tabular-nums; opacity: .85; }
.vid:fullscreen { background: #000; }
