/* ========== 顶部返回 ========== */
.top-bar { display: flex; align-items: center; gap: 10px; padding: 2px 2px 12px; }
.back {
    width: 36px; height: 36px; flex: none; border-radius: 12px;
    display: grid; place-items: center; text-decoration: none;
    background: rgba(255, 255, 255, .82); border: 1px solid rgba(255, 255, 255, .9);
    color: var(--ink-2); box-shadow: 0 8px 18px -14px rgba(15, 23, 42, .7);
}
.back svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.top-bar .crumb { flex: 1; min-width: 0; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ========== 歌单大卡（封面虚化背景 + 压暗） ========== */
.hero {
    position: relative; overflow: hidden;
    border-radius: 24px; margin-bottom: 18px;
    isolation: isolate;
    box-shadow: 0 26px 60px -34px rgba(15, 23, 42, .95);
}
.hero-bg {
    position: absolute; inset: -18%;
    background-size: cover; background-position: center;
    filter: blur(30px) saturate(160%);
    transform: scale(1.25);
    z-index: -2;
}
.hero-veil {
    position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(120% 90% at 12% 0%, rgba(255, 255, 255, .22), transparent 60%),
        linear-gradient(175deg, rgba(15, 23, 42, .34) 0%, rgba(15, 23, 42, .68) 62%, rgba(15, 23, 42, .88) 100%);
}
.hero-in {
    display: flex; align-items: flex-end; gap: 15px;
    padding: 20px 18px 16px;
}
.hero-cover {
    width: 108px; height: 108px; flex: none; border-radius: 18px; overflow: hidden;
    box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .16) inset;
    background: rgba(255, 255, 255, .12);
}
.hero-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-main { min-width: 0; flex: 1; padding-bottom: 2px; }
.h-kicker {
    display: inline-block; margin-bottom: 7px;
    font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
    color: rgba(255, 255, 255, .78);
    padding: 3px 8px; border-radius: 6px;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .14);
}
.hero-main h1 {
    color: #fff; font-size: 21px; font-weight: 800; line-height: 1.28; letter-spacing: -.02em;
    text-shadow: 0 3px 14px rgba(0, 0, 0, .4);
    overflow: hidden; text-overflow: ellipsis; display: -webkit-box;
    -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.h-tags { display: flex; align-items: center; gap: 6px; margin-top: 9px; flex-wrap: wrap; }
.h-tag {
    font-size: 10.5px; font-weight: 600; line-height: 1;
    padding: 4px 8px; border-radius: 7px;
    color: rgba(255, 255, 255, .92);
    background: rgba(255, 255, 255, .17);
    border: 1px solid rgba(255, 255, 255, .12);
    backdrop-filter: blur(4px);
}
.h-tag.is-oss { color: #a7f3d0; background: rgba(16, 185, 129, .26); border-color: rgba(16, 185, 129, .35); }
.h-meta { margin-top: 8px; font-size: 11.5px; color: rgba(255, 255, 255, .62); font-variant-numeric: tabular-nums; }
.hero-foot {
    display: flex; align-items: center; gap: 9px;
    padding: 0 18px 18px;
}
.hero-play {
    flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    border: 0; cursor: pointer; font-family: inherit;
    padding: 12px 18px; border-radius: 14px;
    font-size: 13.5px; font-weight: 700; color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    box-shadow: 0 14px 30px -14px rgba(99, 102, 241, .95);
    transition: transform .15s;
}
.hero-play:active { transform: scale(.98); }
.hero-play svg { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.hero-oss {
    flex: none; display: inline-flex; align-items: center; gap: 5px;
    padding: 11px 13px; border-radius: 13px;
    font-size: 11px; font-weight: 600; color: rgba(255, 255, 255, .82);
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .12);
    white-space: nowrap;
}
.hero-oss svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.hero-note {
    flex: 1; display: inline-flex; align-items: center; gap: 7px;
    padding: 11px 13px; border-radius: 13px;
    font-size: 11.5px; line-height: 1.4; color: rgba(255, 255, 255, .82);
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .1);
}
.hero-note svg { width: 14px; height: 14px; flex: none; fill: none; stroke: #fcd34d; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ========== 歌曲卡片 ========== */
.sec-hd { display: flex; align-items: baseline; gap: 8px; padding: 0 2px 11px; }
.sec-hd b { font-size: 14.5px; font-weight: 700; letter-spacing: -.01em; }
.sec-hd span { margin-left: auto; font-size: 11.5px; color: var(--muted); }

/* ========== 歌曲卡片 · 大气设计 ==========
 * 公共歌单与自建歌单共用一套；配色来自歌单主人的「卡片美化」
 * （CSS 变量 --sc-* 在 .song-list 上注入，有背景图时叠暗层保证文字可读）
 */
.song-list {
    display: flex; flex-direction: column; gap: 12px;
    position: relative;
}
/* themed 只表示"用户做过美化"，容器本身不铺任何背景色，
   否则半透明卡片叠上去会露白底，看起来像全白 */
.song-list.themed { padding: 0; border-radius: 24px; }
.sc {
    position: relative;
    display: flex; flex-wrap: wrap; align-items: stretch; gap: 13px;
    padding: 14px 46px 14px 9px;   /* 右侧留白给右上角的设置键 */
    border-radius: 20px;
    background-color: #fff;
    background-image: linear-gradient(160deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .74));
    border: 1px solid var(--sc-edge, rgba(255, 255, 255, .92));
    box-shadow: 0 14px 30px -26px rgba(15, 23, 42, .82);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    transition: transform .18s cubic-bezier(.22,1,.36,1), box-shadow .22s ease,
        background .22s ease, border-color .22s ease;
    overflow: hidden;
    isolation: isolate;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    user-select: none; -webkit-user-select: none;
}
/* ★ 层级严格分开，一层只干一件事，顺序不能乱：
 *   themed 无底图 → 卡片铺主题渐变
 *   has-bg       → 卡片铺「暗纱 + 用户图」，盖掉主题渐变
 *   on（播放中） → 只改描边和内发光，绝不用 background 简写，
 *                  否则会把上面两层整个重置掉（曾导致播放时全白） */
.song-list.themed .sc {
    background-color: transparent;
    background-image: var(--sc-grad, none);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-color: var(--sc-edge);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.song-list.themed .sc.has-bg,
.sc.has-bg {
    background-color: transparent;
    background-image:
        linear-gradient(180deg, rgba(15, 23, 42, .4), rgba(15, 23, 42, .68)),
        var(--sc-bg, none);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 高光：左上角一道柔光，撑起立体感 */
.sc::after {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: radial-gradient(120% 90% at 8% 0%, rgba(255, 255, 255, .26), transparent 62%);
    opacity: .9;
}
/* 正在播放：左侧渐变指示条 */
.sc::before {
    content: ""; position: absolute; left: 0; top: 14%; bottom: 14%;
    width: 4px; border-radius: 0 4px 4px 0;
    background: var(--sc-btn, linear-gradient(180deg, var(--brand), var(--brand-2)));
    opacity: 0; transform: scaleY(.3);
    transition: opacity .24s ease, transform .24s cubic-bezier(.22,1,.36,1);
}
.sc:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 44px -28px rgba(15, 23, 42, .9);
}
.sc:active { transform: translateY(-1px) scale(.995); }
/* 播放中的高亮：一律用 box-shadow（inset 描边 + 外发光）+ 边框，
   绝不碰 background —— background 简写会把上面铺好的主题渐变/底图清成 none。
   「提亮成白色」只在未美化时做；themed / has-bg 保持原背景，只加描边。 */
.sc.on {
    border-color: rgba(99, 102, 241, .55);
    box-shadow: 0 0 0 1.5px rgba(99, 102, 241, .35) inset,
        0 20px 40px -26px rgba(99, 102, 241, .9);
}
.song-list:not(.themed) .sc.on:not(.has-bg) {
    background-color: #fff;
    background-image: linear-gradient(160deg, #fff, #f6f4ff);
}
.song-list.themed .sc.on {
    border-color: var(--sc-btn, rgba(255, 255, 255, .5));
    box-shadow: 0 0 0 1.5px var(--sc-btn, rgba(255, 255, 255, .5)) inset,
        0 18px 38px -24px rgba(2, 6, 23, .8);
}
.sc.has-bg.on {
    border-color: rgba(255, 255, 255, .55);
    box-shadow: 0 0 0 1.5px var(--sc-btn, rgba(255, 255, 255, .6)) inset,
        0 18px 38px -24px rgba(2, 6, 23, .8);
}
.sc.on::before { opacity: 1; transform: scaleY(1); }

/* 序号：圆形徽章（垂直居中） */
.sc-idx {
    order: 0; flex: none; width: 32px; height: 32px;
    align-self: flex-start; margin-top: 1px;
    display: grid; place-items: center;
    border-radius: 11px;
    font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums;
    letter-spacing: -.04em;
    color: #94a3b8;
    background: rgba(148, 163, 184, .13);
    transition: color .2s, background .2s, box-shadow .2s;
}
.sc.on .sc-idx {
    color: #fff;
    background: var(--sc-btn, linear-gradient(135deg, var(--brand), var(--brand-2)));
    box-shadow: 0 8px 18px -8px rgba(79, 70, 229, .9);
}
.song-list.themed:not(.has-bg) .sc-idx { color: var(--sc-sub); background: var(--sc-chip); }
.song-list.themed.has-bg .sc-idx { color: var(--sc-text); background: rgba(255, 255, 255, .2); }
/* 播放中：徽章要明显区别于其他卡片（放在 themed 规则之后才能赢） */
.song-list.themed:not(.has-bg) .sc.on .sc-idx {
    color: var(--sc-btn-fg, #fff);
    background: var(--sc-btn);
    box-shadow: 0 8px 18px -8px rgba(2, 6, 23, .8);
}
.song-list.themed.has-bg .sc.on .sc-idx { color: #fff; background: rgba(255, 255, 255, .9); box-shadow: none; }

/* 播放波形：点击整卡播放，这里给个即时反馈 */
.sc-wave {
    order: 3; flex: none; align-self: center;
    display: none; align-items: flex-end; gap: 2.5px; height: 18px;
    margin-right: 2px;
}
.sc-wave i {
    width: 3px; border-radius: 2px;
    background: var(--sc-btn, linear-gradient(180deg, var(--brand), var(--brand-2)));
    height: 40%;
}
.sc.on .sc-wave { display: flex; }
.sc.on .sc-wave i { animation: wv .9s ease-in-out infinite; }
.sc.on .sc-wave i:nth-child(1) { animation-delay: 0s; }
.sc.on .sc-wave i:nth-child(2) { animation-delay: .18s; }
.sc.on .sc-wave i:nth-child(3) { animation-delay: .36s; }
.sc.on .sc-wave i:nth-child(4) { animation-delay: .54s; }
@keyframes wv {
    0%, 100% { height: 30%; }
    50% { height: 100%; }
}
.sc.paused .sc-wave i { animation-play-state: paused; }
/* 歌名 / 歌词 */
.sc-body { order: 1; flex: 1; min-width: 0; }
.sc-t {
    display: flex; align-items: center; gap: 7px;
    font-size: 15px; font-weight: 700; letter-spacing: -.015em;
    line-height: 1.4;
    color: var(--sc-text, #0f172a);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sc-t em {
    flex: none; font-style: normal;
    font-size: 8.5px; font-weight: 800; letter-spacing: .05em;
    padding: 2px 6px; border-radius: 5px;
    color: #047857; background: rgba(16, 185, 129, .14);
}
.sc-t em.pm { color: #4f46e5; background: rgba(99, 102, 241, .14); }
.song-list.themed .sc-t em { color: var(--sc-chip); background: var(--sc-chip); }
.song-list.themed .sc-t em.pm { color: #fff; background: var(--sc-btn); }
.sc.tuned { border-color: rgba(99, 102, 241, .24); }
.song-list.themed .sc.tuned { border-color: var(--sc-btn); }
#ps-hit, .sc.located { animation: locFlash 1.9s cubic-bezier(.22, 1, .36, 1); }
@keyframes locFlash {
    0%   { box-shadow: 0 0 0 0 rgba(99, 102, 241, .55); background: #eef0ff; }
    22%  { box-shadow: 0 0 0 7px rgba(99, 102, 241, .16); background: #f2f2ff; }
    100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); background: linear-gradient(160deg, rgba(255,255,255,.95), rgba(255,255,255,.76)); }
}
/* 歌词：磨砂玻璃框 —— 换任何底图/主题都保证读得清；给到 3 行 */
.sc-l {
    margin-top: 8px;
    padding: 8px 12px 9px;
    border-radius: 13px;
    box-sizing: border-box;
    /* display:-webkit-box 会让 flex stretch 失效，必须显式撑满 */
    width: 100%; align-self: stretch;
    font-size: 12.5px; line-height: 1.68;
    color: var(--sc-sub, #94a3b8);
    white-space: pre-line;
    overflow: hidden; display: -webkit-box;
    -webkit-line-clamp: 3; -webkit-box-orient: vertical;
    background: rgba(255, 255, 255, .58);
    border: 1px solid rgba(255, 255, 255, .78);
    box-shadow: 0 6px 16px -14px rgba(15, 23, 42, .9), inset 0 1px 0 rgba(255, 255, 255, .7);
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
}
.sc-l.is-empty { color: #b6c0d1; font-style: italic; }
/* themed：按 --sc-dark 分两套玻璃。
   深色主题（内置 7 套都是深色）用暗玻璃；默认纯净是浅色，用亮玻璃。
   之前不分深浅一律用白色半透明 → 深色主题上变成一块发亮的白板，把字吃掉 */
.song-list.themed .sc-l {
    color: var(--sc-sub);
    background: rgba(255, 255, 255, .58);
    border-color: rgba(255, 255, 255, .78);
    box-shadow: 0 6px 16px -14px rgba(15, 23, 42, .9), inset 0 1px 0 rgba(255, 255, 255, .7);
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
}
.song-list.themed.dark .sc-l {
    color: rgba(255, 255, 255, .92);
    background: rgba(8, 12, 24, .34);
    border-color: rgba(255, 255, 255, .2);
    box-shadow: 0 8px 20px -16px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(255, 255, 255, .12);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.song-list.themed .sc-l.is-empty { color: var(--sc-sub); }

/* ========== 心动 / 裂歌投票条（横线下方一排） ========== */
.sc-vote {
    order: 4; flex: 1 1 100%; min-width: 0;
    display: flex; align-items: center; gap: 8px;
    margin-top: 10px; padding-top: 9px;
    border-top: 1px solid var(--sc-edge, rgba(15, 23, 42, .09));
    cursor: default;
}
.song-list.themed .sc-vote,
.sc.has-bg .sc-vote,
.sc.own-bg .sc-vote { border-top-color: rgba(255, 255, 255, .22); }
.sc-vote .sv-last {
    font-size: 10.5px; color: var(--sc-sub, #94a3b8);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    font-variant-numeric: tabular-nums;
}
.sc-vote .sv-flex { flex: 1; }
.sv-btn {
    flex: none; display: inline-flex; align-items: center; gap: 5px;
    border: 1px solid var(--sc-edge, rgba(15, 23, 42, .08));
    cursor: pointer; font-family: inherit;
    padding: 5px 11px 5px 9px; border-radius: 999px;
    font-size: 12px; font-weight: 700; line-height: 1;
    color: var(--sc-sub, #64748b);
    background: rgba(148, 163, 184, .1);
    transition: transform .15s, background .18s, color .18s, border-color .18s;
    -webkit-tap-highlight-color: transparent;
}
.sv-btn:active { transform: scale(.93); }
.sv-btn svg { width: 13px; height: 13px; flex: none; }
.sv-btn .sv-n { font-variant-numeric: tabular-nums; }
.sv-btn.sv-heart.on {
    color: #e11d48;
    background: rgba(244, 63, 94, .13);
    border-color: rgba(244, 63, 94, .34);
}
.sv-btn.sv-heart:not(.on):hover { color: #e11d48; background: rgba(244, 63, 94, .09); }
.sv-btn.sv-broken { color: #94a3b8; }
.sv-btn.sv-broken.on {
    color: #64748b;
    background: rgba(100, 116, 139, .16);
    border-color: rgba(100, 116, 139, .3);
}
.sv-btn.sv-broken:not(.on):hover { color: #64748b; background: rgba(100, 116, 139, .12); }
/* 深色主题 / 自带底图：底色换成暗玻璃，字跟着翻白 */
.song-list.themed.dark .sv-btn,
.sc.has-bg .sv-btn,
.sc.own-bg .sv-btn {
    background: rgba(8, 12, 24, .3);
    border-color: rgba(255, 255, 255, .22);
    color: rgba(255, 255, 255, .78);
}
.song-list.themed.dark .sv-btn.sv-heart.on,
.sc.has-bg .sv-btn.sv-heart.on,
.sc.own-bg .sv-btn.sv-heart.on {
    color: #fb7185;
    background: rgba(244, 63, 94, .26);
    border-color: rgba(251, 113, 133, .5);
}
.song-list.themed.dark .sv-btn.sv-broken.on,
.sc.has-bg .sv-btn.sv-broken.on,
.sc.own-bg .sv-btn.sv-broken.on {
    color: rgba(255, 255, 255, .92);
    background: rgba(8, 12, 24, .48);
    border-color: rgba(255, 255, 255, .38);
}
.song-list.themed.dark .sc-vote .sv-last,
.sc.has-bg .sc-vote .sv-last,
.sc.own-bg .sc-vote .sv-last { color: rgba(255, 255, 255, .62); }
/* 被删歌曲卡片淡出 */
.sc.sv-gone { opacity: 0; transform: scale(.96); transition: opacity .4s, transform .4s; }
/* 有背景图：再压深一档 */
.sc.has-bg .sc-l {
    color: rgba(255, 255, 255, .9);
    background: rgba(8, 12, 24, .46);
    border-color: rgba(255, 255, 255, .22);
    box-shadow: 0 8px 20px -16px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(255, 255, 255, .14);
    backdrop-filter: blur(16px) saturate(135%);
    -webkit-backdrop-filter: blur(16px) saturate(135%);
}
.sc.has-bg .sc-l.is-empty { color: rgba(255, 255, 255, .7); }
/* 播放中的歌词框：未美化时才提亮；themed / has-bg 保持自己的玻璃质感，别变白块 */
.song-list:not(.themed) .sc.on:not(.has-bg) .sc-l {
    background: rgba(255, 255, 255, .8);
    border-color: rgba(99, 102, 241, .24);
}
.song-list.themed .sc.on .sc-l {
    background: rgba(255, 255, 255, .26);
    border-color: rgba(255, 255, 255, .3);
}
.sc.has-bg.on .sc-l {
    background: rgba(8, 12, 24, .5);
    border-color: rgba(255, 255, 255, .28);
}

/* 设置键：绝对定位到卡片右上角，不占正文空间 */
.sc-more {
    position: absolute; top: 10px; right: 10px; z-index: 3;
    width: 30px; height: 30px;
    border: 0; cursor: pointer; padding: 0;
    border-radius: 10px; display: grid; place-items: center;
    color: #aab4c4; background: transparent;
    transition: color .16s, background .16s, transform .16s;
}
.sc-more svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.sc-more:hover { color: var(--brand); background: rgba(99, 102, 241, .1); }
.sc-more:active { transform: scale(.9); }
.song-list.themed .sc-more { color: var(--sc-text); opacity: .55; }
.song-list.themed .sc-more:hover { color: var(--sc-text); opacity: 1; background: rgba(255, 255, 255, .2); }
.sc.has-bg .sc-more { color: rgba(255, 255, 255, .8); opacity: .75; }
.sc.has-bg .sc-more:hover { color: #fff; opacity: 1; background: rgba(255, 255, 255, .2); }

/* ========== 公共歌单菜单里的提示 ========== */
.sh-note {
    margin: 4px 2px 6px; padding: 9px 12px;
    font-size: 11.5px; line-height: 1.6; color: #94a3b8;
    background: rgba(148, 163, 184, .1); border-radius: 10px;
}

/* ========== 歌单级工具条（公开到广场） ========== */
.pl-tools {
    display: flex; gap: 10px; margin: 14px 0 2px;
}
.pt-btn-main {
    flex: 1;
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    min-height: 46px; padding: 0 16px; cursor: pointer;
    border: 0; border-radius: 15px; font-family: inherit;
    font-size: 14px; font-weight: 700; letter-spacing: -.01em;
    color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2));
    box-shadow: 0 14px 28px -14px rgba(79, 70, 229, .95);
    transition: transform .16s, box-shadow .2s, filter .2s;
}
.pt-btn-main svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pt-btn-main:hover { transform: translateY(-1px); filter: brightness(1.06); }
.pt-btn-main:active { transform: scale(.98); }
.pt-btn-main.is-on {
    color: #047857; background: rgba(16, 185, 129, .13);
    box-shadow: none; border: 1px solid rgba(16, 185, 129, .28);
}
.pt-btn-main.is-on svg { stroke-width: 2.4; }
.pt-btn-ghost {
    flex: none;
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    min-height: 46px; padding: 0 16px; cursor: pointer;
    border: 1px solid rgba(255, 255, 255, .9); border-radius: 15px; font-family: inherit;
    font-size: 13.5px; font-weight: 700; letter-spacing: -.01em;
    color: var(--ink-2); background: rgba(255, 255, 255, .78);
    box-shadow: 0 12px 24px -16px rgba(15, 23, 42, .8);
    transition: transform .16s, background .2s;
}
.pt-btn-ghost svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pt-btn-ghost:hover { transform: translateY(-1px); background: #fff; }
.pt-btn-ghost:active { transform: scale(.98); }

/* ========== 卡片美化弹窗 ========== */
.bf-label {
    display: flex; align-items: baseline; gap: 7px;
    margin: 16px 0 9px; padding: 0;
    font-size: 12.5px; font-weight: 700; color: var(--ink-2);
}
.bf-label small { font-size: 10.5px; font-weight: 500; color: #9aa6ba; }

/* 实时预览：完全照抄真实 .sc 卡片的结构，所见即所得 */
.bf-prev {
    display: flex; align-items: stretch; gap: 13px;
    padding: 14px 46px 14px 9px; border-radius: 20px;
    background: linear-gradient(160deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .74));
    border: 1px solid rgba(255, 255, 255, .92);
    box-shadow: 0 14px 30px -26px rgba(15, 23, 42, .82);
    overflow: hidden; position: relative; isolation: isolate;
    transition: background .25s ease, border-color .25s ease;
}
/* 底图放最底层(-2)，暗色遮罩盖在它上面(-1)，文字才是清晰的 */
.bf-prev.has-bg::after {
    content: ""; position: absolute; inset: 0; z-index: -2;
    background-image: var(--bf-img, none);
    background-size: cover; background-position: center;
    background-color: #0f172a;
}
.bf-prev.has-bg::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(180deg, rgba(15, 23, 42, .4), rgba(15, 23, 42, .68));
}
.bf-prev-idx {
    flex: none; width: 32px; height: 32px; align-self: flex-start; margin-top: 1px;
    display: grid; place-items: center;
    border-radius: 11px; font-size: 12px; font-weight: 800; letter-spacing: -.04em;
    color: #94a3b8; background: rgba(148, 163, 184, .13);
}
.bf-prev-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bf-prev-body b {
    font-size: 15px; font-weight: 700; letter-spacing: -.015em; color: #0f172a;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bf-prev-body span {
    display: block; margin-top: 8px; padding: 8px 12px 9px;
    border-radius: 13px;
    font-size: 12.5px; line-height: 1.68; color: #94a3b8;
    background: rgba(255, 255, 255, .58);
    border: 1px solid rgba(255, 255, 255, .78);
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
}
/* 预览也跟随歌词框的玻璃质感 */
.bf-prev.has-bg .bf-prev-body span {
    color: rgba(255, 255, 255, .9);
    background: rgba(8, 12, 24, .44);
    border-color: rgba(255, 255, 255, .22);
    backdrop-filter: blur(16px) saturate(135%);
    -webkit-backdrop-filter: blur(16px) saturate(135%);
}
/* 右上角的设置键占位 */
.bf-prev-more {
    position: absolute; top: 10px; right: 10px;
    width: 30px; height: 30px; display: grid; place-items: center;
    border-radius: 10px; color: #aab4c4;
}
.bf-prev-more svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.bf-prev.has-bg .bf-prev-more { color: rgba(255, 255, 255, .8); }

/* 配色主题 */
.bf-themes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.bf-chip {
    display: flex; flex-direction: column; align-items: center; gap: 5px;
    padding: 8px 4px 7px; cursor: pointer; font-family: inherit;
    border: 1.5px solid transparent; border-radius: 13px;
    background: #f4f6fb; color: #6d7891;
    font-size: 10.5px; font-weight: 600;
    transition: border-color .18s, transform .14s, background .18s;
}
.bf-chip i {
    width: 100%; height: 26px; border-radius: 8px; display: block;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .06);
}
.bf-chip:active { transform: scale(.95); }
.bf-chip.on {
    border-color: var(--brand); background: #fff; color: var(--brand);
    box-shadow: 0 8px 18px -12px rgba(79, 70, 229, .8);
}

/* 强调色 */
.bf-accents { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.bf-dot {
    width: 32px; height: 32px; border-radius: 50%; cursor: pointer; padding: 0;
    border: 2px solid #fff; box-shadow: 0 0 0 1.5px rgba(148, 163, 184, .32);
    transition: transform .15s, box-shadow .18s;
}
.bf-dot:active { transform: scale(.9); }
.bf-dot.on { box-shadow: 0 0 0 2.5px var(--brand); transform: scale(1.08); }
.bf-pick {
    display: grid; place-items: center;
    background: conic-gradient(from 180deg, #f43f5e, #f59e0b, #22c55e, #0ea5e9, #8b5cf6, #f43f5e);
    overflow: hidden;
}
.bf-pick::after {
    content: "🎨"; font-size: 13px; line-height: 1;
}
.bf-pick input { width: 100%; height: 100%; opacity: 0; cursor: pointer; position: absolute; }

/* 背景图 */
.bf-bg { display: flex; gap: 11px; align-items: stretch; }
.bf-bg-thumb {
    flex: 1; min-height: 96px; border-radius: 14px;
    background: #eef1f8 center/cover no-repeat;
    border: 1px dashed rgba(148, 163, 184, .42);
    display: grid; place-items: center;
    font-size: 11.5px; color: #9aa6ba;
    overflow: hidden;
}
.bf-bg-thumb.on { border-style: solid; border-color: rgba(99, 102, 241, .3); }
.bf-bg-ops { flex: none; width: 138px; display: flex; flex-direction: column; gap: 6px; }
.bf-up {
    flex: 1; min-height: 46px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
    cursor: pointer; border-radius: 13px; border: 0; font-family: inherit;
    width: 100%; padding: 0;
    -webkit-tap-highlight-color: transparent; touch-action: manipulation;
    background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff;
    font-size: 12px; font-weight: 600;
    box-shadow: 0 10px 20px -12px rgba(79, 70, 229, .95);
    transition: transform .15s, filter .2s;
}
.bf-up svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bf-up:active { transform: scale(.96); }
.bf-up:hover { filter: brightness(1.06); }
.bf-rm {
    flex: none; border: 0; cursor: pointer; font-family: inherit; border-radius: 11px;
    padding: 8px; font-size: 11.5px; font-weight: 600;
    color: var(--brand); background: rgba(99, 102, 241, .1);
    transition: background .15s, transform .12s;
    -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.bf-rm:active { transform: scale(.96); }
.bf-rm[hidden] { display: none; }
.bf-rm.is-del { color: #be123c; background: rgba(244, 63, 94, .1); }

/* ========== 背景图裁剪 ========== */
/* 单卡底图弹窗里的预览卡：结构照抄真实 .sc，只是固定宽度 */
#cbPreview { margin:0; align-items: stretch; }
#cbPreview .sc-idx { align-self: flex-start; margin-top: 1px; }
#cbPreview.has-bg .sc-t,
#cbPreview.has-bg .sc-l { color: rgba(255, 255, 255, .92); }
#cbPreview.has-bg .sc-idx { color: #fff; background: rgba(255, 255, 255, .22); }
/* 必须在 .am-modal 之后仍能压过它：用复合选择器提高特异性（.am-modal 与 .crop-modal 同优先级，源顺序靠后会覆盖） */
.am-modal.crop-modal { z-index: 99; }
.crop-bd {
    flex: 1 1 auto; min-height: 0; overflow-y: auto;
    overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    padding: 14px 16px 16px;
}
/* 裁剪台 */
.crop-stage {
    position: relative; width: 100%;
    min-height: 130px;
    padding: 12px 0;
    border-radius: 16px; overflow: hidden;
    background:
        linear-gradient(45deg, #eef1f7 25%, transparent 25%, transparent 75%, #eef1f7 75%) 0 0/16px 16px,
        linear-gradient(45deg, #eef1f7 25%, #fff 25%, #fff 75%, #eef1f7 75%) 8px 8px/16px 16px;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .07);
    display: grid; place-items: center;
    touch-action: none; user-select: none; -webkit-user-select: none;
    cursor: grab;
}
.crop-stage.is-drag { cursor: grabbing; }
/* 视窗（裁剪框） */
.crop-view {
    position: relative; max-width: 100%;
    overflow: hidden; touch-action: none;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(99, 102, 241, .85), 0 18px 40px -22px rgba(15, 23, 42, .9);
    background: #0f172a;
}
.crop-view canvas { display: block; width: 100%; height: 100%; pointer-events: none; }
/* 三分线 + 四角，帮助对齐 */
.crop-view::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background:
        linear-gradient(to right, transparent 33.33%, rgba(255,255,255,.34) 33.33%, rgba(255,255,255,.34) calc(33.33% + 1px), transparent calc(33.33% + 1px), transparent 66.66%, rgba(255,255,255,.34) 66.66%, rgba(255,255,255,.34) calc(66.66% + 1px), transparent calc(66.66% + 1px)),
        linear-gradient(to bottom, transparent 33.33%, rgba(255,255,255,.34) 33.33%, rgba(255,255,255,.34) calc(33.33% + 1px), transparent calc(33.33% + 1px), transparent 66.66%, rgba(255,255,255,.34) 66.66%, rgba(255,255,255,.34) calc(66.66% + 1px), transparent calc(66.66% + 1px));
}
/* 四角遮罩：把裁剪框外的区域压暗（框内亮，框外暗） */
.crop-view::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    box-shadow: 0 0 0 9999px rgba(8, 12, 24, .38);
}
/* 比例选择 */
.crop-ratios { display: flex; gap: 8px; flex-wrap: wrap; }
.cr-chip {
    flex: 1 1 auto; min-width: 72px;
    display: flex; flex-direction: column; align-items: center; gap: 5px;
    padding: 9px 6px 8px; cursor: pointer; font-family: inherit;
    border: 1.5px solid transparent; border-radius: 13px;
    background: #f4f6fb; color: #6d7891;
    font-size: 11px; font-weight: 700;
    transition: border-color .18s, background .18s, transform .14s;
}
.cr-chip i {
    display: block; background: currentColor; opacity: .55;
    border-radius: 3px;
}
.cr-chip:active { transform: scale(.95); }
.cr-chip.on { border-color: var(--brand); background: #fff; color: var(--brand); box-shadow: 0 8px 18px -12px rgba(79,70,229,.8); }
/* 缩放滑杆 */
.crop-zoom { display: flex; align-items: center; gap: 11px; margin: 4px 2px 2px; }
.crop-zoom span { flex: none; font-size: 11.5px; color: var(--muted); }
.crop-zoom input {
    flex: 1; -webkit-appearance: none; appearance: none; height: 4px; border-radius: 3px;
    background: linear-gradient(90deg, var(--brand) var(--zp, 0%), #e6eaf3 var(--zp, 0%));
    outline: none;
}
.crop-zoom input::-webkit-slider-thumb {
    -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%;
    background: #fff; border: 2px solid var(--brand); cursor: pointer;
    box-shadow: 0 4px 10px -4px rgba(79, 70, 229, .9);
}
.crop-zoom input::-moz-range-thumb {
    width: 18px; height: 18px; border-radius: 50%;
    background: #fff; border: 2px solid var(--brand); cursor: pointer;
}
.crop-hint { margin: 0 2px 4px; font-size: 11px; color: #98a3b6; line-height: 1.6; }
.crop-hint b { color: #6d7891; }

/* 裁剪时的小卡片预览（结构同真实卡片） */
.crop-mini {
    margin-top: 4px; padding: 13px 44px 13px 8px;
    border-radius: 18px; overflow: hidden; position: relative; isolation: isolate;
    background: #fff; border: 1px solid rgba(15, 23, 42, .08);
    display: flex; align-items: stretch; gap: 12px;
    box-shadow: 0 12px 26px -22px rgba(15, 23, 42, .85);
}
.crop-mini .cm-idx {
    flex: none; width: 30px; height: 30px; align-self: flex-start; margin-top: 1px;
    display: grid; place-items: center;
    border-radius: 10px; font-size: 11px; font-weight: 800; letter-spacing: -.04em;
    color: #94a3b8; background: rgba(148, 163, 184, .13);
}
.crop-mini .cm-b { flex: 1; min-width: 0; }
.crop-mini .cm-b b {
    display: block; font-size: 14px; font-weight: 700; color: #0f172a;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.crop-mini .cm-b span {
    display: block; margin-top: 7px; padding: 7px 11px 8px; border-radius: 12px;
    font-size: 12px; line-height: 1.62; color: #94a3b8;
    background: rgba(255, 255, 255, .58);
    border: 1px solid rgba(255, 255, 255, .78);
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
}
.crop-mini.has-img { border-color: rgba(255, 255, 255, .24); background: #0f172a; }
.crop-mini.has-img .cm-b b { color: #fff; }
.crop-mini.has-img .cm-idx { color: #fff; background: rgba(255, 255, 255, .2); }
.crop-mini.has-img .cm-b span {
    color: rgba(255, 255, 255, .9);
    background: rgba(8, 12, 24, .44);
    border-color: rgba(255, 255, 255, .22);
    backdrop-filter: blur(16px) saturate(135%);
    -webkit-backdrop-filter: blur(16px) saturate(135%);
}
.crop-mini.has-img::before {
    content: ""; position: absolute; inset: 0; z-index: -2;
    background-image: var(--cm-img, none);
    background-size: cover; background-position: center; background-repeat: no-repeat;
}
.crop-mini.has-img::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(180deg, rgba(15, 23, 42, .4), rgba(15, 23, 42, .68));
}

/* 正在裁剪时的提示条 */
.crop-busy {
    position: absolute; inset: 0; z-index: 5; display: none;
    place-items: center; background: rgba(255, 255, 255, .72);
    font-size: 13px; font-weight: 700; color: var(--ink-2);
    backdrop-filter: blur(2px);
}
.crop-stage.is-busy .crop-busy { display: grid; }

/* ========== 歌曲小菜单（设置图标点开） ========== */
.sheet {
    position: fixed; inset: 0; z-index: 70;
    display: flex; align-items: flex-end; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: opacity .2s, visibility .2s;
}
.sheet.show { opacity: 1; visibility: visible; }
.sheet-mask { position: absolute; inset: 0; background: rgba(15, 23, 42, .42); backdrop-filter: blur(4px); }
.sheet-panel {
    position: relative; width: 100%; max-width: 620px;
    padding: 8px 14px calc(16px + env(safe-area-inset-bottom));
    border-radius: 24px 24px 0 0; background: #fff;
    transform: translateY(100%);
    transition: transform .26s cubic-bezier(.22, 1, .36, 1);
    box-shadow: 0 -20px 50px -24px rgba(15, 23, 42, .7);
}
.sheet.show .sheet-panel { transform: translateY(0); }
.sh-hd { padding: 11px 6px 10px; text-align: center; }
.sh-hd b { display: block; font-size: 14px; font-weight: 700; }
.sh-hd span { display: block; margin-top: 2px; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-list { display: grid; gap: 6px; }
.sh-item {
    display: flex; align-items: center; gap: 11px;
    text-decoration: none;
    width: 100%; border: 0; cursor: pointer; font-family: inherit;
    padding: 12px 13px; border-radius: 14px; text-align: left;
    background: #f6f8fc; color: var(--ink);
    font-size: 13.5px; font-weight: 500;
    transition: background .15s;
}
.sh-item:active { background: #eef1f8; }
.sh-item i {
    width: 30px; height: 30px; flex: none; border-radius: 10px;
    display: grid; place-items: center; font-style: normal;
    color: var(--brand); background: rgba(99, 102, 241, .1);
}
.sh-item i svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.sh-item.later { color: #9aa6ba; }
.sh-item.later i { color: #9aa6ba; background: rgba(15, 23, 42, .05); }
/* 删除：红色警示，视觉上和其他项分开 */
.sh-item.is-danger { color: #be123c; }
.sh-item.is-danger i { color: #be123c; background: rgba(244, 63, 94, .1); }
.sh-item.is-danger:active { background: rgba(244, 63, 94, .09); }
.sh-cancel {
    width: 100%; margin-top: 8px; border: 0; cursor: pointer; font-family: inherit;
    padding: 12px; border-radius: 14px; font-size: 13.5px; font-weight: 600;
    color: var(--ink-2); background: #f1f4fa;
}

/* ========== 歌词弹窗 ========== */
.lyric-modal {
    position: fixed; inset: 0; z-index: 75;
    display: flex; align-items: center; justify-content: center; padding: 20px;
    opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
}
.lyric-modal.show { opacity: 1; visibility: visible; }
.lyric-mask { position: absolute; inset: 0; background: rgba(15, 23, 42, .5); backdrop-filter: blur(6px); }
.lyric-panel {
    position: relative; width: 100%; max-width: 430px;
    max-height: 72vh; display: flex; flex-direction: column;
    border-radius: 22px; background: #fff; overflow: hidden;
    box-shadow: 0 30px 70px -30px rgba(15, 23, 42, .8);
    transform: translateY(12px) scale(.98);
    transition: transform .22s cubic-bezier(.22, 1, .36, 1);
}
.lyric-modal.show .lyric-panel { transform: translateY(0) scale(1); }
.ly-hd { display: flex; align-items: center; gap: 10px; padding: 15px 16px 11px; border-bottom: 1px solid rgba(15, 23, 42, .06); }
.ly-hd b { flex: 1; font-size: 14.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ly-x { width: 28px; height: 28px; border: 0; border-radius: 50%; cursor: pointer; display: grid; place-items: center; font-family: inherit; font-size: 12px; color: #8b97ab; background: #f1f4fa; }
.ly-bd { padding: 14px 18px 20px; overflow: auto; font-size: 13px; line-height: 2; color: var(--ink-2); white-space: pre-line; }
.ly-bd .ph { color: #b6c0d0; font-style: italic; }

/* ========== 底部播放器 ========== */
.player {
    position: fixed; left: 0; right: 0; z-index: 30;
    bottom: calc(58px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .93);
    backdrop-filter: blur(22px) saturate(170%);
    -webkit-backdrop-filter: blur(22px) saturate(170%);
    border-top: 1px solid rgba(15, 23, 42, .06);
    box-shadow: 0 -16px 36px -26px rgba(15, 23, 42, .8);
    transform: translateY(120%);
    opacity: 0; pointer-events: none;
    transition: transform .28s cubic-bezier(.22, 1, .36, 1), opacity .2s;
}
.player.on { transform: translateY(0); opacity: 1; pointer-events: auto; }
.pl-bar { height: 2px; background: rgba(15, 23, 42, .07); }
.pl-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), var(--brand-2)); transition: width .18s linear; }
.pl-in { display: flex; align-items: center; gap: 10px; padding: 9px 14px; }
.pl-cover {
    width: 38px; height: 38px; flex: none; border-radius: 10px; overflow: hidden;
    background: #e8ecf5; box-shadow: 0 6px 14px -10px rgba(15, 23, 42, .8);
}
.pl-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pl-txt { flex: 1; min-width: 0; }
.pl-txt b { display: block; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-txt span { display: block; margin-top: 1px; font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-btn {
    width: 34px; height: 34px; flex: none; border: 0; cursor: pointer; padding: 0;
    border-radius: 50%; display: grid; place-items: center;
    color: var(--ink-2); background: transparent;
    transition: background .15s, transform .15s;
}
.pl-btn:active { transform: scale(.92); }
.pl-btn svg { width: 17px; height: 17px; fill: currentColor; stroke: none; }
.pl-btn.is-play { color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 10px 20px -12px rgba(99, 102, 241, .95); }
body.has-player .wrap { padding-bottom: calc(160px + env(safe-area-inset-bottom)); }

/* ========== 轻提示 ========== */
.toast {
    position: fixed; left: 50%; bottom: calc(120px + env(safe-area-inset-bottom));
    transform: translate(-50%, 12px); z-index: 90;
    max-width: 82vw; text-align: center;
    padding: 10px 17px; border-radius: 999px;
    background: rgba(15, 23, 42, .88); color: #fff;
    font-size: 12.5px; opacity: 0; pointer-events: none;
    transition: opacity .22s, transform .22s;
    backdrop-filter: blur(10px);
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ===== ZVIP 到期：歌单锁定 ===== */
.lock-card {
    margin-top: 6px; padding: 30px 20px 26px; text-align: center;
    border-radius: 22px;
    background: linear-gradient(165deg, rgba(255, 255, 255, .96), rgba(255, 255, 255, .8));
    border: 1px solid rgba(255, 255, 255, .92);
    box-shadow: 0 18px 44px -30px rgba(15, 23, 42, .55);
}
.lock-ico {
    width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 18px;
    display: grid; place-items: center; color: #fff;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    box-shadow: 0 14px 26px -14px rgba(99, 102, 241, .9);
}
.lock-ico svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lock-card b { display: block; font-size: 16.5px; font-weight: 700; }
.lock-card p { margin: 9px auto 0; max-width: 300px; font-size: 12.5px; line-height: 1.75; color: var(--muted); }
.lock-btn {
    display: inline-flex; align-items: center; justify-content: center;
    margin-top: 18px; padding: 11px 30px; border-radius: 999px;
    text-decoration: none; font-size: 13.5px; font-weight: 600; color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    box-shadow: 0 12px 24px -12px rgba(99, 102, 241, .95);
}
.lock-note { margin-top: 12px; font-size: 11px; color: #a9b4c6; }

/* 审核中提示 */
.pending-tip {
    display: flex; align-items: center; gap: 9px;
    margin-bottom: 14px; padding: 12px 14px; border-radius: 15px;
    background: rgba(245, 158, 11, .09); border: 1px solid rgba(245, 158, 11, .22);
    font-size: 12px; color: #b45309; line-height: 1.6;
}
.pending-tip svg { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* ========== 添加歌曲：+ 按钮与下拉菜单 ========== */
.hero-wrap { position: relative; }
.hero-tools { position: absolute; top: 12px; right: 12px; z-index: 6; }
.hero-add {
    width: 38px; height: 38px; border: 0; cursor: pointer; font-family: inherit;
    border-radius: 13px; display: grid; place-items: center;
    color: #fff; font-size: 20px; font-weight: 300; line-height: 1;
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .26);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 22px -14px rgba(0, 0, 0, .9);
    transition: transform .15s, background .15s;
}
.hero-add:active { transform: scale(.92); }
.hero-add svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.hero-add.on { background: rgba(255, 255, 255, .3); }
.add-menu {
    position: absolute; top: 46px; right: 0; width: 156px;
    padding: 6px; border-radius: 15px; background: #fff;
    box-shadow: 0 22px 46px -20px rgba(15, 23, 42, .55);
    border: 1px solid rgba(15, 23, 42, .06);
    opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.97);
    transform-origin: top right;
    transition: opacity .16s, transform .16s, visibility .16s;
}
.add-menu.show { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.add-menu button {
    width: 100%; display: flex; align-items: center; gap: 8px;
    border: 0; cursor: pointer; font-family: inherit; text-align: left;
    padding: 10px 10px; border-radius: 10px;
    font-size: 12.5px; font-weight: 600; color: var(--ink-2); background: transparent;
}
.add-menu button:active { background: #f3f4fb; }
.add-menu button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; color: var(--brand); }
.add-menu .am-hint { padding: 6px 10px 8px; font-size: 10.5px; color: #a9b4c6; line-height: 1.5; }

/* ========== 顶栏右上角：歌单设置 ========== */
.top-set-wrap { position: relative; flex: none; }
.top-set {
    width: 34px; height: 34px; border-radius: 12px; cursor: pointer; font-family: inherit;
    display: grid; place-items: center; padding: 0;
    border: 1px solid rgba(15, 23, 42, .07); background: rgba(255, 255, 255, .78);
    box-shadow: 0 8px 18px -12px rgba(15, 23, 42, .8);
    transition: transform .15s, background .15s;
}
.top-set:active { transform: scale(.92); }
.top-set svg { width: 17px; height: 17px; fill: none; stroke: var(--ink-2); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.top-set.on { background: #eef2ff; border-color: rgba(79, 70, 229, .3); }
.top-set.on svg { stroke: var(--brand); }
.set-menu {
    position: absolute; top: 42px; right: 0; width: 176px; z-index: 30;
    padding: 6px; border-radius: 15px; background: #fff;
    box-shadow: 0 22px 46px -20px rgba(15, 23, 42, .55);
    border: 1px solid rgba(15, 23, 42, .06);
    opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.97);
    transform-origin: top right;
    transition: opacity .16s, transform .16s, visibility .16s;
}
.set-menu.show { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.set-menu button {
    width: 100%; display: flex; align-items: center; gap: 8px;
    border: 0; cursor: pointer; font-family: inherit; text-align: left;
    padding: 10px 10px; border-radius: 10px;
    font-size: 12.5px; font-weight: 600; color: var(--ink-2); background: transparent;
}
.set-menu button:active { background: #f3f4fb; }
.set-menu button svg { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; color: var(--brand); }
.set-menu button.is-on { color: #047857; }
.set-menu button.is-on svg { stroke: #059669; }

/* ========== 添加歌曲：弹窗 ========== */
.am-modal {
    position: fixed; inset: 0; z-index: 78;
    display: flex; align-items: flex-end; justify-content: center;
    opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
}
.am-modal.show { opacity: 1; visibility: visible; }
.am-mask { position: absolute; inset: 0; background: rgba(15, 23, 42, .52); backdrop-filter: blur(6px); }
.am-panel {
    position: relative; width: 100%; max-width: 470px; max-height: 88vh;
    display: flex; flex-direction: column;
    border-radius: 22px 22px 0 0; background: #fff; overflow: hidden;
    box-shadow: 0 -24px 60px -30px rgba(15, 23, 42, .75);
    transform: translateY(24px);
    transition: transform .24s cubic-bezier(.22, 1, .36, 1);
}
.am-modal.show .am-panel { transform: translateY(0); }
@media (min-width: 560px) {
    .am-modal { align-items: center; padding: 20px; }
    .am-panel { border-radius: 22px; max-height: 84vh; }
}
.am-hd { display: flex; align-items: center; gap: 10px; padding: 15px 16px 12px; border-bottom: 1px solid rgba(15, 23, 42, .06); }
.am-hd b { flex: 1; font-size: 14.5px; font-weight: 700; }
.am-hd span { font-size: 11px; color: var(--muted); }
.am-x { width: 28px; height: 28px; flex: none; border: 0; border-radius: 50%; cursor: pointer; display: grid; place-items: center; font-family: inherit; font-size: 12px; color: #8b97ab; background: #f1f4fa; }
/* 关键：min-height:0，否则 flex 子项不肯收缩，body 撑破面板后被 overflow:hidden 裁掉 → 弹窗滑不动 */
.am-bd {
    flex: 1 1 auto; min-height: 0;
    overflow-y: auto; overflow-x: hidden;
    overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    padding: 14px 16px; position: relative;
}
/* 滚动条（桌面端可见一点，手机忽略） */
.am-bd::-webkit-scrollbar { width: 6px; }
.am-bd::-webkit-scrollbar-thumb { background: rgba(100, 116, 139, .28); border-radius: 3px; }
.am-bd::-webkit-scrollbar-track { background: transparent; }
/* 内容滚动到底时的渐隐提示，暗示还能往下滚 */
.am-bd::after {
    content: ""; position: sticky; bottom: 0; display: block;
    height: 14px; margin-bottom: -14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 82%);
    pointer-events: none;
}
.am-ft { flex: none; display: flex; gap: 9px; padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(15, 23, 42, .06); background: #fff; position: relative; z-index: 1; }
.am-btn {
    flex: 1; border: 0; cursor: pointer; font-family: inherit;
    padding: 12px 16px; border-radius: 13px; font-size: 13.5px; font-weight: 700;
    color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2));
    box-shadow: 0 12px 26px -14px rgba(99, 102, 241, .95);
}
.am-btn[disabled] { opacity: .45; box-shadow: none; cursor: default; }
.am-btn.ghost { flex: none; color: var(--ink-2); background: #f1f4fa; box-shadow: none; padding: 12px 18px; }

.am-field { display: flex; gap: 8px; margin-bottom: 10px; }
.am-field .am-in {
    flex: 1; min-width: 0; font-family: inherit; font-size: 13px; color: var(--ink);
    padding: 11px 13px; border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, .1); background: #fbfcfe;
    outline: none; transition: border-color .15s, background .15s;
}
.am-field .am-in:focus { border-color: rgba(99, 102, 241, .55); background: #fff; }
.am-search { flex: none; border: 0; cursor: pointer; font-family: inherit; padding: 0 16px; border-radius: 12px; font-size: 12.5px; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.am-search[disabled] { opacity: .5; }
.am-tip { margin: 2px 0 10px; font-size: 11px; color: #98a3b6; line-height: 1.6; }
.am-tip b { color: #6d7891; }

.pick-list { display: flex; flex-direction: column; gap: 7px; }
.pick {
    display: flex; align-items: center; gap: 10px; cursor: pointer;
    padding: 10px 12px; border-radius: 13px;
    border: 1px solid rgba(15, 23, 42, .08); background: #fbfcfe;
    transition: border-color .15s, background .15s;
}
.pick.on { border-color: rgba(99, 102, 241, .5); background: #f5f4ff; }
.pick.dup { opacity: .5; cursor: not-allowed; }
.pick-i { width: 17px; height: 17px; flex: none; border-radius: 50%; border: 2px solid #d5dce8; }
.pick.on .pick-i { border-color: var(--brand); background: var(--brand); box-shadow: inset 0 0 0 3px #fff; }
.pick-t { min-width: 0; flex: 1; }
.pick-t b { display: block; font-size: 12.8px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick-t span { display: block; margin-top: 2px; font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick em { flex: none; font-style: normal; font-size: 9.5px; font-weight: 700; padding: 2px 6px; border-radius: 5px; color: #b45309; background: rgba(245, 158, 11, .14); }

.am-ta {
    width: 100%; min-height: 96px; resize: vertical;
    font-family: inherit; font-size: 12.5px; line-height: 1.9; color: var(--ink);
    padding: 11px 13px; border-radius: 13px; outline: none;
    border: 1px solid rgba(15, 23, 42, .1); background: #fbfcfe;
}
.am-ta:focus { border-color: rgba(99, 102, 241, .55); background: #fff; }

/* ---------- 选段 ---------- */
.cl-bar {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    padding: 9px 11px; margin-bottom: 10px; border-radius: 12px;
    background: #f5f6fb; font-size: 11.5px; color: var(--ink-2);
}
.cl-bar b { font-variant-numeric: tabular-nums; color: var(--brand); }
.cl-bar .cl-play {
    margin-left: auto; border: 0; cursor: pointer; font-family: inherit;
    display: inline-flex; align-items: center; gap: 5px;
    padding: 6px 11px; border-radius: 9px; font-size: 11px; font-weight: 600;
    color: var(--brand); background: rgba(99, 102, 241, .12);
}
.cl-list { display: flex; flex-direction: column; gap: 1px; }
.cl-row {
    display: flex; align-items: center; gap: 8px; cursor: pointer;
    padding: 8px 10px; border-radius: 10px;
    font-size: 12.5px; color: var(--ink-2); line-height: 1.5;
    transition: background .12s, color .12s;
}
.cl-row:active { background: #f2f3fa; }
.cl-row .cl-t { flex: none; width: 42px; font-size: 10px; color: #a6b0c2; font-variant-numeric: tabular-nums; }
.cl-row .cl-x { min-width: 0; flex: 1; }
.cl-row .cl-tag { flex: none; font-size: 9.5px; font-weight: 700; padding: 2px 6px; border-radius: 5px; color: #fff; opacity: 0; }
.cl-row.is-h { color: #047857; background: rgba(16, 185, 129, .12); font-weight: 600; }
.cl-row.is-h .cl-tag { opacity: 1; background: #10b981; }
.cl-row.is-t { color: #be123c; background: rgba(244, 63, 94, .1); font-weight: 600; }
.cl-row.is-t .cl-tag { opacity: 1; background: #f43f5e; }
.cl-row.is-sel { background: rgba(99, 102, 241, .07); }
.cl-row.is-sel .cl-x { color: #4b4bc4; }
.cl-empty { padding: 20px 10px; text-align: center; font-size: 12px; color: #a3adbf; line-height: 1.8; }
.cl-progress { font-size: 11px; color: var(--muted); }

/* ---------- 升降调 ---------- */
.pt-val { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 6px 0 14px; }
.pt-btn {
    width: 42px; height: 42px; flex: none; border: 0; cursor: pointer; font-family: inherit;
    border-radius: 50%; display: grid; place-items: center;
    font-size: 21px; line-height: 1; color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    box-shadow: 0 10px 20px -12px rgba(99, 102, 241, .95);
    transition: transform .14s;
}
.pt-btn:active { transform: scale(.9); }
.pt-num { min-width: 110px; text-align: center; }
.pt-num b {
    display: block; font-size: 30px; font-weight: 800; line-height: 1.1;
    font-variant-numeric: tabular-nums; letter-spacing: -.02em; color: var(--brand);
}
.pt-num span { display: block; margin-top: 2px; font-size: 11.5px; color: var(--muted); }
.pt-range { width: 100%; accent-color: var(--brand); }
.pt-scale {
    display: flex; justify-content: space-between;
    margin-top: 2px; font-size: 10px; color: #b3bdcc; font-variant-numeric: tabular-nums;
}
.pt-quick { display: flex; gap: 6px; margin-top: 14px; flex-wrap: wrap; }
.pt-quick button {
    flex: 1; min-width: 62px; border: 0; cursor: pointer; font-family: inherit;
    padding: 8px 4px; border-radius: 10px; font-size: 11.5px; font-weight: 600;
    color: var(--ink-2); background: #f2f4fa;
    transition: background .14s, color .14s;
}
.pt-quick button.on { color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.pt-field { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--edge, rgba(15,23,42,.12)); }
.pt-field-hd { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.pt-field-hd b { font-size: 13px; color: var(--ink, #0f172a); }
.pt-field-hd span { font-size: 11.5px; color: var(--muted); }
.pt-test { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.pt-test .cl-play {
    margin-left: 0; border: 0; cursor: pointer; font-family: inherit;
    display: inline-flex; align-items: center; gap: 5px;
    padding: 8px 14px; border-radius: 10px; font-size: 12px; font-weight: 600;
    color: var(--brand); background: rgba(99, 102, 241, .12);
    transition: background .15s;
}
.pt-test .cl-play:active { background: rgba(99, 102, 241, .2); }
.pt-test span { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }

@media (max-width: 380px) {
    .hero-cover { width: 92px; height: 92px; }
    .hero-main h1 { font-size: 19px; }
    .hero-in { gap: 12px; padding: 17px 15px 13px; }
    .hero-foot { padding: 0 15px 15px; }
}
