
.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;
}


.video-category-badge {
    position: absolute;
    top: 14px;
    right: 14px;

    z-index: 5;

    background: #58d26a;
    color: #fff;

    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;

    padding: 8px 16px;
    border-radius: 30px;

    line-height: 1;
}

/* v1.4 smoother, editorial motion */
.video-dani-slider .swiper-wrapper{transition-timing-function:cubic-bezier(.22,.61,.36,1)!important;}
.video-title{font-family:Georgia,'Times New Roman',serif;letter-spacing:-.01em;}


/* v1.4.1: touch devices must not inherit desktop hover pop-out/zoom. */
@media (hover:none), (pointer:coarse), (max-width:767px) {
  .video-dani-slider .swiper-slide:hover,
  .video-dani-slider .swiper-slide:active {
    transform:none !important;
    z-index:1 !important;
  }
  .video-dani-slider .video-preview,
  .video-dani-slider .video-thumbnail {
    filter:none !important;
  }
}
\n\n/* v1.4.2: mobile containment + natural free-scroll momentum. */
@media (max-width: 767px), (pointer: coarse) {
  .video-dani-slider {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box;
    touch-action: pan-y;
  }
  .video-dani-slider .swiper-wrapper {
    max-width: 100%;
  }
  .video-dani-slider .swiper-slide {
    min-width: 0;
  }
}

/* v1.4.3: proportional cards, mobile badge cleanup and hard mobile containment. */
.video-dani-slider .video-slide { width:100%; height:auto; aspect-ratio:16 / 9; }
@media (max-width: 767px), (hover:none), (pointer:coarse) {
  .video-dani-slider .video-category-badge { display:none !important; }
  .video-dani-slider,
  .video-dani-slider.swiper { overflow:hidden !important; contain:layout paint; }
  .video-dani-slider .swiper-wrapper { overflow:visible !important; max-width:none !important; }
  .video-dani-slider .swiper-slide { overflow:hidden; box-sizing:border-box; }
  .video-dani-slider .video-slide { transform:none !important; }
}

/* v1.4.4: category badges are desktop-only. */
@media (max-width: 1024px), (hover: none), (pointer: coarse) {
  .video-dani-slider .video-category-badge,
  .video-category-badge,
  .vds-directory-badge,
  .vds-directory-media > span {
    display: none !important;
    visibility: hidden !important;
  }
}
