/* ========== 全局重置 ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: #fff9fa;
    color: #333;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ========== 顶部导航栏 ========== */
.header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 24px; height: 64px;
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    position: sticky; top: 0; z-index: 100;
}
.logo { font-size: 22px; color: #e46b8b; white-space: nowrap; font-weight: 700; }
.header-center { flex: 1; max-width: 480px; margin: 0 24px; }
.search-box { display: flex; gap: 0; }
.search-box input {
    flex: 1; padding: 10px 16px; border: 2px solid #e0e0e0;
    border-right: none; border-radius: 8px 0 0 8px;
    background: #f5f5f5; color: #333; font-size: 14px; outline: none;
    transition: border-color 0.3s;
}
.search-box input:focus { border-color: #e46b8b; background: #fff; }
.search-box button {
    padding: 10px 16px; border: 2px solid #e46b8b; border-radius: 0 8px 8px 0;
    background: #e46b8b; color: #fff; font-size: 16px; cursor: pointer;
    transition: background 0.3s;
}
.search-box button:hover { background: #d45b7b; }
.header-right { display: flex; align-items: center; gap: 12px; }
.user-dropdown { position: relative; display: flex; align-items: center; gap: 12px; }
.user-menu {
    position: absolute; top: calc(100% + 8px); right: 0;
    width: 260px; background: #fff; border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.04);
    padding: 8px 0; z-index: 200; overflow: hidden;
}
.user-menu-header {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px 10px;
}
.user-menu-avatar { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.user-menu-avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-menu-avatar-default {
    background: #e8ecf1; display: flex; align-items: center; justify-content: center;
    font-size: 22px;
}
.user-menu-info { flex: 1; min-width: 0; }
.user-menu-name { font-size: 15px; font-weight: 600; color: #1a1a2e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-menu-account { font-size: 12px; color: #94a3b8; margin-top: 1px; }
.user-menu-sig { font-size: 12px; color: #64748b; padding: 0 16px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-menu-divider { height: 1px; background: #f0f0f0; margin: 4px 0; }
.user-menu-item {
    display: block; padding: 10px 16px; font-size: 14px; color: #334155;
    text-decoration: none; cursor: pointer; transition: background 0.15s;
}
.user-menu-item:hover { background: #f8fafc; }
.user-menu-logout { color: #ef4444; }
.user-menu-logout:hover { background: #fef2f2; }
.menu-fade-enter-active { transition: opacity 0.18s, transform 0.18s; }
.menu-fade-leave-active { transition: opacity 0.12s, transform 0.12s; }
.menu-fade-enter, .menu-fade-leave-to { opacity: 0; transform: translateY(-6px); }
.user-dropdown { display: flex; align-items: center; gap: 12px; }
.user-name { color: #666; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.avatar-thumb { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.avatar-thumb-default { width: 28px; height: 28px; border-radius: 50%; background: #e8ecf1; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; }

/* 角色徽章 */
.role-badge { font-size: 10px; padding: 2px 7px; border-radius: 8px; font-weight: 600; margin-left: 4px; }
.role-guest { background: #e0e0e0; color: #888; }
.role-user { background: #dbeafe; color: #2563eb; }
.role-verified { background: #ede9fe; color: #7c3aed; }
.role-admin { background: #fff3e0; color: #e67e22; }

/* 播放模式按钮 */
.ctrl-mode { font-size: 14px; opacity: 0.7; }
.ctrl-mode:hover { opacity: 1; }

/* --- 顶部栏逐级隐藏 --- */
@media (max-width: 900px) {
    .header .hdr-admin { display: none; }
}
@media (max-width: 780px) {
    .header .hdr-upload { display: none; }
}
@media (max-width: 660px) {
    .header .hdr-role { display: none; }
    .header .hdr-username { display: none; }
    .header { padding: 0 12px; }
}
@media (max-width: 540px) {
    .header-center { display: none; }
    .header { justify-content: space-between; }
}

/* ========== 播放队列浮层（右下角） ========== */
.queue-slide-enter-active {
    transition: transform 0.25s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.queue-slide-leave-active {
    transition: transform 0.2s cubic-bezier(0.55, 0.06, 0.68, 0.19);
}
.queue-slide-enter,
.queue-slide-leave-to {
    transform: translateY(100%);
}

.queue-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 299;
}
.queue-panel {
    position: fixed; bottom: 0; right: 0; z-index: 300;
    width: 340px; max-height: 55vh;
    background: #fff; box-shadow: -4px -4px 24px rgba(0,0,0,0.1);
    border-radius: 12px 0 0 0;
    display: flex; flex-direction: column;
}
.queue-panel-header {
    display: flex; align-items: center; gap: 8px;
    padding: 14px 16px; border-bottom: 1px solid #f0f0f0;
}
.queue-panel-header h3 { flex: 1; font-size: 14px; color: #2c3e50; margin: 0; }
.queue-close-btn {
    width: 28px; height: 28px; border: none; border-radius: 50%;
    background: #f0f0f0; color: #999; font-size: 14px;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
}
.queue-close-btn:hover { background: #e74c3c; color: #fff; }
.queue-panel-list { flex: 1; overflow-y: auto; padding: 4px; }
.queue-panel-list .queue-item { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; cursor: pointer; transition: background 0.15s; margin-bottom: 1px; }
.queue-panel-list .queue-item:hover { background: #f5f5f5; }
.queue-panel-list .queue-item.active { background: #e8f0fe; }
.queue-panel-list .queue-idx { font-size: 11px; color: #999; width: 20px; text-align: center; }
.queue-panel-list .queue-cover img, .queue-panel-list .queue-cover span { width: 32px; height: 32px; border-radius: 6px; object-fit: cover; background: #e8ecf1; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.queue-panel-list .queue-info { flex: 1; min-width: 0; }
.queue-panel-list .queue-title { font-size: 13px; color: #333; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.queue-panel-list .queue-artist { font-size: 11px; color: #999; }
.queue-panel-list .queue-drag { font-size: 14px; color: #ccc; cursor: grab; }

/* 播放队列悬浮按钮 */
.queue-fab {
    position: fixed; bottom: 32px; right: 32px; z-index: 310;
    width: 56px; height: 56px; border: none; border-radius: 50%;
    background: linear-gradient(135deg, #2c3e50, #546e7a);
    color: #fff; font-size: 18px; cursor: pointer;
    box-shadow: 0 4px 16px rgba(44,62,80,0.3);
    transition: all 0.3s; display: flex; align-items: center; justify-content: center;
}
.queue-fab:hover { transform: scale(1.08); box-shadow: 0 6px 24px rgba(44,62,80,0.4); }
.queue-fab-badge {
    position: absolute; top: -4px; right: -4px;
    min-width: 20px; height: 20px; border-radius: 10px;
    background: #546e7a; color: #fff; font-size: 11px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    padding: 0 5px; line-height: 1;
}

/* ========== 按钮 ========== */
.btn { padding: 8px 20px; border: none; border-radius: 8px; font-size: 14px; cursor: pointer; transition: all 0.3s; text-decoration: none; display: inline-block; }
.btn-primary { background: #2c3e50; color: #fff; }
.btn-primary:hover { background: #34495e; transform: translateY(-1px); }
.btn-outline { background: transparent; color: #666; border: 1px solid #d0d0d0; }
.btn-outline:hover { border-color: #2c3e50; color: #2c3e50; }
.btn-block { width: 100%; padding: 12px; font-size: 16px; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ========== Tab 导航栏 ========== */
.tab-bar {
    display: flex; justify-content: center; gap: 0;
    background: #fff; border-bottom: 2px solid #e8e8e8;
    padding: 0 24px; position: sticky; top: 64px; z-index: 90;
}
.tab-bar button {
    padding: 14px 28px; border: none; border-bottom: 2px solid transparent;
    background: none; color: #888; font-size: 14px; cursor: pointer;
    margin-bottom: -2px; transition: all 0.2s;
}
.tab-bar button:hover { color: #2c3e50; }
.tab-bar button.active {
    color: #2c3e50; border-bottom-color: #2c3e50; font-weight: 600;
}

/* ========== 列表视图 ========== */
.list-view {
    flex: 1; overflow-y: auto; padding: 16px 24px 100px;
    max-width: 960px; width: 100%; margin: 0 auto;
}
.list-view .playlist-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px; border-radius: 8px; cursor: pointer;
    transition: background 0.15s; margin-bottom: 2px;
}
.list-view .playlist-item:hover { background: #f5f5f5; }
.list-view .playlist-item.active { background: #e8ecf1; }
.list-view .item-cover { width: 44px; height: 44px; border-radius: 6px; overflow: hidden; flex-shrink: 0; }
.list-view .item-cover img { width: 100%; height: 100%; object-fit: cover; }
.list-view .default-cover {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%; background: linear-gradient(135deg, #2c3e50, #546e7a);
    font-size: 20px; color: #fff;
}
.list-view .item-info { flex: 1; min-width: 0; }
.list-view .item-title { font-size: 14px; font-weight: 600; color: #333; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-view .item-artist { font-size: 13px; color: #999; margin-top: 3px; }
.list-view .item-meta { flex-shrink: 0; display: flex; align-items: center; gap: 6px; }
.list-view .play-count { font-size: 11px; color: #bbb; }
.list-view .empty-list { text-align: center; padding: 60px 20px; color: #999; }
.realm-playlists .empty-list { text-align: center; padding: 60px 20px; color: #999; }

/* 共享：列表项操作按钮 */
.fav-heart { cursor: pointer; font-size: 14px; margin-left: 6px; transition: transform 0.2s; }
.fav-heart:hover { transform: scale(1.2); }
.fav-heart.faved { animation: heartBeat 0.3s; }
@keyframes heartBeat { 0%{transform:scale(1)} 50%{transform:scale(1.3)} 100%{transform:scale(1)} }
.btn-add-queue { cursor: pointer; font-size: 13px; margin-left: 4px; opacity: 0.5; transition: opacity 0.2s; }
.btn-add-queue:hover { opacity: 1; }

/* 标签 & 上传者 */
.item-extra, .track-extra {
    display: flex; align-items: center; gap: 4px; margin-top: 4px; flex-wrap: wrap;
}
.item-tags {
    display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end;
}
.track-tags {
    width: 160px; flex-shrink: 0; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end;
}
.tag-badge {
    display: inline-block; padding: 2px 8px; border-radius: 8px;
    font-size: 12px; white-space: nowrap; line-height: 1.6; font-weight: 500;
}
.tag-0 { background: #e8f5e9; color: #2e7d32; }
.tag-1 { background: #e3f2fd; color: #1565c0; }
.tag-2 { background: #fff3e0; color: #e65100; }
.tag-3 { background: #fce4ec; color: #c62828; }
.tag-4 { background: #f3e5f5; color: #7b1fa2; }
.item-uploader {
    display: inline-flex; align-items: center; gap: 3px;
    font-size: 11px; color: #94a3b8; cursor: pointer;
    margin-left: 2px; transition: color 0.15s;
}
.item-uploader:hover { color: #475569; }
.uploader-thumb {
    width: 16px; height: 16px; border-radius: 50%; object-fit: cover;
}
.uploader-thumb-default {
    width: 16px; height: 16px; border-radius: 50%;
    background: #e2e8f0; display: inline-flex; align-items: center;
    justify-content: center; font-size: 9px; line-height: 1;
}
.btn-del {
    margin-left: 8px; width: 22px; height: 22px; border: none; border-radius: 50%;
    background: #e0e0e0; color: #999; font-size: 12px; cursor: pointer;
    transition: all 0.2s; line-height: 22px; padding: 0; text-align: center;
}
.btn-del:hover { background: #e74c3c; color: #fff; }

/* ========== 主区域 ========== */
.main-area {
    flex: 1; display: flex; flex-direction: column;
    min-height: calc(100vh - 64px - 48px - 64px);
    background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
}
.home-shell {
    width: min(1200px, 100%);
    margin: 0 auto;
    padding: 28px 24px 96px;
}
.hero-banner-wrapper {
    position: relative;
    display: flex; align-items: center;
}
.hero-banner {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    height: 280px;
    background: #111827;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18);
    flex: 1;
}
.banner-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease;
}
.banner-slide {
    position: relative;
    min-width: 100%;
    height: 100%;
}
.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.banner-overlay {
    position: absolute;
    inset: 0;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(90deg, rgba(5, 10, 20, 0.78) 0%, rgba(5, 10, 20, 0.25) 100%);
    color: #fff;
}
.banner-badge {
    display: inline-flex;
    align-self: flex-start;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.16);
    backdrop-filter: blur(8px);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.banner-overlay h2 {
    font-size: 28px;
    margin-bottom: 8px;
}
.banner-overlay p {
    max-width: 560px;
    color: rgba(255,255,255,0.9);
    font-size: 14px;
}
.banner-dots {
    position: absolute;
    bottom: 16px;
    right: 20px;
    display: flex;
    gap: 8px;
}
.banner-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
}
.banner-dot.active {
    background: #fff;
    transform: scale(1.12);
}
.banner-arrow {
    width: 44px; height: 44px;
    border: none; border-radius: 50%;
    background: rgba(0,0,0,0.08);
    color: #555; font-size: 24px;
    cursor: pointer; z-index: 2; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
    margin: 0 8px;
}
.banner-arrow:hover { background: rgba(0,0,0,0.15); color: #333; }
.home-sections {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 20px;
}
.home-section {
    background: rgba(255,255,255,0.82);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 20px;
    padding: 18px;
    backdrop-filter: blur(10px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.section-kicker {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #64748b;
    margin-bottom: 3px;
}
.section-header h3 {
    font-size: 18px;
    color: #0f172a;
}
.section-tag {
    font-size: 12px;
    padding: 5px 8px;
    border-radius: 999px;
    background: #eef2ff;
    color: #475569;
}
.music-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.music-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 12px;
    transition: background 0.2s ease;
    cursor: pointer;
}
.music-row:hover {
    background: #f8fafc;
}
.rank-badge {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}
.rank-badge.soft {
    background: #e2e8f0;
    color: #334155;
}
.music-cover {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, #cbd5e1, #94a3b8);
}
.music-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.music-cover span {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
}
.music-info {
    flex: 1;
    min-width: 0;
}
.music-title {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.music-artist {
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
}
.music-album {
    font-size: 11px;
    color: #94a3b8;
}

/* 可点击的歌手/专辑链接 */
.artist-clickable {
    color: #64748b; text-decoration: none; transition: color 0.2s;
}
.artist-clickable:hover { color: #2c3e50; }
.album-clickable {
    color: #94a3b8; text-decoration: none; transition: color 0.2s;
    font-size: 12px;
}
.album-clickable:hover { color: #2c3e50; }
.artist-sep { color: #94a3b8; font-size: 12px; }

/* 全屏播放器中的链接 */
.fs-link { color: #888; }
.player-fullscreen.dark .fs-link { color: #aaa; }
.fs-link:hover { color: #333; }
.player-fullscreen.dark .fs-link:hover { color: #fff; }
.fs-sep { color: #888; }
.player-fullscreen.dark .fs-sep { color: #aaa; }
.music-meta {
    font-size: 11px;
    color: #64748b;
    white-space: nowrap;
}
.home-view {
    flex: 1; display: flex; align-items: center; justify-content: center;
    padding: 40px;
}
.welcome-screen { text-align: center; }
.welcome-icon { font-size: 80px; margin-bottom: 16px; }
.welcome-screen h2 { font-size: 24px; color: #2c3e50; margin-bottom: 8px; }
.welcome-screen p { font-size: 14px; color: #999; }

@media (max-width: 1024px) {
    .home-sections {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .home-shell {
        padding: 16px 12px 90px;
    }
    .hero-banner {
        height: 220px;
    }
    .banner-overlay {
        padding: 20px;
    }
    .banner-overlay h2 {
        font-size: 22px;
    }
}

.now-playing-info { text-align: center; max-width: 500px; }
.cover-display {
    width: 200px; height: 200px; margin: 0 auto 20px;
    border-radius: 16px; overflow: hidden; cursor: pointer;
    box-shadow: 0 8px 32px rgba(44,62,80,0.15);
    transition: transform 0.2s;
}
.cover-display:hover { transform: scale(1.03); }
.cover-display img { width: 100%; height: 100%; object-fit: cover; }
.default-cover-large {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%; background: linear-gradient(135deg, #2c3e50, #546e7a);
    font-size: 60px; color: #fff;
}
.player-title { font-size: 22px; color: #333; margin-bottom: 6px; }
.player-artist { font-size: 14px; color: #888; margin-bottom: 8px; }
.player-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 8px; justify-content: center; }
.player-tag-badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11px; white-space: nowrap; }
.player-tag-0 { background: #e8f5e9; color: #2e7d32; }
.player-tag-1 { background: #e3f2fd; color: #1565c0; }
.player-tag-2 { background: #fff3e0; color: #e65100; }
.player-tag-3 { background: #fce4ec; color: #c62828; }
.player-tag-4 { background: #f3e5f5; color: #7b1fa2; }
.player-tag-recommend { background: #fce4ec; color: #c62828; font-weight: 600; }
.player-uploader { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #2c3e50; font-weight: 600; margin-top: 6px; cursor: pointer; }
.uploader-avatar, .uploader-avatar-default { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.uploader-avatar-default { background: #e8ecf1; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }

/* ========== 底部迷你播放条 ========== */
.mini-player {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
}
.mini-bar {
    display: flex; align-items: center;
    height: 64px; padding: 0 20px;
    background: #fff; border-top: 1px solid #e8e8e8;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
    position: relative; cursor: pointer;
}
.mini-left {
    display: flex; align-items: center; gap: 10px;
    min-width: 0; flex-shrink: 1;
}
.mini-cover {
    width: 44px; height: 44px; border-radius: 6px; overflow: hidden;
    flex-shrink: 0; cursor: pointer;
}
.mini-right {
    display: flex; align-items: center; gap: 4px; flex-shrink: 0;
    margin-left: auto;
}
.mini-vol-popup {
    display: flex; align-items: center;
}
.mini-vol-anchor {
    position: relative; display: flex; align-items: center;
}
.mini-vol-dropdown {
    display: flex; align-items: center; gap: 4px;
    position: absolute; bottom: calc(100% + 16px); left: 50%;
    background: #fff; border-radius: 24px; padding: 12px 6px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    opacity: 0; pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
    transform: translateX(-50%) translateY(4px);
    white-space: nowrap;
}
.mini-vol-dropdown.visible {
    opacity: 1; pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
.mini-cover img { width: 100%; height: 100%; object-fit: cover; }
.mini-cover span {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%; background: linear-gradient(135deg, #2c3e50, #546e7a);
    font-size: 20px; color: #fff;
}
.mini-info { flex: 1; min-width: 60px; cursor: pointer; overflow: hidden; }
.mini-title { font-size: 14px; font-weight: 600; color: #333; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-artist { font-size: 12px; color: #999; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-progress {
    position: absolute; top: -6px; left: 0; right: 0; height: 12px;
    background: transparent; cursor: pointer; touch-action: none; user-select: none;
}
.mini-progress::before {
    content: ''; position: absolute; top: 5px; left: 0; right: 0;
    height: 3px; background: #e8e8e8;
}
.mini-progress-fill {
    position: absolute; top: 5px; left: 0; height: 3px;
    background: linear-gradient(90deg, #2c3e50, #546e7a);
    transition: width 0.1s linear; pointer-events: none;
}
.mini-progress-thumb {
    position: absolute; top: 50%; width: 12px; height: 12px;
    border: 2px solid #fff; border-radius: 50%; box-sizing: border-box;
    background: #3d5b70; box-shadow: 0 1px 5px rgba(30, 50, 65, 0.3);
    transform: translate(-50%, -50%); transition: left 0.1s linear;
    pointer-events: none;
}
.mini-progress.seeking .mini-progress-fill,
.mini-progress.seeking .mini-progress-thumb { transition: none; }
.mini-controls {
    display: flex; align-items: center; gap: 4px;
    position: absolute; left: 50%; transform: translateX(-50%);
}
.mini-btn {
    width: 40px; height: 40px; border: none; border-radius: 50%;
    background: none; color: #555; font-size: 16px;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
}
.mini-btn:hover { background: #f0f0f0; color: #2c3e50; }

/* --- 逐级隐藏：从右侧开始 --- */
@media (max-width: 1000px) {
    .mini-vol-anchor { display: none; }
}
@media (max-width: 960px) {
    .mini-right .ctrl-queue { display: none; }
}
@media (max-width: 880px) {
    .mini-vol-popup .ctrl-add-pl { display: none; }
}
@media (max-width: 760px) {
    .mini-vol-popup .ctrl-share { display: none; }
}
@media (max-width: 660px) {
    .mini-controls .ctrl-fav { display: none; }
    .mini-artist { display: none; }
}
@media (max-width: 580px) {
    .mini-controls .ctrl-mode { display: none; }
}
@media (max-width: 520px) {
    .mini-vol-popup { display: none; }
}

/* ========== 全屏播放器 ========== */
/* ========== 全屏播放器（Vue 过渡动画） ========== */
.fs-slide-enter-active {
    transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.fs-slide-leave-active {
    transition: transform 0.3s cubic-bezier(0.55, 0.06, 0.68, 0.19);
}
.fs-slide-enter,
.fs-slide-leave-to {
    transform: translateY(100%);
}

.player-fullscreen {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 210;
    background: #fff9fa;
    display: flex; flex-direction: column; align-items: center;
    padding: 24px;
    padding-top: 56px;
}
@keyframes fsSlideUp {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}
.fs-header {
    position: absolute; top: 0; left: 0; right: 0;
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 24px; font-size: 14px; color: #666;
}
.player-fullscreen.dark .fs-header { color: #ccc; }
.fs-close { background: none; border: none; font-size: 14px; cursor: pointer; color: #888; }
.player-fullscreen.dark .fs-close { color: #ccc; }
.fs-close:hover { color: #333; }
.player-fullscreen.dark .fs-close:hover { color: #fff; }
.fs-mode { cursor: pointer; opacity: 0.7; }
.fs-mode:hover { opacity: 1; }
.fs-cover {
    width: 240px; height: 240px; border-radius: 16px; overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,0.15); margin-bottom: 24px;
}
.player-fullscreen.dark .fs-cover { box-shadow: 0 8px 40px rgba(0,0,0,0.4); }
.fs-cover img { width: 100%; height: 100%; object-fit: cover; }
.fs-cover .default-cover-large { font-size: 72px; }
.fs-info { text-align: center; margin-bottom: 24px; }
.fs-info h2 { font-size: 22px; color: #333; margin-bottom: 6px; }
.player-fullscreen.dark .fs-info h2 { color: #fff; }
.fs-info p { font-size: 14px; color: #888; }
.player-fullscreen.dark .fs-info p { color: #aaa; }
.fs-info .player-tags { justify-content: center; margin-top: 8px; }
.fs-progress-bar {
    position: relative; width: 100%; max-width: 500px; height: 18px;
    background: transparent; cursor: pointer; margin-bottom: 6px;
    touch-action: none; user-select: none;
}
.fs-progress-bar::before {
    content: ''; position: absolute; top: 7px; left: 0; right: 0;
    height: 4px; border-radius: 2px; background: rgba(0,0,0,0.08);
}
.player-fullscreen.dark .fs-progress-bar::before { background: rgba(255,255,255,0.15); }
.fs-progress-fill {
    position: absolute; top: 7px; left: 0; height: 4px; border-radius: 2px;
    background: #2c3e50; transition: width 0.1s linear; pointer-events: none;
}
.fs-progress-thumb {
    position: absolute; top: 50%; width: 16px; height: 16px;
    border: 2px solid #fff; border-radius: 50%; box-sizing: border-box;
    background: #2c3e50; box-shadow: 0 2px 7px rgba(30, 50, 65, 0.25);
    transform: translate(-50%, -50%); transition: left 0.1s linear;
    pointer-events: none;
}
.fs-progress-bar.seeking .fs-progress-fill,
.fs-progress-bar.seeking .fs-progress-thumb { transition: none; }
.mini-progress:focus-visible, .fs-progress-bar:focus-visible { outline: 2px solid #546e7a; outline-offset: 2px; }
.player-fullscreen.dark .fs-progress-fill { background: #fff; }
.player-fullscreen.dark .fs-progress-thumb { background: #fff; border-color: #1a1a2e; }
.fs-time {
    display: flex; justify-content: space-between;
    width: 100%; max-width: 500px; margin-bottom: 24px;
    font-size: 12px; color: #999;
}
.player-fullscreen.dark .fs-time { color: #888; }
.fs-controls { display: flex; align-items: center; gap: 16px; }
.fs-btn {
    width: 48px; height: 48px; border: none; border-radius: 50%;
    background: rgba(0,0,0,0.06); color: #555; font-size: 18px;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
}
.fs-btn:hover { background: rgba(0,0,0,0.12); color: #333; }
.player-fullscreen.dark .fs-btn { background: rgba(255,255,255,0.1); color: #ccc; }
.player-fullscreen.dark .fs-btn:hover { background: rgba(255,255,255,0.2); color: #fff; }
.fs-btn-play {
    width: 64px; height: 64px; font-size: 24px;
    background: #2c3e50; color: #fff;
}
.fs-btn-play:hover { background: #34495e; transform: scale(1.05); }
.player-fullscreen.dark .fs-btn-play { background: #fff; color: #1a1a2e; }
.player-fullscreen.dark .fs-btn-play:hover { background: #ddd; }

/* ========== 全屏播放器：歌词布局 ========== */
.fs-body {
    display: flex; align-items: center; justify-content: center;
    gap: 48px; width: 100%; max-width: 1000px;
    flex: 1; min-height: 0;
}
.fs-left {
    display: flex; flex-direction: column; align-items: center;
    flex-shrink: 0;
}
/* 有歌词时封面与歌词沿中轴对称（等宽分布） */
.player-fullscreen.has-lyric .fs-body {
    justify-content: center;
    gap: 60px;
}
.player-fullscreen.has-lyric .fs-left {
    flex: 0 1 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.player-fullscreen.has-lyric .fs-right {
    flex: 0 1 50%;
    max-width: 420px;
}
.fs-right {
    flex: 1; min-width: 0; max-width: 420px;
    display: flex; flex-direction: column;
    align-self: stretch;
}
.fs-lyric-panel {
    flex: 1; display: flex; flex-direction: column;
    background: rgba(255,255,255,0.08);
    border-radius: 12px; padding: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    max-height: calc(100vh - 360px);
    margin-bottom: 8px;
}
.player-fullscreen:not(.dark) .fs-lyric-panel {
    background: rgba(0,0,0,0.03);
    border-color: rgba(0,0,0,0.08);
}
.fs-lyric-title {
    font-size: 14px; font-weight: 600; color: #888;
    margin-bottom: 12px; flex-shrink: 0;
}
.player-fullscreen.dark .fs-lyric-title { color: #aaa; }
.player-fullscreen:not(.dark) .fs-lyric-title { color: #999; }
.fs-lyric-content {
    flex: 1; overflow-y: auto; font-size: 14px; line-height: 2;
    color: #555; white-space: pre-line; word-break: break-all;
    padding-right: 8px;
}
.player-fullscreen.dark .fs-lyric-content { color: #ccc; }
.player-fullscreen:not(.dark) .fs-lyric-content { color: #555; }
.fs-lyric-content::-webkit-scrollbar { width: 4px; }
.fs-lyric-content::-webkit-scrollbar-thumb {
    background: rgba(128,128,128,0.3); border-radius: 2px;
}
.fs-lyric-loading, .fs-lyric-empty {
    flex: 1; display: flex; align-items: center; justify-content: center;
    color: #999; font-size: 13px;
}
.player-fullscreen.dark .fs-lyric-loading,
.player-fullscreen.dark .fs-lyric-empty { color: #777; }

/* 有歌词时进度条和控制栏加宽 */
.player-fullscreen.has-lyric .fs-progress-bar,
.player-fullscreen.has-lyric .fs-time { max-width: 700px; }

/* 响应式：小屏幕隐藏歌词面板 */
@media (max-width: 768px) {
    .fs-body { flex-direction: column; gap: 16px; }
    .player-fullscreen.has-lyric .fs-body { gap: 16px; }
    .player-fullscreen.has-lyric .fs-left,
    .player-fullscreen.has-lyric .fs-right { flex: auto; max-width: 100%; }
    .fs-right { max-width: 100%; max-height: 200px; width: 100%; }
    .fs-lyric-panel { max-height: 180px; }
}

/* ========== 用户弹窗 ========== */
.user-modal { max-width: 420px; max-height: 80vh; overflow-y: auto; }
.user-modal-header { text-align: center; padding-bottom: 16px; border-bottom: 1px solid #f0f0f0; }
.user-modal-header .avatar-img img, .user-modal-header .avatar-default { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; margin: 0 auto 8px; display: block; background: #e8ecf1; }
.user-modal-header h2 { font-size: 18px; color: #2c3e50; margin: 6px 0 0; }
.user-modal-header .display-account { font-size: 13px; color: #999; margin: 2px 0 0; }
.user-modal-header .display-signature { font-size: 13px; color: #666; margin-top: 4px; }
.user-modal-body .music-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #f5f5f5; }
.user-modal-body .music-row:last-child { border-bottom: none; }
.user-modal-body .music-row-cover img, .user-modal-body .music-row-cover span { width: 36px; height: 36px; border-radius: 6px; object-fit: cover; background: #e8ecf1; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.user-modal-body .music-row-info { flex: 1; }
.user-modal-body .music-row-title { font-size: 13px; color: #333; font-weight: 600; }
.user-modal-body .music-row-artist { font-size: 11px; color: #999; }
.user-modal-body .music-row-meta { font-size: 11px; color: #bbb; }

/* 用户弹窗 Tab 切换 */
.user-popup-tabs { display: flex; gap: 4px; padding: 12px 0 8px; justify-content: center; border-bottom: 1px solid #f0f0f0; }
.popup-tab {
    padding: 8px 16px; border: none; background: transparent;
    font-size: 13px; color: #666; cursor: pointer; border-radius: 8px;
    transition: all 0.2s;
}
.popup-tab:hover { background: #f5f5f5; color: #333; }
.popup-tab.active { background: #2c3e50; color: #fff; font-weight: 600; }

/* ========== 播放队列旧样式（已废弃，保留占位） ========== */
/* ========== 旧播放器控件（已废弃） ========== */

/* ========== 弹窗 ========== */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4); display: flex;
    align-items: center; justify-content: center; z-index: 200;
}
.modal {
    background: #fff; border: 1px solid #e8e8e8;
    border-radius: 16px; padding: 32px; width: 400px; max-width: 90vw;
    position: relative; box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}
.modal h2 { font-size: 20px; margin-bottom: 20px; color: #333; }
.modal input[type="text"],
.modal input[type="password"] {
    width: 100%; padding: 12px 16px; margin-bottom: 12px;
    border: 1px solid #e0e0e0; border-radius: 8px;
    background: #fafafa; color: #333; font-size: 14px; outline: none;
    transition: border-color 0.3s;
}
.modal input:focus { border-color: #2c3e50; background: #fff; }
.file-input-group { margin-bottom: 12px; }
.file-input-group label { display: block; font-size: 13px; color: #666; margin-bottom: 6px; }
.file-input-group input[type="file"] { width: 100%; font-size: 13px; color: #888; }
.error-msg { color: #e74c3c; font-size: 13px; text-align: center; margin-bottom: 12px; }
.success-msg { color: #27ae60; font-size: 13px; text-align: center; margin-bottom: 12px; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; margin-bottom: 4px; font-size: 13px; color: #666; font-weight: 500; }
.form-group input[type="text"] { width: 100%; padding: 10px 14px; border: 1px solid #e0e0e0; border-radius: 8px; background: #fafafa; color: #333; font-size: 14px; outline: none; box-sizing: border-box; }
.form-group input[type="text"]:focus { border-color: #2c3e50; background: #fff; }
.switch-text { text-align: center; margin-top: 16px; font-size: 13px; color: #999; }
.switch-text a { color: #2c3e50; text-decoration: none; }
.modal-close {
    position: absolute; top: 12px; right: 16px;
    background: none; border: none; color: #bbb; font-size: 18px; cursor: pointer;
}
.modal-close:hover { color: #333; }

/* ========== 滚动条 ========== */
.list-view::-webkit-scrollbar,
.queue-panel-list::-webkit-scrollbar { width: 4px; }
.list-view::-webkit-scrollbar-track,
.queue-panel-list::-webkit-scrollbar-track { background: transparent; }
.list-view::-webkit-scrollbar-thumb,
.queue-panel-list::-webkit-scrollbar-thumb { background: #ddd; border-radius: 2px; }

/* ========== 详情 Tab（专辑/歌手） ========== */
.detail-tab {
    position: relative; padding-right: 24px !important;
    max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.detail-tab-close {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    font-size: 11px; color: #999; cursor: pointer; padding: 2px;
    border-radius: 50%; line-height: 1;
}
.detail-tab-close:hover { color: #e74c3c; background: rgba(231,76,60,0.1); }

/* ========== 专辑/歌手详情内嵌视图 ========== */
.detail-view { padding-bottom: 120px; }

/* --- 专辑英雄区 --- */
.album-hero {
    position: relative; padding: 48px 32px; overflow: hidden; color: #fff;
    min-height: 300px; display: flex; align-items: flex-end;
}
.album-hero-bg {
    position: absolute; inset: 0; z-index: 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 30%, #0f3460 60%, #533483 100%);
}
.album-hero-bg::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 60%;
    background: linear-gradient(transparent, rgba(0,0,0,0.5));
}
.album-hero-content {
    position: relative; z-index: 1; display: flex; align-items: flex-end; gap: 32px;
    max-width: 1200px; margin: 0 auto; width: 100%;
}
.album-hero-cover {
    width: 200px; height: 200px; border-radius: 8px; overflow: hidden; flex-shrink: 0;
    box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}
.album-hero-cover img { width: 100%; height: 100%; object-fit: cover; }
.album-hero-cover .default-cover-large {
    display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
    background: linear-gradient(135deg, #2c3e50, #546e7a); font-size: 64px; color: #fff;
}
.album-hero-info { flex: 1; min-width: 0; }
.album-type-tag {
    display: inline-block; padding: 4px 12px; border-radius: 999px;
    background: rgba(255,255,255,0.18); font-size: 11px; letter-spacing: 0.08em;
    text-transform: uppercase; margin-bottom: 10px;
}
.album-hero-info h1 { font-size: 32px; font-weight: 700; margin: 0 0 12px; line-height: 1.2; word-break: break-word; }
.album-artist-line { font-size: 15px; color: rgba(255,255,255,0.8); margin: 0 0 6px; }
.artist-link { color: #fff; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.4); transition: border-color 0.2s; }
.artist-link:hover { border-color: #fff; }
.album-hero .artist-sep { color: rgba(255,255,255,0.5); }
.album-meta-line { font-size: 13px; color: rgba(255,255,255,0.6); margin: 0 0 20px; }
.album-actions { display: flex; gap: 12px; align-items: center; }
.btn-play-all {
    display: inline-flex; align-items: center; gap: 8px; padding: 12px 32px;
    border: none; border-radius: 24px; background: #1db954; color: #fff;
    font-size: 15px; font-weight: 600; cursor: pointer; transition: all 0.25s;
    box-shadow: 0 4px 16px rgba(29,185,84,0.35);
}
.btn-play-all:hover { background: #1ed760; transform: scale(1.04); box-shadow: 0 6px 24px rgba(29,185,84,0.5); }
.play-icon { font-size: 18px; }
.btn-shuffle {
    display: inline-flex; align-items: center; gap: 6px; padding: 12px 28px;
    border: 2px solid rgba(255,255,255,0.4); border-radius: 24px;
    background: transparent; color: #fff; font-size: 14px; font-weight: 500;
    cursor: pointer; transition: all 0.25s;
}
.btn-shuffle:hover { border-color: #fff; background: rgba(255,255,255,0.1); }
.btn-collect {
    display: inline-flex; align-items: center; gap: 6px; padding: 12px 28px;
    border: 2px solid rgba(255,255,255,0.5); border-radius: 24px;
    background: rgba(255,255,255,0.15); color: #fff; font-size: 14px; font-weight: 500;
    cursor: pointer; transition: all 0.25s;
}
.btn-collect:hover { border-color: #ffd700; background: rgba(255,215,0,0.15); color: #ffd700; }
.btn-collected {
    display: inline-flex; align-items: center; gap: 6px; padding: 12px 28px;
    border: 2px solid #ff4757; border-radius: 24px;
    background: rgba(255,71,87,0.15); color: #ff6b81; font-size: 14px; font-weight: 500;
    cursor: pointer; transition: all 0.25s;
}
.btn-collected:hover { background: rgba(255,71,87,0.25); }

/* 播单公开/私密切换按钮 */
.btn-public-toggle {
    display: inline-flex; align-items: center; gap: 6px; padding: 12px 28px;
    border: 2px solid rgba(255,255,255,0.5); border-radius: 24px;
    background: rgba(255,255,255,0.1); color: #fff; font-size: 14px; font-weight: 500;
    cursor: pointer; transition: all 0.25s;
}
.btn-public-toggle:hover { border-color: #fff; background: rgba(255,255,255,0.2); }

/* 播单管理操作列 */
.track-act-col { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.track-btn-move {
    width: 24px; height: 24px; border: 1px solid #ddd; border-radius: 4px;
    background: #fafafa; color: #888; font-size: 10px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.15s;
}
.track-btn-move:hover { background: #e8ecf1; color: #2c3e50; border-color: #2c3e50; }
.track-btn-del {
    width: 24px; height: 24px; border: 1px solid #fcc; border-radius: 4px;
    background: #fff5f5; color: #e74c3c; font-size: 11px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.15s;
}
.track-btn-del:hover { background: #e74c3c; color: #fff; border-color: #e74c3c; }

/* 拖拽手柄 */
.track-drag-handle {
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; color: #999; cursor: grab;
    width: 20px; height: 20px;
}
.track-drag-handle:active { cursor: grabbing; }
.track-row.editing { cursor: default; }
.track-row.editing:hover { background: #fafafa; }
.track-row.drag-over { opacity: 0.4; }
.track-row.drag-target { border-top: 2px solid #2c3e50; }

/* 编辑/保存按钮 */
.btn-edit-toggle {
    display: inline-flex; align-items: center; gap: 6px; padding: 12px 28px;
    border: 2px solid rgba(255,255,255,0.5); border-radius: 24px;
    background: rgba(255,255,255,0.1); color: #fff; font-size: 14px; font-weight: 500;
    cursor: pointer; transition: all 0.25s;
}
.btn-edit-toggle:hover { border-color: #fff; background: rgba(255,255,255,0.2); }
.btn-save-toggle {
    display: inline-flex; align-items: center; gap: 6px; padding: 12px 28px;
    border: 2px solid #1db954; border-radius: 24px;
    background: #1db954; color: #fff; font-size: 14px; font-weight: 500;
    cursor: pointer; transition: all 0.25s;
}
.btn-save-toggle:hover { background: #1ed760; border-color: #1ed760; }

/* 播单分享按钮 */
.btn-share-pl {
    display: inline-flex; align-items: center; gap: 6px; padding: 12px 28px;
    border: 2px solid rgba(255,255,255,0.5); border-radius: 24px;
    background: rgba(255,255,255,0.1); color: #fff; font-size: 14px; font-weight: 500;
    cursor: pointer; transition: all 0.25s;
}
.btn-share-pl:hover { border-color: #fff; background: rgba(255,255,255,0.2); }

/* ========== 通知详情页 ========== */
.notification-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 48px 32px; color: #fff;
}
.notification-hero-content {
    max-width: 900px; margin: 0 auto;
}
.notification-type-tag {
    display: inline-block; padding: 4px 14px; border-radius: 12px;
    background: rgba(255,255,255,0.15); font-size: 12px; font-weight: 600;
    margin-bottom: 12px;
}
.notification-hero h1 {
    font-size: 28px; margin: 0 0 8px;
}
.notification-time {
    font-size: 13px; color: rgba(255,255,255,0.6); margin: 0;
}
.notification-body {
    max-width: 900px; margin: 0 auto; padding: 32px;
}
.notification-content {
    font-size: 15px; line-height: 1.8; color: #334155;
}
.notification-content h2, .notification-content h3 { margin: 20px 0 10px; color: #1a1a2e; }
.notification-content p { margin: 10px 0; }
.notification-content a { color: #2c3e50; }
.notification-content ul, .notification-content ol { margin: 10px 0; padding-left: 24px; }

/* --- 专辑主区 --- */
.album-main { max-width: 1200px; margin: 0 auto; padding: 24px 32px 0; }
.album-tracklist { max-width: 960px; }
.album-sidebar { width: 260px; flex-shrink: 0; }
.album-sidebar h3 { font-size: 16px; color: #333; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 2px solid #2c3e50; }
.album-more-section { max-width: 1200px; margin: 0 auto; padding: 40px 32px 120px; }
.more-album-item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 8px; cursor: pointer; transition: background 0.15s; margin-bottom: 2px; }
.more-album-item:hover { background: #f5f5f5; }
.more-album-cover { width: 48px; height: 48px; border-radius: 6px; overflow: hidden; flex-shrink: 0; background: #e8ecf1; }
.more-album-cover img { width: 100%; height: 100%; object-fit: cover; }
.more-album-cover span { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: linear-gradient(135deg, #cbd5e1, #94a3b8); font-size: 20px; color: #fff; }
.more-album-info { flex: 1; min-width: 0; }
.more-album-name { display: block; font-size: 13px; font-weight: 600; color: #333; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.more-album-artist { display: block; font-size: 12px; color: #999; margin-top: 2px; }

/* --- 歌手英雄区 --- */
.artist-hero { position: relative; padding: 48px 32px; overflow: hidden; color: #fff; }
.artist-hero-bg {
    position: absolute; inset: 0; z-index: 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 25%, #e65100 75%, #f57c00 100%); opacity: 0.9;
}
.artist-hero-bg::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 40%; background: linear-gradient(transparent, rgba(0,0,0,0.5)); }
.artist-hero-content { position: relative; z-index: 1; display: flex; align-items: center; gap: 40px; max-width: 1200px; margin: 0 auto; width: 100%; }
.artist-avatar { width: 180px; height: 180px; border-radius: 50%; overflow: hidden; flex-shrink: 0; box-shadow: 0 16px 48px rgba(0,0,0,0.4); border: 4px solid rgba(255,255,255,0.2); }
.artist-avatar img { width: 100%; height: 100%; object-fit: cover; }
.artist-avatar-default { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: linear-gradient(135deg, #f57c00, #e65100); font-size: 64px; }
.artist-hero-info { flex: 1; min-width: 0; }
.artist-verified { display: inline-flex; align-items: center; gap: 4px; padding: 4px 14px; border-radius: 999px; background: rgba(255,255,255,0.18); font-size: 11px; letter-spacing: 0.06em; margin-bottom: 12px; }
.artist-hero-info h1 { font-size: 42px; font-weight: 800; margin: 0 0 10px; line-height: 1.1; word-break: break-word; }
.artist-stats { font-size: 14px; color: rgba(255,255,255,0.75); margin: 0 0 22px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.stat-sep { color: rgba(255,255,255,0.4); }
.artist-actions { display: flex; gap: 12px; align-items: center; }

/* --- 歌手主区 --- */
.artist-main { max-width: 1200px; margin: 0 auto; padding: 32px 32px 120px; }
.artist-content { display: flex; flex-direction: column; gap: 40px; }
.section-title { font-size: 22px; font-weight: 700; color: #0f172a; margin: 0 0 16px; padding-bottom: 8px; border-bottom: 2px solid #2c3e50; display: inline-block; }

/* --- 曲目表头/行（共用） --- */
.tracklist-header { display: flex; align-items: center; gap: 12px; padding: 8px 16px; border-bottom: 1px solid #e8e8e8; font-size: 11px; color: #999; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.track-num-header { width: 36px; text-align: center; }
.track-cover-header { width: 40px; flex-shrink: 0; }
.track-title-header { flex: 1; }
.track-artist-header { width: 180px; }
.track-album-header { width: 200px; }
.track-dur-header { width: 80px; text-align: right; }
.track-act-header { width: 36px; text-align: center; flex-shrink: 0; }
.track-tags-header { width: 160px; text-align: right; flex-shrink: 0; }
.track-row { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-radius: 8px; cursor: pointer; transition: background 0.15s; }
.track-row:hover { background: rgba(0,0,0,0.03); }
.track-row.playing { background: #e8f0fe; }
.track-row.playing .track-title { color: #1a73e8; }
.track-num { width: 36px; text-align: center; font-size: 13px; color: #999; flex-shrink: 0; }
.track-num-idx { color: #999; }
.track-row:hover .track-num-idx { color: #333; }
.track-cover { width: 40px; height: 40px; border-radius: 4px; overflow: hidden; flex-shrink: 0; background: #e8ecf1; }
.track-cover img { width: 100%; height: 100%; object-fit: cover; }
.track-cover span { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: linear-gradient(135deg, #cbd5e1, #94a3b8); font-size: 16px; color: #fff; }
.track-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.track-title { font-size: 14px; font-weight: 500; color: #333; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-artist-mobile { display: none; font-size: 12px; color: #999; }
.track-artist-col { width: 180px; font-size: 13px; color: #888; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex-shrink: 0; }
.track-album-mobile { display: none; font-size: 12px; color: #999; }
.track-album-col { width: 200px; font-size: 13px; flex-shrink: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.album-link { color: #888; text-decoration: none; transition: color 0.2s; }
.album-link:hover { color: #2c3e50; }
.track-plays { width: 80px; text-align: right; font-size: 12px; color: #bbb; flex-shrink: 0; }
.empty-state { text-align: center; padding: 60px 20px; color: #999; font-size: 14px; }

/* ========== 分页控件 ========== */
.pager {
    display: flex; align-items: center; justify-content: center;
    gap: 4px; padding: 20px 0 8px;
}
.pager-btn {
    min-width: 36px; height: 36px; padding: 0 8px;
    border: 1px solid #e2e8f0; border-radius: 8px;
    background: #fff; color: #475569; font-size: 14px;
    cursor: pointer; transition: all 0.15s;
    display: flex; align-items: center; justify-content: center;
}
.pager-btn:hover:not(:disabled) { border-color: #2c3e50; color: #2c3e50; }
.pager-btn.active {
    background: #2c3e50; color: #fff; border-color: #2c3e50;
    font-weight: 600; pointer-events: none;
}
.pager-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.pager-ellipsis {
    width: 36px; text-align: center; color: #94a3b8; font-size: 14px;
    user-select: none;
}

/* --- 专辑/歌手网格 --- */
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 20px; }
.album-card { background: #fff; border-radius: 12px; overflow: hidden; cursor: pointer; transition: all 0.25s; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.album-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(0,0,0,0.12); }
.album-card-cover { position: relative; width: 100%; padding-top: 100%; background: linear-gradient(135deg, #e8ecf1, #cbd5e1); overflow: hidden; }
.album-card-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.album-card-cover span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 48px; color: #fff; }
.album-card-play { position: absolute; bottom: 8px; right: 8px; width: 40px; height: 40px; border-radius: 50%; background: #1db954; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px; opacity: 0; transform: translateY(8px); transition: all 0.25s; box-shadow: 0 4px 12px rgba(0,0,0,0.3); }
.album-card:hover .album-card-play { opacity: 1; transform: translateY(0); }
.album-card-name { padding: 12px 12px 4px; font-size: 13px; font-weight: 600; color: #333; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.album-card-count { padding: 0 12px 14px; font-size: 12px; color: #999; }
.artist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px; }
.artist-card { text-align: center; cursor: pointer; padding: 16px 8px; border-radius: 12px; transition: background 0.2s; }
.artist-card:hover { background: #f5f5f5; }
.artist-card-avatar { width: 120px; height: 120px; border-radius: 50%; overflow: hidden; margin: 0 auto 10px; background: linear-gradient(135deg, #e8ecf1, #cbd5e1); }
.artist-card-avatar img { width: 100%; height: 100%; object-fit: cover; }
.artist-card-avatar span { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-size: 40px; color: #fff; }
.artist-card-name { font-size: 14px; font-weight: 600; color: #333; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.artist-card-songs { font-size: 12px; color: #999; margin-top: 2px; }

/* --- 播单英雄区 --- */
.playlist-hero {
    position: relative; padding: 48px 32px; overflow: hidden; color: #fff;
    min-height: 260px; display: flex; align-items: flex-end;
}
.playlist-hero-bg {
    position: absolute; inset: 0; z-index: 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #1e3a5f 30%, #065f46 60%, #0d9488 100%);
}
.playlist-hero-bg::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 60%;
    background: linear-gradient(transparent, rgba(0,0,0,0.5));
}
.playlist-hero-content {
    position: relative; z-index: 1; display: flex; align-items: flex-end; gap: 32px;
    max-width: 1200px; margin: 0 auto; width: 100%;
}
.playlist-hero-cover {
    width: 200px; height: 200px; border-radius: 8px; overflow: hidden; flex-shrink: 0;
    box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}
.playlist-hero-cover img { width: 100%; height: 100%; object-fit: cover; }
.playlist-hero-cover .default-cover-large {
    display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
    background: linear-gradient(135deg, #065f46, #0d9488); font-size: 64px; color: #fff;
}
.playlist-hero-info { flex: 1; min-width: 0; }
.playlist-type-tag {
    display: inline-block; padding: 4px 12px; border-radius: 999px;
    background: rgba(255,255,255,0.18); font-size: 11px; letter-spacing: 0.08em;
    text-transform: uppercase; margin-bottom: 10px;
}
.playlist-hero-info h1 { font-size: 32px; font-weight: 700; margin: 0 0 8px; line-height: 1.2; word-break: break-word; }
.playlist-desc { font-size: 14px; color: rgba(255,255,255,0.7); margin: 0 0 12px; }
.playlist-meta-line {
    font-size: 13px; color: rgba(255,255,255,0.75); margin: 0 0 16px;
    display: flex; align-items: center; gap: 6px;
}
.playlist-creator-avatar { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; vertical-align: middle; }
.playlist-creator-avatar-default { width: 20px; height: 20px; border-radius: 50%; background: rgba(255,255,255,0.2); display: inline-flex; align-items: center; justify-content: center; font-size: 10px; vertical-align: middle; }
.playlist-stat-sep { color: rgba(255,255,255,0.4); }
.playlist-actions { display: flex; gap: 12px; align-items: center; }

/* --- 播单词云 --- */
.playlist-wordcloud {
    flex-shrink: 0; margin-left: auto; align-self: center;
    width: 320px; height: 220px;
}
.playlist-wordcloud canvas { width: 100%; height: 100%; }
@media (max-width: 900px) {
    .playlist-wordcloud { margin-left: 0; width: 100%; max-width: 320px; height: 180px; }
}

/* --- 播单主区 --- */
.playlist-main { max-width: 1200px; margin: 0 auto; padding: 24px 32px 120px; }
.playlist-tracklist { max-width: 960px; }

@media (max-width: 900px) {
    .playlist-hero { padding: 32px 16px; }
    .playlist-hero-content { flex-direction: column; align-items: center; text-align: center; gap: 20px; }
    .playlist-hero-cover { width: 160px; height: 160px; }
    .playlist-hero-info h1 { font-size: 24px; }
    .playlist-meta-line { justify-content: center; }
    .playlist-actions { justify-content: center; }
    .playlist-main { padding: 16px 12px 100px; }
}

/* --- 响应式 --- */
@media (max-width: 900px) {
    .album-hero { padding: 32px 16px; }
    .album-hero-content { flex-direction: column; align-items: center; text-align: center; gap: 20px; }
    .album-hero-cover { width: 160px; height: 160px; }
    .album-hero-info h1 { font-size: 24px; }
    .album-main { padding: 16px 12px 0; }
    .album-more-section { padding: 28px 12px 100px; }
    .track-artist-col { display: none; }
    .track-artist-mobile { display: block; }
    .track-artist-header, .track-dur-header, .track-tags-header { display: none; }
    .track-tags { display: none; }
    .artist-hero { padding: 32px 16px; }
    .artist-hero-content { flex-direction: column; text-align: center; gap: 20px; }
    .artist-avatar { width: 140px; height: 140px; }
    .artist-hero-info h1 { font-size: 28px; }
    .artist-stats { justify-content: center; }
    .artist-actions { justify-content: center; }
    .artist-main { padding: 20px 12px; }
    .track-album-col { display: none; }
    .track-album-mobile { display: block; }
    .track-album-header, .track-dur-header, .track-tags-header { display: none; }
    .track-tags { display: none; }
    .album-grid { grid-template-columns: repeat(2, 1fr); }
    .artist-grid { grid-template-columns: repeat(2, 1fr); }
    .tab-bar { flex-wrap: wrap; }
    .detail-tab { max-width: 140px; font-size: 12px; }
}

/* ========== 迷你播放条 - 音量控制（浮窗版 - 竖条） ========== */
.mini-volume-slider {
    width: 14px; height: 100px; cursor: pointer;
    position: relative; display: flex; flex-direction: column; align-items: center;
}
.mini-volume-slider::before {
    content: ''; position: absolute; left: 50%; top: 0; bottom: 0;
    width: 4px; margin-left: -2px;
    background: #e2e8f0; border-radius: 2px;
}
.mini-volume-fill {
    position: absolute; left: 50%; bottom: 0; width: 4px; margin-left: -2px;
    border-radius: 2px;
    background: linear-gradient(0deg, #2c3e50, #546e7a);
    pointer-events: none;
}
.mini-volume-thumb {
    position: absolute; left: 50%; width: 14px; height: 14px;
    margin-left: -7px; margin-bottom: -7px;
    background: #2c3e50; border-radius: 50%; border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    pointer-events: none; transition: transform 0.1s;
    z-index: 1;
}
.mini-volume-slider:hover .mini-volume-thumb { transform: scale(1.2); }

/* ========== 全屏播放器 - 左下角按钮 ========== */
.fs-left-corner {
    position: absolute; bottom: 28px; left: 28px;
    display: flex; align-items: center; gap: 10px;
    z-index: 5;
}
/* ========== 全屏播放器 - 右下角播放列表 ========== */
.fs-queue-btn {
    position: absolute; bottom: 28px; right: 28px;
    width: 48px; height: 48px; border: none; border-radius: 50%;
    background: rgba(0,0,0,0.06); color: #555; font-size: 18px;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: all 0.2s; z-index: 5;
}
.fs-queue-btn:hover { background: rgba(0,0,0,0.12); color: #333; }
.player-fullscreen.dark .fs-queue-btn { background: rgba(255,255,255,0.1); color: #ccc; }
.player-fullscreen.dark .fs-queue-btn:hover { background: rgba(255,255,255,0.2); color: #fff; }
.fs-vol-icon {
    background: none; border: none; font-size: 18px;
    cursor: pointer; opacity: 0.7; transition: opacity 0.2s;
    padding: 4px;
}
.fs-vol-icon:hover { opacity: 1; }
.player-fullscreen.dark .fs-vol-icon { opacity: 0.6; }
.player-fullscreen.dark .fs-vol-icon:hover { opacity: 1; }
.fs-volume-slider {
    width: 120px; height: 14px; cursor: pointer;
    position: relative; display: flex; align-items: center;
}
.fs-volume-slider::before {
    content: ''; position: absolute; left: 0; right: 0;
    top: 50%; height: 4px; margin-top: -2px;
    background: rgba(0,0,0,0.1); border-radius: 2px;
}
.player-fullscreen.dark .fs-volume-slider::before {
    background: rgba(255,255,255,0.15);
}
.fs-volume-fill {
    position: absolute; left: 0; top: 50%; height: 4px; margin-top: -2px;
    border-radius: 2px;
    background: #2c3e50; pointer-events: none;
}
.player-fullscreen.dark .fs-volume-fill { background: #fff; }
.fs-volume-thumb {
    position: absolute; top: 50%; width: 16px; height: 16px;
    margin-left: -8px; margin-top: -8px;
    background: #2c3e50; border-radius: 50%; border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    pointer-events: none; transition: transform 0.1s;
    z-index: 1;
}
.player-fullscreen.dark .fs-volume-thumb {
    background: #fff; border-color: #1a1a2e;
}
.fs-volume-slider:hover .fs-volume-thumb { transform: scale(1.2); }
.fs-corner-spacer { width: 12px; flex-shrink: 0; }

/* 红心按钮动效 */
.fs-faved { animation: fsHeartBeat 0.35s; }
@keyframes fsHeartBeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.25); }
    100% { transform: scale(1); }
}

/* ========== 分享弹窗 ========== */
.share-modal {
    background: #fff; border-radius: 20px; padding: 28px;
    width: 420px; max-width: 92vw; position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.share-header {
    display: flex; align-items: center; gap: 16px;
    margin-bottom: 24px; padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}
.share-cover {
    width: 72px; height: 72px; border-radius: 12px; overflow: hidden;
    flex-shrink: 0; background: linear-gradient(135deg, #2c3e50, #546e7a);
}
.share-cover img { width: 100%; height: 100%; object-fit: cover; }
.share-cover span {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%; font-size: 32px; color: #fff;
}
.share-song-info { flex: 1; min-width: 0; }
.share-song-title {
    font-size: 18px; font-weight: 700; color: #0f172a;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    margin-bottom: 4px;
}
.share-song-artist {
    font-size: 14px; color: #64748b;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.share-song-album {
    font-size: 12px; color: #94a3b8; margin-top: 2px;
}
.share-link-box {
    margin-bottom: 16px;
}
.share-link-box label {
    display: block; font-size: 12px; color: #94a3b8;
    text-transform: uppercase; letter-spacing: 0.06em;
    margin-bottom: 8px;
}
.share-link-row {
    display: flex; gap: 8px;
}
.share-link-row input {
    flex: 1; padding: 12px 14px; border: 2px solid #e2e8f0;
    border-radius: 12px; background: #f8fafc; color: #334155;
    font-size: 13px; outline: none; transition: border-color 0.2s;
    min-width: 0;
}
.share-link-row input:focus { border-color: #2c3e50; }
.btn-copy {
    padding: 12px 20px; border: none; border-radius: 12px;
    background: #2c3e50; color: #fff; font-size: 13px; font-weight: 600;
    cursor: pointer; white-space: nowrap; transition: all 0.25s;
}
.btn-copy:hover { background: #34495e; transform: translateY(-1px); }
.btn-copy.copied {
    background: #1db954; animation: copyPop 0.3s;
}
@keyframes copyPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}
.share-hint {
    text-align: center; font-size: 13px; color: #94a3b8;
    margin: 0;
}

/* ========== 添加到播单弹窗 ========== */
.add-pl-modal {
    background: #fff; border-radius: 20px; padding: 28px;
    width: 420px; max-width: 92vw; position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.add-pl-modal h2 {
    font-size: 18px; color: #1a1a2e; margin-bottom: 20px;
}
.add-pl-song-info {
    display: flex; align-items: center; gap: 14px;
    padding: 12px; background: #f8fafc; border-radius: 12px;
    margin-bottom: 16px;
}
.add-pl-song-cover {
    width: 52px; height: 52px; border-radius: 10px; overflow: hidden;
    flex-shrink: 0; background: linear-gradient(135deg, #2c3e50, #546e7a);
    display: flex; align-items: center; justify-content: center;
}
.add-pl-song-cover img { width: 100%; height: 100%; object-fit: cover; }
.add-pl-song-cover span {
    font-size: 22px; color: #fff;
}
.add-pl-song-text { flex: 1; min-width: 0; }
.add-pl-song-title {
    font-size: 15px; font-weight: 600; color: #0f172a;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.add-pl-song-artist {
    font-size: 13px; color: #94a3b8; margin-top: 2px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.add-pl-divider {
    height: 1px; background: #f0f0f0; margin-bottom: 12px;
}
.add-pl-login-hint {
    text-align: center; padding: 20px; color: #94a3b8; font-size: 14px;
}
.add-pl-login-hint a { color: #2c3e50; font-weight: 600; }
.add-pl-empty {
    text-align: center; padding: 24px; color: #94a3b8; font-size: 14px;
}
.add-pl-list {
    max-height: 320px; overflow-y: auto;
}
.add-pl-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 14px; border-radius: 10px; cursor: pointer;
    transition: background 0.15s; margin-bottom: 2px;
}
.add-pl-item:hover { background: #f5f5f5; }
.add-pl-item-cover {
    width: 40px; height: 40px; border-radius: 8px; overflow: hidden;
    flex-shrink: 0; background: linear-gradient(135deg, #e8ecf1, #d0d5dd);
    display: flex; align-items: center; justify-content: center;
    margin-right: 10px;
}
.add-pl-item-cover img { width: 100%; height: 100%; object-fit: cover; }
.add-pl-item-cover span { font-size: 18px; }
.add-pl-item-info {
    display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0;
}
.add-pl-item-icon { font-size: 18px; flex-shrink: 0; }
.add-pl-item-name {
    font-size: 14px; color: #334155; font-weight: 500;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.add-pl-item-count {
    font-size: 12px; color: #94a3b8; flex-shrink: 0;
}
.add-pl-item-arrow {
    font-size: 18px; color: #2c3e50; font-weight: 700; flex-shrink: 0;
    opacity: 0; transition: opacity 0.15s;
}
.add-pl-item:hover .add-pl-item-arrow { opacity: 1; }
.add-pl-msg {
    text-align: center; margin-top: 12px; font-size: 13px; padding: 8px;
    border-radius: 8px;
}
.add-pl-msg.success { color: #16a34a; background: #f0fdf4; }
.add-pl-msg.error { color: #dc2626; background: #fef2f2; }

/* ========== 编辑资料 / 账号设置弹窗 ========== */
.profile-modal {
    max-width: 460px; max-height: 85vh; overflow-y: auto;
    padding: 28px;
}
.profile-modal h2 { font-size: 20px; margin-bottom: 20px; color: #1a1a2e; }
.profile-modal .modal-close { top: 16px; right: 20px; font-size: 20px; }
.profile-modal .input-group { margin-bottom: 14px; }
.profile-modal .input-group label { display: block; font-size: 13px; color: #64748b; margin-bottom: 6px; font-weight: 500; }
.profile-modal .input-group input {
    width: 100%; padding: 11px 14px; border: 2px solid #e2e8f0; border-radius: 10px;
    font-size: 14px; color: #333; outline: none; background: #f8fafc; margin-bottom: 0;
    transition: border-color 0.2s;
}
.profile-modal .input-group input:focus { border-color: #2c3e50; background: #fff; }
.profile-modal .btn-primary {
    width: 100%; padding: 12px; border-radius: 10px; margin-top: 6px;
    background: #2c3e50; color: #fff; font-size: 14px; font-weight: 600;
    border: none; cursor: pointer; transition: all 0.2s;
}
.profile-modal .btn-primary:hover { background: #34495e; }
.profile-modal .btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.profile-modal .msg { font-size: 13px; margin: 6px 0; }
.profile-modal .msg.error { color: #e74c3c; }
.profile-modal .msg.success { color: #27ae60; }

/* 头像编辑区域 */
.epf-avatar-area { text-align: center; margin-bottom: 20px; }
.epf-avatar-circle { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; margin: 0 auto 12px; }
.epf-avatar-circle img { width: 100%; height: 100%; object-fit: cover; }
.epf-avatar-default { background: #e8ecf1; display: flex; align-items: center; justify-content: center; font-size: 40px; }
.epf-tip { font-size: 12px; color: #94a3b8; margin-top: 6px; }
.epf-crop-wrap, .epf-preview-wrap { max-width: 280px; margin: 0 auto; }
.epf-preview-img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin: 0 auto 10px; display: block; }
.epf-crop-actions { display: flex; gap: 8px; justify-content: center; margin-top: 10px; }
.epf-current-avatar { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.btn-upload { cursor: pointer; }
.btn-sm { padding: 8px 16px; border: 2px solid #2c3e50; background: #fff; color: #2c3e50; border-radius: 10px; font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: all 0.2s; }
.btn-sm:hover { background: #2c3e50; color: #fff; }
.btn-sm:disabled { border-color: #ccc; color: #ccc; cursor: not-allowed; }

/* 账号设置 */
.settings-section { margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid #f0f0f0; }
.settings-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.settings-section h3 { font-size: 15px; color: #1a1a2e; margin-bottom: 12px; }
.settings-desc { font-size: 13px; color: #94a3b8; margin-bottom: 10px; }
.settings-section input {
    width: 100%; padding: 10px 14px; border: 2px solid #e2e8f0; border-radius: 10px;
    font-size: 14px; color: #333; outline: none; background: #f8fafc; margin-bottom: 8px;
    transition: border-color 0.2s;
}
.settings-section input:focus { border-color: #2c3e50; background: #fff; }
.settings-danger { border-color: #fecaca; }
.settings-danger h3 { color: #dc2626; }
.btn-danger { background: #dc2626; color: #fff; border: none; cursor: pointer; transition: all 0.2s; }
.btn-danger:hover { background: #b91c1c; }
.btn-sm-full { width: 100%; padding: 10px; border-radius: 10px; font-size: 13px; font-weight: 600; margin-top: 4px; }
.input-row { display: flex; gap: 8px; align-items: center; }
.input-row input { flex: 1; margin-bottom: 0; }
.input-row .btn-sm { flex-shrink: 0; }

/* ========== 我的 Realm 子页面 ========== */
.realm-view { display: flex; flex-direction: column; height: 100%; }
.realm-sub-tabs {
    display: flex; gap: 4px; padding: 12px 16px 8px; justify-content: center;
    border-bottom: 1px solid #f0f0f0; background: #fff;
}
.realm-sub-tab {
    padding: 8px 16px; border: none; background: transparent;
    font-size: 13px; color: #666; cursor: pointer; border-radius: 8px;
    transition: all 0.2s;
}
.realm-sub-tab:hover { background: #f5f5f5; color: #333; }
.realm-sub-tab.active { background: #2c3e50; color: #fff; font-weight: 600; }

.realm-upload-header {
    display: flex; justify-content: center; padding: 12px 16px 8px;
}

.realm-playlists { flex: 1; overflow-y: auto; padding: 16px; }
.realm-playlist-header {
    display: flex; justify-content: center; padding: 12px 16px 8px; margin-bottom: 16px;
}
.realm-playlist-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    max-width: 1100px;
    margin: 0 auto;
}
@media (max-width: 900px) {
    .realm-playlist-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ========== 搜索视图 ========== */
.search-view { background: #fff; min-height: calc(100vh - 120px); }

/* 搜索子Tab */
.search-sub-tabs {
    display: flex; gap: 4px; padding: 12px 20px;
    background: #fff; border-bottom: 1px solid #e8e8e8;
    position: sticky; top: 64px; z-index: 40;
    flex-wrap: wrap; justify-content: center;
    max-width: 1100px; margin: 0 auto;
}
.search-sub-tab {
    padding: 8px 18px; border: none; background: transparent;
    font-size: 14px; color: #666; cursor: pointer;
    border-radius: 20px; transition: all 0.2s;
}
.search-sub-tab:hover { background: #f5f5f5; color: #333; }
.search-sub-tab.active { background: #2c3e50; color: #fff; font-weight: 600; }
.search-sub-count { font-size: 12px; opacity: 0.7; margin-left: 4px; }
.search-sub-tab.active .search-sub-count { opacity: 0.9; }

/* 搜索分类标题 */
.search-section { padding: 0 20px; margin-bottom: 20px; }
.search-section-title {
    font-size: 16px; font-weight: 600; color: #333;
    margin: 16px 0 10px; padding-bottom: 6px;
    border-bottom: 2px solid #2c3e50; display: inline-block;
}

/* 综合区歌曲列表 */
.search-song-list { padding: 0 20px; }

/* 综合区 & 分页区居中 */
.search-comprehensive, .search-paginated {
    max-width: 1100px; margin: 0 auto;
}

/* 横向滚动行（歌手/专辑/播单） */
.search-horizontal-row {
    display: flex; gap: 16px; overflow-x: auto;
    padding-bottom: 8px; flex-wrap: wrap;
}
.search-artist-card, .search-album-card, .search-playlist-card {
    display: flex; flex-direction: column; align-items: center;
    gap: 6px; cursor: pointer; min-width: 90px;
    transition: transform 0.15s; padding: 4px;
}
.search-artist-card:hover, .search-album-card:hover, .search-playlist-card:hover {
    transform: translateY(-2px);
}
.search-artist-avatar, .search-album-cover, .search-playlist-cover {
    width: 80px; height: 80px; border-radius: 50%;
    background: #eee; display: flex; align-items: center;
    justify-content: center; font-size: 28px;
    overflow: hidden; flex-shrink: 0;
}
.search-artist-avatar img, .search-album-cover img, .search-playlist-cover img {
    width: 100%; height: 100%; object-fit: cover;
}
.search-album-cover, .search-playlist-cover { border-radius: 8px; }
.search-artist-avatar.large, .search-album-cover.large, .search-playlist-cover.large {
    width: 120px; height: 120px; font-size: 40px;
}
.search-artist-name, .search-album-name, .search-playlist-name {
    font-size: 13px; color: #333; text-align: center;
    max-width: 90px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.search-album-artist, .search-playlist-creator {
    font-size: 11px; color: #999; text-align: center;
    max-width: 90px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* 分页网格 */
.search-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px; padding: 20px;
}
.search-paginated { padding-bottom: 40px; }

/* 加载更多 */
.search-load-more {
    text-align: center; padding: 20px;
}

@media (max-width: 768px) {
    .search-sub-tabs { padding: 8px 10px; gap: 2px; }
    .search-sub-tab { padding: 6px 12px; font-size: 12px; }
    .search-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; padding: 12px; }
    .search-artist-avatar.large, .search-album-cover.large, .search-playlist-cover.large {
        width: 90px; height: 90px; font-size: 30px;
    }
    .search-artist-name, .search-album-name, .search-playlist-name { max-width: 80px; }
    /* 搜索歌曲列表窄屏隐藏标签列 */
    .search-song-list .track-tags,
    .search-song-list .track-tags-header { display: none; }
}
@media (max-width: 900px) {
    /* 中等屏幕隐藏专辑列 */
    .search-song-list .track-album-col,
    .search-song-list .track-album-header { display: none; }
}
@media (max-width: 680px) {
    .realm-playlist-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
    .realm-playlist-grid { grid-template-columns: repeat(2, 1fr); }
}
.realm-playlist-card {
    background: #fff; border-radius: 12px; overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06); cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s; position: relative;
}
.realm-playlist-card:hover {
    transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.realm-playlist-cover {
    width: 100%; aspect-ratio: 1; overflow: hidden; background: #f0f2f5;
    display: flex; align-items: center; justify-content: center;
}
.realm-playlist-cover img { width: 100%; height: 100%; object-fit: cover; }
.realm-playlist-info { padding: 12px; }
.realm-playlist-name {
    font-size: 14px; font-weight: 600; color: #333;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.realm-playlist-meta { font-size: 12px; color: #999; margin-top: 4px; }
.realm-playlist-actions {
    position: absolute; top: 8px; right: 8px;
    display: flex; gap: 4px; opacity: 0; transition: opacity 0.2s;
}
.realm-playlist-card:hover .realm-playlist-actions { opacity: 1; }
.btn-icon {
    background: rgba(255,255,255,0.9); border: none; cursor: pointer;
    width: 28px; height: 28px; border-radius: 50%; font-size: 13px;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
}
.btn-icon:hover { background: #fff; }

.default-cover-large {
    width: 100%; height: 100%; display: flex; align-items: center;
    justify-content: center; font-size: 48px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

/* 播单歌曲选取器 */
.playlist-picker-item {
    display: flex; align-items: center; gap: 8px; padding: 8px;
    border-radius: 6px; cursor: pointer; transition: background 0.15s;
}
.playlist-picker-item:hover { background: #f5f5f5; }
.playlist-picker-item.picked { background: #e8f5e9; }

.modal textarea {
    width: 100%; padding: 12px 16px; margin-bottom: 12px;
    border: 1px solid #e0e0e0; border-radius: 8px;
    background: #fafafa; color: #333; font-size: 14px; outline: none;
    resize: vertical; transition: border-color 0.3s;
}
.modal textarea:focus { border-color: #2c3e50; background: #fff; }
