.video-carousel {
    padding: 240px 24px;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.video-carousel *,
.video-carousel *::before,
.video-carousel *::after {
    box-sizing: border-box;
}

.video-carousel .video-carousel__header {
    text-align: center;
    margin-bottom: 32px;
}

.video-carousel .video-carousel__header h2 {
    font-size: 28px;
    font-weight: 400;
    color: #1a1a1a;
    margin: 0;
    letter-spacing: -0.01em;
}

.video-carousel .video-carousel__item {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.video-carousel .video-carousel__video {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    background: #000;
    overflow: hidden;
}

.video-carousel .video-carousel__video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-carousel .video-carousel__video video:fullscreen {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.video-carousel .video-carousel__video video:-webkit-full-screen {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.video-carousel .video-carousel__meta {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
}

.video-carousel .video-carousel__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: #f4f4f2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
    text-decoration: none;
    transition: background-color 0.15s ease;
}

.video-carousel .video-carousel__icon:hover {
    background: #e8e8e5;
}

.video-carousel .video-carousel__icon svg {
    width: 34px;
    height: 34px;
    display: block;
}

.video-carousel .video-carousel__logo {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    overflow: hidden;
}

.video-carousel .video-carousel__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.video-carousel .video-carousel__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.video-carousel .video-carousel__title {
    font-size: 15.2px;
    font-weight: 500;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.3;
}

.video-carousel .video-carousel__subtitle {
    font-size: 13.6px;
    font-weight: 400;
    color: #777;
    margin: 0;
    line-height: 1.3;
}

.video-carousel--static .video-carousel__grid,
.video-carousel--static-messy .video-carousel__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.video-carousel--static-messy .video-carousel__grid {
    align-items: start;
}

.video-carousel--static-messy .video-carousel__item:nth-child(4n+2),
.video-carousel--static-messy .video-carousel__item:nth-child(4n) {
    transform: translateY(80px);
}

.video-carousel--carousel,
.video-carousel--coverflow {
    position: relative;
    padding-left: 40px;
    padding-right: 40px;
}

.video-carousel--carousel .swiper,
.video-carousel--coverflow .swiper {
    overflow: hidden;
    padding-bottom: 16px;
}

.video-carousel--carousel .swiper-slide {
    height: auto;
}

.video-carousel--coverflow .swiper-slide {
    width: 360px;
    height: auto;
}

.video-carousel--carousel .vc-nav,
.video-carousel--coverflow .vc-nav {
    --icon-size: 16px;

    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    color: #1a1a1a;
    border-radius: 9999px;
    transition: opacity 0.2s ease;
    z-index: 2;
}

.video-carousel--carousel .vc-nav-prev,
.video-carousel--coverflow .vc-nav-prev {
    left: 0px;
}

.video-carousel--carousel .vc-nav-next,
.video-carousel--coverflow .vc-nav-next {
    right: 0px;
}

.video-carousel--carousel .vc-nav__icon,
.video-carousel--coverflow .vc-nav__icon {
    width: var(--icon-size);
    height: var(--icon-size);
    stroke-width: 2;
    overflow: visible;
}

.video-carousel--carousel .vc-nav__icon--prev,
.video-carousel--coverflow .vc-nav__icon--prev {
    transform: rotate(180deg);
}

.video-carousel--carousel .vc-nav__line,
.video-carousel--coverflow .vc-nav__line {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.video-carousel--carousel .vc-nav:hover .vc-nav__line,
.video-carousel--coverflow .vc-nav:hover .vc-nav__line {
    opacity: 1;
}

.video-carousel--carousel .vc-nav__arrow,
.video-carousel--coverflow .vc-nav__arrow {
    transition: transform 0.2s ease;
}

.video-carousel--carousel .vc-nav:hover .vc-nav__arrow,
.video-carousel--coverflow .vc-nav:hover .vc-nav__arrow {
    transform: translateX(2px);
}

.video-carousel--carousel .swiper-button-disabled,
.video-carousel--coverflow .swiper-button-disabled {
    opacity: 0.3;
    pointer-events: none;
}

@media (max-width: 900px) {
    .video-carousel--static .video-carousel__grid,
    .video-carousel--static-messy .video-carousel__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .video-carousel--static-messy .video-carousel__item:nth-child(4n+2),
    .video-carousel--static-messy .video-carousel__item:nth-child(4n) {
        transform: none;
    }

    .video-carousel--static-messy .video-carousel__item:nth-child(2n) {
        transform: translateY(32px);
    }

    .video-carousel--carousel,
    .video-carousel--coverflow {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        padding-left: 0;
        padding-right: 0;
    }

    .video-carousel--carousel .swiper,
    .video-carousel--coverflow .swiper {
        order: 1;
        width: 100%;
    }

    .video-carousel--carousel .vc-nav,
    .video-carousel--coverflow .vc-nav {
        order: 2;
        position: static;
        transform: none;
        display: inline-flex;
        margin-top: 20px;
    }

    .video-carousel--carousel .vc-nav-prev,
    .video-carousel--coverflow .vc-nav-prev {
        left: auto;
        margin-right: 8px;
    }

    .video-carousel--carousel .vc-nav-next,
    .video-carousel--coverflow .vc-nav-next {
        right: auto;
    }

    .video-carousel--coverflow .swiper-slide {
        width: 280px;
    }
}

@media (max-width: 540px) {
    .video-carousel {
        padding: 32px 16px;
    }

    .video-carousel .video-carousel__header h2 {
        font-size: 22.4px;
    }

    .video-carousel--static .video-carousel__grid,
    .video-carousel--static-messy .video-carousel__grid {
        grid-template-columns: 1fr;
    }

    .video-carousel--static-messy .video-carousel__item {
        transform: none;
    }

    .video-carousel--coverflow .swiper-slide {
        width: 240px;
    }
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    width: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    word-wrap: normal !important;
}