/* style.css - 深色主题 + 圆形播放按钮（增大+呼吸） 已移除多余黑色背景 */
:root {
    --bg: #0d0d0f;
    --surface: #1a1a1f;
    --primary: #4f8fff;
    --text: #e8e8ec;
    --text-secondary: #b6b6c9;
    --border: #2a2a35;
    --radius: 14px;
    --file-bg: #16213e;
}
* { margin:0; padding:0; box-sizing:border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', sans-serif;
    background: var(--bg); color: var(--text);
    min-height: 100vh; padding: 8px 14px 40px;
    -webkit-tap-highlight-color: transparent;
    position: relative; overflow-x: hidden;
}
.tech-bg { position: fixed; top:0; left:0; right:0; bottom:0; pointer-events: none; z-index: -1; }
.tech-bg .grid { position: absolute; width:100%; height:100%; background-image: linear-gradient(rgba(79,143,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(79,143,255,0.04) 1px, transparent 1px); background-size: 40px 40px; }
.tech-bg .glow-static { position: absolute; width:100%; height:100%; background: radial-gradient(ellipse at 20% 30%, rgba(79,143,255,0.06) 0%, transparent 50%), radial-gradient(ellipse at 80% 70%, rgba(120,80,255,0.04) 0%, transparent 50%), radial-gradient(ellipse at 50% 50%, rgba(79,143,255,0.03) 0%, transparent 60%); }
.tech-bg .vignette { position: absolute; width:100%; height:100%; background: radial-gradient(ellipse at center, transparent 60%, rgba(0,0,0,0.4) 100%); }
.tech-bg .corner { position: absolute; width:120px; height:120px; border-radius:50%; filter: blur(40px); opacity:0.15; }
.tech-bg .corner.top-left { top:-40px; left:-40px; background:var(--primary); }
.tech-bg .corner.bottom-right { bottom:-40px; right:-40px; background:#6c5ce7; }
.app-container {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
@media (min-width: 1400px) {
    .app-container { max-width: 1000px; }
}

/* ===== 头部 ===== */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 0 12px 0 !important;
    flex-wrap: wrap;
    gap: 12px;
    background: transparent;
}
.logo {
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
}
.logo img {
    height: 48px;
    width: auto;
    vertical-align: middle;
    margin-right: 0px;
}
.avatar-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--primary);
    flex-shrink: 0;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 0 6px rgba(79,143,255,0.3);
}
.avatar-link:hover {
    border-color: #ffffff;
    box-shadow: 0 0 12px rgba(79,143,255,0.6);
}
.avatar-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* ===== 播放器面板 ===== */
.player-panel {
    background: var(--surface);
    border-radius: 10px;
    border: 2px solid var(--border);
    margin-bottom: 8px;
    overflow: hidden;
    position: relative;
    transition: border-color 0.6s ease, box-shadow 0.6s ease;
}

.player-panel.playing {
    border-color: #3d70c8;
    animation: pulseGlow 2s ease-in-out infinite;
}

.player-panel:not(.playing) {
    animation: none;
    border-color: var(--border);
    box-shadow: none;
}

@keyframes pulseGlow {
    0% {
        border-color: rgba(79, 143, 255, 0.2);
        box-shadow: 0 0 10px rgba(79, 143, 255, 0.04);
    }
    50% {
        border-color: rgba(61, 117, 214, 0.6);
        box-shadow: 0 0 40px rgba(79, 143, 255, 0.2), 0 0 80px rgba(79, 143, 255, 0.1);
    }
    100% {
        border-color: rgba(79, 143, 255, 0.2);
        box-shadow: 0 0 10px rgba(79, 143, 255, 0.04);
    }
}

.player-wrapper { position:relative; background:#000; min-height:160px; display:flex; align-items:center; justify-content:center; }

.nav-arrow {
    position: absolute; top: 25%; transform: translateY(-50%);
    font-size: 2.2rem; font-weight: bold; color: rgba(255,255,255,0.5);
    cursor: pointer; z-index: 10; opacity: 0;
    transition: opacity 0.3s, color 0.2s; user-select: none;
    -webkit-tap-highlight-color: transparent; line-height: 1;
}
.player-wrapper:hover .nav-arrow,
.player-wrapper.touch-active .nav-arrow { opacity: 1; }
.nav-arrow:hover { color: #fff; }
.nav-arrow.prev { left: 6px; }
.nav-arrow.next { right: 6px; }

.player-wrapper video, .player-wrapper audio { width:100%; display:block; background:#000; }
.player-wrapper video {object-fit: contain; }
.player-wrapper.audio-mode {
    background: linear-gradient(160deg, #1a1a2e 0%, #16213e 100%);
    min-height: 160px;
    display: block;
    padding: 10px;
}

/* ===== 呼吸按钮 ===== */
.start-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: transparent !important;
    backdrop-filter: none !important;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    transition: none;
    box-shadow: none;
}
.start-play-btn img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 16px;
    animation: breatheImage 2s ease-in-out infinite;
    filter: drop-shadow(0 0 8px var(--glow-color, rgba(79, 143, 255, 0.8)));
    transition: filter 0.3s ease;
    --glow-color: #ffaa00;
}
.start-play-btn:hover img {
    animation: none;
    filter: drop-shadow(0 0 16px var(--glow-color, rgba(79, 143, 255, 1)));
}
.start-play-btn:hover {
    background: rgba(79,143,255,0.6);
    transform: translate(-50%, -50%) scale(1.05);
    animation: none;
}
.start-play-btn.hide { display: none; }

@keyframes breatheImage {
    0% { transform: scale(1); filter: drop-shadow(0 0 3px var(--glow-color, rgba(79, 143, 255, 0.6))); }
    50% { transform: scale(1.1); filter: drop-shadow(0 0 12px var(--glow-color, rgba(79, 143, 255, 1))); }
    100% { transform: scale(1); filter: drop-shadow(0 0 3px var(--glow-color, rgba(79, 143, 255, 0.6))); }
}
@keyframes breathe {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.9; }
    50% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 0.9; }
}

/* ===== 侧边文字 ===== */
.side-text {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    font-weight: bold;
    z-index: 15;
    white-space: nowrap;
    pointer-events: none;
    
    /* 霓虹蓝渐变 */
    background: linear-gradient(135deg, #60a5fa, #3b82f6, #1d4ed8);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 20px rgba(79, 143, 255, 0.25));
    animation: shimmerBlue 2s ease-in-out infinite;
}

@keyframes shimmerBlue {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.side-left { right: calc(50% + 70px); }
.side-right { left: calc(50% + 70px); }
.side-text.hide { display: none; }

/* ===== 现在播放栏 ===== */
.now-playing {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 10px;
    background: var(--surface);
    border-top: 1px solid var(--border);
    justify-content: space-between;
}
.locate-wrapper {
    display: none;
    flex-shrink: 0;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.locate-wrapper svg { width: 18px; height: 18px; }
.locate-wrapper.visible { display: flex; }
.locate-wrapper .radar-dot { animation: radar-pulse 1.2s ease-out infinite; transform-origin: center; }
@keyframes radar-pulse { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(2.5); opacity: 0; } }

.np-title {
    flex: 1;
    min-width: 0;
    font-weight: 600;
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    transition: color 0.2s;
}
.np-title:hover {
    color: var(--primary);
    text-decoration: underline;
}

.np-title.waiting {
    flex: 0 0 auto;
    background: rgba(255, 165, 0, 0.15);
    padding: 4px 12px;
    border-radius: 24px;
    border: 1.5px solid rgba(255, 165, 0, 0.35);
    color: #ffa500;
    font-weight: 700;
    animation: pulseText 2s ease-in-out infinite;
    text-shadow: 0 0 12px rgba(255, 165, 0, 0.15);
}

@keyframes pulseText {
    0% { opacity: 0.7; transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 165, 0, 0); }
    50% { opacity: 1; transform: scale(1.02); box-shadow: 0 0 20px rgba(255, 165, 0, 0.15); }
    100% { opacity: 0.7; transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 165, 0, 0); }
}

.ctrl-btn {
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
    transition: 0.2s;
    flex-shrink: 0;
    min-width: 28px;
    width: 28px;
    height: 28px;
    line-height: 0.9;
}
.ctrl-btn.visible { display: inline-flex; }
.ctrl-btn.play-mode-btn,
.ctrl-btn.np-download-btn { font-size: 1.2rem; }
.ctrl-btn.play-mode-btn { margin-left: auto; }

/* ===== 列表头部 ===== */
.list-header {
    position: sticky;
    top: 0;
    background: rgba(18, 25, 40, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 6px 14px 8px 14px;
    z-index: 100;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}
.list-header-row1 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}
.list-title {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    background: rgba(79,143,255,0.08);
    padding: 5px 8px;
    border-radius: 24px;
    transition: background 0.2s;
    white-space: nowrap;
    border: 2px solid #003576;
}
.list-title:hover { background: rgba(79,143,255,0.2); }
.list-title .collapse-all-sign {
    font-size: 18px;
    font-weight: bold;
    width: 24px;
    text-align: center;
    color: var(--primary);
}
.list-title .title-text { font-size: 1rem; font-weight: 600; }
.list-title .file-count { font-size: 0.9rem; font-weight: 700; margin-left: 2px; }

.filter-btns { display: flex; gap: 10px; flex-shrink: 0; }
.filter-btn {
    padding: 5px 8px;
    font-size: 0.8rem;
    border-radius: 16px;
    border: 2px solid #003576;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    white-space: nowrap;
    transition: 0.2s;
}
.filter-btn.active {
    background: #ffa500;
    color: #1e1e2f;
    border-color: #ffa500;
    animation: breatheButtonOrange 1.2s ease-in-out infinite;
}
#categoryFilterBtn.active {
    background: #ffa500;
    color: #1e1e2f;
    border-color: #ffa500;
    animation: breatheButtonRed 1.2s ease-in-out infinite;
}
.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(79,143,255,0.1);
}

@keyframes breatheButtonOrange {
    0% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7); }
    50% { box-shadow: 0 0 0 4px rgba(255, 0, 0, 0.4); }
    100% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0); }
}
@keyframes breatheButtonRed {
    0% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7); }
    50% { box-shadow: 0 0 0 4px rgba(255, 0, 0, 0.4); }
    100% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0); }
}

.list-header-row2 { 
    width: 100%; 
    margin-top: 0; 
    position: relative;  /* ⭐ 新增 */
}

/* ⭐ 搜索框放大镜图标 */
.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 1);
    font-size: 16px;
    pointer-events: none;
    transition: color 0.3s ease;
    z-index: 2;
}

/* ⭐ 搜索框 - 样式D */
#searchInput {
    width: 100%;
    padding: 7px 16px 7px 44px;
    background: #0d0d0f;
    border: 1.2px solid #7a7a87;
    border-radius: 24px;
    color: var(--text);
    font-size: 0.85rem;
    outline: none;
    transition: all 0.3s ease;
}
#searchInput::placeholder {
    color: rgba(255, 255, 255, 0.25);
}
#searchInput:focus {
    border-color: #4f8fff;
    background: #1e1e2a;
    box-shadow: 0 0 0 3px rgba(79, 143, 255, 0.1);
}
#searchInput:focus ~ .search-icon,
#searchInput:focus + .search-icon {
    color: #4f8fff;
}

/* ⭐ 清除按钮位置微调 */
#searchClearBtn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 2;
}
#searchClearBtn:hover {
    background: rgba(255,255,255,0.1);
    color: var(--text);
}

/* ===== 分类 ===== */
.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    margin-top: 6px;
    border-radius: 10px;
    user-select: none;
    gap: 8px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    /* ⭐ 修改：固定值，紧贴搜索框 */
    position: sticky;
    z-index: 10;
    background: rgba(18, 25, 40, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.category-header:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.category-header .category-sort-toggle {
    flex-shrink: 0;
    padding: 4px 8px;
    font-size: 0.8rem;
    border-radius: 12px;
    border: 1px solid #a9c9f0;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    white-space: nowrap;
    transition: 0.2s;
}
.category-header .category-sort-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(79,143,255,0.1);
}
.category-header .cat-group {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    padding: 0 8px;
    transition: opacity 0.2s;
}
.category-header .cat-group:hover { opacity: 0.8; }
.category-header .folder-icon {
    font-size: 1.2rem;
    line-height: 1;
    font-weight: normal;
    color: var(--text-secondary);
}
.category-header .cat-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: #c0c8e0;
    white-space: nowrap;
}
.category-header .sort-btns {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}
.sort-btns .btn {
    padding: 4px 6px;
    font-size: 1.1rem;
    min-width: 28px;
    background: transparent;
    border: 1px solid #a9c9f0;
    color: var(--text-secondary);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
    line-height: 1;
    transition: 0.2s;
}
.sort-btns .btn:hover {
    background: rgba(79,143,255,0.2);
    color: var(--primary);
    border-color: var(--primary);
}

/* ===== 文件列表 ===== */
.file-list { margin-top:6px; }
.file-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    background: var(--file-bg);
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: 0.2s;
    margin-bottom: 4px;
    max-width: 100%;
    overflow: hidden;
}

/* ===== 排序按钮三种模式颜色 ===== */
.category-sort-toggle.mode-default {
    background: transparent;
    color: var(--text-secondary);
    border-color: #a9c9f0;
}
.category-sort-toggle.mode-default:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(79,143,255,0.1);
}

/* 名字排序 - 橙色 */
.category-sort-toggle.mode-name {
    background: rgba(255, 165, 0, 0.2);
    color: #ffa500;
    border-color: rgba(255, 165, 0, 0.4);
}
.category-sort-toggle.mode-name:hover {
    background: rgba(255, 165, 0, 0.35);
    color: #ffb833;
    border-color: rgba(255, 165, 0, 0.6);
}

/* 歌手排序 - 深紫色 */
.category-sort-toggle.mode-singer {
    background: rgba(128, 180, 255, 0.2);
    color: #5ed0ff;
    border-color: #69b1ff;
}
.category-sort-toggle.mode-singer:hover {
    background: rgba(128, 180, 255, 0.35);
    color: #7ddbff;
    border-color: #7dbfff;
}

.file-item:hover { background:#1c2b45; border-color:var(--border); }
.file-item.active { border-color:var(--primary); box-shadow:0 0 15px rgba(79,143,255,0.3); background:#1e2f4a; }
.file-item.locate-flash { border-color: #ffb347 !important; box-shadow: 0 0 20px rgba(255,179,71,0.5) !important; }
.file-item .fi-icon { font-size:1rem; flex-shrink:0; }
@keyframes pulse-icon { 0%{transform:scale(1);} 50%{transform:scale(1.25);} 100%{transform:scale(1);} }
.file-item.active .fi-icon { animation: pulse-icon 0.6s ease-in-out infinite; }
.file-item .fi-info { flex: 1; min-width: 0; overflow: hidden; display: flex; align-items: center; }
.file-item .fi-name { font-weight:600; font-size:0.85rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.file-item .source-icon { font-size: 0.85rem; flex-shrink: 0; opacity: 0.8; }

.fav-btn {
    font-size: 1rem;
    cursor: pointer;
    flex-shrink: 0;
    margin-left: 12px;
    color: #aaa;
    transition: 0.1s;
    line-height: 1;
}
.fav-btn.faved { color: #ff5a5f; }

/* ===== Toast ===== */
.toast {
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: rgba(42, 42, 56, 0.95);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 12px 24px;
    border-radius: 40px;
    z-index: 999999;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
    font-size: 0.85rem;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.alert-toast {
    background: #ff9800;
    color: #1e1e2f;
    font-weight: bold;
    box-shadow: 0 0 12px rgba(255,152,0,0.8);
    animation: toastFlash 0.4s ease-in-out 2;
}
@keyframes toastFlash {
    0% { opacity: 0.9; transform: translateX(-50%) scale(1); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.05); background: #ffc107; }
    100% { opacity: 0.9; transform: translateX(-50%) scale(1); }
}

/* ===== 返回顶部 ===== */
.back-to-top {
    position: fixed; bottom: 80px; right: 20px; width: 44px; height: 44px; border-radius: 50%;
    background: rgba(79,143,255,0.3); backdrop-filter: blur(8px); border: 1px solid rgba(79,143,255,0.5);
    color: #fff; font-size: 1.2rem; display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 998; opacity: 0; transition: opacity 0.3s; user-select: none;
}
.back-to-top.show { opacity: 1; }

/* ===== 滑动提示 ===== */
.swipe-hint {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.7); color: #fff; padding: 10px 20px; border-radius: 20px;
    font-size: 0.85rem; white-space: nowrap; z-index: 25; pointer-events: none;
    opacity: 0; transition: opacity 0.4s;
}
.swipe-hint.show { opacity: 1; }

/* ===== 分类筛选面板 ===== */
.category-panel {
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    min-width: 200px;
    max-width: 90vw;
    background: rgba(26, 26, 31, 0.98);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    padding: 12px;
    z-index: 200;
    margin-top: 8px;
}
.category-panel .category-buttons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    max-height: 280px;
    overflow-y: auto;
    margin-bottom: 16px;
}
.category-panel .category-btn {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 40px;
    padding: 6px 4px;
    font-size: 0.8rem;
    color: var(--text);
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.category-panel .category-btn.selected {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(79, 143, 255, 0.3);
}
.category-panel .panel-buttons {
    display: flex;
    gap: 22px;
    justify-content: flex-end;
    border-top: 1px solid var(--border);
    padding-top: 12px;
}
.category-panel .panel-buttons .btn {
    background: #ffa500;
    color: #1e1e2f;
    border: none;
    padding: 8px 14px;
    font-size: 1.2rem;
    border-radius: 6px;
    cursor: pointer;
}
.category-panel .panel-buttons .btn:hover {
    background: #e69500;
}

/* ===== 悬浮气泡 ===== */
.category-hint-bubble {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff8c42;
    color: #1e1e2a;
    font-size: 0.75rem;
    padding: 6px 16px;
    border-radius: 24px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,140,66,0.5);
    backdrop-filter: blur(4px);
    z-index: 100;
    animation: breatheHint 1.5s ease-in-out infinite;
    pointer-events: none;
    font-weight: normal;
    letter-spacing: 0.5px;
}
.category-hint-bubble::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #ff8c42;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.2));
}
.category-hint-bubble::after {
    content: '';
    position: absolute;
    bottom: -7px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid rgba(255,140,66,0.5);
    z-index: -1;
}
@keyframes breatheHint {
    0% { opacity: 0.8; transform: translateX(-50%) scale(0.96); box-shadow: 0 4px 8px rgba(255,140,66,0.3); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.02); box-shadow: 0 6px 16px rgba(255,140,66,0.6); }
    100% { opacity: 0.8; transform: translateX(-50%) scale(0.96); box-shadow: 0 4px 8px rgba(255,140,66,0.3); }
}

/* ===== 加载更多 ===== */
.load-more-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 8px;
    margin: 4px 0;
    background: rgba(79,143,255,0.2);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--primary);
    cursor: pointer;
    font-size: 0.75rem;
    transition: 0.2s;
}
.load-more-btn:hover {
    background: rgba(79,143,255,0.4);
}
.show-more-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: #ffa500;
    border: 1px solid #ffa500;
    border-radius: 28px;
    color: #1e1e2f;
    font-size: 0.8rem;
    padding: 8px 12px;
    margin: 2px 0 12px 0;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    animation: breatheButtonOrange 1.2s ease-in-out infinite;
}
.show-more-btn:hover {
    background: #e69500;
    border-color: #e69500;
}
.ellipsis-hint {
    text-align: center;
    padding: 2px 0;
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.7rem;
    cursor: default;
    user-select: none;
    pointer-events: none;
}

/* ===== 正在播放高亮 ===== */
.playing-cat .folder-icon,
.playing-cat .cat-text {
    animation: playingCatBreathe 0.8s ease-in-out infinite;
    text-shadow: 0 0 15px rgba(0, 200, 255, 1);
}
@keyframes playingCatBreathe {
    0% { text-shadow: 0 0 5px rgba(0, 200, 255, 0.7); }
    50% { text-shadow: 0 0 20px rgba(0, 200, 255, 1); }
    100% { text-shadow: 0 0 5px rgba(0, 200, 255, 0.7); }
}


.np-title-menu {
    position: fixed;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 16px;
    min-width: 160px;
    width: auto;
    z-index: 1002;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.np-title-menu .menu-tip {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: center;
}
.np-title-menu .button-group {
    display: flex;
    flex-direction: row;
    gap: 12px;
    justify-content: center;
}
.np-title-menu .menu-btn {
    background: #ffa500;
    color: #1e1e2f;
    border: none;
    padding: 8px 14px;
    font-size: 0.9rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}
.np-title-menu .menu-btn:hover {
    background: #e69500;
}
.np-title-menu .menu-btn.btn-unfavorite {
    background: #e74c3c;
}
.np-title-menu .menu-btn.btn-unfavorite:hover {
    background: #c0392b;
}

/* ===== 加载提示 ===== */
.audio-loading-tip {
    user-select: none;
}
.audio-loading-tip[style*="pointer-events: auto"] {
    background: rgba(200, 50, 50, 0.85) !important;
    border: 1px solid #ff6b6b;
}
.audio-loading-tip[style*="pointer-events: auto"]:hover {
    background: rgba(220, 60, 60, 0.95) !important;
    transform: translate(-50%, -50%) scale(1.05);
}
#videoLoadingTip {
    z-index: 9999 !important;
    pointer-events: none;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
}
#videoLoadingTip[style*="cursor: pointer"] {
    pointer-events: auto !important;
}
.audio-loading-tip,
#videoLoadingTip {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 25;
    pointer-events: none;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    transition: opacity 0.3s;
}
#videoLoadingTip {
    z-index: 9999 !important;
    background: rgba(0, 0, 0, 0.8);
}
.audio-loading-tip[style*="pointer-events: auto"],
#videoLoadingTip[style*="cursor: pointer"] {
    background: rgba(200, 50, 50, 0.85) !important;
    border: 1px solid #ff6b6b;
    pointer-events: auto !important;
    cursor: pointer;
}
.audio-loading-tip[style*="pointer-events: auto"]:hover {
    background: rgba(220, 60, 60, 0.95) !important;
    transform: translate(-50%, -50%) scale(1.05);
}

/* ===== 分享按钮 ===== */
.share-btn {
    cursor: pointer;
    font-size: 16px;
    padding: 4px 6px;
    border-radius: 4px;
    transition: all 0.2s;
    opacity: 0.7;
    user-select: none;
    flex-shrink: 0;
    display: inline-block;
    line-height: 1;
}
.share-btn:hover {
    opacity: 1;
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.1);
}
.share-btn:active {
    transform: scale(0.9);
}
.file-item .share-btn,
.file-item .fav-btn {
    flex-shrink: 0;
}

/* ===== 收藏菜单 - 关闭按钮（灰色） ===== */
.menu-btn-close {
    background: #ababab !important;
    color: #1e1e2f !important;
    border: none !important;
}
.menu-btn-close:hover {
    background: #666 !important;
}

/* ===== 分类面板 - 全取消按钮 ===== */
.category-panel .panel-buttons .btn-outline {
    background: #ababab;
    color: #1e1e2f;
    border: none;
    padding: 8px 14px;
    font-size: 1.2rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}
.category-panel .panel-buttons .btn-outline:hover {
    background: #555;
}

/* ===== 精简播放器 ===== */
.mini-player {
    position: sticky;
    top: 0;
    z-index: 101;
    background: rgba(10, 15, 30, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 4px 8px 12px 12px !important;
    display: none;
    align-items: center;
    gap: 10px;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    margin: 0 0 2px 0;
    min-height: 56px;
}
.mini-player.show { display: flex; }
.mini-player .mp-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    pointer-events: auto;
    cursor: pointer;
    border-radius: 0 0 12px 12px;
    overflow: visible;
    z-index: 5;
}
.mini-player .mp-progress:hover { height: 6px; }
.mini-player .mp-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ffa500, #ff6b35);
    border-radius: 0 0 12px 12px;
    position: relative;
    pointer-events: none;
    transition: width 0.05s linear;
}

.mini-player .mp-progress-bar::after {
    content: '';
    position: absolute;
    right: -6px;
    top: -3px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ffa500;
    box-shadow: 0 0 8px rgba(255, 165, 0, 0.3);
    opacity: 0;
    transition: opacity 0.2s;
}
.mini-player .mp-progress:hover .mp-progress-bar::after,
.mini-player .mp-progress.dragging .mp-progress-bar::after { opacity: 1; }
.mini-player .mp-progress.dragging { height: 6px; }

.mini-player .mp-cover {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
}
.mini-player .mp-cover.video { background: rgba(255, 50, 50, 0.15); }
.mini-player .mp-cover.audio { background: rgba(50, 150, 255, 0.12); }

.mini-player .mp-info {
    flex: 1;
    min-width: 0;
    cursor: pointer;
    overflow: hidden;
}
.mini-player .mp-title {
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mini-player .mp-sub {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.35);
    display: flex;
    align-items: center;
    gap: 6px;
}
.mini-player .mp-sub .mp-badge {
    font-size: 8px;
    padding: 1px 6px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    white-space: nowrap;
}
.mini-player .mp-sub .mp-time {
    font-family: monospace;
    font-size: 9px;
    white-space: nowrap;
}

.mini-player .mp-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.mini-player .mp-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 22px;
    cursor: pointer;
    padding: 8px 10px;
    transition: all 0.15s;
    line-height: 1;
    border-radius: 6px;
    min-width: 36px; 
    min-height: 36px; 
}
.mini-player .mp-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}
.mini-player .mp-btn:active { transform: scale(0.85); }
.mini-player .mp-btn-play {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}
.mini-player .mp-btn-play:hover {
    background: transparent;
    transform: scale(1.1);
}
.mini-player .mp-btn-play:active {
    transform: scale(0.92);
}
.mini-player .mp-btn-play img {
    width: 20px;
    height: 20px;
    display: block;
    object-fit: contain;
}

.mini-player .mp-btn-close {
    color: rgba(255, 255, 255, 0.3);
    font-size: 14px;
    padding: 4px 6px;
    margin-left: 8px;
    margin-right: -4px;
}
.mini-player .mp-btn-close:hover {
    color: #ff4444;
    background: rgba(255, 68, 68, 0.1);
}
.mini-player.video-mode {
    background: rgba(0, 0, 0, 0.88);
}

.mini-player.video-mode .mp-cover { background: rgba(255, 50, 50, 0.2); }

.swipe-area {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 52px;
    z-index: 5;
    cursor: default;
    touch-action: none;
    -webkit-touch-callout: none;
    pointer-events: none;
}
.swipe-hint-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 8px 20px;
    border-radius: 24px;
    font-size: 14px;
    z-index: 30;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    white-space: nowrap;
    font-weight: 500;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.swipe-hint-overlay.show { opacity: 1; }

.top-row {
    display: none;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2px;
    position: relative;
    z-index: 6;
    pointer-events: none;
    padding: 0 4px;
}
.top-row * { pointer-events: none; }

.status-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4caf50;
    animation: dotPulse 1.5s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes dotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.7); }
}
.status-text {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.3px;
}

.audio-badge-tag {
    font-size: 11px;
    color: var(--text-secondary);
    padding: 0;
    border-radius: 0;
    letter-spacing: 0.3px;
    flex-shrink: 0;
    white-space: nowrap;
    transition: color 0.4s ease;
    border: none;
    background: transparent;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.mid-row {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2px 0 2px 0;
    position: relative;
    z-index: 6;
    pointer-events: none;
}
.mid-row * { pointer-events: none; }

.nav-arrow-icon {
    font-size: 22px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.2);
    padding: 0 10px;
    flex-shrink: 0;
    user-select: none;
}

.song-info-center {
    flex: 1;
    text-align: center;
    padding: 0 4px;
    min-width: 0;
}
.song-info-center .title {
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.song-info-center .category {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 0px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== 底部行：播放按钮 + 进度条 + 控制按钮 ===== */
.bottom-row {
    display: none;
    flex-direction: column;
    gap: 0px;
    padding-top: 0px;
    position: relative;
    z-index: 10;
}

/* 第一行：播放按钮 + 进度条（同一行） */
.row-top {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.play-btn-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: transparent !important;
    box-shadow: none !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    padding: 0;
    margin: 0;
}

.play-btn-small:hover {
    transform: scale(1.15);
}

.play-btn-small:active {
    transform: scale(0.92);
}

.play-btn-small img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
}

.progress-track {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    transition: height 0.2s;
}
.progress-track:hover { height: 6px; }
.progress-track .fill {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, #ffa500, #ff6b35);
    width: 0%;
    position: relative;
    transition: width 0.1s linear;
}
.progress-track .fill::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: #ffa500;
    border-radius: 50%;
    box-shadow: 0 0 14px rgba(255, 165, 0, 0.3);
    opacity: 1;
    transition: opacity 0.2s;
}
.progress-track:hover .fill::after { opacity: 1; }

.progress-track::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 0;
    right: 0;
    bottom: -6px;
    z-index: 1;
    cursor: pointer;
    border-radius: 4px;
}

/* 第二行：时间 + 切歌 + 收藏分享 */
.row-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-top: 0px;
}

.time-display {
    font-size: 15px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.6px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    flex-shrink: 0;
}

.track-controls {
    display: flex;
    align-items: center;
    gap: 60px;
    flex-shrink: 0;
}

.action-icons {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.icon-btn {
    font-size: 18px;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
    transition: all 0.2s;
    opacity: 0.6;
    line-height: 1;
    user-select: none;
    background: none;
    border: none;
}
.icon-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}
.icon-btn:active {
    transform: scale(0.9);
}
.icon-btn.faved {
    opacity: 1;
    color: #ff5a5f;
}

#prevIconBtn,
#nextIconBtn {
    font-size: 24px;
    opacity: 0.6;
    transition: all 0.2s;
    cursor: pointer;
    padding: 2px 4px;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    background: none;
    border: none;
}
#prevIconBtn:hover,
#nextIconBtn:hover {
    opacity: 1;
    transform: scale(1.1);
}
#prevIconBtn:active,
#nextIconBtn:active {
    transform: scale(0.9);
}

/* 视频模式下隐藏音频界面元素 */
.player-wrapper.video-mode .top-row,
.player-wrapper.video-mode .mid-row,
.player-wrapper.video-mode .bottom-row {
    display: none !important;
}

/* ===== 免责声明 ===== */
.disclaimer-footer {
    margin-top: 24px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    text-align: center;
    font-size: 0.6rem;
    color: var(--text-secondary);
    border-top: 1px solid var(--border);
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================================
   📱 手机端适配 - 统一整合
   ============================================================ */
   @media (max-width: 600px) {
    /* ===== 播放器高度压缩 ===== */
    .player-wrapper.audio-mode {
        min-height: 120px !important;
        padding: 8px 10px 10px 10px !important;
    }
    .top-row {
        margin-bottom: 2px !important;
    }

    .status-text {
        font-size: 10px !important;
    }
    .audio-badge-tag {
        font-size: 10px !important;
        padding: 0 !important;
        border: none !important;
        background: transparent !important;
    }
    .mid-row {
        padding: 2px 0 0px 0 !important;
    }
    .song-info-center .title {
        font-size: 14px !important;
    }
    .song-info-center .category {
        font-size: 10px !important;
    }

    /* ⭐ 底部行 */
    .bottom-row {
        padding-top: 0px !important;
        gap: 0px !important;
    }


    /* ⭐ 第一行：播放按钮 + 进度条 */
    .row-top {
        gap: 6px !important;
        align-items: center !important;
    }

    /* ⭐ 播放按钮 - 删除 translateY，改为 transform: none */
    .play-btn-small {
        width: 28px !important;
        height: 28px !important;
        transform: scale(1) !important;
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
    }

    .play-btn-small:hover {
        transform: scale(1.15) !important;
    }

    .play-btn-small:active {
        transform: scale(0.92) !important;;
    }

    .play-btn-small img {
        width: 20px !important;
        height: 20px !important;
        display: block !important;
    }

    /* ⭐ 进度条 */
    .progress-track {
        height: 3px !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .progress-track::before {
        top: -8px !important;
        bottom: -8px !important;
    }

    /* ⭐ 时间显示 */
    .time-display {
        font-size: 11px !important;
        font-weight: 700 !important;
    }

    /* ⭐ 切歌按钮 */
    .track-controls {
        gap: 40px !important;
    }

    /* ⭐ 收藏/分享 */
    .action-icons {
        gap: 12px !important;
    }

    /* ⭐ 切歌图标 */
    #prevIconBtn,
    #nextIconBtn {
        font-size: 22px !important;
        padding: 2px 3px !important;
    }

    /* ⭐ 收藏/分享图标 */
    .icon-btn {
        font-size: 16px !important;
        padding: 2px 2px !important;
    }

    /* 搜索框 */
 .list-header-row2 #searchInput {
    padding: 5px 12px 5px 36px;  /* 手机端适配 */
    font-size: 0.75rem;
}
.list-header-row2 .search-icon {
    left: 10px;
    font-size: 13px;
}

    /* ----- 呼吸按钮 ----- */
    .start-play-btn { width: 70px; height: 70px; background: transparent !important; backdrop-filter: none !important; }
    .start-play-btn img { width: 80px; height: 80px; }
    
    /* ----- 侧边文字 ----- */
    .side-left { right: calc(50% + 60px); }
    .side-right { left: calc(50% + 60px); }
    .side-text { font-size: 2rem; }
    
    /* ----- 现在播放栏 ----- */
    .now-playing { gap: 4px; padding: 4px 2px; }
    .np-title { font-size: 0.75rem; }
    .ctrl-btn { min-width: 30px; width: 30px; height: 30px; font-size: 0.8rem; }
    .ctrl-btn.play-mode-btn, .ctrl-btn.np-download-btn { font-size: 1rem; }
    .ctrl-btn + .ctrl-btn { margin-left: 4px; }
    
    /* ----- 返回顶部 ----- */
    .back-to-top { bottom: 70px; right: 12px; width: 40px; height: 40px; font-size: 1rem; }
    
    /* ----- 导航箭头 ----- */
    .nav-arrow { font-size: 1.8rem; top:35% !important; }
    .locate-wrapper { width: 22px; height: 32px; }
    .locate-wrapper svg { width: 20px; height: 20px; }
    
    /* ----- 分类 ----- */
    .sort-btns { gap: 6px; }
    .sort-btns .btn { min-width: 26px; font-size: 1.1rem; padding: 2px 3px; }
    .category-sort-toggle { font-size: 0.7rem !important; padding: 2px 6px !important; }
    .cat-text { font-size: 0.75rem; }
    .category-header .cat-group { gap: 4px; }
    .folder-icon { font-size: 1rem; }
    .category-header { padding: 6px 4px; }
    
    /* ----- 列表头部 ----- */
    .list-header { padding: 6px 4px 8px 4px; }
    .list-header-row1 { gap: 4px; }
    .list-title { gap: 2px; padding: 3px 4px; font-size: 0.8rem; border-radius: 14px; }
    .list-title .title-text { font-size: 0.8rem; }
    .list-title .file-count { font-size: 0.8rem; font-weight: 700; margin-left: 0; }
    .list-title .collapse-all-sign { font-size: 16px; width: 18px; }
    
    /* ----- 筛选按钮 ----- */
    .filter-btns { gap: 4px; }
    .filter-btn { padding: 3px 6px; font-size: 0.8rem; border-width: 1.5px; }
    .filter-btn,
    .filter-btn:active,
    .filter-btn:focus,
    .filter-btn:hover {
        background: transparent;
        color: var(--text-secondary);
        border-color: #003576 !important;
        outline: none;
    }
    .filter-btn.active,
    .filter-btn.active:active,
    .filter-btn.active:focus,
    .filter-btn.active:hover {
        background: #ffa500 !important;
        color: #1e1e2f !important;
        border-color: #ffa500 !important;
        animation: breatheButtonOrange 1.2s ease-in-out infinite;
    }
    #categoryFilterBtn.active,
    #categoryFilterBtn.active:active,
    #categoryFilterBtn.active:focus,
    #categoryFilterBtn.active:hover {
        background: #ffa500 !important;
        color: #1e1e2f !important;
        border-color: #ffa500 !important;
        animation: breatheButtonRed 1.2s ease-in-out infinite;
    }
         
    /* ----- 搜索框 ----- */
    #searchInput { padding: 4px 6px; font-size: 0.75rem; }
    #searchClearBtn { right: 6px; width: 30px; height: 30px; }
    
    /* ----- 文件列表 ----- */
    .file-item { padding: 3px 4px; margin-bottom: 3px; border-width: 1.5px; }
    .file-item .fi-icon { font-size: 0.9rem; }
    .file-item .fi-name { font-size: 0.75rem; }
    .file-item .source-icon { font-size: 0.7rem; }
    .fav-btn { font-size: 0.9rem; padding: 6px 8px; margin: -6px -8px; }
    
    /* ----- Toast ----- */
    .toast { top: 15%; padding: 8px 20px; font-size: 0.75rem; white-space: nowrap; }
    
        /* ----- 免责声明 ----- */
    .disclaimer-footer { margin-top: 16px; padding: 8px 12px; font-size: 0.5rem; }
  
    /* ----- 加载提示 ----- */
    .audio-loading-tip,
    #videoLoadingTip { font-size: 16px !important; padding: 8px 16px !important; max-width: 92vw; overflow: hidden; text-overflow: ellipsis; }
}

/* ============================================================
   📱 小屏手机（宽度 < 480px）- 精简播放器
   ============================================================ */
   @media (max-width: 480px) {
    .mini-player {
        padding: 4px 2px 12px 4px;
        gap: 4px;
        border-radius: 0 0 8px 8px;
        min-height: 54px;
    }
    .mini-player .mp-progress { bottom: 0; height: 3px; }
    .mini-player .mp-progress:hover { height: 4px; }
    .mini-player .mp-cover { width: 28px; height: 28px; font-size: 13px; border-radius: 6px; flex-shrink: 0; }
    .mini-player .mp-info { flex: 1; min-width: 0; overflow: hidden; }
    .mini-player .mp-title { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .mini-player .mp-sub { font-size: 8px; gap: 4px; }
    .mini-player .mp-sub .mp-badge { font-size: 7px; padding: 0 4px; white-space: nowrap; }
    .mini-player .mp-sub .mp-time { font-size: 8px; white-space: nowrap; }
    .mini-player .mp-controls { gap: 4; flex-shrink: 0; margin-right: -2px; }
    .mini-player .mp-btn { font-size: 18px; padding: 6px 8px; min-width: 32px; min-height: 32px; }
    .mini-player .mp-btn-play { width: 32px; height: 32px; min-width: 32px; min-height: 32px; }
    .mini-player .mp-btn-play img { width: 16px; height: 16px; }
    .mini-player .mp-controls { gap: 4px; }
    .mini-player .mp-btn-prev,
    .mini-player .mp-btn-next { font-size: 12px; padding: 8px 4px; min-width: 28px; }
    
    /* 音频播放界面压缩 */
    .swipe-area { bottom: 46px; }
    .swipe-hint-overlay { font-size: 12px; padding: 6px 16px; }
    .song-info-center .title { font-size: 15px; }
    .song-info-center .category { font-size: 10px; }
    .nav-arrow-icon { font-size: 18px; padding: 0 6px; }
            
    .bottom-row { gap: 0px !important; padding-top: 0px !important; }
    
    /* ⭐ 修改：删除 transform，改为 transform: none */
    .play-btn-small { 
        width: 28px !important; 
        height: 28px !important; 
        font-size: 12px !important; 
        transform: scale(1) !important;
    }
    
    .time-display { font-size: 11px !important; font-weight: 700 !important; }
    .meta-left { min-width: 40px !important; padding-left: 0 !important; }
    .meta-center .track-controls { gap: 10px !important; }
    .meta-right { min-width: 40px !important; }
    .meta-right .action-icons { gap: 6px !important; }
    #prevIconBtn,
    #nextIconBtn { font-size: 20px !important; padding: 2px 3px !important; }
    .progress-meta .icon-btn { font-size: 14px !important; padding: 2px 2px !important; }
    .status-text { font-size: 10px; }
    .audio-badge-tag { font-size: 9px; padding: 0; border: none; background: transparent; }
}

/* ============================================================
   📱 超小屏手机（宽度 < 380px）
   ============================================================ */
   @media (max-width: 380px) {
    .mini-player {
        padding: 3px 2px 3px 4px;
        gap: 3px;
        min-height: 38px;
    }
    .mini-player .mp-cover { width: 22px; height: 22px; font-size: 10px; }
    .mini-player .mp-title { font-size: 10px; }
    .mini-player .mp-sub { font-size: 7px; gap: 2px; }
    .mini-player .mp-sub .mp-badge { font-size: 6px; padding: 0 3px; }
    .mini-player .mp-sub .mp-time { font-size: 7px; }
    .mini-player .mp-btn { font-size: 16px; padding: 4px 6px; min-width: 28px; min-height: 28px; }
    .mini-player .mp-btn-play { width: 28px; height: 28px; min-width: 28px; min-height: 28px; }
    .mini-player .mp-btn-play img { width: 14px; height: 14px; }
    .mini-player .mp-controls { gap: 2px; }
    .mini-player .mp-btn-prev,
    .mini-player .mp-btn-next { font-size: 10px; padding: 4px 2px; min-width: 22px; }
    
    /* 音频播放界面更紧凑 */
    .swipe-area { bottom: 42px; }
    .song-info-center .title { font-size: 13px; }
    
    /* ⭐ 修改：播放按钮 - 删除 transform: translateY，改为 transform: none */
    .play-btn-small { 
        width: 30px; 
        height: 30px; 
        font-size: 12px;
        transform: scale(1);
    }
    
    .nav-arrow-icon { font-size: 16px; padding: 0 4px; }
    .progress-meta .action-icons .icon-btn { font-size: 12px; padding: 2px 2px; }
    .swipe-hint-overlay { font-size: 11px; padding: 5px 12px; }
    .audio-loading-tip,
    #videoLoadingTip { font-size: 14px !important; padding: 6px 12px !important; max-width: 94vw; }
}

/* ===== 视频模式下箭头与视频控件同步显隐 ===== */
.player-wrapper.video-mode .nav-arrow {
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 10;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 2.2rem;  /* 可选：放大一点更明显 */
}

.player-wrapper.video-mode .nav-arrow.show {
    opacity: 1;
    pointer-events: auto;
}

.player-wrapper.video-mode .nav-arrow.show:hover {
    color: #fff;
}

/* 视频模式下 swipe-area 不拦截任何事件 */
.player-wrapper.video-mode .swipe-area {
    pointer-events: none !important;
    z-index: 0;
}

/* 确保视频可以接收点击事件 */
.player-wrapper.video-mode video {
    pointer-events: auto;
    z-index: 2;
    position: relative;
}

/* ===== 隐藏音频模式下的左右箭头 ===== */
.player-wrapper.audio-mode .nav-arrow {
    display: none !important;
}

/* ===== 播放时金色渐变文字流动 ===== */
.player-wrapper.audio-mode.playing .song-info-center .title {
    font-weight: 700;
    background: linear-gradient(
        90deg,
        #f7971e,
        #ffd200,
        #f7971e,
        #ffd200,
        #f7971e
    );
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: flowGold 5s linear infinite;
    /* ⭐ 文字阴影：向右下偏移的深色阴影 */
    text-shadow: 
       2px 2px 2px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

@keyframes flowGold {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

/* 暂停/停止时恢复普通白色文字 */
.player-wrapper.audio-mode:not(.playing) .song-info-center .title {
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: #fff;
    background-clip: unset;
    animation: none;
    filter: none;
    font-weight: 600;
}

/* 暂停/停止时恢复普通样式 */
.player-wrapper.audio-mode:not(.playing) .song-info-center .title {
    text-shadow: none;
    animation: none;
    color: #fff;
}

/* ===== 播放模式按钮 SVG 图标 ===== */
#playModeBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}
#playModeBtn svg {
    display: block;
    width: 18px;
    height: 18px;
    color: rgba(255, 255, 255, 0.35);
    transition: color 0.3s ease;
}
/* 顺序播放 - 激活时白色 */
#playModeBtn.mode-order.active svg { color: #00A2E9; }
#playModeBtn.mode-order.active { background: rgba(0, 162, 233, 0.15); border-color: rgba(0, 162, 233, 0.25); }
/* 随机播放 - 激活时橙色 */
#playModeBtn.mode-shuffle.active svg { color: #ff9900; }
#playModeBtn.mode-shuffle.active { background: rgba(255, 153, 0, 0.15); border-color: rgba(255, 153, 0, 0.25); }
/* 单曲循环 - 激活时蓝色 */
#playModeBtn.mode-repeat.active svg { color: #d69dfc; }
#playModeBtn.mode-repeat.active { background: rgba(214, 157, 252, 0.15); border-color: rgba(214, 157, 252, 0.25);}
/* ===== 下载按钮 SVG ===== */
#npDownloadBtn { display: inline-flex; align-items: center; justify-content: center; padding: 0 4px; }
#npDownloadBtn svg { display: block; width: 18px; height: 18px; color: #ffffff; transition: color 0.3s ease; }
#npDownloadBtn:hover svg { color: #81c784; }

#npDownloadBtn { display: none !important; }
#npDownloadBtn.visible { display: inline-flex !important; }

.toast.manual-play-toast {
    background: #ff9800 !important;
    color: #1e1e2f !important;
    font-weight: bold;
    box-shadow: 0 0 30px rgba(255,152,0,0.8) !important;
    border: 2px solid #ffcc02 !important;
    animation: toastFlash 0.4s ease-in-out 2;
}

.retry-wrapper {
    pointer-events: none;  /* 让点击穿透到子元素 */
}

.retry-wrapper img {
    object-fit: contain;
    cursor: pointer;
    pointer-events: auto;
    animation: breatheRetry 2s ease-in-out infinite;
    display: block;
}

.retry-wrapper img:hover {
    animation: none;
    transform: scale(1.08);
}

.retry-wrapper img:active {
    transform: scale(0.92);
}

@keyframes breatheRetry {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 8px rgba(255, 170, 0, 0.6));
    }
    50% {
        transform: scale(1.08);
        filter: drop-shadow(0 0 32px rgba(255, 170, 0, 1));
    }
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 8px rgba(255, 170, 0, 0.6));
    }
}

.share-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: transparent !important;
    backdrop-filter: none !important;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 21;
    transition: none;
    box-shadow: none;
}
.share-play-btn img {
    width: 140px;
    height: 140px;
    object-fit: contain;
    border-radius: 16px;
    animation: breatheImage 2s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(255, 170, 0, 0.8));
    transition: filter 0.3s ease;
}
.share-play-btn:hover img {
    animation: none;
    filter: drop-shadow(0 0 20px rgba(255, 170, 0, 1));
}
.share-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.05);
}

@media (max-width: 600px) {
    .share-play-btn { width: 140px !important; height: 140px !important; }
    .share-play-btn img { width: 120px !important; height: 120px !important; }
}

/* ===== 模态框覆盖层 ===== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
}
.modal h2 {
    margin-bottom: 10px;
}
.modal-close {
    float: right;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.4rem;
    cursor: pointer;
}

/* ===== 登录弹窗 ===== */
.login-modal {
    max-width: 380px;
    width: 100%;
    padding: 24px 20px;
}
.login-modal .form-group {
    margin-bottom: 14px;
}
.login-modal .form-group label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}
.login-modal .form-group input {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 0.9rem;
    outline: none;
}
.login-modal .form-group input:focus {
    border-color: var(--primary);
}
.login-modal-error {
    color: #ff5c5c;
    font-size: 0.8rem;
    display: none;
    text-align: center;
    margin: 6px 0;
}
.login-modal-error.show {
    display: block;
}
.login-modal-success {
    color: #4ade80;
    font-size: 0.8rem;
    display: none;
    text-align: center;
    margin: 6px 0;
}
.login-modal-success.show {
    display: block;
}
.login-modal-btn {
    width: 100%;
    padding: 10px;
    border-radius: 20px;
    border: none;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    background: var(--primary);
    color: #fff;
    margin-top: 4px;
    transition: 0.2s;
}
.login-modal-btn:hover {
    opacity: 0.85;
}
.login-modal-btn:active {
    transform: scale(0.98);
}
.login-modal-toggle {
    text-align: center;
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.login-modal-toggle a {
    color: var(--primary);
    cursor: pointer;
    text-decoration: none;
    font-weight: 500;
}
.login-modal-toggle a:hover {
    text-decoration: underline;
}
#loginModal h2 {
    text-align: center;
    margin-bottom: 16px;
    font-size: 1.1rem;
}
#loginModal .modal-close {
    float: right;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.4rem;
    cursor: pointer;
}

/* ===== 修改密码弹窗 ===== */
#changePwdModal .modal {
    max-width: 380px;
}
#changePwdModal h2 {
    text-align: center;
    margin-bottom: 16px;
}
#changePwdModal .btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 10px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: 0.2s;
}
#changePwdModal .btn-outline:hover {
    border-color: var(--text);
    color: var(--text);
}

/* ===== 用户状态（PC端） ===== */
.user-status-header {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: default;
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.2s;
    flex-shrink: 0;
}
.user-status-header:hover {
    background: rgba(255, 255, 255, 0.08);
}
.user-status-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
}
.user-status-text[onclick] {
    cursor: pointer;
}
.user-status-text[onclick]:hover {
    color: var(--primary);
}
.user-status-avatar {
    font-size: 1rem;
    color: var(--text-secondary);
    display: none;
}
.user-status-logged-in {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    padding: 2px 0;
}
.user-status-username {
    font-weight: 700;
    font-size: 0.9rem;
    color: #ffa500;
    margin-bottom: 4px;
}
.user-status-actions {
    display: flex;
    gap: 8px;
    font-size: 0.7rem;
}
.user-status-actions .action-btn {
    cursor: pointer;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.65rem;
    border: 1px solid #3a5675;
    transition: all 0.2s;
}
.user-status-actions .action-pwd {
    color: #009aff;
    background: rgba(255, 255, 255, 0.03);
}
.user-status-actions .action-pwd:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(79, 143, 255, 0.1);
}
.user-status-actions .action-logout {
    color: #ff5c5c;
    border-color: rgba(255, 92, 92, 0.3);
    background: rgba(255, 92, 92, 0.05);
}
.user-status-actions .action-logout:hover {
    border-color: #ff5c5c;
    background: rgba(255, 92, 92, 0.15);
}


/* ===== 手机端用户状态（覆盖PC端） ===== */
@media (max-width: 600px) {
    .user-status-header {
        padding: 4px 4px !important;
        gap: 36px !important;
    }
    .user-status-logged-in {
        padding: 0px 0 !important;
    }
    .user-status-username {
        font-size: 0.75rem !important;
        margin-bottom: 4px !important;
    }
    .user-status-actions {
        gap: 6px !important;
        font-size: 0.6rem !important;
    }
    .user-status-actions .action-btn {
        padding: 3px 10px !important;
        font-size: 0.6rem !important;
        border-radius: 10px !important;
    }
    .user-status-avatar {
        display: none !important;
    }
}

/* ===== LOGO 双文字交替效果 ===== */
.logo-wrapper {
    cursor: pointer;
}

.logo-wrapper .logo-text {
    cursor: pointer;
}

.logo-wrapper {
    position: relative;
    display: inline-block;
    min-width: 120px;
    min-height: 40px;
}

.logo-wrapper .logo-text {
    font-size: inherit;
    font-weight: 600;
    display: inline-block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.5s ease;
    white-space: nowrap;
}

.logo-wrapper .logo-text.hidden {
    opacity: 0;
    pointer-events: none;
}

.logo-wrapper .logo-text.visible {
    opacity: 1;
}

/* 流光彩虹 */
.logo-wrapper .logo-text.flow {
    background: linear-gradient(90deg,
            #ff6b6b, #ffd93d, #6bcb77, #4d96ff, #a855f7, #ff6b6b);
    background-size: 400% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: logoFlow 3s ease-in-out infinite;
}

@keyframes logoFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 400% 50%; }
}

/* 心跳脉动 */
.logo-wrapper .logo-text.heartbeat {
    color: #ff8c42;
    animation: logoHeartBeat 1.8s ease-in-out infinite;
    text-shadow: 0 0 30px rgba(255, 140, 66, 0.3);
}

@keyframes logoHeartBeat {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    14% { transform: translate(-50%, -50%) scale(1.08); }
    28% { transform: translate(-50%, -50%) scale(1); }
    42% { transform: translate(-50%, -50%) scale(1.05); }
    56% { transform: translate(-50%, -50%) scale(1); }
}
/* ============================================================
   ⭐ 歌词切换按钮
   ============================================================ */
.lyrics-toggle-btn {
    font-size: 0.7rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 2px 10px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    transition: all 0.3s ease;
    user-select: none;
    white-space: nowrap;
    pointer-events: auto !important;
    position: relative;
    z-index: 11;
}

.lyrics-toggle-btn[data-has-lyrics="true"] {
    color: #4ade80 !important;
    border-color: rgba(74, 222, 128, 0.3);
}

.lyrics-toggle-btn:hover {
    border-color: rgba(79, 143, 255, 0.3);
    color: var(--text);
}


/* ============================================================
   ⭐ 歌词容器
   ============================================================ */
.lyrics-container {
    width: 100%;
    max-height: 80px;
    overflow: hidden;
    margin-top: 2px;
    animation: lyricsFadeIn 0.3s ease;
    pointer-events: auto !important;
    position: relative;
    z-index: 10;
    /* ⭐ 新增：渐变遮罩容器 */
    mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
}

@keyframes lyricsFadeIn {
    0% { opacity: 0; transform: translateY(-8px); }
    100% { opacity: 1; transform: translateY(0); }
}

.lyrics-scroll {
    max-height: 80px;
    overflow-y: auto;
    scroll-behavior: smooth;
    padding: 10px 0;
}

/* 自定义滚动条 */
.lyrics-scroll::-webkit-scrollbar {
    width: 0px;
}

.lyrics-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.lyrics-scroll::-webkit-scrollbar-thumb {
    background: rgba(79, 143, 255, 0.3);
    border-radius: 4px;
}

/* ============================================================
   ⭐ 歌词内容
   ============================================================ */
.lyrics-content {
    text-align: center;
    padding: 4px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

/* ⭐ 默认状态（未播放） */
.lyrics-content p {
    margin: 0;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1;
    opacity: 0.6;
    padding: 1px 0;
}

/* 已播放的歌词（淡出） */
.lyrics-content p.prev-active {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    opacity: 0.6;
}

/* 同一时间戳的翻译行（更淡，保持正常大小） */
.lyrics-content p.prev-active.same-time-translation {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.8rem;
    opacity: 0.5;
}

/* 当前播放的歌词 - 翻译（蓝色，正常大小） */
.lyrics-content p.active-translation {
    color: #4f8fff;
    font-size: 0.8rem;
    opacity: 1;
}

/* ⭐ 当前播放的歌词（蓝色高亮 + 放大） */
.lyrics-content p.active {
    color: #4f8fff;
    font-weight: 600;
    font-size: 1.2rem;
    opacity: 1;
    transform: scale(1);
}

.lyrics-placeholder {
    color: var(--text-secondary);
    opacity: 0.4;
    font-size: 0.85rem;
}


/* ============================================================
   封面 + 顶部行 样式（新增）
   ============================================================ */

/* ===== 顶部行 ===== */
.top-row {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    padding: 2px 8px 2px 8px;
    min-height: 52px;
    gap: 8px;
}

/* ===== 封面缩略图 ===== */
.cover-thumb {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    background: #2a2a4a;
    border: 2px solid rgba(255, 255, 255, 0.06);
}

.cover-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
    pointer-events: auto;
}

.cover-thumb .cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background: linear-gradient(135deg, #1a1a2e, #2a2a4a);
    color: rgba(255, 255, 255, 0.2);
}

/* ===== 中间区域（歌词按钮 + 分类标题） ===== */
.top-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    min-width: 0;
    padding: 0 8px;
    height: 44px;
}

.top-center .lyrics-toggle-btn {
    font-size: 0.75rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: transparent;
    white-space: nowrap;
    display: inline-block;
    line-height: 1.6;
    margin: 0 auto;
}

.top-center .lyrics-toggle-btn[data-has-lyrics="true"] {
    color: #4ade80;
    border-color: rgba(74, 222, 128, 0.2);
}

.top-center .lyrics-toggle-btn:hover {
    border-color: rgba(79, 143, 255, 0.3);
    color: var(--text);
}

.top-center .category-tag {
    font-size: 0.65rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    padding: 0 14px;
    border-radius: 12px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0.7;
    display: inline-block;
    line-height: 1.6;
    margin: 0 auto;
}

/* ===== 右侧组合（信号图标 + 播放状态） ===== */
.top-right-group {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    flex-shrink: 0;
    min-width: 44px;
    height: 44px;
    padding: 0px 0;
}

.top-right-group .audio-badge-tag {
    font-size: 0.7rem;
    color: var(--text-secondary);
    line-height: 1.3;
}

.top-right-group .status-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    line-height: 1.3;
}

.top-right-group .status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #888;
    flex-shrink: 0;
}

.top-right-group .status-text {
    font-size: 0.6rem;
    color: var(--text-secondary);
}

/* ===== 移动端适配 ===== */
@media (max-width: 600px) {
    .top-row {
        min-height: 44px;
        padding: 2px 4px 0px 4px;
        gap: 4px;
    }
    
    .cover-thumb {
        width: 44px;
        height: 44px;
        border-radius: 6px;
    }
    
    .cover-thumb .cover-placeholder {
        font-size: 1rem;
    }
    
    .top-center {
        height: 38px;
        padding: 0 4px;
    }
    
    .top-center .lyrics-toggle-btn {
        font-size: 0.85rem;
        padding: 0 6px;
    }
    
    .top-center .category-tag {
        font-size: 0.55rem;
        padding: 0 8px;
    }
    
    .top-right-group {
        height: 38px;
        min-width: 36px;
    }
    
    .top-right-group .audio-badge-tag {
        font-size: 0.6rem;
    }
    
    .top-right-group .status-text {
        font-size: 0.5rem;
    }
}

.cover-zoom-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(20px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
}

.cover-zoom-overlay img {
    max-width: 85%;
    max-height: 85%;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

@keyframes zoomFadeIn {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes zoomFadeOut {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0; transform: scale(0.92); }
}

/* ===== 播放记录面板 - PC端基础样式 ===== */
.history-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.history-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.history-panel-container {
    position: fixed;
    top: 0;
    right: 0;
    width: 60%;
    max-width: 400px;
    height: 100vh;
    background: transparent;
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -4px 0 30px rgba(0, 0, 0, 0.5);
}

.history-panel-container.open {
    transform: translateX(0);
}

.history-panel-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #1a1a2e;
}

/* ===== 手机端适配（宽度 < 600px）- 强制覆盖 ===== */
@media (max-width: 600px) {
    .history-panel-container {
        width: 60% !important;
        max-width: 100% !important;
    }

    /* 统一按钮尺寸 */
    .ctrl-btn,
    .history-btn {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
        padding: 0 !important;
    }

    .ctrl-btn svg,
    .history-btn svg,
    #playModeBtn svg,
    .np-download-btn svg {
        width: 16px !important;
        height: 16px !important;
    }
}

/* ===== 小屏手机适配（宽度 < 400px）- 强制覆盖 ===== */
@media (max-width: 400px) {
    .history-panel-container {
        width: 70% !important;
        max-width: 100% !important;
    }
}

/* ===== 播放记录按钮 ===== */
.history-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(45, 88, 160, 0.3); 
    color: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.history-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
}

.history-btn:active {
    transform: scale(0.92);
}

.history-btn svg {
    display: block;
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
}

/* 激活状态 */
.history-btn.active {
    background: rgba(79, 143, 255, 0.15);
    border-color: rgba(79, 143, 255, 0.25);
    color: #4f8fff;
}

/* ===== 滑动验证组件样式 ===== */
.slider-captcha-container {
    position: relative;
    background: var(--bg, #0d0d0f);
    border-radius: 30px;
    border: 1px solid var(--border, #2a2a35);
    height: 48px;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
    margin: 4px 0 2px 0;
    transition: border-color 0.3s ease;
}
.slider-captcha-container:focus-within {
    border-color: var(--primary, #4f8fff);
}
.slider-captcha-track {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, rgba(79,143,255,0.15), rgba(79,143,255,0.35));
    border-radius: 30px;
    pointer-events: none;
    transition: width 0.05s ease;
}
.slider-captcha-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-secondary, #a0a0b0);
    pointer-events: none;
    white-space: nowrap;
    z-index: 2;
    transition: opacity 0.3s ease;
    letter-spacing: 0.5px;
}
.slider-captcha-thumb {
    position: absolute;
    top: 50%;
    left: 4px;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3f90ff, #0a2851);
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    box-shadow: 0 4px 15px rgba(79,143,255,0.4);
    transition: box-shadow 0.3s ease, transform 0.2s ease;
    touch-action: none;
    color: #fff;
}
.slider-captcha-thumb:hover {
    box-shadow: 0 6px 25px rgba(79,143,255,0.55);
    transform: translateY(-50%) scale(1.03);
}
.slider-captcha-thumb:active {
    cursor: grabbing;
    box-shadow: 0 8px 35px rgba(79,143,255,0.6);
    transform: translateY(-50%) scale(0.95);
}
.slider-captcha-thumb .arrow {
    font-size: 1.2rem;
    line-height: 1;
    margin-left: 2px;
}

slider-captcha-thumb .slider-icon {
    width: 26px;
    height: 26px;
    object-fit: contain;
    pointer-events: none;
    display: block;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
}

.slider-captcha-thumb .arrow {
    display: none;
}

.slider-captcha-container.success .slider-captcha-track {
    background: linear-gradient(90deg, rgba(76,175,80,0.2), rgba(76,175,80,0.4));
}
.slider-captcha-container.success .slider-captcha-thumb {
    background: linear-gradient(135deg, #4caf50, #388e3c);
    box-shadow: 0 4px 15px rgba(76,175,80,0.4);
}
.slider-captcha-container.fail .slider-captcha-thumb {
    background: linear-gradient(135deg, #ff5c5c, #d32f2f);
    box-shadow: 0 4px 15px rgba(255,92,92,0.4);
}
.slider-captcha-container.fail .slider-captcha-track {
    background: linear-gradient(90deg, rgba(255,92,92,0.2), rgba(255,92,92,0.4));
}
.slider-captcha-status {
    font-size: 0.7rem;
    text-align: center;
    margin-top: 2px;
    display: none;
    color: var(--text-secondary, #a0a0b0);
}
.slider-captcha-status.show {
    display: block;
}
.slider-captcha-status.success {
    color: #4caf50;
}
.slider-captcha-status.fail {
    color: #ff5c5c;
}