/* 爱夜视频分类页面样式 */

.category-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.category-header {
    text-align: center;
    margin-bottom: 50px;
}

.category-header h2 {
    font-size: 42px;
    color: white;
    margin-bottom: 15px;
    font-weight: bold;
    text-shadow: 0 0 20px rgba(255,255,255,0.3);
}

.category-header p {
    font-size: 18px;
    color: rgba(255,255,255,0.8);
}

/* 筛选区域 */
.filter-section {
    background: rgba(255,255,255,0.05);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 40px;
}

.filter-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-tab {
    padding: 12px 24px;
    border: 2px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.05);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: rgba(255,255,255,0.8);
    backdrop-filter: blur(5px);
}

.filter-tab:hover,
.filter-tab.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102,126,234,0.3);
}

.filter-options {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-select {
    padding: 10px 15px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    color: white;
    cursor: pointer;
    font-size: 14px;
    min-width: 120px;
    backdrop-filter: blur(5px);
}

.filter-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 10px rgba(102,126,234,0.3);
}

.filter-select option {
    background: #1a1a2e;
    color: white;
}

/* 内容网格 */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.video-card {
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
    position: relative;
}

.video-card:hover {
    transform: translateY(-8px);
    background: rgba(255,255,255,0.1);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.video-thumb {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.video-thumb.thriller-bg {
    background: linear-gradient(135deg, #8B0000, #FF4500);
}

.video-thumb.romance-bg {
    background: linear-gradient(135deg, #FF69B4, #FFB6C1);
}

.video-thumb.documentary-bg {
    background: linear-gradient(135deg, #4682B4, #87CEEB);
}

.video-thumb.anime-bg {
    background: linear-gradient(135deg, #9370DB, #DDA0DD);
}

.video-thumb.healing-bg {
    background: linear-gradient(135deg, #32CD32, #98FB98);
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #667eea;
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

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

.video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    backdrop-filter: blur(5px);
}

.night-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    box-shadow: 0 0 10px rgba(102,126,234,0.5);
}

.video-info {
    padding: 20px;
}

.video-info h4 {
    font-size: 18px;
    color: white;
    margin-bottom: 10px;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.video-desc {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.rating {
    color: #FFD700;
    font-size: 14px;
    filter: drop-shadow(0 0 5px rgba(255,215,0,0.5));
}

.views {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
}

.watch-btn {
    display: inline-block;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(102,126,234,0.3);
}

.watch-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102,126,234,0.5);
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 50px 0;
}

.page-btn {
    padding: 10px 15px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    backdrop-filter: blur(5px);
}

.page-btn:hover,
.page-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: #667eea;
    box-shadow: 0 0 15px rgba(102,126,234,0.3);
}

.page-btn.prev,
.page-btn.next {
    font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .category-header h2 {
        font-size: 32px;
    }
    
    .filter-tabs {
        justify-content: center;
    }
    
    .filter-options {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }
    
    .filter-select {
        width: 200px;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .page-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
}