/* --- Main Container --- */
.dyn-slider-container {
    width: 100%;
    user-select: none;
    -webkit-user-select: none;
    position: relative;
}

/* --- Viewport --- */
.dyn-slider-viewport {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 16px;
}

/* --- Track --- */
.dyn-slider-track {
    display: flex;
    will-change: transform;
}

.dyn-slider-track.track-animated {
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Individual Slide --- */
.dyn-slider-slide {
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    background: #1a1a1a;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.dyn-slider-slide.slide-active {
    transform: scale(1);
    opacity: 1;
}

.dyn-slider-slide:not(.slide-active) {
    transform: scale(0.93);
    opacity: 0.55;
}

/* Clickable slide (has btn_link only, no btn_label) */
.dyn-slider-slide.slide-clickable {
    cursor: pointer;
}

/* --- Slide Media Wrapper (relative container) --- */
.dyn-slider-media {
    position: relative;
    width: 100%;
    height: 100%;
}

.dyn-slider-media img,
.dyn-slider-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.dyn-slider-media video {
    background: #000;
}

/* --- Description Overlay --- */
.dyn-slider-description {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 18px 16px;
    background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.35) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 2;
    pointer-events: none;
}

.dyn-slider-description .eyebrow {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.3;
}

.dyn-slider-description .title {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}

.dyn-slider-description .btn-label {
    display: inline-flex;
    align-items: center;
    margin-top: 4px;
    padding: 7px 18px;
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
    pointer-events: auto;
    align-self: flex-start;
}

.dyn-slider-description .btn-label:hover {
    background: #fff;
    transform: translateY(-1px);
}

/* --- Video Overlay --- */
.dyn-slider-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    cursor: pointer;
    transition: background 0.3s ease;
    background: rgba(0, 0, 0, 0.15);
}

.dyn-slider-video-overlay:hover {
    background: rgba(0, 0, 0, 0.25);
}

.dyn-slider-video-overlay.overlay-hidden .slider-play-icon {
    opacity: 0;
    transform: scale(0.8);
}

.dyn-slider-video-overlay.overlay-hidden {
    background: transparent;
}

.slider-play-icon {
    width: 54px;
    height: 54px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.dyn-slider-video-overlay:hover .slider-play-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.slider-play-icon svg {
    width: 22px;
    height: 22px;
    margin-left: 3px;
    fill: #1a1a1a;
}

/* --- Navigation Arrows --- */
.dyn-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.25s ease;
    opacity: 0;
}

.dyn-slider-container:hover .dyn-slider-arrow {
    opacity: 1;
}

.dyn-slider-arrow:hover {
    background: #fff;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
    transform: translateY(-50%) scale(1.08);
}

.dyn-slider-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.dyn-slider-arrow svg {
    width: 18px;
    height: 18px;
    fill: #1a1a1a;
}

.dyn-slider-arrow-left {
    left: 10px;
}

.dyn-slider-arrow-right {
    right: 10px;
}

/* --- Counter Badge --- */
.dyn-slider-counter {
    position: absolute;
    bottom: 12px;
    right: 12px;
    z-index: 5;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

/* --- Dot Indicators --- */
.dyn-slider-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 14px;
}

.dyn-slider-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.18);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.dyn-slider-dot.dot-active {
    background: #1a1a1a;
    width: 22px;
    border-radius: 10px;
}

/* --- Thumbnails Strip --- */
.dyn-slider-thumbnails {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    overflow-x: auto;
    padding: 4px 2px;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.dyn-slider-thumbnails::-webkit-scrollbar {
    display: none;
}

.dyn-slider-thumb {
    flex-shrink: 0;
    width: 56px;
    height: 42px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2.5px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    background: #e0e0e0;
}

.dyn-slider-thumb:hover {
    border-color: rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
}

.dyn-slider-thumb.thumb-active {
    border-color: #1a1a1a;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.dyn-slider-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slider-thumb-video-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-thumb-video-badge svg {
    width: 9px;
    height: 9px;
    margin-left: 1.5px;
    fill: #1a1a1a;
}

/* --- Swipe Feedback --- */
.dyn-slider-track.swiping {
    cursor: grabbing;
}

/* --- Empty State --- */
.dyn-slider-empty {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    background-color: #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
    font-weight: 500;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
    .dyn-slider-container {
        max-width: 100%;
    }

    .dyn-slider-arrow {
        width: 34px;
        height: 34px;
        opacity: 1;
    }

    .dyn-slider-arrow svg {
        width: 15px;
        height: 15px;
    }

    .slider-play-icon {
        width: 46px;
        height: 46px;
    }

    .slider-play-icon svg {
        width: 18px;
        height: 18px;
    }

    .dyn-slider-thumb {
        width: 50px;
        height: 38px;
    }

    .dyn-slider-description {
        padding: 16px 14px 12px;
    }

    .dyn-slider-description .title {
        font-size: 15px;
    }

    .dyn-slider-description .eyebrow {
        font-size: 10px;
    }

    .dyn-slider-description .btn-label {
        font-size: 12px;
        padding: 6px 14px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .dyn-slider-viewport {
        border-radius: 12px;
    }

    .dyn-slider-slide {
        border-radius: 10px;
    }

    .dyn-slider-arrow {
        width: 32px;
        height: 32px;
    }

    .dyn-slider-dots {
        margin-top: 10px;
    }

    .dyn-slider-thumbnails {
        gap: 6px;
        margin-top: 8px;
    }

    .dyn-slider-thumb {
        width: 46px;
        height: 34px;
        border-radius: 6px;
    }

    .dyn-slider-description .title {
        font-size: 14px;
    }

    .dyn-slider-description .btn-label {
        font-size: 11px;
        padding: 5px 12px;
    }
}