/* CSS cho slide video frontend */
.slide-item.video-slide {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.video-player {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.video-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    background: transparent;
}

/* Swiper customization for video */
.swiper-slide .video-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Video controls styling */
.video-player::-webkit-media-controls-panel {
    background-color: rgba(0, 0, 0, 0.5);
}

.video-player::-webkit-media-controls-play-button,
.video-player::-webkit-media-controls-pause-button {
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
}

/* Responsive video */
@media (max-width: 768px) {
    .video-player {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .video-player {
        height: 200px;
    }
}

/* Video thumbnail overlay */
.video-slide::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    z-index: 5;
    pointer-events: none;
}

.video-slide::after {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 24px;
    z-index: 6;
    pointer-events: none;
}

/* Hide overlay when video is playing */
.video-player[poster] + .video-link-overlay + .video-slide::before,
.video-player[poster] + .video-link-overlay + .video-slide::after {
    display: none;
}
