/* =====================================================
   VIDEO SLIDER SECTION — MedPrepOnline
   Light Theme · Poppins · Teal (#4fb3d9 / #5dbea3 / #6cdbce)
   Section padding: 80px 0 — matches site rhythm
   ===================================================== */

/* ── Section Wrapper ── */
.video-slider-section {
    background: #f8fffe;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.video-slider-section::before {
    content: '';
    position: absolute;
    top: -180px;
    right: -160px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(79, 179, 217, 0.06);
    pointer-events: none;
    z-index: 0;
}

.video-slider-section::after {
    content: '';
    position: absolute;
    bottom: -120px;
    left: -120px;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: rgba(93, 190, 163, 0.05);
    pointer-events: none;
    z-index: 0;
}

.video-slider-section .container {
    position: relative;
    z-index: 1;
}

/* ── Section Header ── */
.vs-header {
    margin-bottom: 44px;
}

.vs-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(79, 179, 217, 0.1);
    border: 1px solid rgba(79, 179, 217, 0.25);
    color: #4fb3d9;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 50px;
    margin-bottom: 14px;
    font-family: 'Poppins-semibold', 'Poppins', sans-serif;
}

.vs-badge i {
    font-size: 0.8rem;
    color: #5dbea3;
}

.vs-title {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 700;
    color: #111111;
    line-height: 1.25;
    margin: 0 0 12px;
    font-family: 'Poppins-extra', 'Poppins', sans-serif;
}

.vs-title span {
    background: linear-gradient(135deg, #4fb3d9, #5dbea3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.vs-subtitle {
    color: #6c757d;
    font-size: 1rem;
    margin: 0;
    max-width: 500px;
    font-family: 'Poppins-light', 'Poppins', sans-serif;
    line-height: 1.7;
}

.vs-explore-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #4fb3d9, #5dbea3);
    color: #fff;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(79, 179, 217, 0.3);
    font-family: 'Poppins-medium', 'Poppins', sans-serif;
    white-space: nowrap;
}

.vs-explore-btn:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 26px rgba(79, 179, 217, 0.45);
}

.vs-explore-btn i {
    transition: transform 0.3s ease;
}

.vs-explore-btn:hover i {
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .vs-title {
        font-size: 1.8rem;
    }

    .vs-header {
        margin-bottom: 28px;
    }
}

/* ── Main Layout ── */
.vs-main-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 22px;
    align-items: start;
}

@media (max-width: 991px) {
    .vs-main-layout {
        grid-template-columns: 1fr;
    }
}

/* ── Player Panel ── */
.vs-player-panel {
    animation: vs-fadeIn 0.4s ease both;
}

@keyframes vs-fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vs-player-container {
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 10px 40px rgba(79, 179, 217, 0.18),
        0 0 0 1px rgba(79, 179, 217, 0.1);
    transition: box-shadow 0.3s;
}

.vs-player-container:hover {
    box-shadow: 0 18px 55px rgba(79, 179, 217, 0.25),
        0 0 0 1px rgba(79, 179, 217, 0.2);
}

/* 16:9 wrapper */
.vs-iframe-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #111;
}

.vs-iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* ── Thumbnail Overlay ── */
.vs-thumbnail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 4;
    transition: opacity 0.35s ease;
    background: #000;
}

.vs-thumbnail-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.vs-thumb-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.65;
}

.vs-thumb-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 55%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
}

.vs-play-btn {
    position: relative;
    z-index: 5;
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4fb3d9, #5dbea3);
    border: none;
    color: #fff;
    font-size: 1.45rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 28px rgba(79, 179, 217, 0.55);
    margin-bottom: 10px;
}

.vs-play-btn::before {
    content: '';
    position: absolute;
    top: -7px;
    left: -7px;
    right: -7px;
    bottom: -7px;
    border-radius: 50%;
    border: 2px solid rgba(79, 179, 217, 0.45);
    animation: vs-pulse 2s ease-in-out infinite;
}

@keyframes vs-pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.65;
    }

    50% {
        transform: scale(1.18);
        opacity: 0;
    }
}

.vs-play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 14px 36px rgba(79, 179, 217, 0.7);
}

.vs-play-label {
    position: relative;
    z-index: 5;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    font-family: 'Poppins-medium', 'Poppins', sans-serif;
}

/* ── Player Info Bar ── */
.vs-player-info {
    background: #fff;
    border: 1px solid rgba(79, 179, 217, 0.12);
    border-top: none;
    border-radius: 0 0 16px 16px;
    padding: 16px 20px 14px;
    margin-top: -2px;
}

.vs-player-course-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(79, 179, 217, 0.08);
    color: #4fb3d9;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 50px;
    margin-bottom: 7px;
    font-family: 'Poppins-semibold', 'Poppins', sans-serif;
}

.vs-player-title {
    font-size: 1rem;
    font-weight: 700;
    color: #111;
    margin: 0 0 5px;
    line-height: 1.35;
    font-family: 'Poppins-bold', 'Poppins', sans-serif;
}

.vs-player-desc {
    font-size: 0.83rem;
    color: #6c757d;
    margin: 0;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: 'Poppins-light', 'Poppins', sans-serif;
}

/* ── Nav ── */
.vs-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
}

.vs-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(79, 179, 217, 0.25);
    background: #fff;
    color: #4fb3d9;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(79, 179, 217, 0.1);
    flex-shrink: 0;
}

.vs-nav-btn:hover {
    background: linear-gradient(135deg, #4fb3d9, #5dbea3);
    border-color: transparent;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(79, 179, 217, 0.35);
}

.vs-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.vs-dots {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.vs-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(79, 179, 217, 0.22);
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
    padding: 0;
}

.vs-dot.active {
    width: 22px;
    border-radius: 4px;
    background: linear-gradient(90deg, #4fb3d9, #5dbea3);
    box-shadow: 0 2px 6px rgba(79, 179, 217, 0.35);
}

/* ── Thumbnail Track (sidebar) ── */
.vs-track {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 510px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(79, 179, 217, 0.25) transparent;
    padding-right: 2px;
}

.vs-track::-webkit-scrollbar {
    width: 4px;
}

.vs-track::-webkit-scrollbar-track {
    background: transparent;
}

.vs-track::-webkit-scrollbar-thumb {
    background: rgba(79, 179, 217, 0.25);
    border-radius: 4px;
}

@media (max-width: 991px) {
    .vs-track {
        flex-direction: row;
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden;
        padding-right: 0;
        padding-bottom: 6px;
    }

    .vs-track::-webkit-scrollbar {
        height: 4px;
    }
}

/* ── Track Item ── */
.vs-track-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    border-radius: 12px;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: #fff;
    transition: all 0.25s ease;
    position: relative;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    flex-shrink: 0;
}

.vs-track-item:hover {
    border-color: rgba(79, 179, 217, 0.3);
    box-shadow: 0 4px 16px rgba(79, 179, 217, 0.12);
    transform: translateY(-1px);
}

.vs-track-item.active {
    border-color: rgba(79, 179, 217, 0.4);
    background: linear-gradient(135deg, rgba(79, 179, 217, 0.05), rgba(93, 190, 163, 0.04));
    box-shadow: 0 4px 18px rgba(79, 179, 217, 0.14);
}

.vs-track-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 18%;
    height: 64%;
    width: 3px;
    background: linear-gradient(135deg, #4fb3d9, #5dbea3);
    border-radius: 0 3px 3px 0;
}

@media (max-width: 991px) {
    .vs-track-item {
        min-width: 190px;
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Track thumbnail */
.vs-track-thumb {
    width: 84px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    background: #e8f7fc;
}

@media (max-width: 991px) {
    .vs-track-thumb {
        width: 100%;
        height: 110px;
        /* slightly taller for large phones; 16:9 at 195px wide ≈ 110px */
        border-radius: 8px 8px 0 0;
    }
}

.vs-track-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    /* prevents top-crop on mobile */
    transition: transform 0.3s ease;
    display: block;
}

.vs-track-item:hover .vs-track-thumb img,
.vs-track-item.active .vs-track-thumb img {
    transform: scale(1.05);
}

.vs-track-thumb-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s;
}

.vs-track-item.active .vs-track-thumb-overlay {
    background: rgba(79, 179, 217, 0.28);
}

.vs-track-thumb-overlay i {
    color: #fff;
    font-size: 1rem;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.4));
}

/* Track text */
.vs-track-text {
    flex: 1;
    min-width: 0;
}

.vs-track-course {
    font-size: 0.65rem;
    color: #5dbea3;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'Poppins-semibold', 'Poppins', sans-serif;
}

.vs-track-title {
    font-size: 0.79rem;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    margin: 0 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: 'Poppins-medium', 'Poppins', sans-serif;
}

.vs-track-item.active .vs-track-title {
    color: #111;
}

.vs-track-meta {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #adb5bd;
    font-size: 0.67rem;
}

.vs-track-meta i {
    font-size: 0.6rem;
}

/* ── Empty State ── */
.vs-empty {
    text-align: center;
    padding: 56px 20px;
    color: #6c757d;
}

.vs-empty i {
    font-size: 3rem;
    margin-bottom: 14px;
    display: block;
    background: linear-gradient(135deg, #4fb3d9, #5dbea3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.vs-empty h5 {
    color: #444;
    font-family: 'Poppins-semibold', 'Poppins', sans-serif;
    margin-bottom: 8px;
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .video-slider-section {
        padding: 56px 0;
    }
}