@charset "UTF-8";@keyframes spin{ to{transform:translate(-50%,-50%) rotate(360deg);}}.video-container{ position:relative; text-align:center; margin:var(--half-gutter,2.5rem) auto; --svg-btn-transcript:url('data:image/svg+xml,\ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">\ <path d="M15.2,3.11c1.35-.41,2.78.35,3.2,1.7,0,.01,0,.03.01.04.15.52.15,1.06-.02,1.58-.24.77-.83,1.37-1.6,1.63-1.35.41-2.79-.34-3.2-1.69,0-.02,0-.03-.01-.05-.16-.52-.15-1.08.02-1.6.24-.76.84-1.36,1.6-1.61ZM27.18,12.08h-7.03c-.18,0-.32.15-.32.33v16.27c0,.18-.14.32-.32.33h-1.92c-.18,0-.32-.15-.32-.33v-7.16c0-.18-.14-.32-.32-.33h-1.92c-.18,0-.32.15-.32.33v7.16c0,.18-.14.32-.32.33h-1.92c-.18,0-.32-.15-.32-.33V12.41c0-.18-.14-.32-.32-.33h-7.03c-.18,0-.32-.15-.32-.33v-1.95c0-.18.14-.32.32-.33h22.36c.18,0,.32.15.32.33v1.95c0,.18-.14.32-.32.33h0Z"/>\ </svg>'); --svg-btn-tracks:url('data:image/svg+xml,\ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">\ <path d="M30,19c0,1.38-1.12,2.5-2.5,2.5s-2.5-1.12-2.5-2.5,1.12-2.5,2.5-2.5,2.5,1.12,2.5,2.5ZM4.5,10.5c-1.38,0-2.5,1.12-2.5,2.5s1.12,2.5,2.5,2.5,2.5-1.12,2.5-2.5-1.12-2.5-2.5-2.5ZM30,13h0c0-1.38-1.12-2.5-2.5-2.5H11.5c-1.38,0-2.5,1.12-2.5,2.5h0c0,1.38,1.12,2.5,2.5,2.5h16c1.38,0,2.5-1.12,2.5-2.5ZM23,19h0c0-1.38-1.12-2.5-2.5-2.5H4.5c-1.38,0-2.5,1.12-2.5,2.5h0c0,1.38,1.12,2.5,2.5,2.5h16c1.38,0,2.5-1.12,2.5-2.5Z"/>\ </svg>'); --svg-btn-play:url('data:image/svg+xml,\ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">\ <path d="M27.39,12.03L10.75,1.61c-2.79-1.74-6.25.46-6.25,3.97v20.84c0,3.51,3.47,5.71,6.25,3.97l16.64-10.41c2.81-1.76,2.81-6.19,0-7.95"/>\ </svg>'); --svg-btn-pause:url('data:image/svg+xml,\ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">\ <path d="M9.33,1c-1.84,0-3.33,1.68-3.33,3.75v22.5c0,2.07,1.49,3.75,3.33,3.75s3.33-1.68,3.33-3.75V4.75c0-2.07-1.49-3.75-3.33-3.75M26,4.75v22.5c0,2.07-1.49,3.75-3.33,3.75s-3.33-1.68-3.33-3.75V4.75c0-2.07,1.49-3.75,3.33-3.75s3.33,1.68,3.33,3.75"/>\ </svg>'); --svg-btn-sound-on:url('data:image/svg+xml,\ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">\ <path d="M23.69,28.5c-.65,0-1.29-.18-1.85-.53l-8.06-5.06c-.08-.05-.18-.08-.28-.08h-5.19c-1.86,0-3.37-1.44-3.37-3.2v-7.25c0-1.77,1.51-3.2,3.37-3.2h5.19c.1,0,.2-.03.28-.08l8.06-5.07c1.04-.66,2.37-.71,3.47-.13,1.08.56,1.75,1.64,1.75,2.81v18.6c0,1.17-.67,2.24-1.75,2.81-.51.26-1.06.4-1.62.4ZM8.31,11.95c-.27,0-.48.19-.48.42v7.25c0,.23.22.42.48.42h5.19c.66,0,1.3.18,1.85.53l8.07,5.07c.23.15.44.06.52.02.11-.06.24-.16.24-.36V6.7c0-.2-.13-.31-.24-.36-.08-.04-.29-.12-.52.02l-8.06,5.07c-.55.35-1.19.53-1.85.53h-5.19Z"/>\ </svg>'); --svg-btn-sound-off:url('data:image/svg+xml,\ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">\ <path d="M30.06,27.69l-3-3V6.7c0-1.17-.67-2.24-1.75-2.81-1.1-.57-2.43-.52-3.47.13l-8.06,5.07c-.08.05-.18.08-.28.08h-1.95L4.31,1.94c-.59-.59-1.53-.59-2.12,0l-.25.25c-.59.59-.59,1.53,0,2.12l5.1,5.1c-1.23.48-2.1,1.62-2.1,2.96v7.25c0,1.77,1.51,3.2,3.37,3.2h5.19c.1,0,.2.03.28.08l8.06,5.06c.56.35,1.21.53,1.85.53.56,0,1.11-.13,1.62-.4.09-.05.18-.1.26-.16l2.12,2.12c.59.59,1.53.59,2.12,0l.25-.25c.59-.59.59-1.53,0-2.12ZM15.35,11.42l8.06-5.07c.23-.14.44-.06.52-.02.11.06.24.16.24.36v15.1l-9.93-9.93c.39-.08.77-.23,1.11-.44ZM15.35,20.58c-.55-.35-1.19-.53-1.85-.53h-5.19c-.27,0-.48-.19-.48-.42v-7.25c0-.23.22-.42.48-.42h1.27l13.44,13.44-7.68-4.82Z"/>\ </svg>'); --svg-btn-fullscreen:url('data:image/svg+xml,\ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">\ <path d="M29.28571,2.5H9.35714A2.23894,2.23894,0,0,0,7.14286,4.75V20.5a2.23894,2.23894,0,0,0,2.21428,2.25H29.28571A2.239,2.239,0,0,0,31.5,20.5V4.75A2.239,2.239,0,0,0,29.28571,2.5Zm0,18H9.35714V4.75H29.28571ZM18.21429,27.25h-15.5V16H4.92857V13.75H2.71429A2.239,2.239,0,0,0,.5,16V27.25A2.239,2.239,0,0,0,2.71429,29.5h15.5a2.239,2.239,0,0,0,2.21428-2.25V25H18.21429Z"/>\ </svg>'); &[data-buffering="true"]{& video{ opacity:.6;}&::after{ content:''; position:absolute; inset:50% auto auto 50%; transform:translate(-50%,-50%); width:3rem; height:3rem; border:.3rem solid transparent; border-top-color:white; border-radius:50%; animation:spin .8s linear infinite;}}  &:fullscreen{display:flex;align-items:center;background-color: rgb(0,0,0);& > video{ max-width:100%; max-height:100dvh; aspect-ratio:auto;}} & > video{display:block;max-width:100%;margin:auto;background-color:Canvas;color:CanvasText;&:not([data-video-ratio]){ aspect-ratio:16 / 9;}@media(any-hover:hover) and (any-pointer:fine){ cursor:pointer;}} & > button{position:absolute;width:2rem;height:2rem;border-radius:0.3125rem;top:1rem;color: rgb(0,0,0);background-color:Canvas;box-shadow:0 0 0 1px CanvasText;opacity:.7;:root.contrast &{ opacity:1; box-shadow:0 0 0 3px CanvasText;}:root.use-keyboard &{ outline-width:3px !important; outline-color:CanvasText;}&::after{ content:""; position:absolute; inset:0; border-radius:inherit; background-color:CanvasText; mask-position:center;}&.video-play-btn{  &::after{-webkit-mask-size:50%;mask-size:50%;}}&[data-playing="true"]::after{ -webkit-mask-image:var(--svg-btn-pause); mask-image:var(--svg-btn-pause);}&[data-playing="false"]::after{ -webkit-mask-image:var(--svg-btn-play); mask-image:var(--svg-btn-play);}&.video-mute-btn{  &::after{-webkit-mask-size:65%;mask-size:65%;} &[aria-pressed="false"]::after{-webkit-mask-image:var(--svg-btn-sound-on);mask-image:var(--svg-btn-sound-on);} &[aria-pressed="true"]::after{-webkit-mask-image:var(--svg-btn-sound-off);mask-image:var(--svg-btn-sound-off);}}&.video-fullscreen-btn{ &::after{-webkit-mask-size:65%;mask-size:65%;} &[aria-pressed="false"]::after{-webkit-mask-image:var(--svg-btn-fullscreen);mask-image:var(--svg-btn-fullscreen);} &[aria-pressed="true"]::after{-webkit-mask-image:var(--svg-btn-fullscreen);mask-image:var(--svg-btn-fullscreen);}}&.video-transcript-btn::after{ -webkit-mask-size:80%; mask-size:80%; -webkit-mask-image:var(--svg-btn-transcript); mask-image:var(--svg-btn-transcript);}&.video-subtitle-btn::after{ -webkit-mask-size:80%; mask-size:80%; -webkit-mask-image:var(--svg-btn-tracks); mask-image:var(--svg-btn-tracks);}&.video-subtitle-btn[aria-pressed="true"] ~ .video-progress{ bottom:auto; top:4rem;}&.video-subtitle-btn[aria-pressed="true"] ~ .video-timer{ bottom:auto; top:4.75rem;}&:focus{ filter:invert();}@media(any-hover:hover) and (any-pointer:fine){ &:hover{filter:invert();}}} & .video-progress{--progress:0%;width:calc(100% - 2rem);position:absolute;bottom:1rem;left:1rem;margin:0;appearance:none;height:0.5rem;border-radius:0.5rem;box-shadow:0 0 0 1px rgba(0,0,0,.6);background:linear-gradient( to right, red var(--progress), rgba(255,255,255,.35) var(--progress));&::-webkit-slider-runnable-track{ appearance:none; background:transparent; height:100%;}&::-moz-range-track{ background:transparent; height:100%; border:none;}&::-webkit-slider-thumb{ appearance:none; width:0.875rem; height:0.875rem; margin-top:calc((0.5rem - 0.875rem) / 2); border-radius:50%; background-color: rgb(255,255,255); box-shadow:0 0 0 2px rgba(0,0,0,.6);}&::-moz-range-thumb{ width:0.875rem; height:0.875rem; border:none; border-radius:50%; background-color: rgb(255,255,255); box-shadow:0 0 0 2px rgba(0,0,0,.6);}:root.use-keyboard &:focus-visible{ outline:3px solid rgb(255,255,255); outline-offset:0.25rem;}@media(any-hover:hover) and (any-pointer:fine){ cursor:pointer;}} & .video-timer{position:absolute;right:1rem;bottom:2rem;color: rgb(255,255,255);background-color:rgba(0,0,0,.6);padding:0 0.25rem;border-radius:0.25rem;font-size:0.75rem;line-height:1rem;font-variant-numeric:tabular-nums;pointer-events:none;:root.contrast &{ background-color: rgb(0,0,0);}} .video-transcript{display:none;}}dialog.video-transcript-dialog{ --svg-btn-close:url('data:image/svg+xml,\ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">\ <path d="M16,1A15,15,0,1,0,31,16,15,15,0,0,0,16,1Zm5.18,22.42L16,18.3l-5.15,5.19L8.57,21.2,13.7,16,8.5,10.86l2.29-2.29L16,13.7l5.13-5.2,2.31,2.31L18.3,16l5.19,5.13Z"/>\ </svg>'); position:fixed; top:2rem; left:50%; transform:translateX(-50%); width:42.5rem; max-width:calc(100dvw - 3rem); max-height:calc(100dvh - 4rem); overflow-y:auto; background-color:Canvas; color:CanvasText; padding:0 1rem 1rem; scroll-padding-top:4rem; border-radius:0.625rem; border:solid 1px GrayText; &::backdrop{background-color:transparent;backdrop-filter:blur(4px);} & header{background-color:inherit;border-bottom:solid 1px GrayText;padding-inline:1rem;position:-webkit-sticky;position:sticky;top:0;margin-inline:-1rem;& h2{ all:unset; font-size:1.5rem; line-height:3rem;}.video-transcript-dialog--btn-close{ position:absolute; background-color:transparent; right:0; top:0; width:3rem; height:3rem; border-radius:0 0.625rem 0 0; &::after{content:"";position:absolute;inset:1px;background-color:CanvasText;-webkit-mask-image:var(--svg-btn-close);mask-image:var(--svg-btn-close);mask-size:1.5rem;mask-position:center;mask-repeat:no-repeat;} &:focus{outline:none;background-color:Canvas;filter:invert(1);}}& + div{ margin-block:1rem 0;}} & p + p{margin-block:1rem;}}:root.dialog-element{ height:100dvh; overflow:hidden; & body{overscroll-behavior:none;& >:not(.video-transcript-dialog){ opacity:.1;}}}
