[v-cloak] {
    display: none !important;
}

/* 定义基础尺寸和亮色模式变量 */
:root {
    --sidebar-width: 260px;
    --topbar-height: 54px;
    --accent-color: #fa2d48;

    /* 亮色模式 (Light Mode) 默认配色 */
    --bg-base: #ffffff;
    --bg-base-topbar: var(--bg-base);
    --loading-bg: rgba(255, 255, 255, 0.5);
    --text_card-base: rgba(0, 0, 0, 0.01);
    --sidebar-bg: rgba(246, 246, 246, 0.8);
    --text-main: #333333;
    --text-muted: #8e8e93;
    --border-color: #e5e5e5;
    --hover-bg: rgba(0, 0, 0, 0.05);
    --search-bg: rgba(0, 0, 0, 0.05);
    --lcd-bg: rgba(0, 0, 0, 0.05);
    --topbar-bg: rgb(246, 246, 246);
    --topbar-border: rgba(0, 0, 0, 0.08);
    --topbar-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 0px rgba(0, 0, 0, 0.04);

}

/* 深色模式 (Dark Mode) 变量覆盖 */
[data-theme="dark"] {
    --bg-base: #2d2d2d;
    --bg-base-topbar: #1e1e1e;
    --loading-bg: rgba(0, 0, 0, 0.5);
    --text_card-base: rgba(255, 255, 255, 0.01);
    --sidebar-bg: rgba(40, 40, 40, 0.95);
    --text-main: #ffffff;
    --text-muted: #8e8e93;
    --border-color: #333333;
    --hover-bg: rgba(255, 255, 255, 0.1);
    --search-bg: rgba(0, 0, 0, 0.2);
    --lcd-bg: rgba(255, 255, 255, 0.05);
    --topbar-bg: rgb(32, 32, 32);
    --topbar-border: rgba(255, 255, 255, 0.05);
    --topbar-shadow: none;
}

[v-cloak] { display: none; }

body, html {
    margin: 0; padding: 0; height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-base);
    color: var(--text-main);
    overflow: hidden;
    user-select: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* 顶天立地 Grid 布局 */
.app-container {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    grid-template-rows: var(--topbar-height) 1fr;
    height: 100vh;
}

/* 左侧边栏 */
.sidebar {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* 顶部搜索与主题切换区 */
.sidebar-header {
    padding: 20px 15px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-box {
    flex: 1;
    padding: 6px 10px;
    background: var(--search-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    display: flex;
    align-items: center;
}
.search-box input {
    border: none; background: transparent; outline: none; width: 100%; font-size: 13px; color: var(--text-main); margin-left: 6px;
}
.search-box input::placeholder { color: var(--text-muted); }

/* 主题切换按钮 */
.theme-btn {
    width: 28px; height: 28px;
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    transition: background 0.2s;
}
.theme-btn:hover { background: var(--hover-bg); color: var(--text-main); }

/* 侧边栏菜单项 */
.sidebar-section { margin-bottom: 20px; }
.sidebar-title {
    font-size: 11px; font-weight: 600; color: var(--text-muted); padding: 0 20px 6px;
}
.sidebar-item {
    padding: 6px 20px; font-size: 13px; cursor: pointer; display: flex; align-items: center; transition: all 0.2s;
}
.sidebar-item:hover { background: var(--hover-bg); border-radius: 6px; margin: 0 10px; padding: 6px 10px; }
.sidebar-item.active { background: var(--hover-bg); border-radius: 6px; margin: 0 10px; padding: 6px 10px; color: var(--accent-color); font-weight: 500; }

/* 底部状态区 */
.status-bar {
    margin-top: auto; padding: 15px 20px; font-size: 12px; color: var(--text-muted);
    border-top: 1px solid var(--border-color); display: flex; align-items: center; gap: 10px;
}

/* 主内容区 */
.main-content {
    grid-column: 2 / 3; grid-row: 2 / 3;
    padding: 30px 40px; overflow-y: auto; background: var(--bg-base);
}

/* 公告栏 */
.announcement-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
    padding-bottom: 40px;
}

.text-card {
    background: var(--text_card-base);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);

    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
}

.text-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.text-card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.text-card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
}

.text-card-time {
    font-size: 13px;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

.text-card-content {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

.text-card-content p {
    margin: 0 0 10px 0;
}
.text-card-content p:last-child {
    margin-bottom: 0;
}

@keyframes spin { 100% { transform: rotate(360deg); } }

.icon { width: 16px; height: 16px; fill: currentColor; margin-right: 10px; }
.icon-stroke {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    margin-right: 4px;
}

.user-profile {
    margin-top: auto; /* 顶到最底部 */
    padding: 12px 15px;
    margin-bottom: 15px;
    margin-left: 10px;
    margin-right: 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.user-profile:hover {
    background: var(--hover-bg);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--search-bg);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-main);
}

.user-action {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* 页面标题 */
.page-title {
    font-weight: 700;
    font-size: 28px;
    margin-top: 10px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.music-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 24px 20px;
}

/* 音乐卡片整体 */
.music-card {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    /* 配合 Hover 动画 */
    transition: transform 0.2s ease;
}

/* 轻微的点击/悬浮缩放反馈，非常有 App 质感 */
.music-card:active {
    transform: scale(0.96);
}

/* 封面容器正方形 */
.artwork-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--search-bg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.artwork-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.artwork-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    background: linear-gradient(135deg, var(--hover-bg) 0%, rgba(0,0,0,0) 100%);
}

.play-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.4); /* 半透明黑底 */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.music-card:hover .play-overlay {
    opacity: 1;
}

.btn-play-solid {
    width: 48px;
    height: 48px;
    fill: white;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
    transform: scale(0.8);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.music-card:hover .btn-play-solid {
    transform: scale(1);
}

/* 歌曲文字信息 */
.song-info {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

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

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


.track-list { display: flex; flex-direction: column; padding-bottom: 40px; }
.track-item { display: flex; align-items: center; padding: 10px 15px; border-radius: 8px; cursor: default; transition: background-color 0.2s; }
.track-item:hover { background-color: var(--hover-bg); }
.track-num { width: 30px; font-size: 13px; color: var(--text-muted); text-align: right; margin-right: 15px; font-variant-numeric: tabular-nums; }
.track-cover-small { width: 40px; height: 40px; border-radius: 4px; object-fit: cover; margin-right: 15px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.track-info { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.track-name { font-size: 14px; font-weight: 500; color: var(--text-main); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px; }
.track-meta { font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.top-bar {
    grid-column: 2 / 3; grid-row: 1 / 2;
    background: var(--bg-base-topbar); border-bottom: 1px solid var(--border-color);
    padding: 0 20px 0 0;
    height: 100%; box-sizing: border-box; z-index: 10;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;

    display: grid;
    grid-template-columns: 1fr minmax(280px, 420px) 1fr;
    align-items: center;
}


.player-controls {

    display: flex; align-items: center; justify-content: center; gap: 20px;
}
.btn-play, .btn-skip { fill: currentColor; stroke: none; cursor: pointer; transition: opacity 0.2s; }
.btn-play { width: 32px; height: 32px; margin-left: 6px; }
.btn-skip { width: 36px; height: 36px; }
.btn-play:hover, .btn-skip:hover { opacity: 0.7; }

.btn-play.is-active {
    margin-left: 3px;
    margin-right: 3px;
    transform: scale(1.05);
}

.icon-control { width: 18px; height: 18px; cursor: pointer; color: var(--text-muted); transition: all 0.2s; }
.icon-control:hover { color: var(--text-main); }
.icon-control.active-mode { color: var(--accent-color); }


.lcd-screen {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
}

.right-controls {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
}

.volume-control {
    justify-self: center;
    display: flex; align-items: center; gap: 8px;
    margin-left: 8px;
}

.volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 88px;
    height: 4px; /* 默认纤细状态 */
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    margin: 0;
    display: block;
    background: linear-gradient(to right, var(--text-muted) var(--volume-percent), var(--topbar-border) var(--volume-percent));
    transition: height 0.2s ease, border-radius 0.2s ease;
}

.volume-control:hover .volume-slider {
    height: 6px;
    border-radius: 3px;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-main);
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    transform: scale(0.6);
    opacity: 0;
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: var(--text-main);
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    transform: scale(0.6);
    opacity: 0;
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.volume-control:hover .volume-slider::-webkit-slider-thumb {
    opacity: 1;
    transform: scale(1);
}
.volume-control:hover .volume-slider::-moz-range-thumb {
    opacity: 1;
    transform: scale(1);
}


.right-action-icons {
    display: flex; align-items: center; gap: 20px;
}



.lcd-screen {
    flex: 0 0 420px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;

}
.lcd-content {
    width: 100%; height: 46px; box-sizing: border-box; background: var(--lcd-bg); border: 1px solid var(--border-color);
    border-radius: 3px; display: flex; align-items: center; overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05); transition: background 0.2s;
}
.lcd-content.empty { justify-content: center; }
.lcd-cover { width: 44px; height: 100%; display: block; object-fit: cover; border-right: 1px solid var(--border-color); }
.lcd-info {
    flex: 1;
    height: 100%;
    padding: 0 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    position: relative;
    overflow: hidden;
}
.lcd-title { font-size: 12px; font-weight: 600; color: var(--text-main); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.1;}
.lcd-artist { font-size: 11px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; line-height: 1.1;}

.lcd-meta-row {
    display: flex; justify-content: center; align-items: center; position: relative; width: 100%;
}

.lcd-time {
    position: absolute; top: 0; font-size: 10px; font-variant-numeric: tabular-nums;
    color: var(--text-muted);
    opacity: 0;
    transition: opacity 0.2s ease;
}
.lcd-time.current { left: 0; margin-top: 2px;}
.lcd-time.remaining { right: 0; margin-top: 2px;}

.lcd-content:hover .lcd-time,
.lcd-content:hover .lcd-progress::-webkit-slider-thumb {
    opacity: 1;
}

.lcd-progress-wrapper {
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 0 0;
    box-sizing: border-box;
    z-index: 10;
}

.lcd-progress {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 2px;
    border-radius: 1px;
    outline: none;
    cursor: pointer;
    margin: 0;
    display: block;
    --progress-percent: 0%;
    background: linear-gradient(to right, var(--text-muted) var(--progress-percent), var(--topbar-border) var(--progress-percent));
    transition: height 0.2s ease, border-radius 0.2s ease;
}


.lcd-content:hover .lcd-progress {
        height: 4px;
        border-radius: 2px;
}

.lcd-progress::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 4px; height: 6px; border-radius: 2px;
    background: var(--text-main);
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    opacity: 0;
    transform: scaleY(0.5);
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.lcd-content:hover .lcd-progress::-webkit-slider-thumb {
    opacity: 1; transform: scaleY(1);
}

.lcd-progress::-moz-range-thumb {
        width: 4px; height: 12px; border-radius: 2px; border: none;
        background: var(--text-main); box-shadow: 0 1px 3px rgba(0,0,0,0.3);
        opacity: 0; transform: scaleY(0.5); transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.lcd-content:hover .lcd-progress::-moz-range-thumb {
        opacity: 1; transform: scaleY(1);
}

.lcd-cover.fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--search-bg);
    border-right: 1px solid var(--topbar-border);
}

.lcd-cover.fallback svg {
    width: 22px;
    height: 22px;
    color: var(--text-muted);
    opacity: 0.5;
}


.right-sidebar {
    position: fixed; top: 0; right: 0; width: 340px; height: 100vh;
    background: var(--sidebar-bg); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
    border-left: 1px solid var(--border-color); box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 100; display: flex; flex-direction: column;
}
.right-sidebar.is-open { transform: translateX(0); }

.right-sidebar-header {
    height: 60px; border-bottom: 1px solid var(--border-color); display: flex; align-items: center; padding: 0 20px;
}
.rs-tab {
    font-size: 13px; font-weight: 600; color: var(--text-muted); margin-right: 20px; cursor: pointer; transition: color 0.2s;
}
.rs-tab:hover { color: var(--text-main); }
.rs-tab.active { color: var(--accent-color); }
.rs-close {
    width: 20px; height: 20px; margin-left: auto; stroke: var(--text-muted); stroke-width: 2; cursor: pointer;
}

.right-sidebar-content { flex: 1; overflow-y: auto; padding: 20px; }

.rs-queue-title { font-size: 16px; font-weight: 700; color: var(--text-main); margin-bottom: 15px; }
.rs-queue-item {
    display: flex; align-items: center; padding: 8px; border-radius: 6px; cursor: default; transition: background 0.2s;
}
.rs-queue-item:hover { background: var(--hover-bg); }
.rs-queue-item.is-playing { background: var(--search-bg); }
.rs-queue-cover { width: 36px; height: 36px; border-radius: 4px; object-fit: cover; margin-right: 12px; }
.rs-queue-info { display: flex; flex-direction: column; overflow: hidden; }
.rs-queue-name { font-size: 13px; font-weight: 500; color: var(--text-main); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-queue-artist { font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.rs-lyrics-view { padding: 20px 0; display: flex; flex-direction: column; gap: 24px; }
.lyric-line {
    font-size: 24px; font-weight: 700; line-height: 1.4; margin: 0;
    transition: all 0.5s ease; cursor: pointer; letter-spacing: -0.5px;
    --distance: 0;
}

.lyric-line:hover {
    opacity: 0.8 !important;
    filter: blur(0) !important;
    transform: scale(1) !important;
}

.lyric-line.future {
    color: var(--text-main);

    /* 透明度：基础 0.6，每远离一行减去 0.1 保证最低 0.1 的微弱可见度 */
    opacity: max(0.1, calc(0.6 - (var(--distance) * 0.1)));

    /* 模糊度：每远离一行，增加 0.8px 的模糊 */
    filter: blur(calc(var(--distance) * 0.8px));

    transform: scale(0.95);
    transform-origin: left center;
}
.lyric-line.current { color: var(--text-main); opacity: 1; filter: blur(0); transform: scale(1); }
.lyric-line.passed {
    color: var(--text-main);

    /* 透明度：基础 0.4，每远离一行减去 0.15 */
    opacity: max(0.1, calc(0.6 - (var(--distance) * 0.15)));

    /* 模糊度：上方歌词也同等模糊 */
    filter: blur(calc(var(--distance) * 0.8px));

    transform: scale(0.95);
    transform-origin: left center;
}

.rs-lyrics-view.is-scrolling .lyric-line {
    filter: blur(0) !important;
    opacity: 0.6 !important;
    transform: scale(0.95) !important;
}

.rs-lyrics-view.is-scrolling .lyric-line.current {
    opacity: 1 !important;
    transform: scale(1) !important;
    color: var(--accent-color); /* 翻阅时当前句变色 */
}

/* 不足 0.35s 的歌词 */
.lyric-line.visual-hold {
    color: var(--text-main);
    opacity: 1 !important;
    filter: blur(0) !important;
    transform: scale(1) !important;
    /* 不需要过渡 */
    transition: none !important;
}


/* 针对 Firefox */
.right-sidebar-content {
    scrollbar-width: none;
}

/* 针对 IE/Edge (老版本) */
.right-sidebar-content {
    -ms-overflow-style: none;
}

/* 针对 Chrome, Safari, Edge */
.right-sidebar-content::-webkit-scrollbar {
    display: none;
}

.modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    z-index: 1000;
}


.account-modal {
    width: 400px;
    background: var(--bg-base);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    overflow: hidden;
    transform: scale(1);
}

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

.modal-header h2 { margin: 0; font-size: 18px; font-weight: 600; color: var(--text-main); }

.modal-body { padding: 24px; }

.modal-profile-hero {
    display: flex; flex-direction: column; align-items: center;
    margin-bottom: 30px;
}

.modal-avatar-large {
    width: 80px; height: 80px; border-radius: 50%;
    object-fit: cover; box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-bottom: 15px;
    margin-right: 0;
}

.modal-avatar-large.fallback {
    background: var(--search-bg); display: flex; align-items: center; justify-content: center;
    color: var(--text-muted);
}
.modal-avatar-large.fallback svg { width: 36px; height: 36px; stroke-width: 1.5; }

.modal-hero-name { font-size: 20px; font-weight: 700; color: var(--text-main); margin-bottom: 4px; }
.modal-hero-status { font-size: 13px; color: var(--text-muted); }
.modal-hero-status.is-bound { color: #34c759; /* Apple 绿 */ }

.settings-group {
    background: var(--search-bg);
    border-radius: 12px;
    overflow: hidden;
}

.settings-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 20px; cursor: pointer; transition: background 0.2s;
    border-bottom: 1px solid var(--border-color);
}
.settings-item:last-child { border-bottom: none; }
.settings-item:hover { background: var(--hover-bg); }

.settings-label { font-size: 14px; font-weight: 500; color: var(--text-main); }
.settings-value { font-size: 14px; color: var(--text-muted); }

.settings-item.danger .settings-label { color: #ff3b30; /* Apple 红 */ }

.modal-fade-enter-active, .modal-fade-leave-active { transition: opacity 0.3s ease; }
.modal-fade-enter-from, .modal-fade-leave-to { opacity: 0; }
.modal-fade-enter-active .account-modal { transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.modal-fade-enter-from .account-modal { transform: scale(0.95) translateY(10px); }
.modal-fade-leave-active .account-modal { transition: transform 0.2s ease; }
.modal-fade-leave-to .account-modal { transform: scale(0.95); }


.ncm-vip-badge {
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    /* 经典黑金渐变 */
    background: linear-gradient(135deg, #333333, #111111);
    color: #f7d399;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: inline-flex;
    align-items: baseline;
}

.ncm-vip-badge.is-svip {
    background: linear-gradient(135deg, #2b2b2b, #000000);
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.ncm-level-container {
    width: 60%;
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ncm-level-text {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.ncm-level-track {
    width: 100%;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
}

.ncm-level-fill {
    height: 100%;
    background: var(--text-main);
    border-radius: 2px;
    transition: width 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.login-panel { padding: 20px; }
.login-tabs {
    display: flex; background: var(--bg-base); border-radius: 8px; padding: 4px; margin-bottom: 20px;
    border: 1px solid var(--border-color);
}
.login-tab {
    flex: 1; text-align: center; font-size: 13px; font-weight: 500; padding: 6px 0;
    color: var(--text-muted); cursor: pointer; border-radius: 6px; transition: all 0.2s;
}
.login-tab.active { background: var(--hover-bg); color: var(--text-main); box-shadow: 0 1px 3px rgba(0,0,0,0.05); }

.login-qr-view { display: flex; flex-direction: column; align-items: center; }
.qr-box { width: 140px; height: 140px; border-radius: 12px; background: white; padding: 10px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); margin-bottom: 12px; }
.qr-image { width: 100%; height: 100%; border-radius: 6px; display: block; }
.qr-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--text-muted); }
.qr-status { font-size: 13px; font-weight: 500; color: var(--text-main); }
.qr-refresh { font-size: 12px; color: var(--accent-color); cursor: pointer; margin-top: 4px; }

.login-phone-view { display: flex; flex-direction: column; gap: 12px; }
.apple-input-group { width: 100%; }
.apple-input-group.flex-group { display: flex; gap: 10px; }
.apple-input {
    width: 100%; box-sizing: border-box; padding: 10px 14px; font-size: 14px;
    background: var(--bg-base); border: 1px solid var(--border-color); border-radius: 8px;
    color: var(--text-main); outline: none; transition: border-color 0.2s;
}
.apple-input:focus { border-color: var(--accent-color); }
.apple-input.code-input { flex: 1; }

.apple-btn-primary {
    width: 100%; padding: 12px; border: none; border-radius: 8px;
    background: var(--accent-color); color: white; font-size: 14px; font-weight: 600;
    cursor: pointer; transition: opacity 0.2s; margin-top: 5px;
}
.apple-btn-primary:hover { opacity: 0.9; }

.apple-btn-secondary {
    padding: 0 16px; border: none; border-radius: 8px;
    background: var(--hover-bg); color: var(--text-main); font-size: 13px; font-weight: 500;
    cursor: pointer; transition: background 0.2s; white-space: nowrap;
}
.apple-btn-secondary:hover { background: var(--border-color); }

.toast-container {
    position: fixed;
    top: 64px;
    left: calc(50vw + (var(--sidebar-width) / 2) );
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    pointer-events: none;
}

.toast-message {
    padding: 10px 20px;
    border-radius: 30px;
    background: var(--sidebar-bg);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12), 0 1px 3px rgba(0,0,0,0.08);
    border: 1px solid var(--topbar-border);
    color: var(--text-main);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    will-change: transform, opacity;
}

.toast-icon { width: 18px; height: 18px; }

.toast-message.success { color: #34c759; border-color: rgba(52, 199, 89, 0.3); }
.toast-message.error { color: #ff3b30; border-color: rgba(255, 59, 48, 0.3); }

.toast-anim-enter-active, .toast-anim-leave-active {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.toast-anim-enter-from { opacity: 0; transform: translateY(-20px) scale(0.9); }
.toast-anim-leave-to { opacity: 0; transform: translateY(-15px) scale(0.95); }

.ncm-official-vip-icon {
    height: 16px;
    width: auto;
    object-fit: contain;
    transform: translateY(1px);
}


.global-loading-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 11000;
    background: var(--loading-bg);
    backdrop-filter: blur(30px) saturate(150%);
    -webkit-backdrop-filter: blur(30px) saturate(150%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.loading-text {
color: var(--text-muted);
}

.loading-spinner {
    color: var(--text-muted);
}

.blur-fade-enter-active, .blur-fade-leave-active {
    transition: opacity 0.45s ease-out, backdrop-filter 0.45s ease-out, -webkit-backdrop-filter 0.45s ease-out;
}
.blur-fade-leave-to {
    opacity: 0;
    backdrop-filter: blur(0px) saturate(100%);
    -webkit-backdrop-filter: blur(0px) saturate(100%);
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.loading-spinner {
    width: 56px; height: 56px;
    animation: spin 1s linear infinite;
    opacity: 0.8;
}

.mobile-warning-card {
    background: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 30px;
    width: 85%;
    max-width: 360px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.warning-icon { width: 48px; height: 48px; margin-bottom: 10px; }
.mobile-warning-card h2 { font-size: 20px; font-weight: 600; margin-bottom: 15px; color: #fff; }
.mobile-warning-card p { font-size: 14px; line-height: 1.6; color: #ddd; margin-bottom: 10px; }
.mobile-warning-card p.muted-text { font-size: 12px; color: #aaa; margin-bottom: 24px; }
.force-enter-btn { width: 100%; margin-top: 5px; }


.card-hover-actions {
    position: absolute;
    bottom: 8px;
    left: 8px;
    right: 8px;
    display: flex;
    justify-content: space-between;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.music-card:hover .card-hover-actions {
    opacity: 1;
    pointer-events: auto;
}

.card-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    color: #fff;
}

.card-action-btn:hover {
    background: rgba(0, 0, 0, 0.6);
    transform: scale(1.05);
}

.card-action-btn:active {
    transform: scale(0.95);
}

.macos-context-menu {
    position: fixed;
    z-index: 10000;
    width: 160px;
    background: rgba(40, 40, 40, 0.65);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 5px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 1px rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
}

[data-theme="light"] .macos-context-menu {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #333;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 0 1px rgba(0,0,0,0.2);
}

.context-menu-item {
    padding: 6px 10px;
    border-radius: 5px;
    cursor: default;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.1s, color 0.1s;
}

.context-menu-item:hover {
    background: var(--accent-color);
    color: #fff;
}

.context-menu-item.danger:hover {
    background: var(--accent-color);
    color: #fff;
}

.context-menu-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 4px 0;
}
[data-theme="light"] .context-menu-divider {
    background: rgba(0, 0, 0, 0.05);
}


.lyric-line.is-break {
    height: 0;
    margin: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    /* transition: height 0.8s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.8s ease; */
}

.lyric-line.is-break.current {
    height: 100px;
    opacity: 1;
    pointer-events: auto;
    filter: blur(0) !important;
    transform: scale(1) !important;
}

.lyric-line.is-break.passed {
    opacity: 0 !important;
    transform: scale(0.65) !important; /* 视觉上缩小到一半直到消失 */
}

.apple-dots-container {
    display: flex;
    gap: 8px;
    align-items: center;
    height: 100%;
    padding-left: 5px;
}

.amd-dot {
    position: relative;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    animation: amd-breathe 2s infinite alternate ease-in-out;
}
[data-theme="light"] .amd-dot { background-color: rgba(0, 0, 0, 0.1); }

.amd-dot-fill {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 50%;
    background-color: var(--text-main);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    transition: opacity 0.1s linear;
}
[data-theme="light"] .amd-dot-fill { box-shadow: none; }

@keyframes amd-breathe {
    0% { transform: translateY(1.5px) scale(0.95); }
    100% { transform: translateY(-2px) scale(1.2); }
}
.rs-lyrics-view.no-transition .lyric-line.is-break {
    transition: none !important;
}



