/* 加载更多指示器 */
.load-more-indicator {
    display: none;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 20px;
    width: 100%;
    color: var(--text-secondary);
    font-size: 14px;
}

.load-more-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--text-main);
    border-radius: 50%;
    animation: load-more-spin 0.8s linear infinite;
}

@keyframes load-more-spin {
    to { transform: rotate(360deg); }
}

/* Toast 提示 */
.toast-container {
    position: fixed;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: var(--z-toast);
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.toast {
    background: rgba(40, 40, 40, 0.85);
    backdrop-filter: blur(var(--glass-blur-standard)) saturate(var(--glass-saturate-standard));
    -webkit-backdrop-filter: blur(var(--glass-blur-standard)) saturate(var(--glass-saturate-standard));
    color: white;
    padding: 12px 24px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: toast-in 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), toast-out 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) 2.5s forwards;
    white-space: nowrap;
}

@keyframes toast-in {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes toast-out {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-20px); }
}

/* Toast 类型样式 */
.toast-info { background: rgba(59, 130, 246, 0.95) !important; }
.toast-success { background: rgba(34, 197, 94, 0.95) !important; }
.toast-warning { background: rgba(245, 158, 11, 0.95) !important; }
.toast-error { background: rgba(239, 68, 68, 0.95) !important; }

@keyframes slideInRight {
    from { 
        opacity: 0; 
        transform: translateX(100px); 
    }
    to { 
        opacity: 1; 
        transform: translateX(0); 
    }
}

@keyframes slideOutRight {
    from { 
        opacity: 1; 
        transform: translateX(0); 
    }
    to { 
        opacity: 0; 
        transform: translateX(100px); 
    }
}

/* 弹窗样式 */
.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(var(--glass-blur-light));
    -webkit-backdrop-filter: blur(var(--glass-blur-light));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 700;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.dialog-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.dialog-card {
    /* 玻璃效果由 .glass.glass--lg::before 提供 */
    width: 90%;
    max-width: 650px;
    padding: 32px;
    border-radius: 28px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    text-align: center;
    animation: dialog-pop 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes dialog-pop {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.dialog-title {
    margin: 0 0 12px;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.dialog-message {
    margin: 0 0 24px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-secondary);
    font-weight: 400;
    text-align: left;
    max-height: 450px;
    overflow-y: auto;
    padding: 20px;
    border-radius: 12px;
    background-color: rgba(0, 0, 0, 0.08);
}

/* ========== Markdown 样式（更新日志专用）========== */

.dialog-message .md-h1 {
    font-size: 20px;
    font-weight: 700;
    margin: 16px 0 10px;
    color: var(--text-main);
    line-height: 1.3;
}

.dialog-message .md-h2 {
    font-size: 17px;
    font-weight: 700;
    margin: 14px 0 8px;
    color: var(--text-main);
    line-height: 1.4;
    padding-bottom: 6px;
    border-bottom: 2px solid rgba(128, 128, 128, 0.2);
}

.dialog-message .md-h3 {
    font-size: 15px;
    font-weight: 600;
    margin: 12px 0 6px;
    color: var(--text-main);
    line-height: 1.4;
}

.dialog-message .md-h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 10px 0 5px;
    color: var(--text-main);
    line-height: 1.4;
}

.dialog-message .md-p {
    margin: 5px 0;
    line-height: 1.5;
}

.dialog-message .md-spacer {
    height: 8px;
}

.dialog-message .md-ul {
    list-style: none;
    padding: 4px 0;
    margin: 6px 0;
}

.dialog-message .md-li {
    position: relative;
    padding-left: 18px;
    margin: 4px 0;
    line-height: 1.5;
}

.dialog-message .md-li::before {
    content: "•";
    position: absolute;
    left: 4px;
    color: rgba(128, 128, 128, 0.6);
    font-weight: bold;
}

.dialog-message .md-li-ordered {
    padding-left: 24px;
}

.dialog-message .md-li-ordered::before {
    content: none;
}

.dialog-message .md-strong {
    font-weight: 600;
    color: var(--text-main);
}

.dialog-message .md-em {
    font-style: italic;
    color: var(--text-secondary);
}

.dialog-message .md-inline-code {
    background: rgba(0, 0, 0, 0.12);
    padding: 1px 6px;
    border-radius: 4px;
    font-family: 'SF Mono', Monaco, Consolas, monospace;
    font-size: 13px;
    color: #d63384;
}

.dialog-message .md-link {
    color: #007AFF;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.dialog-message .md-link:hover {
    border-bottom-color: #007AFF;
}

.dialog-message .md-hr {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(128, 128, 128, 0.3), transparent);
    margin: 12px 0;
}

.dialog-message .md-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
    font-size: 13px;
}

.dialog-message .md-th,
.dialog-message .md-td {
    padding: 8px 12px;
    text-align: left;
    border: 1px solid rgba(128, 128, 128, 0.15);
    line-height: 1.4;
}

.dialog-message .md-th {
    background: rgba(0, 0, 0, 0.08);
    font-weight: 600;
    color: var(--text-main);
}

.dialog-message .md-td {
    color: var(--text-secondary);
}

.dialog-message .md-pre {
    background: rgba(0, 0, 0, 0.08);
    padding: 12px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 8px 0;
    border: 1px solid rgba(128, 128, 128, 0.1);
}

.dialog-message .md-code {
    font-family: 'SF Mono', Monaco, Consolas, monospace;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-secondary);
    white-space: pre;
}

.dialog-options {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-main);
    cursor: pointer;
    user-select: none;
    padding: 6px 12px;
    background: rgba(128, 128, 128, 0.1);
    border-radius: 100px;
    transition: background 0.2s ease;
}

.checkbox-container:hover {
    background: rgba(0, 0, 0, 0.08);
}

.dialog-buttons {
    display: flex;
    justify-content: center;
    width: 100%;
}

.dialog-btn {
    padding: 12px 28px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(var(--glass-blur-light));
    -webkit-backdrop-filter: blur(var(--glass-blur-light));
    color: var(--text-main);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.dialog-btn.primary {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.dialog-btn.primary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.dialog-btn:active {
    transform: scale(0.96);
}

/* 局部加载器（非阻塞式） */
.local-loader {
    position: fixed;
    top: 30px;
    right: 30px;
    width: auto;
    height: auto;
    background: transparent;
    z-index: var(--z-toast);
    pointer-events: none; /* 关键：允许点击穿透 */
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.local-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.local-loader .loader-content {
    display: flex;
    flex-direction: row; /* 改为横向 */
    align-items: center;
    gap: 12px;
    background: transparent;
    padding: 12px 20px;
    border-radius: 100px;
    border: none;
    box-shadow: none;
}

.local-loader .loader-text {
    color: var(--text-main);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.local-loader .progress-bar-container {
    width: 120px;
    height: 4px;
    background-color: rgba(128, 128, 128, 0.3);
    border-radius: 2px;
    overflow: hidden;
    box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.3);
}

.local-loader .progress-bar-fill {
    width: 0%;
    height: 100%;
    background-color: var(--text-main);
    box-shadow: 0 0 5px var(--text-main);
    transition: width 0.3s ease;
}

.local-loader .progress-bar-fill.looping {
    animation: local-load-progress 1.5s infinite;
}

@keyframes local-load-progress {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* 注册 CSS 变量以支持平滑过渡 */
@property --color-1 {
    syntax: '<color>';
    initial-value: rgba(147, 197, 253, 0.6);
    inherits: true;
}

@property --color-2 {
    syntax: '<color>';
    initial-value: rgba(207, 150, 250, 0.6);
    inherits: true;
}

@property --color-3 {
    syntax: '<color>';
    initial-value: rgba(110, 231, 183, 0.6);
    inherits: true;
}

@property --primary-color {
    syntax: '<color>';
    initial-value: #667eea;
    inherits: true;
}

@property --accent-color {
    syntax: '<color>';
    initial-value: #4ecdc4;
    inherits: true;
}

@property --favorite-color {
    syntax: '<color>';
    initial-value: #ff5e62;
    inherits: true;
}

html {
    background: #000000;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html::-webkit-scrollbar {
    display: none;
}

:root {
    --initial-loader-bg: #000000;
    --initial-loader-fg: #ffffff;
    --text-main: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.6);
    /* --glass-bg 和 --glass-border 已迁移至 glass-system.css */
    --bg-main: #000000;
    --lyric-spacing: var(--default-lyric-spacing, 30px);
    --lyric-size: var(--default-lyric-size, 28px);
    
    /* 动态背景色默认值 - 全黑 */
    --color-1: rgba(30, 30, 30, 0.3);
    --color-2: rgba(40, 40, 40, 0.3);
    --color-3: rgba(50, 50, 50, 0.3);
    --primary-color: rgba(100, 100, 100, 0.8);
    --accent-color: rgba(120, 120, 120, 0.8);
    --favorite-color: rgba(255, 80, 80, 0.8);

    /* 玻璃模糊效果分级系统已迁移至 glass-system.css */

    /* 确保颜色变量变化时有平滑过渡 */
    transition: --color-1 1.5s ease, --color-2 1.5s ease, --color-3 1.5s ease, --primary-color 1.5s ease, --accent-color 0.8s ease, --favorite-color 0.8s ease;
}

/* 初始加载页面 */
.initial-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-main);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: var(--z-top);
    opacity: 1;
    transition: opacity 0.5s ease, visibility 0.5s;
}

.initial-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.initial-loader .loader-content {
    display: flex;
    flex-direction: column; /* 垂直排列 */
    align-items: center;
    gap: 20px;
    background: transparent;
    padding: 40px;
    border-radius: 20px;
    border: none;
    box-shadow: none;
}

.initial-loader .loader-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.initial-loader .loader-logo img {
    display: block;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
    animation: logo-pulse 2s ease-in-out infinite;
}

@keyframes logo-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

/* 版本信息 */
.version-info {
    position: fixed;
    bottom: 20px;
    right: 20px;
    transform: none;
    background: var(--glass-bg);
    color: var(--text-secondary);
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 12px;
    backdrop-filter: blur(var(--glass-blur-light));
    -webkit-backdrop-filter: blur(var(--glass-blur-light));
    border: 1px solid var(--glass-border);
    z-index: calc(var(--z-overlay) + 500);
    opacity: 0.7;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    user-select: none;
    pointer-events: auto;
}

.version-info:hover {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.version-info-icon {
    opacity: 0.6;
    transition: all 0.3s ease;
}

.version-info:hover .version-info-icon {
    opacity: 1;
    transform: rotate(360deg);
}

.initial-loader .progress-bar-container {
    width: 250px;
    height: 6px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
    overflow: hidden;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.3);
}

.initial-loader .progress-bar-fill {
    width: 0%;
    height: 100%;
    background-color: var(--text-main);
    box-shadow: 0 0 8px var(--text-main);
    transition: width 0.3s ease;
}

.initial-loader .progress-bar-fill.looping {
    animation: initial-load-progress 2s infinite;
}

@keyframes initial-load-progress {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.initial-loader .loader-text {
    color: var(--text-main);
    font-size: 16px;
    font-weight: 600;
    opacity: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.initial-loader .progress-percent {
    color: var(--text-main);
    font-size: 14px;
    font-weight: 500;
    opacity: 0.8;
    margin-top: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 重试按钮样式 */
.initial-loader .retry-button {
    display: none;
    margin-top: 20px;
    padding: 12px 32px;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    letter-spacing: 0.5px;
    animation: retry-button-pulse 2s ease-in-out infinite;
}

.initial-loader .retry-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.initial-loader .retry-button:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.4);
}

.initial-loader .retry-button:disabled {
    background: linear-gradient(135deg, #555 0%, #444 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    animation: none;
}

@keyframes retry-button-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    }
}

/* 设置滑块样式 */
.setting-slider-container {
    width: 100%;
    padding: 8px 0;
    position: relative;
}

.setting-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    background: rgba(128, 128, 128, 0.2);
    border-radius: 2px;
    outline: none;
}

.slider-tooltip {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(var(--glass-blur-light));
    -webkit-backdrop-filter: blur(var(--glass-blur-light));
    color: white;
    padding: 8px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    z-index: var(--z-header);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.setting-slider-container:hover .slider-tooltip,
.volume-bar-container:hover .slider-tooltip,
.progress-bar:hover .slider-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(-2px);
}

.setting-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #ffffff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.2s ease;
}

.setting-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.setting-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #ffffff;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    transition: transform 0.2s ease;
}

.setting-slider::-moz-range-thumb:hover {
    transform: scale(1.1);
}

/* 动态流体背景：优化为全屏覆盖并消除分层感 */
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    /* 使用 min-width/height 并配合 calc 确保在任何缩放级别下都能覆盖全屏，消除底部黑边 */
    width: 100vw;
    height: 100vh;
    min-width: calc(100vw * var(--page-zoom, 1));
    min-height: calc(100vh * var(--page-zoom, 1));
    z-index: var(--z-bg);
    overflow: hidden;
    background: var(--bg-main);
    pointer-events: none;
    transition: background 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    /* 反向缩放：抵消父级 zoom，使背景始终填满视口 */
    zoom: calc(1 / var(--page-zoom, 1));
}

.bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    mix-blend-mode: screen;
}

.blob-1 {
    width: 180vw;
    height: 180vh;
    top: -60%;
    left: -60%;
    background: radial-gradient(circle, color-mix(in srgb, var(--color-1, #667eea) 60%, transparent) 0%, transparent 50%);
    animation: move-1 60s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.blob-2 {
    width: 160vw;
    height: 160vh;
    bottom: -50%;
    right: -50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--color-2, #764ba2) 60%, transparent) 0%, transparent 50%);
    animation: move-2 70s infinite alternate-reverse cubic-bezier(0.4, 0, 0.2, 1);
    animation-delay: -5s;
}

.blob-3 {
    width: 140vw;
    height: 140vh;
    top: -30%;
    right: -30%;
    background: radial-gradient(circle, color-mix(in srgb, var(--color-3, #6B8DD6) 60%, transparent) 0%, transparent 50%);
    animation: move-3 65s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
    animation-delay: -10s;
}

@keyframes move-1 {
    0% { transform: translate(0, 0) scale(1); opacity: 0.5; }
    25% { transform: translate(30%, 20%) scale(1.2); opacity: 0.7; }
    50% { transform: translate(15%, 35%) scale(1.1); opacity: 0.6; }
    75% { transform: translate(-20%, 15%) scale(1.2); opacity: 0.7; }
    100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
}

@keyframes move-2 {
    0% { transform: translate(10%, -10%) scale(1.1); opacity: 0.5; }
    25% { transform: translate(-20%, 15%) scale(1.2); opacity: 0.7; }
    50% { transform: translate(-15%, 25%) scale(1.1); opacity: 0.6; }
    75% { transform: translate(15%, 20%) scale(1.2); opacity: 0.7; }
    100% { transform: translate(10%, -10%) scale(1.1); opacity: 0.5; }
}

@keyframes move-3 {
    0% { transform: translate(-5%, 15%) scale(1); opacity: 0.5; }
    25% { transform: translate(20%, -5%) scale(1.1); opacity: 0.7; }
    50% { transform: translate(15%, 20%) scale(1); opacity: 0.6; }
    75% { transform: translate(-15%, -15%) scale(1.1); opacity: 0.7; }
    100% { transform: translate(-5%, 15%) scale(1); opacity: 0.5; }
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: transparent;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
    height: 100vh;
    overflow: hidden;
    color: var(--text-main);
    position: relative;
    transition: color 0.5s ease, zoom 0.3s ease;
    zoom: var(--page-zoom, 1);
}

/* ✅ 彻底修复 #1: 强制约束首页高度并启用滚动 */
.home-page.active {
    opacity: 1;
    visibility: visible;
    z-index: var(--z-base);

    /* 🔥 关键修复：限制高度为视口高度，强制内容滚动 */
    height: calc(100vh / var(--page-zoom, 1)) !important;
    max-height: calc(100vh / var(--page-zoom, 1)) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;

    /* 确保 padding 不会撑开容器 */
    box-sizing: border-box;
}

/* 首页样式 - 向左对齐 */
.home-page {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100%;
    padding: 160px 0 180px 0;
    overflow-y: auto;
    z-index: var(--z-base);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0.4s;
    mask-image: none;
    -webkit-mask-image: none;
}

.home-header {
    max-width: 1200px;
    margin: 0 auto 40px auto;
    padding: 0 40px;
}

.home-page::-webkit-scrollbar {
    width: 6px;
}

.home-page::-webkit-scrollbar-track {
    background: transparent;
}

.home-page::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-color), var(--accent-color));
    border-radius: 3px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.home-page:hover::-webkit-scrollbar-thumb {
    opacity: 1;
}

.home-page::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-color), var(--favorite-color));
    transform: scaleX(1.2);
}

.home-page {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) transparent;
}

/* 首页歌单全屏适配 */
.playlist {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ========== 歌单骨架屏（初始加载）========== */
.playlist-skeleton {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 8px 0;
}
.playlist-skeleton.hidden {
    display: none;
}
.skeleton-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    overflow: hidden;
}
.skeleton-art {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(90deg, rgba(255,255,255,0.06) 25%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.06) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    flex-shrink: 0;
}
.skeleton-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.skeleton-info::before,
.skeleton-info::after {
    content: '';
    display: block;
    height: 14px;
    border-radius: 7px;
    background: linear-gradient(90deg, rgba(255,255,255,0.06) 25%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.06) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
}
.skeleton-info::before {
    width: 45%;
}
.skeleton-info::after {
    width: 28%;
}
@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ========== 音乐主题加载指示器 ========== */
.music-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    padding: 40px 20px;
    position: relative;
    z-index: var(--z-content);
}

.music-loader.hidden {
    display: none !important;
}

.loader-container {
    position: relative;
    width: 280px;
    height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    z-index: calc(var(--z-content) + 1);
}

/* 旋转光环 */
.loader-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid transparent;
}

.ring-1 {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-top-color: rgba(102, 126, 234, 0.6);
    border-right-color: rgba(118, 75, 162, 0.4);
    animation: ring-rotate 3s linear infinite;
}

.ring-2 {
    width: 240px;
    height: 240px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-top-color: rgba(0, 198, 255, 0.4);
    border-left-color: rgba(0, 114, 255, 0.3);
    animation: ring-rotate 4s linear infinite reverse;
}

.ring-3 {
    width: 270px;
    height: 270px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-bottom-color: rgba(240, 147, 251, 0.3);
    border-right-color: rgba(245, 87, 108, 0.2);
    animation: ring-rotate 5s linear infinite;
}

@keyframes ring-rotate {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 声波均衡器 */
.equalizer {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 6px;
    height: 60px;
    z-index: 10;
    position: relative;
}

.eq-bar {
    width: 8px;
    background: linear-gradient(to top, #667eea, #764ba2);
    border-radius: 4px;
    box-shadow: 0 0 12px rgba(102, 126, 234, 0.5);
}

.bar-1 { 
    height: 20px; 
    animation: eq-bounce 1s ease-in-out infinite; 
    animation-delay: 0s; 
}
.bar-2 { 
    height: 35px; 
    animation: eq-bounce 1s ease-in-out infinite; 
    animation-delay: 0.1s; 
}
.bar-3 { 
    height: 50px; 
    animation: eq-bounce 1s ease-in-out infinite; 
    animation-delay: 0.2s; 
}
.bar-4 { 
    height: 35px; 
    animation: eq-bounce 1s ease-in-out infinite; 
    animation-delay: 0.3s; 
}
.bar-5 { 
    height: 20px; 
    animation: eq-bounce 1s ease-in-out infinite; 
    animation-delay: 0.4s; 
}

@keyframes eq-bounce {
    0%, 100% { 
        transform: scaleY(0.3);
        opacity: 0.5;
    }
    50% { 
        transform: scaleY(1);
        opacity: 1;
    }
}

/* 跳动的音符 */
.music-notes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.note {
    position: absolute;
    font-size: 24px;
    font-weight: bold;
    opacity: 0;
    background: linear-gradient(135deg, #667eea, #764ba2, #00c6ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 8px rgba(102, 126, 234, 0.4));
}

.note-1 {
    top: 15%;
    left: 20%;
    animation: note-float 2.5s ease-in-out infinite;
    animation-delay: 0s;
}

.note-2 {
    top: 25%;
    right: 18%;
    animation: note-float 2.8s ease-in-out infinite;
    animation-delay: 0.6s;
    font-size: 28px;
}

.note-3 {
    bottom: 30%;
    left: 15%;
    animation: note-float 3s ease-in-out infinite;
    animation-delay: 1.2s;
    font-size: 20px;
}

.note-4 {
    bottom: 20%;
    right: 22%;
    animation: note-float 2.6s ease-in-out infinite;
    animation-delay: 1.8s;
    font-size: 26px;
}

@keyframes note-float {
    0% { 
        opacity: 0;
        transform: translateY(20px) scale(0.8) rotate(-10deg);
    }
    25% {
        opacity: 0.9;
        transform: translateY(-10px) scale(1.1) rotate(5deg);
    }
    50% { 
        opacity: 1;
        transform: translateY(-25px) scale(1) rotate(0deg);
    }
    75% {
        opacity: 0.7;
        transform: translateY(-15px) scale(0.95) rotate(-5deg);
    }
    100% { 
        opacity: 0;
        transform: translateY(-35px) scale(0.85) rotate(10deg);
    }
}

/* 加载文字 */
.loader-text {
    font-size: 16px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 1px;
    text-align: center;
    z-index: 10;
    position: relative;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.7), 
        rgba(255, 255, 255, 0.95), 
        rgba(255, 255, 255, 0.7)
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: text-shimmer 2s linear infinite;
}

@keyframes text-shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* 脉冲点 */
.pulse-dots {
    display: flex;
    gap: 12px;
    z-index: 10;
    position: relative;
}

.pulse-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    box-shadow: 0 0 12px rgba(102, 126, 234, 0.6);
}

.dot-1 { animation: pulse-scale 1.4s ease-in-out infinite; animation-delay: 0s; }
.dot-2 { animation: pulse-scale 1.4s ease-in-out infinite; animation-delay: 0.2s; }
.dot-3 { animation: pulse-scale 1.4s ease-in-out infinite; animation-delay: 0.4s; }

@keyframes pulse-scale {
    0%, 100% { 
        transform: scale(0.6);
        opacity: 0.4;
        box-shadow: 0 0 8px rgba(102, 126, 234, 0.3);
    }
    50% { 
        transform: scale(1.3);
        opacity: 1;
        box-shadow: 0 0 20px rgba(102, 126, 234, 0.8);
    }
}

/* 浅色模式适配 */
[data-theme="light"] .music-loader .eq-bar {
    background: linear-gradient(to top, #4a5568, #2d3748);
    box-shadow: 0 0 12px rgba(74, 85, 104, 0.4);
}

[data-theme="light"] .note {
    background: linear-gradient(135deg, #4a5568, #2d3748, #1a202c);
    -webkit-background-clip: text;
    background-clip: text;
    filter: drop-shadow(0 2px 8px rgba(74, 85, 104, 0.3));
}

[data-theme="light"] .loader-text {
    background: linear-gradient(90deg, 
        rgba(45, 55, 72, 0.7), 
        rgba(45, 55, 72, 0.95), 
        rgba(45, 55, 72, 0.7)
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
}

[data-theme="light"] .pulse-dot,
[data-theme="light"] .pulse-dot {
    background: linear-gradient(135deg, #4a5568, #2d3748);
    box-shadow: 0 0 12px rgba(74, 85, 104, 0.5);
}

/* ========== 列表项入场动画 ========== */
.song-item {
    opacity: 0;
    transform: translateY(20px);
    animation: song-item-enter 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* 错开动画延迟，创造波浪式入场效果 */
.song-item:nth-child(1) { animation-delay: 0ms; }
.song-item:nth-child(2) { animation-delay: 40ms; }
.song-item:nth-child(3) { animation-delay: 80ms; }
.song-item:nth-child(4) { animation-delay: 120ms; }
.song-item:nth-child(5) { animation-delay: 160ms; }
.song-item:nth-child(6) { animation-delay: 200ms; }
.song-item:nth-child(7) { animation-delay: 240ms; }
.song-item:nth-child(8) { animation-delay: 280ms; }
.song-item:nth-child(9) { animation-delay: 320ms; }
.song-item:nth-child(10) { animation-delay: 360ms; }
.song-item:nth-child(n+11) { animation-delay: 400ms; }

@keyframes song-item-enter {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ========== 封面图加载中转圈指示器 ========== */
.song-art {
    position: relative;
    overflow: hidden;
}

.song-art::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-top-color: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: art-spin 0.8s linear infinite;
    z-index: 2;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.song-art.loaded::before {
    opacity: 0;
}

@keyframes art-spin {
    to { transform: rotate(360deg); }
}

/* 封面图加载中占位背景 */
.song-art:not(.loaded) {
    background: linear-gradient(135deg, rgba(255,255,255,0.06) 25%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.06) 75%) !important;
    background-size: 200% 100% !important;
    animation: skeleton-shimmer 1.5s ease-in-out infinite !important;
}

/* 歌曲信息加载中骨架屏效果 */
.song-item.loading-info .song-title,
.song-item.loading-info .song-artist {
    color: transparent !important;
    background: linear-gradient(90deg, rgba(255,255,255,0.06) 25%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.06) 75%);
    background-size: 200% 100%;
    border-radius: 7px;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    min-width: 80px;
    display: inline-block;
}

.song-item.loading-info .song-artist {
    min-width: 60px;
}

.song-item.loading-info .song-duration {
    visibility: hidden;
}

/* 搜索/刷新时整体列表加载动画 */
.playlist-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(var(--glass-blur-light));
    -webkit-backdrop-filter: blur(var(--glass-blur-light));
    border-radius: 24px;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.playlist-loading-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.playlist-loading-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(255, 255, 255, 0.15);
    border-top-color: var(--accent-color, #4ecdc4);
    border-radius: 50%;
    animation: art-spin 0.8s linear infinite;
}

/* ========== 按钮加载转圈状态 ========== */
.btn-circle.loading-spin {
    pointer-events: none;
    position: relative;
}

.btn-circle.loading-spin svg {
    opacity: 0.3;
}

.btn-circle.loading-spin::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--accent-color, #4ecdc4);
    border-radius: 50%;
    animation: art-spin 0.8s linear infinite;
    z-index: 10;
}

/* 搜索按钮特殊处理 */
#searchBtn.loading-spin::after {
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border-width: 1.5px;
}

/* ========== 抽屉列表项入场动画 ========== */
.drawer-item {
    opacity: 0;
    transform: translateX(15px);
    animation: drawer-item-enter 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.drawer-item:nth-child(1) { animation-delay: 0ms; }
.drawer-item:nth-child(2) { animation-delay: 30ms; }
.drawer-item:nth-child(3) { animation-delay: 60ms; }
.drawer-item:nth-child(4) { animation-delay: 90ms; }
.drawer-item:nth-child(5) { animation-delay: 120ms; }
.drawer-item:nth-child(n+6) { animation-delay: 150ms; }

@keyframes drawer-item-enter {
    from {
        opacity: 0;
        transform: translateX(15px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.song-item {
    width: 100%;
    position: relative;
    isolation: isolate;
    background: transparent;
    border-radius: 24px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    overflow: hidden;
}

.song-item::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(var(--glass-blur-list)) saturate(var(--glass-saturate-list));
    -webkit-backdrop-filter: blur(var(--glass-blur-list)) saturate(var(--glass-saturate-list));
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--glass-shadow-sm);
    pointer-events: none;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.song-item:hover {
    transform: translateY(-2px) !important;
}

.song-item:hover::before {
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2), 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* 移除多余的悬停样式 */
/* .song-item:hover .btn-favorite {
    opacity: 1;
    transform: translateX(0);
} */

.song-item.active::before {
    background: rgba(128, 128, 128, 0.15);
    border-color: transparent;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

/* 收藏按钮样式 */
.btn-favorite {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    opacity: 0.55;
    transform: translateX(0);
    flex-shrink: 0;
}

.btn-favorite:hover {
    background: transparent;
    transform: scale(1.2);
    color: #ff5e62;
    opacity: 1;
}

.btn-favorite.active {
    opacity: 1;
    transform: translateX(0);
    color: #ff5e62;
    background: transparent;
    border: none;
}

/* 调整 SVG 大小和填充 */
.btn-favorite svg {
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
    fill: transparent; /* 默认空心 */
    stroke: currentColor;
    stroke-width: 2px;
}

.btn-favorite:hover svg {
    fill: rgba(255, 94, 98, 0.2);
}

.btn-favorite.active svg {
    fill: #ff5e62;
    stroke: #ff5e62;
}

/* ========== 歌曲操作按钮组（收藏+下载+批量选择）========== */
.song-actions {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-right: 12px;
    flex-shrink: 0;
}

/* 单曲下载按钮 */
.btn-download-song {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    opacity: 0.55;
}

.btn-download-song:hover {
    color: var(--accent-color);
    opacity: 1;
    transform: scale(1.15);
}

.btn-download-song.downloading {
    color: var(--accent-color);
    opacity: 1;
    position: relative;
}
.btn-download-song.downloading svg {
    animation: none;
    opacity: 0.3;
}
.btn-download-song.downloading::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-color);
    box-shadow: 0 0 6px var(--accent-color);
    animation: dl-pulse 1.2s ease-in-out infinite;
}

@keyframes dl-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(2); opacity: 0.4; }
}

/* 批量选择 checkbox */
.batch-select-checkbox {
    display: none;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.batch-select-checkbox input {
    display: none;
}

.batch-select-checkbox span {
    width: 18px;
    height: 18px;
    border: 2px solid var(--text-secondary);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.batch-select-checkbox span::after {
    content: '';
    width: 10px;
    height: 6px;
    border-left: 2px solid transparent;
    border-bottom: 2px solid transparent;
    transform: rotate(-45deg) scale(0);
    transform-origin: center;
    transition: all 0.15s ease;
}

.batch-select-checkbox input:checked + span {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.batch-select-checkbox input:checked + span::after {
    border-left-color: #fff;
    border-bottom-color: #fff;
    transform: rotate(-45deg) scale(1);
}

.batch-select-checkbox:hover {
    opacity: 1;
}

/* 批量模式激活时的样式 */
.batch-mode-active .batch-select-checkbox {
    display: flex;
}
.batch-mode-active .song-item.batch-selectable .song-actions {
    gap: 6px;
}
.batch-mode-active .btn-download-song {
    opacity: 0.3;
    pointer-events: none;
}

/* ========== 批量操作栏 ========== */
.batch-action-bar {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(120%);
    z-index: var(--z-dock);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 14px 24px;
    /* 玻璃效果由 .glass.glass--dark::before 提供 */
    border-radius: 20px;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
    max-width: calc(100% - 48px);
}

.batch-action-bar.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.light-bg .batch-action-bar {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 0, 0, 0.06);
}

.batch-action-left {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: var(--text-secondary);
}

.batch-action-left strong {
    color: var(--accent-color);
    font-size: 16px;
}

.batch-action-link {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 13px;
    padding: 4px 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.batch-action-link:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.08);
}

.batch-action-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.batch-download-main-btn {
    background: color-mix(in srgb, var(--accent-color) 15%, transparent) !important;
    border: 1px solid color-mix(in srgb, var(--accent-color) 30%, transparent) !important;
    color: var(--accent-color) !important;
}

.batch-download-main-btn:hover:not(:disabled) {
    background: color-mix(in srgb, var(--accent-color) 30%, transparent) !important;
    transform: scale(1.08);
}

/* ========== 下载音质选择弹窗 ========== */
.quality-picker-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: var(--z-menu);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.quality-picker-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.quality-picker-modal {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur-standard)) saturate(var(--glass-saturate-standard));
    -webkit-backdrop-filter: blur(var(--glass-blur-standard)) saturate(var(--glass-saturate-standard));
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 28px 32px;
    width: 340px;
    max-width: calc(100vw - 48px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 1px rgba(255, 255, 255, 0.1) inset;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.quality-picker-modal.show {
    transform: scale(1) translateY(0);
}

.quality-picker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
}

.quality-picker-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.quality-picker-close:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.08);
}

.quality-picker-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quality-option {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 14px 18px;
    background: transparent;
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    cursor: pointer;
    color: var(--text-main);
    text-align: left;
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.quality-option:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: color-mix(in srgb, var(--accent-color) 30%, transparent);
    transform: translateX(4px);
}

.quality-option.active {
    background: color-mix(in srgb, var(--accent-color) 18%, transparent);
    border-color: var(--accent-color);
    box-shadow: 0 0 12px color-mix(in srgb, var(--accent-color) 15%, transparent);
}
.quality-option.active .qo-name,
.quality-option.active .qo-desc {
    color: var(--accent-color);
}

.qo-name {
    font-size: 15px;
    font-weight: 500;
}

.qo-desc {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.quality-picker-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--glass-border);
}

.qp-btn {
    padding: 8px 22px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid var(--glass-border);
    background: transparent;
    color: var(--text-secondary);
}

.qp-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
}

.qp-btn-confirm {
    background: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    color: #0a0a0c !important;
}
.qp-btn-confirm:hover {
    background: color-mix(in srgb, var(--accent-color) 85%, white) !important;
    transform: scale(1.03);
}

.song-item.playing {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: transparent !important;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3) !important;
    transform: translateY(-2px) !important;
}

/* 播放状态动画 */
.playing-icon {
    display: none;
    align-items: flex-end;
    gap: 2px;
    width: 20px;
    height: 16px;
    margin-left: 15px;
}

.song-item.playing .playing-icon,
.drawer-item.playing .playing-icon {
    display: flex;
}

.playing-bar {
    width: 3px;
    background: var(--text-main);
    border-radius: 2px;
    animation: music-bar-dance 0.8s ease-in-out infinite alternate;
}

.playing-bar:nth-child(2) { animation-delay: 0.2s; height: 100%; }
.playing-bar:nth-child(3) { animation-delay: 0.4s; height: 60%; }
.playing-bar:nth-child(1) { height: 80%; }

@keyframes music-bar-dance {
    from { height: 30%; }
    to { height: 100%; }
}

.song-art {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--favorite-color), var(--color-2, #ff9966));
    background-size: cover;
    background-position: center;
    margin-right: 16px;
    flex-shrink: 0;
}

.song-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow: hidden; /* 核心：裁剪溢出 */
    margin-right: 12px;
    min-width: 0; /* 允许 flex 项目缩小到内容以下 */
}

.song-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap; /* 不换行 */
    width: fit-content;
    display: inline-block;
    /* 移除 will-change: transform; 文本不需要硬件加速 */
}

.song-artist {
    font-size: 14px;
    color: var(--text-secondary);
    white-space: nowrap; /* 不换行 */
    width: fit-content;
    display: inline-block;
    /* 移除 will-change: transform; 文本不需要硬件加速 */
}

/* 迷你播放器样式 - 保持通透玻璃质感 */
/* 底部 Dock 栏容器 */
.bottom-dock {
    position: fixed;
    bottom: 24px;
    /* 移除 transform 居中，改用 flex 或 margin 居中，避免堆叠上下文问题 */
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 100%; 
    max-width: 800px; /* 进一步增加最大宽度，提供更多空间 */
    height: 56px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    z-index: var(--z-dock);
    pointer-events: none; /* 容器不阻挡点击 */
    /* 关键：确保容器本身不参与任何背景或滤镜渲染 */
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    /* 确保容器变换时启用硬件加速，减少重绘 */
    /* 移除 will-change 以避免副作用 */
    /* will-change: transform, opacity; */
    
    /* 默认 transform 为 none */
    transform: none;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* 导航菜单 */
.nav-menu {
    pointer-events: auto;
    width: 56px;
    height: 56px;
    /* 玻璃效果由 .glass.glass--lg::before 提供 */
    border-radius: 28px;
    display: flex;
    align-items: center;
    /* justify-content: center; */ /* 移除居中对齐，改为相对定位控制 */
    cursor: pointer;
    transition: width 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    will-change: width;  /* 从3个属性减少到1个（只在展开动画时需要）*/
}

.nav-menu:hover {
    /* 玻璃效果由 .glass.glass--lg:hover::before 提供 */
}

.nav-menu.expanded {
    /* 宽度计算：
       左内边距 12px + 右内边距 12px + 
       图标宽度 48px * 2 (两个图标) + 
       图标间距 12px (通过 gap 控制) 
       = 24 + 96 + 12 = 132px
    */
    width: 124px; 
}

/* 展开后的选项容器 */
.nav-options {
    display: flex;
    align-items: center;
    /* 改用 gap 控制间距，更灵活适配数量 */
    gap: 12px; 
    padding: 0 12px; 
    width: 100%;
    height: 100%;
    opacity: 1; 
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    pointer-events: auto;
}

/* 导航项 */
.nav-item {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    flex-shrink: 0; 
    position: relative;
    border: none; /* 彻底移除基础边框 */
    outline: none; /* 移除 outline */
    min-width: 0; /* 允许宽度缩小到0 */
}

/* 收起状态下：消除 gap 确保居中 */
    .nav-menu:not(.expanded) .nav-options {
        gap: 0 !important;
        padding: 0 !important;
        justify-content: center !important;
        width: 100% !important;
        height: 100% !important;
    }

/* 激活状态：圆形高亮 + 主题色发光 */
.nav-item.active {
    color: #ffffff; 
    background: var(--primary-color, #667eea);
    /* 增加模糊半径，使发光更柔和 */
    box-shadow: 0 0 25px 5px var(--primary-color, #667eea); 
    border: none; /* 确保无边框 */
    transform: scale(1.05);
}

/* 全屏播放器激活时，隐藏底部 Dock 栏 */
.player-overlay.active ~ .bottom-dock {
    transform: translateY(100px); /* 仅向下移出屏幕，不再需要 translateX */
    opacity: 0;
    pointer-events: none;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* 移除之前的小圆点样式 */
.nav-menu.expanded .nav-item.active::after {
    display: none;
}

/* 收起状态下，保持发光效果 */
    .nav-menu:not(.expanded) .nav-item.active {
        background: var(--primary-color, #667eea) !important;
        color: #ffffff !important;
        box-shadow: 0 0 25px 5px var(--primary-color, #667eea) !important;
        transform: scale(1.05);
    }

/* 悬停效果优化 */
.nav-item:hover:not(.active) {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

    /* 收起状态下：消除 gap 确保居中 */
    .nav-menu:not(.expanded) .nav-options {
        gap: 0 !important;
        padding: 0 !important;
        justify-content: center !important;
        width: 100% !important;
        height: 100% !important;
        display: flex !important;
        /* 关键：确保内部元素居中，不受子元素宽度变化影响 */
        align-items: center !important;
    }

    /* 收起状态下：只显示激活的图标 */
    .nav-menu:not(.expanded) .nav-item.active {
        width: 40px !important;
        height: 40px !important;
        margin: 0 !important; /* 强制去除margin */
        transform: none !important;
        opacity: 1 !important;
        position: static !important;
        /* 折叠状态下移除发光和背景色 */
        background: transparent !important;
        box-shadow: none !important;
        color: var(--text-main) !important;
        flex: 0 0 40px !important; /* 固定 flex 占用 */
    }

    /* 收起状态下：非激活图标 - 关键修复 */
    .nav-menu:not(.expanded) .nav-item:not(.active) {
        width: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        opacity: 0 !important;
        overflow: hidden !important;
        pointer-events: none;
        flex: 0 0 0 !important; /* 强制不占用任何 flex 空间 */
        border: none !important;
        min-width: 0 !important; /* 覆盖全局 min-width */
    }
    
    /* 确保 nav-options 总是居中 */
    .nav-options {
        justify-content: center !important;
    }

    /* 确保容器相对定位 */
    .nav-menu {
        position: relative;
    }

/* 展开状态下：显示所有图标 */
.nav-menu.expanded .nav-item {
    opacity: 1;
    transform: translateX(0);
    width: 48px;
    pointer-events: auto;
    overflow: visible;
}

/* .home-blur-effect 已迁移至 glass-system.css 的 .glass-fade-bottom */

.mini-player {
    /* 移除固定定位，改为 flex item */
    position: static;
    transform: none;
    /* 恢复 flex: 1，让它填充剩余空间，配合容器的最大宽度限制 */
    flex: 1;
    width: auto;
    min-width: 0; /* 允许缩小，防止内容撑开 */
    max-width: none;
    height: 56px;
    /* 胶囊圆角 */
    border-radius: 28px !important;
    display: flex;
    align-items: center;
    padding: 0 16px 0 12px;
    z-index: var(--z-dock);
    cursor: pointer;
    transition: width 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), flex 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    background-image: none;
    filter: none;
    box-sizing: border-box;
    margin: 0;
    pointer-events: auto; /* 确保可点击 */
}

/* 调整迷你播放器内部布局 */
.mini-info {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    gap: 8px;
}

.mini-text {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex: 1;
    min-width: 0;
    position: relative;
    /* 默认移除遮罩 */
    mask-image: none;
    -webkit-mask-image: none;
}

.mini-title, .mini-artist {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.mini-controls {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 4px;
}

/* 迷你播放器特定的悬停样式，避免位置偏移 */
.mini-player {
    position: relative;
    overflow: hidden;
}

.mini-player:hover {
    /* 玻璃效果由 .glass.glass--lg:hover::before 提供 */
    transform: translateY(-2px);
}

/* 迷你播放器背景进度条 - 纯白色无彩色 */
.mini-progress-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: rgba(255, 255, 255, 0.12);
    border-radius: inherit;
    pointer-events: none;
    z-index: 0;
    transition: width 0.1s linear;
}

/* 确保迷你播放器在激活状态下也不会抖动 */
.mini-player:active {
    /* 保持 translateZ(0) */
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

/* 移除之前的遮罩伪元素 - 已废弃，保持伪元素挂载玻璃效果 */

/* 深度修复全屏播放器点击阻塞问题 */
.player-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    z-index: var(--z-overlay);
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    overflow: hidden; 
    pointer-events: none; /* 修改：自身不接收事件，完全穿透给内部 */
}

/* 顶部操作栏容器 - 确保绝对不被遮挡 */
.overlay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: clamp(20px, 4vh, 40px) clamp(20px, 5vw, 60px);
    width: 100%;
    position: absolute; 
    top: 0;
    left: 0;
    z-index: var(--z-header); 
    pointer-events: none; 
    box-sizing: border-box;
}

/* 头部按钮恢复点击 */
.overlay-header .back-button,
.overlay-header .settings-container,
.overlay-header .btn-circle,
.overlay-header #playerSettingsBtn,
.overlay-header #closePlayerBtn {
    pointer-events: auto !important;
    cursor: pointer;
    position: relative;
    z-index: var(--z-header);
}

/* 设置菜单需确保高层级且阻止穿透 */
.settings-menu {
    z-index: var(--z-header) !important;
    pointer-events: auto !important;
}

/* 播放器主内容容器 */
.player-overlay .main-container {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 120px 0 60px Clamp(40px, 8vw, 200px); 
    gap: clamp(30px, 5vw, 100px);
    position: relative;
    z-index: var(--z-content); 
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    pointer-events: none; 
}

/* 左右两列恢复点击 */
.player-overlay .left-column,
.player-overlay .right-column {
    pointer-events: auto;
}

/* 歌词行过渡效果优化 - 减小过大的弹簧感，使其更丝滑 */
.lyrics-line {
    will-change: transform, opacity, font-size;
}

/* 歌词行基础样式 - 核心变量绑定 + 羽化模糊过渡 */
.lyrics-line {
    position: relative;
    width: 100%;
    max-width: 100%;
    text-align: left;
    font-size: var(--lyric-size, var(--default-lyric-size, 24px)) !important; /* 强制应用设置 */
    padding: var(--lyric-spacing, var(--default-lyric-spacing, 12px)) 0 !important; /* 移除左右内边距以利用全部宽度 */
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    white-space: normal;
    word-break: break-word;
    /* 分离动画：高亮颜色、模糊、大小变化快一些，位移变化使用弹簧 */
    transition:
        color 0.3s ease,
        opacity 0.4s ease,
        filter 0.4s ease,
        font-size 0.3s ease,
        font-weight 0s ease,
        padding 0.3s ease,
        margin 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) var(--delay, 0s),
        transform 0.3s ease;
    transform-origin: left center;
    cursor: pointer;
    user-select: none;
    will-change: transform, margin, opacity, font-size, filter;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    line-height: 1.5;
    border-radius: 16px;
    margin: 8px 0;
    /* 初始值由JS动态控制，这里仅设置默认值*/
    opacity: var(--distance-opacity, 0.3);
    filter: blur(var(--distance-blur, 0px));
    transform: scale(0.98);
}

.lyrics-line.active {
    color: #ffffff !important;
    font-weight: 800 !important;
    /* 间距应用给 margin，产生明显的上下拉伸弹簧感 */
    margin: calc(var(--lyric-spacing, 12px) * 3) 0 calc(var(--lyric-spacing, 12px) * 3) 0 !important;
    font-size: calc(var(--lyric-size, var(--default-lyric-size, 24px)) * 1.15) !important;
    transform: scale(1.02) !important; /* 从1.05降到1.02（更自然）*/
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    opacity: 1 !important;
    filter: none !important; /* 当前行完全清晰*/
    z-index: var(--z-content) !important;
}

/* 越往两边越淡化：通过 index 距离控制（现在由JS动态计算opacity和blur）*/
.lyrics-line.previous,
.lyrics-line.next {
    /* 这些类仅用于标识，实际样式由JS动态控制 */
    transform: scale(0.99);
    margin: calc(var(--lyric-spacing, 12px) * 1.5) 0;
}

/* 远距离歌词更淡（同样由JS动态控制）*/
.lyrics-line.far {
    transform: scale(0.97);
    margin: var(--lyric-spacing, 12px) 0;
}

/* 间奏指示器（三个圆点动画）*/
.interlude-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 24px 0;
    margin: var(--lyric-spacing, 12px) 0;
}

.interlude-indicator .interlude-dot {
    display: inline-block;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.6),
                0 0 30px rgba(255, 255, 255, 0.3);
    animation: interlude-bounce 1.2s ease-in-out infinite;
}

.interlude-indicator .interlude-dot-1 {
    animation-delay: 0s;
}

.interlude-indicator .interlude-dot-2 {
    animation-delay: 0.15s;
}

.interlude-indicator .interlude-dot-3 {
    animation-delay: 0.3s;
}

@keyframes interlude-bounce {
    0%, 100% {
        opacity: 0.3;
        box-shadow: 0 0 6px rgba(255, 255, 255, 0.3);
    }
    50% {
        opacity: 1;
        box-shadow: 0 0 16px rgba(255, 255, 255, 0.8),
                    0 0 32px rgba(255, 255, 255, 0.4);
    }
}

/* 居中模式全局适配 */
.lyrics-container.center-aligned .lyrics-wrapper {
    align-items: center !important;
}

.lyrics-container.center-aligned .lyrics-line {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    transform-origin: center center !important;
    max-width: 100% !important;
}

/* 全屏模式下的歌词行保持一致 */
.player-overlay .lyrics-line {
    padding: var(--lyric-spacing, var(--default-lyric-spacing, 12px)) 0 !important;
}

.player-overlay .lyrics-line.active {
    font-size: calc(var(--lyric-size, var(--default-lyric-size, 24px)) * 1.2) !important;
}

/* 下载按钮样式精简 */
.btn-small {
    width: 30px !important; /* 进一步改小 */
    height: 30px !important;
    background: none !important;
    background-color: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    box-shadow: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease; /* 移除 transform 过渡 */
    color: rgba(255, 255, 255, 0.5);
}

.btn-small:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff;
    transform: none !important; /* 彻底禁用缩放 */
    box-shadow: none !important;
}

.btn-small:active {
    transform: scale(0.95); /* 仅点击时轻微缩放 */
}

.btn-small svg {
    width: 16px;
    height: 16px;
    transition: none !important; /* 禁用图标内部动画 */
}

/* 顶部拖拽横条 */
.drag-bar {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    cursor: grab;
    z-index: var(--z-header);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: none;
}

.drag-bar:active {
    cursor: grabbing;
    background: rgba(255, 255, 255, 0.5);
    transform: translateX(-50%) scaleX(1.2);
}

/* 横屏模式下隐藏拖拽横条 */
@media (orientation: landscape) {
    .drag-bar {
        display: none !important;
    }
    
    /* 横屏模式下的播放器覆盖层布局 */
    .player-overlay .main-container {
        flex: 1;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center; /* 整体居中 */
        padding: clamp(5px, 4vh, 40px) 0 clamp(5px, 4vh, 40px) Clamp(40px, 10vw, 200px); /* 移除右侧内边距 */
        gap: clamp(40px, 6vw, 120px); /* 增加列间距 */
        position: relative;
        z-index: var(--z-content);
        width: 100%;
        height: 100%;
        box-sizing: border-box;
        /* 移除最大宽度限制 */
        margin: 0;
    }
    
    .player-overlay .left-column {
        flex: 0 0 clamp(280px, 30vw, 420px); /* 缩小左侧占比 */
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0;
        margin: 0;
        z-index: var(--z-content);
        box-sizing: border-box;
        gap: clamp(15px, 3vh, 30px); /* 缩小间距 */
    }
    
    .player-overlay .album-art {
        width: 100% !important;
        max-width: min(380px, 45vh) !important; /* 进一步缩小封面尺寸，防止重叠 */
        aspect-ratio: 1 / 1;
        margin-bottom: 0 !important;
    }
    
    /* 确保歌曲信息面板居中 */
    .player-overlay .lyrics-info-panel {
        text-align: center !important;
        width: 100% !important;
        margin-bottom: clamp(5px, 2vh, 15px) !important;
        transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
        position: relative;
        z-index: var(--z-content);
        flex-shrink: 0 !important;
        min-height: fit-content !important;
    }

    /* 确保歌手信息不被遮挡 */
    .player-overlay #playerArtist {
        position: relative;
        z-index: var(--z-content);
        text-align: center !important;
        width: 100% !important;
        margin: 0 auto !important;
        display: block !important;
        opacity: 0.8 !important;
        font-size: 18px !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 100% !important;
    }

    /* 确保标题也不被遮挡 */
    .player-overlay #playerTitle {
        position: relative;
        z-index: var(--z-content);
        text-align: center !important;
        width: 100% !important;
        margin: 0 auto !important;
        display: block !important;
    }
    
    /* 确保标题和艺术家居中 */
    .player-overlay #playerTitle {
        text-align: center !important;
        width: 100% !important;
    }
    
    .player-overlay #playerArtist {
        text-align: center !important;
        width: 100% !important;
    }
    
    .player-overlay .right-column {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: flex-start; /* 保持左对齐但增加容器内边距 */
        justify-content: center;
        padding-left: clamp(20px, 4vw, 60px); /* 增加左侧间距使视觉更平衡 */
        margin: 0;
        z-index: var(--z-base);
        height: 100%;
        overflow: hidden;
        /* 移除最大宽度限制，使其贴合右侧 */
    }

    .player-overlay .lyrics-container {
        width: 100% !important;
        height: clamp(300px, 60vh, 650px) !important;
        max-height: 85vh !important;
        mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent) !important;
        min-width: 400px;
        box-sizing: border-box;
    }
    
    /* 调整歌词行在大屏上的显示 */
    .player-overlay .lyrics-line {
        width: 100% !important;
        max-width: 100% !important;
        text-align: left !important;
        box-sizing: border-box !important;
        overflow-wrap: break-word !important;
        word-wrap: break-word !important;
        hyphens: auto !important;
        font-size: var(--lyric-size, var(--default-lyric-size, 24px)) !important; /* 动态调整歌词大小由变量控制 */
        padding: var(--lyric-spacing, var(--default-lyric-spacing, 12px)) 0 !important;
    }
    
    /* 确保播放器控制器宽度适应 */
    .player-overlay .player-controls {
        width: 100% !important;
        max-width: 450px !important;
        padding: 10px 0;
        margin-top: 0 !important;
        flex-shrink: 0 !important;
    }
    
    /* 调整控制按钮大小和间距 */
    .player-overlay .control-buttons {
        gap: 20px !important;
        margin-top: clamp(15px, 3vh, 30px) !important;
    }
    
    /* 调整按钮大小 */
    .player-overlay .btn-circle {
        width: clamp(45px, 5vw, 60px) !important;
        height: clamp(45px, 5vw, 60px) !important;
    }
    
    /* 调整播放/暂停按钮大小 */
    .player-overlay #playBtn,
    .player-overlay #pauseBtn {
        width: clamp(65px, 7vw, 85px) !important;
        height: clamp(65px, 7vw, 85px) !important;
    }
    
    /* 调整音量条宽度 */
    .player-overlay .volume-container {
        width: auto !important;
        min-width: 180px !important;
    }
}

/* 添加一个静态的遮罩层，仅用于增强可读性，不随播放器滑动 */
.player-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0) 0%, rgba(128, 128, 128, 0.05) 100%);
    pointer-events: none;
    z-index: var(--z-bg);
}

.player-overlay.active {
    transform: translateY(0);
}

.mini-player.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
}

/* 调整迷你播放器的整体布局 */
.mini-album-art {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--favorite-color), var(--color-2, #ff9966));
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* 移除不再需要的动画相关样式 */

/* --- 迷你播放器文字滚动 --- */
.mini-text {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex: 1;
    min-width: 0;
    margin-right: 12px;
    position: relative;
    /* 默认移除遮罩 */
    mask-image: none;
    -webkit-mask-image: none;
    /* 移除最大宽度限制，让文本区域充分利用可用空间 */
}

/* 调整迷你播放器的整体布局，确保文本区域有足够空间 */
.mini-player {
    padding: 0 16px 0 16px;
    gap: 8px;
}

.mini-info {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.mini-controls {
    flex-shrink: 0;
    margin-left: 8px;
}

/* 确保marquee-wrapper不会影响mini-text的垂直布局 */
.mini-text .marquee-wrapper {
    display: flex;
    white-space: nowrap;
    overflow: visible;
    width: fit-content;
    animation: marquee-scroll 12s linear infinite;
    /* 确保wrapper不会影响垂直布局 */
    flex-shrink: 0;
}

/* 鼠标悬停暂停 */
.mini-text .marquee-wrapper:hover {
    animation-play-state: paused;
}

/* 只有当有跑马灯时才显示遮罩 */
.mini-text.has-marquee {
    mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

.mini-title, .mini-artist {
    white-space: nowrap;
    width: fit-content;
    will-change: transform;
    display: inline-block;
}

/* 跑马灯容器样式：用于包裹原文本和克隆文本 */
.marquee-wrapper {
    display: flex;
    white-space: nowrap;
    animation: marquee-scroll 10s linear infinite;
    /* 鼠标悬停暂停 */
}

.marquee-wrapper:hover {
    animation-play-state: paused;
}

/* 原文本和克隆文本的样式 */
.mini-title, .mini-artist, .marquee-clone {
    padding-right: 40px; /* 间距 */
    flex-shrink: 0; /* 防止被压缩 */
}

/* 如果是直接应用在 title/artist 上的旧样式需要调整 */
/* 我们现在的策略是：JS 会把 title 和 clone 放在同一个父容器下，
   但因为 DOM 结构限制（title 和 artist 是兄弟），我们无法简单包裹 wrapper。
   
   替代方案：让 mini-title 本身变成 flex 容器？不行，它里面是文本。
   
   修正方案：
   1. mini-text (父) -> overflow: hidden
   2. mini-title (子) -> 自身滚动？不行，需要两个子元素。
   
   最简单的无缝滚动 CSS：
   让 mini-title 和 marquee-clone 并排。
   
   由于 DOM 结构是：
   .mini-text
     .mini-title
     .mini-artist
     
   JS 现在的逻辑是把 clone 插在 title 后面：
   .mini-text
     .mini-title
     .mini-title.clone
     .mini-artist
     .mini-artist.clone
     
   这样会导致布局混乱（垂直排列）。
   
   我们需要改变 CSS 让它们正确排列。
*/

/* 针对 mini-text 下的布局修正 */
.mini-text {
    /* 保持垂直排列 title 和 artist */
    display: flex;
    flex-direction: column;
    /* 解决 flex 容器内元素 overflow 失效的问题 */
    min-width: 0;
}

/* 标题和歌手名的容器，需要单独处理滚动 */
/* 注意：这里的类名需要根据 JS 动态生成的结构来调整 */
/* 现在的结构是：
   .mini-text
     .marquee-wrapper (如果有滚动) -> .mini-title + .mini-title.clone
     .mini-artist (如果没有滚动)
*/

/* 统一控制所有可能的滚动容器 */
.mini-title, .mini-artist, .song-title, .song-artist {
    /* 默认情况下 */
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /* 关键：确保宽度受限，否则不会触发 scrollWidth > clientWidth */
    max-width: 100%;
}

/* 当被包裹在 marquee-wrapper 中时，取消 ellipsis 和 overflow */
.marquee-wrapper .mini-title, 
.marquee-wrapper .mini-artist,
.marquee-wrapper .song-title,
.marquee-wrapper .song-artist {
    overflow: visible;
    text-overflow: clip;
    max-width: none;
    /* 间距 */
    padding-right: 40px;
    /* 动画由 wrapper 控制，这里不需要动画 */
}

/* 跑马灯容器样式 */
.marquee-wrapper {
    display: flex;
    white-space: nowrap;
    overflow: visible; 
    width: fit-content;
    animation: marquee-scroll 12s linear infinite; /* 增加总时间 */
    /* 鼠标悬停暂停 */
}

/* 
   关键帧逻辑优化：
   为了实现“回到初始位置停2s”且无缝循环，我们需要欺骗视觉。
   
   假设总时长 12s。
   0% ~ 15% (约2s): transform: 0 (停留)
   15% ~ 100% (约10s): 滚动到 -50% (即第二段文字的开头)
   
   关键点：100% 时的画面必须和 0% 时的画面一模一样。
   因为 -50% 的位置就是克隆文字的起始位置，而克隆文字和原文字一模一样。
   所以当动画播放到 100% 时，画面瞬间跳回 0% (下一轮循环)，人眼是看不出来的。
   这样就实现了：停留 -> 滚动 -> (瞬间跳回) 停留 -> 滚动...
*/
@keyframes marquee-scroll {
    0%, 20% { /* 2s / 10s = 20% */
        transform: translateX(0); 
    }
    100% { 
        transform: translateX(-50%); 
    } 
}

/* 修正父容器遮罩：现在是 mini-text 或 song-info 加了 has-marquee 类？
   不对，JS 是给 element.parentElement 加 has-marquee。
   如果是 mini-title 滚动，element.parentElement 原本是 mini-text。
   但现在插入了 wrapper，所以 element.parentElement 变成了 wrapper。
   JS 逻辑是 container.insertBefore(wrapper, element)，所以 container 还是 mini-text。
   所以 class 加在了 mini-text 上。
   
   但是！mini-text 里可能只有 title 滚动，artist 不滚动。
   如果给 mini-text 加 mask，会遮住所有内容。
   
   我们需要更精确的遮罩控制。
   
   JS 修改建议：不要给 container 加 has-marquee，而是给 wrapper 加遮罩？
   或者只给 wrapper 的父级（如果它只包含这一个元素）加。
   
   但在 mini-text 中，mask 会影响两行。
   
   CSS 解决方案：
   给 wrapper 加 mask？不行，wrapper 在动。
   给 wrapper 外面再套一层？太复杂。
   
   回退方案：只在文字确实很长时才滚动，短文字不滚动。
   目前的 JS 逻辑已经做到了。
   
   问题在于 mask-image 会影响整个容器。
   如果 mini-text 加了 mask，那么 title 和 artist 都会被遮罩。
   这通常是可以接受的，因为长文字通常也意味着宽容器。
   
   但是截图显示 mask 似乎导致了显示异常？
   或者是因为 wrapper 的宽度没有被正确限制？
   
   确保 wrapper 的父容器有 overflow: hidden。
*/

.mini-text, .song-info, .drawer-item-info, .lyrics-info-panel {
    overflow: hidden; /* 确保截断 */
    min-width: 0; /* 关键：防止 flex 容器被长内容撑开 */
    mask-image: none !important;
    -webkit-mask-image: none !important;
}

/* 只有当有跑马灯时才显示遮罩 */
.mini-text.has-marquee, .song-info.has-marquee, .drawer-item-info.has-marquee, .lyrics-info-panel.has-marquee {
    mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%) !important;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%) !important;
}

.mini-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
}

.mini-artist {
    font-size: 12px;
    opacity: 0.8;
    color: var(--text-main);
}

/* 迷你播放器时间显示 */
.mini-time {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: 8px;
    position: relative;
    z-index: 1;
}

.mini-time #miniCurrentTime,
.mini-time #miniTotalTime {
    font-variant-numeric: tabular-nums;
    min-width: 28px;
    text-align: center;
}

.mini-time .time-separator {
    opacity: 0.5;
}

.mini-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mini-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.10); /* 提高不透明度（从0.05到0.10）*/
    backdrop-filter: blur(var(--glass-blur-light)) saturate(var(--glass-saturate-light));
    -webkit-backdrop-filter: blur(var(--glass-blur-light)) saturate(var(--glass-saturate-light));
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease, transform 0.3s ease;
}

.mini-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

/* 全屏播放器头部 */
.overlay-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: clamp(20px, 4vh, 40px) clamp(25px, 5vw, 50px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: var(--z-header);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* 确保歌词模式下overlay-header位置不变 */
.player-overlay.lyrics-mode .overlay-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: var(--z-header);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* 横屏模式保持返回按钮显示 */
@media (orientation: landscape) {
    .overlay-header .back-button {
        display: flex !important;
    }
}

.back-button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur-standard)) saturate(var(--glass-saturate-standard));
    -webkit-backdrop-filter: blur(var(--glass-blur-standard)) saturate(var(--glass-saturate-standard));
    border: 1px solid var(--glass-border);
    transition: background 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    color: var(--text-main);
}

/* 确保设置按钮也有平滑过渡 */
#playerSettingsBtn {
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.overlay-header .settings-container {
    position: relative;
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

/* 确保带有liquid-glass类的back-button也是圆形的 */
.back-button.liquid-glass {
    border-radius: 50% !important;
    width: 48px !important;
    height: 48px !important;
}

/* 主布局容器 */
.main-container {
    display: flex;
    width: 100%;
    height: 100%;
    margin: 0; 
    /* 优化内边距，实现左右平衡，并在上下留出足够的呼吸空间 */
    padding: clamp(40px, 10vh, 100px) clamp(40px, 8vw, 180px); 
    gap: clamp(60px, 8vw, 120px); /* 增加间距 */
    position: relative;
    z-index: var(--z-base);
    align-items: center;
    overflow-x: hidden; /* 双重保险，确保主容器不出现横向滚动条 */
}

/* 左侧区域：封面 + 控制器 */
.left-column {
    flex: 0 0 400px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    height: 100%;
    padding: clamp(50px, 10vh, 80px) 0 clamp(30px, 8vh, 60px);
    gap: clamp(20px, 5vh, 40px);
    z-index: var(--z-content);
}

/* 专辑封面 */
.album-art {
    width: 100%;
    max-width: min(400px, 70vh);
    aspect-ratio: 1 / 1;
    height: auto;
    background: linear-gradient(135deg, var(--favorite-color), var(--color-2, #ff9966));
    background-size: cover;
    background-position: center;
    border-radius: 20px; /* 减小圆角 */
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    margin-bottom: clamp(20px, 5vh, 60px); /* 间距随高度自适应 */
    position: relative;
    overflow: hidden; /* 添加 overflow: hidden 以确保伪元素不超出圆角边界 */
    flex-shrink: 1; /* 允许在空间不足时缩小 */
    transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* 播放时封面微动 */
.album-art.playing {
    transform: scale(1.05); /* 稍微加大一点缩放 */
    box-shadow: var(--album-glow, 0 40px 80px rgba(255, 94, 98, 0.4));
}

.album-art::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(255,255,255,0.1), rgba(0,0,0,0.1));
    pointer-events: none;
    border-radius: 20px; /* 添加与容器相同的圆角 */
}

/* 歌曲信息面板适配 */
.lyrics-info-panel {
    margin-bottom: clamp(15px, 4vh, 40px) !important;
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
    flex-shrink: 0; /* 防止高度不足时被压缩 */
    min-height: 80px; /* 设置一个合理的最小高度 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: var(--z-float); /* 确保在最上层 */
}

.lyrics-title {
    font-size: clamp(20px, 3vh, 28px) !important;
    line-height: 1.4 !important; /* 确保高度充足 */
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
    white-space: nowrap;
    overflow: visible !important; /* 防止被截断 */
}

.lyrics-artist {
    font-size: clamp(14px, 2.2vh, 18px) !important;
    line-height: 1.4 !important;
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
    white-space: nowrap;
    overflow: visible !important;
}

/* 确保所有标题相关元素都有统一的过渡动画 */
#playerTitle,
#playerArtist,
.lyrics-info-panel,
.player-overlay #playerTitle,
.player-overlay #playerArtist,
.player-overlay .lyrics-info-panel,
.player-overlay.lyrics-mode #playerTitle,
.player-overlay.lyrics-mode #playerArtist,
.player-overlay.lyrics-mode .lyrics-info-panel {
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
    animation: none !important;
}

/* 模拟控制器区域 */
.player-controls {
    width: 100%;
    max-width: min(480px, 90vw); /* 稍微加宽以适应更多按钮 */
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 2vh, 20px);
    flex-shrink: 0;
    position: relative;
    z-index: var(--z-base);
}

/* 进度条与音量条：玻璃质感与悬停扩张 - 性能优化 */
.progress-bar, .volume-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(var(--glass-blur-light)); /* 从15px降到12px（light级）*/
    -webkit-backdrop-filter: blur(var(--glass-blur-light));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    position: relative;
    cursor: pointer;
    transition: height 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: auto;
}

.progress-bar:hover, .volume-bar:hover {
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    z-index: auto;
}

/* 音量条容器：固定宽度 */
.volume-container {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 110px; /* 增加宽度以适应 80px 的进度条 */
    justify-content: flex-end;
    flex-shrink: 0;
}

/* 音量条进度条，固定 80px */
.volume-bar-container {
    width: 80px;
    display: flex;
    align-items: center;
    position: relative;
    flex-shrink: 0;
}

.progress-fill, .volume-fill {
    width: 0%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: var(--z-bg);
    transition: width 0.1s linear; 
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

/* 拖动时禁用 CSS 过渡，完全由 JS 接管动画以实现物理跟随效果 */
.progress-bar.dragging .progress-fill,
.volume-bar.dragging .volume-fill {
    transition: none !important;
}

.control-buttons {
    display: flex;
    justify-content: space-between; /* 均匀分布在整个宽度上 */
    align-items: center;
    gap: 10px;
    margin-top: clamp(10px, 2vh, 20px);
    width: 100%;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}

/* 底部工具栏布局 */
.bottom-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: clamp(10px, 2vh, 20px);
    gap: 15px;
}

.left-tools {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 音质选择器改为下拉菜单风格 */
.quality-dropdown {
    position: relative;
    z-index: var(--z-header);
}

.quality-btn {
    display: flex;
    align-items: center;
    background: var(--glass-bg); /* 使用玻璃背景变量 */
    backdrop-filter: blur(var(--glass-blur-standard)) saturate(var(--glass-saturate-standard));
    -webkit-backdrop-filter: blur(var(--glass-blur-standard)) saturate(var(--glass-saturate-standard));
    padding: 6px 14px;
    border-radius: 12px;
    border: 1px solid var(--glass-border); /* 使用玻璃边框变量 */
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.quality-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 质量选择菜单也提升层级 */
.quality-menu {
    position: absolute;
    bottom: calc(100% + 15px);
    left: 0;
    width: 130px;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur-standard)) saturate(var(--glass-saturate-standard));
    -webkit-backdrop-filter: blur(var(--glass-blur-standard)) saturate(var(--glass-saturate-standard));
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 10px;
    display: none;
    flex-direction: column;
    gap: 6px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    transform-origin: bottom left;
    animation: menu-appear-up 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: var(--z-menu);
    pointer-events: auto !important;
}

.quality-menu.show {
    display: flex;
}

/* 向上弹出的动画 */
@keyframes menu-appear-up {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.quality-option {
    padding: 8px 12px;
    font-size: 13px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    text-align: left;
}

.quality-option:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.quality-option.active {
    background: #fff;
    color: #000;
    font-weight: 600;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

/* 下载按钮：仅图标样式，完全移除背景 */
.btn-small {
    width: 34px !important;
    height: 34px !important;
    background: none !important; /* 使用 none 彻底移除背景 */
    background-color: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    box-shadow: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    color: rgba(255, 255, 255, 0.5); /* 默认更淡一些 */
}

.btn-small:hover {
    background: rgba(255, 255, 255, 0.1) !important; /* 只有 hover 才要背景 */
    color: #fff;
    transform: scale(1.1);
    box-shadow: none !important;
}

.btn-small:active {
    transform: scale(0.95);
}

/* 音量容器位置微调 */
.volume-container {
    display: flex;
    align-items: center;
    gap: 12px;
    width: auto;
    min-width: 150px;
    margin: 0;
    position: relative;
}

/* 强制音量条垂直对齐调整 */
.volume-container .volume-bar {
    transform: translateY(0) !important;
}

/* 确保音量图标垂直居中 */
.volume-container svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    display: block;
    margin: 0;
}

.volume-bar {
    width: 100%;
    height: 5px;
    margin: 0;
    padding: 0;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    border-radius: 2.5px;
    transform: translateY(0);
}

.volume-fill {
    width: 0%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 2.5px;
    transition: all 0.1s linear;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

/* 悬停时的对齐调整 */
.volume-bar:hover {
    height: 12px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.2);
    transform: translateY(0) !important;
}

.volume-bar:hover .volume-fill {
    border-radius: 6px;
}

/* liquid-glass 兼容层：JS 动态添加此类，需提供玻璃效果 */
.liquid-glass {
    position: relative;
    isolation: isolate;
    background: transparent;
    border-radius: 16px;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.liquid-glass::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(var(--glass-blur-lg)) saturate(var(--glass-saturate-lg));
    -webkit-backdrop-filter: blur(var(--glass-blur-lg)) saturate(var(--glass-saturate-lg));
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--glass-shadow-lg);
    pointer-events: none;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.liquid-glass:hover::before {
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.2);
}

.liquid-glass:hover {
    transform: translateY(-2px);
}

.liquid-glass:active {
    transform: scale(0.98);
}

/* liquid-glass-standard 兼容层 */
.liquid-glass-standard {
    position: relative;
    isolation: isolate;
    background: transparent;
    border-radius: 16px;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.liquid-glass-standard::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(var(--glass-blur-md)) saturate(var(--glass-saturate-md));
    -webkit-backdrop-filter: blur(var(--glass-blur-md)) saturate(var(--glass-saturate-md));
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--glass-shadow-md);
    pointer-events: none;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.liquid-glass-standard:hover::before {
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.18);
}

.liquid-glass-standard:hover {
    transform: translateY(-2px);
}

.liquid-glass-standard:active {
    transform: scale(0.98);
}

/* 轻量级玻璃效果 - 已迁移至 glass-system.css，保留空壳 */
/* liquid-glass-light 兼容层：JS 动态添加此类，需提供玻璃效果 */
.liquid-glass-light {
    position: relative;
    isolation: isolate;
    background: transparent;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.liquid-glass-light::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(var(--glass-blur-sm)) saturate(var(--glass-saturate-sm));
    -webkit-backdrop-filter: blur(var(--glass-blur-sm)) saturate(var(--glass-saturate-sm));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--glass-shadow-sm);
    pointer-events: none;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.liquid-glass-light:hover::before {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.15);
}

.liquid-glass-light:hover {
    transform: scale(1.05);
}

.liquid-glass-light:active {
    transform: scale(0.95);
}

/* 根据背景自动适配文本颜色 */
.liquid-glass-text {
    color: var(--text-main);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

/* 暗色背景适配 - 玻璃效果已迁移至 glass-system.css */
.dark-bg .liquid-glass {
}

.dark-bg .liquid-glass:hover {
}

/* 亮色背景适配 - 玻璃效果已迁移至 glass-system.css */
.light-bg .liquid-glass {
}

.light-bg .liquid-glass:hover {
}

.light-bg .liquid-glass-text {
    color: var(--text-main);
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.3);
}

/* 通用液态玻璃按钮基础样式 */
.btn-circle {
    width: clamp(44px, 6vw, 56px);
    height: clamp(44px, 6vw, 56px);
    aspect-ratio: 1/1;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    /* 玻璃效果由 .liquid-glass-light::before 或 .liquid-glass-standard::before 提供 */
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    box-shadow: none;
    color: var(--text-main);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    isolation: isolate;
    flex-shrink: 0;
}

.btn-circle:hover {
    /* hover 态由 .liquid-glass-*::before 控制 */
}

.btn-circle:active {
    transform: scale(0.96);
}

/* 下载APP按钮 - 胶囊形带文字 */
.download-app-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    height: clamp(40px, 5vw, 44px);
    border-radius: 100px; /* 胶囊形 */
    cursor: pointer;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(168, 85, 247, 0.25)); /* 紫色渐变背景 */
    backdrop-filter: blur(var(--glass-blur-light)) saturate(var(--glass-saturate-light));
    -webkit-backdrop-filter: blur(var(--glass-blur-light)) saturate(var(--glass-saturate-light));
    border: 1px solid rgba(139, 92, 246, 0.3); /* 紫色边框 */
    color: var(--text-main);
    text-decoration: none;
    font-size: clamp(12px, 1.5vw, 14px);
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    box-shadow: 
        0 15px 35px rgba(99, 102, 241, 0.15),
        inset 0 0 20px rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

.download-app-btn:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.35), rgba(168, 85, 247, 0.35));
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 
        0 20px 40px rgba(99, 102, 241, 0.25),
        inset 0 0 20px rgba(255, 255, 255, 0.08);
    transform: translateY(-2px) scale(1.03);
}

.download-app-btn span {
    letter-spacing: 0.5px;
}

.btn-circle:active {
    transform: scale(0.96);
}

/* 播放/暂停按钮单独样式 - 更大更突出，液态玻璃效果 */
#playBtn, #pauseBtn {
    width: clamp(64px, 9vw, 80px) !important;
    height: clamp(64px, 9vw, 80px) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border-width: 1.5px !important;
    border-color: var(--glass-border) !important;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.2),
        inset 0 0 20px rgba(255, 255, 255, 0.05) !important;
}

/* 加载动画样式 */
#playBtn.loading, #pauseBtn.loading, #miniPlayBtn.loading, #miniPauseBtn.loading {
    position: relative;
    pointer-events: none;
}

#playBtn.loading::after, #pauseBtn.loading::after, #miniPlayBtn.loading::after, #miniPauseBtn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 32px;
    height: 32px;
    transform: translate(-50%, -50%);
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

#playBtn.loading svg, #pauseBtn.loading svg, #miniPlayBtn.loading svg, #miniPauseBtn.loading svg {
    opacity: 0;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* 播放列表抽屉样式 */
.playlist-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 380px;
    height: 100%;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(50px) saturate(200%);
    -webkit-backdrop-filter: blur(50px) saturate(200%);
    z-index: var(--z-panel);
    transform: translateX(100%);
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    padding: 40px 30px;
}

.playlist-drawer.active {
    transform: translateX(0);
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.5);
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.drawer-header h3 {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.drawer-content {
    flex: 1;
    overflow-y: auto;
    padding-right: 10px;
}

.drawer-content::-webkit-scrollbar {
    width: 4px;
}

.drawer-content::-webkit-scrollbar-track {
    background: transparent;
}

.drawer-content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.drawer-content:hover::-webkit-scrollbar-thumb {
    opacity: 1;
}

.drawer-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-color), var(--favorite-color));
}

.drawer-content {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) transparent;
}

.drawer-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
    gap: 12px;
    position: relative;
    isolation: isolate;
    background: transparent;
}

.drawer-item::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur-list)) saturate(var(--glass-saturate-list));
    -webkit-backdrop-filter: blur(var(--glass-blur-list)) saturate(var(--glass-saturate-list));
    border: 1px solid transparent;
    box-shadow: var(--glass-shadow-sm);
    pointer-events: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.drawer-item:hover::before {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
}

.drawer-item.active::before {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.15);
}

.drawer-item-info {
    flex: 1;
    overflow: hidden;
}

.drawer-item-title {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.drawer-item-artist {
    font-size: 12px;
    opacity: 0.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 右侧区域：歌词 */
.right-column {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    min-width: 0;
    z-index: var(--z-base);
}

.lyrics-container {
    width: 100%;
    height: 80vh;
    max-height: 800px;
    overflow-y: hidden;
    overflow-x: hidden; /* 修复底部滚动条：由 auto 改为 hidden */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    position: relative;
    mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
    padding-right: 0; /* 移除右侧间距，使其贴合右侧 */
}

.lyrics-container::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

/* 歌词包裹层 - 负责整体移动 */
.lyrics-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-left: 40px;
    padding-right: 0;
    /* 优化滚动动效：更加丝滑的回弹效果 */
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
    min-height: 100%;
}

.lyrics-container.center-aligned .lyrics-wrapper {
    align-items: center !important;
    padding-left: 0;
    padding-right: 0;
}

/* 移除冗余定义 */
.lyrics-line-content {
    display: block;
    width: 100%;
    transition: all 0.8s cubic-bezier(0.2, 1.2, 0.2, 1);
}

/* ========== 逐字动画样式（Karaoke 效果）- 性能优化：移除位置跳动 ========= */
.lyric-char {
    display: inline-block;
    position: relative;
    color: rgba(255, 255, 255, 0.35);
    opacity: 0.5;
    /* 移除 filter: blur(0.3px)，改用纯opacity（GPU加速）*/
    will-change: opacity, color, transform;  /* 添加transform以支持GPU加速*/
    transition: none;  /* 移除transition，避免与逐帧更新冲突*/
}

.lyric-char:not(.is-cjk) {
    margin-right: 0.18em;
}

/* 激活行的字符：根据 --progress 动态高亮（全部由JS逐帧驱动，不加transition避免卡顿）*/
.lyrics-line.active .lyric-char {
    opacity: calc(0.5 + var(--progress, 0) * 0.5) !important;
    color: rgba(255, 255, 255, calc(0.6 + var(--progress, 0) * 0.4)) !important;
    /* 移除 translateY 避免位置跳动，改用纯颜色/透明度渐变*/
    transform: none !important;
    text-shadow:
        0 0 calc(var(--progress, 0) * 15px) rgba(255, 255, 255, calc(var(--progress, 0) * 0.5)),
        0 0 calc(var(--progress, 0) * 30px) rgba(102, 126, 234, calc(var(--progress, 0) * 0.25)) !important;
}

/* 非激活行：完全显示（无动画） */
.lyrics-line.previous .lyric-char,
.lyrics-line.next .lyric-char,
.lyrics-line.far .lyric-char {
    --progress: 1 !important;
    opacity: 1 !important;
    color: inherit !important;
    filter: none !important;
    transform: none !important;
    text-shadow: inherit !important;
}

/* 时间标尺 */
.lyrics-time-ruler {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(0, 0, 0, 0.5);
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

/* 激活歌词的时间标尺 */
.lyrics-line.active .lyrics-time-ruler {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.2);
    font-weight: 600;
}

.lyrics-line:hover {
    color: rgba(255, 255, 255, 0.9);
    opacity: 0.8;
    /* 移除 filter: blur(0); */
}

/* 设置菜单 - 玻璃效果 */
.settings-menu {
    position: fixed; /* 使用 fixed 确保在所有内容之上 */
    width: 220px;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur-standard)) saturate(var(--glass-saturate-standard));
    -webkit-backdrop-filter: blur(var(--glass-blur-standard)) saturate(var(--glass-saturate-standard));
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    padding: 20px;
    display: none;
    flex-direction: column;
    gap: 15px;
    z-index: var(--z-menu) !important; /* 菜单层级使用 L8 层级，确保在全屏播放器 (L6) 之上 */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform-origin: top right;
    animation: menu-appear 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    pointer-events: auto !important; /* 强制启用点击 */
}

@keyframes menu-appear {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.settings-menu.open {
    display: flex;
    z-index: var(--z-menu) !important;
}

.setting-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.setting-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-left: 2px;
    letter-spacing: 0.3px;
    opacity: 0.8;
}

.setting-options {
    display: flex;
    background: rgba(0, 0, 0, 0.05);
    padding: 3px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.setting-option {
    flex: 1;
    padding: 6px 12px;
    text-align: center;
    border-radius: 7px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    z-index: var(--z-base);
}

.setting-option svg {
    width: 14px;
    height: 14px;
    opacity: 0.6;
}

.setting-option.active {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-main);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.setting-option.active svg {
    opacity: 1;
}

.setting-option:hover:not(.active) {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}


/* 超小屏幕适配（<360px）*/

/* 性能优化 */

/* 横屏模式下的音量控制位置 */
.volume-container {
    position: relative;
    width: 100px;
    margin: 10px 0 0 auto;
}

/* 主页设置菜单样式 */
.home-settings-menu {
    position: absolute;
    top: 60px;
    right: 0;
    width: 220px;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur-standard)) saturate(var(--glass-saturate-standard));
    -webkit-backdrop-filter: blur(var(--glass-blur-standard)) saturate(var(--glass-saturate-standard));
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    padding: 20px;
    display: none;
    flex-direction: column;
    gap: 15px;
    z-index: var(--z-menu);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform-origin: top right;
    animation: menu-appear 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.home-settings-menu.open {
    display: flex;
}

/* .header-feather-effect 已迁移至 glass-system.css 的 .glass-feather-top */

/* 确保主页设置按钮和菜单的z-index正确 */
.home-header {
    position: fixed;
    top: -20px;
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
    margin: 0;
    z-index: var(--z-header);
    padding-top: 50px;
    padding-bottom: 40px;
    height: 180px;
    background: transparent;
    border-bottom: none;
}

.home-header > * {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
    box-sizing: border-box;
}

#homeSettingsBtn {
    z-index: var(--z-header);
}

/* 下载APP按钮 - 细长条样式 */
.btn-download-app {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    white-space: nowrap;
    text-decoration: none;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(var(--glass-blur-light)) saturate(var(--glass-saturate-light));
    -webkit-backdrop-filter: blur(var(--glass-blur-light)) saturate(var(--glass-saturate-light));
    border: 1px solid var(--glass-border);
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.1),
        inset 0 0 12px rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    flex-shrink: 0;
}

.btn-download-app:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.15),
        inset 0 0 12px rgba(255, 255, 255, 0.08);
}

.btn-download-app:active {
    transform: scale(0.97);
}

/* 搜索框样式 */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 40px; /* 默认宽度，与搜索按钮相同 */
    transition: width 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.5s ease, border 0.5s ease, box-shadow 0.5s ease;
    overflow: hidden;
    border-radius: 20px; /* 圆角，与按钮一致 */
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    box-shadow: none;
}

.search-container.expanded {
    width: 300px; /* 展开后的宽度 */
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(var(--glass-blur-standard)) saturate(var(--glass-saturate-standard));
    -webkit-backdrop-filter: blur(var(--glass-blur-standard)) saturate(var(--glass-saturate-standard));
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.search-container .search-btn {
    width: 40px;
    height: 40px;
    border-radius: 50% !important;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: var(--text-main);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    flex-shrink: 0;
    /* 玻璃效果由 .liquid-glass-light::before 提供 */
    /* 默认状态下移除 .btn-circle 的背景/边框，让 ::before 控制 */
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.search-container .search-btn::before {
    /* 搜索按钮保持玻璃效果 */
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(var(--glass-blur-sm)) saturate(var(--glass-saturate-sm));
    -webkit-backdrop-filter: blur(var(--glass-blur-sm)) saturate(var(--glass-saturate-sm));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--glass-shadow-sm);
    border-radius: 50% !important;
}

.search-container .search-btn:hover::before {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.15);
}

.search-container .search-btn:hover {
    transform: none; /* 防止内部按钮缩放导致错位 */
}

.search-container .search-input {
    flex: 1;
    height: 40px;
    padding: 0 15px;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-main);
    font-size: 14px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.search-container.expanded .search-input {
    opacity: 1;
    transform: translateX(0);
}

.search-container .search-input::placeholder {
    color: var(--text-secondary);
}

/* 搜索清除按钮 */
.search-clear-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    width: 24px;
    height: 24px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 18px;
    line-height: 1;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.2s ease;
    padding: 0;
    pointer-events: none; /* 隐藏时不响应点击 */
}

.search-clear-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-main);
}

/* 显示状态 - 由JavaScript控制 */
.search-clear-btn.visible {
    transform: translateY(-50%) scale(1);
    opacity: 1;
    pointer-events: auto; /* 显示时可点击 */
}

/* 调试信息面板样式 */
.debug-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: var(--z-debug);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    max-height: 50vh;
    overflow-y: auto;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 11px;
    user-select: none;
}

.debug-panel.dragging {
    cursor: move;
    opacity: 0.95;
}

.debug-panel.dragging * {
    pointer-events: none;
}

.debug-panel.dragging .debug-header {
    pointer-events: auto;
}

.debug-panel.dragging .debug-close {
    pointer-events: auto;
}

.debug-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: var(--z-base);
    cursor: move;
}

#debugDragHandle {
    cursor: move;
    flex: 1;
}

#debugDragHandle::before {
    content: '⋮⋮';
    color: #666;
    margin-right: 10px;
    font-size: 14px;
}

.debug-title {
    color: #00ff88;
    font-weight: bold;
    font-size: 13px;
}

.debug-close {
    background: none;
    border: none;
    color: #ff5555;
    font-size: 20px;
    cursor: pointer;
    padding: 0 8px;
    line-height: 1;
}

.debug-close:hover {
    color: #ff0000;
}

.debug-content {
    padding: 12px 16px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 8px;
}

.debug-section-title {
    grid-column: 1 / -1;
    color: #ff9944;
    font-weight: bold;
    font-size: 12px;
    padding: 8px 10px 6px;
    margin-top: 8px;
    border-bottom: 1px solid rgba(255, 153, 68, 0.3);
    background: rgba(255, 153, 68, 0.05);
    border-radius: 4px;
}

.debug-section-title:first-child {
    margin-top: 0;
}

.debug-item {
    display: flex;
    align-items: center;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.debug-label {
    color: #888;
    min-width: 80px;
    flex-shrink: 0;
}

.debug-value {
    color: #00ff88;
    word-break: break-all;
    overflow: hidden;
    text-overflow: ellipsis;
}

.debug-value.url {
    color: #6af;
    font-size: 11px;
    max-width: 400px;
}

.debug-value.song-title {
    color: #ffcc00;
}

.debug-value.song-artist {
    color: #ff99cc;
}

.debug-value.quality {
    color: #ff9944;
}

.debug-value.play-mode {
    color: #66ffff;
}

/* ========== 触摸设备优化 ========== */

/* 检测触摸设备并应用优化样式 */
@media (hover: none) and (pointer: coarse) {
    /* 禁用 hover 效果，避免粘滞状态 */
    .btn-circle:hover,
    .btn-small:hover,
    .song-item:hover,
    .drawer-item:hover,
    .nav-item:hover,
    .quality-btn:hover,
    .quality-option:hover,
    .setting-option:hover:not(.active),
    .batch-action-link:hover,
    .btn-download-song:hover,
    .btn-favorite:hover,
    .mini-player:hover,
    .mini-btn:hover,
    .back-button:hover,
    .liquid-glass:hover,
    .liquid-glass-standard:hover,
    .liquid-glass-light:hover,
    .btn-download-app:hover,
    .dialog-btn:hover,
    .qp-btn:hover,
    .search-clear-btn:hover,
    .checkbox-container:hover {
        background: inherit !important;
        border-color: inherit !important;
        box-shadow: inherit !important;
        transform: none !important;
        color: inherit !important;
        opacity: inherit !important;
    }
    
    /* 增加可点击元素的最小尺寸（Apple HIG 推荐 44x44pt） */
    .btn-circle {
        min-width: 44px !important;
        min-height: 44px !important;
    }
    
    .btn-small {
        min-width: 40px !important;
        min-height: 40px !important;
    }
    
    /* 增加进度条和音量条的触摸高度 */
    .progress-bar,
    .volume-bar {
        height: 12px !important;
        min-height: 12px;
    }
    
    /* 增加滑块 thumb 的触摸大小 */
    .setting-slider::-webkit-slider-thumb {
        width: 28px !important;
        height: 28px !important;
    }
    
    .setting-slider::-moz-range-thumb {
        width: 28px !important;
        height: 28px !important;
    }
    
    /* 歌词行增加内边距便于点击 */
    .lyrics-line {
        padding: calc(var(--lyric-spacing, 12px) + 8px) 0 !important;
    }
    
    /* 收藏和下载按钮增加触摸区域 */
    .btn-favorite,
    .btn-download-song {
        width: 40px !important;
        height: 40px !important;
    }
    
    /* 批量选择 checkbox 增加 */
    .batch-select-checkbox span {
        width: 22px !important;
        height: 22px !important;
    }
    
    /* 迷你播放器按钮增加 */
    .mini-btn {
        width: 42px !important;
        height: 42px !important;
    }
    
    /* 导航项增加 */
    .nav-item {
        min-width: 50px !important;
        min-height: 50px !important;
    }
    
    /* 设置选项增加 */
    .setting-option {
        padding: 10px 14px !important;
        min-height: 44px;
    }
    
    /* 质量选项增加 */
    .quality-option {
        padding: 16px 18px !important;
        min-height: 48px;
    }
    
    /* 触摸反馈 - 点击时缩放 */
    .btn-circle:active,
    .btn-small:active,
    .mini-btn:active,
    .nav-item:active,
    .song-item:active,
    .drawer-item:active {
        transform: scale(0.95) !important;
        transition: transform 0.1s ease !important;
    }
    
    /* 显示拖拽横条（竖屏模式） */
    @media (orientation: portrait) {
        .drag-bar {
            display: block !important;
            height: 6px !important;
            width: 80px !important;
        }
    }
    
    /* 进度条/音量条拖拽时显示 tooltip */
    .progress-bar.dragging .slider-tooltip,
    .volume-bar.dragging .slider-tooltip {
        opacity: 1 !important;
        transform: translateX(-50%) translateY(-2px) !important;
    }
}

/* 全局触摸优化 */
@supports (touch-action: manipulation) {
    /* 允许双指缩放但禁用双击缩放 */
    body {
        touch-action: manipulation;
        -webkit-touch-callout: none;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* 可滚动区域允许垂直滚动 */
    .home-page,
    .drawer-content,
    .lyrics-container {
        touch-action: pan-y;
    }
    
    /* 拖拽区域禁用浏览器默认行为 */
    .progress-bar,
    .volume-bar,
    #playerOverlay.active {
        touch-action: none;
    }
}

/* ========== FFT律动条样式 ========== */
.visualizer-container {
    position: fixed;
    bottom: 0;
    left: 0;
    /* 宽度需补偿 zoom 缩放，确保始终铺满视口宽度，消除左右及底部黑边 */
    width: calc(100vw * var(--page-zoom, 1));
    height: 28vh; /* 容器够大，柱条只占其下半部，顶部 40% 留空 */
    z-index: 1;
    pointer-events: none;
    opacity: 1; /* 保持全透明度，避免产生色差 */
    transition: opacity 0.3s ease;
    zoom: calc(1 / var(--page-zoom, 1));
    overflow: hidden;
    box-sizing: border-box;
    padding: 0; /* 移除内边距，让频谱占满底部 */
    background: transparent !important; /* 强制背景透明，消除黑边 */
}

.visualizer-viewport {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 0; /* 移除圆角，占满底部 */
    background: transparent !important;
    /* 弱化顶部遮罩，仅保留极小边缘柔化，移除可能导致黑边的蒙层 */
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 5%, #000 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 5%, #000 100%);
}

/* 移除可能导致底部黑边的装饰性蒙层 */
.visualizer-viewport::before {
    display: none;
}

.visualizer-canvas {
    width: 100%;
    height: 100%;
    display: block;
    filter: blur(2.5px);
    -webkit-filter: blur(2.5px);
}

/* ========== 关于本项目提示列表样式（已弃用）========== */
.about-section {
    margin-top: 10px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.about-content {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.about-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-version {
    font-size: 12px;
    color: var(--text-secondary);
    opacity: 0.7;
    margin-bottom: 12px;
}

.about-list {
    list-style: none;
    padding: 0;
    margin: 0 0 12px 0;
}

.about-list li {
    font-size: 13px;
    color: var(--text-secondary);
    padding: 6px 0;
    line-height: 1.5;
    transition: color 0.2s ease;
}

.about-list li:hover {
    color: var(--text-main);
}

.about-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 12px;
    color: var(--text-secondary);
}

.about-footer p {
    margin: 0;
    opacity: 0.7;
}

.about-footer-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.about-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.about-footer a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* ========== 关于页面模态框样式 ========== */
.about-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-modal, 9999);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.about-modal.active {
    display: flex;
    animation: about-fadeIn 0.3s ease-out;
}

@keyframes about-fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.about-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.about-modal-content {
    position: relative;
    width: 92%;
    max-width: 720px;
    max-height: 85vh;
    background: var(--glass-bg, rgba(30, 30, 40, 0.95));
    backdrop-filter: blur(var(--glass-blur-standard, 20px)) saturate(var(--glass-saturate-standard, 1.8));
    -webkit-backdrop-filter: blur(var(--glass-blur-standard, 20px)) saturate(var(--glass-saturate-standard, 1.8));
    border-radius: 28px;
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.15));
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    overflow-y: auto;
    padding: 40px 32px;
    animation: about-slideUp 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes about-slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.about-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    z-index: 10;
}

.about-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-main);
    transform: rotate(90deg);
}

.about-header {
    text-align: center;
    margin-bottom: 32px;
    overflow: visible;
}

.about-logo {
    margin-bottom: 16px;
    animation: about-logoFloat 3s ease-in-out infinite;
    overflow: visible;
    display: inline-block;
}

@keyframes about-logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.about-logo img {
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.about-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.about-version {
    font-size: 14px;
    color: var(--text-secondary);
    opacity: 0.7;
    margin-bottom: 8px;
}

.about-tagline {
    font-size: 16px;
    color: var(--text-main);
    opacity: 0.9;
    font-weight: 500;
}

.about-features {
    margin-bottom: 28px;
}

.about-features h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 16px;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.feature-item {
    display: flex;
    gap: 12px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    font-size: 24px;
    line-height: 1;
    flex-shrink: 0;
}

.feature-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.feature-text strong {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
}

.feature-text span {
    font-size: 12px;
    color: var(--text-secondary);
    opacity: 0.8;
    line-height: 1.4;
}

.about-info {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.info-value {
    font-size: 13px;
    color: var(--text-main);
    font-weight: 600;
}

/* ========== 特别鸣谢滚动区域样式 ========== */
.about-credits {
    margin: 24px 0;
    padding: 20px 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.about-credits h3 {
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.credits-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: hidden;
}

.credits-scroll {
    display: flex;
    white-space: nowrap;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    will-change: transform;
}

.credits-scroll .credit-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    margin-right: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.credits-scroll .credit-item:hover {
    background: rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
    color: var(--text-main);
    transform: scale(1.05);
}

.credits-scroll .credit-item .credit-name {
    font-weight: 600;
    color: var(--text-main);
}

.credits-scroll .credit-item .credit-role {
    opacity: 0.7;
    font-size: 11px;
}

/* 第一行：从右向左，快速 */
.credits-line-1 {
    animation-name: creditsScrollLeft;
    animation-duration: 20s;
}

/* 第二行：从左向右，中速 */
.credits-line-2 {
    animation-name: creditsScrollRight;
    animation-duration: 18s;
}

/* 第三行：从右向左，超快 */
.credits-line-3 {
    animation-name: creditsScrollLeft;
    animation-duration: 15s;
}

@keyframes creditsScrollLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes creditsScrollRight {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.about-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.about-footer p {
    font-size: 12px;
    color: var(--text-secondary);
    opacity: 0.6;
    margin-bottom: 12px;
}

.about-website-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    opacity: 1 !important;
}

.about-website-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    color: #ffffff !important;
    text-decoration: none !important;
}

.about-changelog-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-main);
    text-decoration: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.about-changelog-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* ========== 赞助支持区域 ========== */
.about-sponsor {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.sponsor-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
    margin: 0 0 8px 0;
    letter-spacing: -0.3px;
}

.sponsor-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0 0 20px 0;
    opacity: 0.85;
}

.sponsor-qr-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.sponsor-qr-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.sponsor-qr-item:hover {
    transform: translateY(-4px);
}

.sponsor-qr-img {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.15),
        0 2px 4px rgba(0, 0, 0, 0.1);
    background: #ffffff;
    padding: 8px;
    transition: all 0.3s ease;
}

.sponsor-qr-item:hover .sponsor-qr-img {
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.25),
        0 4px 8px rgba(0, 0, 0, 0.15);
}

.sponsor-qr-label {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    gap: 4px;
}

.sponsor-qr-icon {
    vertical-align: -3px;
    margin-right: 4px;
}

.sponsor-thanks {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
    opacity: 0.75;
    font-style: italic;
}

.sponsor-hint {
    font-size: 11px;
    color: rgba(128, 128, 128, 0.6);
    opacity: 0;
    transition: opacity 0.3s ease;
    margin-top: -4px;
}

.sponsor-qr-item:hover .sponsor-hint {
    opacity: 1;
}

/* ========== 赞助二维码放大模态框 ========== */
.sponsor-qr-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.sponsor-qr-modal.active {
    display: flex;
    animation: sponsor-qr-fadeIn 0.25s ease-out;
}

@keyframes sponsor-qr-fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes sponsor-qr-pop {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.sponsor-qr-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.sponsor-qr-modal-content {
    position: relative;
    background: var(--glass-bg, rgba(30, 30, 40, 0.98));
    backdrop-filter: blur(var(--glass-blur-standard, 24px)) saturate(var(--glass-saturate-standard, 1.8));
    -webkit-backdrop-filter: blur(var(--glass-blur-standard, 24px)) saturate(var(--glass-saturate-standard, 1.8));
    border-radius: 24px;
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.15));
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.5),
        0 10px 25px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    padding: 32px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    z-index: 1;
}

.sponsor-qr-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
}

.sponsor-qr-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-main);
    transform: rotate(90deg);
}

.sponsor-qr-modal-header {
    margin-bottom: 24px;
}

.sponsor-qr-modal-header h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 6px 0;
    letter-spacing: -0.5px;
}

.sponsor-qr-modal-header p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
    opacity: 0.85;
}

.sponsor-qr-modal-img {
    width: 280px;
    height: 280px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.2);
    background: #ffffff;
    padding: 16px;
    margin-bottom: 16px;
}

.sponsor-qr-modal-hint {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
    opacity: 0.7;
}

/* 响应式适配 */
@media (max-width: 480px) {
    .about-modal-content {
        width: 95%;
        padding: 28px 20px;
        max-height: 90vh;
    }

    .about-title {
        font-size: 24px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-item {
        padding: 12px;
    }

    .sponsor-qr-container {
        gap: 16px;
    }

    .sponsor-qr-img {
        width: 140px;
        height: 140px;
        padding: 6px;
    }

    .sponsor-qr-modal-content {
        padding: 24px 20px;
        max-width: 340px;
    }

    .sponsor-qr-modal-img {
        width: 240px;
        height: 240px;
        padding: 12px;
    }
}

/* ========== 新手引导模态框样式 ========== */
.onboarding-modal {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal, 9999);
    display: none;
    pointer-events: none;
}

.onboarding-modal.active {
    display: block;
    pointer-events: auto;
    animation: onboarding-fadeIn 0.3s ease-out;
}

@keyframes onboarding-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 暗色遮罩：通过 spotlight 的 box-shadow 形成"洞"效果，自身透明 */
.onboarding-mask {
    position: absolute;
    inset: 0;
    background: transparent;
    pointer-events: none;
}

/* 聚光灯高亮框（绝对定位，根据目标元素动态设置） */
.onboarding-spotlight {
    position: absolute;
    border-radius: 16px;
    background: transparent;
    box-shadow:
        0 0 0 4px rgba(255, 255, 255, 0.95),
        0 0 0 9999px rgba(0, 0, 0, 0.72),
        0 0 32px 8px rgba(120, 130, 255, 0.5);
    transition: top 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
                left 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
                width 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
                height 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
                border-radius 0.3s ease,
                opacity 0.3s ease,
                box-shadow 0.3s ease;
    pointer-events: none;
    opacity: 0;
}

.onboarding-modal.active .onboarding-spotlight {
    opacity: 1;
    animation: onboarding-pulse 2s ease-in-out infinite;
}

@keyframes onboarding-pulse {
    0%, 100% {
        box-shadow:
            0 0 0 4px rgba(255, 255, 255, 0.95),
            0 0 0 9999px rgba(0, 0, 0, 0.72),
            0 0 32px 8px rgba(120, 130, 255, 0.5);
    }
    50% {
        box-shadow:
            0 0 0 6px rgba(255, 255, 255, 1),
            0 0 0 9999px rgba(0, 0, 0, 0.72),
            0 0 48px 12px rgba(120, 130, 255, 0.8);
    }
}

/* 提示卡片 */
.onboarding-tooltip {
    position: absolute;
    width: min(360px, calc(100vw - 40px));
    background: var(--glass-bg, rgba(30, 30, 40, 0.96));
    backdrop-filter: blur(var(--glass-blur-standard, 20px)) saturate(var(--glass-saturate-standard, 1.8));
    -webkit-backdrop-filter: blur(var(--glass-blur-standard, 20px)) saturate(var(--glass-saturate-standard, 1.8));
    border-radius: 20px;
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.15));
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.08) inset;
    padding: 24px 22px 18px;
    color: var(--text-main, #fff);
    transition: top 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
                left 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
                opacity 0.25s ease,
                transform 0.25s ease;
    pointer-events: auto;
    opacity: 0;
    transform: translateY(8px) scale(0.98);
}

.onboarding-modal.active .onboarding-tooltip {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* 箭头 */
.onboarding-arrow {
    position: absolute;
    width: 14px;
    height: 14px;
    background: var(--glass-bg, rgba(30, 30, 40, 0.96));
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.15));
    transform: rotate(45deg);
    transition: top 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
                left 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
                right 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
                bottom 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.onboarding-arrow::before {
    content: '';
    position: absolute;
    inset: 1px;
    background: var(--glass-bg, rgba(30, 30, 40, 0.96));
    border-radius: 2px;
}

/* 箭头位置 - 下方（目标在提示卡上方时） */
.onboarding-arrow.arrow-bottom {
    top: -8px;
    border-right: none;
    border-bottom: none;
}

/* 箭头位置 - 上方 */
.onboarding-arrow.arrow-top {
    bottom: -8px;
    border-left: none;
    border-top: none;
}

/* 箭头位置 - 左侧 */
.onboarding-arrow.arrow-left {
    right: -8px;
    border-top: none;
    border-right: none;
}

/* 箭头位置 - 右侧 */
.onboarding-arrow.arrow-right {
    left: -8px;
    border-bottom: none;
    border-left: none;
}

.onboarding-step-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    margin-bottom: 12px;
}

.onboarding-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: var(--text-main, #fff);
    line-height: 1.3;
}

.onboarding-desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary, rgba(255, 255, 255, 0.75));
    margin: 0 0 18px 0;
}

.onboarding-desc strong {
    color: var(--text-main, #fff);
    font-weight: 600;
}

.onboarding-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.onboarding-nav {
    display: flex;
    gap: 8px;
}

.onboarding-btn {
    border: none;
    border-radius: 10px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.onboarding-btn-skip {
    background: transparent;
    color: var(--text-secondary, rgba(255, 255, 255, 0.6));
    padding: 8px 12px;
}

.onboarding-btn-skip:hover {
    color: var(--text-main, #fff);
}

.onboarding-btn-prev {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main, #fff);
}

.onboarding-btn-prev:hover {
    background: rgba(255, 255, 255, 0.14);
}

.onboarding-btn-prev:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.onboarding-btn-next {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.onboarding-btn-next:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.55);
}

.onboarding-progress {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 4px;
}

.onboarding-progress-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.onboarding-progress-dot.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    width: 20px;
    border-radius: 3px;
}

.onboarding-progress-dot.completed {
    background: rgba(102, 126, 234, 0.6);
}

/* 响应式 */
@media (max-width: 768px) {
    .onboarding-tooltip {
        width: calc(100vw - 32px);
        padding: 20px 18px 14px;
        border-radius: 18px;
    }

    .onboarding-title {
        font-size: 16px;
    }

    .onboarding-desc {
        font-size: 13px;
    }

    .onboarding-btn {
        padding: 7px 14px;
        font-size: 12px;
    }
}

/* LIGHT-MODE-FIXES-START */
[data-theme="light"] .slider-tooltip { color: #1d1d1f; background: rgba(0,0,0,0.08); }
[data-theme="light"] .lyrics-line { color: rgba(0,0,0,0.45) !important; text-shadow: 0 1px 2px rgba(255,255,255,0.6); }
[data-theme="light"] .lyrics-line.active { color: #1d1d1f !important; text-shadow: 0 0 20px rgba(0,0,0,0.08); }
[data-theme="light"] .lyrics-line:hover { color: rgba(0,0,0,0.85); }
[data-theme="light"] .lyric-char { color: rgba(0,0,0,0.4); }
[data-theme="light"] .lyrics-line.active .lyric-char { color: rgba(0,0,0,calc(0.7 + var(--progress,0) * 0.3)) !important; text-shadow: 0 0 calc(var(--progress,0) * 15px) rgba(0,0,0,calc(var(--progress,0) * 0.18)), 0 0 calc(var(--progress,0) * 30px) rgba(102,126,234,calc(var(--progress,0) * 0.18)) !important; }
[data-theme="light"] .lyrics-time-ruler { color: rgba(255,255,255,0.85); background: rgba(0,0,0,0.55); }
[data-theme="light"] .lyrics-line.active .lyrics-time-ruler { color: rgba(255,255,255,0.95); background: rgba(0,0,0,0.65); }
[data-theme="light"] .btn-small { color: rgba(0,0,0,0.55); }
[data-theme="light"] .btn-small:hover { color: #1d1d1f !important; background: rgba(0,0,0,0.06) !important; }
[data-theme="light"] .quality-btn { color: rgba(0,0,0,0.75); background: rgba(255,255,255,0.55); border-color: rgba(0,0,0,0.12); }
[data-theme="light"] .quality-btn:hover { color: #1d1d1f; background: rgba(0,0,0,0.06); border-color: rgba(0,0,0,0.18); }
[data-theme="light"] .quality-option { color: rgba(0,0,0,0.7); }
[data-theme="light"] .quality-option:hover { color: #1d1d1f; background: rgba(0,0,0,0.05); }
[data-theme="light"] .quality-option.active { background: rgba(0,0,0,0.85); color: #fff; box-shadow: 0 0 15px rgba(0,0,0,0.18); }
[data-theme="light"] .onboarding-btn-prev { background: rgba(0,0,0,0.06); color: var(--text-main,#1d1d1f); }
[data-theme="light"] .onboarding-btn-prev:hover { background: rgba(0,0,0,0.1); }
[data-theme="light"] .setting-slider { background: rgba(0,0,0,0.12); }
[data-theme="light"] .setting-slider::-webkit-slider-thumb { background: #1d1d1f; border: 2px solid rgba(255,255,255,0.85); box-shadow: 0 2px 6px rgba(0,0,0,0.2); }
[data-theme="light"] .setting-slider::-moz-range-thumb { background: #1d1d1f; border: 2px solid rgba(255,255,255,0.85); box-shadow: 0 2px 6px rgba(0,0,0,0.2); }
[data-theme="light"] .progress-bar, [data-theme="light"] .volume-bar { background: rgba(0,0,0,0.1); border-color: rgba(0,0,0,0.1); }
[data-theme="light"] .progress-bar:hover, [data-theme="light"] .volume-bar:hover { background: rgba(0,0,0,0.15); border-color: rgba(0,0,0,0.15); box-shadow: 0 0 20px rgba(0,0,0,0.08); }
[data-theme="light"] .progress-fill, [data-theme="light"] .volume-fill { background: rgba(0,0,0,0.85) !important; box-shadow: 0 0 12px rgba(0,0,0,0.18) !important; }
[data-theme="light"] .volume-bar:hover { background: rgba(0,0,0,0.15); box-shadow: 0 0 25px rgba(0,0,0,0.1); }
/* LIGHT-MODE-FIXES-END */
