/* Videos Page Styles */

.videos-page {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 24px 16px;
}

/* Page Header */
.videos-page-header {
    margin-bottom: 24px;
}

.videos-page-header h1 {
    font-size: var(--font-size-xxl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

/* Category Filter Tabs */
.videos-categories {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 32px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.videos-categories::-webkit-scrollbar {
    display: none;
}

.videos-category-tab {
    flex-shrink: 0;
    padding: 8px 18px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.videos-category-tab:hover {
    border-color: var(--accent-teal);
    color: var(--accent-teal);
}

.videos-category-tab.active {
    background: var(--accent-teal);
    border-color: var(--accent-teal);
    color: var(--text-on-accent);
    font-weight: 600;
}

/* Featured Video */
.video-featured {
    position: relative;
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 32px;
    cursor: pointer;
    transition: transform var(--transition-normal);
}

.video-featured:hover {
    transform: translateY(-2px);
}

.video-featured:hover .video-featured-thumbnail {
    filter: brightness(0.85);
}

.video-featured-thumbnail {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
    transition: filter var(--transition-normal);
}

.video-featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 48px 32px 32px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 50%, transparent 100%);
}

.video-featured-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 8px;
    line-height: 1.3;
}

.video-featured-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: var(--font-size-sm);
    color: rgba(255,255,255,0.7);
}

.video-featured-meta .league-name {
    color: var(--accent-teal);
    font-weight: 500;
}

/* Play Button */
.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.video-play-btn::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 12px 0 12px 22px;
    border-color: transparent transparent transparent #1a1a2e;
    margin-inline-start: 4px;
}

.video-featured:hover .video-play-btn {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(255,255,255,1);
}

/* Duration Badge */
.video-duration-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0,0,0,0.8);
    color: var(--text-white);
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
    z-index: 2;
}

.video-featured .video-duration-badge {
    bottom: auto;
    top: 16px;
    right: 16px;
    font-size: 13px;
    padding: 4px 8px;
}

/* Video Grid */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

/* Video Card */
.video-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--bg-card);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all var(--transition-normal);
    cursor: pointer;
}

.video-card:hover {
    border-color: var(--accent-teal);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.video-card.hidden {
    display: none;
}

.video-card.fade-in {
    animation: fadeInVideo 0.3s ease forwards;
}

@keyframes fadeInVideo {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.video-card-thumbnail {
    position: relative;
    padding-bottom: 56.25%;
    overflow: hidden;
}

.video-card-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all var(--transition-normal);
}

.video-card:hover .video-card-thumbnail img {
    filter: brightness(0.7);
    transform: scale(1.03);
}

.video-card .video-play-btn {
    width: 56px;
    height: 56px;
    opacity: 0.85;
    transition: all var(--transition-fast);
}

.video-card .video-play-btn::after {
    border-width: 10px 0 10px 18px;
    margin-inline-start: 3px;
}

.video-card:hover .video-play-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-card-body {
    padding: 14px 16px 16px;
}

.video-card-title {
    font-size: var(--font-size-md);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-card-league {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    margin-bottom: 6px;
}

.video-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--font-size-xs);
    color: var(--text-muted);
}

.video-card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Load More Button */
.videos-load-more {
    text-align: center;
    margin-bottom: 40px;
}

.videos-load-more-btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: var(--font-size-base);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.videos-load-more-btn:hover {
    background: var(--accent-teal);
    border-color: var(--accent-teal);
    color: var(--text-on-accent);
}

.videos-load-more-btn.hidden {
    display: none;
}

.videos-empty {
    text-align: center;
    padding: 40px 16px;
    color: var(--text-secondary);
    font-size: var(--font-size-base);
}

/* Responsive */
@media (max-width: 991px) {
    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .video-featured-thumbnail {
        height: 360px;
    }

    .video-featured-title {
        font-size: var(--font-size-lg);
    }

    .video-play-btn {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 575px) {
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .video-featured-thumbnail {
        height: 220px;
    }

    .video-featured-overlay {
        padding: 24px 16px 16px;
    }

    .video-featured-title {
        font-size: var(--font-size-md);
    }

    .video-play-btn {
        width: 48px;
        height: 48px;
    }

    .video-play-btn::after {
        border-width: 8px 0 8px 14px;
    }

    .video-card .video-play-btn {
        width: 44px;
        height: 44px;
    }

    .videos-page-header h1 {
        font-size: var(--font-size-xl);
    }
}
