/* ========== Web Music Player - 主样式文件 ========== */

/* CSS 变量定义 */
:root {
    --theme-color: #ef4444;
    --bg-body: #050505;
    --bg-panel: rgba(15, 15, 20, 0.85);
}

/* ========== 基础样式 ========== */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background-color: var(--bg-body);
    color: #e4e4e7;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}

.font-mono {
    font-family: 'JetBrains Mono', 'Consolas', 'Monaco', monospace;
}

/* ========== 启动动画 ========== */
#intro-layer {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background-color: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.intro-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--theme-color);
    animation: pulse-ring 2s infinite, color-cycle 4s infinite linear;
    position: relative;
}

@keyframes color-cycle {
    0%, 100% { background-color: #ef4444; }
    50% { background-color: #10b981; }
}

.intro-logo::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: inherit;
    filter: blur(20px);
    opacity: 0.6;
    animation: breathe 3s infinite alternate;
}

.intro-text {
    margin-top: 24px;
    font-family: 'JetBrains Mono';
    font-size: 10px;
    letter-spacing: 0.3em;
    color: rgba(255,255,255,0.4);
    opacity: 0;
    animation: fade-up 1s ease-out 0.5s forwards;
}

@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.2); }
    70% { box-shadow: 0 0 0 20px rgba(255, 255, 255, 0); }
}

@keyframes breathe {
    0% { transform: scale(0.9); opacity: 0.5; }
    100% { transform: scale(1.1); opacity: 0.8; }
}

@keyframes fade-up {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========== 背景效果 ========== */
.aurora-container {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.aurora-blob {
    position: absolute;
    filter: blur(80px);
    opacity: 0.3;
    transition: background-color 1.2s ease;
    animation: flow 10s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.blob-1 {
    top: -20%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: var(--theme-color);
}

.blob-2 {
    bottom: -20%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: var(--theme-color);
    opacity: 0.2;
    animation-delay: -5s;
}

@keyframes flow {
    0% { transform: translate(0,0) scale(1); }
    100% { transform: translate(30px, 30px) scale(1.1); }
}

.grid-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
}

/* ========== 滚动条样式 ========== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #3f3f46;
    border-radius: 4px;
}

/* ========== Liquid Glass 导航栏 ========== */
.glass-header {
    background: linear-gradient(
        180deg,
        rgba(30, 30, 35, 0.85) 0%,
        rgba(20, 20, 25, 0.9) 100%
    );
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 4px 30px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* 导航栏 Logo */
.nav-logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 100%
    );
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.2);
}

/* 导航栏 Tab 切换 */
.nav-tabs {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.02) 100%
    );
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 4px;
}

/* 导航栏搜索框 */
.nav-search {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.02) 100%
    );
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.nav-search:focus-within {
    border-color: var(--theme-color);
    box-shadow: 0 0 20px rgba(var(--theme-color-rgb, 239, 68, 68), 0.2);
}

/* 导航栏返回按钮 */
.nav-back-btn {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.04) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.nav-back-btn:hover {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0.08) 100%
    );
    border-color: rgba(255, 255, 255, 0.2);
}

.glass-panel {
    background: var(--bg-panel);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.tab-btn {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid transparent;
}

.tab-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.tab-active {
    background: linear-gradient(
        135deg,
        var(--theme-color) 0%,
        color-mix(in srgb, var(--theme-color), black 20%) 100%
    ) !important;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    box-shadow:
        0 4px 15px rgba(var(--theme-color-rgb, 239, 68, 68), 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.nav-wrapper {
    width: 0;
    opacity: 0;
    overflow: hidden;
    transition: width 0.3s, opacity 0.2s, margin-right 0.3s;
    margin-right: 0;
}

.nav-wrapper.active {
    width: 40px;
    opacity: 1;
    margin-right: 0.75rem;
}

/* ========== 播放列表样式 ========== */
.song-item {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.03) 0%,
        rgba(255, 255, 255, 0.01) 100%
    );
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 6px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.song-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.05) 50%,
        transparent 100%
    );
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.song-item:hover {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.04) 100%
    );
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateX(4px);
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.song-item:hover::before {
    transform: translateX(100%);
}

.song-item.active {
    background: linear-gradient(
        135deg,
        rgba(var(--theme-color-rgb, 239, 68, 68), 0.15) 0%,
        rgba(255, 255, 255, 0.05) 100%
    );
    border-color: var(--theme-color);
    border-left: 3px solid var(--theme-color);
    box-shadow:
        0 0 20px rgba(var(--theme-color-rgb, 239, 68, 68), 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.song-item.active::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--theme-color);
    box-shadow: 0 0 10px var(--theme-color);
}

.stat-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

.song-item.playing .stat-dot {
    background-color: var(--theme-color);
    box-shadow: 0 0 12px var(--theme-color), 0 0 4px var(--theme-color);
    animation: dot-breathe 1.5s ease-in-out infinite;
}

@keyframes dot-breathe {
    0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 12px var(--theme-color); }
    50% { opacity: 0.7; transform: scale(0.85); box-shadow: 0 0 20px var(--theme-color); }
}

/* 歌曲序号样式 */
.song-index {
    font-family: 'SF Mono', 'JetBrains Mono', monospace;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
    font-weight: 500;
}

.song-item:hover .song-index {
    color: rgba(255, 255, 255, 0.6);
}

.song-item.active .song-index {
    color: var(--theme-color);
}

/* 歌曲标题和艺术家 */
.song-title {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.2s ease;
}

.song-item:hover .song-title {
    color: #fff;
}

.song-item.active .song-title {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.song-artist {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

.song-item:hover .song-artist {
    color: rgba(255, 255, 255, 0.6);
}

/* 来源标签 */
.song-source-badge {
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.5px;
    backdrop-filter: blur(8px);
    transition: all 0.2s ease;
}

.song-item:hover .song-source-badge {
    transform: scale(1.05);
}

/* ========== 进度条样式 ========== */
input[type=range] {
    appearance: none;
    background: transparent;
    width: 100%;
    cursor: pointer;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 14px;
    width: 14px;
    border-radius: 50%;
    background: #fff;
    margin-top: -6px;
    box-shadow: 0 0 10px rgba(255,255,255,0.9);
    position: relative;
    z-index: 20;
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 2px;
    background: transparent;
}

.search-bar:focus {
    border-color: var(--theme-color) !important;
    box-shadow: 0 0 12px var(--theme-color) !important;
}

/* ========== 歌曲列表头部 ========== */
.songs-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
     padding-bottom: 0.5rem;
}

/* 全部播放按钮样式 */
.play-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--theme-color) 0%, rgba(255, 255, 255, 0.2) 100%);
    color: white;
    border: none;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), 0 0 20px var(--theme-color);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.play-all-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.play-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 30px var(--theme-color);
}

.play-all-btn:hover::before {
    opacity: 1;
}

.play-all-btn:active {
    transform: translateY(0);
}

.play-all-btn svg {
    width: 18px;
    height: 18px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* 随机播放按钮样式 */
.shuffle-play-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.shuffle-play-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.shuffle-play-btn:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.shuffle-play-btn:hover::before {
    opacity: 1;
}

.shuffle-play-btn:active {
    transform: translateY(0);
}

.shuffle-play-btn svg {
    width: 18px;
    height: 18px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* ========== 播放器容器 ========== */
#player-container {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    width: 95%;
    max-width: 420px;
    transform: translateX(-50%) translateY(150%);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 50;
}

/* ========== Apple Music 风格播放器 ========== */
.am-player {
    background: linear-gradient(
        180deg,
        rgba(40, 40, 45, 0.95) 0%,
        rgba(25, 25, 30, 0.98) 100%
    );
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
    position: relative;
}

/* 播放器封面背景光效 */
.am-player::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at 30% 30%,
        var(--theme-color) 0%,
        transparent 50%
    );
    opacity: 0.15;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.am-player:hover::before {
    opacity: 0.2;
}

/* 播放器封面 */
.am-cover-wrapper {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.am-cover-wrapper:hover {
    transform: scale(1.05);
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.15);
}

.am-cover-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Apple Music 进度条 */
.am-progress-wrapper {
    position: relative;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    cursor: pointer;
    transition: height 0.2s ease;
}

.am-progress-wrapper:hover {
    height: 6px;
}

.am-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--theme-color), rgba(255, 255, 255, 0.9));
    border-radius: 2px;
    position: relative;
    transition: width 0.1s linear;
}

.am-progress-fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%) scale(0);
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
}

.am-progress-wrapper:hover .am-progress-fill::after {
    transform: translateY(-50%) scale(1);
}

/* Apple Music 播放按钮 */
.am-play-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fff 0%, #e8e8e8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    transition: all 0.2s ease;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.am-play-btn:hover {
    transform: scale(1.08);
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.am-play-btn:active {
    transform: scale(0.95);
}

/* Apple Music 控制按钮 */
.am-control-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    background: transparent;
    transition: all 0.2s ease;
}

.am-control-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.am-control-btn:active {
    transform: scale(0.9);
}

/* Apple Music 小按钮 */
.am-small-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    background: transparent;
    transition: all 0.2s ease;
}

.am-small-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.am-small-btn.active {
    color: var(--theme-color);
}

/* 歌曲信息 */
.am-song-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.am-song-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.01em;
}

.am-song-artist {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 时间显示 */
.am-time {
    font-size: 10px;
    font-family: 'SF Mono', 'JetBrains Mono', monospace;
    color: rgba(255, 255, 255, 0.4);
    min-width: 32px;
}

/* 音量控制 */
.am-volume-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
}

.am-volume-slider {
    width: 60px;
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    position: relative;
    cursor: pointer;
}

.am-volume-fill {
    height: 100%;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 2px;
    transition: width 0.1s ease;
}

/* 播放时封面呼吸动画 */
.am-cover-wrapper.playing {
    animation: am-cover-breathe 3s ease-in-out infinite;
}

@keyframes am-cover-breathe {
    0%, 100% { transform: scale(1); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1); }
    50% { transform: scale(1.03); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), 0 0 20px var(--theme-color); }
}

/* 播放按钮脉冲动画 */
.am-play-btn.playing::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: am-play-pulse 2s ease-out infinite;
}

@keyframes am-play-pulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.3); opacity: 0; }
}

/* 进度条悬停时渐变动画 */
.am-progress-wrapper:hover .am-progress-fill {
    background: linear-gradient(90deg, var(--theme-color), #fff, var(--theme-color));
    background-size: 200% 100%;
    animation: am-progress-shine 2s linear infinite;
}

@keyframes am-progress-shine {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* 播放器入场动画 */
.am-player {
    animation: am-player-enter 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes am-player-enter {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ========== 可视化效果 ========== */
@keyframes bar-viz {
    0% { height: 20%; }
    100% { height: 80%; }
}

#visualizer .bar {
    width: 2px;
    background-color: rgba(255,255,255,0.8);
    border-radius: 2px;
    animation-name: bar-viz;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-direction: alternate;
}

/* ========== 下载进度条 ========== */
.dl-bar-container {
    width: 100%;
    background-color: rgba(255,255,255,0.1);
    border-radius: 999px;
    height: 6px;
    overflow: hidden;
    position: relative;
}

.dl-bar-fill {
    height: 100%;
    background-color: var(--theme-color);
    width: 0%;
    transition: width 0.2s linear;
    box-shadow: 0 0 10px var(--theme-color);
}

.dl-bar-indeterminate {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--theme-color), transparent);
    background-size: 200% 100%;
    animation: indeterminate 1.5s infinite linear;
}

@keyframes indeterminate {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ========== 歌词动画 ========== */
@keyframes lyric-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

#p-lyric.lyric-update {
    animation: lyric-fade 0.5s ease-out;
}

#main-scroller {
    transition: padding-bottom 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ========== 全屏歌词样式 ========== */
#fl-lyric-scroll::-webkit-scrollbar {
    display: none;
}

/* AMLL 动态流体背景 */
.fl-bg-animate {
    animation: fl-bg-flow 20s ease-in-out infinite;
}

@keyframes fl-bg-flow {
    0%, 100% { transform: scale(1.2) translate(0, 0) rotate(0deg); }
    25% { transform: scale(1.25) translate(3%, -2%) rotate(1deg); }
    50% { transform: scale(1.22) translate(-2%, 2%) rotate(-1deg); }
    75% { transform: scale(1.24) translate(2%, 3%) rotate(0.5deg); }
}

/* 流体光斑 */
.fluid-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    mix-blend-mode: soft-light;
    pointer-events: none;
}

.fluid-blob-1 {
    width: 50vw;
    height: 50vw;
    background: linear-gradient(135deg, #ff6b6b, #feca57);
    animation: blob-move-1 15s ease-in-out infinite;
}

.fluid-blob-2 {
    width: 40vw;
    height: 40vw;
    background: linear-gradient(135deg, #5f27cd, #48dbfb);
    animation: blob-move-2 18s ease-in-out infinite;
}

.fluid-blob-3 {
    width: 35vw;
    height: 35vw;
    background: linear-gradient(135deg, #1dd1a1, #10ac84);
    animation: blob-move-3 20s ease-in-out infinite;
}

@keyframes blob-move-1 {
    0%, 100% { top: -20%; left: -10%; transform: scale(1); }
    33% { top: 10%; left: 30%; transform: scale(1.1); }
    66% { top: -10%; left: 60%; transform: scale(0.9); }
}

@keyframes blob-move-2 {
    0%, 100% { bottom: -20%; right: -10%; transform: scale(1); }
    33% { bottom: 20%; right: 40%; transform: scale(1.2); }
    66% { bottom: 0%; right: 10%; transform: scale(0.85); }
}

@keyframes blob-move-3 {
    0%, 100% { top: 50%; left: 50%; transform: translate(-50%, -50%) scale(1); }
    50% { top: 30%; left: 30%; transform: translate(-50%, -50%) scale(1.3); }
}

/* ========== Liquid Glass 效果 ========== */
.liquid-glass {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(255, 255, 255, 0.1) 100%
    );
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(255, 255, 255, 0.05);
}

.liquid-glass-btn {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0.05) 100%
    );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.liquid-glass-btn:hover {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.25) 0%,
        rgba(255, 255, 255, 0.1) 100%
    );
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.liquid-glass-btn:active {
    transform: scale(0.95);
}

.liquid-glass-play {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.3) 0%,
        rgba(255, 255, 255, 0.1) 100%
    );
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.15),
        inset 0 2px 0 rgba(255, 255, 255, 0.4),
        0 0 40px rgba(255, 255, 255, 0.1);
}

.liquid-glass-play:hover {
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 2px 0 rgba(255, 255, 255, 0.5),
        0 0 60px rgba(255, 255, 255, 0.15);
}

.liquid-glass-cover {
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* ========== AMLL 风格歌词 - 弹簧动画 ========== */
.fl-lyric-line {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.3);
    padding: 0.4rem 0;
    text-align: left;
    filter: blur(3px);
    cursor: pointer;
    transform: scale(0.92) translateY(0);
    transform-origin: left center;
    opacity: 0.5;
    /* 弹簧动画曲线 */
    transition:
        transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
        filter 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.4s ease-out,
        color 0.3s ease-out,
        text-shadow 0.4s ease-out,
        font-size 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.fl-lyric-line:hover {
    color: rgba(255, 255, 255, 0.5);
    filter: blur(1.5px);
    opacity: 0.7;
}

/* 已播放的歌词 */
.fl-lyric-line.passed {
    color: rgba(255, 255, 255, 0.4);
    filter: blur(0);
    transform: scale(0.95) translateY(0);
    opacity: 0.6;
}

/* 当前播放行 - 基础样式（卡拉OK效果在后面覆盖） */
.fl-lyric-line.active {
    font-size: 1.8rem;
    transform: scale(1) translateY(-4px);
    opacity: 1;
}

/* 下方歌词 - 渐进模糊 */
.fl-lyric-line.next-1 {
    color: rgba(255, 255, 255, 0.6);
    filter: blur(0.5px);
    transform: scale(0.97) translateY(0);
    opacity: 0.85;
}

.fl-lyric-line.next-2 {
    color: rgba(255, 255, 255, 0.45);
    filter: blur(1.5px);
    transform: scale(0.95) translateY(0);
    opacity: 0.7;
}

.fl-lyric-line.next-3 {
    color: rgba(255, 255, 255, 0.35);
    filter: blur(2px);
    transform: scale(0.93) translateY(0);
    opacity: 0.55;
}

/* 歌词出现动画 */
.fl-lyric-line.lyric-enter {
    animation: lyric-slide-in 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes lyric-slide-in {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    to {
        opacity: 0.5;
        transform: scale(0.92) translateY(0);
    }
}

/* 响应式样式 */
@media (min-width: 768px) {
    .fl-lyric-line {
        font-size: 1.8rem;
        padding: 0.5rem 0;
        filter: blur(4px);
    }
    .fl-lyric-line.active {
        font-size: 2.3rem;
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.6))
                drop-shadow(0 0 40px rgba(255, 255, 255, 0.4));
    }
    .fl-lyric-line.next-1 { filter: blur(1px); }
    .fl-lyric-line.next-2 { filter: blur(2px); }
    .fl-lyric-line.next-3 { filter: blur(3px); }
    .fl-lyric-trans { font-size: 1rem; }
}

@media (min-width: 1024px) {
    .fl-lyric-line {
        font-size: 2rem;
        padding: 0.6rem 0;
        filter: blur(5px);
    }
    .fl-lyric-line.passed {
        filter: blur(0);
    }
    .fl-lyric-line.active {
        font-size: 2.6rem;
        transform: scale(1) translateY(-6px);
        filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.7))
                drop-shadow(0 0 50px rgba(255, 255, 255, 0.5));
    }
    .fl-lyric-line.next-1 { filter: blur(1.5px); }
    .fl-lyric-line.next-2 { filter: blur(3px); }
    .fl-lyric-line.next-3 { filter: blur(4px); }
    .fl-lyric-trans { font-size: 1.1rem; }
}

/* 进度条发光 */
.progress-glow {
    box-shadow: 0 0 10px var(--theme-color), 0 0 20px var(--theme-color);
}

/* ========== 卡拉OK效果 ========== */
.fl-lyric-line.active {
    position: relative;
    /* 使用渐变实现卡拉OK效果 */
    background: linear-gradient(
        90deg,
        #fff 0%,
        #fff var(--karaoke-progress, 0%),
        rgba(255, 255, 255, 0.5) var(--karaoke-progress, 0%),
        rgba(255, 255, 255, 0.5) 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    /* 添加发光效果 */
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.6))
            drop-shadow(0 0 30px rgba(255, 255, 255, 0.4));
}

/* 已播放歌词的发光拖尾效果 */
.fl-lyric-line.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: var(--karaoke-progress, 0%);
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0.8)
    );
    transform: translateY(-50%);
    border-radius: 1px;
    filter: blur(2px);
    opacity: 0.5;
}

/* 歌词容器样式 */
.lyric-wrapper {
    margin-bottom: 0.5rem;
}

/* 翻译歌词样式 */
.fl-lyric-trans {
    font-size: 0.85rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.25);
    margin-top: 0.3rem;
    filter: blur(2px);
    opacity: 0.5;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    transform: translateY(0);
}

.fl-lyric-trans.active {
    color: rgba(255, 255, 255, 0.8);
    filter: blur(0);
    opacity: 1;
    transform: translateY(-2px);
}

.fl-lyric-trans.passed {
    color: rgba(255, 255, 255, 0.5);
    filter: blur(0);
    opacity: 0.7;
}

.fl-lyric-trans:hover {
    color: rgba(255, 255, 255, 0.4);
    filter: blur(0.5px);
    opacity: 0.7;
    cursor: pointer;
}

/* ========== 播放队列弹窗 ========== */
.queue-modal-glass {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.queue-box-glass {
    background: linear-gradient(
        180deg,
        rgba(40, 40, 45, 0.95) 0%,
        rgba(25, 25, 30, 0.98) 100%
    );
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.queue-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.03) 0%,
        rgba(255, 255, 255, 0.01) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 6px;
}

.queue-item:hover {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.04) 100%
    );
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateX(4px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.queue-item.active {
    background: linear-gradient(
        135deg,
        rgba(var(--theme-color-rgb, 239, 68, 68), 0.15) 0%,
        rgba(255, 255, 255, 0.05) 100%
    );
    border-color: var(--theme-color);
    box-shadow: 0 0 20px rgba(var(--theme-color-rgb, 239, 68, 68), 0.2);
}

.queue-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: var(--theme-color);
    border-radius: 2px;
    box-shadow: 0 0 10px var(--theme-color);
}

.queue-item .queue-playing-icon {
    display: none;
    color: var(--theme-color);
    filter: drop-shadow(0 0 4px var(--theme-color));
}

.queue-item.active .queue-index {
    display: none;
}

.queue-item.active .queue-playing-icon {
    display: block;
    animation: queue-pulse 1.5s infinite;
}

@keyframes queue-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.9); }
}

.queue-item .queue-remove {
    opacity: 0;
    transition: all 0.2s ease;
    padding: 6px;
    border-radius: 50%;
}

.queue-item:hover .queue-remove {
    opacity: 1;
}

.queue-item .queue-remove:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

#queue-list::-webkit-scrollbar { width: 4px; }
#queue-list::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.05); border-radius: 2px; }
#queue-list::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.2); border-radius: 2px; }
#queue-list::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.3); }

/* 队列头部按钮 */
.queue-header-btn {
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
    background: transparent;
}

.queue-header-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.queue-header-btn.danger:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* 下载选项按钮样式 */
.dl-option-btn {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.03) 0%,
        rgba(255, 255, 255, 0.01) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.dl-option-btn:hover {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.04) 100%
    );
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateX(4px);
}

.dl-option-btn:active {
    transform: translateX(2px) scale(0.98);
}

/* ========== 榜单卡片 ========== */
.playlist-card {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.02) 100%
    );
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
}

.playlist-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.playlist-card-cover {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

.playlist-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
    filter: brightness(0.85);
}

.playlist-card:hover .playlist-card-cover img {
    transform: scale(1.08);
    filter: brightness(1);
}

.playlist-card-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 50%,
        rgba(0, 0, 0, 0.6) 100%
    );
    pointer-events: none;
}

.playlist-card-play {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.playlist-card:hover .playlist-card-play {
    opacity: 1;
    transform: translateY(0);
}

.playlist-card-play:hover {
    transform: scale(1.1);
}

.playlist-card-info {
    padding: 12px;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.03) 0%,
        transparent 100%
    );
}

.playlist-card-title {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

.playlist-card:hover .playlist-card-title {
    color: #fff;
}

.playlist-card-sub {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 4px;
}

/* ========== 收藏按钮样式 ========== */
.favorite-button {
    transition: all 0.3s ease;
}

.favorite-button:hover {
    transform: scale(1.1);
}

.favorite-button.active {
    color: #ef4444 !important;
}

.favorite-button.active:hover {
    color: #dc2626 !important;
}
