/* ===== 轻质感音乐平台 - 柔和文艺风格 ===== */
:root {
    /* 柔和配色 */
    --primary: #6B7FD7;
    --primary-light: #8B9FE8;
    --primary-dark: #5A6BC5;
    --primary-bg: rgba(107, 127, 215, 0.08);
    
    --accent: #E8B4B8;
    --accent-light: #F0CDD0;
    
    /* 背景色 */
    --bg-main: #F8F9FC;
    --bg-white: #FFFFFF;
    --bg-light: #F4F5F9;
    --bg-hover: #EBEDF5;
    --bg-glass: rgba(255, 255, 255, 0.75);
    
    /* 文字色 */
    --text-primary: #2C3E50;
    --text-secondary: #5A6C7D;
    --text-muted: #95A5B6;
    --text-light: #B8C4D4;
    
    /* 边框和阴影 */
    --border-color: rgba(44, 62, 80, 0.06);
    --border-light: rgba(44, 62, 80, 0.04);
    
    --shadow-xs: 0 1px 3px rgba(44, 62, 80, 0.04);
    --shadow-sm: 0 2px 8px rgba(44, 62, 80, 0.06);
    --shadow-md: 0 4px 16px rgba(44, 62, 80, 0.08);
    --shadow-lg: 0 8px 24px rgba(44, 62, 80, 0.1);
    --shadow-glass: 0 4px 20px rgba(44, 62, 80, 0.08);
    
    /* 字体 */
    --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    --font-display: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* 过渡 */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* 圆角 */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
}

/* ===== 全局样式 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background: var(--bg-main);
    color: var(--text-primary);
    overflow: hidden;
    height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

/* ===== 应用容器 ===== */
.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: linear-gradient(180deg, var(--bg-main) 0%, #F0F2F7 100%);
}

/* ===== 头部 ===== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 40px;
    background: var(--bg-glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-xs);
    position: relative;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-icon {
    font-size: 28px;
    filter: drop-shadow(0 2px 4px rgba(107, 127, 215, 0.2));
}

.logo-text {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    font-family: var(--font-display);
}

.logo-text .accent {
    color: var(--primary);
    font-weight: 700;
}

.header-actions {
    display: flex;
    gap: 12px;
}

/* ===== 按钮样式 ===== */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-main);
}

.btn-glow {
    background: var(--bg-white);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.btn-glow:hover {
    background: var(--bg-white);
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(107, 127, 215, 0.25);
}

.btn-primary:hover {
    background: var(--primary-light);
    box-shadow: 0 4px 12px rgba(107, 127, 215, 0.35);
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

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

.btn-icon {
    font-size: 16px;
}

/* ===== 主内容区 ===== */
.main-content {
    flex: 1;
    display: flex;
    gap: 24px;
    padding: 24px 40px;
    overflow: hidden;
}

/* ===== 侧边栏 ===== */
.sidebar {
    width: 260px;
    background: var(--bg-glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    box-shadow: var(--shadow-glass);
}

.sidebar-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 4px;
}

.playlist-tabs {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tab-btn {
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: left;
    font-family: var(--font-main);
    font-weight: 500;
}

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

.tab-btn.active {
    background: var(--primary-bg);
    color: var(--primary);
}

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

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
}

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

.stat-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
    font-variant-numeric: tabular-nums;
}

/* ===== 歌曲区域 ===== */
.songs-section {
    flex: 1;
    background: var(--bg-glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-glass);
}

.search-bar {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.search-input {
    width: 100%;
    padding: 12px 44px 12px 18px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: all var(--transition-normal);
    font-family: var(--font-main);
}

.search-input:focus {
    border-color: var(--primary);
    background: var(--bg-white);
    box-shadow: 0 0 0 4px var(--primary-bg);
}

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

.search-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 18px;
    pointer-events: none;
}

.songs-header {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr 0.8fr 0.8fr;
    gap: 16px;
    padding: 12px 20px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.songs-list {
    flex: 1;
    overflow-y: auto;
    padding-right: 8px;
    scroll-behavior: smooth;
}

.songs-list::-webkit-scrollbar {
    width: 6px;
}

.songs-list::-webkit-scrollbar-track {
    background: transparent;
}

.songs-list::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.songs-list::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

.song-item {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr 0.8fr 0.8fr;
    gap: 16px;
    padding: 14px 20px;
    background: var(--bg-white);
    border-radius: var(--radius-sm);
    margin-bottom: 6px;
    cursor: pointer;
    transition: all var(--transition-fast);
    align-items: center;
    border: 1px solid transparent;
}

.song-item:hover {
    background: var(--bg-white);
    border-color: var(--border-color);
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.song-item.playing {
    background: var(--primary-bg);
    border-color: rgba(107, 127, 215, 0.2);
}

.song-item.playing .song-title {
    color: var(--primary);
    font-weight: 600;
}

.song-title {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

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

.song-actions {
    display: flex;
    gap: 4px;
}

.action-btn {
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 50%;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.action-btn:hover {
    background: var(--bg-hover);
    color: var(--primary);
}

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

.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px;
    color: var(--text-muted);
}

.loader {
    width: 40px;
    height: 40px;
    border: 3px solid var(--bg-hover);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 16px;
}

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

/* ===== 播放器 ===== */
.player {
    background: var(--bg-glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid var(--border-light);
    padding: 20px 40px;
    box-shadow: 0 -4px 20px rgba(44, 62, 80, 0.06);
}

.player-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.player-left {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 300px;
}

/* CD胶片样式 - 轻质感版 */
.now-playing-cover {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #E8EAF0 0%, #D5D8E3 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 
        0 4px 12px rgba(44, 62, 80, 0.1),
        inset 0 2px 4px rgba(255, 255, 255, 0.8),
        inset 0 -2px 4px rgba(44, 62, 80, 0.05);
    animation: none;
    transition: all var(--transition-normal);
}

.now-playing-cover.playing {
    animation: rotateCD 20s linear infinite;
}

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

.now-playing-cover::before {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #FFFFFF 0%, #F0F2F7 100%);
    border-radius: 50%;
    box-shadow: 
        inset 0 1px 2px rgba(44, 62, 80, 0.1),
        0 1px 2px rgba(255, 255, 255, 0.8);
    z-index: 2;
}

.now-playing-cover::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: repeating-radial-gradient(
        circle at center,
        transparent 0px,
        transparent 2px,
        rgba(44, 62, 80, 0.02) 2px,
        rgba(44, 62, 80, 0.02) 4px
    );
    z-index: 1;
}

.now-playing-cover img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    position: absolute;
    z-index: 0;
}

.cover-placeholder {
    font-size: 30px;
    z-index: 3;
    filter: drop-shadow(0 2px 4px rgba(44, 62, 80, 0.15));
}

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

.now-playing-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

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

.player-controls {
    display: flex;
    align-items: center;
    gap: 24px;
}

.control-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--bg-light);
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 50%;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: var(--shadow-xs);
}

.control-btn:hover {
    background: var(--bg-white);
    color: var(--primary);
    transform: scale(1.05);
    box-shadow: var(--shadow-sm);
}

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

.control-btn.active {
    color: var(--primary);
    background: var(--primary-bg);
}

.control-btn-main {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #ffffff;
    box-shadow: 
        0 4px 16px rgba(107, 127, 215, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    font-size: 22px;
}

.control-btn-main:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    transform: scale(1.08);
    box-shadow: 
        0 6px 20px rgba(107, 127, 215, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

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

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

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

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

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

.progress-handle {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: var(--bg-white);
    border: 2px solid var(--primary);
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
    left: 0%;
    transition: left 0.1s linear;
    opacity: 0;
    z-index: 2;
}

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

.player-right {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 200px;
}

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

.volume-slider {
    width: 80px;
}

.slider {
    width: 100%;
    height: 4px;
    -webkit-appearance: none;
    background: var(--bg-hover);
    border-radius: 2px;
    outline: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: var(--bg-white);
    border: 2px solid var(--primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

/* ===== 模态框 ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 62, 80, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn var(--transition-normal);
}

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

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
    width: 90%;
    max-width: 500px;
    box-shadow: var(--shadow-lg);
    animation: slideUp var(--transition-normal);
}

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

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

.modal-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 20px;
    border-radius: 50%;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.modal-body {
    padding: 28px;
}

.modal-hint {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.modal-input {
    width: 100%;
    padding: 12px 18px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: all var(--transition-normal);
    font-family: var(--font-main);
}

.modal-input:focus {
    border-color: var(--primary);
    background: var(--bg-white);
    box-shadow: 0 0 0 4px var(--primary-bg);
}

.modal-result {
    margin-top: 14px;
    padding: 14px;
    background: var(--primary-bg);
    border: 1px solid rgba(107, 127, 215, 0.2);
    border-radius: var(--radius-sm);
    color: var(--primary);
    font-size: 14px;
    display: none;
}

.modal-result.active {
    display: block;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 28px;
    border-top: 1px solid var(--border-light);
    background: var(--bg-light);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 48px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    background: var(--bg-light);
}

.upload-area:hover {
    border-color: var(--primary);
    background: var(--primary-bg);
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 14px;
    display: block;
}

.upload-area p {
    color: var(--text-secondary);
    margin: 4px 0;
    font-size: 14px;
}

.upload-area p:first-of-type {
    font-weight: 500;
    color: var(--text-primary);
}

.file-input {
    display: none;
}

.upload-list {
    margin-top: 18px;
    max-height: 220px;
    overflow-y: auto;
}

.upload-item {
    padding: 12px 16px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.upload-name {
    font-weight: 500;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.upload-status {
    font-size: 12px;
    color: var(--text-muted);
}

.upload-progress {
    width: 100%;
    height: 4px;
    background: var(--bg-hover);
    border-radius: 2px;
    overflow: hidden;
}

.upload-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 2px;
    transition: width 0.3s ease;
}

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

/* ===== 响应式 ===== */
@media (max-width: 1200px) {
    .sidebar {
        width: 240px;
    }
}

@media (max-width: 900px) {
    .main-content {
        flex-direction: column;
        padding: 16px 24px;
        gap: 16px;
    }
    
    .sidebar {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .sidebar-section {
        flex: 1;
        min-width: 200px;
    }
    
    .songs-header {
        display: none;
    }
    
    .song-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .player {
        padding: 16px 24px;
    }
    
    .player-content {
        flex-wrap: wrap;
        gap: 16px;
    }
    
    .player-left {
        min-width: auto;
        flex: 1;
    }
    
    .player-center {
        width: 100%;
        order: 3;
    }
    
    .player-right {
        min-width: auto;
    }
}

/* ===== 移动端优化 ===== */
@media (max-width: 768px) {
    .header {
        padding: 12px 20px;
    }
    
    .logo-text {
        font-size: 18px;
    }
    
    .header-actions {
        gap: 8px;
    }
    
    .btn {
        padding: 8px 14px;
        font-size: 13px;
    }
    
    .btn-icon {
        display: none;
    }
    
    .main-content {
        padding: 12px 16px;
        gap: 12px;
    }
    
    .sidebar {
        padding: 16px;
        gap: 16px;
    }
    
    .songs-section {
        padding: 16px;
        gap: 16px;
    }
    
    .search-bar {
        max-width: 100%;
    }
    
    .song-item {
        padding: 12px 16px;
    }
    
    .player {
        padding: 12px 16px;
    }
    
    .now-playing-cover {
        width: 56px;
        height: 56px;
    }
    
    .now-playing-cover::before {
        width: 18px;
        height: 18px;
    }
    
    .now-playing-cover img {
        width: 36px;
        height: 36px;
    }
    
    .cover-placeholder {
        font-size: 24px;
    }
    
    .player-controls {
        gap: 16px;
    }
    
    .control-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .control-btn-main {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
    
    .progress-container {
        max-width: 100%;
    }
    
    .volume-control {
        display: none;
    }
    
    .modal-content {
        width: 95%;
        max-width: none;
        margin: 0 10px;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-footer {
        padding: 16px 20px;
    }
    
    .upload-area {
        padding: 32px 20px;
    }
    
    .upload-icon {
        font-size: 40px;
    }
}

/* ===== 小屏幕手机 ===== */
@media (max-width: 480px) {
    .header {
        padding: 10px 16px;
    }
    
    .logo-icon {
        font-size: 24px;
    }
    
    .logo-text {
        font-size: 16px;
    }
    
    .btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .main-content {
        padding: 8px 12px;
    }
    
    .sidebar {
        padding: 12px;
    }
    
    .songs-section {
        padding: 12px;
    }
    
    .song-item {
        padding: 10px 12px;
        margin-bottom: 4px;
    }
    
    .song-title {
        font-size: 13px;
    }
    
    .song-artist,
    .song-album,
    .song-duration {
        font-size: 12px;
    }
    
    .player {
        padding: 10px 12px;
    }
    
    .player-left {
        gap: 12px;
    }
    
    .now-playing-cover {
        width: 48px;
        height: 48px;
    }
    
    .now-playing-cover::before {
        width: 14px;
        height: 14px;
    }
    
    .now-playing-cover img {
        width: 30px;
        height: 30px;
    }
    
    .cover-placeholder {
        font-size: 20px;
    }
    
    .now-playing-title {
        font-size: 14px;
    }
    
    .now-playing-artist {
        font-size: 12px;
    }
    
    .player-controls {
        gap: 12px;
    }
    
    .control-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .control-btn-main {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
    
    .time-current,
    .time-total {
        font-size: 11px;
        min-width: 36px;
    }
    
    .action-btn {
        width: 26px;
        height: 26px;
        font-size: 13px;
    }
}

/* ===== 触摸设备优化 ===== */
@media (hover: none) and (pointer: coarse) {
    .song-item:hover {
        transform: none;
    }
    
    .btn:hover {
        transform: none;
    }
    
    .control-btn:hover {
        transform: none;
    }
    
    .action-btn:hover {
        transform: none;
    }
    
    /* 增大触摸目标 */
    .action-btn {
        width: 36px;
        height: 36px;
    }
    
    .control-btn {
        width: 44px;
        height: 44px;
    }
    
    .control-btn-main {
        width: 56px;
        height: 56px;
    }
}

