/* Base Styles - 基础样式不包含主题颜色 */

/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    scrollbar-width: none;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
}

::-webkit-scrollbar { width: 0; height: 0; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: transparent; }

/* 基础布局 */
.tab-content, #tree { padding: 16px; padding-bottom: 160px; height: 100vh; overflow-y: auto; }
h1 { font-size: 24px; font-weight: 600; margin-bottom: 16px; }

/* 按钮样式 */
button {
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}
button:active { transform: scale(0.98); }

/* 标签导航 */
.tabs-nav { display: flex; border-bottom: 1px solid; transition: all 0.3s ease; }
.tab-btn {
    flex: 1;
    padding: 14px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}
.tab-btn.active { border-bottom-color: var(--text-primary); }

/* 本地文件卡片 */
.local-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}
.local-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}
.local-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 24px;
}
.local-card-body { flex: 1; min-width: 0; }
.local-card-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.local-card-meta {
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 面包屑导航 */
.local-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    margin-bottom: 16px;
    border-radius: 8px;
    font-size: 13px;
}
.breadcrumb-home, .breadcrumb-item {
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

/* 播放列表 */
.playlist-empty { padding: 40px; text-align: center; }
.playlist-track-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    border: 1px solid;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}
.playlist-track-item.current-playing { border-left: 3px solid; }

.track-cover {
    width: 70px;
    height: 70px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.playlist-track-item.current-playing .track-cover {
    width: 300px;
    height: 300px;
    border-radius: 12px;
}

.track-cover img { width: 100%; height: 100%; object-fit: cover; }
.track-cover-placeholder { display: none; }

/* 序列号 */
.track-seq {
    position: absolute;
    right: 12px;
    bottom: 12px;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 6px;
    line-height: 1.2;
}

/* 左侧：图片 + 类型 */
.track-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.track-type { 
    font-size: 11px; 
    text-align: center;
    max-width: 80px;
}

/* 中间：标题 + 信息 */
.track-info { 
    flex: 1; 
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.track-title {
    font-size: 16px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.playlist-track-item:not(.current-playing) .track-title {
    max-width: 200px;
}

.track-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.track-playlist-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100px;
}

.track-progress { 
    font-size: 11px;
    white-space: nowrap;
}

/* 当前播放歌曲的标题允许多行显示 */
.playlist-track-item.current-playing .track-title {
    font-size: 22px;
    white-space: normal;
    word-break: break-word;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    max-height: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-menu-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 50%;
    flex-shrink: 0;
}

/* 底部导航栏 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    border-top: 1px solid;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 8px;
    z-index: 99;
    transition: background-color 0.3s ease;
}
.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}
.nav-icon { font-size: 24px; }
.nav-label { font-size: 10px; font-weight: 500; }

/* 播放条 */
#playerBar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    z-index: 20;
    border-top: 1px solid;
}
#playerBar.footer-collapsed { opacity: 0; pointer-events: none; }
#playerBar.footer-expanded { opacity: 1; pointer-events: auto; }
.footer-content { display: flex; flex-direction: column; gap: 8px; }

#playerProgress {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    cursor: pointer;
}
#playerProgressFill { height: 100%; width: 0%; transition: width 0.1s; }

/* 歌单管理模态框 */
.playlists-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.playlists-modal-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.playlists-modal-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-bottom: 1px solid;
    flex-shrink: 0;
}

.playlists-modal-header h2 {
    flex: 1;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.playlists-back-btn,
.playlists-add-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

.playlists-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    padding-bottom: 80px;
}

/* 歌单列表样式 */
.playlist-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid;
    border-radius: 12px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.playlist-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.playlist-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.playlist-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.default-badge {
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 12px;
    border: 1px solid;
}

.playlist-count {
    font-size: 13px;
}

.playlist-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.playlist-action-btn {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.playlists-empty {
    padding: 40px 24px;
    text-align: center;
    border: 1px dashed;
    border-radius: 14px;
}

.playlists-empty-icon {
    font-size: 42px;
    margin-bottom: 10px;
}

.playlists-empty-text {
    font-size: 16px;
    font-weight: 600;
}

/* 通用模态框样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s ease;
}

.modal-content {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s ease;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    border-bottom: 1px solid;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.modal-close, .ranking-modal-close, .history-modal-close, .local-songs-modal-close {
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    font-size: 20px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-body, .ranking-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    padding-bottom: 80px;
    transition: all 0.3s ease;
}

/* 排行榜标签页 */
.ranking-tabs {
    display: flex;
    gap: 8px;
    padding: 16px;
    border-bottom: 1px solid;
    flex-shrink: 0;
    transition: border-color 0.3s ease;
}

.ranking-tab {
    flex: 1;
    padding: 10px;
    background: transparent;
    border: 1px solid;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.ranking-tab.active {
    font-weight: 600;
}

/* 搜索模态框 */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
}

.search-modal-overlay {
    display: none;
}

.search-modal-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.search-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid;
    flex-shrink: 0;
}

.search-modal-back {
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    font-size: 20px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
}

.search-modal-input {
    flex: 1;
    border: 1px solid;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 15px;
}

.search-modal-input:focus {
    outline: none;
}

.search-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    padding-bottom: 80px;
}

.search-tabs {
    position: sticky;
    top: 0;
    padding: 12px 16px;
    border-bottom: 1px solid;
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    width: 100%;
    box-sizing: border-box;
}

.search-tab {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    min-width: 0;
}

.search-tab.active {
    font-weight: 600;
}

.search-tab-panels { width: 100%; }

.search-results-panel {
    padding: 12px 16px;
    display: none;
    flex-direction: column;
    gap: 8px;
}

.search-results-panel.active {
    display: flex;
}

.search-empty {
    padding: 32px 12px;
    text-align: center;
}

.search-result-item.playlist-track-item {
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-modal-history {
    padding: 16px;
    border-bottom: 1px solid;
}

.search-modal-history-actions {
    display: flex;
    justify-content: center;
    padding: 16px;
    border-top: 1px solid;
}

.search-modal-history-clear {
    padding: 10px 16px;
    background: transparent;
    border: 1px solid;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-modal-history-clear svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
}

.search-modal-history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.search-history-header {
    font-size: 13px;
    font-weight: 600;
    padding: 12px 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.search-history-count {
    font-size: 12px;
    font-weight: 400;
}

.search-history-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.search-history-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.search-history-icon {
    font-size: 14px;
    flex-shrink: 0;
    opacity: 0.6;
}

.search-history-text {
    flex: 1;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.search-history-delete {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 300;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.search-history-delete:hover {
    opacity: 1;
    transform: scale(1.1);
}

.search-empty-state {
    padding: 60px 20px;
    text-align: center;
}

.search-empty-icon {
    font-size: 56px;
    display: block;
    margin-bottom: 16px;
    opacity: 0.6;
}

.search-empty-text {
    font-size: 14px;
    margin: 0;
}

.search-placeholder {
    padding: 60px 20px;
    text-align: center;
}

.search-placeholder-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
}

/* 历史记录模态框 */
.history-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
}

.history-modal-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.history-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    border-bottom: 1px solid;
    flex-shrink: 0;
}

.history-modal-header h3 {
    flex: 1;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.history-modal-list {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    padding-bottom: 80px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* YouTube搜索结果 */
.youtube-search-results, .youtube-search-modal {
}

.youtube-search-modal-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.youtube-search-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    border-bottom: 1px solid;
}

.youtube-search-modal-header h3 {
    flex: 1;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.youtube-search-modal-close {
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    font-size: 20px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
}

.youtube-search-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    padding-bottom: 80px;
}

.youtube-search-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.youtube-search-list, .youtube-search-modal-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* 播放列表区域 */
.play-list-section {
    padding: 0;
}

.play-list-header {
    padding: 16px;
    margin-bottom: 0;
    border-bottom: 1px solid;
}

.play-list-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.play-list-container {
    padding: 16px;
}

/* Mini Player */
.mini-player {
    position: fixed;
    bottom: 64px;
    left: 0;
    right: 0;
    border-top: 1px solid;
    border-bottom: 1px solid;
    z-index: 50;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.mini-player-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
}

.mini-player-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.mini-player-cover {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.mini-player-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mini-player-cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.mini-player-text {
    flex: 1;
    min-width: 0;
}

.mini-player-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mini-player-artist {
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mini-player-subtitle {
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    overflow: hidden;
}

.mini-player-separator {
    opacity: 0.5;
    margin: 0 2px;
}

.mini-player-playlist {
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
}

.mini-player-controls {
    display: flex;
    gap: 12px;
}

.mini-control-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.mini-control-btn:hover {
    box-shadow: 0 4px 12px rgba(74, 158, 255, 0.2);
    transform: scale(1.05);
}

.mini-control-btn:active {
    transform: scale(0.95);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.mini-player-progress {
    height: 2px;
}

.mini-player-progress-fill {
    height: 100%;
    width: 0%;
    transition: width 0.1s;
}

/* Full Screen Player */
.full-player {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    overflow-y: auto;
    display: none;
    transition: background 0.3s ease;
}

.full-player-content {
    width: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0;
}

.full-player-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    flex-shrink: 0;
}

.full-player-back {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.full-player-back:active {
    transform: translateY(4px);
}

.full-player-artwork {
    padding: 20px 20px 30px;
    display: flex;
    justify-content: center;
    flex-shrink: 0;
}

.full-player-artwork-container {
    width: min(480px, 95vw);
    height: min(480px, 95vw);
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 16px 64px rgba(0, 0, 0, 0.8), 0 0 80px rgba(74, 158, 255, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.full-player-artwork-container:hover {
    transform: scale(1.03);
    box-shadow: 0 16px 72px rgba(0, 0, 0, 0.9), 0 0 100px rgba(74, 158, 255, 0.2);
}

.full-player-artwork-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: high-quality;
    filter: brightness(1) contrast(1.05) saturate(1.1);
    transition: filter 0.2s ease;
    will-change: filter;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

.full-player-artwork-container:hover img {
    filter: brightness(1.08) contrast(1.1) saturate(1.15);
}

.full-player-artwork-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 96px;
    opacity: 0.3;
}

.full-player-info {
    padding: 24px 20px 16px;
    text-align: center;
}

.full-player-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.full-player-artist {
    font-size: 16px;
    margin-bottom: 12px;
}

.full-player-playlist {
    font-size: 13px;
    opacity: 0.75;
}

.full-player-progress-section {
    padding: 16px 20px;
}

.full-player-progress-bar {
    height: 5px;
    border-radius: 3px;
    position: relative;
    cursor: pointer;
    margin-bottom: 10px;
    transition: height 0.2s ease;
}

.full-player-progress-bar:hover {
    height: 6px;
}

.full-player-progress-bar.dragging {
    height: 6px;
}

.full-player-progress-bar.dragging .full-player-progress-thumb {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
}

.full-player-progress-fill {
    height: 100%;
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear;
    pointer-events: none;
}

.full-player-progress-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: left 0.1s linear, opacity 0.2s ease;
}

.full-player-progress-bar:hover .full-player-progress-thumb {
    opacity: 1;
}

.full-player-time {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 500;
}

.full-player-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 24px 20px;
}

.full-player-control-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 12px;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.full-player-control-btn:hover {
    transform: scale(1.1);
}

.full-player-control-btn:active {
    transform: scale(0.95);
}

.full-player-play-pause {
    width: 72px;
    height: 72px;
}

.full-player-volume {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 24px 24px;
    max-width: 400px;
    margin: 0 auto;
}

.full-player-volume svg {
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.full-player-volume:hover svg {
    opacity: 1;
}

.full-player-volume-slider {
    flex: 1;
}

.full-player-volume-slider input[type="range"] {
    width: 100%;
    height: 5px;
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.full-player-volume-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
}

.full-player-volume-slider input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* Now Playing Modal */
.now-playing-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
}

.now-playing-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.now-playing-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid;
    flex-shrink: 0;
}

.now-playing-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.now-playing-close {
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
}

.now-playing-menu-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    font-size: 20px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
}

.now-playing-body {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 80px;
}

/* Footer控制栏 */
.footer-expand-btn {
    background: transparent;
    border: none;
    cursor: pointer;
}

.footer-controls-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.footer-controls-left, .footer-controls-right {
    display: flex;
    gap: 8px;
}

.control-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    background: transparent;
    border: 1px solid;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.control-btn.loop-active {
    border-color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
    opacity: 1;
}

.control-btn.loop-active:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--text-primary);
}

.play-pause-large {
    width: 56px;
    height: 56px;
    font-size: 20px;
    border-color: var(--text-primary);
}

/* 音量弹出框 */
.volume-popup {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 48px;
    height: 160px;
    border: 1px solid;
    border-radius: 24px;
    padding: 12px;
    z-index: 100;
}

.volume-slider-track {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    position: relative;
    cursor: pointer;
}

.volume-slider-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    border-radius: 12px;
    transition: height 0.1s;
}

.volume-slider-thumb {
    position: absolute;
    left: 50%;
    bottom: 50%;
    transform: translate(-50%, 50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    pointer-events: none;
}

/* 排行榜项目样式 */
.ranking-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.ranking-rank {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    flex-shrink: 0;
}

.ranking-number {
    font-size: 14px;
    font-weight: 700;
}

.ranking-thumbnail {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    transition: all 0.2s ease;
}

.ranking-item:nth-child(1) .ranking-thumbnail {
    width: 64px;
    height: 64px;
}

.ranking-item:nth-child(2) .ranking-thumbnail {
    width: 58px;
    height: 58px;
}

.ranking-item:nth-child(3) .ranking-thumbnail {
    width: 54px;
    height: 54px;
}

.ranking-thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ranking-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ranking-title {
    font-size: 14px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
}

.ranking-count {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ranking-count::before {
    content: '';
}

.ranking-play {
    flex-shrink: 0;
}

.ranking-play-btn {
    padding: 6px 14px;
    background: transparent;
    border: 1.5px solid;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
    white-space: nowrap;
}

.ranking-play-btn:active {
    transform: scale(0.95);
}

.ranking-empty {
    padding: 60px 20px;
    text-align: center;
}

.ranking-empty-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
    opacity: 0.6;
}

.ranking-empty-text {
    font-size: 14px;
}

/* 循环模式按钮的active状态 */
#nowPlayingRepeatBtn.loop-active,
#fullPlayerRepeat.loop-active {
    color: var(--accent-color);
    opacity: 1;
}

#nowPlayingRepeatBtn.loop-active svg path,
#fullPlayerRepeat.loop-active svg path {
    fill: var(--accent-color);
}

.local-empty { padding: 40px; text-align: center; }
