/**
 * 音乐播放器样式 v2.2
 */

:root {
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --accent: #a855f7;
    --bg-dark: #0a0a1a;
    --bg-card: #12122a;
    --bg-card-hover: #1a1a3a;
    --bg-input: #16163a;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --border-color: #27273f;
    --bg-tertiary: #1a1a3a;
    --success: #10b981;
    --gradient-1: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.4);
    --player-height: 80px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-card);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}
/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) var(--bg-card);
}

html {
    overflow-x: hidden;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    padding-bottom: calc(var(--player-height) + 20px);
    line-height: 1.5;
    overflow-x: hidden;
    max-width: 100vw;
}

.bg-animation {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
    background: 
        radial-gradient(ellipse at 20% 0%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(168, 85, 247, 0.1) 0%, transparent 50%);
}

/* 导航栏 */
.navbar {
    background: rgba(10, 10, 26, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    font-size: 1.25rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.navbar-brand i {
    -webkit-text-fill-color: initial;
    color: var(--primary);
    font-size: 1.5rem;
}

.nav-actions { display: flex; gap: 0.5rem; }

.nav-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.nav-btn:hover { color: var(--text-primary); background: var(--bg-card); }
.nav-btn.active { background: var(--gradient-1); color: white; }
.nav-btn span { font-size: 0.75rem; opacity: 0.7; }

/* 主容器 */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
}

/* 搜索栏 - 紧凑设计 */
.search-bar {
    margin-bottom: 1rem;
}

.search-bar-inner {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: visible;
    transition: all 0.2s;
    position: relative;
}

.search-bar-inner:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
}

/* 修复圆角 */
.search-bar-inner > *:first-child {
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}
.search-bar-inner > *:last-child {
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.platform-select {
    background: var(--bg-input);
    border: none;
    border-right: 1px solid var(--border-color);
    padding: 0.75rem 0.875rem;
    color: var(--text-primary);
    font-size: 0.85rem;
    cursor: pointer;
    min-width: 80px;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.platform-select:focus { outline: none; }

.search-input-box {
    flex: 1;
    display: flex;
    align-items: center;
    padding-left: 0.875rem;
    padding-right: 0;
    gap: 0.625rem;
    background: transparent;
    position: relative;
}

/* 搜索建议下拉 */
.search-suggest {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    max-height: 400px;
    overflow-y: auto;
    z-index: 9999;
    display: none;
    box-shadow: var(--shadow-lg);
}
.search-suggest.show { display: block !important; }
.search-suggest-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: background 0.2s;
    border-bottom: 1px solid var(--border-color);
}
.search-suggest-item:last-child { border-bottom: none; }
.search-suggest-item:hover { background: var(--bg-card-hover); }
.search-suggest-item i { color: var(--text-muted); }
.search-suggest-item span { color: var(--text-primary); font-size: 0.9rem; }

/* 热搜样式 */
.search-suggest-header {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.search-suggest-header i { color: #ff6b6b; }
.search-suggest-item.hot {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.hot-rank {
    min-width: 1.5rem;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}
.hot-rank.top { color: #ff6b6b; }
.hot-text { flex: 1; }
.hot-desc {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--text-muted);
    max-width: 40%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


.search-input-box input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.75rem 0;
    font-size: 0.95rem;
    color: var(--text-primary);
    min-width: 0;
}

.search-input-box input:focus { outline: none; }
.search-input-box input::placeholder { color: var(--text-muted); }

.search-btn {
    background: var(--primary);
    border: none;
    padding: 0.75rem 1rem;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
    margin: 0;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.search-btn:hover { background: var(--primary-dark); }
.search-btn i { font-size: 1.1rem; }

/* 修复浏览器自动填充样式 */
.search-input-box input:-webkit-autofill,
.search-input-box input:-webkit-autofill:hover,
.search-input-box input:-webkit-autofill:focus,
.search-input-box input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px var(--bg-card) inset !important;
    -webkit-text-fill-color: var(--text-primary) !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* 面板 */
.content-panel { display: none; }
.content-panel.active { display: block; animation: fadeIn 0.3s ease; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 结果区域 */
.result-section {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    gap: 0.5rem;
    min-height: 48px;
}

.result-info { display: flex; align-items: center; gap: 0.5rem; }
.result-title { font-size: 0.9rem; font-weight: 600; }
.result-count { color: var(--text-muted); font-size: 0.8rem; }
.result-actions { display: flex; align-items: center; gap: 0.5rem; }

.action-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s;
}

.action-btn:hover { background: var(--bg-card-hover); }
.action-btn.primary { background: var(--primary); border-color: var(--primary); color: white; }
.action-btn.primary:hover { opacity: 0.9; }
.action-btn.danger:hover { background: #ef4444; border-color: #ef4444; color: white; }

/* 分页 - 内联样式 */
.pagination {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.page-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.35rem 0.6rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.2s;
}

.page-btn:hover:not(:disabled) { background: var(--bg-card-hover); }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.page-info { color: var(--text-muted); font-size: 0.75rem; padding: 0 0.25rem; }

/* 歌曲列表 */
.songs-container {
    max-height: calc(100vh - 280px);
    overflow-y: auto;
}

.songs-container::-webkit-scrollbar { width: 5px; }
.songs-container::-webkit-scrollbar-track { background: transparent; }
.songs-container::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 3px; }

.song-item {
    display: grid;
    grid-template-columns: 40px 1fr auto auto;
    gap: 0.5rem;
    align-items: center;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 1px solid rgba(39, 39, 63, 0.5);
    position: relative;
}

.song-item:last-child { border-bottom: none; }
.song-item:hover { background: var(--bg-card-hover); }
.song-item:hover .song-actions { opacity: 1; }
.song-item.playing { background: rgba(99, 102, 241, 0.1); }

/* 歌曲操作按钮 */
.song-actions {
    display: flex;
    gap: 0.25rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.song-action-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: var(--bg-input);
    color: var(--text-secondary);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 0.8rem;
}

.song-action-btn:hover { background: var(--primary); color: white; }
.song-action-btn.danger:hover { background: #ef4444; }
.song-item.playing .song-name { color: var(--primary-light); }

/* MV 标签 */
.mv-tag {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.1rem 0.4rem;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    border-radius: 3px;
    cursor: pointer;
    vertical-align: middle;
    transition: all 0.2s;
}
.mv-tag:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(238, 90, 36, 0.4);
}

.song-item.playing::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--gradient-1);
}

.song-cover {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background: var(--bg-input);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--text-muted);
    flex-shrink: 0;
}

.song-cover img { width: 100%; height: 100%; object-fit: cover; }
.song-cover i { font-size: 1rem; }

.song-info { overflow: hidden; min-width: 0; }

.song-name {
    font-weight: 500;
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.1rem;
}

.song-artist {
    color: var(--text-muted);
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-duration {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.empty-state h3 { font-size: 1.25rem; color: var(--text-primary); margin-bottom: 0.5rem; }
.empty-state p { font-size: 0.9rem; }

/* 歌单列表 */
.mylist-container {
    max-height: calc(100vh - 280px);
    overflow-y: auto;
    padding: 0.5rem;
}

.mylist-item {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.75rem;
    background: var(--bg-input);
    border-radius: var(--radius-md);
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.mylist-item:hover { background: var(--bg-card-hover); }
.mylist-item:hover .mylist-actions { opacity: 1; }

.mylist-cover {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--text-muted);
}

.mylist-cover img { width: 100%; height: 100%; object-fit: cover; }
.mylist-cover i { font-size: 1.5rem; }

.mylist-info { overflow: hidden; }
.mylist-name { font-weight: 500; font-size: 0.9rem; margin-bottom: 0.2rem; }
.mylist-count { color: var(--text-muted); font-size: 0.75rem; }

.mylist-actions {
    display: flex;
    gap: 0.25rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.mylist-detail-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.mylist-detail-title {
    flex: 1;
    font-weight: 600;
    font-size: 1rem;
}

/* 添加到歌单弹窗 */
.add-to-mylist-modal,
.create-mylist-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 320px;
    max-width: 90vw;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    z-index: 2001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
}

.add-to-mylist-modal.show,
.create-mylist-modal.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.add-to-mylist-header,
.create-mylist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
}

.modal-close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    font-size: 1rem;
}

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

.add-to-mylist-content {
    max-height: 300px;
    overflow-y: auto;
}

.mylist-select-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.mylist-select-item:hover:not(.disabled) { background: var(--bg-card-hover); }
.mylist-select-item.disabled { opacity: 0.5; cursor: not-allowed; }
.mylist-select-item i { color: var(--primary); }
.mylist-select-item.disabled i { color: var(--success); }
.mylist-select-count { margin-left: auto; color: var(--text-muted); font-size: 0.75rem; }

.add-to-mylist-footer,
.create-mylist-footer {
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.create-mylist-content {
    padding: 1rem;
}

.create-mylist-content input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.create-mylist-content input:focus {
    outline: none;
    border-color: var(--primary);
}

/* 底部播放栏 */
.bottom-player {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: var(--player-height);
    background: rgba(18, 18, 42, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    z-index: 1000;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 1rem;
    gap: 1rem;
}

.player-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.player-cover {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    background: var(--bg-input);
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-cover { position: relative; }
.player-cover img { width: 100%; height: 100%; object-fit: cover; }
.player-cover > i { font-size: 1.25rem; color: var(--text-muted); }

/* 封面加载动画 */
.cover-loading {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: inherit;
}
.cover-loading i {
    font-size: 1.5rem;
    color: #fff;
    animation: spin 1s linear infinite;
}
.player-cover.loading .cover-loading { display: flex; }
.player-cover.loading img { opacity: 0.5; }

.player-info { overflow: hidden; min-width: 0; }

.player-title {
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.15rem;
}

.player-artist {
    color: var(--text-secondary);
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    max-width: 600px;
    width: 100%;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ctrl-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.ctrl-btn:hover { color: var(--primary-light); transform: scale(1.1); }
.ctrl-btn.active { color: var(--primary); }

.ctrl-btn.play-btn {
    width: 42px;
    height: 42px;
    background: var(--gradient-1);
    font-size: 1.25rem;
    color: white;
}

.ctrl-btn.play-btn:hover { transform: scale(1.1); box-shadow: var(--shadow-glow); }

.progress-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.time-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    min-width: 35px;
    font-variant-numeric: tabular-nums;
}

.time-label:last-child { text-align: right; }

.progress-bar {
    flex: 1;
    height: 4px;
    background: var(--bg-input);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.progress-bar:hover { height: 6px; }

.progress-fill {
    height: 100%;
    background: var(--gradient-1);
    border-radius: 2px;
    width: 0%;
    position: relative;
}

.progress-bar:hover .progress-fill::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
}

.player-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.25rem;
}

/* 音质选择器 */
.quality-selector {
    position: relative;
}

.quality-btn {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.375rem 0.625rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.2s;
}

.quality-btn:hover { border-color: var(--primary); }
.quality-btn i { font-size: 0.9rem; }

.quality-dropdown {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 0.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.5rem 0;
    min-width: 140px;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s;
    z-index: 1001;
}

.quality-selector.open .quality-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.quality-option {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.quality-option:hover { background: var(--bg-card-hover); }

.quality-option.active {
    color: var(--primary-light);
    background: rgba(99, 102, 241, 0.1);
}

.quality-option.active::after {
    content: '✓';
    font-size: 0.75rem;
}

.quality-option.disabled {
    color: var(--text-muted);
    opacity: 0.5;
    cursor: not-allowed;
}

.quality-option.disabled:hover {
    background: transparent;
}

.volume-wrap {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.volume-wrap i {
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 1rem;
}

.volume-wrap i:hover { color: var(--text-primary); }

.volume-slider {
    width: 80px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--bg-input);
    border-radius: 2px;
    outline: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
}

/* 进度条时间预览 */
.progress-preview {
    position: absolute;
    bottom: 100%;
    left: 0;
    transform: translateX(-50%);
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    margin-bottom: 8px;
    box-shadow: var(--shadow-md);
}
.progress-bar:hover .progress-preview { opacity: 1; }

/* 喜欢按钮 */
.like-btn.liked i { color: #ff6b6b; }
.like-btn.liked i::before { content: "\f415"; } /* bi-heart-fill */

/* 倍速选择器 */
.speed-selector {
    position: relative;
}
.speed-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.25rem 0.5rem;
    color: var(--text-secondary);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}
.speed-btn:hover {
    border-color: var(--primary);
    color: var(--text-primary);
}
.speed-dropdown {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.5rem 0;
    min-width: 80px;
    display: none;
    z-index: 1000;
    margin-bottom: 8px;
    box-shadow: var(--shadow-md);
}
.speed-selector:hover .speed-dropdown,
.speed-selector.active .speed-dropdown { display: block; }
.speed-option {
    padding: 0.5rem 1rem;
    text-align: center;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all 0.2s;
}
.speed-option:hover { background: var(--bg-card-hover); color: var(--text-primary); }
.speed-option.active { color: var(--primary); font-weight: 600; }

/* 歌词显示 */
.lyric-overlay {
    position: fixed;
    bottom: calc(var(--player-height) + 30px);
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    text-align: center;
    z-index: 998;
    pointer-events: none;
    padding: 0.5rem 1.5rem;
    opacity: 0;
    transition: all 0.4s;
    max-width: 600px;
    width: auto;
}

.lyric-overlay.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
    cursor: pointer;
}

.lyric-current {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 40px rgba(99, 102, 241, 0.5);
    margin-bottom: 0.5rem;
}

.lyric-next {
    font-size: 0.9rem;
    color: var(--text-muted);
    opacity: 0.7;
}

/* 歌词弹窗 */
.lyric-modal {
    position: fixed;
    bottom: var(--player-height);
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    width: 420px;
    max-width: 95vw;
    max-height: 55vh;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    z-index: 1001;
    transition: transform 0.3s;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    visibility: hidden;
    pointer-events: none;
}

.lyric-modal.show { 
    transform: translateX(-50%) translateY(0); 
    visibility: visible;
    pointer-events: auto;
}

.lyric-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.lyric-modal-title { font-weight: 600; }

.lyric-modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    position: relative;
}

.lyric-modal-close:hover { color: var(--text-primary); background: rgba(255,255,255,0.1); border-radius: 50%; }

.lyric-modal-content {
    height: 320px;
    overflow-y: auto;
    padding: 1.5rem 1rem;
    text-align: center;
}

.lyric-line {
    padding: 0.625rem 0;
    color: var(--text-muted);
    transition: all 0.3s;
    font-size: 0.95rem;
}

.lyric-line.active {
    color: var(--primary-light);
    font-size: 1.1rem;
    font-weight: 600;
}

/* 播放列表弹窗 */
.playlist-modal {
    position: fixed;
    right: 0;
    top: 0;
    bottom: var(--player-height);
    width: 460px;
    max-width: 100vw;
    background: var(--bg-card);
    border-left: 1px solid var(--border-color);
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.3s ease, visibility 0.3s;
    visibility: hidden;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-md);
}

.playlist-modal.show {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
}

.playlist-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.playlist-modal-title {
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.playlist-modal-title span { color: var(--text-muted); font-size: 0.8rem; font-weight: 400; }

.playlist-modal-actions { display: flex; align-items: center; gap: 0.375rem; }

.playlist-clear-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
}

.playlist-clear-btn:hover { color: #ef4444; background: rgba(239, 68, 68, 0.1); }

.playlist-modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    padding: 0.25rem;
}

.playlist-modal-close:hover { color: var(--text-primary); }

.playlist-modal-content { flex: 1; overflow-y: auto; }

.playlist-modal-content .song-item {
    padding: 0.375rem 0.75rem;
    grid-template-columns: 32px 1fr auto auto;
    gap: 0.5rem;
}

.playlist-modal-content .song-cover { width: 32px; height: 32px; }
.playlist-modal-content .song-name { font-size: 0.8rem; }
.playlist-modal-content .song-artist { font-size: 0.7rem; }
.playlist-modal-content .song-duration { font-size: 0.7rem; }
.playlist-modal-content .song-actions { opacity: 1; }
.playlist-modal-content .song-action-btn { width: 24px; height: 24px; font-size: 0.7rem; }

.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.modal-overlay.show { opacity: 1; visibility: visible; }

/* Toast */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: toastIn 0.3s ease;
    font-size: 0.9rem;
    box-shadow: var(--shadow-md);
    max-width: 300px;
}

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

.toast.success { border-left: 3px solid #10b981; }
.toast.success i { color: #10b981; }
.toast.error { border-left: 3px solid #ef4444; }
.toast.error i { color: #ef4444; }
.toast.info { border-left: 3px solid var(--primary); }
.toast.info i { color: var(--primary); }

@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* 旋转加载图标 - 覆盖渐变效果 */
.empty-state i[style*="animation:spin"],
.empty-state i[style*="animation: spin"] {
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    -webkit-text-fill-color: var(--primary) !important;
    color: var(--primary) !important;
    opacity: 0.8 !important;
    display: inline-block;
}

/* 响应式 */
@media (max-width: 768px) {
    :root { --player-height: 110px; }

    .navbar .container { padding: 0 0.75rem; }
    .navbar-brand { font-size: 1rem; }
    .navbar-brand i { font-size: 1.1rem; }
    .nav-btn { padding: 0.35rem 0.6rem; font-size: 0.8rem; }
    .nav-btn span { display: none; }

    .main-container { padding: 0.75rem; }
    
    /* 搜索栏移动端 */
    .search-bar-inner { flex-wrap: wrap; }
    .platform-select { 
        border-right: none; 
        border-bottom: 1px solid var(--border-color);
        width: 100%;
        padding: 0.6rem 0.75rem;
    }
    .search-input-box { padding: 0 0.5rem; }
    .search-input-box input { padding: 0.6rem 0; font-size: 0.9rem; }
    .search-btn { padding: 0.6rem 0.875rem; }

    .result-section { border-radius: var(--radius-md); }
    .result-header { padding: 0.5rem 0.75rem; flex-wrap: wrap; }
    .result-actions { width: 100%; justify-content: space-between; }
    .action-btn { padding: 0.35rem 0.6rem; font-size: 0.75rem; }

    .songs-container { max-height: calc(100vh - 320px); }
    .song-item { padding: 0.5rem 0.75rem; grid-template-columns: 36px 1fr auto; gap: 0.5rem; }
    .song-cover { width: 36px; height: 36px; }
    .song-name { font-size: 0.8rem; }
    .song-artist { font-size: 0.7rem; }
    .song-duration { font-size: 0.7rem; }

    .page-btn { padding: 0.3rem 0.5rem; font-size: 0.7rem; }
    .page-info { font-size: 0.7rem; }

    .empty-state { padding: 3rem 1.5rem; }
    .empty-state i { font-size: 3rem; }
    .empty-state h3 { font-size: 1.1rem; }
    .empty-state p { font-size: 0.85rem; }

    .bottom-player {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        height: auto;
        padding: 0.625rem 0.75rem;
        gap: 0.5rem;
    }

    .player-left { display: none; }

    .player-center { order: 2; max-width: 100%; gap: 0.25rem; }
    .player-controls { gap: 0.75rem; }
    .ctrl-btn { width: 32px; height: 32px; font-size: 0.9rem; }
    .ctrl-btn.play-btn { width: 40px; height: 40px; font-size: 1.1rem; }
    .progress-wrapper { gap: 0.375rem; }
    .time-label { font-size: 0.65rem; min-width: 30px; }

    .player-right {
        order: 1;
        justify-content: space-between;
        width: 100%;
        padding-bottom: 0.25rem;
    }

    .player-right::before {
        content: attr(data-title);
        font-size: 0.85rem;
        font-weight: 500;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        flex: 1;
        margin-right: 0.5rem;
    }

    .volume-wrap { display: none; }

    .quality-btn span { display: none; }
    .quality-btn { padding: 0.375rem; }
    .quality-dropdown { right: auto; left: 0; min-width: 130px; }

    .lyric-overlay { bottom: calc(var(--player-height) + 20px); padding: 0.5rem 1rem; max-width: 90%; }
    .lyric-current { font-size: 1.2rem; }
    .lyric-next { font-size: 0.8rem; }

    .lyric-modal { width: 100%; max-width: 100%; border-radius: var(--radius-lg) var(--radius-lg) 0 0; max-height: 50vh; }
    .lyric-modal-content { height: 250px; }

    .playlist-modal { width: 100%; right: 0; border-left: none; }

    .toast-container { top: auto; bottom: calc(var(--player-height) + 20px); right: 10px; left: 10px; }
    .toast { max-width: 100%; }
}

@media (max-width: 480px) {
    .nav-actions { gap: 0.25rem; }
    .nav-btn { padding: 0.375rem 0.5rem; }
    .search-filters { flex-direction: column; }
    .filter-select { width: 100%; }
    .result-header { flex-direction: column; align-items: flex-start; }
    .result-actions { width: 100%; }
    .action-btn { flex: 1; justify-content: center; }
    .pagination button { padding: 0.35rem 0.5rem; min-width: 28px; font-size: 0.75rem; }
}

@media (min-width: 1400px) {
    .main-container { max-width: 1400px; }
    .songs-container { max-height: calc(100vh - 340px); }
    .bottom-player { padding: 0 2rem; }
}

/* ========================================
   发现、排行榜、歌手模块样式
   ======================================== */

/* 通用卡片网格 */
.discover-container,
.ranking-container,
.artist-container {
    padding: 0.5rem 1rem;
    max-height: calc(100vh - 280px);
    overflow-y: auto;
}

/* 加载中居中 */
.discover-container .empty-state,
.ranking-container .empty-state,
.artist-container .empty-state {
    grid-column: 1 / -1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

/* 发现页和排行榜使用flex布局（因为有分组） */
.discover-container,
.ranking-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* 歌手使用grid */
.artist-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
}

/* 卡片样式 */
.card-item {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid var(--border-color);
}
.card-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}
.card-item-cover {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}
.card-item-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.card-item:hover .card-item-cover img {
    transform: scale(1.05);
}
.card-item-play {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
}
.card-item:hover .card-item-play {
    opacity: 1;
    transform: translateY(0);
}
.card-item-play i { color: white; font-size: 1rem; }
.card-item-info {
    padding: 0.75rem;
}
.card-item-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.card-item-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 排行榜列表样式 */
.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.ranking-group {
    margin-bottom: 1.5rem;
}
.ranking-group-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

/* 歌手卡片 */
.artist-card {
    text-align: center;
}
.artist-card .card-item-cover {
    border-radius: 50%;
    margin: 0.75rem;
    aspect-ratio: 1;
}
.artist-card .card-item-cover img {
    border-radius: 50%;
}

/* 发现模块分区 */
.discover-section {
    margin-bottom: 0;
}
.discover-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.discover-section-title i {
    color: var(--primary);
}
.discover-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 0.75rem;
}

/* 平台单选框样式 */
.platform-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.platform-radio {
    display: none;
}
.platform-radio-label {
    padding: 0.375rem 0.75rem;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}
.platform-radio-label:hover {
    border-color: var(--primary);
    color: var(--text-primary);
}
.platform-radio:checked + .platform-radio-label {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* 排行榜详情弹窗 */
.ranking-detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.ranking-detail-modal.show { display: flex; }
.ranking-detail-content {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 800px;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.ranking-detail-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}
.ranking-detail-cover {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    object-fit: cover;
}
.ranking-detail-info { flex: 1; }
.ranking-detail-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}
.ranking-detail-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}
.ranking-detail-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}
.ranking-detail-close:hover { color: var(--text-primary); }
.ranking-detail-songs {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

/* 歌手详情弹窗 */
.artist-detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.artist-detail-modal.show { display: flex; }
.artist-detail-content {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 800px;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.artist-detail-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}
.artist-detail-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}
.artist-detail-info { flex: 1; }
.artist-detail-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}
.artist-detail-meta {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}
.artist-detail-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}
.artist-detail-close:hover { color: var(--text-primary); }
.artist-detail-songs {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}
.artist-detail-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border-top: 1px solid var(--border-color);
}
.artist-detail-pagination button {
    padding: 0.375rem 0.75rem;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}
.artist-detail-pagination button:hover {
    border-color: var(--primary);
    color: var(--text-primary);
}
.artist-detail-pagination button.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}
.artist-detail-pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 歌手列表分页 */
.artist-list-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0;
}
.artist-list-pagination button {
    padding: 0.375rem 0.75rem;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}
.artist-list-pagination button:hover:not(:disabled) {
    border-color: var(--primary);
    color: var(--text-primary);
}
.artist-list-pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* MV播放弹窗 */
.mv-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 900px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    z-index: 1002;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}
.mv-modal.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}
.mv-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}
.mv-modal-title {
    font-weight: 600;
    font-size: 1.1rem;
}
.mv-modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.2rem;
}
.mv-modal-close:hover { color: var(--text-primary); }
.mv-modal-content {
    padding: 0;
    position: relative;
    background: #000;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    min-height: 300px;
}
.mv-modal-content video {
    display: block;
    width: 100%;
    height: auto;
    min-height: 300px;
    max-height: 70vh;
    background: #000;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    object-fit: contain;
}

/* 均衡器弹窗 */
.eq-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 500px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    z-index: 1002;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}
.eq-modal.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}
.eq-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
}
.eq-modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.2rem;
}
.eq-modal-close:hover { color: var(--text-primary); }
.eq-modal-content {
    padding: 1.5rem;
}
.eq-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.eq-preset {
    padding: 0.5rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}
.eq-preset:hover {
    border-color: var(--primary);
    color: var(--text-primary);
}
.eq-preset.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}
.eq-sliders {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.eq-slider-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.eq-slider-item span:first-child {
    width: 50px;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.eq-slider {
    flex: 1;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--bg-input);
    border-radius: 2px;
    outline: none;
}
.eq-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
}
.eq-value {
    width: 45px;
    text-align: right;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* 播放列表拖拽样式 */
.playlist-item {
    cursor: grab;
    transition: all 0.2s;
}
.playlist-item:active { cursor: grabbing; }
.playlist-item.dragging {
    opacity: 0.5;
    background: var(--bg-card-hover);
}
.playlist-item.drag-over {
    border-top: 2px solid var(--primary);
}

@media (max-width: 768px) {
    .discover-container,
    .ranking-container,
    .artist-container {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.75rem;
    }
    .card-item-info { padding: 0.5rem; }
    .card-item-title { font-size: 0.8rem; }
    .ranking-detail-modal,
    .artist-detail-modal { padding: 1rem; }
    .ranking-detail-content,
    .artist-detail-content { max-height: 90vh; }
}

/* ========================================
   首页双栏布局 - Home Layout
   ======================================== */
.home-tabs {
    display: none;
    gap: 0.5rem;
    padding: 0 0 1rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;
}
.home-tab {
    flex: 1;
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.home-tab:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}
.home-tab.active {
    background: var(--gradient-1);
    border-color: transparent;
    color: white;
}
.home-tab i { font-size: 1rem; }

.home-layout {
    display: flex;
    gap: 1.5rem;
    height: calc(100vh - var(--player-height) - 120px);
    min-height: 400px;
}
.home-left {
    flex: 6;
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.home-right {
    flex: 4;
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.home-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.home-card .result-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.home-card .songs-container,
.home-card .mylist-container {
    flex: 1;
    overflow-y: auto;
}
.home-card .search-bar {
    margin-bottom: 1rem;
}

/* 移动端首页 Tab 切换 */
@media (max-width: 992px) {
    .home-tabs {
        display: flex;
    }
    .home-layout {
        flex-direction: column;
        height: auto;
    }
    .home-left,
    .home-right {
        flex: none;
        max-width: 100%;
        width: 100%;
    }
    .home-right {
        display: none;
    }
    .home-left {
        display: flex;
    }
    /* Tab 切换显示 */
    #homePanel.show-mylist .home-left {
        display: none;
    }
    #homePanel.show-mylist .home-right {
        display: flex;
    }
}
