/* { type: uploaded file, fileName: music - 副本/style.css } */
:root {
    --primary: #1fcc94;
    --primary-gradient: linear-gradient(135deg, #1fcc94, #0eb07d);
    
    /* 浅色模式变量 */
    --bg-body: #eef2f6; 
    --bg-app: #ffffff; 
    --bg-surface: #f8fafc;
    --text-main: #1e293b; 
    --text-sub: #94a3b8; 
    --border: #f1f5f9;
    
    --nav-blur: rgba(255, 255, 255, 0.75);
    --vip-card: linear-gradient(135deg, #222 0%, #000 100%);
    --netease-card: linear-gradient(135deg, #333 0%, #1a1a1a 100%);
    --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
    --input-bg: #f1f5f9;
    --badge-netease: #e60026; 
    --badge-tencent: #00ca99;
    
    /* 安全区域 - 适配刘海屏/挖孔屏/曲面屏 */
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-left: env(safe-area-inset-left, 0px);
    --safe-right: env(safe-area-inset-right, 0px);
}

[data-theme="dark"] {
    --primary: #1fcc94;
    
    /* 深色模式变量 */
    --bg-body: #0f172a;
    --bg-app: #111827;
    --bg-surface: #1e293b;
    --text-main: #f1f5f9;
    --text-sub: #94a3b8;
    --border: #334155;
    
    --nav-blur: rgba(17, 24, 39, 0.75);
    --vip-card: linear-gradient(135deg, #333 0%, #111 100%);
    --input-bg: #1e293b;
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}

/* Toast 通知样式 */
.toast-container {
    position: fixed;
    top: calc(20px + var(--safe-top));
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 12px;
    background: var(--bg-app);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    font-size: 14px;
    color: var(--text-main);
    pointer-events: auto;
    animation: toastIn 0.3s ease;
    max-width: 90vw;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
}

.toast.toast-out {
    animation: toastOut 0.3s ease forwards;
}

.toast-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

.toast.success .toast-icon { background: #10b981; color: white; }
.toast.error .toast-icon { background: #ef4444; color: white; }
.toast.warning .toast-icon { background: #f59e0b; color: white; }
.toast.info .toast-icon { background: #3b82f6; color: white; }

.toast-message {
    flex: 1;
    line-height: 1.4;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateY(-20px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toastOut {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to { opacity: 0; transform: translateY(-20px) scale(0.9); }
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    -webkit-tap-highlight-color: transparent; 
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; 
}

/* 只对需要过渡的元素添加过渡效果，避免全局过渡导致闪烁 */
.scroll-area,
.nav-item,
.icon-btn,
.btn-hover,
.song-row,
.h-card-img,
.grid-item,
.menu-item,
.status-pill,
.search-container input {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

html, body {
    height: 100%;
    overflow: hidden;
}

body { 
    background-color: var(--bg-body); 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    min-height: 100vh;
    min-height: -webkit-fill-available;
    /* 不在 body 上加 padding，让背景延伸到边缘 */
    user-select: none; 
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::-webkit-scrollbar { display: none; }

.app-container { 
    width: 375px; 
    height: 812px; 
    background-color: var(--bg-app); 
    position: relative; 
    overflow: hidden; 
    border-radius: 40px; 
    box-shadow: var(--shadow-lg); 
    display: flex; 
    flex-direction: column; 
    border: 4px solid var(--bg-app); 
}

/* iOS Safari PWA 全屏模式适配 */
@media screen and (display-mode: standalone) {
    html, body {
        background-color: var(--bg-app);
    }
    body {
        padding: 0;
    }
    .app-container {
        width: 100%;
        height: 100%;
        max-width: 100vw;
        max-height: 100vh;
        border-radius: 0;
        border: none;
        box-shadow: none;
        /* 确保覆盖整个屏幕 */
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }
    .nav-bar {
        bottom: calc(20px + var(--safe-bottom));
        left: calc(20px + var(--safe-left));
        right: calc(20px + var(--safe-right));
    }
}

/* Android PWA 全屏模式适配 */
@media screen and (display-mode: fullscreen) {
    html, body {
        background-color: var(--bg-app);
    }
    .app-container {
        width: 100%;
        height: 100%;
        border-radius: 0;
        border: none;
        position: fixed;
        top: 0;
        left: 0;
    }
    .nav-bar {
        bottom: calc(20px + var(--safe-bottom));
    }
}

/* iOS Safari 浏览器内全屏适配（非 PWA） */
@supports (-webkit-touch-callout: none) {
    @media screen and (max-width: 430px) {
        html, body {
            background-color: var(--bg-app);
        }
        body {
            padding: 0;
        }
        .app-container {
            width: 100%;
            height: 100%;
            max-height: -webkit-fill-available;
            border-radius: 0;
            border: none;
            box-shadow: none;
            position: fixed;
            top: 0;
            left: 0;
        }
    }
}

.btn-hover { cursor: pointer; }
.btn-hover:active { transform: scale(0.92); opacity: 0.8; }

/* --- 顶部与搜索 --- */
.top-bar { 
    padding: 15px 24px; 
    padding-top: calc(5px + var(--safe-top));
    height: calc(60px + var(--safe-top)); 
    display: flex; 
    justify-content: space-between; 
    align-items: flex-end;
    padding-bottom: 15px;
    position: absolute; 
    top: 0; 
    width: 100%; 
    z-index: 20; 
    background: linear-gradient(to bottom, var(--bg-app) 80%, transparent); 
}
.app-logo { 
    font-size: 22px; 
    font-weight: 800; 
    background: var(--primary-gradient); 
    -webkit-background-clip: text; 
    color: transparent; 
    letter-spacing: -0.5px; 
}

.icon-btn { 
    width: 40px; 
    height: 40px; 
    border-radius: 14px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: var(--text-main); 
    font-size: 18px; 
    background: rgba(255, 255, 255, 0.5); 
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.5);
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}
[data-theme="dark"] .icon-btn {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255,255,255,0.1);
    box-shadow: none;
}

.status-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(31, 204, 148, 0.1); 
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-main);
    cursor: pointer;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(31, 204, 148, 0.15);
}
.status-pill i { color: var(--primary); font-size: 12px; }
.status-pill:active { transform: scale(0.95); opacity: 0.8; }
[data-theme="dark"] .status-pill { background: rgba(31, 204, 148, 0.15); border-color: rgba(31, 204, 148, 0.2); }

.search-container { position: absolute; top: calc(70px + var(--safe-top)); left: 0; width: 100%; padding: 0 24px; z-index: 15; pointer-events: none; box-sizing: border-box; }
.search-container input { 
    width: 100%; 
    background: var(--input-bg); 
    border: 1px solid transparent;
    padding: 12px 75px 12px 45px; 
    border-radius: 18px; 
    color: var(--text-main); 
    outline: none; 
    font-size: 14px; 
    transition: all 0.3s;
    pointer-events: auto;
    box-sizing: border-box;
}
.search-container input:focus { background: var(--bg-app); border-color: var(--primary); box-shadow: 0 0 0 4px rgba(31, 204, 148, 0.1); }
[data-theme="dark"] .search-container input { border-color: rgba(255,255,255,0.05); }

.search-container i { position: absolute; top: 50%; transform: translateY(-50%); color: var(--text-sub); font-size: 14px; }
.search-container i:first-child { left: 40px; pointer-events: none; }
.search-container #clearSearchBtn { right: 55px; display: none; pointer-events: auto; cursor: pointer; }
.search-container #audioRecognitionBtn { right: 40px; pointer-events: auto; cursor: pointer; transition: color 0.2s; }
.search-container #audioRecognitionBtn:hover { color: var(--primary); }

/* --- 滚动区域 --- */
.scroll-area { 
    flex: 1; 
    overflow-y: auto; 
    padding-top: calc(130px + var(--safe-top)); 
    padding-bottom: calc(110px + var(--safe-bottom)); 
    opacity: 0; 
    transform: translateY(10px); 
    display: none; 
    transition: opacity 0.3s, transform 0.3s; 
}
.scroll-area.active { opacity: 1; transform: translateY(0); display: block; }

/* 首页视图切换 - 默认状态 */
#homeRecView { display: block; visibility: visible; opacity: 1; }
#homeRecView > * { visibility: visible; opacity: 1; }
#homeSearchView { display: none; }

/* --- 首页内容 --- */
.greeting { padding: 0 24px 15px; }
.greeting h1 { font-size: 28px; color: var(--text-main); font-weight: 800; letter-spacing: -0.5px; }
.greeting p { color: var(--text-sub); font-size: 13px; margin-top: 5px; font-weight: 500; }

.banner-wrap { padding: 0 24px 25px; }
.banner { height: 140px; width: 100%; border-radius: 28px; background-image: url('https://images.unsplash.com/photo-1483032469466-b937c425697b?w=600'); background-size: cover; background-position: center; position: relative; overflow: hidden; box-shadow: 0 15px 30px -5px rgba(31, 204, 148, 0.3); }
.banner-glass { position: absolute; bottom: 0; width: 100%; height: 60%; background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%); padding: 20px; display: flex; align-items: flex-end; justify-content: space-between; }
.banner-text h3 { color: white; font-size: 20px; font-weight: 700; margin-bottom: 2px; }
.banner-text span { color: rgba(255,255,255,0.8); font-size: 12px; font-weight: 500; }
.play-fab { width: 44px; height: 44px; background: rgba(255,255,255,0.95); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 16px; box-shadow: 0 8px 20px rgba(0,0,0,0.3); backdrop-filter: blur(4px); }

/* 首页横向滚动列表 */
.h-scroll-section { margin-bottom: 15px; }
.h-scroll-list { 
    display: flex; 
    flex-wrap: nowrap; 
    overflow-x: auto; 
    padding: 0 24px 20px 24px; 
    gap: 16px; 
    scroll-padding-left: 24px; 
    scroll-snap-type: x mandatory; 
    -webkit-overflow-scrolling: touch; 
    cursor: grab; 
}
.h-scroll-list::-webkit-scrollbar { display: none; }

.h-card { 
    min-width: 110px; 
    width: 110px;
    flex: 0 0 auto; 
    cursor: pointer; 
    scroll-snap-align: start; 
}
.h-card-img { width: 110px; height: 110px; border-radius: 20px; margin-bottom: 10px; background-size: cover; background-position: center; box-shadow: 0 8px 20px rgba(0,0,0,0.08); transition: transform 0.2s; }
.h-card:active .h-card-img { transform: scale(0.95); }
.h-card span { font-size: 13px; color: var(--text-main); font-weight: 600; display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; max-width: 110px; opacity: 0.9; }

/* --- 列表与批量操作 --- */
.list-page-header { display: flex; align-items: center; justify-content: space-between; padding: 0 24px 20px; }
.list-page-header h2 { font-size: 20px; color: var(--text-main); font-weight: 700; }

.list-page-header .icon-btn {
    background: transparent;
    border: none;
    box-shadow: none;
    width: auto;
    padding: 0 5px;
    color: var(--text-main);
}
.search-container .icon-btn { background: transparent; border: none; box-shadow: none; }
.full-player .top-bar .icon-btn { 
    background: rgba(255,255,255,0.1); 
    border: 1px solid rgba(255,255,255,0.1);
    color: white; 
}

.play-all-bar { 
    display: flex; 
    align-items: center; 
    padding: 10px 10px 10px 14px; 
    background: var(--bg-surface); 
    border-radius: 24px; 
    margin: 5px 24px 20px; 
    cursor: pointer; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid var(--border);
}
.play-all-bar:active { transform: scale(0.98); background: var(--border); }

.play-all-icon-container {
    width: 42px;
    height: 42px;
    margin-right: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    box-shadow: 0 6px 15px rgba(31, 204, 148, 0.4);
}
.play-all-icon-container i { font-size: 16px; margin-left: 2px; }

.play-all-info { display: flex; flex-direction: column; }
.play-all-title { font-weight: 700; color: var(--text-main); font-size: 16px; }
.play-all-count { font-size: 12px; color: var(--text-sub); margin-top: 2px; font-weight: 500; }

.song-list { padding: 0 24px; }
.song-row { display: flex; align-items: center; margin-bottom: 12px; padding: 10px; border-radius: 18px; position: relative; }
.song-row:active, .song-row.active { background: var(--bg-surface); }
.song-row-img { width: 52px; height: 52px; border-radius: 12px; margin-right: 16px; background-size: cover; background-position: center; box-shadow: 0 4px 10px rgba(0,0,0,0.08); position: relative; overflow: hidden; flex-shrink: 0; background-color: var(--bg-surface); }
.song-row-img.lazy-img { background-image: none; transition: opacity 0.3s; }
.song-row-img.lazy-img.loaded { opacity: 1; }
.song-row-info { flex: 1; overflow: hidden; }
.song-row-title { font-size: 15px; font-weight: 600; color: var(--text-main); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.song-row-artist { font-size: 12px; color: var(--text-sub); display: flex; align-items: center; font-weight: 500; }

.source-badge { font-size: 9px; padding: 2px 5px; border-radius: 4px; margin-right: 6px; color: white; transform: translateY(-1px); font-weight: 700; }
.source-badge.netease { background-color: var(--badge-netease); }
.source-badge.tencent { background-color: var(--badge-tencent); }

/* [新增] 刷新按钮动画 */
.refresh-btn-anim {
    animation: spin 1s linear infinite;
}
@keyframes spin { 100% { transform: rotate(360deg); } }

/* [新增] 来源标签样式 */
.source-tag {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
    font-weight: normal;
    display: inline-block;
}
.source-tag.tencent { background: rgba(0, 202, 153, 0.1); color: #00ca99; border: 1px solid rgba(0, 202, 153, 0.2); }
.source-tag.netease { background: rgba(230, 0, 38, 0.1); color: #e60026; border: 1px solid rgba(230, 0, 38, 0.2); }

.check-wrap { margin-right: 15px; display: none; }
.batch-mode .check-wrap { display: block; }
.custom-checkbox { width: 22px; height: 22px; border: 2px solid var(--text-sub); border-radius: 50%; position: relative; transition: 0.2s; }
.song-row.selected .custom-checkbox { background: var(--primary); border-color: var(--primary); }
.song-row.selected .custom-checkbox::after { content: '✔'; position: absolute; color: white; font-size: 12px; left: 5px; top: 1px; font-weight: bold; }

.batch-action-bar { 
    position: absolute; bottom: 85px; left: 24px; right: 24px; 
    background: var(--bg-app); border-radius: 24px; padding: 15px; 
    display: none; justify-content: space-around; 
    box-shadow: 0 10px 40px rgba(0,0,0,0.15); z-index: 60; 
    border: 1px solid var(--border);
    animation: slideUp 0.2s; 
}
.batch-action-bar.active { display: flex; }
.b-btn { display: flex; flex-direction: column; align-items: center; font-size: 10px; color: var(--text-main); gap: 5px; cursor: pointer; width: 60px; text-align: center; }
.b-btn i { font-size: 20px; margin-bottom: 2px; }
.b-btn.delete { color: #ef4444; }

/* --- 底部导航 --- */
.nav-bar { 
    position: absolute; top: auto; bottom: 20px; left: 20px; right: 20px; 
    height: 80px; background: var(--nav-blur); backdrop-filter: blur(25px); 
    border-radius: 28px; display: flex; justify-content: space-around; align-items: center; 
    box-shadow: 0 15px 40px rgba(0,0,0,0.1); z-index: 50; 
    border: 1px solid rgba(255,255,255,0.2); 
}
[data-theme="dark"] .nav-bar { border-color: rgba(255,255,255,0.05); }

.nav-item { display: flex; flex-direction: column; align-items: center; color: var(--text-sub); transition: 0.3s; padding: 10px; }
.nav-item i { font-size: 22px; margin-bottom: 4px; }
.nav-item span { font-size: 10px; font-weight: 500; }
.nav-item.active { color: var(--primary); }

.nav-center-group {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible; 
    gap: 15px;
}

.nav-cd-btn { 
    width: 60px; height: 60px; border-radius: 50%; 
    background: #111; margin-top: -35px; border: 5px solid var(--bg-app); 
    box-shadow: 0 10px 25px rgba(0,0,0,0.2); 
    display: flex; justify-content: center; align-items: center; 
    position: relative; z-index: 51; 
}
.nav-cd-img { width: 100%; height: 100%; border-radius: 50%; opacity: 0.8; animation: rotate 10s linear infinite; animation-play-state: paused; }
.nav-cd-btn.playing .nav-cd-img { animation-play-state: running; }

/* [关键修复] 提高 z-index 防止误触 */
.mini-bubble {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--bg-app); color: var(--text-main);
    display: flex; justify-content: center; align-items: center;
    font-size: 12px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    border: 1px solid var(--border);
    cursor: pointer;
    transform: scale(0); opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); 
    margin-top: -25px; 
    z-index: 55 !important; 
}
.mini-bubble:hover { color: var(--primary); }
.nav-center-group.playing .mini-bubble { transform: scale(1); opacity: 1; }
.mini-bubble i { margin-top: 1px; }
.mini-bubble.left i { margin-left: 2px; }
[data-theme="dark"] .mini-bubble { background: #1f2937; border-color: #374151; box-shadow: 0 6px 15px rgba(0,0,0,0.4); }

.mini-lyric-bar { 
    position: absolute; top: -35px; left: 0; right: 0; 
    text-align: center; font-size: 12px; color: var(--text-main); font-weight: 600;
    pointer-events: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; 
    opacity: 0.9; background: rgba(255,255,255,0.4); backdrop-filter: blur(8px); 
    padding: 6px 12px; border-radius: 12px; margin: 0 20px; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
[data-theme="dark"] .mini-lyric-bar { background: rgba(0,0,0,0.4); }

/* --- 全屏播放器 --- */
.full-player { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: #111; 
    z-index: -1; opacity: 0; visibility: hidden; pointer-events: none; 
    display: flex; flex-direction: column; transform: translateY(100%); 
    transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.3s ease, visibility 0s 0.4s, z-index 0s 0.4s;
    will-change: transform, opacity;
}
.full-player.active { 
    z-index: 2000; opacity: 1; transform: translateY(0); visibility: visible; pointer-events: auto; 
    transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.3s ease, visibility 0s 0s, z-index 0s 0s;
}
/* 全屏播放器顶部栏 - 内容在安全区域内 */
.full-player .top-bar {
    padding-top: calc(15px + var(--safe-top));
    height: calc(70px + var(--safe-top));
    background: transparent;
}
.player-bg { position: absolute; top:0; left:0; width:100%; height:100%; background: radial-gradient(circle at 50% 30%, #444, #111); overflow: hidden; z-index: -1; }
.blob { position: absolute; width: 300px; height: 300px; border-radius: 50%; background: var(--primary); filter: blur(80px); opacity: 0.3; animation: breathe 8s infinite alternate; }
.blob-1 { top: -10%; left: -20%; } .blob-2 { bottom: 10%; right: -20%; background: #4a90e2; }
@keyframes breathe { from { opacity: 0.2; transform: scale(1); } to { opacity: 0.4; transform: scale(1.2); } }

/* --- 灵动岛样式 --- */
.dynamic-island {
    position: absolute; top: calc(12px + var(--safe-top)); left: 50%; transform: translateX(-50%);
    background: linear-gradient(145deg, #1a1a1a, #0a0a0a); border-radius: 22px; z-index: 3000;
    transition: width 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), 
                height 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
                border-radius 0.4s ease, opacity 0.3s ease;
    width: 100px; height: 32px; opacity: 0; overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.05);
    display: flex; justify-content: center; align-items: center; pointer-events: none;
    border: 1px solid rgba(255,255,255,0.06);
}
.dynamic-island.active { opacity: 1; pointer-events: auto; }

.dynamic-island.mode-menu { width: 230px; height: 52px; border-radius: 26px; }
.dynamic-island.mode-detail { width: 250px; height: 52px; border-radius: 26px; }
.dynamic-island.mode-mini { width: 120px; height: 34px; border-radius: 17px; top: calc(14px + var(--safe-top)); }
.dynamic-island.mode-mini.dual { width: 200px; }

.di-content {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: space-around;
    padding: 0 12px; color: rgba(255,255,255,0.9); font-size: 12px; white-space: nowrap; 
    opacity: 0; animation: diFadeIn 0.35s ease-out forwards 0.08s;
}
@keyframes diFadeIn { to { opacity: 1; } }

.di-btn { 
    display: flex; flex-direction: column; align-items: center; gap: 3px; 
    cursor: pointer; opacity: 0.85; transition: all 0.2s ease; padding: 4px 6px; border-radius: 10px;
}
.di-btn:hover { opacity: 1; background: rgba(255,255,255,0.05); }
.di-btn:active { opacity: 0.6; transform: scale(0.92); }
.di-btn i { font-size: 14px; color: var(--primary); }
.di-btn span { font-size: 9px; font-weight: 500; letter-spacing: 0.2px; color: rgba(255,255,255,0.7); }

.di-detail-row { display: flex; gap: 8px; align-items: center; width: 100%; justify-content: center; }
.di-time-opt { 
    padding: 6px 10px; background: rgba(255,255,255,0.08); border-radius: 12px; 
    cursor: pointer; font-size: 10px; font-weight: 500; white-space: nowrap; 
    transition: all 0.2s ease; letter-spacing: 0.3px;
}
.di-time-opt:hover { background: rgba(255,255,255,0.12); }
.di-time-opt:active { background: var(--primary); color: black; transform: scale(0.95); }

.di-room-info { display: flex; flex-direction: row; align-items: center; justify-content: space-between; width: 100%; padding: 0 4px; }
.di-room-text { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.di-room-label { font-size: 8px; color: rgba(255,255,255,0.4); margin-bottom: 1px; font-weight: 500; letter-spacing: 0.5px; text-transform: uppercase; }
.di-room-code { font-size: 14px; font-weight: 700; letter-spacing: 2px; color: var(--primary); font-family: 'SF Mono', monospace; }
.di-room-actions { display: flex; gap: 6px; }
.di-action-btn { 
    padding: 5px 10px; background: rgba(255,255,255,0.08); border-radius: 12px; 
    cursor: pointer; font-size: 10px; font-weight: 500; transition: all 0.2s ease; 
    display: flex; align-items: center; gap: 4px; letter-spacing: 0.2px;
}
.di-action-btn:hover { background: rgba(255,255,255,0.12); }
.di-action-btn:active { background: rgba(255,255,255,0.15); transform: scale(0.95); }
.di-action-btn.danger { background: rgba(239, 68, 68, 0.12); color: #f87171; }
.di-action-btn.danger:hover { background: rgba(239, 68, 68, 0.18); }
.di-action-btn.danger:active { background: rgba(239, 68, 68, 0.22); }

.di-mini-row { 
    display: flex; align-items: center; justify-content: center; gap: 6px; 
    font-size: 11px; font-weight: 600; cursor: pointer; flex: 1; 
    white-space: nowrap; height: 100%; transition: opacity 0.2s;
}
.di-mini-row:active { opacity: 0.6; }
.di-pulse { width: 6px; height: 6px; background: #f87171; border-radius: 50%; animation: diPulse 1.8s ease-in-out infinite; box-shadow: 0 0 6px rgba(248, 113, 113, 0.5); }
@keyframes diPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.85); } }
.di-v-sep { width: 1px; height: 12px; background: rgba(255,255,255,0.1); margin: 0 4px; }

.center-stage { flex: 1; position: relative; width: 100%; overflow: hidden; }
.vinyl-area, .lyric-area { position: absolute; inset: 0; display: flex; justify-content: center; align-items: center; transition: opacity 0.3s; }
.disc-container { width: 280px; height: 280px; border-radius: 50%; background: #050505; box-shadow: 0 20px 50px rgba(0,0,0,0.5); display: flex; justify-content: center; align-items: center; animation: rotate 20s linear infinite; animation-play-state: paused; position: relative; z-index: 10; }
.disc-container.playing { animation-play-state: running; }
.disc-grooves { position: absolute; width: 95%; height: 95%; border-radius: 50%; border: 2px solid #222; background: repeating-radial-gradient(#111 0, #111 2px, #222 3px, #222 4px); }
.disc-cover { width: 180px; height: 180px; border-radius: 50%; background-size: cover; background-position: center; position: relative; z-index: 2; border: 4px solid #000; transition: background-image 0.5s; }
@keyframes rotate { from{transform: rotate(0deg);} to{transform: rotate(360deg);} }

#audioVisualizer { 
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); 
    width: 100%; height: 100%; 
    z-index: 0; 
    pointer-events: none; 
    filter: blur(1px); 
    opacity: 0.8; 
}

.lyric-scroll { height: 70%; width: 90%; overflow-y: scroll; text-align: center; scroll-behavior: smooth; }
.lyric-line { color: rgba(255,255,255,0.4); font-size: 16px; padding: 14px 0; transition: color 0.3s; cursor: pointer; word-wrap: break-word; overflow-wrap: break-word; }
.lyric-line:hover { color: rgba(255,255,255,0.7); }
.lyric-line.active { color: var(--primary); font-weight: 600; }

.player-controls { padding: 30px 30px calc(60px + var(--safe-bottom)); color: white; position: relative; overflow: visible; }
.p-info { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; position: relative; overflow: visible; }
.p-text { flex: 1; text-align: left; overflow: hidden; margin-right: 15px; }
.p-title { 
    font-size: 22px; 
    font-weight: 700; 
    margin-bottom: 5px; 
    white-space: nowrap; 
    display: inline-block;
}
/* 跑马灯效果 */
.p-title.marquee {
    animation: marqueeTitle 10s linear infinite;
}
.p-title.marquee:hover {
    animation-play-state: paused;
}
@keyframes marqueeTitle {
    0%, 20% { transform: translateX(0); }
    80%, 100% { transform: translateX(var(--marquee-distance, -50%)); }
}
.p-artist { 
    font-size: 14px; 
    opacity: 0.6; 
    white-space: nowrap; 
    display: inline-block;
}
.p-artist.marquee {
    animation: marqueeArtist 8s linear infinite;
}
.p-artist.marquee:hover {
    animation-play-state: paused;
}
@keyframes marqueeArtist {
    0%, 20% { transform: translateX(0); }
    80%, 100% { transform: translateX(var(--marquee-distance, -50%)); }
}
.p-like-btn { font-size: 24px; color: rgba(255,255,255,0.3); transition: 0.3s; cursor: pointer; margin-left: 20px; position: relative; z-index: 10; }
.p-like-btn.liked { color: #ef4444; animation: heartBeat 0.3s ease; }
@keyframes heartBeat { 0%{transform:scale(1);} 50%{transform:scale(1.2);} 100%{transform:scale(1);} }

.p-progress { width: 100%; height: 4px; background: rgba(255,255,255,0.1); border-radius: 2px; margin-bottom: 10px; position: relative; cursor: pointer; }
.p-bar { width: 0%; height: 100%; background: var(--primary); border-radius: 2px; }
.volume-control { display: flex; align-items: center; gap: 10px; margin-bottom: 30px; }
.volume-control input { flex: 1; accent-color: var(--primary); height: 4px; border-radius: 2px; }
.p-actions { display: flex; justify-content: space-between; align-items: center; }
.p-btn { font-size: 22px; color: #fff; opacity: 0.8; }
.p-play { width: 70px; height: 70px; background: #fff; border-radius: 50%; color: #111; display: flex; justify-content: center; align-items: center; font-size: 26px; box-shadow: 0 8px 24px rgba(255, 255, 255, 0.25); }
.p-play:active { transform: scale(0.95); background: #eee; }

/* --- 个人中心卡片适配 --- */
.vip-card-wrap { padding: 0 24px 25px; }
.vip-card { 
    background: var(--bg-surface); 
    border-radius: 24px; 
    height: 120px; 
    color: var(--text-main); 
    position: relative; 
    overflow: hidden; 
    box-shadow: 0 15px 30px -10px rgba(0,0,0,0.05); 
    display: flex;
    border: 1px solid var(--border);
}

.user-section-local {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-right: 1px solid var(--border);
    position: relative;
}
.user-section-local:active { background: rgba(0,0,0,0.03); }

.user-section-netease {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    cursor: pointer;
}
.user-section-netease:active { background: rgba(0,0,0,0.03); }

.user-avatar-small { 
    width: 48px; height: 48px; border-radius: 50%; border: 3px solid var(--bg-app); 
    background-color: #333; background-size: cover; background-position: center; 
    margin-bottom: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); 
    position: relative;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.user-avatar-small:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}
.user-avatar-small:active {
    transform: scale(0.95);
}
/* 头像上传相机图标 */
.avatar-camera-icon {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    color: white;
    border: 2px solid var(--bg-app);
    pointer-events: none;
}
.user-name-text { font-size: 14px; font-weight: 700; color: var(--text-main); max-width: 90%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-desc-text { font-size: 10px; color: var(--text-sub); margin-top: 2px; font-weight: 500; }

.login-btn-small { 
    padding: 6px 14px; border-radius: 20px; background: var(--bg-app); 
    font-size: 11px; display: flex; align-items: center; gap: 6px; backdrop-filter: blur(5px);
    border: 1px solid var(--border);
    color: var(--text-main);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.netease-logo-icon { width: 14px; height: 14px; border-radius: 50%; background: #e60026; display: flex; justify-content: center; align-items: center; font-size: 8px; font-weight: bold; color: white; }

.vip-badge {
    position: absolute; top: 12px; right: 12px;
    background: linear-gradient(90deg, #e3c495, #cfa46e);
    color: #583c16; font-size: 9px; padding: 2px 6px; border-radius: 6px;
    font-weight: 800; display: none; box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.vip-badge.active { display: block; }

.grid-menu { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; padding: 0 24px 30px; }
.grid-item { background: var(--bg-surface); padding: 20px; border-radius: 24px; display: flex; flex-direction: column; justify-content: center; border: 1px solid var(--border); box-shadow: 0 4px 15px rgba(0,0,0,0.02); }
.grid-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--bg-app); display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 18px; margin-bottom: 12px; box-shadow: 0 4px 10px rgba(0,0,0,0.03); }
.grid-item h4 { font-size: 14px; color: var(--text-main); font-weight: 600; }

.login-view-container { padding: 40px 30px; display: flex; flex-direction: column; justify-content: center; min-height: 60vh; }
.login-header { text-align: center; margin-bottom: 40px; }
.input-group { background: var(--bg-surface); border-radius: 18px; padding: 16px 20px; margin-bottom: 16px; display: flex; align-items: center; border: 1px solid var(--border); }
.input-group input { border: none; background: transparent; width: 100%; outline: none; color: var(--text-main); font-size: 15px; margin-left: 10px; }
.login-btn { width: 100%; padding: 18px; background: var(--primary-gradient); color: white; border: none; border-radius: 18px; font-weight: bold; margin-top: 10px; font-size: 16px; box-shadow: 0 8px 20px rgba(31, 204, 148, 0.3); }

/* 模态框 */
.modal-overlay { 
    position: absolute; inset: 0; background: rgba(0,0,0,0.6); z-index: 2000; 
    display: none; 
    opacity: 0;
    transition: opacity 0.25s ease;
    will-change: opacity;
    /* 居中修复 */
    justify-content: center;
    align-items: center;
}
.modal-overlay.show {
    display: flex;
    opacity: 1;
}
.modal-content { 
    background: var(--bg-app); border-radius: 30px; padding: 24px; color: var(--text-main); 
    box-shadow: 0 20px 50px rgba(0,0,0,0.2); 
    transform: scale(0.95);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
    will-change: transform, opacity;
}
.modal-overlay.show .modal-content {
    transform: scale(1);
    opacity: 1;
}
.bottom-sheet { 
    position: absolute; bottom: 0; left: 0; right: 0; border-radius: 30px 30px 0 0; max-height: 70%; 
    display: flex; flex-direction: column; 
    transform: translateY(100%);
    opacity: 1;
    /* 覆盖 flex 居中，保持底部定位 */
    margin: auto auto 0 auto;
    padding-bottom: var(--safe-bottom);
}
.modal-overlay.show .bottom-sheet {
    transform: translateY(0);
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; border-bottom: 1px solid var(--border); padding-bottom: 15px; }
.modal-header h3 { font-size: 18px; font-weight: 700; }

.queue-list { overflow-y: auto; max-height: 400px; }
.queue-item { 
    display: flex; 
    align-items: center; 
    padding: 10px; 
    border-bottom: 1px solid var(--border); 
    font-size: 14px; 
    background: transparent;
    transition: background 0.2s;
    gap: 12px;
}
.queue-item.active { background: rgba(31, 204, 148, 0.1); }
.queue-item.active .queue-item-title { color: var(--primary); font-weight: 600; }
.queue-item.selected { background-color: var(--bg-surface); }
.queue-item[draggable="true"] { cursor: move; }
.queue-item[draggable="true"]:active { background: var(--bg-surface); opacity: 0.8; }
.queue-item-img {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}
.queue-item-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}
.queue-item-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.queue-item-artist {
    font-size: 12px;
    color: var(--text-sub);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 5px;
}
.queue-item-remove {
    color: var(--text-sub);
    padding: 8px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
}
.queue-item-remove:hover {
    opacity: 1;
    color: #ef4444;
}

.center-box { 
    position: relative; 
    top: auto; 
    left: auto; 
    transform: none; 
    width: 85%; 
    max-width: 320px;
    text-align: center; 
}
.playlist-select-list { max-height: 250px; overflow-y: auto; margin: 20px 0; }
.playlist-option { padding: 14px; background: var(--bg-surface); margin-bottom: 10px; border-radius: 16px; text-align: left; font-weight: 500; }
.create-playlist-row { display: flex; gap: 10px; margin-top: 20px; }
.create-playlist-row input { flex: 1; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--input-bg); color: var(--text-main); outline: none; }
.create-playlist-row button { padding: 0 18px; background: var(--primary); color: white; border: none; border-radius: 12px; font-weight: bold; }

.qr-container { display: flex; flex-direction: column; align-items: center; padding: 20px 0; }
.qr-img { width: 180px; height: 180px; background: #f1f5f9; margin-bottom: 20px; border-radius: 20px; padding: 10px; }
.qr-status { font-size: 14px; color: var(--text-sub); }

/* 网易云登录方式切换 */
.netease-login-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
}
.netease-login-tab {
    flex: 1;
    padding: 10px;
    text-align: center;
    font-size: 13px;
    color: var(--text-sub);
    cursor: pointer;
    transition: all 0.2s;
    background: var(--bg-surface);
}
.netease-login-tab.active {
    background: var(--primary);
    color: white;
    font-weight: 600;
}
.netease-login-tab:hover:not(.active):not(.disabled) {
    background: var(--bg-app);
}
.netease-login-tab.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    position: relative;
}
.netease-login-tab.disabled::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.menu-list { display: flex; flex-direction: column; gap: 5px; }
.menu-item { padding: 14px; font-size: 16px; cursor: pointer; display: flex; align-items: center; gap: 12px; border-radius: 12px; color: var(--text-main); }
.menu-item:hover { background: var(--bg-surface); }
.menu-item i { width: 24px; text-align: center; font-size: 18px; color: var(--text-sub); }

/* 当前播放歌曲高亮 */
.song-row.current-playing {
    border: 1px solid rgba(31, 204, 148, 0.3); 
    background-color: rgba(31, 204, 148, 0.05); 
}
[data-theme="dark"] .song-row.current-playing {
    border-color: rgba(31, 204, 148, 0.2);
    background-color: rgba(31, 204, 148, 0.1);
}

/* 歌手详情页头部 */
.artist-header {
    position: relative;
    height: calc(280px + var(--safe-top));
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 20px 24px;
    padding-top: calc(20px + var(--safe-top));
    color: white;
}

.artist-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.6);
    z-index: 0;
}

.artist-info {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    width: 100%;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
    border-radius: 16px; 
    padding: 10px; 
    margin-left: -10px; 
}
.artist-info:active {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(0.98);
}

.artist-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 3px solid rgba(255,255,255,0.8);
    margin-right: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.artist-text { flex: 1; }
.artist-text h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 5px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.artist-text p {
    font-size: 12px;
    opacity: 0.9;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 5px rgba(0,0,0,0.3);
}

/* 播放器歌手名 */
#pArtist {
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: rgba(255,255,255,0.3);
    text-underline-offset: 3px;
}
#pArtist:active { opacity: 0.7; }

#artistPage .list-page-header { pointer-events: none; }
#artistPage .list-page-header .icon-btn { pointer-events: auto; }

/* 歌手页面专辑样式 */
#artistAlbumList {
    padding: 0 24px;
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px; 
    scrollbar-width: none;
}

.album-card {
    min-width: 110px;
    width: 110px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.2s;
}
.album-card:active { transform: scale(0.95); }

.album-img {
    width: 110px;
    height: 110px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    margin-bottom: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.album-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-main);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.album-date { font-size: 10px; color: var(--text-sub); margin-top: 2px; }

/* [新增] 可点击的标题样式 */
.section-title.clickable {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 8px;
    margin: 0 12px; 
    padding: 10px 12px !important; 
}

.section-title.clickable:active {
    background-color: rgba(0, 0, 0, 0.05);
    opacity: 0.8;
}

[data-theme="dark"] .section-title.clickable:active {
    background-color: rgba(255, 255, 255, 0.05);
}

/* --- 听歌识曲样式 --- */
.recognition-modal {
    max-width: 320px;
    text-align: center;
}

.recognition-main-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--primary), #0ea5e9);
    color: white;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(31, 204, 148, 0.4);
}

.recognition-main-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(31, 204, 148, 0.5);
}

.recognition-main-btn.recording {
    background: linear-gradient(135deg, #ef4444, #f97316);
    animation: pulse-recording 1.5s infinite;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4);
}

.recognition-main-btn.disabled {
    background: var(--bg-surface);
    cursor: not-allowed;
    box-shadow: none;
}

@keyframes pulse-recording {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.recognition-success {
    background: var(--bg-surface);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    margin-bottom: 5px;
}

.recognition-icon {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary), #0ea5e9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

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

.recognition-title {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recognition-artist {
    font-size: 13px;
    color: var(--text-sub);
    margin-top: 2px;
}

.recognition-album {
    font-size: 11px;
    color: var(--text-sub);
    opacity: 0.7;
    margin-top: 2px;
}

.recognition-score {
    font-size: 11px;
    color: var(--primary);
    background: rgba(31, 204, 148, 0.1);
    padding: 4px 8px;
    border-radius: 10px;
    flex-shrink: 0;
}

.recognition-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.recognition-btn {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-surface);
    color: var(--text-main);
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
}

.recognition-btn:hover {
    background: var(--bg-app);
}

.recognition-btn.primary {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.recognition-btn.primary:hover {
    opacity: 0.9;
}

.recognition-empty {
    padding: 20px;
    color: var(--text-sub);
}

.recognition-empty i {
    font-size: 40px;
    margin-bottom: 10px;
    opacity: 0.5;
}

.recognition-empty.error i {
    color: #f59e0b;
}

.recognition-loading {
    padding: 30px;
}

.spinner-small {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* --- 音轨分离功能样式 --- */
.p-right-btns {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 15px;
}


.p-stem-btn {
    font-size: 20px;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.2s;
    padding: 5px;
}
.p-stem-btn:hover {
    color: var(--primary);
}
.p-stem-btn.active {
    color: var(--primary);
}

/* 音轨分离模态框 */
.stem-modal {
    max-width: 340px;
}

.stem-status {
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.stem-idle {
    text-align: center;
    color: var(--text-sub);
}
.stem-idle p {
    font-size: 13px;
}

.stem-processing {
    text-align: center;
}
.stem-processing i {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 15px;
    animation: spin 1.5s linear infinite;
}
.stem-processing p {
    font-size: 13px;
    color: var(--text-sub);
    margin-bottom: 10px;
}
.stem-progress {
    width: 100%;
    height: 6px;
    background: var(--bg-surface);
    border-radius: 3px;
    overflow: hidden;
}
.stem-progress-bar {
    height: 100%;
    background: var(--primary);
    border-radius: 3px;
    transition: width 0.3s;
    width: 0%;
}

.stem-controls {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.stem-track {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 16px;
    background: var(--bg-surface);
    border-radius: 16px;
    border: 1px solid var(--border);
}

.stem-track-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
    font-weight: 600;
    font-size: 14px;
}
.stem-track-info i {
    font-size: 16px;
    color: var(--primary);
    width: 20px;
    text-align: center;
}

.stem-slider-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stem-slider {
    flex: 1;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--border);
    border-radius: 3px;
    outline: none;
}
.stem-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(31, 204, 148, 0.4);
}
.stem-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.stem-value {
    font-size: 12px;
    color: var(--text-sub);
    min-width: 36px;
    text-align: right;
    font-weight: 600;
}

.stem-presets {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 5px;
}

.stem-preset-btn {
    padding: 8px 16px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text-main);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.stem-preset-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.stem-preset-btn:active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* 新的大按钮预设样式 */
.stem-presets-main {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.stem-preset-btn-large {
    flex: 1;
    min-width: 80px;
    padding: 16px 12px;
    background: var(--bg-surface);
    border: 2px solid var(--border);
    border-radius: 16px;
    color: var(--text-main);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.stem-preset-btn-large i {
    font-size: 24px;
    color: var(--text-sub);
    transition: color 0.2s;
}
.stem-preset-btn-large:hover {
    border-color: var(--primary);
}
.stem-preset-btn-large:hover i {
    color: var(--primary);
}
.stem-preset-btn-large.active {
    border-color: var(--primary);
    background: rgba(31, 204, 148, 0.1);
}
.stem-preset-btn-large.active i {
    color: var(--primary);
}

/* 音量控制 */
.stem-volume-control {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 16px;
    background: var(--bg-surface);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.stem-volume-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-main);
    font-weight: 500;
}

.stem-volume-label i {
    color: var(--primary);
}

.stem-volume-label span:last-child {
    margin-left: auto;
    color: var(--primary);
    font-weight: 600;
}

.stem-volume-slider {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--border);
    border-radius: 3px;
    outline: none;
}

.stem-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(31, 204, 148, 0.4);
}

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

.stem-hint {
    font-size: 11px;
    color: var(--text-sub);
    text-align: center;
    margin-top: 5px;
}

.stem-start-btn {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    box-shadow: 0 6px 20px rgba(31, 204, 148, 0.3);
}
.stem-start-btn:hover {
    background: #17b583;
}
.stem-start-btn:disabled {
    background: var(--text-sub);
    cursor: not-allowed;
    box-shadow: none;
}

.stem-error {
    text-align: center;
    color: #ef4444;
}
.stem-error i {
    font-size: 40px;
    margin-bottom: 15px;
}
.stem-error p {
    font-size: 13px;
}

/* --- 评论功能样式 --- */
.p-comment-btn {
    font-size: 18px;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.2s;
    padding: 5px;
    margin-right: 5px;
}
.p-comment-btn:hover {
    color: var(--primary);
}

.comments-modal {
    max-height: 60vh;
    display: flex;
    flex-direction: column;
}

.comments-list {
    flex: 1;
    overflow-y: auto;
    padding: 0 5px;
    min-height: 150px;
    max-height: calc(60vh - 140px);
}

.comments-section {
    margin-bottom: 20px;
}

.comments-section-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.comment-item {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    gap: 12px;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-surface);
    flex-shrink: 0;
}

.comment-body {
    flex: 1;
    min-width: 0;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.comment-nickname {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
}

.comment-time {
    font-size: 11px;
    color: var(--text-sub);
}

.comment-content {
    font-size: 14px;
    color: var(--text-main);
    line-height: 1.6;
    word-break: break-word;
}

.comment-reply {
    margin-top: 8px;
    padding: 10px;
    background: var(--bg-surface);
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-sub);
    line-height: 1.5;
}

.reply-user {
    color: var(--primary);
    font-weight: 500;
}

.comment-actions {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.comment-like, .comment-reply-btn {
    font-size: 12px;
    color: var(--text-sub);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}

.comment-like:hover, .comment-reply-btn:hover {
    color: var(--primary);
}

.comment-like.liked {
    color: #ef4444;
}

.comment-like.liked i {
    color: #ef4444;
}

.comments-load-more {
    text-align: center;
    padding: 15px;
    color: var(--primary);
    font-size: 13px;
    cursor: pointer;
    border-radius: 10px;
    margin: 10px 0;
    background: var(--bg-surface);
}

.comments-load-more:hover {
    background: var(--border);
}

.comments-input-area {
    display: flex;
    gap: 10px;
    padding: 15px 0 5px;
    border-top: 1px solid var(--border);
    margin-top: 10px;
    align-items: flex-end;
}

.comments-input-area textarea {
    flex: 1;
    min-height: 40px;
    max-height: 100px;
    padding: 10px 15px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--bg-surface);
    color: var(--text-main);
    font-size: 14px;
    resize: none;
    outline: none;
    font-family: inherit;
    transition: border-color 0.2s;
}

.comments-input-area textarea:focus {
    border-color: var(--primary);
}

.comments-input-area textarea::placeholder {
    color: var(--text-sub);
}

.comments-input-area button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    transition: all 0.2s;
}

.comments-input-area button:hover {
    background: #17b583;
    transform: scale(1.05);
}

.comments-input-area button:disabled {
    background: var(--text-sub);
    cursor: not-allowed;
    transform: none;
}

/* ============ 网易云用户主页卡片样式 ============ */
.netease-user-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    margin: 0 24px 20px;
    background: var(--bg-surface);
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    border: 1px solid var(--border);
}

.user-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background-size: cover;
    background-position: center;
    filter: blur(0);
    transform: scale(1.1);
}

.user-card-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, 
        rgba(0,0,0,0.1) 0%, 
        rgba(0,0,0,0.4) 50%,
        var(--bg-surface) 100%);
}

.user-card-content {
    position: relative;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding-top: 70px;
}

.user-card-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 3px solid var(--bg-app);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    object-fit: cover;
    flex-shrink: 0;
    margin-top: -20px;
}

.user-card-info {
    flex: 1;
    min-width: 0;
    padding-top: 5px;
}

.user-card-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.user-card-name .vip-tag {
    font-size: 9px;
    padding: 2px 6px;
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: #000;
    border-radius: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.user-card-stats {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: var(--text-sub);
    margin-bottom: 10px;
}

.user-card-stats span {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.user-card-stats span strong {
    color: var(--text-main);
    font-weight: 700;
    font-size: 16px;
}

.user-card-sign {
    font-size: 12px;
    color: var(--text-sub);
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    background: var(--input-bg);
    padding: 8px 12px;
    border-radius: 10px;
    margin-top: 5px;
}

[data-theme="dark"] .user-card-bg::after {
    background: linear-gradient(180deg, 
        rgba(0,0,0,0.2) 0%, 
        rgba(0,0,0,0.6) 50%,
        var(--bg-surface) 100%);
}

.list-section-title {
    padding: 15px 24px 10px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
}

/* 订阅按钮样式 */
.subscribe-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(31, 204, 148, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.subscribe-btn:hover {
    background: rgba(31, 204, 148, 0.25);
    transform: scale(1.1);
}

.subscribe-btn:active {
    transform: scale(0.95);
    background: var(--primary);
    color: white;
}


/* ============ 排行榜样式 ============ */
.toplists-scroll {
    display: flex;
    gap: 12px;
    padding: 0 24px 10px;
}

.toplist-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    height: 100px;
    padding: 16px;
    background: linear-gradient(135deg, var(--bg-surface) 0%, var(--border) 100%);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
}

.toplist-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.toplist-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.toplist-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    text-align: center;
}

/* ============ 逐字歌词样式 ============ */
.lyric-line.word-by-word {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
}

.lyric-word {
    position: relative;
    display: inline-block;
    white-space: pre;
}

.lyric-word-text {
    position: relative;
    color: rgba(255, 255, 255, 0.35);
    transition: color 0.15s;
}

.lyric-word-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    color: var(--primary);
    font-weight: inherit;
    clip-path: inset(0 100% 0 0);
    will-change: clip-path;
    transition: clip-path 0.05s linear;
    pointer-events: none;
}

/* 当前行：底层文字变得更透明，减少重影 */
.lyric-line.active .lyric-word-text {
    color: rgba(255, 255, 255, 0.25);
}

/* 已播放完的字词，底层完全隐藏 */
.lyric-word.played .lyric-word-text {
    color: transparent;
}

/* 非当前行重置 */
.lyric-line:not(.active) .lyric-word-fill {
    clip-path: inset(0 100% 0 0) !important;
    transition: none;
}

.lyric-line:not(.active) .lyric-word-text {
    color: rgba(255, 255, 255, 0.35);
}


/* ============ 均衡器样式 ============ */
.eq-modal {
    max-width: 420px;
    width: 92%;
    padding: 20px 24px 28px;
}

.eq-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
    justify-content: center;
}

.eq-preset-btn {
    padding: 10px 18px;
    border-radius: 20px;
    background: var(--bg-surface);
    color: var(--text-sub);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid var(--border);
}

.eq-preset-btn:hover {
    background: var(--border);
}

.eq-preset-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.eq-sliders {
    display: flex;
    justify-content: flex-start;
    gap: 6px;
    padding: 15px 10px;
    background: var(--bg-surface);
    border-radius: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* 隐藏滚动条但保持功能 */
.eq-sliders::-webkit-scrollbar {
    height: 4px;
}

.eq-sliders::-webkit-scrollbar-track {
    background: transparent;
}

.eq-sliders::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 2px;
}

.eq-slider-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    min-width: 36px;
}

.eq-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 6px;
    height: 100px;
    background: var(--border);
    border-radius: 3px;
    outline: none;
    writing-mode: vertical-lr;
    direction: rtl;
}

.eq-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(31, 204, 148, 0.5);
}

.eq-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.eq-value {
    font-size: 10px;
    color: var(--primary);
    font-weight: 600;
    min-width: 32px;
    text-align: center;
}

.eq-freq {
    font-size: 9px;
    color: var(--text-sub);
    opacity: 0.8;
}

/* ============ MV 播放器样式 ============ */
.mv-container {
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
}

.mv-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    color: white;
}

.mv-info h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.mv-info span {
    font-size: 13px;
    opacity: 0.7;
}

#mvVideo {
    width: 100%;
    max-height: 70vh;
    background: black;
    border-radius: 12px;
}

/* 播放器按钮样式调整 */
.p-mv-btn, .p-eq-btn {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.2s;
    padding: 8px;
}

.p-mv-btn:hover, .p-eq-btn:hover {
    color: var(--primary);
    transform: scale(1.1);
}


/* ============ 播放器功能菜单 ============ */
.player-func-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: auto;
    bottom: 100%;
    margin-bottom: -20px;
    padding-right: 25px;
    z-index: 100;
    display: none;
    justify-content: flex-end;
}

.player-func-menu.show {
    display: flex;
}

.func-menu-bubble {
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 10px 6px;
    display: flex;
    flex-direction: row;
    gap: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    transform: scale(0.5) translateY(10px);
    transform-origin: bottom right;
    opacity: 0;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.player-func-menu.show .func-menu-bubble {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.func-bubble-arrow {
    position: absolute;
    bottom: -8px;
    right: 12px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid rgba(30, 30, 30, 0.95);
}

.func-menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 14px;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s;
    color: white;
    min-width: 56px;
}

.func-menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.func-menu-item:active {
    transform: scale(0.95);
}

.func-menu-item i {
    font-size: 20px;
    color: var(--primary);
}

.func-menu-item span {
    font-size: 11px;
    font-weight: 500;
    opacity: 0.9;
}

/* 分享平台按钮样式 */
.share-platform-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 12px;
    transition: all 0.2s;
}

.share-platform-btn:hover {
    background: var(--bg-surface);
}

.share-platform-btn:active {
    transform: scale(0.95);
}

.share-platform-btn span {
    font-size: 11px;
    color: var(--text-sub);
}

/* 更多按钮样式 */
.p-more-btn {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s;
    padding: 8px;
}

.p-more-btn:hover {
    color: var(--primary);
}

.p-more-btn.active {
    color: var(--primary);
    transform: rotate(90deg);
}


/* 回到顶部按钮 */
.scroll-top-btn {
    position: sticky;
    bottom: 90px;
    left: calc(100% - 48px);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(31, 204, 148, 0.4);
    z-index: 100;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    margin-top: -36px;
    font-size: 14px;
}

.scroll-top-btn.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.scroll-top-btn:active {
    transform: scale(0.9);
}


/* 歌词延迟调节控件 */
.lyric-offset-control {
    position: absolute;
    bottom: 50%;
    right: 0;
    transform: translateY(50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 16px 0 0 16px;
    padding: 10px 8px;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lyric-offset-control.visible {
    opacity: 1;
    pointer-events: auto;
}

.lyric-offset-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    transition: all 0.2s;
}

.lyric-offset-btn:active {
    transform: scale(0.9);
    background: rgba(255, 255, 255, 0.25);
}

.lyric-offset-value {
    min-width: 32px;
    text-align: center;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    cursor: pointer;
    padding: 2px 0;
}

.lyric-offset-value:active {
    color: var(--primary);
}

/* 歌词翻译按钮 */
.lyric-translation-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    transition: all 0.2s;
    z-index: 10;
}

.lyric-translation-btn:active {
    transform: scale(0.9);
}

.lyric-translation-btn.active {
    background: var(--primary);
    color: white;
}

/* 歌词音译按钮（日语/韩语） */
.lyric-romaji-btn {
    position: absolute;
    top: 10px;
    right: 56px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    transition: all 0.2s;
    z-index: 10;
}

.lyric-romaji-btn:active {
    transform: scale(0.9);
}

.lyric-romaji-btn.active {
    background: var(--primary);
    color: white;
}

/* 歌词音译文本（汉语拼音风格） */
.lyric-romaji {
    display: block;
    width: 100%;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 6px;
    font-weight: 400;
    transition: color 0.3s;
    line-height: 1.5;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    letter-spacing: 0.5px;
    text-transform: lowercase;
}

.lyric-line.active .lyric-romaji {
    color: rgba(31, 204, 148, 0.85);
}

/* 歌词翻译文本 */
.lyric-translation {
    display: block;
    width: 100%;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 8px;
    font-weight: 400;
    transition: color 0.3s;
    line-height: 1.4;
}

.lyric-line.active .lyric-translation {
    color: rgba(255, 255, 255, 0.65);
}

/* 有翻译的歌词行间距调整 */
.lyric-line.has-translation {
    padding-bottom: 12px;
    margin-bottom: 8px;
}

/* 逐字歌词有翻译时，让歌词内容换行显示 */
.lyric-line.word-by-word.has-translation {
    flex-wrap: wrap;
    justify-content: center;
}

.lyric-line.word-by-word.has-translation .lyric-translation {
    flex-basis: 100%;
    text-align: center;
}

/* 逐字歌词有音译时的样式 */
.lyric-line.word-by-word.has-translation .lyric-romaji {
    flex-basis: 100%;
    text-align: center;
}

/* 平台切换标签 */
.platform-tabs {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    background: var(--bg-app);
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.platform-tabs::-webkit-scrollbar {
    display: none;
}

.platform-tab {
    flex-shrink: 0;
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    background: var(--bg-surface);
    color: var(--text-sub);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.platform-tab:hover {
    background: var(--input-bg);
    color: var(--text-main);
}

.platform-tab.active {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 12px rgba(31, 204, 148, 0.3);
}

.platform-tab i {
    font-size: 14px;
}
