.video-carousel-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 50px;
}

.video-carousel-container {
    overflow: hidden;
    width: 100%;
}

.video-carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}

.video-slide {
    flex: 0 0 25%;
    padding: 0 10px;
    box-sizing: border-box;
}

.video-carousel-wrapper[data-slides='3'] .video-slide {
    flex: 0 0 33.333%;
}

.video-carousel-wrapper[data-slides='2'] .video-slide {
    flex: 0 0 50%;
}

.video-carousel-wrapper[data-slides='5'] .video-slide {
    flex: 0 0 20%;
}

.video-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    width: 100%;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 133.33%;
    overflow: hidden;
}

.video-thumbnail,
.video-thumbnail-canvas,
.video-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.video-thumbnail-canvas {
    z-index: 1;
}

.video-player {
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 0;
}

.video-player.playing {
    opacity: 1;
    z-index: 4;
}

.video-thumbnail {
    z-index: 2;
    transition: opacity 0.3s;
}

.video-thumbnail.hidden {
    opacity: 0;
    pointer-events: none;
}

.video-thumbnail.custom-thumb {
    z-index: 2;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 3;
    transition: opacity 0.3s;
}

.video-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.play-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform 0.2s;
    outline: none;
}

.play-button:hover {
    transform: scale(1.1);
}

.play-button:focus {
    outline: 2px solid rgba(255,255,255,0.5);
    border-radius: 50%;
}

.video-caption {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    text-align: center;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgb(255 239 31);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-nav:hover {
    background: rgb(255 239 31);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.carousel-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-prev {
    left: 5px;
}

.carousel-next {
    right: 5px;
}

/* Tablet - 3 videos */
@media (max-width: 992px) {
    .video-slide {
        flex: 0 0 33.333% !important;
    }
    
    .video-carousel-wrapper {
        padding: 0 45px;
    }
}

/* Mobile - 2 videos */
@media (max-width: 768px) {
    .video-slide {
        flex: 0 0 50% !important;
    }
    
    .video-carousel-wrapper {
        padding: 0 40px;
    }
    
    .carousel-nav {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
    
    .play-button svg {
        width: 50px;
        height: 50px;
    }
}

/* Small Mobile - 1 video */
@media (max-width: 480px) {
    .video-slide {
        flex: 0 0 100% !important;
    }
    
    .video-carousel-wrapper {
        padding: 0 35px;
    }
    
    .video-slide {
        padding: 0 5px;
    }
}