.video-carousel {
    --video-radius: 270px;
    --video-side-scale: .82;
    --video-red: #e50914;
    --video-ink: #111113;
    position: relative;
    outline: none;
}

.video-carousel:focus-visible {
    outline: 2px solid #ef6a70;
    outline-offset: 8px;
    border-radius: 1rem;
}

.video-stage {
    position: relative;
    min-height: 590px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1450px;
    perspective-origin: 50% 48%;
    isolation: isolate;
}

.video-stage::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: min(74vw, 780px);
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(112, 17, 25, .20), rgba(17, 17, 19, 0) 68%);
    pointer-events: none;
}

.video-slider {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.video-slider::-webkit-scrollbar {
    display: none;
}

.video-carousel.is-ready .video-stage {
    overflow: hidden;
    touch-action: pan-y;
}

.video-carousel.is-ready .video-slider {
    position: relative;
    width: 100%;
    height: 590px;
    display: block;
    overflow: visible;
    padding: 0;
    transform-style: preserve-3d;
    transform: translateZ(calc(-1 * var(--video-radius)));
}

.video-card {
    background: #171719;
    box-shadow: 0 28px 70px rgba(0, 0, 0, .48);
}

.facebook-video-preview {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    color: #fff;
    background: #171719;
    font: inherit;
    cursor: pointer;
}

.facebook-video-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.facebook-video-caption {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: end;
    gap: .6rem;
    padding: 1.5rem 1rem;
    background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, .88));
}

.facebook-video-play {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    padding-left: .2rem;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 50%;
    background: rgba(0, 0, 0, .65);
    font-size: 1.3rem;
}

.facebook-video-title { font-size: .9rem; font-weight: 700; line-height: 1.45; }
.facebook-video-hint { font-size: .75rem; color: #ddd; }
.facebook-video-preview:hover .facebook-video-play { background: #e50914; }
.facebook-video-preview:focus-visible { outline: 3px solid #fff; outline-offset: -5px; }

.video-carousel.is-ready .video-card {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(320px, calc(100vw - 40px)) !important;
    min-width: 0 !important;
    height: 560px !important;
    margin: 0;
    transform-origin: center center;
    backface-visibility: hidden;
    transition: transform 680ms cubic-bezier(.2, .78, .22, 1), opacity 430ms ease, border-color 300ms ease, box-shadow 300ms ease;
    will-change: transform, opacity;
    border-color: rgba(255, 255, 255, .12);
}

.video-carousel.is-ready .video-card.is-selected {
    border-color: rgba(229, 9, 20, .76);
    box-shadow: 0 30px 82px rgba(0, 0, 0, .62), 0 0 0 1px rgba(229, 9, 20, .14);
}

.video-card iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}

.video-carousel.is-ready .video-card:not(.is-selected) iframe {
    pointer-events: none;
}

.video-card-select {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    align-content: end;
    justify-items: center;
    width: 100%;
    height: 100%;
    padding: 1.25rem 1rem;
    border: 0;
    color: #fff;
    background: linear-gradient(180deg, rgba(12, 12, 14, .08) 44%, rgba(12, 12, 14, .86) 100%);
    cursor: pointer;
    font-family: inherit;
    font-size: .78rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .12em;
    text-transform: uppercase;
    opacity: .88;
    transition: opacity 180ms ease, background-color 180ms ease;
}

.video-card-select::after {
    content: "Select to watch";
    padding: .58rem .82rem;
    border: 1px solid rgba(255, 255, 255, .34);
    border-radius: 999px;
    background: rgba(17, 17, 19, .76);
    backdrop-filter: blur(8px);
}

.video-card-select:hover,
.video-card-select:focus-visible {
    opacity: 1;
    outline: 2px solid #fff;
    outline-offset: -5px;
}

.video-controls {
    display: none;
    position: relative;
    z-index: 12;
    align-items: center;
    justify-content: center;
    gap: 1.4rem;
    margin-top: .25rem;
}

.video-arrow {
    display: inline-grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 50%;
    color: #f7f2f1;
    background: #242326;
    cursor: pointer;
    transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.video-arrow:hover {
    transform: scale(1.06);
    border-color: var(--video-red);
    background: #331719;
}

.video-arrow:focus-visible,
.video-card-select:focus-visible {
    outline: 2px solid #f59a9e;
    outline-offset: 3px;
}

.video-status {
    max-width: min(62vw, 480px);
    min-width: 9rem;
    margin: 0;
    overflow: hidden;
    color: #cbc5c5;
    font-size: .76rem;
    line-height: 1.5;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.video-selectors {
    display: none;
}

.video-carousel.is-ready .video-selectors {
    display: flex;
    justify-content: center;
    gap: .62rem;
    margin-top: 1.2rem;
}

.video-carousel.is-ready .video-controls {
    display: flex;
}

.video-selector {
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
}

.video-selector::after {
    content: "";
    width: .48rem;
    height: .48rem;
    border-radius: 999px;
    background: #686265;
    transition: width 250ms ease, background-color 250ms ease;
}

.video-selector[aria-current="true"]::after {
    width: 1.35rem;
    background: var(--video-red);
}

.video-selector:focus-visible {
    outline: 2px solid #f59a9e;
    outline-offset: 4px;
}

@media (max-width: 700px) {
    .video-carousel {
        --video-radius: 188px;
        --video-side-scale: .62;
    }

    .video-stage,
    .video-carousel.is-ready .video-slider {
        min-height: 0;
        height: min(560px, calc((100vw - 40px) * 1.75));
    }

    .video-carousel.is-ready .video-card {
        height: 100% !important;
        border-radius: .85rem;
    }

    .video-stage::before {
        width: 100vw;
        height: 88%;
    }

    .video-controls {
        gap: 1rem;
        margin-top: 1rem;
    }

    .video-arrow {
        width: 2.8rem;
        height: 2.8rem;
    }

    .video-status {
        max-width: calc(100vw - 150px);
        font-size: .7rem;
    }
}

@media (max-width: 380px) {
    .video-carousel {
        --video-radius: 168px;
        --video-side-scale: .56;
    }

    .video-carousel.is-ready .video-card {
        width: calc(100vw - 32px) !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .video-carousel.is-ready .video-card,
    .video-arrow,
    .video-selector,
    .video-selector::after,
    .video-card-select {
        transition-duration: .01ms !important;
    }
}
