/* ============================================================
   AndyMusic — 视觉系统
   设计基调：深色 + 毛玻璃 + 大圆角 + 跟随封面的氛围光
   ============================================================ */

:root {
  --bg:            #0b0b0f;
  --bg-soft:       #14141a;
  --surface:       rgba(255,255,255,0.055);
  --surface-2:     rgba(255,255,255,0.09);
  --border:        rgba(255,255,255,0.10);
  --border-strong: rgba(255,255,255,0.18);

  --text:      #f2f2f5;
  --text-dim:  #a0a0ad;
  --text-mute: #6b6b78;

  --accent:      #ff4d6d;
  --accent-soft: rgba(255,77,109,0.16);
  --accent-2:    #7c5cff;

  --radius:    18px;
  --radius-lg: 26px;
  --radius-sm: 12px;

  --safe-top:    env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);

  --tabbar-h: 58px;
  --mini-h:   62px;

  --ease: cubic-bezier(.32,.72,0,1);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

/* hidden 属性必须压过 display:flex 等布局声明，否则弹层会默认显示 */
[hidden] { display: none !important; }

html, body {
  margin: 0; padding: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", "Helvetica Neue", sans-serif;
  font-size: 15px;
  line-height: 1.45;
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
}

body { overflow: hidden; }

/* 全局 SVG 描边风格（线性图标） */
svg { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 氛围背景：跟随封面颜色 ---------- */
.ambient {
  position: fixed; inset: -20%;
  z-index: 0;
  background:
    radial-gradient(circle at 22% 18%, var(--amb-1, #ff4d6d) 0%, transparent 46%),
    radial-gradient(circle at 78% 72%, var(--amb-2, #7c5cff) 0%, transparent 46%);
  opacity: .17;
  filter: blur(72px) saturate(160%);
  transition: background 1.1s var(--ease), opacity .6s ease;
  pointer-events: none;
}

/* ---------- App 骨架 ---------- */
.app {
  position: relative; z-index: 1;
  height: 100%;
  display: flex; flex-direction: column;
}

/* ---------- 顶栏 ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(var(--safe-top) + 14px) 18px 10px;
  flex-shrink: 0;
}
.topbar-title {
  font-size: 25px; font-weight: 700; letter-spacing: -0.4px;
}
.icon-btn {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text);
  cursor: pointer;
  transition: background .18s, transform .12s;
}
.icon-btn:active { transform: scale(.9); background: var(--surface-2); }

/* ---------- 主区 ---------- */
.main {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 16px);
  scrollbar-width: none;
}
.main::-webkit-scrollbar { display: none; }

.page { display: none; padding: 0 18px; animation: pageIn .3s var(--ease); }
.page.active { display: block; }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- 搜索框 ---------- */
.searchbar {
  display: flex; align-items: center; gap: 9px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 0 13px;
  height: 46px;
  transition: border-color .2s, background .2s;
}
.searchbar:focus-within {
  border-color: var(--border-strong);
  background: var(--surface-2);
}
.sb-icon { color: var(--text-mute); flex-shrink: 0; }
.searchbar input {
  flex: 1; min-width: 0;
  background: none; border: none; outline: none;
  color: var(--text); font-size: 15.5px; font-family: inherit;
}
.searchbar input::placeholder { color: var(--text-mute); }
.searchbar input::-webkit-search-cancel-button { display: none; }
.sb-clear {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border-radius: 50%; border: none;
  background: var(--surface-2); color: var(--text-dim);
  cursor: pointer; flex-shrink: 0;
}

/* ---------- 区块 ---------- */
.section { margin-top: 24px; }
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 13px;
}
.section-head h2 {
  margin: 0; font-size: 17.5px; font-weight: 650; letter-spacing: -0.2px;
}
.text-btn {
  display: inline-flex; align-items: center; gap: 4px;
  background: none; border: none;
  color: var(--accent); font-size: 14px; font-family: inherit;
  cursor: pointer; padding: 4px 2px;
}

/* ---------- 快捷卡片 ---------- */
.quickgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.quickcard {
  display: flex; align-items: center; gap: 11px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 13px;
  cursor: pointer; text-align: left;
  color: var(--text); font-family: inherit;
  transition: transform .16s var(--ease), background .2s;
}
.quickcard:active { transform: scale(.975); background: var(--surface-2); }
.qc-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 12px;
}
.qc-pink { background: var(--accent-soft); color: var(--accent); }
.qc-blue { background: rgba(124,92,255,.16); color: #9d86ff; }
.qc-text { min-width: 0; }
.qc-text b { display: block; font-size: 14.5px; font-weight: 600; }
.qc-text span { display: block; font-size: 12px; color: var(--text-mute); margin-top: 1px; }

/* ---------- 热门标签 ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 15px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-dim);
  font-size: 13.5px; font-family: inherit;
  cursor: pointer;
  transition: all .18s;
}
.chip:active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
  transform: scale(.96);
}

/* ---------- 歌曲列表 ---------- */
.result-meta {
  font-size: 12.5px; color: var(--text-mute);
  padding: 16px 2px 8px;
}
.songlist { display: flex; flex-direction: column; }

.song-item {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background .16s;
  position: relative;
}
.song-item:active { background: var(--surface); }
.song-item.playing .si-name { color: var(--accent); }
.song-item.playing .si-idx { color: var(--accent); }

.si-idx {
  width: 20px; flex-shrink: 0;
  text-align: center;
  font-size: 12.5px; color: var(--text-mute);
  font-variant-numeric: tabular-nums;
}
.si-cover {
  width: 47px; height: 47px; flex-shrink: 0;
  border-radius: 10px;
  object-fit: cover;
  background: var(--surface-2);
}
.si-meta { flex: 1; min-width: 0; }
.si-name {
  font-size: 14.8px; font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* 聚合搜索时标出歌曲来源平台 */
.si-src {
  display: inline-block;
  vertical-align: 1px;
  margin-left: 6px;
  padding: 1px 5px;
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.5;
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--text-mute);
  white-space: nowrap;
}
/* 该源取不到播放地址，播放时会自动匹配其他平台的同款 */
.si-src-alt {
  background: rgba(124, 92, 255, .14);
  color: var(--accent-2);
}
.si-sub {
  font-size: 12.4px; color: var(--text-mute);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-top: 2px;
}
.si-act {
  width: 32px; height: 32px; flex-shrink: 0;
  display: grid; place-items: center;
  background: none; border: none;
  color: var(--text-mute);
  cursor: pointer; border-radius: 50%;
  transition: color .16s, background .16s;
}
.si-act:active { background: var(--surface-2); color: var(--text); }
.si-act.on { color: var(--accent); }

/* 空状态 */
.empty {
  text-align: center; padding: 52px 20px;
  color: var(--text-mute); font-size: 14px;
}
.empty svg { width: 42px; height: 42px; opacity: .35; margin-bottom: 12px; stroke-width: 1.4; }

/* 骨架屏 */
.skeleton { display: flex; align-items: center; gap: 12px; padding: 9px 10px; }
.sk-cover { width: 47px; height: 47px; border-radius: 10px; flex-shrink: 0; }
.sk-line { height: 12px; border-radius: 6px; }
.sk-cover, .sk-line {
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

/* ---------- 歌单网格 ---------- */
.plgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.plcard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform .16s var(--ease);
  text-align: left; padding: 0;
  color: var(--text); font-family: inherit;
}
.plcard:active { transform: scale(.975); }
.plcard-cover {
  width: 100%; aspect-ratio: 1;
  object-fit: cover; display: block;
  background: var(--surface-2);
}
.plcard-body { padding: 10px 11px 12px; }
.plcard-name {
  font-size: 14px; font-weight: 570;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.plcard-count { font-size: 11.5px; color: var(--text-mute); margin-top: 2px; }

/* ---------- 歌单详情头 ---------- */
.pd-head {
  display: flex; align-items: center; gap: 11px;
  padding: 6px 0 14px;
}
.pd-back { flex-shrink: 0; }
.pd-info { flex: 1; min-width: 0; }
.pd-info h2 {
  margin: 0; font-size: 19px; font-weight: 680;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pd-info span { font-size: 12.5px; color: var(--text-mute); }

/* ---------- 底部导航 ---------- */
.tabbar {
  position: absolute; left: 0; right: 0; bottom: 0;
  z-index: 40;
  height: calc(var(--tabbar-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  display: flex; align-items: stretch;
  background: rgba(16,16,22,0.82);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border-top: 1px solid var(--border);
  transition: transform .34s var(--ease);
}
.tabbar.hidden { transform: translateY(110%); }
.tab {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px;
  background: none; border: none;
  color: var(--text-mute);
  font-size: 10.5px; font-family: inherit;
  cursor: pointer;
  transition: color .2s;
}
.tab.active { color: var(--accent); }
.tab svg { transition: transform .2s var(--ease); }
.tab.active svg { transform: translateY(-1px) scale(1.06); }

/* ---------- 迷你播放条 ---------- */
.miniplayer {
  position: absolute; left: 9px; right: 9px;
  bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 7px);
  z-index: 45;
  background: rgba(34,34,44,0.9);
  backdrop-filter: blur(26px) saturate(180%);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 34px rgba(0,0,0,.42);
  animation: mpIn .38s var(--ease);
  transition: transform .3s var(--ease), opacity .3s;
}
.miniplayer.hidden { transform: translateY(140%); opacity: 0; pointer-events: none; }
@keyframes mpIn {
  from { transform: translateY(140%); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
.mp-progress { height: 2px; background: rgba(255,255,255,.1); }
.mp-progress i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .25s linear; }
.mp-body { display: flex; align-items: center; gap: 11px; padding: 9px 11px; cursor: pointer; }
.mp-cover { width: 41px; height: 41px; border-radius: 9px; object-fit: cover; flex-shrink: 0; background: var(--surface-2); }
.mp-meta { flex: 1; min-width: 0; }
.mp-name { font-size: 14px; font-weight: 540; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-artist { font-size: 12px; color: var(--text-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-btn {
  width: 37px; height: 37px; flex-shrink: 0;
  display: grid; place-items: center;
  background: none; border: none;
  color: var(--text); cursor: pointer; border-radius: 50%;
  transition: background .16s, transform .12s;
}
.mp-btn:active { background: var(--surface-2); transform: scale(.9); }

/* 播放/暂停图标用伪元素切换，避免两套 DOM */
.mp-btn#mpToggle::before {
  content: ""; width: 19px; height: 19px;
  background: currentColor;
  clip-path: polygon(15% 8%, 15% 92%, 88% 50%);
}
.mp-btn#mpToggle.playing::before {
  clip-path: polygon(14% 8%, 40% 8%, 40% 92%, 14% 92%, 14% 8%, 60% 8%, 86% 8%, 86% 92%, 60% 92%, 60% 8%);
}

/* ============================================================
   全屏播放页
   ============================================================ */
.nowplaying {
  position: fixed; inset: 0; z-index: 100;
  display: flex; flex-direction: column;
  transform: translateY(100%);
  transition: transform .42s var(--ease);
  overflow: hidden;
}
.nowplaying.open { transform: none; }
.nowplaying.closing { transform: translateY(100%); }

.np-bg {
  position: absolute; inset: -30%;
  background: var(--bg);
  z-index: 0;
}
.np-bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 22%, var(--amb-1, #ff4d6d) 0%, transparent 52%),
    radial-gradient(circle at 72% 78%, var(--amb-2, #7c5cff) 0%, transparent 52%);
  opacity: .38;
  filter: blur(66px) saturate(170%);
  transition: background 1.1s var(--ease);
}
.np-bg::before {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(8,8,12,.62) 0%, rgba(8,8,12,.86) 58%, rgba(8,8,12,.97) 100%);
}

.np-top {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(var(--safe-top) + 12px) 16px 4px;
  flex-shrink: 0;
}
.np-src {
  font-size: 12px; color: var(--text-dim);
  letter-spacing: .5px; text-transform: uppercase;
}
.np-down svg { transform: rotate(180deg); }

.np-stage {
  position: relative; z-index: 2;
  flex: 1;
  display: flex; flex-direction: column;
  padding: 8px 30px 0;
  min-height: 0;
}

/* 封面 */
.np-coverwrap {
  width: min(72vw, 300px);
  aspect-ratio: 1;
  margin: 4px auto 0;
  flex-shrink: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 26px 62px rgba(0,0,0,.62);
  transition: transform .3s var(--ease), box-shadow .3s;
  transform-style: preserve-3d;
}
.np-cover { width: 100%; height: 100%; object-fit: cover; display: block; background: var(--bg-soft); }

/* 歌词区 */
.np-lyric {
  flex: 1;
  min-height: 0;
  margin-top: 26px;
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 78%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 78%, transparent 100%);
}
.lyric-inner {
  transition: transform .48s var(--ease);
  padding: 42% 0;
  text-align: center;
}
.lyric-line {
  font-size: 16px; line-height: 1.5;
  color: var(--text-mute);
  padding: 8px 4px;
  transition: color .3s, transform .3s var(--ease), font-size .3s var(--ease);
  cursor: pointer;
  transform-origin: center;
}
.lyric-line.active {
  color: var(--text);
  font-size: 18.5px;
  font-weight: 620;
  transform: scale(1.03);
}
.lyric-line.plain { color: var(--text-dim); }
.lyric-empty { color: var(--text-mute); font-size: 14px; padding: 20px 0; }

.np-bottom {
  position: relative; z-index: 2;
  padding: 0 30px calc(var(--safe-bottom) + 22px);
  flex-shrink: 0;
}
.np-meta { margin-bottom: 20px; }
.np-title {
  font-size: 21px; font-weight: 680; letter-spacing: -0.3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.np-artist {
  font-size: 14px; color: var(--text-dim); margin-top: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* 进度条 */
.np-progress {
  display: flex; align-items: center; gap: 11px;
  margin-bottom: 20px;
}
.np-time {
  font-size: 11.5px; color: var(--text-dim);
  font-variant-numeric: tabular-nums;
  min-width: 36px; text-align: center;
  flex-shrink: 0;
}
.np-bar {
  flex: 1; position: relative;
  height: 26px;
  display: flex; align-items: center;
  cursor: pointer;
  touch-action: none;
}
.np-bar-bg {
  width: 100%; height: 4px;
  background: rgba(255,255,255,.18);
  border-radius: 2px;
  overflow: hidden;
  transition: height .18s var(--ease);
}
.np-bar-fill {
  display: block; height: 100%; width: 0;
  background: var(--accent);
  border-radius: 2px;
}
.np-bar-knob {
  position: absolute; top: 50%;
  width: 11px; height: 11px;
  margin-left: -5.5px;
  background: #fff;
  border-radius: 50%;
  transform: translateY(-50%) scale(0);
  transition: transform .18s var(--ease);
  box-shadow: 0 1px 5px rgba(0,0,0,.5);
  pointer-events: none;
}
.np-bar:hover .np-bar-knob,
.np-bar.dragging .np-bar-knob { transform: translateY(-50%) scale(1); }
.np-bar:hover .np-bar-bg,
.np-bar.dragging .np-bar-bg { height: 6px; }

/* 控制按钮 */
.np-controls {
  display: flex; align-items: center; justify-content: space-between;
}
.np-ctl {
  background: none; border: none;
  color: var(--text-dim);
  cursor: pointer;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  transition: color .18s, transform .12s;
}
.np-ctl:active { transform: scale(.88); color: var(--text); }
.np-ctl.on { color: var(--accent); }
.np-fav.on { color: var(--accent); }
.np-fav.on svg { fill: var(--accent); stroke: var(--accent); }

.np-play {
  width: 67px; height: 67px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: #111;
  cursor: pointer;
  display: grid; place-items: center;
  box-shadow: 0 8px 26px rgba(255,255,255,.2);
  transition: transform .14s var(--ease);
  position: relative;
}
.np-play:active { transform: scale(.93); }
.np-play::before {
  content: ""; width: 25px; height: 25px;
  background: currentColor;
  clip-path: polygon(20% 10%, 20% 90%, 86% 50%);
}
.np-play.playing::before {
  width: 23px; height: 23px;
  clip-path: polygon(16% 10%, 40% 10%, 40% 90%, 16% 90%, 16% 10%, 60% 10%, 84% 10%, 84% 90%, 60% 90%, 60% 10%);
}

/* 旋转动画（封面播放时轻微呼吸） */
.np-coverwrap.playing { animation: coverBreath 5.5s ease-in-out infinite; }
@keyframes coverBreath {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.014); }
}

/* ============================================================
   弹层 / 对话框 / 提示
   ============================================================ */
.sheet-mask, .dlg-mask {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.62);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex; align-items: flex-end;
  animation: fadeIn .24s ease;
}
.dlg-mask { align-items: center; justify-content: center; padding: 24px; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.sheet {
  width: 100%;
  background: #1b1b22;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 10px 16px calc(var(--safe-bottom) + 14px);
  animation: sheetUp .34s var(--ease);
  max-height: 76vh; display: flex; flex-direction: column;
}
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
.sheet-handle {
  width: 38px; height: 4px; border-radius: 2px;
  background: var(--border-strong);
  margin: 0 auto 14px;
}
.sheet-title {
  font-size: 16.5px; font-weight: 650;
  text-align: center; margin-bottom: 14px;
}
.sheet-list { overflow-y: auto; flex: 1; }
.sheet-item {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 6px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  background: none; border-left: none; border-right: none; border-top: none;
  width: 100%; text-align: left;
  color: var(--text); font-family: inherit; font-size: 15px;
}
.sheet-item:last-child { border-bottom: none; }
.sheet-item:active { opacity: .6; }
.sheet-item .si-cover { width: 40px; height: 40px; border-radius: 9px; }
.sheet-item-new { color: var(--accent); font-weight: 560; }
.sheet-cancel {
  margin-top: 12px; padding: 13px;
  background: var(--surface); border: none;
  border-radius: 14px;
  color: var(--text-dim); font-size: 15.5px; font-family: inherit;
  cursor: pointer;
}

.dlg {
  width: 100%; max-width: 330px;
  background: #1b1b22;
  border-radius: var(--radius-lg);
  padding: 22px 20px 18px;
  animation: dlgIn .28s var(--ease);
}
@keyframes dlgIn {
  from { opacity: 0; transform: scale(.93); }
  to   { opacity: 1; transform: none; }
}
.dlg-title { font-size: 17px; font-weight: 650; text-align: center; margin-bottom: 17px; }
.dlg input {
  width: 100%; height: 46px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 0 14px;
  color: var(--text); font-size: 15.5px; font-family: inherit;
  outline: none;
  transition: border-color .2s;
}
.dlg input:focus { border-color: var(--accent); }
.dlg-actions { display: flex; gap: 10px; margin-top: 18px; }
.dlg-btn {
  flex: 1; height: 45px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 13px;
  color: var(--text-dim); font-size: 15.5px; font-family: inherit;
  cursor: pointer;
  transition: transform .12s;
}
.dlg-btn:active { transform: scale(.96); }
.dlg-btn.primary {
  background: var(--accent); border-color: var(--accent);
  color: #fff; font-weight: 560;
}

.toast {
  position: fixed; z-index: 300;
  left: 50%; bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 82px);
  transform: translateX(-50%) translateY(10px);
  background: rgba(44,44,54,.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-strong);
  border-radius: 13px;
  padding: 10px 19px;
  font-size: 13.8px;
  box-shadow: 0 8px 26px rgba(0,0,0,.42);
  opacity: 0;
  transition: opacity .26s, transform .26s var(--ease);
  pointer-events: none;
  max-width: 82vw; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 横屏 / 大屏适配 ---------- */
@media (min-width: 620px) {
  .page { max-width: 620px; margin: 0 auto; }
  .np-coverwrap { width: min(48vh, 300px); }
  .plgrid { grid-template-columns: repeat(3, 1fr); }
}

@media (orientation: landscape) and (max-height: 500px) {
  .np-coverwrap { width: min(34vh, 200px); }
  .np-lyric { display: none; }
}
