/* ============================================
   听歌日记 — Spotify × Apple Music 融合设计
   暗色主题 · 温调青绿点缀 · 毛玻璃 · 大封面
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
    /* 背景层级 (暗色绿底微调，不做纯黑) */
    --bg-root: #0B0E0C;
    --bg-sidebar: rgba(14, 18, 16, 0.88);
    --bg-surface: #151A17;
    --bg-elevated: #1C2320;
    --bg-hover: #242B27;
    --bg-active: #2A332F;

    /* 文字层级 */
    --text-primary: #EDF0EE;
    --text-secondary: #9BA89F;
    --text-tertiary: #5D6B62;

    /* 点缀色 — 温调青绿 (暖于 Spotify 绿) */
    --accent: #4DB88D;
    --accent-hover: #5EC99D;
    --accent-active: #3DA87A;
    --accent-glow: rgba(77, 184, 141, 0.15);
    --accent-subtle: rgba(77, 184, 141, 0.08);

    /* 边框 (暗色下用半透明白色，避免"管理后台"的实线感) */
    --border-subtle: rgba(255, 255, 255, 0.05);
    --border-default: rgba(255, 255, 255, 0.08);
    --border-active: rgba(77, 184, 141, 0.30);

    /* 阴影 */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.50);
    --shadow-glow: 0 0 40px rgba(77, 184, 141, 0.12);

    /* 圆角 */
    --radius-xs: 6px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    /* 动效 — 分层速度 */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --duration-micro: 120ms;
    --duration-fast: 200ms;
    --duration-base: 300ms;
    --duration-slow: 500ms;

    /* 排版 */
    --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
    --font-mono: "JetBrains Mono", "SF Mono", "Cascadia Code", monospace;

    /* 间距阶梯 */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 12px;
    --space-lg: 20px;
    --space-xl: 32px;
    --space-2xl: 48px;

    /* 歌曲渐变色 (封面 fallback 用) */
    --song-1: #4DB88D;
    --song-2: #E8915A;
    --song-3: #5BA0C8;
    --song-4: #B08AD0;

    /* 布局尺寸 */
    --sidebar-width: 240px;
    --topbar-height: 48px;
    --player-height: 72px;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.6;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    background: var(--bg-root);
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.16);
}

/* ============================================
   APP LAYOUT — CSS Grid 主骨架
   ============================================ */
.app-layout {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    grid-template-rows: 1fr var(--player-height);
    height: 100vh;
    overflow: hidden;
}

/* ============================================
   SIDEBAR — 毛玻璃侧边栏 240px
   ============================================ */
.sidebar {
    grid-row: 1 / -1;
    grid-column: 1;
    background: var(--bg-sidebar);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    border-right: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    z-index: 20;
    padding-bottom: calc(var(--player-height) + var(--space-md));
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px var(--space-lg) 14px;
}

.sidebar-logo-svg {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 8px rgba(77, 184, 141, 0.25));
    transition: filter var(--duration-fast) var(--ease-out);
}

.sidebar-brand:hover .sidebar-logo-svg {
    filter: drop-shadow(0 2px 14px rgba(77, 184, 141, 0.4));
}

.sidebar-title {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-nav {
    padding: var(--space-sm) var(--space-sm);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* 导航项 */
.sidebar-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: 10px var(--space-md);
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    font-family: var(--font-sans);
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-align: left;
    width: 100%;
    position: relative;
    transition: background var(--duration-micro) var(--ease-out),
                color var(--duration-micro) var(--ease-out);
}

.sidebar-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) scaleY(0);
    width: 3px;
    height: 20px;
    background: var(--accent);
    border-radius: 0 3px 3px 0;
    transition: transform var(--duration-fast) var(--ease-spring);
}

.sidebar-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.sidebar-item.active {
    color: var(--text-primary);
    background: var(--accent-subtle);
}

.sidebar-item.active::before {
    transform: translateY(-50%) scaleY(1);
}

.sidebar-item-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: inherit;
}

.sidebar-item-icon svg {
    display: block;
}

.sidebar-item-label {
    flex: 1;
}

.sidebar-badge {
    font-size: 11px;
    font-weight: 600;
    background: var(--accent);
    color: #0B0E0C;
    padding: 1px 7px;
    border-radius: var(--radius-full);
    min-width: 20px;
    text-align: center;
}

/* 侧边栏分隔线 */
.sidebar-divider {
    height: 1px;
    background: var(--border-subtle);
    margin: var(--space-sm) var(--space-lg);
}

.sidebar-section-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-tertiary);
    padding: var(--space-sm) var(--space-lg) var(--space-xs);
}

/* 热门标签快捷入口 */
.sidebar-tags {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 var(--space-sm);
}

.sidebar-tag-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: 8px var(--space-md);
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    font-family: var(--font-sans);
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-align: left;
    width: 100%;
    transition: background var(--duration-micro) var(--ease-out),
                color var(--duration-micro) var(--ease-out);
}

.sidebar-tag-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.sidebar-tag-item .tag-dot {
    width: 3px;
    height: 18px;
    border-radius: 3px;
    flex-shrink: 0;
    opacity: 0.75;
    transition: opacity var(--duration-micro) var(--ease-out),
                height var(--duration-fast) var(--ease-spring),
                box-shadow var(--duration-fast) var(--ease-out);
}

.sidebar-tag-item:hover .tag-dot {
    opacity: 1;
    height: 22px;
    box-shadow: 0 0 8px currentColor;
}

/* 侧边栏弹性空间 — 推用户区到底部 */
.sidebar-spacer {
    flex: 1;
}

.sidebar-user {
    padding: var(--space-md) var(--space-lg);
    border-top: 1px solid var(--border-subtle);
}

/* ============================================
   CONTENT WRAPPER — 主内容 + 顶部栏
   ============================================ */
.content-wrapper {
    grid-row: 1;
    grid-column: 2;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

/* ============================================
   TOP BAR — 48px 搜索居中
   ============================================ */
.top-bar {
    height: var(--topbar-height);
    display: flex;
    align-items: center;
    padding: 0 var(--space-xl);
    gap: var(--space-md);
    flex-shrink: 0;
    border-bottom: 1px solid var(--border-subtle);
    position: relative;
    z-index: 10;
}

/* 滚动阴影（内容区滚动时渐显） */
.top-bar::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(to bottom, rgba(11,14,12,0.6), transparent);
    opacity: 0;
    transition: opacity var(--duration-fast) var(--ease-out);
    pointer-events: none;
}

.top-bar.scrolled::after {
    opacity: 1;
}

.btn-menu {
    display: none; /* 桌面端隐藏，响应式下显示 */
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 18px;
    color: var(--text-secondary);
    border-radius: var(--radius-full);
    align-items: center;
    justify-content: center;
    transition: color var(--duration-micro) var(--ease-out),
                background var(--duration-micro) var(--ease-out);
}

.btn-menu:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.top-bar-spacer {
    flex: 1;
    max-width: 80px; /* 平衡搜索框视觉效果 */
}

/* ---------- Search (在 Top Bar 内) ---------- */
.search-wrap {
    position: relative;
    flex: 1;
    max-width: 480px;
}

.search-input {
    width: 100%;
    padding: 9px 90px 9px 36px;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-family: var(--font-sans);
    color: var(--text-primary);
    background: var(--bg-surface);
    outline: none;
    transition: border-color var(--duration-fast) var(--ease-out),
                box-shadow var(--duration-fast) var(--ease-out);
}

.search-input:focus {
    border-color: var(--border-active);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-input::placeholder {
    color: var(--text-tertiary);
}

/* 搜索框内左侧放大镜 SVG */
.search-magnifier {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
    pointer-events: none;
    opacity: 0.5;
}
.search-input:focus ~ .search-magnifier {
    color: var(--accent);
    opacity: 0.8;
}

.search-clear {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-tertiary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--duration-micro) var(--ease-out),
                background var(--duration-micro) var(--ease-out);
}

.search-clear:hover {
    color: var(--accent);
    background: var(--bg-hover);
}

.search-confirm {
    position: absolute;
    right: 36px;
    top: 50%;
    transform: translateY(-50%);
    height: 28px;
    padding: 0 8px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 13px;
    font-family: var(--font-sans);
    color: var(--text-tertiary);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--duration-micro) var(--ease-out),
                background var(--duration-micro) var(--ease-out);
    white-space: nowrap;
}

.search-confirm:hover {
    color: var(--accent);
    background: var(--bg-hover);
}

/* 搜索转圈 Spinner — 替换确认按钮位置 */
.search-spinner {
    position: absolute;
    right: 36px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    display: none;
    align-items: center;
    justify-content: center;
}
.search-spinner.active {
    display: flex;
}
.search-spinner::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid var(--border-default);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: searchSpin 0.6s linear infinite;
}
@keyframes searchSpin {
    to { transform: rotate(360deg); }
}
.search-spinner.active + .search-confirm {
    display: none;
}

/* 搜索历史下拉 */
.search-history-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    z-index: 50;
    max-height: 320px;
    overflow-y: auto;
    animation: dropdownIn 0.15s var(--ease-out);
}

.shd-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px 6px;
    font-size: 11px;
    color: var(--text-tertiary);
    font-weight: 600;
    letter-spacing: 0.04em;
}

.shd-clear {
    border: none;
    background: transparent;
    color: var(--text-tertiary);
    cursor: pointer;
    font-size: 11px;
    font-family: var(--font-sans);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    transition: color var(--duration-micro) var(--ease-out),
                background var(--duration-micro) var(--ease-out);
}

.shd-clear:hover {
    color: var(--accent);
    background: var(--accent-subtle);
}

.shd-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 10px 14px;
    cursor: pointer;
    transition: background var(--duration-micro) var(--ease-out);
    font-size: 14px;
}

.shd-item:hover {
    background: var(--bg-hover);
}

.shd-query {
    flex: 1;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================================
   CONTENT AREA — 主内容视图
   ============================================ */
.content-area {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 var(--space-xl) var(--space-2xl);
}

/* 视图标题栏 */
.view-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding-top: var(--space-lg);
    margin-bottom: var(--space-lg);
    margin-left: 0;
    padding-left: 0;
}

.btn-back {
    padding: 6px 14px;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-full);
    background: var(--bg-surface);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: all var(--duration-micro) var(--ease-out);
    white-space: nowrap;
}

.btn-back:hover {
    background: var(--bg-hover);
    border-color: var(--border-active);
    color: var(--text-primary);
}

.view-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.section-header {
    padding: var(--space-lg) 0 var(--space-md);
    margin-left: 0;
    padding-left: 0;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* 视图容器 */
.view-container {
    width: 100%;
    box-sizing: border-box;
}

/* ============================================
   COVER GRID — 封面卡片网格 (歌曲浏览)
   ============================================ */
.cover-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: var(--space-lg);
}

/* ---------- 封面卡片 ---------- */
.cover-card {
    content-visibility: auto;
    contain-intrinsic-size: 220px;
    background: var(--bg-surface);
    border: 1px solid transparent;
    border-radius: var(--radius-lg);
    padding: var(--space-lg) var(--space-md) var(--space-md);
    cursor: pointer;
    transition: transform var(--duration-fast) var(--ease-spring),
                border-color var(--duration-fast) var(--ease-out),
                box-shadow var(--duration-fast) var(--ease-out),
                background var(--duration-fast) var(--ease-out);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    animation: cardEnter var(--duration-base) var(--ease-out) both;
    will-change: transform;
}

.cover-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-active);
    box-shadow: var(--shadow-md), var(--shadow-glow);
    background: var(--bg-elevated);
}

.cover-card:active {
    transform: translateY(-1px) scale(0.98);
}

.cover-card.playing {
    border-color: var(--border-active);
    box-shadow: var(--shadow-md), var(--shadow-glow);
    animation: glowPulse 3s var(--ease-in-out) infinite;
}

/* 封面图 */
.cover-card-img-wrap {
    width: 140px;
    height: 140px;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: var(--space-md);
    position: relative;
    background: var(--bg-hover);
    flex-shrink: 0;
}

.cover-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-fast) var(--ease-out);
}

.cover-card:hover .cover-card-img {
    transform: scale(1.05);
}

/* 封面占位图（无 cover_url 时显示） */
.cover-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: rgba(255,255,255,0.3);
}

/* 播放悬浮按钮 — 封面中央 */
.cover-card-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity var(--duration-fast) var(--ease-out);
    border-radius: var(--radius-md);
}

.cover-card:hover .cover-card-play-overlay {
    opacity: 1;
}

.cover-card-play-overlay .play-icon-circle {
    width: 44px;
    height: 44px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #0B0E0C;
    box-shadow: var(--shadow-md);
    transform: translateY(4px);
    transition: transform var(--duration-fast) var(--ease-spring);
}

.cover-card:hover .cover-card-play-overlay .play-icon-circle {
    transform: translateY(0);
}

/* 封面卡片信息 */
.cover-card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cover-card-singer {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 卡片右上角收藏按钮 */
.cover-card-fav {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
    font-size: 16px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: transform var(--duration-micro) var(--ease-spring),
                color var(--duration-micro) var(--ease-out);
    z-index: 2;
}

.cover-card-fav:hover { transform: scale(1.15); }
.cover-card-fav:active { transform: scale(0.85); }
.cover-card-fav.favorited { color: #F87171; }

/* 加入歌单按钮 — 右下角，和歌手同高，不挤占歌名歌手空间，比桃心细 */
.cover-card-add-pl {
    position: absolute;
    right: var(--space-sm);
    bottom: var(--space-sm);
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 16px;
    font-weight: 300;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: transform var(--duration-micro) var(--ease-spring),
                color var(--duration-micro) var(--ease-out);
    z-index: 2;
}

.cover-card-add-pl:hover { transform: scale(1.15); }
.cover-card-add-pl:active { transform: scale(0.85); }

/* 复制B站链接按钮 — 左下角 */
.cover-card-copy-link {
    position: absolute;
    left: var(--space-sm);
    bottom: var(--space-sm);
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    opacity: 0;
    transition: opacity var(--duration-micro) var(--ease-out),
                transform var(--duration-micro) var(--ease-spring),
                color var(--duration-micro) var(--ease-out);
    z-index: 2;
}

.cover-card:hover .cover-card-copy-link { opacity: 1; }
.cover-card-copy-link:hover { transform: scale(1.15); color: var(--accent); }
.cover-card-copy-link:active { transform: scale(0.85); }

/* ============================================
   SONG LIST — 列表视图 (搜索结果)
   ============================================ */
.song-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: calc(100vh - 320px);
    overflow-y: auto;
    padding-right: 4px;
}

.song-list::-webkit-scrollbar {
    width: 4px;
}

.song-list::-webkit-scrollbar-track {
    background: transparent;
}

.song-list::-webkit-scrollbar-thumb {
    background: var(--border-default);
    border-radius: 2px;
}

.song-list-item {
    content-visibility: auto;
    contain-intrinsic-size: 64px;
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: 10px var(--space-md);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background var(--duration-micro) var(--ease-out);
    position: relative;
    animation: cardEnter var(--duration-base) var(--ease-out) both;
}

.song-list-item:hover {
    background: var(--bg-hover);
}

.song-list-item.playing {
    background: var(--accent-subtle);
}

/* 列表封面缩略图 */
.song-list-cover {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-xs);
    object-fit: cover;
    flex-shrink: 0;
    background: var(--bg-hover);
}

.song-list-placeholder {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: rgba(255,255,255,0.25);
    flex-shrink: 0;
    background: var(--bg-hover);
}

.song-list-index {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: var(--bg-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.song-list-item.playing .song-list-index {
    background: var(--accent);
    color: #0B0E0C;
}

.song-list-info {
    flex: 1;
    min-width: 0;
}

.song-list-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-list-meta {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-list-collection-path {
    font-size: 11px;
    color: var(--text-tertiary);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 列表行操作按钮 — hover 显示 */
.song-list-actions {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity var(--duration-micro) var(--ease-out);
}

.song-list-item:hover .song-list-actions {
    opacity: 1;
}

.btn-fav, .btn-add, .btn-copy-link, .btn-remove-from-pl {
    width: 34px;
    height: 34px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 18px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--duration-micro) var(--ease-spring),
                color var(--duration-micro) var(--ease-out),
                background var(--duration-micro) var(--ease-out);
    color: var(--text-tertiary);
    flex-shrink: 0;
}

.btn-fav:hover, .btn-add:hover, .btn-copy-link:hover, .btn-remove-from-pl:hover {
    transform: scale(1.15);
    color: var(--text-primary);
    background: rgba(255,255,255,0.06);
}

.btn-fav:active, .btn-add:active, .btn-copy-link:active, .btn-remove-from-pl:active {
    transform: scale(0.88);
}

.btn-fav.favorited {
    color: #F87171;
    animation: heartPop 0.4s var(--ease-spring);
}

/* ============================================
   TAG GRID — 标签卡片网格
   ============================================ */
.tag-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-lg);
    max-width: 100%;
    box-sizing: border-box;
}

.tag-card {
    content-visibility: auto;
    contain-intrinsic-size: 160px;
    background: var(--bg-surface);
    border: 1px solid transparent;
    border-radius: var(--radius-lg);
    padding: 24px var(--space-md) 28px;
    text-align: center;
    cursor: pointer;
    transition: transform var(--duration-fast) var(--ease-spring),
                border-color var(--duration-fast) var(--ease-out),
                box-shadow var(--duration-fast) var(--ease-out),
                filter var(--duration-fast) var(--ease-out);
    position: relative;
    overflow: hidden;
    animation: cardEnter var(--duration-base) var(--ease-out) both;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

/* 带背景图的卡片 — 渐变遮罩 + 内阴影确保文字可读 */
.tag-card--image {
    position: relative;
    background-repeat: no-repeat;
}

/* 背景上的半透明遮罩层 — 确保文字清晰可读 */
.tag-card--image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.30) 0%,
        rgba(0, 0, 0, 0.38) 35%,
        rgba(0, 0, 0, 0.50) 100%
    );
    z-index: 0;
    border-radius: inherit;
    pointer-events: none;
}

.tag-card--image:hover::after {
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.15) 0%,
        rgba(0, 0, 0, 0.22) 35%,
        rgba(0, 0, 0, 0.32) 100%
    );
}

/* 顶部彩色指示条 */
.tag-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--tag-color, var(--accent));
    opacity: 0.8;
    z-index: 3;
    transition: opacity var(--duration-micro) var(--ease-out);
}

.tag-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-default);
    box-shadow: var(--shadow-md), var(--shadow-glow);
}

.tag-card:hover::before { opacity: 1; }
.tag-card:active { transform: translateY(-1px); }

.tag-card-name {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 8px rgba(0,0,0,0.7), 0 1px 2px rgba(0,0,0,0.5);
    letter-spacing: 0.04em;
}

/* 标签徽章（歌曲卡片内） */
.tag-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
    justify-content: center;
}

.tag-badge {
    display: inline-block;
    padding: 1px 8px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.6;
    background: var(--tag-bg, var(--accent-subtle));
    color: var(--tag-color, var(--accent));
    cursor: pointer;
    transition: opacity var(--duration-micro);
}

.tag-badge:hover { opacity: 0.75; }

/* ============================================
   STAR CARDS — 明星子标签卡片
   ============================================ */
.star-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: var(--space-md);
}

.star-card {
    background: var(--bg-surface);
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    padding: var(--space-lg) var(--space-md);
    text-align: center;
    cursor: pointer;
    transition: transform var(--duration-fast) var(--ease-spring),
                border-color var(--duration-fast) var(--ease-out),
                box-shadow var(--duration-fast) var(--ease-out);
    animation: cardEnter var(--duration-base) var(--ease-out) both;
    position: relative;
    overflow: hidden;
    min-height: 110px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

/* 带背景图的明星卡片 */
.star-card--image {
    background-repeat: no-repeat;
}

.star-card--image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.22) 0%,
        rgba(0, 0, 0, 0.38) 40%,
        rgba(0, 0, 0, 0.60) 100%
    );
    z-index: 0;
    border-radius: inherit;
    pointer-events: none;
}

.star-card--image:hover::after {
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.10) 0%,
        rgba(0, 0, 0, 0.22) 40%,
        rgba(0, 0, 0, 0.38) 100%
    );
}

.star-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-default);
    box-shadow: var(--shadow-md);
}

.star-card:active { transform: translateY(-1px); }

.star-card--image .star-card-name {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 6px rgba(0,0,0,0.7), 0 1px 2px rgba(0,0,0,0.5);
    padding-bottom: 4px;
}

/* ============================================
   NOW PLAYING OVERLAY — 沉浸式封面视图
   ============================================ */
.now-playing-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.npo-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(40px) saturate(1.5);
    -webkit-backdrop-filter: blur(40px) saturate(1.5);
    z-index: -1;
    /* 封面主色渐变由 JS 动态设置 */
}

.npo-close {
    position: absolute;
    top: var(--space-lg);
    left: var(--space-lg);
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--text-primary);
    font-size: 20px;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--duration-micro) var(--ease-out),
                transform var(--duration-micro) var(--ease-spring);
    z-index: 1;
}

.npo-close:hover {
    background: rgba(255,255,255,0.16);
    transform: scale(1.08);
}

.npo-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
    animation: npoContentIn var(--duration-slow) var(--ease-out) both;
}

.npo-cover-wrap {
    width: 280px;
    height: 280px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.npo-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.npo-info {
    text-align: center;
}

.npo-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.npo-singer {
    font-size: 16px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* 沉浸式进度条 */
.npo-progress {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    width: 100%;
    max-width: 400px;
}

.npo-progress .progress-time {
    font-size: 11px;
    color: var(--text-tertiary);
    width: 36px;
    text-align: center;
    font-variant-numeric: tabular-nums;
    font-family: var(--font-mono);
}

.npo-progress .progress-bar-wrap {
    flex: 1;
    height: 4px;
    background: rgba(255,255,255,0.12);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.npo-progress .progress-bar-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s linear;
    position: relative;
}

.npo-progress .progress-bar-fill::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    background: #fff;
    border: 2px solid var(--accent);
    border-radius: 50%;
}

/* 沉浸式控件 */
.npo-controls {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.npo-btn {
    width: 44px;
    height: 44px;
    font-size: 22px;
}

.npo-play-btn {
    width: 64px;
    height: 64px;
    border: none;
    background: var(--accent);
    color: #0B0E0C;
    font-size: 28px;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
    transition: transform var(--duration-fast) var(--ease-spring),
                box-shadow var(--duration-fast) var(--ease-out),
                background var(--duration-micro) var(--ease-out);
}

.npo-play-btn:hover {
    transform: scale(1.06);
    box-shadow: 0 0 60px rgba(77, 184, 141, 0.25);
    background: var(--accent-hover);
}

.npo-play-btn:active {
    transform: scale(0.94);
}

/* 沉浸式操作按钮 */
.npo-actions {
    display: flex;
    gap: var(--space-lg);
    margin-top: var(--space-sm);
}

.npo-action-btn {
    padding: 10px 24px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    font-family: var(--font-sans);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: background var(--duration-micro) var(--ease-out),
                border-color var(--duration-micro) var(--ease-out),
                transform var(--duration-micro) var(--ease-spring);
}

.npo-action-btn:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.25);
    transform: translateY(-1px);
}

.npo-action-btn:active {
    transform: translateY(0);
}

/* 沉浸式入场动画 */
@keyframes npoContentIn {
    from { opacity: 0; transform: translateY(24px) scale(0.92); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ============================================
   LYRICS PANEL — 嵌入式歌词侧面板
   ============================================ */

.lyrics-panel {
    position: fixed;
    top: var(--topbar-height);
    bottom: var(--player-height);
    right: 0;
    width: 380px;
    max-width: 90vw;
    z-index: 25;

    background: rgba(21, 26, 23, 0.88);
    backdrop-filter: blur(28px) saturate(1.6);
    -webkit-backdrop-filter: blur(28px) saturate(1.6);
    border-left: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.40);

    display: flex;
    flex-direction: column;
    overflow: hidden;

    transform: translateX(105%);
    transition: transform var(--duration-slow) var(--ease-out);
}

.lyrics-panel.open {
    transform: translateX(0);
}

/* 面板标题栏 */
.lyrics-panel-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0 var(--space-md);
    height: 44px;
    flex-shrink: 0;
    border-bottom: 1px solid var(--border-subtle);
    background: rgba(21, 26, 23, 0.6);
}

.lyrics-panel-song-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.lyrics-panel-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.lyrics-panel-singer {
    font-size: 11px;
    color: var(--text-tertiary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.lyrics-panel-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: var(--radius-full);
    font-size: 16px;
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: color var(--duration-micro) var(--ease-out),
                background var(--duration-micro) var(--ease-out);
}

.lyrics-panel-btn:hover {
    color: var(--accent);
    background: var(--accent-glow);
}

/* 歌词偏移控件 */
.lyrics-offset-controls {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: auto;
    margin-right: var(--space-xs);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--duration-micro) var(--ease-out);
}
.lyrics-panel.open .lyrics-offset-controls {
    opacity: 1;
    pointer-events: auto;
}
.lyrics-offset-btn {
    width: 38px;
    height: 26px;
    border: 1px solid var(--border-color, rgba(255,255,255,0.08));
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-tertiary);
    cursor: pointer;
    font-size: 10px;
    font-family: inherit;
    transition: all var(--duration-micro) var(--ease-out);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lyrics-offset-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-glow);
}
.lyrics-offset-val {
    font-size: 11px;
    color: var(--text-secondary);
    min-width: 40px;
    text-align: center;
    font-variant-numeric: tabular-nums;
    user-select: none;
}
.lyrics-offset-reset {
    width: 26px;
    margin-left: 2px;
    font-size: 13px;
}

/* 歌词内容区 */
.lyrics-panel-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: var(--space-lg) var(--space-md);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(6px, 1.2vh, 12px);
    position: relative;
}

/* 单行歌词 */
.lyrics-panel-body .lyric-line {
    font-size: var(--v-base-size, 14px);
    color: var(--text-tertiary);
    text-align: center;
    transition: all 0.35s ease;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    user-select: none;
}

.lyrics-panel-body .lyric-line:hover {
    color: var(--text-secondary);
    background: rgba(255,255,255,0.03);
}

.lyrics-panel-body .lyric-line.active {
    font-size: var(--v-active-size, 20px);
    font-weight: 700;
    color: var(--accent);
    background: var(--accent-glow);
    transform: scale(1.03);
}

/* 空状态 */
.lyrics-panel-body .lyrics-empty {
    text-align: center;
    color: var(--text-tertiary);
    font-size: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xl) 0;
}

.lyrics-panel-body .lyrics-empty .empty-icon {
    font-size: 44px;
    opacity: 0.35;
}

/* ============================================
   PLAYER BAR — 底部毛玻璃播放栏 72px
   ============================================ */
.player-bar {
    grid-row: 2;
    grid-column: 1 / -1;
    height: var(--player-height);
    background: rgba(14, 18, 16, 0.78);
    backdrop-filter: blur(28px) saturate(1.6);
    -webkit-backdrop-filter: blur(28px) saturate(1.6);
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    padding: 0 var(--space-xl);
    gap: var(--space-lg);
    z-index: 20;
}

/* 左侧：封面 + 歌曲信息 */
.player-now {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    min-width: 180px;
    max-width: 280px;
    flex-shrink: 0;
}

.player-cover-wrap {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    cursor: pointer;
    background: var(--bg-hover);
    transition: transform var(--duration-micro) var(--ease-spring);
    position: relative;
}

.player-cover-wrap:hover {
    transform: scale(1.06);
}

.player-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: rgba(255,255,255,0.2);
}

.player-meta {
    min-width: 0;
}

.player-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.player-singer {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

/* 中央：控件 + 进度条 */
.player-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    max-width: 600px;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.btn-ctrl {
    width: 34px;
    height: 34px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 18px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--duration-micro) var(--ease-spring),
                color var(--duration-micro) var(--ease-out);
    color: var(--text-secondary);
}

.btn-ctrl:hover {
    transform: scale(1.1);
    color: var(--text-primary);
}

.btn-ctrl.play-btn {
    width: 44px;
    height: 44px;
    font-size: 22px;
    background: var(--accent);
    color: #0B0E0C;
    box-shadow: var(--shadow-glow);
    border-radius: var(--radius-full);
}

.btn-ctrl.play-btn:hover {
    background: var(--accent-hover);
    transform: scale(1.08);
    box-shadow: 0 0 48px rgba(77, 184, 141, 0.28);
}

.btn-ctrl.play-btn:active { transform: scale(0.92); }

/* 模式按钮 */
.btn-mode {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.btn-mode svg {
    display: block;
}

.btn-mode.loop-all { color: var(--text-secondary); }
.btn-mode.loop-single { color: var(--accent); }
.btn-mode.shuffle { color: var(--accent); }

/* 歌词文字按钮 */
.btn-lyrics-text {
    width: auto;
    padding: 0 10px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text-secondary);
}
.btn-lyrics-text:hover {
    color: var(--accent);
}

/* 进度条 */
.player-progress {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    width: 100%;
}

.progress-time {
    font-size: 11px;
    color: var(--text-tertiary);
    width: 36px;
    text-align: center;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
    font-family: var(--font-mono);
}

.progress-bar-wrap {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    transition: height var(--duration-micro) var(--ease-out);
}

.progress-bar-wrap:hover { height: 5px; }

.progress-bar-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s linear;
    position: relative;
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: #fff;
    border: 2px solid var(--accent);
    border-radius: 50%;
    opacity: 0;
    transition: opacity var(--duration-micro) var(--ease-out),
                transform var(--duration-micro) var(--ease-spring);
}

.progress-bar-wrap:hover .progress-bar-fill::after {
    opacity: 1;
}

/* 右侧：音量 */
.player-right {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    position: relative;
}

.btn-volume {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.btn-volume svg {
    display: block;
}

/* 音量弹出 */
.volume-popup {
    position: absolute;
    bottom: calc(100% + 8px);
    right: 0;
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    padding: var(--space-md) var(--space-sm);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: dropdownIn 0.15s var(--ease-out);
    z-index: 30;
}

.volume-slider {
    -webkit-appearance: slider-vertical;
    writing-mode: bt-lr;
    height: 100px;
    width: 24px;
    accent-color: var(--accent);
    cursor: pointer;
}

/* ============================================
   TOAST — 轻量提示
   ============================================ */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-elevated);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-active);
    border-radius: var(--radius-full);
    padding: 10px 24px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    z-index: 200;
    pointer-events: none;
    opacity: 0;
    animation: toastBounce 1.8s var(--ease-out) forwards;
    box-shadow: var(--shadow-md);
}

@keyframes toastBounce {
    0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.85); }
    8%   { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
    15%  { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    70%  { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(0.95); }
}

/* ============================================
   MODAL — 弹窗
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 110;
}

.modal-overlay.show {
    display: flex;
}

.modal-box {
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    min-width: 340px;
    max-width: 580px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    animation: modalIn var(--duration-base) var(--ease-out);
}

.modal-body {
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: var(--space-lg);
    color: var(--text-primary);
}

.modal-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: var(--font-sans);
    color: var(--text-primary);
    background: var(--bg-root);
    outline: none;
    transition: border-color var(--duration-micro) var(--ease-out);
}

.modal-input:focus {
    border-color: var(--border-active);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.modal-actions {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
    justify-content: flex-end;
}

.btn {
    padding: 8px 22px;
    border: none;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-sans);
    transition: background var(--duration-micro) var(--ease-out),
                transform var(--duration-micro) var(--ease-spring);
}

.btn:active { transform: scale(0.96); }

.btn-primary {
    background: var(--accent);
    color: #0B0E0C;
}

.btn-primary:hover { background: var(--accent-hover); }

.btn-secondary {
    background: var(--bg-hover);
    color: var(--text-secondary);
}

.btn-secondary:hover {
    background: var(--bg-active);
    color: var(--text-primary);
}

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-tertiary);
    font-size: 14px;
    line-height: 1.8;
}

.empty-state .empty-icon {
    font-size: 52px;
    display: block;
    margin-bottom: var(--space-lg);
    opacity: 0.35;
}

/* ============================================
   AUTH — 登录/用户区
   ============================================ */
.btn-login {
    padding: 8px 20px;
    border: 1px solid var(--accent);
    background: transparent;
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-family: var(--font-sans);
    width: 100%;
    transition: background var(--duration-micro) var(--ease-out),
                color var(--duration-micro) var(--ease-out),
                transform var(--duration-micro) var(--ease-spring);
}

.btn-login:hover {
    background: var(--accent);
    color: #0B0E0C;
    transform: translateY(-1px);
}

.user-menu-wrap {
    position: relative;
}

.btn-user {
    padding: 8px 14px;
    border: 1px solid var(--border-default);
    background: var(--bg-surface);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-family: var(--font-sans);
    width: 100%;
    transition: border-color var(--duration-micro) var(--ease-out),
                transform var(--duration-micro) var(--ease-spring);
}

.btn-user:hover {
    border-color: var(--border-active);
    transform: translateY(-1px);
}

.user-dropdown {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    z-index: 60;
    overflow: hidden;
    animation: dropdownIn 0.15s var(--ease-out);
}

.user-dropdown-item {
    padding: 10px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: background var(--duration-micro) var(--ease-out);
    color: var(--text-primary);
}

.user-dropdown-item:hover {
    background: var(--bg-hover);
}

/* Auth form in modal */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.auth-error {
    color: #F87171;
    font-size: 12px;
    padding: 4px 0;
}

.auth-switch {
    margin-top: 4px;
    font-size: 12px;
    color: var(--text-tertiary);
    text-align: center;
    width: 100%;
}

.auth-switch a {
    color: var(--accent);
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* 头像按钮 */
.btn-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--border-default);
    background: var(--bg-surface);
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color var(--duration-micro) var(--ease-out),
                transform var(--duration-micro) var(--ease-spring);
    overflow: hidden;
    flex-shrink: 0;
}

.btn-user-avatar:hover {
    border-color: var(--accent);
    transform: scale(1.05);
}

.sidebar-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.sidebar-avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--bg-hover);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
}

/* 用户菜单信息行 */
.user-menu-info {
    padding: 4px 0 0 0;
    text-align: center;
}

.user-menu-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

/* 用户菜单 wrap 调整为 flex 列布局 */
.user-menu-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

/* 反馈链接 (在用户区底部) */
.sidebar-feedback-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 6px 0 0;
    border: none;
    background: transparent;
    color: var(--text-tertiary);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    font-family: var(--font-sans);
    transition: color var(--duration-micro) var(--ease-out);
    margin-top: 2px;
}

.sidebar-feedback-link:hover {
    color: var(--accent);
}

/* Auth Modal 验证码发送提示 */
.auth-code-sent {
    font-size: 13px;
    color: var(--text-secondary);
    text-align: center;
    padding: 4px 0;
}

.auth-code-input {
    text-align: center;
    letter-spacing: 8px;
    font-size: 24px !important;
    font-weight: 700;
}

/* Modal textarea */
.modal-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
    color: var(--text-primary);
    font-size: 14px;
    font-family: var(--font-sans);
    resize: vertical;
    outline: none;
    transition: border-color var(--duration-micro) var(--ease-out);
}

.modal-textarea:focus {
    border-color: var(--accent);
}

/* ============================================
   PLAYLIST ITEMS (侧边栏歌单/收藏列表内)
   ============================================ */
.playlist-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 10px var(--space-md);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background var(--duration-micro) var(--ease-out);
    font-size: 14px;
}

.playlist-item:hover {
    background: var(--bg-hover);
}

.playlist-item .pl-name {
    flex: 1;
    font-weight: 500;
    color: var(--text-primary);
}

.pl-name-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    padding: 2px 0;
    outline: none;
    font-family: inherit;
}

/* ============================================
   ADD TO PLAYLIST POPUP (Hover 弹出菜单)
   ============================================ */
.add-to-pl-popup {
    position: fixed;
    background: rgba(28, 35, 32, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    min-width: 180px;
    max-height: 280px;
    overflow-y: auto;
    z-index: 120;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    padding: 6px;
    animation: popupIn 0.15s ease-out;
}

@keyframes popupIn {
    from { opacity: 0; transform: scale(0.92) translateY(-4px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.add-to-pl-popup::-webkit-scrollbar {
    width: 4px;
}

.add-to-pl-popup::-webkit-scrollbar-thumb {
    background: var(--text-tertiary);
    border-radius: 2px;
}

.add-to-pl-item {
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-primary);
    transition: background var(--duration-micro) var(--ease-out);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.add-to-pl-item:hover {
    background: var(--bg-hover);
}

.add-to-pl-empty {
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-tertiary);
}

.add-to-pl-divider {
    height: 1px;
    background: var(--border-subtle);
    margin: 4px 0;
}

.add-to-pl-new {
    color: var(--accent);
    font-weight: 500;
}

.add-to-pl-new:hover {
    background: rgba(77, 184, 141, 0.1);
}

/* ============================================
   PLAYLIST ADD BUTTON (旧弹窗按钮，保留兼容)
   ============================================ */
.btn-add-to-pl {
    padding: 5px 14px;
    border: 1px solid var(--border-active);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 500;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: background var(--duration-micro) var(--ease-out),
                border-color var(--duration-micro) var(--ease-out),
                opacity var(--duration-micro) var(--ease-out);
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-add-to-pl:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--accent);
}

.btn-add-to-pl:active {
    transform: scale(0.95);
}

.btn-add-to-pl.loading {
    pointer-events: none;
    opacity: 0.7;
    color: transparent;
    position: relative;
}

.btn-add-to-pl.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 14px;
    margin: -7px 0 0 -7px;
    border: 2px solid var(--text-secondary);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: btnSpin 0.6s linear infinite;
}

@keyframes btnSpin {
    to { transform: rotate(360deg); }
}

/* ============================================
   PLAYLIST LIST — song-list 风格（废弃旧样式）
   ============================================ */

/* 保留 .btn-show-all / .btn-new-pl / .pl-name-input 全局引用 */
.pl-count .btn-show-all {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-tertiary);
    font-size: 11px;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: color var(--duration-micro) var(--ease-out),
                border-color var(--duration-micro) var(--ease-out),
                background var(--duration-micro) var(--ease-out);
    white-space: nowrap;
}

.pl-count .btn-show-all:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(77, 184, 141, 0.08);
}

.pl-name-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    padding: 2px 0;
    outline: none;
    font-family: inherit;
}

.btn-new-pl {
    width: 100%;
    padding: 10px;
    border: 2px dashed var(--border-default);
    background: transparent;
    cursor: pointer;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    font-family: var(--font-sans);
    transition: border-color var(--duration-micro) var(--ease-out),
                color var(--duration-micro) var(--ease-out);
    margin-top: var(--space-sm);
}

.btn-new-pl:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-new-pl {
    width: 100%;
    padding: 10px;
    border: 2px dashed var(--border-default);
    background: transparent;
    cursor: pointer;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    font-family: var(--font-sans);
    transition: border-color var(--duration-micro) var(--ease-out),
                color var(--duration-micro) var(--ease-out);
    margin-top: var(--space-sm);
}

.btn-new-pl:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-play-all {
    width: 100%;
    padding: 10px 16px;
    border: none;
    background: var(--accent);
    color: #0B0E0C;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: var(--font-sans);
    margin-bottom: var(--space-sm);
    transition: transform var(--duration-micro) var(--ease-spring),
                box-shadow var(--duration-micro) var(--ease-out);
    box-shadow: 0 2px 12px rgba(77, 184, 141, 0.25);
}

.btn-play-all:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(77, 184, 141, 0.4);
}

/* 歌单删除按钮 — SVG 图标，与页面风格一致 */
.song-list-item .btn-delete-pl {
    width: 34px;
    height: 34px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    transition: all var(--duration-micro) var(--ease-out);
}

.song-list-item:hover .btn-delete-pl {
    color: #F87171;
    background: rgba(248, 113, 113, 0.12);
}

/* 加载转圈 */
.loading-spinner-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 0;
}

.loading-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid var(--border-subtle);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.loading-ring {
    width: 28px;
    height: 28px;
    border: 3px solid var(--border-subtle);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.loading-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 13px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn-play-all:active {
    transform: translateY(0);
}

.btn-playlist-play {
    width: 30px;
    height: 30px;
    border: none;
    background: var(--accent-subtle);
    color: var(--accent);
    cursor: pointer;
    font-size: 12px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform var(--duration-micro) var(--ease-spring),
                background var(--duration-micro) var(--ease-out),
                color var(--duration-micro) var(--ease-out);
}

.btn-playlist-play:hover {
    background: var(--accent);
    color: #0B0E0C;
    transform: scale(1.12);
}

/* playlist song item in modal */
.pl-song-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-primary);
    transition: background var(--duration-micro) var(--ease-out);
}

.pl-song-item:hover {
    background: var(--bg-hover);
}

.pl-song-item .btn-remove-song {
    opacity: 0;
    transition: opacity var(--duration-micro) var(--ease-out);
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-tertiary);
    border-radius: 50%;
}

.pl-song-item:hover .btn-remove-song {
    opacity: 1;
}

.pl-song-item .btn-remove-song:hover {
    color: #F87171;
}

/* remove-from-pl button in playlist songs page — 已合并到 .btn-fav, .btn-add, .btn-copy-link 统一样式 */

/* Now Playing dot */
.now-playing-dot {
    width: 6px;
    height: 6px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulseDot 1.5s var(--ease-in-out) infinite;
    flex-shrink: 0;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.35; }
}

/* ============================================
   SKELETON — 骨架屏
   ============================================ */
.skeleton {
    background: linear-gradient(
        90deg,
        var(--bg-hover) 25%,
        var(--bg-elevated) 50%,
        var(--bg-hover) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: var(--radius-sm);
}

.skeleton-cover {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius-md);
}

.skeleton-text {
    height: 14px;
    margin-top: 8px;
}

.skeleton-text.short {
    width: 60%;
}

/* Skeleton card — mimics .tag-card dimensions */
.skeleton-card {
    width: 100%;
    min-height: 110px;
    border-radius: var(--radius-md);
    animation: shimmer 1.5s ease-in-out infinite, cardEnter var(--duration-base) var(--ease-out) both;
}

/* Skeleton cover card — mimics .cover-card dimensions */
.skeleton-cover-card {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    animation: shimmer 1.5s ease-in-out infinite, cardEnter var(--duration-base) var(--ease-out) both;
}

@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============================================
   KEYFRAMES — 全局动效
   ============================================ */
@keyframes cardEnter {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes glowPulse {
    0%, 100% { box-shadow: var(--shadow-md), 0 0 8px rgba(77, 184, 141, 0.05); }
    50%      { box-shadow: var(--shadow-md), 0 0 32px rgba(77, 184, 141, 0.20); }
}

@keyframes heartPop {
    0%   { transform: scale(1); }
    30%  { transform: scale(0.8); }
    60%  { transform: scale(1.35); }
    100% { transform: scale(1); }
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(16px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes dropdownIn {
    from { opacity: 0; transform: translateY(-6px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ============================================
   TABLET DRAWER — 平板底部抽屉
   ============================================ */
.fab-drawer-trigger { display: none !important; }
.drawer-overlay { display: none; }
.drawer-sheet { display: none; }

@media (max-width: 1023px) {
    /* 隐藏侧边栏 */
    .sidebar {
        display: none;
    }

    .app-layout {
        grid-template-columns: 1fr;
    }

    .content-wrapper {
        grid-column: 1;
    }

    /* 显示汉堡菜单 */
    .btn-menu {
        display: flex;
    }

    .top-bar {
        padding: 0 var(--space-lg);
    }

    .content-area {
        padding: 0 var(--space-lg) var(--space-lg);
    }

    /* 标签网格：平板用3列 */
    .tag-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-md);
    }

    .tag-card {
        min-height: 140px;
        padding: 20px var(--space-sm) 22px;
    }

    /* 歌词面板全宽 */
    .lyrics-panel {
        width: 100%;
        max-width: 100%;
        left: 0;
        right: 0;
        top: var(--topbar-height);
        border-radius: 0;
        border-left: none;
        border-top: 1px solid var(--border-subtle);
    }

    /* FAB */
    .fab-drawer-trigger {
        display: flex;
        position: fixed;
        bottom: calc(var(--player-height) + var(--space-lg));
        right: var(--space-lg);
        width: 48px;
        height: 48px;
        border-radius: var(--radius-full);
        background: var(--accent);
        color: #0B0E0C;
        border: none;
        cursor: pointer;
        font-size: 20px;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 20px rgba(77, 184, 141, 0.35);
        z-index: 90;
        transition: transform var(--duration-micro) var(--ease-spring);
    }

    .fab-drawer-trigger:hover { transform: scale(1.1); }
    .fab-drawer-trigger:active { transform: scale(0.9); }

    /* 底部抽屉 */
    .drawer-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(4px);
        z-index: 110;
        opacity: 0;
        transition: opacity var(--duration-base) var(--ease-out);
        pointer-events: none;
    }

    .drawer-overlay.show {
        opacity: 1;
        pointer-events: auto;
    }

    .drawer-sheet {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 60vh;
        background: var(--bg-elevated);
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        border-top: 1px solid var(--border-default);
        z-index: 111;
        flex-direction: column;
        transform: translateY(100%);
        transition: transform var(--duration-slow) var(--ease-spring);
    }

    .drawer-sheet.show {
        transform: translateY(0);
    }

    .drawer-handle {
        width: 32px;
        height: 4px;
        background: rgba(255,255,255,0.15);
        border-radius: 2px;
        margin: var(--space-sm) auto;
        flex-shrink: 0;
    }

    .drawer-tabs {
        display: flex;
        border-bottom: 1px solid var(--border-subtle);
        flex-shrink: 0;
    }

    .drawer-tab {
        flex: 1;
        padding: 14px 0;
        border: none;
        background: transparent;
        cursor: pointer;
        font-size: 14px;
        font-weight: 600;
        color: var(--text-secondary);
        font-family: var(--font-sans);
        position: relative;
        transition: color var(--duration-micro) var(--ease-out);
    }

    .drawer-tab:hover { color: var(--text-primary); }

    .drawer-tab.active {
        color: var(--accent);
    }

    .drawer-tab.active::after {
        content: '';
        position: absolute;
        bottom: -1px;
        left: 50%;
        transform: translateX(-50%);
        width: 32px;
        height: 2px;
        background: var(--accent);
        border-radius: 2px;
    }

    .drawer-content {
        flex: 1;
        overflow-y: auto;
    }

    .drawer-panel {
        padding: var(--space-md);
    }

    .player-bar {
        padding: 0 var(--space-lg);
    }

    .player-now {
        min-width: 120px;
        max-width: 200px;
    }
}

/* ============================================
   RESPONSIVE — 手机 (< 768px)
   ============================================ */
@media (max-width: 767px) {
    :root {
        --player-height: 52px;
    }

    .top-bar {
        padding: 0 var(--space-md);
    }

    .content-area {
        padding: 0 var(--space-md) var(--space-md);
    }

    /* 歌词面板缩小 */
    .lyrics-panel {
        top: var(--topbar-height);
        bottom: var(--player-height);
    }

    .lyrics-panel-body {
        padding: var(--space-md) var(--space-sm);
        gap: clamp(4px, 1vh, 8px);
    }

    .lyrics-panel-body .lyric-line {
        font-size: 13px;
    }

    .lyrics-panel-body .lyric-line.active {
        font-size: 17px;
    }

    .cover-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
    }

    .cover-card {
        padding: var(--space-sm) var(--space-sm) var(--space-md);
        content-visibility: visible;
        contain-intrinsic-size: auto;
    }

    .cover-card-img-wrap {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
    }

    .cover-card-title {
        font-size: 13px;
    }

    .tag-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }

    .tag-card {
        min-height: 130px;
        padding: 16px var(--space-sm) 18px;
    }

    .tag-card-name {
        font-size: 14px;
    }

    /* 迷你播放栏 */
    .player-bar {
        padding: 0 var(--space-md);
        height: 52px;
        gap: var(--space-sm);
    }

    .player-right { display: none; }
    .player-now { max-width: 140px; }

    .player-cover-wrap {
        width: 38px;
        height: 38px;
    }

    .btn-ctrl.play-btn {
        width: 34px;
        height: 34px;
        font-size: 16px;
    }

    .btn-ctrl {
        width: 24px;
        height: 24px;
        font-size: 14px;
    }

    .player-controls {
        gap: var(--space-sm);
    }

    .player-title { font-size: 12px; }
    .player-singer { font-size: 11px; }

    /* 进度条在小屏幕上缩小间距 */
    .player-progress {
        gap: 4px;
    }
    .player-progress .progress-time {
        font-size: 10px;
        width: 28px;
    }

    /* 歌词文字按钮在手机版缩小 */
    .btn-lyrics-text {
        padding: 0 8px;
        font-size: 11px;
        letter-spacing: 0.5px;
    }

    /* 展开播放栏 — 显示音量 */
    .player-bar.expanded {
        height: auto;
        flex-wrap: wrap;
        padding: var(--space-sm) var(--space-md) var(--space-md);
    }

    .player-bar.expanded .player-right {
        display: flex;
    }

    /* 搜索全宽 */
    .search-wrap {
        max-width: 100%;
    }

    .top-bar-spacer {
        display: none;
    }

    /* FAB */
    .fab-drawer-trigger {
        bottom: calc(52px + var(--space-md));
        right: var(--space-md);
    }

    /* 沉浸式 Now Playing */
    .npo-cover-wrap {
        width: 220px;
        height: 220px;
    }

    .npo-title {
        font-size: 20px;
    }

    .npo-play-btn {
        width: 56px;
        height: 56px;
        font-size: 24px;
    }
}

/* ============================================
   TAG GRID RESPONSIVE
   ============================================ */
@media (max-width: 1300px) {
    .tag-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1023px) {
    .tag-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-md);
    }

    .tag-card {
        min-height: 140px;
        padding: 20px var(--space-sm) 22px;
    }
}

@media (max-width: 767px) {
    .tag-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }

    .tag-card {
        min-height: 130px;
        padding: 16px var(--space-sm) 18px;
    }

    .tag-card-name {
        font-size: 14px;
    }
}

@media (max-width: 600px) {
    .tag-grid {
        gap: var(--space-sm);
    }

    .tag-card {
        padding: 12px 8px 16px;
    }

    .tag-card-name {
        font-size: 14px;
    }

    .star-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   首页 — 全新设计
   ============================================ */

/* ---------- Hero Banner ---------- */
.home-hero {
    position: relative;
    height: 300px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: var(--space-xl);
    cursor: pointer;
    display: flex;
    align-items: flex-end;
    animation: heroFadeIn 0.6s var(--ease-out) both;
}
.home-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(50px) brightness(0.3) saturate(0.8);
    transform: scale(1.1);
    transition: transform 0.4s var(--ease-out);
}
.home-hero:hover .home-hero-bg {
    transform: scale(1.15);
}
.home-hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11,14,12,0.97) 0%, rgba(11,14,12,0.4) 40%, rgba(11,14,12,0.05) 80%);
    z-index: 1;
}
.home-hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(77,184,141,0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(77,184,141,0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(77,184,141,0.03) 0%, transparent 50%);
    z-index: 1;
}
.home-hero-cover {
    position: absolute;
    right: 36px;
    bottom: 36px;
    width: 160px;
    height: 160px;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 8px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.06);
    z-index: 2;
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.home-hero:hover .home-hero-cover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 48px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.08);
}
.home-hero-content {
    position: relative;
    z-index: 2;
    padding: 36px;
    max-width: 60%;
}
.home-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
    background: rgba(77, 184, 141, 0.12);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    margin-bottom: 10px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}
.home-hero-title {
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    letter-spacing: -0.3px;
}
.home-hero-summary {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    line-height: 1.6;
    margin-bottom: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 480px;
}
.home-hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.home-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: var(--radius-full);
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.home-hero-btn:hover { transform: translateY(-1px); }
.home-hero-btn:active { transform: scale(0.97); }
.home-hero-btn--primary {
    background: var(--accent);
    color: #0B0E0C;
    box-shadow: 0 4px 16px rgba(77,184,141,0.3);
}
.home-hero-btn--primary:hover {
    box-shadow: 0 6px 24px rgba(77,184,141,0.4);
}
.home-hero-btn--secondary {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.9);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.1);
}
.home-hero-btn--secondary:hover {
    background: rgba(255,255,255,0.15);
}

/* 默认 Hero（无每日推荐时） */
.home-hero--default {
    background: linear-gradient(135deg, #0d1f17 0%, #0B0E0C 50%, #1a0f0f 100%);
}
.home-hero--default .home-hero-cover { display: none; }
.home-hero--default .home-hero-title {
    font-size: 30px;
}
.home-hero--default .home-hero-summary {
    color: rgba(255,255,255,0.45);
    max-width: 400px;
}

/* ---------- 首页板块 ---------- */
.home-section {
    margin-bottom: var(--space-xl);
    animation: sectionFadeUp 0.5s var(--ease-out) both;
}
.home-section:nth-child(2) { animation-delay: 0.08s; }
.home-section:nth-child(3) { animation-delay: 0.15s; }
.home-section:nth-child(4) { animation-delay: 0.22s; }

.home-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.home-section-header h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
}
.home-section-link {
    font-size: 13px;
    color: var(--accent);
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}
.home-section-link:hover { opacity: 1; text-decoration: underline; }

/* 最近更新横滑卡片 (Bento 风格) */
.notes-hscroll {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x proximity;
    scroll-behavior: smooth;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
    /* 左右边缘渐淡 — 卡片进入/离开时柔化提示 */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
    -webkit-mask-composite: add;
    mask-composite: add;
}
.notes-hscroll::-webkit-scrollbar,
.recommended-scroll::-webkit-scrollbar {
    display: none;
}
/* Touch 优化 — 告知浏览器仅水平滚动 */
.notes-hscroll,
.recommended-scroll {
    touch-action: pan-x;
}

.notes-hscroll,
.recommended-scroll {
    cursor: grab;
}

.notes-hscroll:active,
.recommended-scroll:active {
    cursor: grabbing;
}

/* 拖动滚动时禁用子元素点击（防止拖动误触发导航） */
.notes-hscroll.drag-scroll-lock .note-hscroll-card,
.recommended-scroll.drag-scroll-lock .recommended-item {
    pointer-events: none;
}

/* 拖动中禁用子元素点击和文本选中 */
.notes-hscroll.dragging .note-hscroll-card,
.recommended-scroll.dragging .recommended-item {
    pointer-events: none;
    user-select: none;
}
.note-hscroll-card {
    flex-shrink: 0;
    width: 240px;
    scroll-snap-align: start;
    cursor: pointer;
    transition: transform 0.2s var(--ease-out);
}
.note-hscroll-card:hover { transform: translateY(-4px); }
.note-hscroll-card:active { transform: scale(0.98); }
.note-hscroll-inner {
    background: var(--bg-elevated);
    border-radius: 14px;
    padding: 20px;
    height: 170px;
    display: flex;
    flex-direction: column;
    transition: background 0.2s, box-shadow 0.2s;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.note-hscroll-card:hover .note-hscroll-inner {
    background: var(--bg-hover);
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    border-color: var(--border-active);
    transform: scale(1.02);
}
.note-hscroll-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.note-hscroll-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(77,184,141,0.12);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.note-hscroll-date {
    font-size: 11px;
    color: var(--text-tertiary);
    font-weight: 500;
}
.note-hscroll-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 0;
}
.note-hscroll-summary {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
    margin-bottom: 6px;
}
.note-hscroll-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-shrink: 0;
}
.note-hscroll-tags { display: flex; gap: 4px; flex-wrap: wrap; min-width: 0; overflow: hidden; }
.note-hscroll-tag {
    font-size: 10px;
    font-weight: 500;
    color: var(--accent);
    background: rgba(77,184,141,0.1);
    padding: 2px 8px;
    border-radius: 8px;
    white-space: nowrap;
}
.note-hscroll-readmore {
    font-size: 11px;
    color: var(--text-tertiary);
    white-space: nowrap;
    flex-shrink: 0;
    transition: color 0.2s;
}
.note-hscroll-card:hover .note-hscroll-readmore { color: var(--accent); }

/* 推荐歌曲横滑 */
.recommended-scroll {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x proximity;
    scroll-behavior: smooth;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
    /* 左右边缘渐淡 */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
    -webkit-mask-composite: add;
    mask-composite: add;
}
.recommended-item {
    flex-shrink: 0;
    width: 130px;
    scroll-snap-align: start;
    cursor: pointer;
    transition: transform 0.2s var(--ease-out);
}
.recommended-item:hover { transform: translateY(-4px); }
.recommended-item:active { transform: scale(0.97); }
.recommended-item-cover-wrap {
    position: relative;
    width: 130px;
    height: 130px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 8px;
    background: var(--bg-elevated);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.recommended-item-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s var(--ease-out);
}
.recommended-item:hover .recommended-item-cover { transform: scale(1.05); }
.recommended-item-play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s var(--ease-out);
    color: #fff;
}
.recommended-item:hover .recommended-item-play-overlay { opacity: 1; }
.recommended-item-title {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
    padding: 0 2px;
}
.recommended-item-singer {
    font-size: 11px;
    color: var(--text-tertiary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 2px;
}
}

/* ---------- 最新评论动态 ---------- */
.comment-feed-list { display: flex; flex-direction: column; gap: 10px; }
.comment-feed-item {
    background: var(--bg-elevated);
    border-radius: 12px;
    padding: 16px;
    transition: background 0.2s;
    border: 1px solid var(--border-subtle);
}
.comment-feed-item:hover { background: var(--bg-hover); border-color: var(--border-default); }
.comment-feed-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.comment-feed-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--bg-elevated); }
.comment-feed-avatar-placeholder {
    width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg, var(--accent-subtle), rgba(77,184,141,0.2));
    color: var(--accent); display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700;
}
.comment-feed-header-text { flex: 1; min-width: 0; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.comment-feed-user { font-size: 12px; font-weight: 600; color: var(--text-primary); }
.comment-feed-meta { font-size: 11px; color: var(--text-tertiary); }
.comment-feed-note-link { font-size: 11px; color: var(--accent); cursor: pointer; font-weight: 500; }
.comment-feed-note-link:hover { text-decoration: underline; }
.comment-feed-text { font-size: 13px; color: var(--text-secondary); line-height: 1.5; padding-left: 38px; }
.comment-feed-text .song-embed { margin: 6px 0; padding: 8px 10px; background: rgba(0,0,0,0.15); }
.comment-feed-text .song-embed-title { font-size: 13px; }
.comment-feed-text .song-embed-singer { font-size: 11px; }
.comment-feed-time { font-size: 11px; color: var(--text-tertiary); white-space: nowrap; flex-shrink: 0; }

/* ========== 入场动画 ========== */
@keyframes heroFadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes sectionFadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

/* ============================================
   评论区
   ============================================ */
.comments-section { margin-top: 32px; padding-top: 16px; }
.comments-section-header {
    font-size: 16px; font-weight: 600; color: var(--text-primary);
    margin-bottom: 16px; display: flex; align-items: center; gap: 6px;
}
.comments-count { color: var(--text-tertiary); font-size: 13px; font-weight: 400; }

.comment-form { display: flex; gap: 10px; margin-bottom: 10px; }
.comment-form textarea {
    flex: 1; padding: 12px 16px; border-radius: var(--radius-sm);
    border: 1px solid var(--border-default); background: var(--bg-surface);
    color: var(--text-primary); font-size: 13px; font-family: var(--font-sans);
    resize: vertical; min-height: 48px; max-height: 160px;
    transition: border-color 0.2s;
}
.comment-form textarea:focus { outline: none; border-color: var(--accent); }
.comment-form textarea::placeholder { color: var(--text-tertiary); }
.comment-submit-btn {
    align-self: flex-end; padding: 8px 18px; border-radius: var(--radius-sm);
    border: none; background: var(--accent); color: #0B0E0C;
    font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap;
    transition: opacity 0.2s; display: flex; align-items: center; gap: 4px;
}
.comment-submit-btn:hover { opacity: 0.85; }
.comment-submit-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.comment-hint { font-size: 11px; color: var(--text-tertiary); margin-bottom: 16px; }
.comment-hint code {
    background: rgba(77,184,141,0.12); color: var(--accent); padding: 1px 5px;
    border-radius: 3px; font-family: var(--font-mono); font-size: 11px;
}

.comment-item { display: flex; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--border-subtle); }
.comment-item:last-child { border-bottom: none; }
.comment-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--bg-elevated); }
.comment-avatar-placeholder {
    width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg, var(--accent-subtle), rgba(77,184,141,0.2));
    color: var(--accent); display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700;
}
.comment-body { flex: 1; min-width: 0; }
.comment-meta {
    font-size: 12px; color: var(--text-tertiary); margin-bottom: 4px;
    display: flex; align-items: center; gap: 8px;
}
.comment-username { font-weight: 600; color: var(--text-secondary); }
.comment-time { font-size: 11px; }
.comment-text { font-size: 14px; color: var(--text-primary); line-height: 1.65; }
.comment-text .song-embed { margin: 8px 0; }
.comment-delete-btn {
    font-size: 11px; color: var(--text-tertiary); cursor: pointer;
    background: none; border: none; padding: 2px 4px; margin-left: auto;
    display: inline-flex; align-items: center; gap: 2px;
    transition: color 0.2s;
}
.comment-delete-btn:hover { color: #E74C3C; }
.comment-login-hint {
    text-align: center; padding: 16px; color: var(--text-tertiary);
    font-size: 13px; display: flex; align-items: center; justify-content: center; gap: 4px;
}
.comment-login-hint span { color: var(--accent); cursor: pointer; }
.comment-login-hint span:hover { text-decoration: underline; }
.comment-login-hint code {
    background: rgba(77,184,141,0.12); color: var(--accent); padding: 1px 5px;
    border-radius: 3px; font-family: var(--font-mono); font-size: 12px;
}
.comment-empty { text-align: center; padding: 24px; color: var(--text-tertiary); font-size: 13px; }

/* ============================================
   博客文章详情 (NOTE DETAIL)
   ============================================ */
.note-detail {
    max-width: 720px;
    margin: 0 auto;
    padding: 8px 0 24px;
    line-height: 1.8;
    color: var(--text-primary);
}
.note-detail-header {
    margin-bottom: 20px;
}
.note-detail-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.note-detail-tag {
    font-size: 12px;
    color: var(--accent);
    background: rgba(77,184,141,0.12);
    padding: 2px 10px;
    border-radius: 12px;
}
.note-detail h1 {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.3;
}
.note-detail-meta {
    font-size: 13px;
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.note-detail-divider {
    border: none;
    border-top: 1px solid var(--border-default);
    margin: 20px 0;
}
.note-detail h2 { font-size: 20px; font-weight: 600; margin-top: 28px; margin-bottom: 10px; }
.note-detail h3 { font-size: 17px; font-weight: 600; margin-top: 20px; margin-bottom: 8px; }
.note-detail p { margin-bottom: 16px; }
.note-detail blockquote {
    border-left: 3px solid var(--accent);
    padding-left: 16px;
    color: var(--text-secondary);
    margin: 16px 0;
}
.note-detail code {
    background: rgba(255,255,255,0.06);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.9em;
}
.note-detail pre {
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    padding: 16px;
    overflow-x: auto;
    margin: 16px 0;
}
.note-detail pre code {
    background: none;
    padding: 0;
}
.note-detail ul, .note-detail ol {
    margin-bottom: 16px;
    padding-left: 24px;
}
.note-detail li { margin-bottom: 4px; }
.note-detail img {
    max-width: 100%;
    border-radius: 8px;
    margin: 16px 0;
}
.note-detail table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}
.note-detail th, .note-detail td {
    border: 1px solid var(--border-default);
    padding: 8px 12px;
    text-align: left;
    font-size: 14px;
}
.note-detail th { background: var(--bg-elevated); font-weight: 600; }

/* 歌曲嵌入卡片 */
.song-embed {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    background: var(--bg-elevated);
    cursor: pointer;
    margin: 16px 0;
    transition: background 0.2s;
}
.song-embed:hover { background: var(--bg-hover); }
.song-embed:active { transform: scale(0.99); }
.song-embed-cover {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}
.song-embed-info { flex: 1; min-width: 0; }
.song-embed-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}
.song-embed-singer { font-size: 12px; color: var(--text-tertiary); }
.song-embed-icon { font-size: 18px; flex-shrink: 0; }

/* ============================================
   笔记多首歌曲列表 (NOTE SONG LIST)
   ============================================ */
.note-song-list {
    margin: 16px 0;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-elevated);
}

.note-song-list-header {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 10px 12px 4px 12px;
    letter-spacing: 0.3px;
}

.note-song-list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    cursor: pointer;
    transition: background 0.15s;
    border-radius: 4px;
    margin: 0 4px;
}

.note-song-list-item:hover {
    background: var(--bg-hover);
}

.note-song-list-item:active {
    transform: scale(0.99);
}

.note-song-list-item.playing {
    background: rgba(77, 184, 141, 0.08);
}

.note-song-list-cover {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.note-song-list-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.note-song-list-info {
    flex: 1;
    min-width: 0;
}

.note-song-list-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.note-song-list-meta {
    font-size: 12px;
    color: var(--text-tertiary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.note-song-list-path {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
}

.note-hscroll-songs,
.note-card-songs {
    font-size: 11px;
    color: var(--accent);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 编辑器歌曲搜索结果弹窗 */
.song-search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
}

.song-search-modal {
    background: var(--bg-elevated);
    border-radius: 16px;
    width: 520px;
    max-width: 90vw;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.song-search-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 16px 0 16px;
}

.song-search-header input {
    flex: 1;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--bg-root);
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
}

.song-search-header input:focus {
    border-color: var(--accent);
}

.song-search-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

.song-search-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    cursor: pointer;
    transition: background 0.12s;
    border-left: 3px solid transparent;
}

.song-search-item:hover {
    background: var(--bg-hover);
}

.song-search-item.selected {
    background: rgba(77, 184, 141, 0.08);
    border-left-color: var(--accent);
}

.song-search-item-cover {
    width: 36px;
    height: 36px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
}

.song-search-item-info {
    flex: 1;
    min-width: 0;
}

.song-search-item-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-search-item-meta {
    font-size: 11px;
    color: var(--text-tertiary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-search-item-check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.15s;
    font-size: 11px;
    color: transparent;
}

.song-search-item.selected .song-search-item-check {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.song-search-empty {
    padding: 32px;
    text-align: center;
    color: var(--text-tertiary);
    font-size: 13px;
}

.song-search-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid var(--border-color);
}

/* 编辑器多首歌曲 Chips */
.selected-songs-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.selected-song-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px 4px 10px;
    background: rgba(77, 184, 141, 0.12);
    border: 1px solid rgba(77, 184, 141, 0.25);
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-primary);
    cursor: default;
}

.selected-song-chip .remove {
    cursor: pointer;
    opacity: 0.5;
    font-size: 14px;
    line-height: 1;
    color: var(--text-secondary);
}

.selected-song-chip .remove:hover {
    opacity: 1;
    color: var(--accent);
}

.note-detail-actions {
    display: flex;
    gap: 10px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border-default);
}
.note-detail-btn {
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid var(--border-default);
    background: var(--bg-elevated);
    color: var(--text-primary);
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
}
.note-detail-btn:hover { background: var(--bg-hover); }
.note-detail-btn--danger { color: #E74C3C; border-color: rgba(231,76,60,0.3); }
.note-detail-btn--danger:hover { background: rgba(231,76,60,0.1); }

/* ============================================
   博客编辑器 (NOTE EDITOR)
   ============================================ */
.note-editor-modal {
    width: 680px;
    max-width: 94vw;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
}
.note-editor-modal .modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 0 4px;
}
.note-editor-field {
    margin-bottom: 16px;
}
.note-editor-field label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}
.note-editor-field input[type="text"],
.note-editor-field textarea {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-default);
    border-radius: 8px;
    padding: 10px 14px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.note-editor-field input[type="text"]:focus,
.note-editor-field textarea:focus {
    outline: none;
    border-color: var(--accent);
}
.note-editor-field textarea {
    min-height: 280px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
    resize: vertical;
}

/* 标签输入区域 */
.tag-input-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 10px;
    background: var(--bg-input);
    border: 1px solid var(--border-default);
    border-radius: 8px;
    cursor: text;
    min-height: 40px;
    align-items: center;
}
.tag-input-wrap:focus-within {
    border-color: var(--accent);
}
.tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(77,184,141,0.15);
    color: var(--accent);
    border-radius: 12px;
    padding: 2px 10px;
    font-size: 13px;
}
.tag-chip .remove-tag {
    cursor: pointer;
    opacity: 0.6;
    font-size: 14px;
    line-height: 1;
}
.tag-chip .remove-tag:hover { opacity: 1; }
.tag-input-inline {
    border: none !important;
    background: transparent !important;
    padding: 4px 0 !important;
    min-width: 80px;
    flex: 1;
    font-size: 13px;
    color: var(--text-primary);
    outline: none;
}

/* 开关 */
.toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
}
.toggle-label { font-size: 14px; color: var(--text-primary); }
.toggle-switch {
    position: relative;
    width: 40px;
    height: 22px;
    cursor: pointer;
}
.toggle-switch input { display: none; }
.toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--border-default);
    border-radius: 11px;
    transition: background 0.2s;
}
.toggle-slider::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--text-primary);
    top: 2px;
    left: 2px;
    transition: transform 0.2s;
}
.toggle-switch input:checked + .toggle-slider { background: var(--accent); }
.toggle-switch input:checked + .toggle-slider::after { transform: translateX(18px); }

/* 编辑器底部操作栏 */
.note-editor-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding-top: 12px;
    border-top: 1px solid var(--border-default);
    margin-top: 12px;
}
.btn-note-save {
    padding: 8px 20px;
    border-radius: 8px;
    border: none;
    background: var(--accent);
    color: #0B0E0C;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}
.btn-note-save:hover { opacity: 0.85; }
.btn-note-preview {
    padding: 8px 20px;
    border-radius: 8px;
    border: 1px solid var(--border-default);
    background: transparent;
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
}
.btn-note-preview:hover { background: var(--bg-hover); }
.btn-note-publish {
    padding: 8px 20px;
    border-radius: 8px;
    border: none;
    background: #9B59B6;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}
.btn-note-publish:hover { opacity: 0.85; }

/* 歌曲选择器（编辑器内） */
.song-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}
.song-selector input {
    flex: 1;
}
.song-selector-result {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: var(--bg-elevated);
    border-radius: 6px;
    font-size: 13px;
}
.song-selector-result .remove {
    cursor: pointer;
    opacity: 0.6;
}
.song-selector-result .remove:hover { opacity: 1; }

/* ============================================
   博客文章列表 (NOTES LIST)
   ============================================ */
.notes-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.notes-list-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}
.btn-write-note {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    background: var(--accent);
    color: #0B0E0C;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}
.btn-write-note:hover { opacity: 0.85; }

.note-card {
    background: var(--bg-elevated);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}
.note-card:hover { background: var(--bg-hover); }
.note-card:active { transform: scale(0.99); }
.note-card-date {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-bottom: 4px;
}
.note-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    line-height: 1.4;
}
.note-card-summary {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.note-card-tags {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}
.note-card-tag {
    font-size: 11px;
    color: var(--accent);
    background: rgba(77,184,141,0.12);
    padding: 1px 8px;
    border-radius: 10px;
}

/* 评论来源 */
.comment-source {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 6px;
    cursor: default;
}
.comment-source span {
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s;
}
.comment-source span:hover { color: var(--accent); }

/* ============================================
   短评相关样式 — 已删除 2026-07-03
   ============================================ */

/* 加载更多 */
.load-more-wrap {
    text-align: center;
    padding: 16px 0;
}
.btn-load-more {
    padding: 8px 24px;
    border-radius: 8px;
    border: 1px solid var(--border-default);
    background: var(--bg-elevated);
    color: var(--text-primary);
    font-size: 13px;
    cursor: pointer;
}
.btn-load-more:hover { background: var(--bg-hover); }

/* ============================================
   管理员 FAB (写新文章浮动按钮)
   ============================================ */
.fab-note {
    position: fixed;
    bottom: 96px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent);
    color: #0B0E0C;
    border: none;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(77,184,141,0.3);
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
}
.fab-note:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(77,184,141,0.4);
}
.fab-note:active { transform: scale(0.95); }

/* ============================================
   响应式: 小屏幕适配
   ============================================ */
@media (max-width: 767px) {
    .note-detail { padding: 8px 12px 20px; }
    .note-detail h1 { font-size: 22px; }
    .note-editor-modal { width: 100vw; max-width: 100vw; border-radius: 0; }
    .note-editor-modal .modal-box { border-radius: 0; min-height: 100vh; }
    .fab-note { right: 16px; bottom: 88px; width: 42px; height: 42px; font-size: 18px; }
    .note-hscroll-card { width: 180px; min-width: 180px; }
    .note-hscroll-inner { height: 130px; padding: 16px; }
    .note-hscroll-summary { display: none; }
    .home-hero { height: 200px; }
    .home-hero-cover { width: 100px; height: 100px; right: 16px; bottom: 16px; }
    .home-hero-content { padding: 20px; max-width: 70%; }
    .home-hero-title { font-size: 18px; }
    .home-hero--default .home-hero-title { font-size: 22px; }
    .home-hero-summary { display: none; }
    .home-hero-btn { font-size: 12px; padding: 6px 14px; }
    .recommended-item { width: 100px; }
    .recommended-item-cover-wrap { width: 100px; height: 100px; }

    /* ============================================
       MOBILE DRAWER (手机侧边抽屉)
       ============================================ */
    .mobile-drawer-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 200;
        opacity: 0;
        transition: opacity var(--duration-base) var(--ease-out);
    }

    .mobile-drawer-overlay.show {
        display: block;
        opacity: 1;
    }

    .mobile-drawer {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 280px;
        max-width: 80vw;
        background: var(--bg-elevated);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-right: 1px solid var(--border-default);
        z-index: 201;
        flex-direction: column;
        transform: translateX(-100%);
        transition: transform var(--duration-slow) var(--ease-spring);
        padding-top: env(safe-area-inset-top, 0px);
    }

    .mobile-drawer.show {
        display: flex;
        transform: translateX(0);
    }

    .mobile-drawer-header {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        padding: 12px 16px;
        border-bottom: 1px solid var(--border-subtle);
        flex-shrink: 0;
    }

    .mobile-drawer-close {
        width: 32px;
        height: 32px;
        border: none;
        background: transparent;
        color: var(--text-tertiary);
        font-size: 18px;
        cursor: pointer;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: color var(--duration-fast) var(--ease-out),
                    background var(--duration-fast) var(--ease-out);
    }

    .mobile-drawer-close:hover {
        color: var(--text-primary);
        background: var(--bg-hover);
    }

    .mobile-drawer-body {
        flex: 1;
        overflow-y: auto;
        padding: 8px 0;
    }

    .mobile-drawer-body .sidebar-brand {
        padding: 12px 16px;
    }

    .mobile-drawer-body .sidebar-nav {
        padding: 4px 8px;
    }

    .mobile-drawer-body .sidebar-item {
        padding: 10px 12px;
        font-size: 14px;
        min-height: 44px;
    }

    .mobile-drawer-body .sidebar-tags {
        padding: 4px 8px;
    }

    .mobile-drawer-body .sidebar-tag-item {
        padding: 10px 12px;
        font-size: 14px;
        min-height: 44px;
    }

    .mobile-drawer-body .sidebar-section-label {
        padding: 8px 16px 4px;
    }

    .mobile-drawer-body .sidebar-divider {
        margin: 6px 16px;
    }

    .mobile-drawer-body .sidebar-spacer {
        display: none;
    }

    .mobile-drawer-body .sidebar-user {
        padding: 8px 12px 16px;
    }

    .mobile-drawer-body .btn-login {
        min-height: 44px;
    }

    /* ============================================
       PLAYER BAR EXPAND PANEL (手机播放栏展开面板)
       ============================================ */
    .player-bar.expanded {
        height: auto;
        flex-wrap: wrap;
        padding: var(--space-sm) var(--space-md) var(--space-md);
        gap: var(--space-sm);
        align-items: flex-start;
    }

    .player-bar.expanded .player-center {
        width: 100%;
        max-width: 100%;
        order: 3;
        padding-top: var(--space-sm);
        border-top: 1px solid var(--border-subtle);
    }

    .player-bar.expanded .player-now {
        max-width: 70%;
    }

    .player-bar.expanded .player-right {
        display: flex;
        margin-left: auto;
    }

    .player-bar.expanded .btn-mode {
        display: flex;
    }

    .player-bar.expanded .btn-ctrl {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .player-bar.expanded .play-btn {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }

    .player-bar.expanded .player-controls {
        gap: var(--space-md);
    }

    .player-bar.expanded .player-progress {
        gap: 6px;
        width: 100%;
    }

    .player-bar.expanded .player-progress .progress-time {
        font-size: 11px;
        width: 32px;
    }

    /* ============================================
       LYRICS PANEL BOTTOM SHEET (手机歌词面板底部弹出)
       ============================================ */
    .lyrics-panel {
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        height: 60vh;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        border-left: none;
        border-top: 1px solid var(--border-subtle);
        transform: translateY(100%);
        transition: transform var(--duration-slow) var(--ease-spring);
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    .lyrics-panel.open {
        transform: translateY(0);
    }

    .lyrics-panel-body {
        padding: var(--space-md) var(--space-sm);
        gap: clamp(4px, 1vh, 8px);
    }

    .lyrics-panel-body .lyric-line {
        font-size: 13px;
    }

    .lyrics-panel-body .lyric-line.active {
        font-size: 17px;
    }

    .lyrics-panel-header {
        padding-top: 12px;
        position: relative;
    }

    .lyrics-panel-header::before {
        content: '';
        position: absolute;
        top: 6px;
        left: 50%;
        transform: translateX(-50%);
        width: 36px;
        height: 4px;
        border-radius: 2px;
        background: var(--text-tertiary);
        opacity: 0.3;
    }

    /* ============================================
       SEARCH BAR (手机搜索展开)
       ============================================ */
    .search-wrap {
        max-width: 100%;
        transition: max-width var(--duration-base) var(--ease-out);
    }

    .search-wrap:focus-within {
        max-width: 100%;
    }

    .search-confirm {
        display: none;
    }

    .search-input {
        padding-right: 36px;
        font-size: 16px;
    }

    /* ============================================
       SEARCH RESULT LIST (操作按钮始终可见)
       ============================================ */
    .song-list-actions {
        opacity: 1 !important;
    }

    .btn-fav, .btn-add, .btn-copy-link {
        width: 28px;
        height: 28px;
        font-size: 15px;
        opacity: 0.5;
    }

    .btn-fav.favorited {
        opacity: 1;
    }

    /* ============================================
       COVER GRID (更紧凑)
       ============================================ */
    .cover-grid {
        gap: var(--space-sm);
    }

    .cover-card {
        padding: var(--space-sm) var(--space-sm) var(--space-md);
        content-visibility: visible;
        contain-intrinsic-size: auto;
    }

    .cover-card-img-wrap {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
    }

    .cover-card-title {
        font-size: 12px;
    }

    /* ============================================
       TAG GRID (更紧凑)
       ============================================ */
    .tag-card {
        min-height: 110px;
        padding: 12px 8px;
    }

    .tag-card-name {
        font-size: 13px;
    }

    /* ============================================
       HOMEPAGE HERO
       ============================================ */
    .home-hero {
        height: 180px;
        margin-bottom: var(--space-md);
    }

    .home-hero-cover {
        width: 72px;
        height: 72px;
        right: 12px;
        bottom: 12px;
    }

    .home-hero-content {
        padding: 16px;
        max-width: 75%;
    }

    .home-hero-title {
        font-size: 16px;
        -webkit-line-clamp: 1;
    }

    .home-hero-badge {
        font-size: 10px;
        padding: 2px 8px;
    }

    /* ============================================
       HSCROLL NOTES + RECOMMENDED
       ============================================ */
    .note-hscroll-card {
        width: 150px;
        min-width: 150px;
    }

    .note-hscroll-inner {
        height: 120px;
        padding: 14px;
    }

    .note-hscroll-title {
        font-size: 14px;
    }

    .note-hscroll-tag {
        font-size: 9px;
    }

    .recommended-item {
        width: 90px;
    }

    .recommended-item-cover-wrap {
        width: 90px;
        height: 90px;
    }

    .recommended-item-title {
        font-size: 11px;
    }

    /* ============================================
       TOP BAR
       ============================================ */
    .top-bar-spacer {
        display: none;
    }

    /* ============================================
       iOS SAFE AREA
       ============================================ */
    .player-bar {
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    .content-area {
        padding-bottom: calc(var(--space-md) + env(safe-area-inset-bottom, 0px));
    }

    .fab-drawer-trigger {
        bottom: calc(var(--player-height) + var(--space-md) + env(safe-area-inset-bottom, 0px));
    }
}
