.yt-carousel {
    --gap: 20px;
    --side-peek: 28%;
    --slide-width: calc(100% - (2 * var(--side-peek)));
    --radius: 16px;
    --btn-size: 44px;

    position: relative;
    width: 100%;
    margin-top: 32px;
    user-select: none;
}

.yt-carousel__viewport {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.yt-carousel__track {
    display: flex;
    gap: var(--gap);
    align-items: stretch;
    will-change: transform;
    transition: transform 0.45s ease;
}

.yt-slide {
    flex: 0 0 var(--slide-width);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.yt-slide__thumb-wrap {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--radius);
    background: #ddd;
}

.yt-slide__thumb {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.yt-slide:hover .yt-slide__thumb {
    transform: scale(1.04);
}

.yt-slide__play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, 0.58);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    pointer-events: none;
}

.yt-slide__title {
    margin-top: 12px;
    text-align: center;
    font-size: 16px;
    line-height: 1.35;
}

.yt-carousel__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-78%);
    z-index: 3;
    width: var(--btn-size);
    height: var(--btn-size);
    border: 0;
    border-radius: 999px;
    display: grid;
    place-items: center;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    transition: background 0.2s ease;
}

.yt-carousel__btn:hover {
    background: rgba(0, 0, 0, 0.85);
}

.yt-carousel__btn--prev {
    left: 10px;
}

.yt-carousel__btn--next {
    right: 10px;
}

/* ===== dots ===== */
.yt-carousel__dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.yt-carousel__dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 50%;
    padding: 0;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    padding: 0;
}

.yt-carousel__dot.is-active {
    background: rgba(255, 255, 255, 0.9);
}

@media (max-width: 900px) {
    .yt-carousel {
        --gap: 16px;
        --side-peek: 16%;
    }
}

@media (max-width: 640px) {
    .yt-carousel {
        --gap: 12px;
        --side-peek: 10%;
        --btn-size: 40px;
    }

    .yt-slide__title {
        font-size: 15px;
    }

    .yt-slide__play {
        width: 56px;
        height: 56px;
        font-size: 24px;
    }
}


    