/* ========== 迷你播放器（悬浮条） ========== */
.mini-player {
    position: fixed;
    bottom: 0;
    left: 220px;
    right: 0;
    height: 70px;
    background: var(--bg-secondary);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 200;
    transition: all 0.3s ease;
}

/* 日间模式下的播放器特殊样式 */
.theme-light .mini-player {
    box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.08);
}

/* 日间模式下全屏播放器的特殊样式 */
.theme-light .fullscreen-cover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.theme-light .fs-control-btn:hover {
    background: rgba(59, 130, 246, 0.1);
}

.theme-light .fs-control-btn-main:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

/* 日间模式下右侧容器的特殊样式 */
.theme-light .fullscreen-right {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-color: rgba(59, 130, 246, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.theme-light .fullscreen-tabs {
    background: rgba(248, 250, 252, 0.8);
    border-bottom-color: rgba(59, 130, 246, 0.15);
}

.theme-light .fullscreen-tab-content {
    background: rgba(248, 250, 252, 0.6);
}

.theme-light .fs-tab {
    color: var(--text-primary);
    position: relative;
}

.theme-light .fs-tab:hover {
    background: rgba(59, 130, 246, 0.08);
}

.theme-light .fs-tab.active {
    background: rgba(59, 130, 246, 0.12);
    color: var(--accent-color);
}

.theme-light .fs-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-color);
}

/* 日间模式下歌词和播放列表的特殊样式 */
.theme-light .fs-lyrics-scroll {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    margin: var(--spacing-md);
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.theme-light .fs-playlist-scroll {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    margin: var(--spacing-md);
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.theme-light .btn-close-fullscreen {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    border-color: rgba(59, 130, 246, 0.2);
}

.theme-light .btn-close-fullscreen:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* 日间模式下的滚动条样式 */
.theme-light .fs-lyrics-scroll::-webkit-scrollbar,
.theme-light .fs-playlist-scroll::-webkit-scrollbar {
    width: 6px;
}

.theme-light .fs-lyrics-scroll::-webkit-scrollbar-track,
.theme-light .fs-playlist-scroll::-webkit-scrollbar-track {
    background: rgba(59, 130, 246, 0.05);
    border-radius: 3px;
}

.theme-light .fs-lyrics-scroll::-webkit-scrollbar-thumb,
.theme-light .fs-playlist-scroll::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.3);
    border-radius: 3px;
}

.theme-light .fs-lyrics-scroll::-webkit-scrollbar-thumb:hover,
.theme-light .fs-playlist-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, 0.5);
}

.mini-player.top {
    top: 0;
    bottom: auto;
    border-top: none;
    border-bottom: 1px solid var(--border-color);
}

.mini-player-content {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 var(--spacing-lg);
    gap: var(--spacing-lg);
}

.mini-left {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    width: 250px;
    cursor: pointer;
}

.mini-cover {
    width: 48px;
    height: 48px;
    background: var(--bg-tertiary);
    border-radius: 6px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    overflow: hidden;
}

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

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

.mini-title {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.mini-center {
    flex: 1;
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.mini-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s;
}

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

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

.mini-btn-main {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s;
}

.mini-btn-main:hover {
    background: var(--accent-hover);
    transform: scale(1.05);
}

.mini-progress {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mini-time {
    font-size: 10px;
    color: var(--text-secondary);
}

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

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

.mini-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    width: 350px;
    justify-content: flex-end;
}

.mini-volume {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.mini-volume-slider {
    width: 70px;
    height: 3px;
    border-radius: 2px;
    background: var(--bg-tertiary);
    outline: none;
    -webkit-appearance: none;
}

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

.mini-btn-expand {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    margin-left: var(--spacing-sm);
    transition: all 0.2s;
}

.mini-btn-expand:hover {
    background: var(--bg-tertiary);
    transform: translateY(-2px);
}

.player-left {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    width: 280px;
}

.current-song-cover {
    width: 60px;
    height: 60px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    overflow: hidden;
}

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

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

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

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

.player-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.player-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
}

.control-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

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

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

.control-btn-main {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.control-btn-main:hover {
    background: var(--accent-hover);
}

.progress-container {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.time-current,
.time-total {
    font-size: 11px;
    color: var(--text-secondary);
    min-width: 35px;
}

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

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

.progress-slider {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 4px;
    transform: translateY(-50%);
    opacity: 0;
    cursor: pointer;
    -webkit-appearance: none;
}

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

.player-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    width: 280px;
    justify-content: flex-end;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

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

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

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

/* ========== 全屏播放页面 ========== */
.fullscreen-player {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    z-index: 1000;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.fullscreen-player.active {
    display: flex;
}

.fullscreen-header {
    padding: var(--spacing-lg);
    display: flex;
    justify-content: flex-start;
}

.btn-close-fullscreen {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-lg);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 14px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-close-fullscreen:hover {
    background: var(--bg-secondary);
    transform: translateY(-1px);
}

.fullscreen-content {
    flex: 1;
    display: flex;
    gap: var(--spacing-xl);
    padding: 0 var(--spacing-xl) var(--spacing-xl);
    overflow: hidden;
}

.fullscreen-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xl);
    max-width: 600px;
    margin: 0 auto;
}

.fullscreen-cover {
    width: 400px;
    height: 400px;
    background: var(--bg-tertiary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 120px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

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

.fullscreen-info {
    text-align: center;
    width: 100%;
}

.fullscreen-title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.fullscreen-artist {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xs);
}

.fullscreen-album {
    font-size: 16px;
    color: var(--text-secondary);
    opacity: 0.8;
}

.fullscreen-controls {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.fullscreen-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-lg);
}

.fs-control-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.2s;
}

.fs-control-btn:hover {
    background: var(--bg-tertiary);
    transform: scale(1.1);
}

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

.fs-control-btn-main {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    transition: all 0.2s;
}

.fs-control-btn-main:hover {
    background: var(--accent-hover);
    transform: scale(1.05);
}

.fullscreen-progress {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.fs-time-current,
.fs-time-total {
    font-size: 13px;
    color: var(--text-secondary);
    min-width: 40px;
}

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

.fs-progress-filled {
    height: 100%;
    background: var(--accent-color);
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s;
}

.fs-progress-slider {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 6px;
    transform: translateY(-50%);
    opacity: 0;
    cursor: pointer;
    -webkit-appearance: none;
}

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

.fullscreen-volume {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-md);
}

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

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

.fullscreen-right {
    width: 450px;
    display: flex;
    flex-direction: column;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.fullscreen-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.fs-tab {
    flex: 1;
    padding: var(--spacing-lg);
    font-size: 14px;
    font-weight: 500;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-primary);
}

.fs-tab:hover {
    background: var(--bg-tertiary);
}

.fs-tab.active {
    color: var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
}

.fullscreen-tab-content {
    flex: 1;
    overflow: hidden;
    background: var(--bg-secondary);
}

.fs-tab-panel {
    height: 100%;
    display: none;
}

.fs-tab-panel.active {
    display: flex;
    flex-direction: column;
}

.fs-lyrics-scroll,
.fs-playlist-scroll {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-lg);
}

.fs-lyrics-scroll .lyrics-line {
    padding: var(--spacing-sm) 0;
    font-size: 16px;
    color: var(--text-secondary);
    transition: all 0.3s;
    text-align: center;
    cursor: pointer;
    border-radius: 4px;
}

.fs-lyrics-scroll .lyrics-line:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.fs-lyrics-scroll .lyrics-line.active {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 500;
    background: var(--bg-tertiary);
}

/* 播放列表侧边栏 */
.playlist-sidebar {
    position: fixed;
    right: -350px;
    top: 0;
    bottom: 70px;
    width: 350px;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border-color);
    transition: right 0.3s;
    z-index: 100;
    display: flex;
    flex-direction: column;
}

.playlist-sidebar.open {
    right: 0;
}

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

.playlist-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.btn-close-playlist {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

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

.playlist-content {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-md);
}

.playlist-item {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-sm);
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

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

.playlist-item.playing {
    background: var(--bg-tertiary);
    color: var(--accent-color);
}

.playlist-item-cover {
    width: 48px;
    height: 48px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    overflow: hidden;
}

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

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

.playlist-item-title {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: var(--spacing-xs);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-primary);
}

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

.playlist-item.playing .playlist-item-title {
    color: var(--accent-color);
}
