/* ===== PREMIUM VIDEO CARDS (2026 ULTRA) ===== */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
    justify-content: center;
    perspective: 1200px;
}

.video-card {
    opacity: 0;
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    background: rgba(30, 41, 59, 0.45);
    backdrop-filter: blur(28px);
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    max-width: 440px;
    margin: 0 auto;
    width: 100%;
    transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5);
    transform-style: preserve-3d;
}

.video-card:hover {
    transform: translateY(-12px) rotateX(2deg) rotateY(-1deg);
    background: rgba(30, 41, 59, 0.65);
    border-color: var(--primary);
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6), 0 0 30px rgba(16, 185, 129, 0.2);
}

/* Glass Shine Effect */
.video-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.05),
            transparent);
    transform: skewX(-25deg);
    transition: none;
    z-index: 5;
    pointer-events: none;
}

.video-card:hover::before {
    animation: slideShine 1.5s infinite;
}

@keyframes slideShine {
    0% {
        left: -100%;
    }

    100% {
        left: 200%;
    }
}

.video-thumbnail {
    position: relative;
    height: 220px;
    margin: 14px;
    border-radius: 24px;
    overflow: hidden;
    transform: translateZ(20px);
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.1, 0, 0.3, 1);
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.12);
}

.play-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.4) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
    backdrop-filter: blur(0px);
}

.video-card:hover .play-overlay {
    opacity: 1;
    backdrop-filter: blur(4px);
}

.play-icon {
    width: 72px;
    height: 72px;
    background: var(--grad-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transform: scale(0.5);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.5);
    padding-left: 5px;
}

.video-card:hover .play-icon {
    transform: scale(1);
}

.video-duration {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    color: white;
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10;
}

.live-indicator {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #ef4444;
    color: white;
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.live-dot {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: pulse-red 1.5s infinite;
}

@keyframes pulse-red {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.video-info {
    padding: 0 28px 28px;
    transform: translateZ(30px);
}

.video-title {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--secondary);
    line-height: 1.35;
    margin: 0 0 16px;
    letter-spacing: -0.5px;
}

.video-tag-pill {
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.8rem;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.video-meta-stats {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

.video-meta-stats span i {
    color: var(--primary);
    margin-right: 6px;
}

.video-watch-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--secondary);
    padding: 18px;
    border-radius: 20px;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.video-card:hover .video-watch-btn {
    background: var(--grad-primary);
    color: white;
    border-color: transparent;
    transform: scale(1.03);
    box-shadow: 0 15px 30px -10px rgba(16, 185, 129, 0.4);
}

/* Mobile specific adjustments */
.filter-toggle-btn {
    display: none;
    padding: 16px 32px;
    background: var(--grad-primary);
    color: white;
    border: none;
    border-radius: 99px;
    cursor: pointer;
    font-weight: 700;
    margin-bottom: 24px;
    transition: all 0.3s;
    box-shadow: 0 10px 20px -5px rgba(16, 185, 129, 0.3);
}

@media (max-width: 992px) {
    .mat-tabs {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        justify-content: flex-start !important;
        width: calc(100% + 32px) !important;
        margin-left: -16px !important;
        margin-right: -16px !important;
        padding: 8px 16px !important;
        border-radius: 0 !important;
        background: transparent !important;
        border: none !important;
        -ms-overflow-style: none;
        scrollbar-width: none;
        gap: 8px !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .mat-tabs::-webkit-scrollbar {
        display: none;
    }

    .mat-tab {
        flex: 0 0 auto !important;
        width: auto !important;
        padding: 10px 20px !important;
        font-size: 0.9rem !important;
        border: 1px solid rgba(255, 255, 255, 0.05) !important;
        background: rgba(255, 255, 255, 0.03) !important;
        border-radius: 12px !important;
    }

    .mat-tab.active {
        background: var(--grad-primary) !important;
        border-color: transparent !important;
        box-shadow: 0 8px 20px -5px rgba(16, 185, 129, 0.4) !important;
        color: white !important;
    }

    .filter-toggle-btn {
        display: none !important;
    }

    .grid-3 {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Spectrum Sync: Video Dashboard Light Mode Refinements */
.light-mode .hero {
    background: radial-gradient(circle at top right, rgba(16, 185, 129, 0.05), #f8fafc),
        linear-gradient(135deg, #f1f5f9, #ffffff);
    color: var(--secondary);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.light-mode .hero-title {
    color: var(--secondary) !important;
}

.light-mode .search-container {
    background: white !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1) !important;
}

.light-mode .search-container input {
    color: var(--secondary) !important;
}

.light-mode .video-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.12);
}

.light-mode .video-card:hover {
    background: white;
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.15);
}

.light-mode .video-title {
    color: var(--secondary);
}

.light-mode .video-watch-btn {
    background: var(--grad-primary);
    color: white !important;
    border: none;
    box-shadow: 0 6px 15px rgba(16, 185, 129, 0.2);
}

.light-mode .video-watch-btn span,
.light-mode .video-watch-btn i {
    color: white !important;
}

.light-mode .video-watch-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

.light-mode .video-meta-stats {
    color: var(--text-muted);
}

.light-mode .video-tag-pill {
    background: rgba(16, 185, 129, 0.08);
}