:root {
    /* Design Tokens - Colors */
    --color-primary: #E03F3C;
    --color-primary-hover: #b41d21;
    --color-primary-rgb: 224, 63, 60;
    --color-background: #faf9fe;
    --color-surface: #ffffff;
    --color-surface-dim: #dad9df;
    --color-surface-container: #F5F5F7;
    --color-on-surface: #1a1b1f;
    --color-neutral: #8E8E93;
    --color-border: rgba(0, 0, 0, 0.06);
    --color-shadow: rgba(0, 0, 0, 0.04);
    
    /* Shapes & Radii */
    --rounded-sm: 0.25rem;    /* 4px */
    --rounded-default: 0.5rem; /* 8px */
    --rounded-md: 0.75rem;     /* 12px */
    --rounded-lg: 1rem;       /* 16px */
    --rounded-xl: 1.5rem;     /* 24px */
    --rounded-full: 9999px;
    
    /* Spacing */
    --spacing-unit: 4px;
    --spacing-margin: 24px;
    --spacing-gutter: 16px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 32px;
    
    /* Typography */
    --font-family: "Segoe UI", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

/* Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    width: 100%;
    font-family: var(--font-family);
    background-color: var(--color-background);
    color: var(--color-on-surface);
    overflow: hidden;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
input, textarea {
    -webkit-user-select: auto;
    -moz-user-select: auto;
    -ms-user-select: auto;
    user-select: auto;
}

/* 隐藏默认滚动条，并对 mCustomScrollbar 进行现代美化 */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: var(--rounded-full);
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.25);
}

.mCSB_scrollTools {
    width: 6px !important;
    opacity: 0.6;
}
.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar {
    background-color: rgba(0, 0, 0, 0.2) !important;
    width: 4px !important;
    border-radius: var(--rounded-full) !important;
}
.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar {
    background-color: rgba(0, 0, 0, 0.4) !important;
}

/* 背景模糊图像层 */
#blur-img {
    position: fixed;
    height: 110%;
    width: 110%;
    top: -5%;
    left: -5%;
    z-index: -2;
    overflow: hidden;
    filter: blur(60px) saturate(1.2);
    transform: scale(1.05);
    background-size: cover;
    background-position: center;
    transition: background-image 1.5s ease;
}

.blur-mask {
    position: fixed;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(250, 249, 254, 0.65), rgba(240, 237, 245, 0.85));
    top: 0;
    left: 0;
    z-index: -1;
}

/* --- Layout Grid (V2 三栏流式设计) --- */
.app-layout {
    --sidebar-w: 240px;
    --sidebar-gap: 24px;
    display: flex;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    position: relative;
}
.app-layout.sidebar-collapsed {
    --sidebar-w: 80px;
}

/* 中部列容器—承载 main 与 footer，使其在 flex 布局中自然伸展 */
.center-column {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

/* 左侧导航栏 */
.sidebar {
    width: 240px;
    height: 100%;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    padding: 24px;
    z-index: 10;
    flex-shrink: 0;
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.25s ease;
    overflow: hidden;
}

/* 侧边栏折叠状态（图标保留，文字隐藏） */
.app-layout.sidebar-collapsed .sidebar {
    width: 80px;
    padding: 24px 10px;
    opacity: 1;
    border-right-color: var(--color-border);
}
/* 品牌 Logo（展开与折叠均显示） */
.brand-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
    border-radius: 6px;
}
.app-layout.sidebar-collapsed .sidebar .brand span {
    display: none; /* 折叠时隐藏品牌文字 */
}
.app-layout.sidebar-collapsed .sidebar .brand {
    justify-content: center;
    margin-bottom: 16px;
}
.app-layout.sidebar-collapsed .sidebar-menu .nav-item {
    justify-content: center;
    padding: 12px 0;
    gap: 0;
    font-size: 0; /* 隐藏文字，保留图标 */
}
.app-layout.sidebar-collapsed .sidebar-menu .nav-item svg {
    font-size: 16px; /* 重置图标上下文（SVG 不受 font-size 影响，仅为保险） */
    flex-shrink: 0;
}
/* 折叠模式：用户卡片仅保留头像 */
.app-layout.sidebar-collapsed .sidebar-user-card {
    opacity: 1;
    pointer-events: auto;
    padding: 6px 2px;
    margin: 4px 6px 8px 6px;
    background: transparent !important;
    border: none !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    display: flex;
    justify-content: center;
    align-items: center;
}
.app-layout.sidebar-collapsed .user-card-inner.logged-in {
    display: flex;
    justify-content: center;
    align-items: center;
    grid-template-columns: none;
    gap: 0;
}
.app-layout.sidebar-collapsed .user-avatar-box {
    width: 32px;
    height: 32px;
    margin: 0;
}
.app-layout.sidebar-collapsed .user-avatar-box .user-avatar {
    width: 32px;
    height: 32px;
    border-width: 1.5px;
}
.app-layout.sidebar-collapsed .user-info-box,
.app-layout.sidebar-collapsed .user-actions-box {
    display: none !important;
}
/* 折叠模式：未登录状态的多个头像容器 */
.app-layout.sidebar-collapsed .sync-avatar-container {
    flex-direction: column;
    gap: 4px;
    justify-content: center;
    align-items: center;
}
.app-layout.sidebar-collapsed .sync-avatar-item {
    width: auto !important;
}
.app-layout.sidebar-collapsed .sync-avatar-item .avatar-wrap {
    width: 28px !important;
    height: 28px !important;
    margin-bottom: 0 !important;
}
.app-layout.sidebar-collapsed .sync-avatar-item .avatar-name {
    display: none !important;
}

/* 侧边栏折叠/展开切换按钮（固定在侧边栏右边缘） */
.sidebar-toggle {
    position: fixed;
    top: 24px;
    left: 239px;
    z-index: 50;
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    border-radius: 0 8px 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-surface, rgba(255, 255, 255, 0.85));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--color-border);
    border-left: none;
    color: var(--color-on-surface);
    cursor: pointer;
    transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                background 0.25s ease,
                color 0.25s ease;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.06);
}
.sidebar-toggle:hover {
    background: var(--color-primary, #e03f3c);
    color: #ffffff;
    border-color: var(--color-primary, #e03f3c);
}
.sidebar-toggle svg {
    display: block;
    transition: transform 0.3s ease;
}
.app-layout.sidebar-collapsed .sidebar-toggle {
    left: 79px;
    border-radius: 0 8px 8px 0;
    border-left: 1px solid var(--color-border);
    box-shadow: 2px 2px 12px rgba(0, 0, 0, 0.12);
}

.sidebar .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 19px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 32px;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.sidebar-menu .nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--rounded-md);
    color: var(--color-on-surface);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

.sidebar-menu .nav-item:hover {
    background: rgba(224, 63, 60, 0.06);
    color: var(--color-primary);
}

.sidebar-menu .nav-item.active {
    background: var(--color-primary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(224, 63, 60, 0.2);
}

/* 中部数据展示区 */
.main-content {
    flex-grow: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 24px; /* 底部播放栏已纳入 flex 流，无需额外留白 */
    overflow: hidden;
    position: relative;
}

.main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.main-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-on-surface);
}

.main-header .actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 优质大按钮和 Ghost 按钮 */
.btn-modern-primary {
    background: var(--color-primary);
    color: #ffffff;
    border: none;
    padding: 10px 24px;
    border-radius: var(--rounded-xl);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(224, 63, 60, 0.2);
}
.btn-modern-primary:hover {
    background: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(224, 63, 60, 0.3);
}

.btn-modern-ghost {
    background: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
    padding: 9px 24px;
    border-radius: var(--rounded-xl);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
}
.btn-modern-ghost:hover {
    background: rgba(224, 63, 60, 0.05);
    transform: translateY(-2px);
}

/* 数据展示卡片框 */
.data-area-container {
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--color-border);
    border-radius: var(--rounded-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    position: relative;
    padding: 16px;
}

#sheet, #main-list {
    width: 100%;
    height: 100%;
    overflow-y: auto;
}

/* Grid Layout for Playlists (#sheet) */
#sheet {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    grid-auto-rows: max-content;
    gap: 24px;
    padding: 8px;
}

/* PC端启用滚动插件后，#sheet 本身为滚动外壳，内部 .mCSB_container 为网格 */
#sheet.mCustomScrollbar {
    display: block;
}

#sheet.mCustomScrollbar .mCSB_container {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    grid-auto-rows: max-content;
    gap: 24px;
    padding: 8px;
    width: 100% !important;
    margin-right: 0 !important;
}

/* 确保歌曲列表滚动容器在 PC 端也是 100% 宽度 */
#main-list.mCustomScrollbar .mCSB_container {
    width: 100% !important;
    margin-right: 0 !important;
}

.sheet-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: transparent;
    border-radius: var(--rounded-lg);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    width: 100% !important; /* 覆盖旧版 width百分比 */
    float: none !important; /* 覆盖旧版 float */
    padding: 8px;
}

.sheet-item:hover {
    transform: translateY(-6px);
}

.sheet-cover {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--rounded-lg);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    margin: 0 0 12px 0 !important; /* 覆盖原有 margin */
}

.sheet-item:hover .sheet-cover {
    box-shadow: 0 12px 32px rgba(224, 63, 60, 0.25);
}

.sheet-name {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--color-on-surface) !important;
    max-width: 100% !important;
    margin-bottom: 0 !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 正在播放的歌单指示器 */
.sheet-playing::after {
    content: "" !important;
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    background: var(--color-primary) url("../images/wave.gif") center no-repeat !important;
    background-size: 12px auto !important;
    border-radius: var(--rounded-full);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* 歌单底部一键同步与推荐栏 */
#sheet-bar {
    grid-column: 1 / -1;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}

.recommend-user-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-on-surface);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.recommend-user-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.recommend-user-btn {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    padding: 6px 14px;
    border-radius: var(--rounded-md);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    color: var(--color-on-surface);
    transition: all 0.2s ease;
}

.recommend-user-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(224, 63, 60, 0.03);
}

.sheet-title-bar {
    background: rgba(224, 63, 60, 0.05) !important;
    border: 1px dashed rgba(224, 63, 60, 0.2);
    color: var(--color-primary) !important;
    font-size: 13px;
    border-radius: var(--rounded-md) !important;
}

.login-btn {
    font-weight: 700;
    margin: 0 4px;
    text-decoration: underline;
}

/* --- Song List (#main-list) --- */
.list-item {
    display: flex !important;
    align-items: center;
    width: 100%;
    height: 56px !important; /* 统一 56px 高度 */
    line-height: 56px !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03) !important;
    padding: 0 16px !important;
    transition: all 0.25s ease !important;
    float: none !important;
    background: transparent;
}

.list-item:hover:not(.list-head) {
    background-color: rgba(224, 63, 60, 0.04) !important;
    color: var(--color-primary) !important;
}

.list-head {
    height: 44px !important;
    line-height: 44px !important;
    font-weight: 600;
    color: var(--color-neutral);
    border-bottom: 1px solid var(--color-border) !important;
}

.list-num {
    order: 1;
    width: 50px !important;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    float: none !important;
}

.music-name {
    order: 2;
    flex-grow: 1;
    max-width: 420px !important; /* 对歌曲名称最大长度进行合理限制，确保不超模 */
    margin-left: 12px !important;
    margin-right: 12px !important;
    float: none !important;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden !important; /* 从 visible 改为 hidden */
    display: flex !important;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.music-name-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 1;
}

.auth-name {
    order: 4;
    width: 150px !important;
    color: var(--color-neutral);
    float: none !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.music-album {
    order: 5;
    width: 180px !important;
    color: var(--color-neutral);
    float: none !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.list-item:hover .auth-name,
.list-item:hover .music-album {
    color: inherit;
}

/* 正在播放的歌曲行 */
.list-playing {
    background: rgba(224, 63, 60, 0.06) !important;
    color: var(--color-primary) !important;
    font-weight: 600;
}
.list-playing .list-num {
    background: url("../images/wave.gif") left center no-repeat !important;
    background-size: 10px 10px !important;
    text-indent: 14px !important;
}
.list-playing .num-text {
    display: inline !important; /* 兼容原有逻辑，只缩进文字 */
}

/* 正在播放曲目时的列表播放图标状态：优雅替换为线性双线暂停图标 */
.list-playing .icon-play {
    background-image: none !important;
    position: relative !important;
}
.list-playing .icon-play::before,
.list-playing .icon-play::after {
    content: none !important;
    display: none !important;
}

/* Hover Menu */
.list-menu-head {
    order: 3;
    width: 170px !important;
    flex-shrink: 0;
    display: block !important;
    text-align: center !important;
    color: var(--color-neutral);
    font-weight: 500;
}

.list-menu {
    order: 3;
    width: 170px !important;
    flex-shrink: 0;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 6px;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    border: none;
    opacity: 1 !important; /* 始终完全可见 */
    pointer-events: auto;
    position: relative !important;
    top: auto !important;
    right: auto !important;
    margin-top: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    float: none !important;
    z-index: 5;
}

.list-icon {
    width: 36px !important;
    height: 36px !important;
    margin: 0 !important;
    background-image: none !important;
    background-size: auto !important;
    border-radius: 8px !important;
    background-color: transparent !important;
    box-shadow: none !important;
    opacity: 1 !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    -webkit-user-drag: none !important;
    -webkit-tap-highlight-color: transparent !important;
    caret-color: transparent !important;
    outline: none !important;
}

.icon-play,
.icon-addlist,
.icon-download,
.icon-dellist,
.icon-play:hover,
.icon-addlist:hover,
.icon-download:hover,
.icon-dellist:hover {
    background-image: none !important;
    background-position: 0 0 !important;
}

.list-icon:hover {
    opacity: 1 !important;
    transform: none !important;
}

/* 隐藏移动端的默认菜单 */
.list-mobile-menu {
    display: none !important;
}

#list-foot {
}
#list-foot.list-clickable {
    color: var(--color-primary);
    font-weight: 600;
    cursor: pointer;
}
#list-foot.list-clickable:hover {
    text-decoration: underline;
}

/* --- Right Column Player Details (#player) --- */
.player-details {
    width: 320px;
    height: 100%;
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-left: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    padding: 32px 24px 124px 24px;
    flex-shrink: 0;
    z-index: 10;
    transition: all 0.3s ease;
}

.player-details .cover-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: var(--rounded-lg);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    margin-bottom: 24px;
    background: var(--color-surface-container);
    transition: transform 0.5s ease;
}

.player-details .cover-wrapper::after {
    display: none !important; /* 移除旧的黑胶唱片大圆圈阴影图 */
}

.player-details .music-cover {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    border-radius: 50% !important;
}

/* 歌词区 */
.player-details .lyric-container {
    flex-grow: 1;
    position: relative;
    overflow: hidden;
    margin-top: 8px;
    mask-image: linear-gradient(to bottom, transparent 0%, #000 15%, #000 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 15%, #000 85%, transparent 100%);
}

#lyric {
    width: 100%;
    position: absolute;
    text-align: center;
    transition: top 0.3s ease-out;
}

#lyric li {
    font-size: 14px;
    line-height: 32px;
    color: var(--color-neutral);
    opacity: 0.7;
    transition: all 0.3s ease;
    padding: 0 8px;
}

#lyric .lplaying {
    color: var(--color-primary) !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    opacity: 1 !important;
    transform: scale(1.05);
}

#music-info {
    display: none !important; /* 隐藏旧的信息按钮，我们在 UI 顶部提供更舒适的信息面板 */
}

/* --- Bottom Glass Player Bar (Footer) --- */
.footer-player {
    position: fixed;
    bottom: 24px;
    left: calc(var(--sidebar-w) + var(--sidebar-gap) + var(--cf-safe-left, 0px)) !important;
    right: 24px;
    height: 80px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(24px) saturate(1.2);
    -webkit-backdrop-filter: blur(24px) saturate(1.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    border-radius: var(--rounded-xl);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    transition: all 0.3s ease;
}

/* 桌面端：footer 脱离固定定位，在 flex 流中自然自适应宽度 */
@media (min-width: 901px) {
    .footer-player {
        position: relative !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        width: auto !important;
        flex-shrink: 0;
        margin: 0 24px 24px 24px;
    }
}

/* 左侧控制按钮 */
.con-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    float: none !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
}

.con-btn a {
    position: static !important;
    margin: 0 !important;
}

.player-btn {
    display: inline-grid;
    place-items: center;
    background-image: none !important;
    opacity: 1;
    filter: none !important;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.player-btn:hover {
    filter: none !important;
    opacity: 1;
    transform: none;
}

/* 歌单默认封面骨架屏载入效果 */
.sheet-cover[src*="player_cover.png"] {
    animation: skeleton-pulse 1.8s infinite ease-in-out;
    background-color: var(--color-surface-container);
}

@keyframes skeleton-pulse {
    0% { opacity: 0.65; }
    50% { opacity: 0.95; }
    100% { opacity: 0.65; }
}

/* 旧版 pulse-playing 类迁移至新版，
   旧样式仅保留作为降级兼容 */
.cover-section.pulse-playing .cover-wrapper {
    animation: none;
}

.btn-prev,
.btn-play,
.btn-next,
.btn-order,
.btn-order-single,
.btn-order-list,
.btn-order-random,
.btn-state-paused {
    width: 44px;
    height: 44px;
    background-image: none !important;
    background-position: 0 0 !important;
    background-size: auto !important;
}

/* 中间进度条 */
.progress-container {
    flex-grow: 1;
    margin: 0 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.progress-box {
    position: relative !important;
    top: auto !important;
    margin-top: 0 !important;
    width: 100%;
}

.mkpgb-area {
    position: relative;
    cursor: pointer;
    height: 16px;
    display: flex;
    align-items: center;
}

.mkpgb-bar {
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: var(--rounded-full);
    position: absolute;
}

.mkpgb-cur {
    height: 4px;
    background: var(--color-primary);
    border-radius: var(--rounded-full);
    position: absolute;
    width: 0;
}

.mkpgb-dot {
    width: 12px;
    height: 12px;
    background: var(--color-primary);
    border-radius: var(--rounded-full);
    position: absolute;
    margin-left: -6px;
    box-shadow: 0 2px 6px rgba(224, 63, 60, 0.4);
    opacity: 0; /* 仅在 hover 时显示，实现无干扰视觉 */
    transition: opacity 0.2s ease;
}

.mkpgb-area:hover .mkpgb-dot {
    opacity: 1;
}

/* 右侧音量 */
.volume-container {
    display: flex;
    align-items: center;
    width: 140px;
    flex-shrink: 0;
}

.quiet {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 26px !important;
    height: 26px !important;
    float: none !important;
}

.btn-quiet {
    display: inline-grid !important;
    place-items: center;
    position: static !important;
    margin: 0 !important;
    background-image: none !important;
    background-position: 0 0 !important;
    width: 44px;
    height: 44px;
}

.btn-state-quiet {
    background-position: 0 -182px !important;
}

.volume {
    margin-left: 10px !important;
    height: 16px !important;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.volume-box {
    position: relative !important;
    top: auto !important;
    margin-top: 0 !important;
    width: 100%;
}
/* PC 隐藏播放器切换按钮 */
.btn[data-action="player"] {
    display: none;
}

/* --- 移动端自适应适配 (@media) --- */
@media (max-width: 900px) {
    /* 调暗手机端背景，增强前景文字对比度 */
    .blur-mask {
        background: rgba(10, 10, 15, 0.45) !important;
    }
    
    .sidebar {
        transform: translateX(-100%);
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
    }
    
    .btn[data-action="player"] {
        display: inline-block !important;
    }
    
    .player-details {
        display: flex;
        flex-direction: column;
        position: fixed !important;
        left: 0 !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 156px !important; /* 留出底部控制条加 TabBar 的高度 */
        width: 100% !important;
        background: rgba(18, 18, 24, 0.72) !important; /* 调暗背景，采用高保真夜空黑毛玻璃 */
        backdrop-filter: blur(25px) saturate(1.3) !important;
        -webkit-backdrop-filter: blur(25px) saturate(1.3) !important;
        border-left: none !important;
        z-index: 99 !important;
        padding: 24px 24px 12px 24px !important;
        box-sizing: border-box !important;
    }
    
    /* 配合 JQuery show/hide 逻辑在 css 层面保证 visibility 状态的切换 */
    .player-details[style*="display: none"],
    .player-details[style*="display:none"] {
        display: none !important;
    }
    
    .player-details .cover-wrapper {
        width: 180px !important;
        height: 180px !important;
        margin: 0 auto 16px auto !important;
        aspect-ratio: 1 / 1 !important;
        flex-shrink: 0 !important;
    }
    
    .player-details .lyric-container {
        flex-grow: 1 !important;
        height: 100px !important;
        overflow: hidden !important;
        margin-top: 8px !important;
    }
    
    #sheet, #sheet.mCustomScrollbar .mCSB_container {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)) !important;
        gap: 16px !important;
    }
    
    .footer-player {
        left: 16px !important;
        right: 16px !important;
        bottom: 76px !important; /* 留出底部 Tab 栏的高度 */
        padding: 0 16px !important;
    }
    
    .volume-container {
        display: none !important;
    }
    
    .progress-container {
        margin: 0 16px !important;
    }
    
    .con-btn {
        gap: 10px !important;
    }
    
    .main-content {
        padding: 16px 16px 160px 16px;
    }
    
    /* 移动端底部 Tab Bar */
    .mobile-tabbar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 60px;
        background: rgba(20, 20, 25, 0.82) !important; /* 在移动端由白色改成优雅的暗毛玻璃，完美抵消高亮度 */
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
        display: flex !important;
        align-items: center;
        justify-content: space-around;
        z-index: 1000;
    }
    
    .mobile-tabbar .tab-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        font-size: 11px;
        font-weight: 500;
        color: rgba(255, 255, 255, 0.6) !important; /* 白字高对比度 */
        cursor: pointer;
        transition: color 0.2s ease;
        white-space: nowrap !important; /* 防止在极窄屏上折行 */
    }
    
    .mobile-tabbar .tab-item.active {
        color: var(--color-primary) !important;
        font-weight: 700;
    }
    
    /* 歌曲列表自适应 Grid 布局，彻底解决手机端错版、重叠和超出挤压问题 */
    .list-item:not(.list-head) {
        display: grid !important;
        grid-template-columns: 36px minmax(0, 1fr) !important; /* 操作菜单移入歌名后，只需两列布局 */
        grid-template-rows: 24px 18px;
        height: 52px !important;
        line-height: normal !important;
        padding: 5px 8px !important;
        align-items: center;
        gap: 0 8px;
        position: relative;
    }
    
    .list-head {
        display: none !important; /* 手机端隐藏表头 */
    }
    
    .list-num {
        grid-column: 1;
        grid-row: 1 / span 2;
        width: auto !important;
        float: none !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
    
    .music-name {
        grid-column: 2;
        grid-row: 1;
        font-size: 13px !important;
        font-weight: 600 !important;
        color: #ffffff !important;
        margin: 0 !important;
        align-self: end;
        line-height: 20px;
        text-align: left !important;
        float: none !important;
        width: 100% !important;
        white-space: nowrap !important;
        overflow: hidden !important; /* 超长歌名截断 */
        text-overflow: ellipsis !important;
        display: block !important;
    }
    
    .auth-name {
        grid-column: 2;
        grid-row: 2;
        font-size: 11px !important;
        color: rgba(255, 255, 255, 0.7) !important;
        margin: 0 !important;
        align-self: start;
        line-height: 16px;
        text-align: left !important;
        float: none !important;
        width: 100% !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        display: block !important;
    }
    
    .list-mobile-menu {
        display: none !important; /* 手机端隐藏小三点菜单，直接显示操作按钮 */
    }
    
    .music-album {
        display: none !important; /* 隐藏专辑列 */
    }
    
    .list-menu-head {
        display: none !important; /* 隐藏操作表头 */
    }

    .list-menu {
        grid-column: 3;
        grid-row: 1; /* 手机端放置在第一行，与歌曲名称并列 */
        display: flex !important;
        align-items: center;
        justify-content: flex-end;
        gap: 4px !important;
        width: auto !important;
        height: auto !important;
        margin: 0 !important;
        opacity: 1 !important;
        position: relative !important;
        z-index: 2 !important;
        flex-shrink: 0;
    }

    /* ????????? SVG?????????? */
    .list-menu .list-icon {
        width: 36px !important;
        height: 36px !important;
        margin: 0 1px !important;
        background-image: none !important;
        background-size: auto !important;
        background-color: transparent !important;
        box-shadow: none !important;
        opacity: 1 !important;
        transition: all 0.2s ease;
    }

    .icon-play,
    .icon-addlist,
    .icon-download,
    .icon-dellist,
    .icon-play:hover,
    .icon-play:active,
    .icon-addlist:hover,
    .icon-addlist:active,
    .icon-download:hover,
    .icon-download:active,
    .icon-dellist:hover,
    .icon-dellist:active {
        background-image: none !important;
        background-position: 0 0 !important;
        display: inline-grid !important;
    }

    .list-playing .icon-play::before,
    .list-playing .icon-play::after {
        content: none !important;
        display: none !important;
    }

    .list-menu .list-icon:hover, .list-menu .list-icon:active {
        opacity: 1 !important;
    }
    
    /* 手机端屏蔽掉被移除的 icon-share */
    .list-menu .icon-share {
        display: none !important;
    }
    
    /* 调暗手机端数据列表容器，全面避免亮背景下看不清歌曲名及歌手名的问题 */
    .data-area-container {
        background: rgba(20, 20, 25, 0.65) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
    }
    
    /* 正在播放高亮曲目的字色强力覆盖与发光特效，高对比度防刺眼 */
    .list-playing .music-name {
        color: var(--color-primary) !important;
        text-shadow: 0 0 10px rgba(224, 63, 60, 0.3) !important;
    }
    .list-playing .auth-name {
        color: rgba(224, 63, 60, 0.8) !important;
    }
}

@media (max-width: 480px) {
    .main-header h1 {
        font-size: 20px;
    }
    .btn-modern-primary, .btn-modern-ghost {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* --- Modern Glassmorphism Layer Overrides (Layui Layer) --- */
.layui-layer {
    background: rgba(255, 255, 255, 0.78) !important;
    backdrop-filter: blur(25px) saturate(1.2) !important;
    -webkit-backdrop-filter: blur(25px) saturate(1.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12) !important;
    border-radius: 20px !important; /* 圆润但协调的圆角 */
    overflow: hidden !important;
}

.layui-layer-border {
    border: none !important;
    box-shadow: none !important;
}

/* 统一弹出内容与消息提示的文字颜色（黑/深灰色），防止默认白字在白底上看不清 */
.layui-layer-content {
    color: var(--color-foreground) !important;
    font-family: inherit !important;
    font-size: 14px !important;
}

/* 全局提示消息（Msg）与加载框（Loading）的高对比度高清晰度样式 */
.layui-layer-msg {
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    background: rgba(255, 255, 255, 0.88) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
    border-radius: 16px !important;
}

.layui-layer-msg .layui-layer-content {
    color: #222222 !important; /* 强制碳黑色 */
    font-weight: 500 !important;
    padding: 12px 24px !important;
}

/* 强力解决 Layer 提示组件中图标与文字重叠的缺陷 */
.layui-layer-msg:has(.layui-layer-ico) .layui-layer-content,
.layui-layer-msg:has(.layui-layer-ico1) .layui-layer-content,
.layui-layer-msg:has(.layui-layer-ico2) .layui-layer-content,
.layui-layer-msg:has(.layui-layer-ico16) .layui-layer-content {
    padding-left: 56px !important; /* 强制左侧内边距扩展，保证文字不被遮挡 */
}

/* 强力修正图标绝对定位，使其完美上下居中对齐 */
.layui-layer-msg .layui-layer-ico {
    position: absolute !important;
    left: 16px !important;
    top: 50% !important;
    margin-top: -16px !important; /* 32px 宽高的图标，其高度一半正好是 16px */
    width: 32px !important;
    height: 32px !important;
}

/* 加载动画文字高亮 */
.layui-layer-msg .layui-layer-ico16 + .layui-layer-content {
    padding-left: 48px !important;
    color: #222222 !important;
}

/* 纯 CSS 替换 Layer 默认的 32x32 GIF 加载动画，大幅提升流畅感与设计感 */
.layui-layer-ico16 {
    background-image: none !important;
    width: 20px !important;
    height: 20px !important;
    border: 2px solid rgba(224, 63, 60, 0.15) !important;
    border-top-color: var(--color-primary) !important;
    border-radius: 50% !important;
    animation: layui-layer-spin 0.8s infinite linear !important;
    position: absolute !important;
    left: 18px !important;
    top: 50% !important;
    margin-top: -10px !important;
}

@keyframes layui-layer-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 自定义关闭按钮，防 overflow: hidden 裁剪，且增加现代微动效 */
.layui-layer-setwin {
    right: 18px !important;
    top: 18px !important;
}

/* 对话框标题栏的关闭按钮 */
.layui-layer-close1 {
    width: 20px !important;
    height: 20px !important;
    background-image: none !important;
    position: relative !important;
    display: inline-block !important;
    background: rgba(0, 0, 0, 0.05) !important;
    border-radius: 50% !important;
    transition: all 0.2s ease !important;
}

.layui-layer-close1:hover {
    background: rgba(224, 63, 60, 0.15) !important;
    transform: scale(1.1) !important;
}

.layui-layer-close1::before,
.layui-layer-close1::after {
    content: '' !important;
    position: absolute !important;
    left: 5px !important;
    top: 9px !important;
    width: 10px !important;
    height: 2px !important;
    background-color: var(--color-foreground) !important;
    border-radius: 1px !important;
    transition: all 0.2s ease !important;
}

.layui-layer-close1:hover::before,
.layui-layer-close1:hover::after {
    background-color: var(--color-primary) !important;
}

.layui-layer-close1::before {
    transform: rotate(45deg) !important;
}

.layui-layer-close1::after {
    transform: rotate(-45deg) !important;
}

/* 页面弹出层的浮动关闭按钮 (针对 title: false 情况) */
.layui-layer-close2 {
    right: 18px !important;
    top: 18px !important;
    width: 24px !important;
    height: 24px !important;
    background-image: none !important;
    background: rgba(0, 0, 0, 0.05) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
}

.layui-layer-close2:hover {
    background: rgba(224, 63, 60, 0.15) !important;
    transform: scale(1.1) !important;
}

.layui-layer-close2::before,
.layui-layer-close2::after {
    content: '' !important;
    position: absolute !important;
    width: 11px !important;
    height: 2px !important;
    background-color: var(--color-foreground) !important;
    border-radius: 1px !important;
    transition: all 0.2s ease !important;
}

.layui-layer-close2:hover::before,
.layui-layer-close2:hover::after {
    background-color: var(--color-primary) !important;
}

.layui-layer-close2::before {
    transform: rotate(45deg) !important;
}

.layui-layer-close2::after {
    transform: rotate(-45deg) !important;
}

/* 统一美化弹窗标题栏 */
.layui-layer-title {
    background: rgba(255, 255, 255, 0.45) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    color: var(--color-foreground) !important;
    font-family: inherit !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    height: 52px !important;
    line-height: 52px !important;
    padding: 0 80px 0 24px !important;
}

/* 歌曲搜索框表单区域 */
#search-area {
    padding: 38px 24px 24px 24px !important;
    min-width: 320px;
}

.search-group {
    display: flex !important;
    width: 100% !important;
    gap: 8px !important;
    align-items: center !important;
}

#search-wd {
    flex-grow: 1 !important;
    width: auto !important;
    height: 42px !important;
    padding: 0 16px !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    background: rgba(255, 255, 255, 0.6) !important;
    border-radius: var(--rounded-lg) !important;
    color: var(--color-foreground) !important;
    font-size: 14px !important;
    outline: none !important;
    transition: all 0.25s ease !important;
    margin: 0 !important;
}

#search-wd:focus {
    border-color: var(--color-primary) !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(224, 63, 60, 0.15) !important;
}

.search-submit {
    flex-shrink: 0 !important;
    width: 80px !important;
    height: 42px !important;
    border: none !important;
    background: var(--color-primary) !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border-radius: var(--rounded-lg) !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    margin: 0 !important;
}

.search-submit:hover {
    background: var(--color-primary-hover) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(224, 63, 60, 0.2) !important;
}

/* UID 同步弹窗适配 */
.layui-layer-prompt .layui-layer-input {
    width: 100% !important;
    height: 42px !important;
    padding: 0 16px !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    background: rgba(255, 255, 255, 0.6) !important;
    border-radius: var(--rounded-lg) !important;
    color: var(--color-foreground) !important;
    font-size: 14px !important;
    outline: none !important;
    box-sizing: border-box !important;
    margin: 12px 0 0 0 !important;
}

.layui-layer-prompt .layui-layer-input:focus {
    border-color: var(--color-primary) !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(224, 63, 60, 0.15) !important;
}

/* Layui 弹出按钮 */
.layui-layer-btn {
    padding: 0 24px 20px 24px !important;
    text-align: right !important;
}

.layui-layer-btn a {
    height: 38px !important;
    line-height: 38px !important;
    padding: 0 18px !important;
    border-radius: var(--rounded-lg) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
}

.layui-layer-btn .layui-layer-btn0 {
    background-color: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
    color: #fff !important;
}

.layui-layer-btn .layui-layer-btn0:hover {
    background-color: var(--color-primary-hover) !important;
    border-color: var(--color-primary-hover) !important;
    box-shadow: 0 4px 12px rgba(224, 63, 60, 0.2) !important;
}

.layui-layer-btn .layui-layer-btn1,
.layui-layer-btn .layui-layer-btn2 {
    background-color: rgba(0, 0, 0, 0.04) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    color: var(--color-neutral) !important;
}

.layui-layer-btn .layui-layer-btn1:hover,
.layui-layer-btn .layui-layer-btn2:hover {
    background-color: rgba(0, 0, 0, 0.08) !important;
    color: var(--color-foreground) !important;
}

/* --- 侧边栏用户同步面板 (Sidebar User Sync Card) --- */
.sidebar-user-card {
    margin: 16px;
    padding: 16px;
    background: rgba(20, 20, 25, 0.68) !important; /* 精致暗色毛玻璃，防止跟白背景融合 */
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px;
    backdrop-filter: blur(20px) saturate(1.3) !important;
    -webkit-backdrop-filter: blur(20px) saturate(1.3) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2) !important;
}

.sidebar-user-card:hover {
    background: rgba(25, 25, 32, 0.8) !important;
    border-color: rgba(224, 63, 60, 0.3) !important;
    box-shadow: 0 12px 40px rgba(224, 63, 60, 0.15) !important;
}

.user-card-inner {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.user-card-inner.logged-in {
    display: grid;
    grid-template-columns: 40px 1fr;
    grid-gap: 12px;
    align-items: center;
}

.user-avatar-box {
    width: 40px;
    height: 40px;
    position: relative;
}

.user-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease;
}

.user-avatar.guest {
    filter: grayscale(0.4) opacity(0.85);
    border-color: var(--color-primary);
}

.user-card-inner:hover .user-avatar:not(.guest) {
    transform: rotate(360deg);
}

.user-info-box {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.user-name {
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

.user-status {
    color: rgba(255, 255, 255, 0.75) !important; /* 提升可见度 */
    font-size: 11px;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2) !important;
}

/* 按钮组 */
.user-actions-box {
    grid-column: span 2;
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.user-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 0;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-action-btn svg {
    opacity: 0.7;
}

.user-action-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.1);
}

.user-action-btn.login-out:hover {
    background: rgba(224, 63, 60, 0.2);
    color: #ff6b6b;
    border-color: rgba(224, 63, 60, 0.25);
}

/* 未登录状态下的同步大按钮 */
.user-sync-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 36px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-hover, #ff4c4a));
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(224, 63, 60, 0.2);
    transition: all 0.25s ease;
}

.user-sync-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(224, 63, 60, 0.35);
    filter: brightness(1.05);
}

.user-sync-btn:active {
    transform: translateY(1px);
}

.sync-avatar-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    padding: 6px 0;
}

.sync-avatar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.25s ease;
}

.sync-avatar-item .avatar-wrap {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.12);
    margin-bottom: 6px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.sync-avatar-item .avatar-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sync-avatar-item .avatar-wrap.official {
    background: rgba(224, 63, 60, 0.12);
    border-color: rgba(224, 63, 60, 0.25);
    color: var(--color-primary, #e03f3c);
}

.sync-avatar-item .avatar-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--color-foreground, #ddd);
    transition: color 0.25s ease;
}

.sync-avatar-item:hover .avatar-wrap {
    transform: translateY(-3px);
    border-color: var(--color-primary, #e03f3c);
    box-shadow: 0 6px 16px rgba(224, 63, 60, 0.25);
}

.sync-avatar-item:hover .avatar-wrap.official {
    background: rgba(224, 63, 60, 0.2);
    border-color: var(--color-primary, #e03f3c);
    box-shadow: 0 6px 16px rgba(224, 63, 60, 0.35);
}

.sync-avatar-item:hover .avatar-name {
    color: #fff;
}

.sync-avatar-item:active .avatar-wrap {
    transform: translateY(1px);
}

@media (prefers-color-scheme: light) {
    .sync-avatar-item .avatar-wrap {
        background: rgba(0, 0, 0, 0.04);
        border-color: rgba(0, 0, 0, 0.08);
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    }
    .sync-avatar-item .avatar-name {
        color: #555;
    }
    .sync-avatar-item:hover .avatar-name {
        color: #111;
    }
}

/* --- 播放列表头部批量操作按钮组 (List Header Action Buttons) --- */
.list-action-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto; /* 靠右对齐 */
}

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    height: 34px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    white-space: nowrap !important; /* 强制不折行 */
}

/* 批量删除（高对比度半透明玫瑰红毛玻璃系） */
.action-btn-danger {
    background: rgba(225, 29, 72, 0.18);
    border: 1px solid rgba(225, 29, 72, 0.35);
    color: #fca5a5;
}

.action-btn-danger:hover {
    background: rgba(225, 29, 72, 0.32);
    border-color: rgba(225, 29, 72, 0.55);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.25);
    transform: translateY(-1px);
}

.action-btn-danger:active {
    transform: translateY(1px);
}

/* 清空列表（高对比度半透明白银毛玻璃系） */
.action-btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #e5e7eb;
}

.action-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.action-btn-secondary:active {
    transform: translateY(1px);
}

/* 适配移动端 */
@media (max-width: 600px) {
    .list-action-group {
        gap: 6px !important;
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        max-width: 100% !important;
        padding-bottom: 2px;
    }
    .list-action-group::-webkit-scrollbar {
        display: none !important; /* 隐藏滚动条 */
    }
    
    .action-btn {
        padding: 6px 10px;
        height: 30px;
        font-size: 11px;
        gap: 4px;
        border-radius: 6px;
        white-space: nowrap !important;
    }
    
    .action-btn svg {
        width: 12px;
        height: 12px;
    }
}

/* --- 已同步提示横幅卡片 (Sync Banner Card) --- */
.sync-banner-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: calc(100% - 24px);
    margin: 12px auto 20px auto;
    padding: 12px 18px;
    background: rgba(20, 20, 25, 0.72) !important; /* 精致科技黑磨砂玻璃 */
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: var(--rounded-md);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15) !important;
    backdrop-filter: blur(20px) saturate(1.3) !important;
    -webkit-backdrop-filter: blur(20px) saturate(1.3) !important;
    box-sizing: border-box;
}

.sync-banner-card.unsynced {
    border-color: rgba(255, 255, 255, 0.05) !important;
    background: rgba(20, 20, 25, 0.6) !important;
}

.sync-banner-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.sync-banner-badge {
    background: var(--color-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    white-space: nowrap;
}

.sync-banner-badge.guest {
    background: var(--color-neutral);
}

.sync-banner-user {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff !important; /* 亮白 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

.sync-banner-text {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75) !important; /* 高对比度浅白 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2) !important;
}

.sync-banner-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sync-banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

/* 刷新按钮：深黑蓝色调，暗 */
.sync-banner-btn.login-refresh {
    background: #1e293b;
    color: #f1f5f9;
    box-shadow: 0 2px 8px rgba(30, 41, 59, 0.15);
}
.sync-banner-btn.login-refresh:hover {
    background: #0f172a;
    transform: translateY(-1px);
}

/* 退出按钮：玫瑰深红，暗 */
.sync-banner-btn.login-out {
    background: #e11d48;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(225, 29, 72, 0.15);
}
.sync-banner-btn.login-out:hover {
    background: #be123c;
    transform: translateY(-1px);
}

/* 同步按钮：高对比度主色渐变 */
.sync-banner-btn.login-in.primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-hover));
    color: #fff;
    box-shadow: 0 2px 8px rgba(224, 63, 60, 0.2);
}
.sync-banner-btn.login-in.primary:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

/* --- 侧边栏按钮高对比度暗化设计 --- */
.sidebar-user-card .user-action-btn {
    border: none !important;
}

.sidebar-user-card .user-action-btn.login-refresh {
    background: #1e293b !important;
    color: #f1f5f9 !important;
    box-shadow: 0 2px 8px rgba(30, 41, 59, 0.15);
}

.sidebar-user-card .user-action-btn.login-refresh:hover {
    background: #0f172a !important;
    color: #fff !important;
}

.sidebar-user-card .user-action-btn.login-out {
    background: #e11d48 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(225, 29, 72, 0.15);
}

.sidebar-user-card .user-action-btn.login-out:hover {
    background: #be123c !important;
    color: #fff !important;
}

/* --- 手机端极窄屏幕自适应增强微调 --- */
@media (max-width: 600px) {
    .sync-banner-card {
        padding: 10px 14px !important;
    }
    .sync-banner-text {
        font-size: 11px !important;
    }
    .sync-banner-btn {
        padding: 5px 10px !important;
        font-size: 11px !important;
    }
}

@media (max-width: 480px) {
    .sync-banner-card {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        padding: 12px 14px !important;
    }
    .sync-banner-info {
        width: 100% !important;
        justify-content: flex-start !important;
    }
    .sync-banner-actions {
        width: 100% !important;
        justify-content: flex-end !important;
        gap: 6px !important;
    }
    .sync-banner-btn {
        flex-grow: 1 !important;
        justify-content: center !important;
        height: 32px !important;
        font-size: 11px !important;
    }
}

/* --- Drawer (抽屉展现样式) --- */
.music-list-drawer {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 80;
    transform: translateX(105%);
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
    background: rgba(255, 255, 255, 0.88) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    padding: 16px;
    box-sizing: border-box;
}

/* 黑暗模式适配 */
@media (prefers-color-scheme: dark) {
    .music-list-drawer {
        background: rgba(30, 30, 30, 0.88) !important;
    }
}

.music-list-drawer.drawer-open {
    transform: translateX(0);
}

/* ============================================================
   PREMIUM ENHANCEMENTS V1.0
   高端视觉升级：黑胶唱片、噪点纹理、渐变、动效
   ============================================================ */

/* --- 1. 噪点纹理（Grain Texture） --- */
.noise-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9998;
    pointer-events: none;
    mix-blend-mode: overlay;
    opacity: 0.3;
}

/* --- 2. 动态光晕（Dynamic Ambient Glow） --- */
.dynamic-glow {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.12;
    transition: background 1.8s ease;
    background: radial-gradient(
        circle at 80% 20%,
        rgba(224, 63, 60, 0.08) 0%,
        transparent 50%
    );
}

/* --- 3. 黑胶唱片区域布局 --- */
.cover-section {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cover-section .cover-wrapper {
    position: relative;
    z-index: 1;
    width: 80%;
    height: 80%;
    aspect-ratio: 1 / 1;
    border-radius: 50% !important;
    overflow: hidden;
    box-shadow:
        0 12px 36px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.06);
    margin-bottom: 0;
    transition: none;
    background: var(--color-surface-container);
    will-change: transform;
    /* 中心挖洞——露出黑胶唱片的中心镂空 */
    -webkit-mask: radial-gradient(circle at center, transparent 5.5%, #000 6.5%, #000 100%);
    mask: radial-gradient(circle at center, transparent 5.5%, #000 6.5%, #000 100%);
}

/* 唱片封面无 hover 放大（因为旋转时不需要） */

/* 黑胶唱片盘 */
.vinyl-disc {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 0;
    background: radial-gradient(
        circle at center,
        #d4d4d4 0%,
        #b0b0b0 2%,
        #2a2a2a 4%,
        #1a1a1a 7%,
        #111111 13%,
        #0d0d0d 25%,
        #0a0a0a 45%,
        #070707 65%,
        #040404 85%,
        #020202 100%
    );
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 0 60px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(255, 255, 255, 0.03);
    will-change: transform;
}

/* 黑胶唱片纹路（同心圆凹槽） */
.vinyl-disc::before {
    content: '';
    position: absolute;
    inset: 4%;
    border-radius: 50%;
    background: repeating-radial-gradient(
        circle at center,
        transparent 0px,
        transparent 1.8px,
        rgba(255, 255, 255, 0.012) 1.8px,
        rgba(255, 255, 255, 0.016) 2px
    );
}

/* 唱片中心标签（环形镂空 — 更像真实碟片） */
.vinyl-disc::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 26%;
    height: 26%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(
        circle at center,
        transparent 55%,
        rgba(224, 63, 60, 0.12) 55.5%,
        var(--color-primary) 25%,
        var(--color-primary-hover) 100%
    );
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 标签外圈细白环（增强碟片真实感） */
.vinyl-disc .label-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 25%;
    height: 25%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.06);
    pointer-events: none;
    z-index: 1;
}

/* 唱片中心孔（加大孔径，空心碟片感） */
.vinyl-disc .center-hole {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 9%;
    height: 9%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: #050505;
    box-shadow:
        inset 0 4px 10px rgba(0, 0, 0, 0.95),
        0 0 0 0.5px rgba(255, 255, 255, 0.03),
        0 2px 6px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

/* 唱片转轴高光 */
.vinyl-disc .spindle-shine {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1.5%;
    height: 1.5%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    z-index: 3;
}

/* 旋转动画 — 黑胶唱片盘（包含自身定位偏移） */
@keyframes vinylSpin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 旋转动画 — 封面（纯旋转，无定位偏移） */
@keyframes coverSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* 播放时：唱片 + 封面同步 33 转/分钟匀速旋转 */
.cover-section.pulse-playing .vinyl-disc {
    animation: vinylSpin 33s linear infinite;
}

.cover-section.pulse-playing .cover-wrapper {
    animation: coverSpin 33s linear infinite;
}

/* 暂停时缓停效果 */
.vinyl-disc {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 封面悬浮律动 + 光晕脉冲（同元素多动画用逗号分隔） */
@keyframes coverFloat {
    0%   { transform: translateY(0px); }
    50%  { transform: translateY(-6px); }
    100% { transform: translateY(0px); }
}

@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12),
                    0 0 0 1px rgba(255, 255, 255, 0.06),
                    0 0 24px rgba(224, 63, 60, 0.08);
    }
    50% {
        box-shadow: 0 16px 48px rgba(0, 0, 0, 0.16),
                    0 0 0 1px rgba(255, 255, 255, 0.08),
                    0 0 40px rgba(224, 63, 60, 0.15);
    }
}

/* --- 4. 进度条渐变升级 --- */
.mkpgb-cur {
    background: linear-gradient(90deg, var(--color-primary), #ff6b35) !important;
    position: relative;
}

/* 进度条拖拽圆点强化 */
.mkpgb-dot {
    width: 16px !important;
    height: 16px !important;
    margin-top: -8px !important;
    margin-left: -8px !important;
    background: radial-gradient(circle at 35% 35%, #ff7e7e, var(--color-primary)) !important;
    box-shadow:
        0 2px 8px rgba(224, 63, 60, 0.5),
        0 0 0 4px rgba(224, 63, 60, 0.1) !important;
    border: 2px solid rgba(255, 255, 255, 0.25) !important;
}

/* 进度条悬浮高度变化 */
.mkpgb-area .mkpgb-bar {
    transition: height 0.2s ease, background 0.3s ease;
}

.mkpgb-area:hover .mkpgb-bar {
    height: 6px;
}

.mkpgb-area:hover .mkpgb-cur {
    height: 6px;
}

/* --- 5. 字体排印优化 --- */
.main-header h1 {
    letter-spacing: -0.02em;
    font-weight: 750;
}

.brand {
    letter-spacing: -0.01em;
}

.music-name-text {
    font-weight: 500;
}

.auth-name {
    font-weight: 450;
    letter-spacing: 0.01em;
    color: var(--color-neutral) !important;
}

.music-album {
    font-weight: 400;
    letter-spacing: 0.01em;
}

.sheet-name {
    font-weight: 650 !important;
    letter-spacing: 0.01em;
}

#lyric li {
    font-weight: 450;
    letter-spacing: 0.02em;
}

#lyric .lplaying {
    letter-spacing: 0.04em;
    font-weight: 700 !important;
}

/* --- 6. 微交互动效 --- */

/* 侧边栏激活项：文字与 SVG 图标强制白色 */
.sidebar-menu .nav-item.active {
    color: #ffffff !important;
    background: var(--color-primary);
    position: relative;
}

/* SVG 图标继承白色 */
.sidebar-menu .nav-item.active svg {
    stroke: #ffffff !important;
}

/* 侧边栏激活项右侧指示条 */
.sidebar-menu .nav-item.active::after {
    content: '';
    position: absolute;
    right: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: var(--color-primary);
    border-radius: var(--rounded-full);
}

/* 歌单卡片悬停增强 */
.sheet-item {
    will-change: transform;
}

.sheet-item:hover {
    transform: translateY(-8px);
}

.sheet-cover {
    transition: all 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sheet-item:hover .sheet-cover {
    box-shadow: 0 16px 40px rgba(224, 63, 60, 0.2);
    transform: scale(1.04);
}

/* 列表项悬停微位移 */
.list-item {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.list-item:hover:not(.list-head) {
    transform: translateX(4px);
}

/* 播放按钮微弹效果 */
.btn-play {
    box-shadow: 0 4px 16px rgba(224, 63, 60, 0.2);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.btn-play:hover {
    transform: scale(1.06) !important;
    box-shadow: 0 6px 24px rgba(224, 63, 60, 0.3) !important;
}

.player-btn:active {
    transform: scale(0.92) !important;
}

/* 同步按钮渐变增强 */
.user-sync-btn {
    background: linear-gradient(135deg, #E03F3C, #d63031, #c92f32) !important;
    background-size: 200% 200% !important;
    animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 正在播放歌曲行文字渐变色 */
.list-playing .music-name-text {
    background: linear-gradient(90deg, var(--color-primary), #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- 7. 空状态美化 --- */
.app-status {
    border-radius: var(--rounded-md);
    font-weight: 500;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.app-status.is-empty {
    background: rgba(255, 248, 232, 0.7) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border-color: rgba(213, 179, 124, 0.3) !important;
}

/* --- 8. 暗色模式适配 --- */
@media (prefers-color-scheme: dark) {
    .noise-overlay {
        opacity: 0.15;
        mix-blend-mode: screen;
    }

    .dynamic-glow {
        opacity: 0.18;
        background: radial-gradient(
            circle at 80% 20%,
            rgba(224, 63, 60, 0.12) 0%,
            transparent 50%
        );
    }

    .vinyl-disc {
        background: radial-gradient(
            circle at center,
            #8a8a8a 0%,
            #666666 2%,
            #1a1a1a 5%,
            #111111 10%,
            #0d0d0d 25%,
            #0a0a0a 45%,
            #070707 65%,
            #040404 85%,
            #020202 100%
        );
    }

    .list-playing .music-name-text {
        -webkit-text-fill-color: initial !important;
        background: none !important;
    }

    .cover-section:hover .cover-wrapper {
        box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
    }

    .app-status.is-empty {
        background: rgba(50, 42, 29, 0.7) !important;
        border-color: rgba(128, 102, 56, 0.4) !important;
    }
}

/* 移动端适配 */
@media (max-width: 900px) {
    .cover-section {
        width: 180px !important;
        height: 180px !important;
        margin: 0 auto 16px auto !important;
        flex-shrink: 0 !important;
    }

    .cover-section .cover-wrapper {
        width: 84%;
        height: 84%;
    }

    .cover-section.pulse-playing {
        animation: coverFloat 5s ease-in-out infinite;
    }

    .list-playing .music-name-text {
        -webkit-text-fill-color: initial !important;
        background: none !important;
    }

    /* 移动端隐藏侧边栏切换按钮 */
    .sidebar-toggle {
        display: none !important;
    }
}
