/* Video Categories Page Specific Styles */

.search-bar {
    padding: 16px;
    background: white;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 8px;
}

.search-input-container {
    position: relative;
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 0 12px;
}

.search-icon {
    color: #999;
    margin-right: 8px;
}

.search-input {
    flex: 1;
    border: none;
    background: none;
    padding: 12px 0;
    font-size: 16px;
    outline: none;
    color: #333;
}

.search-input::placeholder {
    color: #999;
}

.clear-search {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #999;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.clear-search:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Category List */
.category-list {
    padding: 0 16px;
}

.category-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    padding: 16px;
}

.category-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.category-item:active {
    transform: translateY(0);
}

.category-thumbnail {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 16px;
    flex-shrink: 0;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-thumbnail-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.category-content {
    flex: 1;
    min-width: 0;
}

.category-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    line-height: 1.4;
}

.category-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #999;
}

.category-update-time {
    display: flex;
    align-items: center;
    gap: 4px;
}

.category-has-sub {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #e3f2fd;
    color: #1976d2;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
}

.category-arrow {
    margin-left: 12px;
    color: #999;
    transition: transform 0.2s ease;
}

.category-item:hover .category-arrow {
    transform: translateX(4px);
}

/* Pagination Styles */
.pagination-container {
    padding: 20px 16px;
    background: white;
    border-top: 1px solid #e0e0e0;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid #e0e0e0;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: all 0.2s ease;
}

.pagination-btn:hover:not(:disabled) {
    border-color: #4A90E2;
    color: #4A90E2;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0 12px;
}

.page-number {
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e0e0e0;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: all 0.2s ease;
}

.page-number:hover {
    border-color: #4A90E2;
    color: #4A90E2;
}

.page-number.active {
    background: #4A90E2;
    border-color: #4A90E2;
    color: white;
}

.page-ellipsis {
    padding: 0 8px;
    color: #999;
    font-size: 14px;
}

.pagination-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: #666;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

/* Empty States */
.empty-icon {
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-subtitle {
    font-size: 14px;
    color: #999;
    margin-top: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .category-item {
        padding: 12px;
    }
    
    .category-thumbnail {
        width: 50px;
        height: 50px;
        margin-right: 12px;
    }
    
    .category-title {
        font-size: 15px;
    }
    
    .pagination-container {
        padding: 16px 12px;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .pagination-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .page-numbers {
        margin: 0 8px;
        gap: 2px;
    }
    
    .page-number {
        min-width: 32px;
        height: 32px;
        font-size: 13px;
    }
    
    .pagination-info {
        flex-direction: column;
        align-items: center;
        gap: 4px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .category-list {
        padding: 0 12px;
    }
    
    .category-item {
        margin-bottom: 12px;
        padding: 12px;
    }
    
    .category-thumbnail {
        width: 45px;
        height: 45px;
        margin-right: 10px;
    }
    
    .category-title {
        font-size: 14px;
    }
    
    .category-meta {
        gap: 8px;
        font-size: 11px;
    }
}

