/* ========================================
   SECTION 2: SCORES - 视频配乐展示
   ======================================== */

.section-scores {
    background: var(--color-bg-secondary);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: calc(var(--nav-height) + var(--spacing-md));
    position: relative;
    overflow: hidden;
}

/* Scores 背景装饰 - 音频波形主题 */
.section-bg-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* Scores 装饰 - 优雅的音频波形重复图案 */
.scores-bg-decoration {
    background-image: 
        /* 优雅的波形线条重复图案 */
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 19px,
            rgba(201, 169, 97, 0.06) 19px,
            rgba(201, 169, 97, 0.06) 20px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 19px,
            rgba(201, 169, 97, 0.06) 19px,
            rgba(201, 169, 97, 0.06) 20px
        ),
        /* 对角线装饰，形成菱形网格 */
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 26px,
            rgba(201, 169, 97, 0.03) 26px,
            rgba(201, 169, 97, 0.03) 27px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 26px,
            rgba(201, 169, 97, 0.03) 26px,
            rgba(201, 169, 97, 0.03) 27px
        );
    background-size: 20px 20px, 20px 20px, 100% 100%, 100% 100%;
    opacity: 0.4;
}

/* 亮色主题下的背景装饰增强 */
.theme-light .scores-bg-decoration {
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 19px,
            rgba(166, 124, 61, 0.12) 19px,
            rgba(166, 124, 61, 0.12) 20px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 19px,
            rgba(166, 124, 61, 0.12) 19px,
            rgba(166, 124, 61, 0.12) 20px
        ),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 26px,
            rgba(166, 124, 61, 0.08) 26px,
            rgba(166, 124, 61, 0.08) 27px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 26px,
            rgba(166, 124, 61, 0.08) 26px,
            rgba(166, 124, 61, 0.08) 27px
        );
    opacity: 0.6;
}

.scores-bg-decoration::before {
    content: '';
    position: absolute;
    top: 10%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(
        circle at center,
        rgba(201, 169, 97, 0.15) 0%,
        rgba(201, 169, 97, 0.08) 30%,
        transparent 70%
    );
    filter: blur(80px);
}

.scores-bg-decoration::after {
    content: '';
    position: absolute;
    bottom: 20%;
    left: -8%;
    width: 400px;
    height: 400px;
    background: radial-gradient(
        circle at center,
        rgba(201, 169, 97, 0.1) 0%,
        transparent 60%
    );
    filter: blur(60px);
}

/* 筛选器区域 - 优雅的下划线指示器风格 */
.scores-filter {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: var(--spacing-xl);
    width: 100%;
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
    padding: 0 var(--spacing-md);
    position: relative;
    z-index: 1;
}

.filter-wrapper {
    display: inline-flex;
    align-items: flex-end;
    gap: 0;
    position: relative;
    background: transparent;
    border-bottom: 1px solid var(--color-line);
    padding-bottom: 1px;
}

.filter-btn {
    position: relative;
    padding: var(--spacing-md) var(--spacing-lg);
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    font-family: var(--font-sans);
    font-weight: 400;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: color var(--transition-normal);
    white-space: nowrap;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: var(--spacing-sm);
    min-width: 90px;
    height: 100%;
}

.filter-label {
    position: relative;
    z-index: 1;
    transition: all var(--transition-normal);
    line-height: 1.2;
}

.filter-indicator {
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 70%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-accent-gold), transparent);
    border-radius: var(--radius-sm);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
    box-shadow: 0 0 8px rgba(201, 169, 97, 0.4);
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(201, 169, 97, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-normal);
    pointer-events: none;
}

.filter-btn:hover {
    color: var(--color-text-primary);
}

.filter-btn:hover::before {
    opacity: 1;
}

.filter-btn:hover .filter-indicator {
    transform: translateX(-50%) scaleX(0.6);
    opacity: 0.6;
}

.filter-btn.active {
    color: var(--color-accent-gold);
}

.filter-btn.active .filter-label {
    color: var(--color-accent-gold);
    font-weight: 500;
    letter-spacing: 0.1em;
}

.filter-btn.active .filter-indicator {
    transform: translateX(-50%) scaleX(1);
    opacity: 1;
    box-shadow: 0 0 12px rgba(201, 169, 97, 0.6);
}

.filter-btn.active::before {
    opacity: 0.3;
}

/* 配乐视频容器 - 网格布局 */
.scores-video-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--spacing-lg);
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    position: relative;
    z-index: 1;
}

/* 配乐视频卡片 - 专门样式 */
.score-video-card {
    background: var(--color-bg-elevated);
    border: var(--border-thin);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    position: relative;
}

/* 精致的顶部高光线 */
.score-video-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-accent-gold), transparent);
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: 1;
}

.score-video-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--color-accent-gold);
    transition: width var(--transition-normal);
    z-index: 2;
}

.score-video-card:hover {
    border-color: rgba(201, 169, 97, 0.3);
    box-shadow: var(--shadow-lg);
}

.score-video-card:hover::before {
    opacity: 0.6;
}

.score-video-card:hover::after {
    width: 80px;
}

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

.score-video-card.filter-visible {
    display: flex;
    animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 配乐视频包装器 */
.score-video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--color-bg-primary);
    overflow: hidden;
}

.score-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 配乐视频信息 */
.score-video-info {
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.score-video-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xs);
}

.score-video-category {
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    font-family: var(--font-sans);
    font-weight: 400;
    position: relative;
    padding-left: var(--spacing-sm);
}

.score-video-category::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 12px;
    background: var(--color-accent-gold);
    opacity: 0.4;
    transition: opacity var(--transition-fast);
}

.score-video-card:hover .score-video-category::before {
    opacity: 0.8;
}

.score-video-title {
    font-size: 1.25rem;
    font-family: var(--font-serif);
    font-weight: 400;
    color: var(--color-text-primary);
    margin: 0;
    line-height: 1.3;
}

.score-video-desc {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* 大屏幕优化 */
@media (min-width: 1200px) {
    .scores-video-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 列表结束指示器 - 优雅简洁 */
.scores-end-indicator {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
    padding: var(--spacing-md) 0;
    opacity: 0.25;
    transition: opacity var(--transition-normal);
}

.scores-end-indicator .end-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(
        to right,
        transparent,
        var(--color-line) 30%,
        var(--color-line) 70%,
        transparent
    );
    max-width: 120px;
}

.scores-end-indicator .end-text {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    font-family: var(--font-sans);
    white-space: nowrap;
    font-weight: 300;
}

/* 隐藏时完全移除 */
.scores-end-indicator.filter-hidden {
    display: none;
}

/* 视频卡片过滤动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Scores Section 响应式 */
@media (max-width: 768px) {
    .scores-filter {
        margin-bottom: var(--spacing-lg);
        padding: 0 var(--spacing-sm);
    }

    .filter-wrapper {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .filter-wrapper::-webkit-scrollbar {
        display: none;
    }

    .filter-btn {
        padding: var(--spacing-xs) var(--spacing-md);
        font-size: 0.85rem;
        min-width: 70px;
    }

    .scores-video-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        padding: 0 var(--spacing-sm);
    }

    .score-video-info {
        padding: var(--spacing-sm);
    }

    .score-video-title {
        font-size: 1.1rem;
    }

    .score-video-desc {
        font-size: 0.85rem;
    }
}

