/* Video Gallery Page Styles */

/* Page Header */
.page-header {
    margin-bottom: 30px;
    text-align: center;
}

.page-header h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #030303;
}

.page-header p {
    color: #606060;
    font-size: 14px;
}

/* Filters */
.video-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    align-items: center;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
}

.filter-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.filter-btn {
    padding: 8px 20px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    font-weight: 500;
}

.filter-btn:hover {
    background: #f0f0f0;
}

.filter-btn.active {
    background: #065fd4;
    color: white;
    border-color: #065fd4;
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.video-card {
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s;
    display: block;
}

.video-card:hover {
    transform: translateY(-5px);
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 */
    background: #f0f0f0;
    overflow: hidden;
    border-radius: 12px;
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.duration-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.new-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #ff0000;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.video-info {
    padding: 12px 0;
}

.video-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #030303;
}

.video-channel {
    font-size: 13px;
    color: #606060;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.video-channel i {
    font-size: 14px;
    color: #888;
}

.channel-link {
    color: #065fd4;
    text-decoration: none;
    font-weight: 500;
}

.channel-link:hover {
    text-decoration: underline;
    color: #054da3;
}

.video-stats {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: #606060;
    margin-bottom: 4px;
}

.video-stats i {
    margin-right: 4px;
}

.video-date {
    font-size: 13px;
    color: #888;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
}

.empty-state i {
    color: #ccc;
    margin-bottom: 20px;
}

.empty-state h3 {
    color: #606060;
    margin-bottom: 10px;
}

.empty-state p {
    color: #888;
}

/* Pagination */
.pagination-nav {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.pagination {
    display: flex;
    gap: 5px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-item {
    display: inline-block;
}

.page-link {
    display: block;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #065fd4;
    text-decoration: none;
    transition: all 0.2s;
}

.page-link:hover {
    background: #f0f0f0;
}

.page-item.active .page-link {
    background: #065fd4;
    color: white;
    border-color: #065fd4;
}

.page-item.disabled .page-link {
    color: #ccc;
    cursor: not-allowed;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }

    .video-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        width: 100%;
        flex-wrap: wrap;
    }

    .filter-btn {
        flex: 1;
        text-align: center;
    }

    .page-header h1 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
}