
.video-dani-slider {
    overflow-x: hidden; /* boxed layout safe */
}

/* Allow vertical pop-out */
.video-dani-slider,
.video-dani-slider .swiper,
.video-dani-slider .swiper-wrapper {
    overflow: visible;
}


.video-slide {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.video-preview {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    z-index: 1;
}

.video-thumbnail {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
}

.video-slide.playing .video-thumbnail {
    opacity: 0;
}

.video-link {
    position: absolute;
    inset: 0;
    z-index: 3;
}

.play-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #fff;
}

.video-title {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 12px;
    background: rgba(0,0,0,0.7);
    color: #fff;
}

.swiper-button-next,
.swiper-button-prev {
    background: rgba(0,0,0,0.6);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #fff;
}

/* Slide pop-out on hover */
.video-dani-slider .swiper-slide {
    transition: transform 0.35s ease, z-index 0.35s ease;
    z-index: 1;
}

.video-dani-slider .swiper-slide:hover {
    transform: scale(1.4);
    z-index: 10;
}

