/* ----------------- Video Library Section --------------*/

.video-grid {
    max-width: 1400px;
    margin: 0 auto 5rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.video-card {
    background: var(--white-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.video-card:hover {
    box-shadow: 0 25px 60px var(--light-blue);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.video-thumbnail img {
    overflow: hidden;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.15);
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.video-card:hover .video-overlay {
    opacity: 1;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    transition: background 0.3s ease;
}


.play-overlay i {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;

    font-size: 26px;
    background: var(--primary-red);
    color: var(--white-color);
    border-radius: 50%;

    transition: transform 0.3s ease,
        background 0.3s ease,
        color 0.3s ease;
}


.video-card:hover .play-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.play-overlay i:hover {
    transform: scale(1.1);
    color: var(--primary-red);
    background: var(--white-color);
}


.video-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
}

.badge {
    padding: 0.5rem 0.8rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.badge-category {
    background: var(--white-color);
    color: var(--primary-red);
    border-radius: 4px;
}

.badge-trending {
    background: var(--primary-red);
    color: var(--white-color);
    display: flex;
    align-items: center;
    font-weight: 400;
    gap: 0.3rem;
}

.duration-badge {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
}

.video-info {
    padding: 1.5rem;
}

.video-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.video-card:hover .video-title {
    color: var(--primary-red);
}

.video-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.video-meta svg {
    width: 16px;
    height: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .search-box {
        width: 100%;
    }

    .hero-title {
        font-size: 2rem;
    }

    .stats-section {
        grid-template-columns: 1fr;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }
}

.hidden {
    display: none;
}