/* ============================================================
   CZI MUSIC · 前台样式（2026-10-20 重写）
   原则：
     1. 零外部依赖 —— 不用 Google Fonts，不 @import 任何远程资源
     2. 系统字体栈优先 —— 首屏不等字体
     3. 深色底 + 单一强调色，播放器常驻底部
   ============================================================ */

:root {
  --bg:        #0b0c0f;
  --bg-soft:   #13151a;
  --bg-card:   #191c22;
  --bg-hover:  #22262f;
  --ink:       #f2f3f5;
  --ink-2:     #a8adb8;
  --ink-3:     #6b7280;
  --line:      #262a33;
  --accent:    #3ddc97;
  --accent-2:  #7ef0bb;

  --player-h:  84px;
  --side-w:    232px;
  --radius:    14px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  padding-bottom: var(--player-h);
}

button { font: inherit; color: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ---------- 滚动条 ---------- */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #2c313c; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #3a4150; }

/* ============================================================
   布局
   ============================================================ */
body {
  display: grid;
  grid-template-columns: var(--side-w) 1fr;
  grid-template-rows: 1fr;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: calc(100vh - var(--player-h));
  background: var(--bg-soft);
  border-right: 1px solid var(--line);
  padding: 26px 16px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.main {
  min-width: 0;
  padding: 0 5vw 60px;
  max-width: 1500px;
}

/* ============================================================
   侧栏
   ============================================================ */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 6px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid;
  place-items: center;
  font-size: 17px;
  color: #fff;
  flex: none;
}

.brand div { display: flex; align-items: baseline; gap: 5px; }
.brand strong { font-size: 16px; letter-spacing: 1.5px; }
.brand em {
  font-style: normal;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--ink-3);
}

.nav { display: grid; gap: 4px; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-2);
  text-align: left;
  transition: background .15s, color .15s;
}

.nav-item .ico {
  width: 20px;
  text-align: center;
  font-size: 15px;
  opacity: .75;
}

.nav-item:hover { background: var(--bg-hover); color: var(--ink); }

.nav-item.is-active {
  background: rgba(255, 107, 74, .12);
  color: var(--accent);
  font-weight: 500;
}

.nav-item.is-active .ico { opacity: 1; }

.sidebar-foot {
  margin-top: auto;
  padding: 14px 12px 0;
  border-top: 1px solid var(--line);
  font-size: 10px;
  letter-spacing: 1.2px;
  color: var(--ink-3);
  line-height: 1.9;
}

.sidebar-foot p { margin: 0; }
.sidebar-foot .tiny { letter-spacing: .5px; opacity: .7; }

.admin-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 0;
  color: var(--ink-2);
  transition: color .15s;
}
.admin-link:hover { color: var(--accent); }

/* ============================================================
   顶栏
   ============================================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 0 16px;
  background: linear-gradient(to bottom, var(--bg) 70%, transparent);
}

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 6px 0 16px;
  transition: border-color .15s, background .15s;
}

.search:focus-within {
  border-color: rgba(255, 107, 74, .55);
  background: var(--bg-hover);
}

.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 9px 0;
  outline: 0;
  font: inherit;
}

.search input::placeholder { color: var(--ink-3); }
.search input::-webkit-search-cancel-button { filter: invert(.6); }

.search button {
  border: 0;
  background: transparent;
  color: var(--ink-2);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
}
.search button:hover { color: var(--accent); }

.icon-btn {
  border: 0;
  background: var(--bg-card);
  border-radius: 10px;
  width: 38px;
  height: 38px;
  flex: none;
  font-size: 16px;
  line-height: 1;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 46px 0 54px;
}

.pill {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 1.6px;
  color: var(--accent);
  background: rgba(255, 107, 74, .1);
  border-radius: 999px;
  padding: 5px 13px;
}

.hero h1 {
  font-size: clamp(32px, 4.6vw, 54px);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -1px;
  margin: 18px 0 14px;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-text p {
  color: var(--ink-2);
  line-height: 2;
  margin: 0 0 26px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 500;
  padding: 13px 28px;
  box-shadow: 0 8px 24px rgba(255, 107, 74, .25);
  transition: transform .15s, box-shadow .15s;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(255, 107, 74, .35);
}
.btn-primary:active { transform: translateY(0); }

/* 唱片 */
.hero-art { flex: none; }

.disc {
  width: 218px;
  height: 218px;
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle at 50% 50%,
      #202329 0 2px, #2b2f38 2px 4px);
  display: grid;
  place-items: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .55), inset 0 0 0 1px #333944;
  position: relative;
}

.disc::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.045) 0%, transparent 62%);
  pointer-events: none;
}

.disc-label {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff8a5c, #e0573a);
  display: grid;
  place-items: center;
  text-align: center;
  line-height: 1.25;
  box-shadow: 0 0 0 5px rgba(0, 0, 0, .35);
  position: relative;
  z-index: 1;
}

.disc-label strong { font-size: 13px; letter-spacing: 1px; color: #fff; }
.disc-label small { display: block; font-size: 6.5px; opacity: .8; color: #fff; }

/* 播放时唱片旋转 */
.disc.is-spinning { animation: spin 5.5s linear infinite; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   区块标题
   ============================================================ */
.section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 8px 0 20px;
}

.section-head h2 {
  font-size: 19px;
  font-weight: 600;
  margin: 0 auto 0 0;
  letter-spacing: .3px;
}

.count { font-size: 12px; color: var(--ink-3); }

.btn-ghost {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-2);
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 13px;
  transition: border-color .15s, color .15s, background .15s;
}

.btn-ghost:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(255, 107, 74, .06);
}

.btn-ghost:disabled { opacity: .35; cursor: not-allowed; }

/* ============================================================
   歌曲网格
   ============================================================ */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 18px;
  min-height: 120px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 3px;
  border: 0;
  border-radius: var(--radius);
  background: var(--bg-card);
  padding: 12px;
  text-align: left;
  transition: background .18s, transform .18s;
  position: relative;
  overflow: hidden;
}

.card:hover { background: var(--bg-hover); transform: translateY(-2px); }

.card .thumb {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #2a2e37;
  aspect-ratio: 1;
  margin-bottom: 9px;
}

.card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s;
}

.card:hover .thumb img { transform: scale(1.05); }

.card .idx {
  position: absolute;
  top: 8px;
  left: 9px;
  font-size: 11px;
  color: rgba(255,255,255,.75);
  background: rgba(0,0,0,.42);
  border-radius: 5px;
  padding: 1px 6px;
  backdrop-filter: blur(4px);
}

.card strong {
  font-size: 13.5px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card small { font-size: 11.5px; color: var(--ink-3); }

.card .tag {
  position: absolute;
  top: 10px;
  right: 10px;
  font-style: normal;
  font-size: 10px;
  background: rgba(0,0,0,.55);
  color: #ffc9b8;
  border-radius: 5px;
  padding: 1px 6px;
}

/* 播放中 */
.card.playing { background: rgba(255, 107, 74, .1); }
.card.playing strong { color: var(--accent); }

.card.playing .thumb::after {
  content: "▶";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 26px;
  color: #fff;
  background: rgba(0, 0, 0, .45);
  text-shadow: 0 2px 10px rgba(0,0,0,.6);
}

.empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--ink-3);
  padding: 54px 0;
  font-size: 13px;
}

/* ============================================================
   分页
   ============================================================ */
.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 34px 0 10px;
  font-size: 13px;
  color: var(--ink-3);
}

/* ============================================================
   详情页
   ============================================================ */
.detail {
  display: flex;
  gap: 32px;
  align-items: flex-end;
  padding: 22px 0 34px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
}

.detail-cover {
  width: 176px;
  height: 176px;
  flex: none;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: 0 16px 40px rgba(0,0,0,.5);
}

.detail-cover img { width: 100%; height: 100%; object-fit: cover; }

.detail-info { min-width: 0; flex: 1; }

.detail-info h2 {
  font-size: clamp(22px, 3vw, 34px);
  margin: 12px 0 10px;
  line-height: 1.25;
  letter-spacing: -.5px;
}

.detail-desc {
  color: var(--ink-2);
  font-size: 13px;
  white-space: pre-wrap;
  margin: 0 0 20px;
  max-height: 90px;
  overflow-y: auto;
}

.detail-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.detail-actions select {
  background: var(--bg-card);
  border: 1px solid var(--line);
  color: var(--ink-2);
  border-radius: 8px;
  padding: 7px 12px;
  font: inherit;
  font-size: 13px;
  outline: 0;
}

/* ============================================================
   歌词
   ============================================================ */
.lyrics {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 8%;
  max-height: 60vh;
  overflow-y: auto;
  scroll-behavior: smooth;
  text-align: center;
  line-height: 2.4;
  color: var(--ink-3);
  font-size: 15px;
}

.lyrics .line {
  margin: 0;
  padding: 3px 0;
  transition: color .25s, transform .25s;
}

.lyrics .line .t {
  display: none;
}

.lyrics .line.active {
  color: var(--accent);
  font-weight: 600;
  transform: scale(1.05);
}

.lyrics .plain { margin: 0; padding: 2px 0; }

/* ============================================================
   底部播放栏
   ============================================================ */
.player {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--player-h);
  background: rgba(18, 20, 25, .94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
  z-index: 50;
}

.player-progress {
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 3px;
}

.player-progress input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 3px;
  background: transparent;
  margin: 0;
  display: block;
  cursor: pointer;
}

.player-progress input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  transition: opacity .15s;
  margin-top: -4px;
}

.player-progress:hover input[type=range]::-webkit-slider-thumb { opacity: 1; }

.player-progress input[type=range]::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
}

.player-progress input[type=range]::-webkit-slider-runnable-track {
  height: 3px;
  background: linear-gradient(to right, var(--accent) var(--pct, 0%), #333944 var(--pct, 0%));
  border-radius: 2px;
}

.player-progress input[type=range]::-moz-range-track {
  height: 3px;
  background: #333944;
  border-radius: 2px;
}

.player-inner {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  padding: 0 22px;
  max-width: 1500px;
  margin: 0 auto;
}

/* 当前曲目 */
.now {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.now img {
  width: 50px;
  height: 50px;
  border-radius: 9px;
  object-fit: cover;
  background: var(--bg-card);
  flex: none;
}

.now-text { min-width: 0; }

.now strong {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.now small {
  display: block;
  font-size: 11.5px;
  color: var(--ink-3);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 控制键 */
.controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ctl {
  border: 0;
  background: transparent;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 15px;
  color: var(--ink-2);
  display: grid;
  place-items: center;
  transition: color .15s, background .15s;
}

.ctl:hover { color: var(--ink); background: var(--bg-hover); }

.ctl-play {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 15px;
  box-shadow: 0 4px 16px rgba(255, 107, 74, .3);
}

.ctl-play:hover {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #fff;
  transform: scale(1.04);
}

/* 时间 */
.times {
  display: flex;
  align-items: center;
  gap: 5px;
  justify-content: flex-end;
  font-size: 11.5px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.times .sep { opacity: .45; }

/* 音量 */
.volume {
  display: none;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--ink-3);
}

.volume input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  width: 82px;
  height: 3px;
  background: #333944;
  border-radius: 2px;
  outline: 0;
  cursor: pointer;
}

.volume input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--ink-2);
  transition: background .15s;
}

.volume input[type=range]:hover::-webkit-slider-thumb { background: var(--accent); }

.volume input[type=range]::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 50%;
  background: var(--ink-2);
}

/* 让音量显示在足够宽的屏幕上 */
@media (min-width: 1000px) {
  .player-inner { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .volume { display: flex; }
  .times { order: 3; }
}

/* ============================================================
   Toast
   ============================================================ */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--player-h) + 22px);
  transform: translate(-50%, 14px);
  background: rgba(32, 35, 42, .97);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 11px 20px;
  border-radius: 10px;
  font-size: 13px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, .5);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s, transform .22s;
  z-index: 100;
  max-width: 82vw;
  text-align: center;
}

.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ============================================================
   页脚
   ============================================================ */
.foot {
  text-align: center;
  color: var(--ink-3);
  font-size: 11.5px;
  margin-top: 46px;
  line-height: 1.9;
}

/* ============================================================
   工具类
   ============================================================ */
.only-mobile { display: none; }

/* ============================================================
   响应式
   ============================================================ */

/* 平板 */
@media (max-width: 1080px) {
  .hero-art .disc { width: 172px; height: 172px; }
  .disc-label { width: 60px; height: 60px; }
}

/* 手机：侧栏抽屉化 */
@media (max-width: 820px) {
  :root { --player-h: 76px; }

  body { grid-template-columns: 1fr; }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 250px;
    height: 100vh;
    z-index: 200;
    transform: translateX(-100%);
    transition: transform .26s cubic-bezier(.4, 0, .2, 1);
    box-shadow: 20px 0 50px rgba(0, 0, 0, .5);
  }

  body.nav-open .sidebar { transform: translateX(0); }

  body.nav-open::after {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    z-index: 150;
    backdrop-filter: blur(2px);
  }

  .only-mobile { display: grid; place-items: center; }

  .main { padding: 0 18px 40px; }

  .hero {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 26px;
    padding: 30px 0 38px;
  }

  .hero-art { align-self: center; }
  .hero-art .disc { width: 140px; height: 140px; }
  .disc-label { width: 50px; height: 50px; }
  .disc-label strong { font-size: 10px; }
  .disc-label small { font-size: 5.5px; }

  .hero h1 { font-size: 33px; }

  .grid { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 13px; }
  .card { padding: 9px; border-radius: 12px; }
  .card strong { font-size: 12.5px; }

  .detail { flex-direction: column; align-items: center; text-align: center; gap: 20px; }
  .detail-cover { width: 140px; height: 140px; }
  .detail-actions { justify-content: center; }

  .lyrics { padding: 22px 6%; font-size: 14px; max-height: 52vh; }

  /* 播放栏 */
  .player-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 0 14px;
  }

  .times { display: none; }
  .volume { display: none; }

  .now img { width: 44px; height: 44px; }

  .ctl { width: 36px; height: 36px; font-size: 14px; }
  .ctl-play { width: 40px; height: 40px; }

  .toast { font-size: 12.5px; padding: 10px 16px; }
}

/* 超小屏 */
@media (max-width: 380px) {
  .hero h1 { font-size: 28px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .controls .ctl:not(.ctl-play) { display: none; }
}

/* 减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .lyrics { scroll-behavior: auto; }
}
/* ============================================================
   移动端专项 2026-10-20
   追加块，写在本文件末尾，优先级高于上方所有断点
   出问题的话，整块删掉即回到旧样式
   ============================================================ */

/* 1. 安全区：刘海屏与手势条，播放条不能被压住 */
:root {
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}
.player {
  height: calc(var(--player-h) + var(--safe-b));
  padding-bottom: var(--safe-b);
}
body {
  padding-bottom: calc(var(--player-h) + var(--safe-b));
}

/* 2. 移动端全局手势行为 */
html, body {
  overscroll-behavior-y: none;
  -webkit-text-size-adjust: 100%;
}
a, button, .ctl, .card, .chip {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

@media (max-width: 820px) {

  /* 3. 进度条命中区：3px 拉到 22px，视觉仍是细线，手指能按住 */
  .player-progress {
    top: 0;
    height: 22px;
    margin-top: -11px;
    display: flex;
    align-items: center;
    touch-action: none;
  }
  .player-progress input[type=range] {
    height: 22px;
    background: transparent;
  }
  .player-progress input[type=range]::-webkit-slider-runnable-track {
    height: 5px;
    border-radius: 3px;
    background: linear-gradient(to right, var(--accent) var(--pct, 0%), #333944 var(--pct, 0%));
  }
  .player-progress input[type=range]::-webkit-slider-thumb {
    opacity: 1;
    width: 14px;
    height: 14px;
    margin-top: -4.5px;
    box-shadow: 0 0 0 6px rgba(0, 0, 0, .18);
  }
  .player-progress input[type=range]::-moz-range-track {
    height: 5px;
    border-radius: 3px;
  }
  .player-progress input[type=range]::-moz-range-thumb {
    width: 14px;
    height: 14px;
  }

  /* 4. 主区底部留白：否则最后一张卡片会被播放条压住 */
  .main {
    padding-bottom: calc(var(--player-h) + var(--safe-b) + 20px);
  }

  /* 5. 抽屉：宽度跟屏宽走，高度用 dvh 应对动态地址栏 */
  .sidebar {
    width: min(78vw, 288px);
    height: 100dvh;
    padding-top: var(--safe-t);
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  /* 6. 触控热区：按钮不小于 42px */
  .ctl {
    width: 42px;
    height: 42px;
  }
  .ctl-play {
    width: 46px;
    height: 46px;
  }
  .nav-item, .sidebar a {
    min-height: 44px;
  }

  /* 7. 歌词区：dvh + 上下渐隐遮罩 */
  .lyrics {
    max-height: 46dvh;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 8%, #000 88%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 8%, #000 88%, transparent 100%);
  }

  /* 8. 卡片按压反馈，替代不存在的 hover */
  .card {
    transition: transform .12s ease;
  }
  .card:active {
    transform: scale(.97);
  }
}

/* 9. 小屏：要砍的是时间显示，不是上一首下一首 */
@media (max-width: 380px) {
  .controls .ctl:not(.ctl-play) {
    display: grid;
  }
  .times {
    display: none;
  }
  .player-inner {
    gap: 6px;
    padding: 0 10px;
  }
  .now img {
    width: 38px;
    height: 38px;
  }
  .ctl {
    width: 38px;
    height: 38px;
  }
  .ctl-play {
    width: 42px;
    height: 42px;
  }
  .hero h1 {
    font-size: 28px;
  }
}