/* ============================================================
   仿 Apple Music 播放器样式（1:1 视觉还原 music.apple.com）
   所有规则限定在 am- / pb- / np- 前缀，避免污染
   ============================================================ */

/* ---------- 设计变量（亮色） ---------- */
:root {
    --bg: #ffffff;
    --bg-soft: #f5f5f7;
    --sidebar: rgba(246, 246, 248, .82);
    --sidebar-solid: #f6f6f8;
    --player: rgba(250, 250, 252, .82);
    --player-solid: #fafafc;
    --text: #1d1d1f;
    --text-2: #6e6e73;
    --text-3: #a1a1a6;
    --separator: rgba(0, 0, 0, .09);
    --separator-strong: #d2d2d7;
    --accent: #fa233b;
    --accent-soft: rgba(250, 35, 59, .12);
    --hover: rgba(0, 0, 0, .045);
    --chip: #efeff0;
    --shadow: rgba(0, 0, 0, .22);

    --sidebar-w: 248px;
    --player-h: 76px;
    --tabbar-h: 52px;
    --radius-art: 8px;
    --blur: saturate(180%) blur(22px);
}

/* ---------- 设计变量（暗色） ---------- */
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #1d1d1f;
        --bg-soft: #2c2c2e;
        --sidebar: rgba(28, 28, 30, .8);
        --sidebar-solid: #1c1c1e;
        --player: rgba(26, 26, 28, .82);
        --player-solid: #1a1a1c;
        --text: #f5f5f7;
        --text-2: #98989d;
        --text-3: #6c6c70;
        --separator: rgba(255, 255, 255, .1);
        --separator-strong: #424245;
        --accent: #fa2d48;
        --accent-soft: rgba(250, 45, 72, .18);
        --hover: rgba(255, 255, 255, .06);
        --chip: #38363c;
        --shadow: rgba(0, 0, 0, .55);
    }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html, body { height: 100%; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
        "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow: hidden;
}

button { font-family: inherit; border: 0; background: none; color: inherit; cursor: pointer; }
img { display: block; }
a { color: inherit; text-decoration: none; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: rgba(120, 120, 120, .35); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: rgba(120, 120, 120, .55); }
::-webkit-scrollbar-track { background: transparent; }

/* 通用按钮 */
.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    width: 34px;
    height: 34px;
    border-radius: 8px;
    transition: transform .15s ease, color .15s ease, background .15s ease;
}
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn:hover { background: var(--hover); }
.icon-btn:active { transform: scale(.92); }
.icon-btn.is-active { color: var(--accent); }

/* ============================================================
   整体布局
   ============================================================ */
.am-root {
    height: 100vh;
    height: 100dvh;
    display: flex;
}

/* ============================================================
   侧边栏
   ============================================================ */
.am-sidebar {
    width: var(--sidebar-w);
    flex-shrink: 0;
    background: var(--sidebar);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border-right: 1px solid var(--separator);
    display: flex;
    flex-direction: column;
    padding: 12px 10px;
    overflow-y: hidden;
}

.am-side-group { margin-bottom: 16px; }
.am-side-scroll { flex: 1; min-height: 0; display: flex; flex-direction: column; }

.am-side-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    color: var(--text-2);
    text-transform: uppercase;
    padding: 4px 10px 6px;
}

.am-side-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 6px 10px;
    border-radius: 7px;
    font-size: 14.5px;
    color: var(--text);
    line-height: 24px;
    transition: background .12s ease, color .12s ease;
    user-select: none;
}
.am-side-item svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--text-2); }
.am-side-item:hover { background: var(--hover); }
.am-side-item.is-active { color: var(--accent); background: var(--accent-soft); }
.am-side-item.is-active svg { color: var(--accent); }

.am-side-playlists { flex: 1; overflow-y: auto; margin: 0 -4px; padding: 0 4px; }
.am-side-playlists .am-side-item { font-size: 13.5px; color: var(--text-2); }
.am-side-playlists .am-side-item.is-active { color: var(--accent); }
.am-side-empty { padding: 4px 10px; font-size: 12.5px; color: var(--text-3); }

/* ============================================================
   主内容
   ============================================================ */
.am-body {
    flex: 1;
    min-width: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: calc(var(--player-h) + 20px);
    scroll-behavior: smooth;
}

.am-view { padding: 26px 32px 40px; max-width: 1240px; margin: 0 auto; }

/* 页面大标题 */
.am-page-title {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -.01em;
    margin-bottom: 20px;
}

/* ============================================================
   搜索页
   ============================================================ */
.am-searchbox {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-soft);
    border: 1px solid var(--separator);
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 14px;
}
.am-searchbox svg { width: 18px; height: 18px; color: var(--text-2); flex-shrink: 0; }
.am-searchbox input {
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 16px;
    color: var(--text);
    font-family: inherit;
}
.am-searchbox input::placeholder { color: var(--text-3); }
.am-searchbox .clear-btn { font-size: 16px; color: var(--text-3); padding: 2px; }

.am-segmented {
    display: inline-flex;
    background: var(--chip);
    border-radius: 9px;
    padding: 2px;
    gap: 2px;
    margin-bottom: 22px;
}
.am-segmented button {
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 7px;
    color: var(--text-2);
    transition: all .15s ease;
}
.am-segmented button.is-active {
    background: var(--bg);
    color: var(--text);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
}

/* ============================================================
   首页 Hero
   ============================================================ */
.am-hero {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 34px;
    min-height: 320px;
    display: flex;
    align-items: flex-end;
    box-shadow: 0 12px 40px var(--shadow);
    cursor: pointer;
}
.am-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.am-hero:hover .am-hero-img { transform: scale(1.03); }
.am-hero-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.72) 100%);
}
.am-hero-body {
    position: relative;
    padding: 26px 28px;
    color: #fff;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}
.am-hero-kicker {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    opacity: .85;
    margin-bottom: 6px;
}
.am-hero-title { font-size: 32px; font-weight: 700; letter-spacing: -.01em; }
.am-hero-sub { font-size: 14.5px; opacity: .82; margin-top: 4px; }

/* 圆形播放按钮 */
.am-circle-play {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .15s ease, background .15s ease;
}
.am-circle-play svg { width: 20px; height: 20px; color: #000; margin-left: 2px; }
.am-circle-play:hover { transform: scale(1.06); background: #fff; }

/* ============================================================
   横向/网格卡片
   ============================================================ */
.am-section { margin-bottom: 34px; }
.am-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 14px;
}
.am-section-title { font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
.am-section-more { font-size: 13px; color: var(--accent); font-weight: 500; }

.am-rail {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    margin: 0 -4px;
    padding-left: 4px;
    padding-right: 4px;
}

.am-card {
    flex: 0 0 176px;
    scroll-snap-align: start;
    cursor: pointer;
}
.am-card-art {
    position: relative;
    width: 176px;
    height: 176px;
    border-radius: var(--radius-art);
    overflow: hidden;
    box-shadow: 0 6px 18px var(--shadow);
    margin-bottom: 10px;
}
.am-card-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.am-card:hover .am-card-art img { transform: scale(1.05); }
.am-card .am-circle-play {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 36px;
    height: 36px;
    opacity: 0;
    transform: translateY(6px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .3);
}
.am-card:hover .am-circle-play { opacity: 1; transform: translateY(0); }
.am-card-name {
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.am-card-sub {
    font-size: 12.5px;
    color: var(--text-2);
    margin-top: 2px;
}

.am-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
    gap: 22px 18px;
}
.am-grid .am-card { flex: none; }
.am-grid .am-card-art { width: 100%; height: auto; aspect-ratio: 1; }

/* ============================================================
   歌单详情头
   ============================================================ */
.am-pl-header {
    display: flex;
    gap: 26px;
    align-items: flex-end;
    margin-bottom: 28px;
}
.am-pl-art {
    width: 210px;
    height: 210px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 14px 40px var(--shadow);
    flex-shrink: 0;
}
.am-pl-kicker {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-2);
    margin-bottom: 8px;
}
.am-pl-title { font-size: 38px; font-weight: 700; letter-spacing: -.015em; line-height: 1.1; }
.am-pl-meta { font-size: 13.5px; color: var(--text-2); margin-top: 10px; }
.am-pl-actions { display: flex; align-items: center; gap: 14px; margin-top: 18px; }

.am-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 20px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    transition: filter .15s ease, transform .15s ease;
}
.am-pill-btn svg { width: 16px; height: 16px; }
.am-pill-btn.play-all { background: var(--accent); color: #fff; }
.am-pill-btn.shuffle-all { background: var(--chip); color: var(--text); }
.am-pill-btn:hover { filter: brightness(1.06); }
.am-pill-btn:active { transform: scale(.96); }

/* ============================================================
   歌曲列表（Apple Music 表格行）
   ============================================================ */
.am-row {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 230px 52px;
    align-items: center;
    gap: 12px;
    padding: 7px 12px;
    border-radius: 8px;
    cursor: default;
    transition: background .1s ease;
}
.am-row:hover { background: var(--hover); }
.am-row.is-current { background: var(--accent-soft); }

.row-index {
    width: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-2);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}
.row-index svg { width: 14px; height: 14px; display: none; color: var(--text); }
.am-row:hover .row-index span { display: none; }
.am-row:hover .row-index svg { display: block; }
.am-row.is-current .row-index span { display: none; }
.am-row.is-current .row-index .eq { display: flex; }

/* 播放中的声波动画 */
.eq { display: none; gap: 2px; align-items: flex-end; height: 14px; }
.eq i {
    width: 3px;
    background: var(--accent);
    border-radius: 1px;
    animation: eqb .9s ease-in-out infinite;
}
.eq i:nth-child(1) { height: 60%; animation-delay: -.3s; }
.eq i:nth-child(2) { height: 100%; animation-delay: -.6s; }
.eq i:nth-child(3) { height: 40%; animation-delay: -.15s; }
.am-row.is-paused .eq i { animation-play-state: paused; }
@keyframes eqb {
    0%, 100% { transform: scaleY(.45); }
    50% { transform: scaleY(1); }
}

.row-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.row-title img {
    width: 42px;
    height: 42px;
    border-radius: 5px;
    object-fit: cover;
    flex-shrink: 0;
}
.row-name {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.row-artist {
    font-size: 12.5px;
    color: var(--text-2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.am-row.is-current .row-name { color: var(--accent); }

.row-album {
    font-size: 13px;
    color: var(--text-2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.row-time {
    font-size: 12.5px;
    color: var(--text-2);
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* 行尾：喜欢按钮 + 时长（hover 互换） */
.row-end {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}
.am-row .row-like {
    display: none;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    color: var(--text-2);
}
.am-row .row-like svg { width: 16px; height: 16px; }
.am-row .row-like.is-liked { display: flex; color: var(--accent); }
.am-row:hover .row-time { display: none; }
.am-row:hover .row-like { display: flex; }

/* 心形填充通用状态 */
.heart.liked { fill: var(--accent); stroke: var(--accent); }
.icon-btn.liked { color: var(--accent); }

/* ============================================================
   进度 / 音量滑条
   ============================================================ */
.am-slider {
    position: relative;
    height: 20px;
    display: flex;
    align-items: center;
    cursor: pointer;
    touch-action: none;
}
.slider-buffer,
.slider-fill {
    position: absolute;
    left: 0;
    height: 4px;
    border-radius: 2px;
    pointer-events: none;
}
.slider-buffer { width: 0; background: rgba(120, 120, 120, .3); }
.slider-fill { width: 0; background: var(--text); }
.am-slider.is-dragging .slider-fill,
.am-slider:hover .slider-fill { background: var(--accent); }
.slider-knob {
    position: absolute;
    left: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text);
    transform: translateX(-50%) scale(0);
    transition: transform .12s ease;
    pointer-events: none;
}
.am-slider:hover .slider-knob,
.am-slider.is-dragging .slider-knob { transform: translateX(-50%) scale(1); background: var(--accent); }

/* ============================================================
   底部播放栏
   ============================================================ */
.am-player {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: var(--player-h);
    background: var(--player);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border-top: 1px solid var(--separator);
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(360px, 2fr) minmax(200px, 1fr);
    align-items: center;
    z-index: 90;
}

.pb-left { display: flex; align-items: center; gap: 12px; padding: 0 16px; min-width: 0; }
.pb-art {
    width: 52px;
    height: 52px;
    border-radius: 6px;
    object-fit: cover;
    cursor: pointer;
    box-shadow: 0 3px 10px var(--shadow);
}
.pb-info { min-width: 0; flex: 1; }
.pb-name {
    font-size: 13.5px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}
.pb-artist {
    font-size: 12px;
    color: var(--text-2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}
.pb-like { width: 30px; height: 30px; flex-shrink: 0; }
.pb-like svg { width: 17px; height: 17px; }

.pb-center { display: flex; flex-direction: column; gap: 4px; padding: 0 18px; }
.pb-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
}
.pb-controls .icon-btn { width: 32px; height: 32px; }
.pb-controls .pb-play { width: 38px; height: 38px; }
.pb-controls .pb-play svg { width: 28px; height: 28px; }
.pb-controls .pb-play .ic-pause { display: none; }
.is-playing .pb-play .ic-play,
.is-playing .np-play .ic-play { display: none; }
.is-playing .pb-play .ic-pause,
.is-playing .np-play .ic-pause { display: block; }

.pb-shuffle.is-active,
.pb-repeat.is-active,
.np-shuffle.is-active,
.np-repeat.is-active { color: var(--accent); }
.repeat-one {
    display: none;
    position: absolute;
    font-size: 10px;
    font-weight: 700;
}
.pb-repeat, .np-repeat { position: relative; }
.pb-repeat.is-active.one .repeat-one,
.np-repeat.is-active.one .repeat-one { display: block; }

.pb-seek { display: flex; align-items: center; gap: 10px; }
.pb-time {
    font-size: 11px;
    color: var(--text-2);
    width: 34px;
    text-align: center;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}
.pb-seek .am-slider { flex: 1; height: 16px; }

.pb-right { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding-right: 18px; }
.pb-right .icon-btn { width: 32px; height: 32px; }
.pb-lyrics-btn.is-active { color: var(--accent); }
.pb-volume { width: 90px; }

/* ============================================================
   全屏播放器
   ============================================================ */
.am-now {
    position: fixed;
    inset: 0;
    z-index: 200;
    color: #fff;
    opacity: 0;
    transition: opacity .35s ease;
}
.am-now.show { opacity: 1; }

.np-bg {
    position: absolute;
    inset: -60px;
    background-size: cover;
    background-position: center;
    filter: blur(70px) saturate(1.7) brightness(.5);
    transform: scale(1.2);
}
.np-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.55));
}

.np-inner {
    position: relative;
    height: 100%;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
}

.np-artpane {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 56px;
    position: relative;
}
.np-close {
    position: absolute;
    top: 22px;
    left: 24px;
    color: #fff;
    width: 40px;
    height: 40px;
}
.np-close svg { width: 26px; height: 26px; }
.np-close:hover { background: rgba(255, 255, 255, .12); }

.np-art {
    width: min(360px, 38vw);
    aspect-ratio: 1;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
    transition: transform .35s ease;
}
.am-now.is-mini .np-art { transform: scale(.9); }

.np-meta {
    width: min(360px, 38vw);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 22px;
}
.np-title {
    font-size: 20px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.np-artist {
    font-size: 17px;
    color: rgba(255, 255, 255, .7);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
}
.np-like { color: #fff; width: 36px; height: 36px; flex-shrink: 0; }
.np-like svg { width: 20px; height: 20px; }
.np-like .heart,
.np-artpane .heart { stroke: #fff; }

.np-seek { width: min(360px, 38vw); margin-top: 18px; }
.np-seek .slider-buffer { background: rgba(255, 255, 255, .22); }
.np-seek .slider-fill { background: #fff; }
.np-seek .slider-knob { background: #fff; }
.np-seek .am-slider:hover .slider-fill,
.np-seek .am-slider.is-dragging .slider-fill { background: #fff; }
.np-seek .am-slider:hover .slider-knob,
.np-seek .am-slider.is-dragging .slider-knob { background: #fff; }
.np-times {
    display: flex;
    justify-content: space-between;
    font-size: 11.5px;
    color: rgba(255, 255, 255, .6);
    margin-top: 4px;
    font-variant-numeric: tabular-nums;
}

.np-controls {
    display: flex;
    align-items: center;
    gap: 26px;
    margin-top: 16px;
}
.np-controls .icon-btn { color: #fff; }
.np-controls .icon-btn svg { width: 26px; height: 26px; }
.np-controls .np-play svg { width: 36px; height: 36px; }
.np-controls .np-play { width: 46px; height: 46px; }
.np-controls .np-shuffle.is-active,
.np-controls .np-repeat.is-active { color: var(--accent); }

.np-volume {
    display: flex;
    align-items: center;
    gap: 10px;
    width: min(300px, 30vw);
    margin-top: 22px;
}
.vol-ic { width: 17px; height: 17px; color: rgba(255, 255, 255, .8); flex-shrink: 0; }
.np-volume .am-slider { flex: 1; }
.np-volume .slider-fill { background: #fff; }
.np-volume .slider-knob { background: #fff; }
.np-volume .am-slider:hover .slider-fill,
.np-volume .am-slider.is-dragging .slider-fill { background: #fff; }
.np-volume .am-slider:hover .slider-knob,
.np-volume .am-slider.is-dragging .slider-knob { background: #fff; }

.np-lyric-toggle {
    display: none;
    margin-top: 18px;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    padding: 8px 18px;
    border-radius: 999px;
    gap: 7px;
    font-size: 13.5px;
}
.np-lyric-toggle svg { width: 16px; height: 16px; }
.np-lyric-toggle.is-active { background: var(--accent); }

/* ---------- 歌词面板 ---------- */
.np-lyricpane {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 40px 0;
}
.np-lyricpane::before,
.np-lyricpane::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 120px;
    z-index: 2;
    pointer-events: none;
}
.np-lyricpane::before { top: 0; background: linear-gradient(180deg, rgba(0,0,0,.5), transparent); }
.np-lyricpane::after { bottom: 0; background: linear-gradient(0deg, rgba(0,0,0,.5), transparent); }

.np-lyrics {
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 84%, transparent 100%);
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 84%, transparent 100%);
}
.np-lyric-inner {
    transition: transform .5s cubic-bezier(.33, .05, .28, 1);
    padding: 0 50px;
}
.np-line {
    padding: 10px 0;
    font-size: 23px;
    font-weight: 700;
    line-height: 1.32;
    letter-spacing: -.01em;
    color: rgba(255, 255, 255, .38);
    transition: color .35s ease, transform .35s ease, opacity .35s ease;
    transform-origin: left center;
    cursor: pointer;
}
.np-line .np-trans {
    display: block;
    font-size: 15px;
    font-weight: 500;
    margin-top: 2px;
}
.np-line.on {
    color: #fff;
    transform: scale(1.04);
}
.np-line:hover { color: rgba(255, 255, 255, .75); }
.np-lyric-placeholder {
    padding: 0 50px;
    font-size: 20px;
    font-weight: 600;
    color: rgba(255, 255, 255, .55);
}

/* ============================================================
   空状态 / 骨架屏
   ============================================================ */
.am-empty {
    text-align: center;
    padding: 90px 20px;
    color: var(--text-2);
}
.am-empty svg { width: 52px; height: 52px; margin-bottom: 14px; color: var(--text-3); }
.am-empty-title { font-size: 17px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.am-empty-sub { font-size: 13.5px; }

.am-skeleton {
    border-radius: 6px;
    background: linear-gradient(90deg, var(--bg-soft) 25%, rgba(130,130,130,.18) 50%, var(--bg-soft) 75%);
    background-size: 200% 100%;
    animation: sk 1.3s infinite;
}
@keyframes sk {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============================================================
   Toast
   ============================================================ */

/* 加载缓冲：封面呼吸动画 */
.am-player.is-loading .pb-art {
    animation: artpulse 1s ease-in-out infinite;
}
@keyframes artpulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .4; }
}

.am-toast {
    position: fixed;
    left: 50%;
    bottom: calc(var(--player-h) + 22px);
    transform: translateX(-50%) translateY(12px);
    background: rgba(30, 30, 32, .92);
    color: #fff;
    font-size: 13.5px;
    padding: 10px 20px;
    border-radius: 999px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
    z-index: 300;
    backdrop-filter: blur(10px);
    max-width: 80vw;
    text-align: center;
}
.am-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================================
   移动端
   ============================================================ */
.am-tabbar { display: none; }

@media (max-width: 880px) {

    .am-sidebar { display: none; }

    .am-view { padding: 18px 18px 30px; }
    .am-page-title { font-size: 26px; }

    /* 播放栏精简 */
    .am-player {
        grid-template-columns: 1fr auto;
        height: 64px;
        bottom: var(--tabbar-h);
    }
    .pb-left { padding: 0 12px; gap: 10px; }
    .pb-art { width: 44px; height: 44px; }
    .pb-like { display: none; }
    .pb-center {
        position: absolute;
        right: 8px;
        top: 0;
        height: 100%;
        flex-direction: row;
        padding: 0;
        gap: 4px;
    }
    .pb-controls { gap: 2px; }
    .pb-controls .pb-shuffle,
    .pb-controls .pb-repeat { display: none; }
    .pb-controls .icon-btn { width: 40px; height: 44px; }
    .pb-controls .pb-play { width: 40px; height: 44px; }
    .pb-controls .pb-play svg { width: 24px; height: 24px; }
    .pb-seek { display: none; }
    .pb-right { display: none; }

    .am-body { padding-bottom: calc(64px + var(--tabbar-h) + 14px); }

    /* 全屏播放器：单列 */
    .np-inner { grid-template-columns: 1fr; }
    .np-artpane { padding: 56px 26px 30px; }
    .np-art { width: min(72vw, 320px); }
    .np-meta, .np-seek { width: min(72vw, 320px); }
    .np-controls { gap: 22px; margin-top: 22px; }
    .np-volume { display: none; }
    .np-lyric-toggle { display: inline-flex; }

    .np-lyricpane {
        position: absolute;
        inset: 0;
        background: rgba(15, 15, 17, .72);
        backdrop-filter: blur(30px);
        opacity: 0;
        pointer-events: none;
        transition: opacity .3s ease;
    }
    .am-now.lyrics-on .np-lyricpane { opacity: 1; pointer-events: auto; }
    .am-now.lyrics-on .np-artpane { opacity: 0; pointer-events: none; }
    .np-line { font-size: 20px; }
    .np-line .np-trans { font-size: 13px; }
    .np-lyric-inner { padding: 0 26px; }
    .np-lyric-placeholder { padding: 0 26px; }

    /* 歌单详情 */
    .am-pl-header { flex-direction: column; align-items: center; text-align: center; gap: 18px; }
    .am-pl-art { width: 180px; height: 180px; }
    .am-pl-title { font-size: 28px; }
    .am-pl-actions { justify-content: center; }

    /* 行列表 */
    .am-row { grid-template-columns: 28px minmax(0, 1fr) 44px; gap: 10px; padding: 7px 8px; }
    .row-album { display: none; }
    .row-title img { width: 40px; height: 40px; }

    /* 卡片 */
    .am-card { flex-basis: 148px; }
    .am-card-art { width: 148px; height: 148px; }
    .am-grid { grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 18px 12px; }

    .am-hero { min-height: 250px; }
    .am-hero-title { font-size: 25px; }

    /* 底部标签栏 */
    .am-tabbar {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        height: var(--tabbar-h);
        background: var(--player);
        backdrop-filter: var(--blur);
        -webkit-backdrop-filter: var(--blur);
        border-top: 1px solid var(--separator);
        z-index: 95;
        padding-bottom: env(safe-area-inset-bottom);
    }
    .am-tabbar a {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        font-size: 10.5px;
        color: var(--text-2);
    }
    .am-tabbar a svg { width: 23px; height: 23px; }
    .am-tabbar a.is-active { color: var(--accent); }

    .am-toast { bottom: calc(64px + var(--tabbar-h) + 18px); }
}
