/* =============================================================================
   VIDEO SHOWCASE HUB (videos.html / page-videos.php)
   ============================================================================= */

#vid-page {
    background: var(--white, #ffffff);
}

.vid-intro {
    padding: 44px 0 24px;
    text-align: center;
    border-bottom: 1px solid var(--border-light, #e2e8f0);
}

.vid-featured-sec {
    padding: 40px 0 48px;
    background: var(--bg-light, #f8fafc);
    border-bottom: 1px solid var(--border-light, #e2e8f0);
}

.vid-discovery-sec {
    padding: 44px 0 72px;
}

.vid-related-sec {
    padding: 0 0 64px;
}

.vid-cta-sec {
    padding: 0 0 64px;
}

/* ---- Featured Video Player Facade ---- */
.vid-featured-player {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
    border-radius: var(--radius-lg, 16px);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 16 / 9;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-light, #e2e8f0);
}

.vid-featured-player img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.vid-featured-player:hover img {
    transform: scale(1.02);
}

.vid-featured-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 10, 10, 0.35);
    transition: background 0.25s ease;
}

.vid-featured-play-overlay i {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-red, #dc2626);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    padding-left: 5px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    transition: transform 0.25s cubic-bezier(0.165, 0.84, 0.44, 1), background 0.25s ease, color 0.25s ease;
}

.vid-featured-player:hover .vid-featured-play-overlay {
    background: rgba(10, 10, 10, 0.5);
}

.vid-featured-player:hover .vid-featured-play-overlay i {
    transform: scale(1.1);
    background: var(--primary-red, #dc2626);
    color: #ffffff;
}

/* =========================
   STICKY FILTER BAR
   ========================= */
#vid-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-light, #e2e8f0);
    border-radius: 14px;
    padding: 12px 18px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 80px;
    z-index: 20;
    transition: all 0.3s ease;
}

#vid-filter-bar #vid-search {
    flex: 1 1 320px;
    max-width: 420px;
    min-width: 240px;
}

#vid-filter-bar .eds-filter-controls-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

#vid-filter-bar .eds-filter-select {
    min-width: 140px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dark, #1e293b);
    background-color: var(--bg-light, #f8fafc);
    border: 1px solid var(--border-light, #e2e8f0);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

#vid-filter-bar .eds-filter-select:hover,
#vid-filter-bar .eds-filter-select:focus {
    border-color: var(--primary-red, #dc2626);
    background-color: #fff;
    outline: none;
}

#vid-filter-bar .eds-filter-select.eds-filter-select--active {
    border-color: var(--primary-red, #dc2626);
    background-color: #fff1f2;
    color: var(--primary-red, #dc2626);
    font-weight: 600;
}

#vid-filter-bar .eds-filter-clear {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--primary-red, #dc2626);
    background: transparent;
    border: 1px solid var(--primary-red, #dc2626);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

#vid-filter-bar .eds-filter-clear:hover {
    background: var(--primary-red, #dc2626);
    color: #ffffff;
}

#vid-filter-bar.eds-filter-bar--has-active .eds-filter-clear {
    display: inline-flex;
}

@media screen and (max-width: 991px) {
    #vid-filter-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        gap: 10px !important;
        padding: 12px 14px !important;
        top: 60px !important;
    }

    #vid-filter-bar #vid-search {
        flex: 0 0 auto !important;
        max-width: none !important;
        width: 100% !important;
    }

    #vid-filter-bar .eds-filter-divider {
        display: none !important;
    }

    #vid-filter-bar .eds-filter-controls-group {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scroll-snap-type: x proximity !important;
        scrollbar-width: none !important;
        gap: 8px !important;
        padding-bottom: 2px !important;
        justify-content: flex-start !important;
        width: 100% !important;
    }

    #vid-filter-bar .eds-filter-controls-group::-webkit-scrollbar {
        display: none !important;
    }

    #vid-filter-bar .eds-filter-select,
    #vid-filter-bar .eds-filter-clear {
        flex: 0 0 auto !important;
        min-width: 130px !important;
        scroll-snap-align: start !important;
        height: 38px !important;
    }
}

@media screen and (max-width: 768px) {
    .vid-intro {
        padding: 32px 0 20px;
        text-align: left;
    }

    .vid-featured-sec {
        padding: 32px 0 36px;
    }

    .vid-discovery-sec {
        padding: 32px 0 48px;
    }

    .vid-related-sec {
        padding: 0 0 48px;
    }

    .vid-cta-sec {
        padding: 0 0 48px;
    }

    .vid-featured-play-overlay i {
        width: 60px;
        height: 60px;
        font-size: 1.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vid-featured-play-overlay i {
        transition: none !important;
    }
}
