/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    overflow-x: hidden;
}

/* 主题切换相关样式 */
body.light-theme {
    --primary-color: #4361ee;
    --primary-color-rgb: 67, 97, 238;
    --secondary-color: #3f37c9;
    --secondary-color-rgb: 63, 55, 201;
    --accent-color: #4cc9f0;
    --background-color: #f8f9fa;
    --text-color: #212529;
    --text-color-rgb: 33, 37, 41;
    --card-bg: #ffffff;
    --border-color: #dee2e6;
    --hover-bg: #f8f9fa;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 15px rgba(0, 0, 0, 0.1);
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-secondary: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    --success-color: #2ecc71;
    --success-color-rgb: 46, 204, 113;
    --warning-color: #f39c12;
    --warning-color-rgb: 243, 156, 18;
    --danger-color: #e74c3c;
    --danger-color-rgb: 231, 76, 60;
}

body.dark-theme {
    --primary-color: #4cc9f0;
    --primary-color-rgb: 76, 201, 240;
    --secondary-color: #4361ee;
    --secondary-color-rgb: 67, 97, 238;
    --accent-color: #f72585;
    --background-color: #121212;
    --text-color: #e0e0e0;
    --text-color-rgb: 224, 224, 224;
    --card-bg: #1e1e1e;
    --border-color: #333;
    --hover-bg: #2d2d2d;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    --shadow-hover: 0 10px 15px rgba(0, 0, 0, 0.3);
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-secondary: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    --success-color: #4ade80;
    --success-color-rgb: 74, 222, 128;
    --warning-color: #facc15;
    --warning-color-rgb: 250, 204, 21;
    --danger-color: #f87171;
    --danger-color-rgb: 248, 113, 113;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* 顶部导航栏 */
.navbar {
    background: var(--gradient-primary) !important;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    z-index: 100;
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* 标题样式优化 */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2), 0 0 10px rgba(255,255,255,0.3);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    letter-spacing: 0.5px;
}

.navbar-brand:hover {
    transform: scale(1.05);
    color: white;
    text-shadow: 0 3px 6px rgba(0,0,0,0.3), 0 0 15px rgba(255,255,255,0.4);
}

.navbar-brand i {
    margin-right: 0.5rem;
    font-size: 1.75rem;
    animation: pulse 2s infinite;
}

/* 歌曲标题增强 */
.song-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--text-color);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15), 0 0 10px rgba(255,255,255,0.2);
    line-height: 1.2;
    transition: all 0.3s ease;
    z-index: 1;
    position: relative;
    display: inline-block;
    padding: 0 12px;
    word-break: break-word;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.song-title::before, .song-title::after {
    content: '';
    position: absolute;
    height: 4px;
    width: 0;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.song-title::before {
    top: -8px;
    left: 0;
    border-radius: 2px 0 0 2px;
}

.song-title::after {
    bottom: -8px;
    right: 0;
    border-radius: 0 2px 2px 0;
}

.song-title:hover::before, .song-title:hover::after {
    width: 100%;
}

.song-artist {
    font-size: 1.3rem;
    color: var(--text-color);
    opacity: 0.9;
    margin-bottom: 1.5rem;
    font-weight: 600;
    z-index: 1;
    position: relative;
}

/* 专辑封面效果增强 */
.album-cover-container {
    width: 280px;
    height: 280px;
    position: relative;
    margin: 0 auto;
    animation: fadeIn 1s ease-out;
    perspective: 1200px;
}

.album-cover {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-hover), 0 0 30px rgba(67, 97, 238, 0.3);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    transform: perspective(1200px) rotateY(0deg);
    position: relative;
}

.album-cover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.4) 100%);
    pointer-events: none;
    border-radius: 16px;
}

.album-cover:hover {
    transform: perspective(1200px) rotateY(10deg) scale(1.03);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 40px rgba(67, 97, 238, 0.5);
}

.album-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

/* 专辑封面中央播放图标（未播放状态） */
.album-cover:not(.playing)::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    background: rgba(67, 97, 238, 0.85);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: white;
    box-shadow: 0 0 25px rgba(67, 97, 238, 0.8);
    z-index: 3;
}

.album-cover:not(.playing):hover::before {
    opacity: 1;
    content: '▶';
    font-family: Arial, sans-serif;
    font-weight: bold;
    padding-left: 10px;
    animation: pulse 1.5s infinite;
}

/* 播放按钮交互效果增强 */
.btn-play-pause {
    width: 80px !important;
    height: 80px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #2a43b8, #1e2f8a) !important; /* 加深的渐变颜色 */
    border: 3px solid rgba(255, 255, 255, 0.3) !important;
    color: white !important;
    font-size: 1.8rem !important;
    cursor: button !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 0 8px rgba(42, 67, 184, 0.2) !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    z-index: 2 !important;
    overflow: hidden !important;
    transform: translateY(-2px) !important;
    margin: 0 10px !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.btn-play-pause::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
    z-index: 1;
}

.btn-play-pause:hover::before {
    left: 100%;
}

.btn-play-pause:hover {
    transform: scale(1.1) translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35), 0 0 0 15px rgba(67, 97, 238, 0.25);
}

.btn-play-pause:active {
    transform: scale(0.98) translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25), 0 0 0 8px rgba(67, 97, 238, 0.15);
}

/* 播放列表样式美化 */
.playlist-container {
    background-color: var(--card-bg) !important;
    border-radius: 16px !important;
    padding: 1.5rem !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    max-height: 600px;
    overflow-y: auto;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

/* 自定义滚动条 */
.playlist-container::-webkit-scrollbar {
    width: 8px;
}

.playlist-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.playlist-container::-webkit-scrollbar-thumb {
    background: rgba(67, 97, 238, 0.3);
    border-radius: 10px;
    transition: background-color 0.2s ease;
}

.playlist-container::-webkit-scrollbar-thumb:hover {
    background: rgba(67, 97, 238, 0.5);
}

/* 播放列表项样式 */
#playlist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

#playlist li {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
    border-radius: 12px;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-height: 80px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* 当前播放歌曲高亮样式 */
#playlist li.active {
    background-color: rgba(67, 97, 238, 0.15);
    border-color: rgba(67, 97, 238, 0.3);
    box-shadow: 0 6px 20px rgba(67, 97, 238, 0.25);
    transform: translateY(-2px);
}

/* 播放列表项悬停效果 */
#playlist li:hover:not(.active) {
    background-color: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* 播放列表项内容布局 */
#playlist li .song-info {
    flex-grow: 1;
    min-width: 0;
    width: 100%;
}

#playlist li .song-title {
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 6px 0;
    font-size: 1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.2;
}

#playlist li .song-artist {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0 0 8px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.2;
}

/* 播放列表项中的时长信息 */
#playlist li .song-duration {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: auto;
    align-self: flex-end;
    min-width: 45px;
    text-align: right;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 500;
}

/* 当前播放歌曲的指示图标 */
#playlist li.active::before {
    content: '▶';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 0.7rem;
    opacity: 0.7;
}

/* 空播放列表状态样式 */
#playlist li.empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
    font-style: italic;
    background-color: transparent;
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: default;
}

#playlist li.empty:hover {
    transform: none;
    background-color: transparent;
}

/* 播放列表加载状态样式 */
#playlist li.loading {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
    background-color: transparent;
    border: none;
    cursor: default;
}

#playlist li.loading:hover {
    transform: none;
    background-color: transparent;
}

.playlist-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, var(--card-bg), transparent);
    pointer-events: none;
    z-index: 2;
}

.playlist-container:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

#playlist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.song-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    margin-bottom: 0.5rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}

.song-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background-color: var(--primary-color);
    opacity: 0.1;
    transition: width 0.2s ease;
}

.song-item:hover::before {
    width: 5px;
}

.song-item:hover {
    background-color: var(--hover-bg);
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.song-item.active {
    background-color: rgba(67, 97, 238, 0.1);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.15);
}

.song-item.active::before {
    width: 5px;
}

.song-index {
    font-weight: 600;
    margin-right: 1rem;
    color: var(--primary-color);
    min-width: 24px;
    font-size: 1rem;
    display: flex;
    justify-content: center;
}

.song-info {
    flex: 1;
    overflow: hidden;
}

.song-item-title {
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-color);
    font-size: 1.05rem;
    line-height: 1.4;
}

.song-item-artist {
    font-size: 0.875rem;
    margin: 0;
    color: var(--text-color);
    opacity: 0.7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.song-duration {
    margin-left: 1rem;
    color: var(--text-color);
    opacity: 0.7;
    font-size: 0.875rem;
    font-weight: 500;
}

.btn-delete {
    background: none;
    border: none;
    color: var(--text-color);
    opacity: 0.5;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: none;
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}

.song-item:hover .btn-delete {
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-delete::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background-color: var(--danger-color);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
}

.btn-delete:hover::before {
    width: 100%;
    height: 100%;
    opacity: 0.1;
}

.btn-delete:hover {
    background-color: rgba(231, 76, 60, 0.1);
    color: var(--danger-color);
    opacity: 1;
    transform: scale(1.1);
}

/* 音量控制 */
.volume-container {
    background-color: var(--card-bg) !important;
    border-radius: 16px !important;
    padding: 1.5rem !important;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.volume-container:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.volume-bar {
    height: 8px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.volume-bar::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: var(--volume-width, 80%);
    background: linear-gradient(90deg, 
        var(--primary-color) 0%, 
        var(--secondary-color) 100%);
    border-radius: 4px;
    transition: width 0.1s linear;
    box-shadow: 0 2px 8px rgba(var(--primary-color-rgb), 0.3);
}

.volume-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(255, 255, 255, 0.8);
    border: 3px solid white;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.volume-bar::-webkit-slider-thumb:hover {
    transform: scale(1.4);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 0 3px rgba(255, 255, 255, 0.9);
    background: var(--secondary-color);
}

.volume-bar::-webkit-slider-thumb:active {
    transform: scale(1.3);
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.55), 0 0 0 2px rgba(255, 255, 255, 0.85);
}

.volume-bar::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(255, 255, 255, 0.8);
    border: 3px solid white;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    z-index: 2;
}

.volume-bar::-moz-range-thumb:hover {
    transform: scale(1.4);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 0 3px rgba(255, 255, 255, 0.9);
    background: var(--secondary-color);
}

.volume-bar::-moz-range-thumb:active {
    transform: scale(1.3);
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.55), 0 0 0 2px rgba(255, 255, 255, 0.85);
}

/* 音量控制焦点样式 */
.volume-bar:focus {
    outline: none;
}

.volume-bar:focus::-webkit-slider-thumb {
    box-shadow: 0 0 0 6px rgba(var(--primary-color-rgb), 0.4);
}

.volume-bar:focus::-moz-range-thumb {
    box-shadow: 0 0 0 6px rgba(var(--primary-color-rgb), 0.4);
}

/* 音量条悬停效果增强 */
.volume-bar:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.volume-bar:hover::before {
    box-shadow: 0 3px 12px rgba(var(--primary-color-rgb), 0.4);
}

/* 播放模式信息 */
.playback-mode-info {
    background-color: var(--hover-bg) !important;
    border-radius: 12px !important;
    padding: 1.25rem !important;
    text-align: center;
    margin-top: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.playback-mode-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.playback-mode-info:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

#playbackModeText {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

/* 设置面板 */
.settings-panel {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background-color: var(--card-bg);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
    transition: right 0.3s ease, box-shadow 0.3s ease;
    z-index: 1000;
    padding: 20px;
    overflow-y: auto;
}

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

.settings-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.settings-panel-header h3 {
    color: var(--text-color);
    font-weight: 800;
    margin: 0;
    font-size: 1.5rem;
}

.settings-panel-close {
    cursor: pointer;
    font-size: 1.75rem;
    color: var(--text-color);
    opacity: 0.7;
    transition: all 0.2s ease;
    padding: 0.25rem;
    border-radius: 8px;
    -webkit-tap-highlight-color: transparent;
}

.settings-panel-close:hover {
    background-color: var(--hover-bg);
    opacity: 1;
    transform: scale(1.1);
}

/* 响应式设计 - 大屏电脑 */
@media (min-width: 1200px) {
    .album-cover-container {
        width: 280px;
        height: 280px;
    }
    
    .song-title {
        font-size: 2.25rem;
    }
    
    .song-artist {
        font-size: 1.3rem;
    }
    
    .btn-play-pause {
        width: 80px !important;
        height: 80px !important;
        font-size: 1.8rem !important;
    }
    
    .playlist-container {
        max-height: 500px;
    }
    
    .btn-control {
        min-width: 50px !important;
        height: 50px !important;
        font-size: 1.3rem !important;
    }
    
    .controls {
        gap: 20px !important;
        padding: 20px 0;
    }
    
    /* 大屏幕上的额外优化 */
    .container {
        max-width: 1400px;
        margin: 0 auto;
    }
    
    .current-track {
        padding: 2rem 0;
    }
    
    .progress-container {
        margin: 1.5rem 0;
    }
    
    .time-info {
        font-size: 1rem;
    }
    
    .volume-slider {
        width: 150px;
    }
    
    .playlist-container {
        max-height: 550px;
    }
}

/* 响应式设计 - 平板/iPad (横屏) */
@media (max-width: 1199px) and (min-width: 769px) {
    .album-cover-container {
        width: 220px;
        height: 220px;
    }
    
    .song-title {
        font-size: 1.875rem;
    }
    
    .song-artist {
        font-size: 1.2rem;
    }
    
    .btn-play-pause {
        width: 70px !important;
        height: 70px !important;
        font-size: 1.6rem !important;
        margin: 0 10px !important;
    }
    
    .controls {
        gap: 1.25rem;
        padding: 18px 0;
    }
    
    .btn-control {
        min-width: 45px !important;
        height: 45px !important;
        font-size: 1.2rem !important;
        margin: 0 5px !important;
    }
    
    .playlist-container {
        max-height: 450px;
    }
    
    /* 平板横屏上的额外优化 */
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .current-track {
        padding: 1.75rem 0;
    }
    
    .progress-container {
        margin: 1.25rem 0;
    }
    
    .time-info {
        font-size: 0.9rem;
    }
    
    .volume-slider {
        width: 130px;
    }
    
    .playlist-section .row {
        align-items: flex-start;
    }
}

/* 响应式设计 - 平板/iPad (竖屏) */
@media (max-width: 768px) {
    .album-cover-container {
        width: 200px;
        height: 200px;
    }
    
    .song-title {
        font-size: 1.75rem;
    }
    
    .song-artist {
        font-size: 1.1rem;
    }
    
    .controls {
        flex-wrap: wrap;
        gap: 1rem;
        padding: 15px 0;
    }
    
    .btn-control {
        margin: 4px;
        min-width: 45px !important;
        height: 45px !important;
        font-size: 1.2rem !important;
    }
    
    .btn-play-pause {
        width: 65px !important;
        height: 65px !important;
        font-size: 1.5rem !important;
        margin: 0 8px !important;
    }
    
    .playlist-container {
        max-height: 400px;
        padding: 1rem !important;
    }
    
    /* 平板设备上的播放列表网格布局 */
    #playlist {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 10px;
    }
    
    #playlist li {
        padding: 14px;
        min-height: 75px;
    }
    
    #playlist li .song-title {
        font-size: 0.95rem;
    }
    
    #playlist li .song-artist {
        font-size: 0.8rem;
    }
    
    .volume-container {
        padding: 1rem !important;
    }
    
    /* 在iPad竖屏上调整布局 */
    .current-track .row {
        flex-direction: column;
        text-align: center;
    }
    
    .current-track .col-md-4,
    .current-track .col-md-6 {
        margin-bottom: 1.5rem;
    }
    
    /* 调整播放列表和音量控制的布局 */
    .playlist-section .row {
        flex-direction: column;
    }
    
    .playlist-section .col-md-9,
    .playlist-section .col-md-3 {
        width: 100%;
    }
    
    .volume-container {
        margin-top: 1.5rem;
    }
    
    /* 平板竖屏上的额外优化 */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .current-track {
        padding: 1.5rem 1rem;
    }
    
    .progress-container {
        margin: 1rem 0;
    }
    
    .time-info {
        font-size: 0.85rem;
    }
    
    .volume-slider {
        width: 120px;
    }
}

/* 响应式设计 - 大手机 */
@media (max-width: 576px) {
    .album-cover-container {
        width: 170px;
        height: 170px;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .song-title {
        font-size: 1.5rem;
    }
    
    .song-artist {
        font-size: 1rem;
    }
    
    .btn-play-pause {
        width: 60px !important;
        height: 60px !important;
        font-size: 1.4rem !important;
    }
    
    .playlist-container {
        max-height: 350px;
    }
    
    /* 手机设备上的播放列表网格布局 */
    #playlist {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    #playlist li {
        padding: 12px;
        min-height: 70px;
        flex-direction: row;
        align-items: center;
    }
    
    #playlist li .song-info {
        flex-grow: 1;
        margin-right: 12px;
    }
    
    #playlist li .song-title {
        font-size: 0.9rem;
        margin-bottom: 2px;
    }
    
    #playlist li .song-artist {
        font-size: 0.75rem;
        margin-bottom: 0;
    }
    
    #playlist li .song-duration {
        margin-top: 0;
        align-self: center;
        font-size: 0.75rem;
        padding: 3px 6px;
    }
    
    .controls {
        gap: 0.75rem;
    }
    
    .btn-control {
        min-width: 40px !important;
        height: 40px !important;
        font-size: 1.1rem !important;
        padding: 0.5rem !important;
    }
    
    .time-info {
        font-size: 0.75rem;
    }
}

/* 响应式设计 - 小手机 */
@media (max-width: 480px) {
    .album-cover-container {
        width: 150px;
        height: 150px;
    }
    
    .song-title {
        font-size: 1.3rem;
    }
    
    .song-item {
        padding: 0.75rem 1rem;
    }
    
    .playlist-container {
        padding: 0.75rem !important;
        max-height: 300px;
    }
    
    /* 小手机设备上的播放列表网格布局 */
    #playlist {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    
    #playlist li {
        padding: 10px;
        min-height: 65px;
        flex-direction: row;
        align-items: center;
    }
    
    #playlist li .song-info {
        flex-grow: 1;
        margin-right: 8px;
    }
    
    #playlist li .song-title {
        font-size: 0.85rem;
        margin-bottom: 2px;
    }
    
    #playlist li .song-artist {
        font-size: 0.7rem;
        margin-bottom: 0;
    }
    
    #playlist li .song-duration {
        margin-top: 0;
        align-self: center;
        font-size: 0.7rem;
        padding: 2px 5px;
        min-width: 40px;
    }
    
    .song-index {
        min-width: 20px;
        font-size: 0.875rem;
        margin-right: 0.75rem;
    }
    
    .song-item-title {
        font-size: 0.95rem;
    }
    
    .song-duration {
        margin-left: 0.5rem;
        font-size: 0.75rem;
    }
    
    .btn-delete {
        padding: 0.35rem;
    }
    
    /* 小手机上的布局优化 */
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .current-track {
        padding: 1rem 0.5rem;
    }
    
    .controls {
        gap: 0.5rem;
        padding: 5px 0;
    }
    
    .btn-play-pause {
        width: 55px !important;
        height: 55px !important;
        font-size: 1.3rem !important;
        margin: 0 6px !important;
    }
    
    .btn-control {
        min-width: 35px !important;
        height: 35px !important;
        font-size: 1rem !important;
        margin: 0 3px !important;
    }
    
    .progress-container {
        margin: 0.5rem 0;
    }
    
    .time-info {
    font-size: 0.7rem;
}

/* 时间显示样式增强 */
.time-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    font-size: 14px;
    font-weight: 600;
    position: relative;
}

.time-info span {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(var(--primary-color-rgb), 0.05);
    backdrop-filter: blur(10px);
}

.time-info #currentTime {
    color: var(--primary-color);
    font-weight: 700;
    background: rgba(var(--primary-color-rgb), 0.1);
    box-shadow: 0 2px 8px rgba(var(--primary-color-rgb), 0.2);
}

.time-info #remainingTime {
    color: var(--danger-color);
    font-weight: 700;
    background: rgba(var(--danger-color-rgb), 0.1);
    box-shadow: 0 2px 8px rgba(var(--danger-color-rgb), 0.2);
}

.time-info #totalTime {
    color: var(--text-color);
    opacity: 0.9;
    background: rgba(var(--text-color-rgb), 0.05);
}

/* 播放状态下的时间显示动画 */
.playing .time-info #currentTime {
    animation: pulseTime 2s infinite;
    transform: scale(1.05);
}

.playing .time-info #remainingTime {
    animation: pulseRemaining 2s infinite;
}

@keyframes pulseTime {
    0%, 100% { 
        opacity: 1;
        transform: scale(1.05);
    }
    50% { 
        opacity: 0.8;
        transform: scale(1.02);
    }
}

@keyframes pulseRemaining {
    0%, 100% { 
        color: var(--danger-color);
        transform: translateX(0);
    }
    50% { 
        color: var(--warning-color);
        transform: translateX(-2px);
    }
}

/* 进度条容器样式优化 */
.progress-container {
    position: relative;
    margin-bottom: 16px;
    padding: 0 8px;
}

/* 进度条悬停时的预览时间 */
.progress-container::before {
    content: attr(data-preview-time);
    position: absolute;
    top: -30px;
    left: var(--preview-position, 0%);
    transform: translateX(-50%);
    background: var(--card-bg);
    color: var(--text-color);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: var(--shadow);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 10;
    border: 1px solid var(--border-color);
}

.progress-container:hover::before {
    opacity: 1;
}

/* 时间信息布局优化 */
.time-info {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 8px;
    align-items: center;
}

.time-info #currentTime {
    justify-self: start;
}

.time-info #remainingTime {
    justify-self: center;
}

.time-info #totalTime {
    justify-self: end;
}
    
    .volume-container {
        padding: 0.75rem !important;
    }
    
    .volume-slider {
        width: 100px;
    }
    
    .playlist-section .row {
        margin: 0;
    }
    
    .playlist-section .col-md-9,
    .playlist-section .col-md-3 {
        padding: 0;
    }
    
    /* 简化控制面板，移除一些不常用按钮 */
    /* 注释掉隐藏按钮的规则，确保所有按钮都能显示 */
    /* .controls .btn-control:first-child,
    .controls .btn-control:last-child {
        display: none;
    } */
    
    /* 调整播放列表和音量控制的容器尺寸 */
    .playlist-container,
    .volume-container {
        border-radius: 12px !important;
    }
    
    /* 优化小屏幕上的播放按钮 */
    .btn-play-pause {
        width: 55px !important;
        height: 55px !important;
        font-size: 1.3rem !important;
    }
    
    .btn-control {
        min-width: 35px !important;
        height: 35px !important;
        font-size: 1rem !important;
    }
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 28px;
    height: 28px;
    border: 4px solid rgba(67, 97, 238, 0.2);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 工具提示样式 */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 8px;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    transform: translateY(5px);
    font-size: 0.75rem;
    font-weight: 500;
    pointer-events: none;
    /* 在移动设备上禁用工具提示 */
    display: none;
}

/* 仅在非触摸设备上显示工具提示 */
@media (hover: hover) and (pointer: fine) {
    .tooltip .tooltiptext {
        display: block;
    }
    
    .tooltip:hover .tooltiptext {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }
}

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

::-webkit-scrollbar-track {
    background: var(--background-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 5px;
    transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
    opacity: 0.7;
}

/* 页脚样式 */
.footer {
    background: var(--gradient-primary) !important;
    color: white !important;
    padding: 1.5rem 0 !important;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 3s infinite;
}

.footer p {
    margin: 0;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes slideIn {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.slide-in {
    animation: slideIn 0.4s ease forwards;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* 渐变和阴影增强 */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* 控制按钮样式 */
.btn-control {
    min-width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #3a55c9, #2c41a3) !important; /* 加深的渐变颜色 */
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    font-size: 1.3rem !important;
    cursor: pointer !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), 0 0 0 6px rgba(58, 85, 201, 0.15) !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    z-index: 2 !important;
    overflow: hidden !important;
    margin: 0 6px !important;
    order: 2 !important; /* 控制按钮在播放按钮两侧 */
    opacity: 1 !important;
    visibility: visible !important;
}

.btn-control::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
    z-index: 1;
}

.btn-control:hover::before {
    left: 100%;
}

.btn-control:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25), 0 0 0 8px rgba(58, 85, 201, 0.2);
}

.btn-control:active {
    transform: scale(0.95);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2), 0 0 0 4px rgba(58, 85, 201, 0.1);
}

/* 按钮状态增强 */
.btn-control:focus,
.btn-play-pause:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.3);
}

/* 控制按钮容器样式 */
.controls {
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 10px 0;
    min-height: 120px;
}

/* 进度条样式 */
.progress-bar {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

/* 进度条轨道样式 */
.progress-bar::-webkit-slider-track {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
}

/* 进度条滑块样式 */
.progress-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    border: 3px solid white;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.progress-bar::-webkit-slider-thumb:hover {
    transform: scale(1.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    background: var(--secondary-color);
}

.progress-bar::-webkit-slider-thumb:active {
    transform: scale(1.2);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.45);
}

/* Firefox进度条样式 */
.progress-bar::-moz-range-track {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
}

.progress-bar::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    border: 3px solid white;
    transition: all 0.3s ease;
}

.progress-bar::-moz-range-thumb:hover {
    transform: scale(1.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    background: var(--secondary-color);
}

.progress-bar::-moz-range-thumb:active {
    transform: scale(1.2);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.45);
}

/* 进度条填充部分（已播放部分） */
.progress-bar::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(90deg, 
        var(--primary-color) 0%, 
        var(--secondary-color) 100%);
    border: none;
    position: relative;
}

/* 进度条焦点样式 */
.progress-bar:focus {
    outline: none;
}

.progress-bar:focus::-webkit-slider-thumb {
    box-shadow: 0 0 0 4px rgba(var(--primary-color-rgb), 0.3);
}

.progress-bar:focus::-moz-range-thumb {
    box-shadow: 0 0 0 4px rgba(var(--primary-color-rgb), 0.3);
}

/* 播放按钮特殊样式 */
.btn-play-pause {
    margin: 0 12px;
    order: 3 !important; /* 确保播放按钮在中间位置 */
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 加载状态优化 */
.skeleton {
    background: linear-gradient(90deg, var(--border-color) 25%, rgba(255,255,255,0.1) 50%, var(--border-color) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* 焦点状态样式 */
:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* 文本选择样式 */
::selection {
    background-color: var(--primary-color);
    color: white;
}

/* 辅助类 */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 3rem; }