/* ============================================================
   Dynamic Video Slider — [dynamic_video_slider]
   ALL styles scoped under .dvs-wrap to avoid any conflicts.
   Prefix: dvs-   Version: 3.0.0

   Phone frame mirrors .ms-phone structure from showcase section.
   No transparent video corners — frame handles clipping.
   ============================================================ */

/* ---------- Outer section ---------- */
.dvs-wrap {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    font-family: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
    padding: 60px 0 50px;
    background: #000000;
    contain: layout style;
}

/* ---------- Track outer: clips side-peeking slides ---------- */
.dvs-track-outer {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #000000;
}

/* ---------- The sliding track ---------- */
.dvs-track {
    display: flex;
    align-items: center;
    gap: 0;
    transition: transform 0.52s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    background: #000000;
}

.dvs-track.dvs-dragging {
    transition: none;
    cursor: grabbing;
}

/* ---------- Each slide item ---------- */
.dvs-item {
    flex: 0 0 auto;
    width: var(--dvs-item-width, 260px);
    padding: 0 var(--dvs-item-gap, 18px);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;

    /* Side items: fade only — NO scale */
    opacity: 0.38;
    transition: opacity 0.52s ease;
    background: #000000;
}

.dvs-item.dvs-active {
    opacity: 1;
}

/* ---------- Phone frame — mirrors .ms-phone from showcase ---------- */
.dvs-phone {
    position: relative;
    width: 100%;
    /* Height driven by aspect ratio of screen inside */
    aspect-ratio: 11 / 20;
    background: #111;
    border-radius: 44px;
    box-shadow:
        0 0 0 2px #333,
        0 0 0 4px #1a1a1a,
        0 30px 80px rgba(0, 0, 0, 0.7),
        inset 0 0 0 1px #222;
    overflow: hidden;
}

/* Notch — mirrors .ms-phone__notch */
.dvs-phone__notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 28%;       /* proportional to phone width */
    height: 4.5%;     /* proportional to phone height */
    background: #111;
    border-radius: 20px;
    z-index: 10;
    box-shadow: 0 0 0 2px #333;
}

/* Screen area — mirrors .ms-phone__screen */
.dvs-phone__screen {
    position: absolute;
    inset: 0%;       /* small inset for bezel */
    border-radius: 38px;
    overflow: hidden;  /* THIS is what clips the video corners */
    background: #000;
}

/* Video fills the screen — mirrors .ms-phone__screen video */
.dvs-video {
    width: 100%;
    height: 100%;
    object-fit: cover;  /* cover fills frame, no transparent corners */
    display: block;
    pointer-events: none;
}

/* ---------- Per-slide caption ---------- */
.dvs-caption {
    text-align: center;
    margin-top: 14px;
    padding: 0 4px;
    font-family: 'Poppins', sans-serif !important;
    font-size: 0.82rem;
    font-weight: 600 !important;
    color: #ffffff !important;
    line-height: 1.4;
    min-height: 1.4em;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.dvs-item.dvs-active .dvs-caption {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Dot pagination ---------- */
.dvs-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    margin-top: 0px !important;
    padding: 0;
    list-style: none;
}

.dvs-dot {
    display: block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    background: white !important;
}

.dvs-dot.dvs-dot-active {
    background: #d900bc !important;
    transform: scale(1.4);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .dvs-wrap { padding: 44px 0 38px; }
}

@media (max-width: 480px) {
    .dvs-wrap { padding: 4px 0 30px; }
}

/* test 11-20 */