/* ==========================================================================
   🎵 Salt Player Web - 椒盐音乐现代沉浸式高保真播放器样式规范
   参考 Moriafly/SaltUI 官方设计语言 (暗黑美学 / 动态流光 / 动感歌词)
   ========================================================================== */

:root {
    --bg-primary: #121216;
    --bg-card: rgba(30, 30, 38, 0.75);
    --bg-card-hover: rgba(45, 45, 58, 0.85);
    --bg-drawer: rgba(20, 20, 26, 0.95);
    --bg-pill: rgba(255, 255, 255, 0.08);
    --bg-pill-active: rgba(255, 255, 255, 0.2);
    
    --text-primary: #f5f5f7;
    --text-secondary: #9e9ea7;
    --text-tertiary: #686873;
    
    /* 椒盐音乐标志性清澈强调色 */
    --accent-cyan: #00f2fe;
    --accent-blue: #3890ff;
    --accent-green: #30d158;
    --accent-red: #ff453a;
    --accent-yellow: #ffd60a;
    --accent-orange: #ff9f0a;
    --accent-purple: #bf5af2;
    
    /* 动态取色注入变量 */
    --palette-primary: rgba(56, 144, 255, 0.4);
    --palette-secondary: rgba(191, 90, 242, 0.25);
    --palette-accent: #00f2fe;
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 26px;
    
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.45);
    --shadow-cover: 0 20px 50px rgba(0, 0, 0, 0.6);
    --blur-glass: blur(28px) saturate(180%);
}

/* 明亮主题 */
body.theme-light {
    --bg-primary: #f5f6fa;
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-card-hover: rgba(240, 242, 248, 0.95);
    --bg-drawer: rgba(255, 255, 255, 0.96);
    --bg-pill: rgba(0, 0, 0, 0.06);
    --bg-pill-active: rgba(0, 0, 0, 0.12);
    --text-primary: #1c1c1e;
    --text-secondary: #636366;
    --text-tertiary: #8e8e93;
    --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.08);
}

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Inter", "Helvetica Neue", sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* 动态流光壁纸 (跟随专辑动态取色) */
.dynamic-bg {
    position: fixed;
    top: -25%;
    left: -25%;
    width: 150%;
    height: 150%;
    background-image: radial-gradient(circle at 30% 30%, var(--palette-primary) 0%, var(--palette-secondary) 50%, var(--bg-primary) 85%);
    background-size: cover;
    background-position: center;
    filter: blur(80px);
    opacity: 0.6;
    z-index: -2;
    transition: background-image 1.2s ease, opacity 0.8s ease;
    animation: pulseMesh 14s ease-in-out infinite alternate;
}

@keyframes pulseMesh {
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.08) rotate(3deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.dynamic-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 18, 22, 0.65);
    backdrop-filter: blur(8px);
    z-index: -1;
}

body.theme-light .dynamic-overlay {
    background: rgba(245, 246, 250, 0.6);
}

/* ==================== 响应式骨架 (App Shell) ==================== */
.app-shell {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: row;
    position: relative;
    overflow: hidden;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, background 0.2s ease;
}
button:active {
    transform: scale(0.92);
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--text-primary);
}
.icon-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}
.icon-btn-small {
    width: 32px;
    height: 32px;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
}
.icon-btn-small:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.hide {
    display: none !important;
}

/* ==================== 侧边栏导航 (SaltUI Drawer) ==================== */
.drawer-menu {
    position: relative;
    width: 260px;
    height: 100vh;
    flex-shrink: 0;
    z-index: 10;
    display: flex;
}

.drawer-backdrop {
    display: none;
}

.drawer-card {
    width: 100%;
    height: 100%;
    background: var(--bg-drawer);
    backdrop-filter: var(--blur-glass);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.app-brand-badge {
    display: flex;
    align-items: center;
    gap: 10px;
}
.brand-logo { font-size: 22px; }
.brand-name {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #fff 40%, var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.drawer-actions-right {
    display: flex;
    gap: 6px;
}
.drawer-action-btn {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
}
.drawer-action-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}
.drawer-action-btn.yellow:hover { color: var(--accent-yellow); }
.drawer-action-btn.blue:hover { color: var(--accent-cyan); }

.drawer-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.drawer-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}
.drawer-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}
.drawer-item.active {
    background: linear-gradient(135deg, rgba(56, 144, 255, 0.25), rgba(0, 242, 254, 0.15));
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(0, 242, 254, 0.15);
}

.drawer-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
}
.drawer-icon.green { color: var(--accent-green); }
.drawer-icon.purple { color: var(--accent-purple); }
.drawer-icon.red { color: var(--accent-red); }
.drawer-icon.orange { color: var(--accent-orange); }

.badge-tag {
    margin-left: auto;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

.badge-status {
    margin-left: auto;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 12px;
    background: rgba(48, 209, 88, 0.2);
    color: var(--accent-green);
    font-weight: 600;
}

.drawer-footer-info {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 11px;
    color: var(--text-tertiary);
}
.db-badge {
    background: rgba(255, 214, 10, 0.15);
    color: var(--accent-yellow);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

/* ==================== 主内容视口 ==================== */
.app-container {
    flex: 1;
    height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.app-header {
    height: 64px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 5;
}

.header-title-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.header-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}
.header-subtitle {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 1px;
}

.search-bar-wrap {
    padding: 4px 24px 12px;
    animation: fadeInDown 0.25s ease;
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.search-input-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 8px 14px;
    color: var(--text-primary);
}
.search-input-box input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 14px;
}
.search-input-box input::placeholder {
    color: var(--text-tertiary);
}
.btn-clear {
    color: var(--text-tertiary);
    font-size: 18px;
}

/* 统计与平台切换胶囊 */
.list-controls-bar {
    padding: 4px 24px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.controls-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.pill-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
}
.pill-btn.highlight {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
    color: #000;
    box-shadow: 0 4px 14px rgba(0, 242, 254, 0.3);
}

.platform-chips {
    display: flex;
    gap: 6px;
    background: rgba(255, 255, 255, 0.06);
    padding: 3px;
    border-radius: 20px;
}
.chip {
    padding: 5px 12px;
    border-radius: 16px;
    font-size: 12px;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}
.chip.active {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* ==================== 歌曲列表与榜单大厅卡片 ==================== */
.main-content {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.song-list-scroll-wrap {
    height: 100%;
    overflow-y: auto;
    padding: 0 24px 100px;
}
.song-list-scroll-wrap::-webkit-scrollbar { width: 4px; }
.song-list-scroll-wrap::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.song-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* SaltUI 歌曲卡片项 */
.song-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.02);
    transition: background 0.2s ease, transform 0.15s ease;
    cursor: pointer;
}
.song-item:hover {
    background: rgba(255, 255, 255, 0.07);
}
.song-item:active {
    transform: scale(0.98);
}
.song-item.playing {
    background: linear-gradient(135deg, rgba(56, 144, 255, 0.18), rgba(0, 242, 254, 0.08));
    border: 1px solid rgba(0, 242, 254, 0.3);
}

.song-index {
    width: 22px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-tertiary);
    text-align: center;
}
.song-item.playing .song-index {
    color: var(--accent-cyan);
}

.song-cover-wrap {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.song-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: none;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.song-item:hover .play-overlay {
    display: flex;
}

/* 动态声波动画 (Equalizer Bars) */
.equalizer-wave {
    display: none;
    align-items: flex-end;
    gap: 2px;
    height: 14px;
}
.song-item.playing .equalizer-wave {
    display: flex;
}
.eq-bar {
    width: 3px;
    background: var(--accent-cyan);
    border-radius: 1px;
    animation: bounce 0.8s ease-in-out infinite alternate;
}
.eq-bar:nth-child(1) { height: 60%; animation-delay: 0.1s; }
.eq-bar:nth-child(2) { height: 100%; animation-delay: 0.3s; }
.eq-bar:nth-child(3) { height: 40%; animation-delay: 0.2s; }
@keyframes bounce {
    0% { height: 20%; }
    100% { height: 100%; }
}

.song-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.song-title-row {
    display: flex;
    align-items: center;
    gap: 6px;
}
.song-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.song-item.playing .song-name {
    color: var(--accent-cyan);
}

.badge-sq {
    background: rgba(0, 242, 254, 0.15);
    color: var(--accent-cyan);
    font-size: 9px;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 3px;
}
.song-artist-album {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 榜单大厅大卡片 */
.toplist-card-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: var(--blur-glass);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.25s ease;
}
.toplist-card-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}
.toplist-card-cover {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    object-fit: cover;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}
.toplist-card-info {
    flex: 1;
    min-width: 0;
}
.toplist-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}
.toplist-card-desc {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.toplist-card-arrow {
    color: var(--text-tertiary);
}

/* ==================== 底部 Mini 悬浮播放条 ==================== */
.mini-player {
    position: absolute;
    bottom: 16px;
    left: 24px;
    right: 24px;
    height: 68px;
    background: var(--bg-card);
    backdrop-filter: var(--blur-glass);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 20;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.3s ease;
}
.mini-player:hover {
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

.mini-player-left {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}
.mini-cover {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
.mini-info {
    flex: 1;
    min-width: 0;
}
.mini-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mini-artist {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.mini-player-right {
    display: flex;
    align-items: center;
    gap: 8px;
}
.icon-btn-play {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
    color: #000;
    box-shadow: 0 4px 14px rgba(0, 242, 254, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
}

/* 视觉重心微调：播放三角图标右移 1.5px 达到严格的光学绝对居中 */
#mini-play-icon {
    transform: translateX(1.5px);
}

#large-play-icon {
    transform: translateX(2.5px);
}

.play-overlay svg {
    transform: translateX(1px);
}

.mini-progress-track {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
}
.mini-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan));
    width: 0%;
    transition: width 0.15s linear;
}

/* ==================== 沉浸式全屏播放器 (Full Player) ==================== */
.full-player {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #101014;
    z-index: 100;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px 24px 40px;
    transform: translateY(100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s ease;
    overflow: hidden;
}
.full-player.open {
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
}

.player-blur-bg {
    position: absolute;
    top: -20%;
    left: -20%;
    width: 140%;
    height: 140%;
    background-size: cover;
    background-position: center;
    filter: blur(80px) brightness(0.65) saturate(160%);
    z-index: -1;
    opacity: 0.85;
    transition: background-image 0.8s ease;
}

.player-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 50px;
}
.player-header-title {
    text-align: center;
    flex: 1;
    min-width: 0;
    padding: 0 16px;
}
.full-song-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.full-song-artist {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}
.icon-btn-trans {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.player-middle-container {
    flex: 1;
    position: relative;
    margin: 20px 0;
    overflow: hidden;
}

.player-view {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.95);
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.player-view.active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

/* 视图 1: 大封面模式 */
.cover-card-wrap {
    width: 72vw;
    max-width: 320px;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-cover);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.full-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cover-lyric-snippet {
    margin-top: 28px;
    text-align: center;
    padding: 0 20px;
    cursor: pointer;
}
.snippet-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}
.snippet-author {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 6px;
}

/* 视图 2: 动感滚动歌词模式 (Apple Music / Salt Player) */
.view-lyrics {
    justify-content: flex-start;
}
.lyrics-scroll-container {
    width: 100%;
    height: 85%;
    overflow-y: auto;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    text-align: left;
    mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
}
.lyrics-scroll-container::-webkit-scrollbar { display: none; }

.lyric-line {
    font-size: 20px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.35);
    line-height: 1.4;
    transition: color 0.3s ease, font-size 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
    cursor: pointer;
}
.lyric-line:hover {
    color: rgba(255, 255, 255, 0.7);
}
.lyric-line.active {
    color: #ffffff;
    font-size: 26px;
    font-weight: 800;
    text-shadow: 0 0 24px rgba(255, 255, 255, 0.6);
    transform: scale(1.04);
}

.lyric-embedded-tag {
    margin-top: auto;
    width: 100%;
    padding: 8px 20px;
}
.tag-box {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 600;
}

/* 视图 3: 音频参数与 EQ 音效 */
.view-audio-info {
    justify-content: flex-start;
    gap: 14px;
    width: 100%;
    overflow-y: auto;
    padding: 10px 4px;
}
.info-pills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
}
.info-pill {
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease;
}
.info-pill:hover {
    background: rgba(255, 255, 255, 0.14);
}

.info-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 16px;
    width: 100%;
}
.info-card-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.info-card-desc {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    margin-top: 6px;
}
.info-card-sub {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.info-card.flex-card {
    display: flex;
    align-items: center;
    gap: 14px;
}
.info-thumb {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}
.info-thumb.round {
    border-radius: 50%;
}
.info-meta-title {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}
.info-meta-sub {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* 播放控制区 */
.player-bottom-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.progress-wrap {
    width: 100%;
}
.progress-bar-container {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    position: relative;
    cursor: pointer;
    touch-action: none;
}
.progress-bar-fill {
    height: 100%;
    background: #fff;
    border-radius: 4px;
    width: 0%;
}
.progress-bar-thumb {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.2s ease;
}
.progress-bar-container:hover .progress-bar-thumb {
    opacity: 1;
}

.time-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-top: 8px;
}

.main-ctrl-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 36px;
}
.ctrl-btn {
    width: 48px;
    height: 48px;
    color: #fff;
    opacity: 0.85;
}
.ctrl-btn:hover {
    opacity: 1;
}

.btn-play-large {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: #fff;
    color: #000;
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.35);
}

.sub-ctrl-row {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding-top: 10px;
}
.sub-btn {
    width: 40px;
    height: 40px;
    color: var(--text-secondary);
}
.sub-btn:hover {
    color: #fff;
}

/* ==================== 播放队列抽屉 (Queue Drawer) ==================== */
.queue-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 120;
    display: flex;
    justify-content: flex-end;
    flex-direction: column;
    visibility: hidden;
    transition: visibility 0.3s ease;
}
.queue-drawer.open {
    visibility: visible;
}
.queue-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.queue-drawer.open .queue-backdrop {
    opacity: 1;
}
.queue-card {
    position: relative;
    width: 100%;
    max-height: 75vh;
    background: var(--bg-drawer);
    backdrop-filter: var(--blur-glass);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    padding: 16px 20px 30px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.queue-drawer.open .queue-card {
    transform: translateY(0);
}

.queue-swipe-hint {
    text-align: center;
    font-size: 11px;
    color: var(--text-tertiary);
}
.queue-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.queue-count {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}
.btn-text {
    font-size: 13px;
    color: var(--accent-red);
}

.queue-list {
    list-style: none;
    overflow-y: auto;
    max-height: 48vh;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.queue-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
}
.queue-item:hover {
    background: rgba(255, 255, 255, 0.08);
}
.queue-item-info {
    flex: 1;
    min-width: 0;
}
.queue-item-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.queue-item-artist {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}
.queue-item-remove {
    color: var(--text-tertiary);
    font-size: 18px;
    padding: 4px;
}

/* ==================== 弹窗组件 (SaltUI Modal) ==================== */
.modal-wrap {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 150;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
}
.modal-box {
    position: relative;
    width: 100%;
    max-width: 440px;
    background: rgba(26, 26, 34, 0.95);
    backdrop-filter: var(--blur-glass);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: zoomIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.modal-header h2 {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
}
.btn-close {
    font-size: 22px;
    color: var(--text-secondary);
}

.timer-chips-grid, .eq-presets-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}
.timer-chip, .eq-chip {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 10px;
    border-radius: var(--radius-md);
    font-size: 13px;
    color: var(--text-primary);
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.timer-chip:hover, .eq-chip:hover {
    background: rgba(56, 144, 255, 0.15);
    border-color: var(--accent-blue);
    color: var(--accent-cyan);
}
.timer-chip.active, .eq-chip.active {
    background: linear-gradient(135deg, rgba(56, 144, 255, 0.3), rgba(0, 210, 255, 0.2));
    border-color: var(--accent-cyan);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.2);
}
.sleep-status-text {
    font-size: 12px;
    color: var(--accent-yellow);
    margin-top: 14px;
    text-align: center;
}

/* 扫码与日历 */
.qr-tabs {
    display: flex;
    gap: 6px;
    background: rgba(255, 255, 255, 0.06);
    padding: 3px;
    border-radius: 12px;
}
.qr-tab {
    flex: 1;
    padding: 8px;
    font-size: 12px;
    color: var(--text-secondary);
    border-radius: 9px;
}
.qr-tab.active {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-weight: 600;
}
.qr-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.qr-img-wrap {
    width: 180px;
    height: 180px;
    border-radius: var(--radius-md);
    background: #fff;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.qr-img-wrap img { width: 100%; height: 100%; }
.qr-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #fff;
    font-size: 13px;
}
.btn-refresh {
    background: var(--accent-blue);
    color: #fff;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 12px;
}
.qr-status-msg { font-size: 14px; font-weight: 500; color: #fff; }
.qr-hint { font-size: 12px; color: var(--text-tertiary); text-align: center; }

.calendar-hint { font-size: 13px; color: var(--text-secondary); }
.calendar-date-chips {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    max-height: 240px;
    overflow-y: auto;
}
.date-chip {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px 12px;
    border-radius: var(--radius-md);
    font-size: 13px;
    color: var(--text-primary);
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
}
.date-chip:hover {
    background: rgba(56, 144, 255, 0.2);
    border-color: var(--accent-blue);
    color: var(--accent-cyan);
}

/* ==================== 移动端媒体查询 (< 768px) ==================== */
@media (max-width: 767px) {
    .drawer-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        visibility: hidden;
        transition: visibility 0.3s ease;
    }
    .drawer-menu.open {
        visibility: visible;
    }
    .drawer-backdrop {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.65);
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    .drawer-menu.open .drawer-backdrop {
        opacity: 1;
    }
    .drawer-card {
        position: absolute;
        top: 14px;
        bottom: 14px;
        left: 14px;
        width: 260px;
        height: auto;
        border-radius: var(--radius-xl);
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7);
        transform: translateX(-110%);
        transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .drawer-menu.open .drawer-card {
        transform: translateX(0);
    }

    .app-header {
        height: 56px;
        padding: 0 16px;
    }
    .header-title-wrap {
        text-align: center;
    }
    .header-title { font-size: 19px; }
    .search-bar-wrap { padding: 6px 16px 10px; }
    .list-controls-bar { padding: 8px 14px 12px; }
    .song-list-scroll-wrap { padding: 0 8px 100px 14px; }
    .mini-player {
        bottom: 12px;
        left: 12px;
        right: 12px;
        height: 64px;
    }
}
