/* Apple Music 风格音乐播放器 - CSS */

:root {
    /* 颜色变量 - 浅色主题 */
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f7;
    --bg-tertiary: #e8e8ed;
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --text-tertiary: #a1a1a6;
    --accent-color: #fa2d48;
    --accent-hover: #e0102a;
    --border-color: rgba(0, 0, 0, 0.08);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
    --glass-bg: rgba(255, 255, 255, 0.8);
    --sidebar-width: 260px;
    --player-height: 90px;
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
}

/* 深色主题 */
[data-theme="dark"] {
    --bg-primary: #000000;
    --bg-secondary: #1c1c1e;
    --bg-tertiary: #2c2c2e;
    --text-primary: #f5f5f7;
    --text-secondary: #a1a1a6;
    --text-tertiary: #6e6e73;
    --border-color: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(28, 28, 30, 0.9);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow: hidden;
    height: 100vh;
}

/* 应用容器 */
.app-container {
    display: flex;
    height: calc(100vh - var(--player-height));
}

/* 侧边栏 */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    overflow-y: auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 24px;
    margin-bottom: 30px;
}

.logo i {
    font-size: 28px;
    color: var(--accent-color);
}

.logo span {
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-color), #ff6b8a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    flex: 1;
}

.nav-section {
    margin-bottom: 24px;
}

.nav-section h3 {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-tertiary);
    padding: 0 24px;
    margin-bottom: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 24px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all var(--transition-fast);
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.nav-item.active {
    color: var(--accent-color);
    background: rgba(250, 45, 72, 0.08);
    border-left-color: var(--accent-color);
}

.nav-item i {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

.sidebar-playlist {
    padding: 0 16px;
    margin-top: auto;
}

.sidebar-playlist h3 {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-tertiary);
    margin-bottom: 12px;
    padding: 0 8px;
}

.playlist-mini {
    max-height: 200px;
    overflow-y: auto;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    padding: 8px;
}

.empty-playlist {
    text-align: center;
    padding: 20px;
    color: var(--text-tertiary);
}

.empty-playlist i {
    font-size: 24px;
    margin-bottom: 8px;
}

.empty-playlist p {
    font-size: 12px;
}

/* 主内容区 */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* 顶部栏 */
.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 32px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-tertiary);
    padding: 12px 20px;
    border-radius: 30px;
    width: 400px;
    transition: all var(--transition-normal);
}

.search-box:focus-within {
    background: var(--bg-primary);
    box-shadow: var(--shadow-md);
}

.search-box i {
    color: var(--text-tertiary);
    font-size: 14px;
}

.search-box input {
    flex: 1;
    border: none;
    background: none;
    font-size: 15px;
    color: var(--text-primary);
    outline: none;
}

.search-box input::placeholder {
    color: var(--text-tertiary);
}

.user-actions {
    display: flex;
    gap: 8px;
}

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.btn-icon:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

/* 页面内容 */
.page-content {
    flex: 1;
    overflow-y: auto;
    padding: 0 32px 32px;
}

.page {
    display: none;
}

.page.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.page-title {
    font-size: 34px;
    font-weight: 700;
    margin: 24px 0;
}

/* Hero 区域 */
.hero-section {
    background: linear-gradient(135deg, #fa2d48 0%, #ff6b8a 50%, #ffb3c1 100%);
    border-radius: var(--radius-xl);
    padding: 60px 50px;
    margin: 24px 0 32px;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(255,255,255,0.2) 0%, transparent 70%);
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 12px;
}

.hero-content p {
    font-size: 18px;
    opacity: 0.9;
}

/* Section 区域 */
.section {
    margin-bottom: 40px;
}

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

.section-header h2 {
    font-size: 22px;
    font-weight: 700;
}

.see-all {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.see-all:hover {
    text-decoration: underline;
}

/* 歌单网格 */
.playlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 24px;
}

.playlist-card {
    cursor: pointer;
    transition: transform var(--transition-normal);
}

.playlist-card:hover {
    transform: translateY(-4px);
}

.playlist-card:hover .playlist-card-cover {
    box-shadow: var(--shadow-lg);
}

.playlist-card:hover .playlist-play-btn {
    opacity: 1;
    transform: translateY(0);
}

.playlist-card-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-normal);
}

.playlist-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.playlist-play-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent-color);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    opacity: 0;
    transform: translateY(10px);
    transition: all var(--transition-normal);
    box-shadow: 0 4px 15px rgba(250, 45, 72, 0.4);
}

.playlist-play-btn:hover {
    transform: scale(1.1) translateY(0);
    background: var(--accent-hover);
}

.playlist-card-info {
    padding: 12px 4px;
}

.playlist-card-info h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.playlist-card-info p {
    font-size: 12px;
    color: var(--text-secondary);
}

/* 歌曲列表 */
.song-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.song-item {
    display: grid;
    grid-template-columns: 50px 1fr auto auto;
    gap: 16px;
    align-items: center;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
    cursor: pointer;
}

.song-item:hover {
    background: var(--bg-secondary);
}

.song-item:hover .song-play-btn {
    opacity: 1;
}

.song-item.playing {
    background: rgba(250, 45, 72, 0.08);
}

.song-item.playing .song-name {
    color: var(--accent-color);
}

.song-cover {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
}

.song-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.song-play-btn {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

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

.song-name {
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.song-artist {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-album {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.song-duration {
    font-size: 13px;
    color: var(--text-tertiary);
    font-variant-numeric: tabular-nums;
}

/* 排行榜网格 */
.toplist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.toplist-card {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.toplist-card:hover {
    background: var(--bg-tertiary);
    transform: translateY(-2px);
}

.toplist-cover {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.toplist-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.toplist-info {
    flex: 1;
    min-width: 0;
}

.toplist-info h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.toplist-info p {
    font-size: 13px;
    color: var(--text-secondary);
}

/* 热搜列表 */
.hot-search-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.hot-search-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.hot-search-item:hover {
    background: var(--bg-tertiary);
}

.hot-rank {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.hot-rank.top-3 {
    background: var(--accent-color);
    color: white;
}

.hot-search-item h4 {
    font-size: 15px;
    font-weight: 500;
}

.hot-search-item p {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* 每日推荐页 */
.daily-header {
    display: flex;
    gap: 32px;
    margin: 24px 0 32px;
    padding: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--radius-xl);
    color: white;
}

.daily-cover {
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
}

.daily-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.daily-tag {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.daily-info h1 {
    font-size: 48px;
    font-weight: 700;
    margin: 8px 0 12px;
}

.daily-info p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 24px;
}

.btn-play-all {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 30px;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    backdrop-filter: blur(10px);
}

.btn-play-all:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.02);
}

/* 导入歌单页 */
.import-section {
    margin: 24px 0 32px;
}

.import-card {
    max-width: 500px;
    margin: 0 auto;
    padding: 48px;
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    text-align: center;
}

.import-card i {
    font-size: 48px;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.import-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}

.import-card p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.import-card input {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 15px;
    background: var(--bg-primary);
    color: var(--text-primary);
    margin-bottom: 16px;
    transition: border-color var(--transition-fast);
}

.import-card input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: var(--accent-color);
    border: none;
    border-radius: 30px;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: scale(1.02);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: var(--bg-tertiary);
    border: none;
    border-radius: 30px;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
}

.imported-playlist {
    margin-top: 32px;
}

.playlist-header {
    display: flex;
    gap: 32px;
    margin-bottom: 32px;
}

.playlist-header .playlist-cover {
    width: 220px;
    height: 220px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.playlist-header .playlist-info {
    flex: 1;
}

.playlist-header .playlist-info h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
}

.playlist-header .playlist-info p {
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.playlist-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

/* KOOK 控制页 */
.kook-panel {
    max-width: 600px;
    margin: 24px auto;
}

.kook-status {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #34c759;
}

.status-indicator.offline {
    background: #ff3b30;
}

.kook-controls {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 24px;
}

.control-group {
    margin-bottom: 20px;
}

.control-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.control-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 15px;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.control-group input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.kook-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn-kook {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    background: var(--bg-tertiary);
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-kook:hover {
    background: var(--accent-color);
    color: white;
}

.btn-kook.btn-primary {
    background: var(--accent-color);
    color: white;
}

.btn-kook.btn-danger {
    background: #ff453a;
    color: white;
}

.btn-kook.btn-danger:hover {
    background: #ff3b30;
}

.kook-tip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.kook-tip i {
    color: var(--accent-color);
}

/* KOOK 进度条 */
.kook-progress-section {
    margin-bottom: 20px;
}

.kook-progress-bar {
    width: 100%;
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    margin-bottom: 8px;
}

.kook-progress-bar:hover {
    height: 8px;
}

.kook-progress-fill {
    height: 100%;
    background: var(--accent-color);
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear;
    position: relative;
}

.kook-progress-fill::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: var(--accent-color);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s;
}

.kook-progress-bar:hover .kook-progress-fill::after {
    opacity: 1;
}

.kook-time-display {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-secondary);
}

/* KOOK 音量控制 */
.kook-volume-section {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
}

.kook-volume-section i {
    color: var(--text-secondary);
    width: 20px;
    text-align: center;
}

.kook-volume-slider {
    flex: 1;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--border-color);
    border-radius: 2px;
    cursor: pointer;
}

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

.kook-volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: var(--accent-color);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.kook-volume-value {
    font-size: 12px;
    color: var(--text-secondary);
    min-width: 36px;
    text-align: right;
}

.kook-queue {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 24px;
}

.kook-queue-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.now-playing-indicator {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-color);
    border-radius: var(--radius-sm);
    color: white;
}

.queue-index {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    font-weight: 600;
    color: var(--text-secondary);
}

.song-progress {
    font-size: 13px;
    color: var(--text-secondary);
    margin-left: auto;
}

.status-indicator.online {
    background: #34c759;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.kook-queue h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.empty-queue {
    text-align: center;
    padding: 40px;
    color: var(--text-tertiary);
}

/* 播放器底部栏 */
.player-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--player-height);
    background: var(--glass-bg);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-top: 1px solid var(--border-color);
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: center;
    padding: 0 24px;
    z-index: 1000;
}

.now-playing {
    display: flex;
    align-items: center;
    gap: 16px;
}

.now-playing-cover {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: var(--bg-tertiary);
}

.now-playing-info {
    min-width: 0;
}

.now-playing-info .song-name {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.now-playing-info .artist-name {
    font-size: 12px;
    color: var(--text-secondary);
}

.btn-like {
    color: var(--text-tertiary);
}

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

.btn-like.active i {
    font-weight: 900;
}

.player-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.control-buttons {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-play {
    width: 48px;
    height: 48px;
    background: var(--text-primary);
    color: var(--bg-primary);
    font-size: 18px;
}

.btn-play:hover {
    background: var(--accent-color);
    color: white;
}

#btnShuffle.active,
#btnRepeat.active {
    color: var(--accent-color);
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 600px;
}

.time-current,
.time-total {
    font-size: 11px;
    color: var(--text-tertiary);
    font-variant-numeric: tabular-nums;
    min-width: 40px;
}

.time-total {
    text-align: right;
}

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

.progress-fill {
    height: 100%;
    background: var(--text-primary);
    border-radius: 2px;
    width: 0;
    transition: width 0.1s linear;
}

.progress-bar:hover .progress-fill {
    background: var(--accent-color);
}

.progress-handle {
    position: absolute;
    top: 50%;
    left: 0;
    width: 12px;
    height: 12px;
    background: var(--text-primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.progress-bar:hover .progress-handle {
    opacity: 1;
}

.player-extra {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.volume-slider {
    width: 100px;
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: 2px;
    cursor: pointer;
}

.volume-fill {
    height: 100%;
    background: var(--text-primary);
    border-radius: 2px;
    width: 70%;
}

/* 播放队列面板 */
.queue-panel {
    position: fixed;
    right: -400px;
    top: 0;
    bottom: var(--player-height);
    width: 400px;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border-color);
    z-index: 900;
    transition: right var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.queue-panel.active {
    right: 0;
}

.queue-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.queue-header h3 {
    font-size: 18px;
    font-weight: 700;
}

.btn-clear-queue {
    background: none;
    border: none;
    color: var(--accent-color);
    font-size: 14px;
    cursor: pointer;
}

.queue-list {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.queue-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.queue-item:hover {
    background: var(--bg-tertiary);
}

.queue-item.playing {
    background: rgba(250, 45, 72, 0.1);
}

.queue-item img {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    object-fit: cover;
}

.queue-item-info {
    flex: 1;
    min-width: 0;
}

.queue-item-info .song-name {
    font-size: 14px;
    font-weight: 500;
}

.queue-item-info .song-artist {
    font-size: 12px;
}

.queue-item .remove-btn {
    opacity: 0;
    background: none;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    padding: 8px;
}

.queue-item:hover .remove-btn {
    opacity: 1;
}

/* 歌词面板 */
.lyrics-panel {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: var(--bg-primary);
    z-index: 2000;
    display: none;
    flex-direction: column;
}

.lyrics-panel.active {
    display: flex;
}

.lyrics-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
}

.btn-close-lyrics {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    cursor: pointer;
}

.lyrics-content {
    flex: 1;
    overflow-y: auto;
    padding: 40px;
    text-align: center;
}

.lyrics-line {
    font-size: 24px;
    line-height: 2;
    color: var(--text-tertiary);
    transition: all var(--transition-normal);
    cursor: pointer;
}

.lyrics-line:hover {
    color: var(--text-secondary);
}

.lyrics-line.active {
    color: var(--text-primary);
    font-size: 28px;
    font-weight: 600;
}

.no-lyrics {
    color: var(--text-tertiary);
    font-size: 18px;
    margin-top: 100px;
}

/* 搜索结果 */
.search-placeholder {
    text-align: center;
    padding: 80px;
    color: var(--text-tertiary);
}

.search-placeholder i {
    font-size: 48px;
    margin-bottom: 16px;
}

.search-placeholder p {
    font-size: 16px;
}

/* 加载动画 */
.loading-spinner {
    text-align: center;
    padding: 40px;
    color: var(--text-tertiary);
}

.loading-spinner i {
    font-size: 32px;
}

/* mini 播放列表项 */
.mini-song-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.mini-song-item:hover {
    background: rgba(0, 0, 0, 0.05);
}

.mini-song-item img {
    width: 36px;
    height: 36px;
    border-radius: 4px;
}

.mini-song-item .mini-song-info {
    flex: 1;
    min-width: 0;
}

.mini-song-item .mini-song-name {
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-song-item .mini-song-artist {
    font-size: 10px;
    color: var(--text-tertiary);
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-tertiary);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .sidebar {
        width: 80px;
        padding: 20px 0;
    }

    .logo span,
    .nav-section h3,
    .nav-item span,
    .sidebar-playlist {
        display: none;
    }

    .nav-item {
        justify-content: center;
        padding: 16px;
        border-left: none;
        border-radius: var(--radius-sm);
        margin: 4px 12px;
    }

    .nav-item.active {
        background: var(--accent-color);
        color: white;
    }

    .logo {
        justify-content: center;
        padding: 0;
    }
}

@media (max-width: 768px) {
    .sidebar {
        display: none;
    }

    .top-bar {
        padding: 12px 16px;
    }

    .search-box {
        width: 100%;
    }

    .page-content {
        padding: 0 16px 16px;
    }

    .hero-section {
        padding: 40px 24px;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .player-bar {
        grid-template-columns: 1fr auto;
        padding: 0 16px;
    }

    .player-extra {
        display: none;
    }

    .now-playing-info .song-name {
        max-width: 120px;
    }
}

/* 私人FM页面 */
.fm-container {
    display: flex;
    gap: 48px;
    padding: 40px 0;
    max-width: 1000px;
    margin: 0 auto;
}

.fm-player {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.fm-cover-container {
    position: relative;
    width: 320px;
    height: 320px;
    margin-bottom: 32px;
}

.fm-cover {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-lg);
    object-fit: cover;
    box-shadow: var(--shadow-lg);
    background: var(--bg-tertiary);
}

.fm-vinyl {
    position: absolute;
    right: -60px;
    top: 50%;
    transform: translateY(-50%);
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #1a1a1a 0%, #333 50%, #1a1a1a 100%);
    border-radius: 50%;
    z-index: -1;
    animation: spin 8s linear infinite paused;
}

.fm-vinyl::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.fm-playing .fm-vinyl {
    animation-play-state: running;
}

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

.fm-info {
    margin-bottom: 24px;
}

.fm-song-name {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.fm-artist {
    font-size: 18px;
    color: var(--text-secondary);
    cursor: pointer;
}

.fm-artist:hover {
    color: var(--accent-color);
}

.fm-album {
    font-size: 14px;
    color: var(--text-tertiary);
    margin-top: 4px;
}

.fm-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.btn-fm {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 18px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-fm:hover {
    background: var(--bg-secondary);
    transform: scale(1.1);
}

.btn-fm-play {
    width: 64px;
    height: 64px;
    background: var(--accent-color);
    color: white;
    font-size: 24px;
}

.btn-fm-play:hover {
    background: var(--accent-hover);
}

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

.fm-progress {
    width: 100%;
    max-width: 320px;
}

.fm-progress-bar {
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: 2px;
    cursor: pointer;
}

.fm-progress-fill {
    height: 100%;
    background: var(--accent-color);
    border-radius: 2px;
    width: 0;
    transition: width 0.1s linear;
}

.fm-history {
    width: 280px;
}

.fm-history h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.fm-history-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fm-history-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.fm-history-item:hover {
    background: var(--bg-tertiary);
}

.fm-history-item img {
    width: 48px;
    height: 48px;
    border-radius: 6px;
}

.fm-history-item .fm-history-info {
    flex: 1;
    min-width: 0;
}

.fm-history-item .fm-history-name {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fm-history-item .fm-history-artist {
    font-size: 12px;
    color: var(--text-secondary);
}

/* 歌手详情页 */
.artist-header {
    display: flex;
    gap: 40px;
    padding: 40px 0;
    margin-bottom: 32px;
}

.artist-avatar {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--shadow-lg);
}

.artist-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.artist-info h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 12px;
}

.artist-stats {
    display: flex;
    gap: 24px;
    margin-bottom: 16px;
}

.artist-stats span {
    font-size: 14px;
    color: var(--text-secondary);
}

.artist-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 600px;
    margin-bottom: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.artist-actions {
    display: flex;
    gap: 16px;
}

/* 专辑详情页 */
.album-header {
    display: flex;
    gap: 40px;
    padding: 40px 0;
    margin-bottom: 32px;
}

.album-cover-large {
    width: 260px;
    height: 260px;
    border-radius: var(--radius-lg);
    object-fit: cover;
    box-shadow: var(--shadow-lg);
}

.album-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.album-tag {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-color);
    margin-bottom: 8px;
}

.album-info h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
}

.album-artist {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.album-artist.clickable {
    cursor: pointer;
}

.album-artist.clickable:hover {
    color: var(--accent-color);
}

.album-meta {
    font-size: 14px;
    color: var(--text-tertiary);
    margin-bottom: 12px;
}

.album-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 500px;
    margin-bottom: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.album-actions {
    display: flex;
    gap: 16px;
}

/* 歌曲列表中可点击的歌手/专辑 */
.song-artist.clickable,
.song-album.clickable {
    cursor: pointer;
}

.song-artist.clickable:hover,
.song-album.clickable:hover {
    color: var(--accent-color);
}

/* KOOK 推送按钮 */
.song-item .song-actions {
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.song-item:hover .song-actions {
    opacity: 1;
}

.btn-send-kook {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-send-kook:hover {
    background: var(--accent-color);
    color: white;
}

/* Toast 通知 */
.toast {
    position: fixed;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--text-primary);
    color: var(--bg-primary);
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 3000;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* 响应式 - 私人FM */
@media (max-width: 900px) {
    .fm-container {
        flex-direction: column;
        align-items: center;
    }

    .fm-history {
        width: 100%;
        max-width: 400px;
    }
}

/* 响应式 - 歌手/专辑详情 */
@media (max-width: 768px) {
    .artist-header,
    .album-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .artist-avatar {
        width: 180px;
        height: 180px;
    }

    .album-cover-large {
        width: 200px;
        height: 200px;
    }

    .artist-info h1,
    .album-info h1 {
        font-size: 28px;
    }

    .artist-stats {
        justify-content: center;
    }

    .artist-actions,
    .album-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* 队列项可点击样式 */
.queue-item.clickable {
    cursor: pointer;
    transition: var(--transition-fast);
}

.queue-item.clickable:hover {
    background: var(--bg-tertiary);
    transform: translateX(4px);
}

.queue-item.clickable:hover .queue-item-action {
    opacity: 1;
}

.queue-item-action {
    opacity: 0;
    color: var(--accent-color);
    font-size: 14px;
    transition: var(--transition-fast);
    margin-left: auto;
    padding: 8px;
}

.queue-item.clickable:active {
    transform: scale(0.98);
}

/* 迷你播放列表样式 */
.mini-song-item {
    cursor: pointer;
    transition: var(--transition-fast);
}

.mini-song-item:hover {
    background: var(--bg-tertiary);
}

.mini-song-item.playing {
    background: var(--bg-tertiary);
}

.mini-playing-icon {
    color: var(--accent-color);
    font-size: 12px;
    margin-left: auto;
}
