/* =====================================================
   DJmix 电音库 — 全站样式
   主色蓝 #2f6bff（对齐 djaod-demo 冷灰蓝风）· 深色/浅色双主题 · 响应式
===================================================== */

/* ---------- 变量与主题 ---------- */
:root[data-theme="dark"] {
  --bg: #14161a;
  --bg2: #17181d;
  --card: #1d1f25;
  --card2: #2a2c33;
  --line: rgba(255, 255, 255, .07);
  --text: #d6d6d6;
  --muted: #8b8b8b;
  --brand: #2f6bff;
  --brand-soft: rgba(47, 107, 255, .16);
  --brand2: #1d4fe0;
  --accent: #7c4dff;
  --pink: #ff2d78;
  --gold: #ffb300;
  --shadow: 0 10px 30px rgba(0, 0, 0, .45);
}
:root[data-theme="light"] {
  --bg: #f4f5fa;
  --bg2: #ffffff;
  --card: #ffffff;
  --card2: #eef0f6;
  --line: rgba(20, 20, 40, .1);
  --text: #393939;
  --muted: #6a6a85;
  --brand: #1f5cff;
  --brand-soft: rgba(31, 92, 255, .12);
  --brand2: #0f43d6;
  --accent: #6c3bff;
  --pink: #ef2d75;
  --gold: #f5a300;
  --shadow: 0 10px 26px rgba(30, 30, 60, .12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; overflow-x: clip; }
body {
  font-family: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  padding-bottom: 110px;
  transition: background .3s, color .3s;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { display: block; max-width: 100%; }
::selection { background: var(--brand); color: #04121f; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: #3a3a52; border-radius: 6px; }
:root[data-theme="light"] ::-webkit-scrollbar-thumb { background: #c3c6d5; }

.wrap-none { list-style: none; }

/* ---------- 顶部导航 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 200;
  background: var(--bg2);
  background: color-mix(in srgb, var(--bg2) 88%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
h1.logo, .logo { margin: 0; }
.topbar-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 14px;
  height: 92px; display: flex; align-items: center; gap: 10px;
}
.logo { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.logo-img { height: 68px; width: auto; }
.foot-col .logo-img { height: 56px; }
.main-nav { display: flex; gap: 4px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a {
  padding: 8px 11px; border-radius: 8px; font-size: 15px;
  color: var(--muted); white-space: nowrap; transition: .2s;
}
.main-nav a:hover { color: var(--text); background: var(--brand-soft); }
.main-nav a.on { color: var(--brand); font-weight: 700; }
.topbar-right { display: flex; align-items: center; gap: 6px; flex-shrink: 1; min-width: 0; }
/* 宽度紧张时优先隐藏"Hi, 用户名"，保导航完整 */
@media (max-width: 1500px) {
  .tb-user { display: none; }
  .search-box input { width: 140px; }
}
.search-box {
  display: flex; align-items: center; background: var(--card2);
  border: 1px solid var(--line); border-radius: 20px; overflow: hidden; transition: .2s;
}
.search-box:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.search-box input {
  border: none; outline: none; background: transparent; color: var(--text);
  padding: 8px 4px 8px 14px; width: 120px; font-size: 13px;
}
.search-box button { padding: 8px 10px 8px 4px; font-size: 15px; opacity: .7; }
.tb-icon {
  position: relative; display: flex; align-items: center; gap: 3px;
  font-size: 18px; padding: 8px 7px; border-radius: 8px; transition: .2s;
}
.tb-icon:hover { background: var(--brand-soft); transform: translateY(-1px); }
.tb-label { font-size: 12px; font-weight: 700; color: var(--gold); font-style: normal; }
.badge[hidden] { display: none; }
.badge {
  position: absolute; top: 1px; right: 0; font-style: normal;
  background: var(--pink); color: #fff; font-size: 10px; font-weight: 700;
  min-width: 16px; height: 16px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
}
.btn-login {
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: #ffffff; font-weight: 700; font-size: 14px;
  padding: 9px 14px; border-radius: 20px; transition: .2s; white-space: nowrap;
}
.btn-login:hover { filter: brightness(1.12); box-shadow: 0 4px 14px var(--brand-soft); }

/* ---------- 轮播 Banner ---------- */
.banner { position: relative; height: 340px; overflow: hidden; background: var(--bg2); }
.banner-track { display: flex; height: 100%; transition: transform .55s cubic-bezier(.22, .9, .35, 1); }
.slide {
  min-width: 100%; height: 100%; position: relative;
  display: flex; align-items: center; justify-content: center;
}
.slide::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 40%, transparent 40%, rgba(0, 0, 0, .35));
}
.slide-inner { position: relative; z-index: 2; text-align: center; color: #fff; padding: 0 30px; }
.slide-tag {
  display: inline-block; font-size: 12px; letter-spacing: 3px; font-weight: 700;
  border: 1px solid rgba(255, 255, 255, .6); padding: 5px 14px; border-radius: 20px;
  margin-bottom: 16px; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.slide-inner h3 { font-size: clamp(24px, 4vw, 44px); letter-spacing: 2px; text-shadow: 0 4px 24px rgba(0, 0, 0, .4); }
.slide-inner p { margin-top: 12px; font-size: clamp(13px, 1.6vw, 17px); opacity: .9; }
.slide-btn {
  margin-top: 20px; display: inline-block; background: #fff; color: #111;
  font-weight: 700; font-size: 14px; padding: 10px 26px; border-radius: 24px; transition: .25s;
}
.slide-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 0, 0, .35); }
.banner-dots {
  position: absolute; bottom: 16px; left: 0; right: 0; z-index: 5;
  display: flex; justify-content: center; gap: 9px;
}
.banner-dots i {
  width: 22px; height: 4px; border-radius: 3px; background: rgba(255, 255, 255, .45);
  cursor: pointer; transition: .3s;
}
.banner-dots i.on { background: #fff; width: 34px; }
.banner-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(0, 0, 0, .3); color: #fff; font-size: 26px; line-height: 1;
  display: flex; align-items: center; justify-content: center; transition: .2s;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.banner-arrow:hover { background: var(--brand); }
.banner-arrow.prev { left: 16px; }
.banner-arrow.next { right: 16px; }

/* ---------- 页面主体 ---------- */
.page { max-width: 1280px; margin: 0 auto; padding: 26px 20px 10px; }
section { margin-bottom: 46px; scroll-margin-top: 80px; }
.alt { background: var(--bg2); margin-left: -20px; margin-right: -20px; padding: 30px 20px; border-radius: 18px; }

/* ---------- 统计入口 ---------- */
.stats {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px;
}
.stat-item {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 10px 14px; text-align: center; transition: .22s;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.stat-item:hover { transform: translateY(-4px); border-color: var(--brand); box-shadow: var(--shadow); }
.stat-ico {
  width: 46px; height: 46px; border-radius: 12px; font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--c1), var(--c2));
}
.stat-item b { font-size: 19px; }
.stat-item span:last-child { font-size: 12px; color: var(--muted); }

/* ---------- 区块标题 ---------- */
.sec-head { margin-bottom: 18px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.sec-head h1, .sec-head h2 {
  font-size: 21px; display: flex; align-items: center; gap: 10px;
  padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.sec-bar { width: 5px; height: 20px; border-radius: 3px; background: linear-gradient(var(--brand), var(--accent)); }
.sec-more { margin-left: auto; font-size: 13px; color: var(--muted); font-weight: 400; cursor: pointer; }
.sec-more:hover { color: var(--brand); }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.tabs.sub { margin-top: -6px; }
.tab {
  padding: 7px 16px; border-radius: 18px; font-size: 13px;
  color: var(--muted); background: var(--card2); transition: .2s;
}
.tab:hover { color: var(--text); }
.tab.on { background: var(--brand); color: #ffffff; font-weight: 700; }

/* ---------- 专辑卡片 ---------- */
.album-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.album-card { cursor: pointer; }
.album-cover {
  aspect-ratio: 1; border-radius: 12px; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  transition: .25s;
}
.album-card:hover .album-cover { transform: translateY(-4px); box-shadow: var(--shadow); }
.album-cover::before {
  content: "💿"; font-size: 44px; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .3));
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
}
.album-tag {
  position: absolute; top: 8px; left: 8px; font-size: 11px; font-weight: 700;
  background: rgba(0, 0, 0, .45); color: #fff; padding: 3px 8px; border-radius: 10px;
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.album-title {
  margin-top: 9px; font-size: 13px; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.album-title em { font-style: normal; color: var(--brand); font-size: 11px; margin-left: 5px; }

/* ---------- DJ 制作人 ---------- */
.dj-row {
  display: grid; grid-auto-flow: column; grid-auto-columns: 128px;
  gap: 14px; overflow-x: auto; padding: 6px 2px 14px;
}
.dj-card { text-align: center; }
.dj-avatar {
  width: 84px; height: 84px; margin: 0 auto; border-radius: 50%;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 800; color: #fff;
  border: 3px solid var(--card); box-shadow: 0 0 0 2px var(--c1);
  transition: .25s;
}
.dj-card:hover .dj-avatar { transform: scale(1.06); box-shadow: 0 0 0 2px var(--c1), 0 0 22px var(--c1); }
.dj-name { margin-top: 9px; font-size: 13px; font-weight: 600; }
.dj-role { font-size: 11px; color: var(--muted); margin-top: 2px; }
.dj-follow {
  margin-top: 7px; font-size: 12px; padding: 4px 14px; border-radius: 14px;
  border: 1px solid var(--brand); color: var(--brand); transition: .2s;
}
.dj-follow:hover { background: var(--brand); color: #ffffff; }
.dj-follow.done { border-color: var(--line); color: var(--muted); cursor: default; }

/* ---------- 歌曲卡片（特别推荐） ---------- */
.song-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 14px; }
.song-card { cursor: pointer; }
.song-cover {
  aspect-ratio: 1; border-radius: 12px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  display: flex; align-items: center; justify-content: center; font-size: 40px;
  transition: .25s;
}
.song-card:hover .song-cover { transform: translateY(-4px); box-shadow: var(--shadow); }
.song-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(8, 10, 18, .35); opacity: 0; transition: .25s; font-size: 15px;
}
.song-play span {
  width: 42px; height: 42px; border-radius: 50%; background: var(--brand);
  color: #ffffff; display: flex; align-items: center; justify-content: center;
  transform: scale(.7); transition: .25s; box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
}
.song-card:hover .song-play { opacity: 1; }
.song-card:hover .song-play span { transform: scale(1); }
.song-title {
  margin-top: 8px; font-size: 13px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.song-by { font-size: 11px; color: var(--muted); margin-top: 2px; }
.song-price { font-size: 12px; color: var(--gold); margin-top: 3px; font-weight: 700; }
.song-price.free { color: var(--brand); }

/* ---------- 歌曲列表（最新更新） ---------- */
.song-list { display: flex; flex-direction: column; gap: 10px; }
.song-row {
  display: grid; align-items: center; gap: 12px;
  grid-template-columns: 56px 72px minmax(0, 1fr) 120px 66px 56px 62px 90px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 10px 14px; cursor: pointer; transition: .2s;
}
.song-row:hover { border-color: var(--brand); transform: translateX(4px); }
/* 音乐库行：双列紧凑变体（封面/标题/风格/类型/数据；BPM/KEY 走筛选区） */
.lib-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; align-items: start; }
.lib-cols .song-row.lib-row { grid-template-columns: 46px minmax(0, 1fr) auto auto auto; gap: 8px; padding: 8px 12px; }
.lib-cols .lib-row .s-cover { width: 46px; height: 46px; font-size: 18px; }
.lib-cols .lib-row .s-bpm, .lib-cols .lib-row .s-key { display: none; }
.lib-cols .s-title, .lib-cols .s-by { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lib-cols .lib-row .s-date { display: none; }
.lib-cols .lib-row.pl-row .s-date { display: block; font-size: 11px; }
.lib-cols .song-row.lib-row.pl-row { grid-template-columns: 46px 40px minmax(0, 1fr) auto auto; gap: 10px; } /* 序号独立窄列, 标题回 1fr */
.lib-cols .song-row.lib-row.pl-row .s-date b { display: block; font-size: 13px; color: var(--text); } /* 歌单页保留曲目序号 */
.row-act { display: inline-flex; gap: 4px; margin-right: 6px; vertical-align: middle; }
.row-like, .row-dl {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 8px; font-size: 13px;
  background: var(--card2); border: 1px solid var(--line); color: var(--muted);
  text-decoration: none; cursor: pointer; transition: .15s;
}
.row-like:hover, .row-dl:hover { color: var(--brand); border-color: var(--brand); }
.row-like.liked { color: var(--pink); border-color: var(--pink); }
.song-row.has-act { grid-template-columns: 56px 72px minmax(0, 1fr) 120px 66px 56px 62px 130px; }
@media (max-width: 980px) {
  .lib-cols { grid-template-columns: 1fr; }
}
/* 个人中心行：4 列自适应（封面/信息/状态/操作） */
.song-row.u-row { grid-template-columns: 56px minmax(0, 1fr) auto auto; }
.song-row.playing { border-color: var(--brand); background: var(--brand-soft); }
.s-cover {
  width: 56px; height: 56px; border-radius: 9px; position: relative; flex-shrink: 0;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.s-cover i {
  position: absolute; inset: 0; display: none; align-items: center; justify-content: center;
  background: rgba(8, 10, 18, .4); font-size: 20px; font-style: normal; border-radius: 9px;
}
.song-row:hover .s-cover i, .song-row.playing .s-cover i { display: flex; }
.s-date { font-size: 12px; color: var(--muted); }
.s-main { min-width: 0; }
.s-title { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-by { font-size: 12px; color: var(--muted); margin-top: 3px; }
.s-by b { color: var(--brand); font-weight: 600; }
.chip {
  display: inline-block; font-size: 11px; padding: 2px 9px; border-radius: 10px;
  border: 1px solid var(--line); color: var(--muted); white-space: nowrap;
}
.chip-brand { border-color: var(--brand); color: var(--brand); }
.s-bpm, .s-key { font-size: 12px; color: var(--muted); text-align: center; }
.s-hq { text-align: center; }
.s-hq b { font-size: 11px; color: var(--gold); border: 1px solid var(--gold); border-radius: 4px; padding: 1px 5px; }
.s-price { font-size: 14px; font-weight: 700; color: var(--gold); text-align: right; white-space: nowrap; }
.s-price.free { color: var(--brand); }
.s-price.vip { color: var(--accent); }

/* 迷你均衡器动画（正在播放行） */
.eq-mini { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; margin-left: 8px; }
.eq-mini i { width: 3px; background: var(--brand); border-radius: 2px; animation: eqjump .8s ease-in-out infinite; }
.eq-mini i:nth-child(2) { animation-delay: .2s; }
.eq-mini i:nth-child(3) { animation-delay: .4s; }
.eq-mini i:nth-child(4) { animation-delay: .6s; }
@keyframes eqjump { 0%, 100% { height: 4px; } 50% { height: 14px; } }

.load-more { text-align: center; margin-top: 20px; }
.empty-tip { color: var(--muted); text-align: center; padding: 36px 0; font-size: 14px; }
.btn-ghost, .btn-brand {
  padding: 10px 30px; border-radius: 22px; font-size: 14px; transition: .22s;
}
.btn-ghost { border: 1px solid var(--line); color: var(--muted); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
/* 彩色渐变头部上的幽灵按钮：白描边白字，保证可读 */
.page-hero .btn-ghost { border-color: rgba(255, 255, 255, .65); color: #fff; background: rgba(255, 255, 255, .14); text-decoration: none; }
.page-hero .btn-ghost:hover { background: #fff; color: #111; border-color: #fff; }
.btn-brand { background: linear-gradient(135deg, var(--brand), var(--brand2)); color: #ffffff; font-weight: 700; }
.btn-brand:hover { filter: brightness(1.1); box-shadow: 0 6px 18px var(--brand-soft); }

/* ---------- 商品 ---------- */
.goods-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.goods-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; cursor: pointer; transition: .22s;
}
.goods-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand); }
.g-cover {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  font-size: 58px; background: linear-gradient(135deg, var(--c1), var(--c2));
}
.g-body { padding: 12px 13px 14px; }
.g-title { font-size: 13px; line-height: 1.5; height: 40px; overflow: hidden; }
.g-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 9px; }
.g-price { color: var(--pink); font-weight: 700; font-size: 15px; }
.g-btn { font-size: 12px; color: var(--brand); border: 1px solid var(--brand); padding: 4px 12px; border-radius: 14px; }
.g-btn:hover { background: var(--brand); color: #ffffff; }

/* ---------- 视频 ---------- */
.video-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.video-card { cursor: pointer; }
.v-cover {
  aspect-ratio: 16/9; border-radius: 12px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  display: flex; align-items: center; justify-content: center; font-size: 40px;
  transition: .22s;
}
.v-cover img { width: 100%; height: 100%; object-fit: cover; }
.video-card:hover .v-cover { transform: translateY(-4px); box-shadow: var(--shadow); }
.v-dur {
  position: absolute; right: 8px; bottom: 8px; font-size: 11px;
  background: rgba(0, 0, 0, .6); color: #fff; padding: 2px 8px; border-radius: 6px;
}
.v-tag {
  position: absolute; left: 8px; top: 8px; font-size: 11px; font-weight: 700;
  background: var(--pink); color: #fff; padding: 2px 8px; border-radius: 6px;
}
.v-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(8, 10, 18, .3); opacity: 0; transition: .22s; font-size: 13px;
}
.v-play span {
  width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #13131f;
  display: flex; align-items: center; justify-content: center; transform: scale(.75); transition: .22s;
}
.video-card:hover .v-play { opacity: 1; }
.video-card:hover .v-play span { transform: scale(1); }
.v-title { margin-top: 9px; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-meta { font-size: 11px; color: var(--muted); margin-top: 3px; display: flex; gap: 10px; }

/* ---------- 歌单 ---------- */
.playlist-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.playlist-card { display: block; color: inherit; text-decoration: none; }
.playlist-card:hover .pl-cover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pl-cover {
  aspect-ratio: 1/1; border-radius: 12px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  display: flex; align-items: center; justify-content: center; font-size: 46px;
  transition: .22s;
}
.pl-cover img { width: 100%; height: 100%; object-fit: cover; }
.pl-count {
  position: absolute; left: 8px; bottom: 8px; font-size: 11px;
  background: rgba(0, 0, 0, .6); color: #fff; padding: 2px 8px; border-radius: 6px;
}
.pl-play {
  position: absolute; right: 8px; bottom: 8px; font-size: 11px;
  background: var(--brand); color: #fff; padding: 2px 8px; border-radius: 6px;
}
.pl-title { margin-top: 9px; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-by { margin-top: 3px; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-add select { display: none; }
#plAddMenu {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 60;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  min-width: 190px; max-height: 260px; overflow: auto; padding: 6px; box-shadow: var(--shadow);
}
#plAddMenu button {
  display: block; width: 100%; text-align: left; padding: 8px 10px;
  background: none; border: 0; color: var(--text); font-size: 13px;
  border-radius: 6px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#plAddMenu button:hover:not(:disabled) { background: var(--brand-soft); color: var(--brand); }
#plAddMenu button:disabled { color: var(--muted); cursor: default; }

/* ---------- 排行榜 ---------- */
.rank-layout { display: grid; grid-template-columns: 330px 1fr; gap: 20px; }
.rank-side { display: flex; flex-direction: column; gap: 14px; }
.mini-rank { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.mini-rank h4 { font-size: 14px; margin-bottom: 10px; display: flex; align-items: center; gap: 7px; }
.mini-rank h4::before { content: ""; width: 4px; height: 14px; border-radius: 2px; background: var(--brand); }
.mr-row {
  display: flex; align-items: center; gap: 10px; padding: 7px 6px;
  border-radius: 10px; cursor: pointer; transition: .18s;
}
.mr-row:hover { background: var(--card2); }
.mr-no {
  width: 22px; height: 22px; border-radius: 7px; font-size: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; color: var(--muted);
  background: var(--card2); flex-shrink: 0;
}
.mr-no.n1 { background: linear-gradient(135deg, #ffd700, #ff9f1a); color: #3d2800; }
.mr-no.n2 { background: linear-gradient(135deg, #cfd8e3, #9aa8b8); color: #2a3441; }
.mr-no.n3 { background: linear-gradient(135deg, #e0a370, #b8722f); color: #38200a; }
.mr-cover {
  width: 40px; height: 40px; border-radius: 8px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.mr-info { min-width: 0; flex: 1; }
.mr-title { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mr-by { font-size: 11px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mr-num { font-size: 12px; color: var(--muted); white-space: nowrap; }
.mr-num b { color: var(--brand); }
.rank-main { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.rank-list { display: flex; flex-direction: column; }
.rl-row {
  display: grid; grid-template-columns: 30px 52px minmax(0, 1fr) 120px 90px 80px;
  align-items: center; gap: 12px; padding: 10px 8px;
  border-bottom: 1px solid var(--line); cursor: pointer; transition: .18s;
}
.rl-row:last-child { border-bottom: none; }
.rl-row:hover { background: var(--card2); }
.rl-no { font-size: 17px; font-weight: 800; color: var(--muted); text-align: center; }
.rl-no.n1 { color: #ffd700; }
.rl-no.n2 { color: #c0ccd9; }
.rl-no.n3 { color: #e0a370; }
.rl-cover {
  width: 52px; height: 52px; border-radius: 9px;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.rl-title { font-size: 14px; font-weight: 600; }
.rl-by { font-size: 12px; color: var(--muted); margin-top: 2px; }
.rl-type { text-align: center; }
.rl-plays { font-size: 12px; color: var(--muted); text-align: center; }
.rl-plays b { color: var(--brand); }
.rl-go { text-align: center; font-size: 11px; color: var(--brand); border: 1px solid var(--brand); border-radius: 14px; padding: 4px 0; }
.rl-row:hover .rl-go { background: var(--brand); color: #ffffff; }

/* ---------- 页脚 ---------- */
footer { background: var(--bg2); border-top: 1px solid var(--line); margin-top: 30px; }
.foot-inner {
  max-width: 1280px; margin: 0 auto; padding: 40px 20px 26px;
  display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr 1fr; gap: 28px;
}
.foot-col.about p { font-size: 13px; color: var(--muted); line-height: 1.8; margin-top: 14px; }
.foot-col h4 { font-size: 14px; margin-bottom: 14px; }
.foot-col a { display: block; font-size: 13px; color: var(--muted); padding: 5px 0; transition: .2s; }
.foot-col a:hover { color: var(--brand); transform: translateX(3px); }
.foot-col.qr { text-align: center; }
.qr-box {
  width: 110px; height: 110px; margin: 0 auto 10px; border-radius: 12px;
  background: var(--card2); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; font-size: 44px;
  overflow: hidden;
}
.qr-box img { width: 100%; height: 100%; object-fit: cover; }
.foot-col.qr span { font-size: 12px; color: var(--muted); }
.foot-bottom { border-top: 1px solid var(--line); padding: 16px 20px; text-align: center; }
.foot-bottom p { font-size: 12px; color: var(--muted); margin: 3px 0; }
.icp { letter-spacing: 1px; }

/* ---------- 全局播放器 ---------- */
.player {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 300;
  background: var(--bg2);
  background: color-mix(in srgb, var(--bg2) 92%, transparent);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: auto auto 1fr 300px 130px 100px;
  align-items: center; gap: 16px; padding: 0 20px; height: 88px;
}
.p-cover {
  width: 56px; height: 56px; border-radius: 10px;
  background: linear-gradient(135deg, var(--c1, #2a2a3d), var(--c2, #3a3a52));
  display: flex; align-items: center; justify-content: center; font-size: 20px;
  background-size: 200% 200%; position: relative; color: #fff;
}
.p-cover.spin::after {
  content: ""; position: absolute; inset: 18px; border-radius: 50%;
  border: 2px dotted rgba(255, 255, 255, .85); animation: spin 3s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.p-controls { display: flex; align-items: center; gap: 6px; }
.p-controls button { font-size: 19px; padding: 8px; border-radius: 50%; transition: .2s; }
.p-controls button:hover { background: var(--brand-soft); }
.p-main {
  width: 44px; height: 44px; font-size: 17px !important;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: #ffffff; box-shadow: 0 5px 16px var(--brand-soft);
}
.p-main:hover { filter: brightness(1.12); }
.p-meta { min-width: 0; }
.p-title-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
#pTitle { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 320px; }
.p-artist { font-size: 12px; color: var(--muted); white-space: nowrap; }
.p-progress { display: flex; align-items: center; gap: 10px; }
.p-time { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.p-bar { flex: 1; height: 5px; border-radius: 3px; background: var(--card2); overflow: hidden; }
.p-fill {
  height: 100%; width: 0; border-radius: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transition: width .25s linear;
}
#viz { width: 300px; height: 52px; }
.p-vol { display: flex; align-items: center; gap: 8px; }
.p-vol input { width: 100px; accent-color: var(--brand); }
.p-download {
  font-size: 13px; border: 1px solid var(--line); color: var(--muted);
  padding: 8px 0; border-radius: 18px; text-align: center; transition: .2s; white-space: nowrap;
}
.p-download:hover { border-color: var(--brand); color: var(--brand); }

/* ---------- 播放模式按钮 / 播放队列面板 ---------- */
.p-mode { font-size: 15px; padding: 7px 6px; opacity: .88; }
.p-mode:hover { background: var(--brand-soft); }
.p-mode.on { color: var(--brand); opacity: 1; }
.q-panel {
  position: absolute; bottom: 100%; left: 0; right: 0;
  background: var(--bg2); border: 1px solid var(--line); border-bottom: none;
  border-radius: 14px 14px 0 0; max-height: min(46vh, 420px);
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, .45);
}
.q-panel[hidden] { display: none; }
.q-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.q-head b { font-size: 14px; }
.q-head em { font-style: normal; color: var(--brand); margin-left: 5px; }
.q-act { font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 12px; padding: 4px 11px; margin-left: 8px; }
.q-act:hover { color: var(--brand); border-color: var(--brand); }
.q-list { overflow-y: auto; padding: 6px 8px; -webkit-overflow-scrolling: touch; }
.q-item { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; cursor: pointer; }
.q-item:hover { background: var(--card2); }
.q-item:active { background: var(--brand-soft); }
.q-item.on { background: var(--brand-soft); }
.q-no { width: 24px; flex-shrink: 0; text-align: center; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.q-no .eq-mini { display: inline-flex; align-items: flex-end; gap: 2px; height: 13px; }
.q-no .eq-mini i { width: 2.5px; background: var(--brand); border-radius: 1px; animation: eqjump .8s ease-in-out infinite; }
.q-cov {
  width: 34px; height: 34px; border-radius: 8px; flex-shrink: 0; overflow: hidden;
  display: flex; align-items: center; justify-content: center; font-size: 16px;
  background: linear-gradient(135deg, var(--c1, #2a2a3d), var(--c2, #3a3a52));
}
.q-cov img { width: 100%; height: 100%; object-fit: cover; }
.q-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.q-meta b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-meta i { font-style: normal; font-size: 11px; color: var(--muted); margin-top: 1px; }
.q-dur { font-size: 11px; color: var(--muted); flex-shrink: 0; font-variant-numeric: tabular-nums; }
.q-del { flex-shrink: 0; font-size: 12px; color: var(--muted); padding: 5px 7px; border-radius: 8px; opacity: .6; }
.q-del:hover { color: var(--pink); opacity: 1; }
.q-empty { padding: 28px 0; text-align: center; font-size: 13px; color: var(--muted); }

/* ---------- 弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(5, 6, 12, .66); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal-mask[hidden] { display: none; }
.modal {
  position: relative; width: min(430px, 94vw);
  background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; padding: 34px 30px 28px; box-shadow: var(--shadow);
  animation: pop .28s cubic-bezier(.2, 1.2, .4, 1);
}
@keyframes pop { from { transform: scale(.9) translateY(14px); opacity: 0; } }
.modal-x { position: absolute; top: 14px; right: 16px; font-size: 17px; color: var(--muted); }
.modal-x:hover { color: var(--pink); }
.modal h3 { font-size: 20px; margin-bottom: 6px; }
.modal-sub { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.modal form { display: flex; flex-direction: column; gap: 12px; }
.modal input[type="text"], .modal input[type="password"], .modal input[type="email"] {
  background: var(--card2); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; color: var(--text); font-size: 14px; outline: none; transition: .2s;
}
.modal input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.modal .btn-brand { margin-top: 4px; }
.modal-tip { margin-top: 16px; font-size: 12px; color: var(--muted); text-align: center; }
.modal-tip a { color: var(--brand); }
.vip-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.vip-card {
  border: 1px solid var(--line); border-radius: 14px; padding: 18px 8px 14px;
  text-align: center; cursor: pointer; transition: .2s; background: var(--card2);
}
.vip-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.vip-card.hot { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255, 179, 0, .15); position: relative; }
.vip-card .vc-hot {
  position: absolute; top: -9px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, #ffd700, #ff9f1a); color: #3d2800;
  font-size: 10px; font-weight: 800; padding: 2px 9px; border-radius: 9px;
}
.vip-card b { display: block; font-size: 22px; color: var(--gold); margin: 7px 0 3px; }
.vip-card small { font-size: 11px; }
.vip-card i { font-style: normal; display: block; font-size: 13px; margin-top: 6px; color: var(--muted); text-decoration: line-through; }
.goods-modal { width: min(640px, 94vw); display: flex; gap: 24px; padding: 30px; }
.gm-cover {
  width: 220px; height: 220px; border-radius: 16px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--c1, #333), var(--c2, #555));
  display: flex; align-items: center; justify-content: center; font-size: 84px;
}
.gm-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.gm-info h3 { font-size: 18px; line-height: 1.5; }
.gm-price { font-size: 24px; color: var(--pink); font-weight: 800; margin: 12px 0 8px; }
.gm-desc { font-size: 13px; color: var(--muted); line-height: 1.8; flex: 1; }
.gm-btns { display: flex; gap: 12px; margin-top: 14px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 112px; transform: translateX(-50%) translateY(16px);
  z-index: 600; background: var(--card); color: var(--text);
  border: 1px solid var(--brand); border-radius: 12px;
  padding: 11px 22px; font-size: 13px; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transition: .3s; max-width: 82vw; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 入场动画 ---------- */
.fade-up { animation: fadeUp .5s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } }

/* ---------- 响应式 ---------- */
@media (max-width: 1120px) {
  .rank-layout > * { min-width: 0; }
  .rl-row { grid-template-columns: 30px 52px minmax(0, 1fr) 90px; }
  .rl-row .rl-type, .rl-row .rl-go { display: none; }
  .rl-title, .rl-by { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .search-box input { width: 110px; }
  .album-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .song-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .goods-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .song-row { grid-template-columns: 56px 1fr 100px 90px; }
  .s-date, .s-bpm, .s-key, .s-hq { display: none; }
  .rank-layout { grid-template-columns: 1fr; }
  .player { grid-template-columns: auto auto 1fr 300px; }
  #viz, .p-download { display: none; }
}
@media (max-width: 860px) {
  .main-nav a:nth-child(n+8) { display: none; }
  .playlist-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .album-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .song-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .goods-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-inner { grid-template-columns: 1fr 1fr; }
  .player { grid-template-columns: auto auto 1fr; height: 78px; }
  .p-vol { display: none; }
  .banner { height: 250px; }
}
@media (max-width: 620px) {
  h1.logo, .logo { margin: 0; }
.topbar-inner { gap: 10px; height: 62px; }
  .logo-img { height: 34px; }
  .main-nav { display: none; }
  .search-box { display: none; }
  .tb-icon .tb-label { display: none; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .album-grid, .song-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .goods-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .video-grid { grid-template-columns: 1fr; }
  .song-row { grid-template-columns: 48px 1fr 84px; padding: 8px 10px; }
  .song-row .chip { display: none; }
  .s-cover { width: 48px; height: 48px; }
  .rl-row { grid-template-columns: 24px 44px minmax(0, 1fr) 70px; }
  .rl-cover { width: 44px; height: 44px; }
  .rl-type, .rl-go { display: none; }
  .goods-modal { flex-direction: column; }
  .gm-cover { width: 100%; height: 170px; }
  .banner { height: 200px; }
  .banner-arrow { display: none; }
  .foot-inner { grid-template-columns: 1fr; }
  .vip-cards { grid-template-columns: 1fr; }
}

/* =====================================================
   移动端适配增强：抽屉导航 / iPhone 安全区 / 触控 / 防缩放
===================================================== */

/* ---------- 移动端抽屉 ---------- */
.m-drawer {
  position: fixed; top: 0; right: 0; width: 284px; max-width: 86vw; height: 100%;
  z-index: 480; background: var(--bg2); border-left: 1px solid var(--line);
  transform: translateX(110%); transition: transform .28s ease; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 16px 16px calc(30px + env(safe-area-inset-bottom, 0px));
}
.m-drawer.open { transform: none; box-shadow: -10px 0 40px rgba(0, 0, 0, .4); }
.m-mask {
  position: fixed; inset: 0; z-index: 470; background: rgba(5, 6, 12, .6);
  opacity: 0; visibility: hidden; transition: .25s;
}
.m-mask.show { opacity: 1; visibility: visible; }
.md-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.md-logo { height: 26px; width: auto; }
.md-close { font-size: 19px; color: var(--muted); padding: 8px 10px; }
.md-search { display: flex; margin-bottom: 4px; }
.md-group { font-size: 12px; color: var(--muted); margin: 16px 0 6px; padding-left: 4px; }
.m-drawer nav a {
  display: flex; align-items: center; gap: 10px; padding: 12px 10px;
  border-radius: 10px; font-size: 15px; color: var(--text);
}
.m-drawer nav a:active { background: var(--brand-soft); }
.md-user { margin-top: 18px; padding: 14px; background: var(--card); border-radius: 12px; font-size: 13px; display: flex; flex-direction: column; gap: 10px; }
.md-user b { color: var(--brand); }
.nav-toggle { display: none; font-size: 19px; }
body.no-scroll { overflow: hidden; }

/* ---------- iPhone 底部安全区 ---------- */
.player { padding-bottom: env(safe-area-inset-bottom, 0px); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  body { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
  /* 播放器移动端重构：紧凑单行自适应 */
  .player { height: auto; min-height: 70px; grid-template-columns: 44px auto 1fr; gap: 10px; padding: 8px 10px; }
  .p-cover { width: 44px; height: 44px; border-radius: 8px; font-size: 17px; }
  .p-cover.spin::after { inset: 14px; }
  .p-controls button { padding: 9px; font-size: 17px; }
  .p-controls .p-main { width: 40px; height: 40px; }
  .p-mode { padding: 7px 4px; font-size: 14px; }
  .p-title-row { margin-bottom: 5px; }
  #pTitle { font-size: 13px; max-width: calc(100vw - 285px); }
  .q-panel { max-height: 52vh; }
  .q-cov { width: 30px; height: 30px; }
  .p-artist { font-size: 11px; }
}

@media (max-width: 620px) {
  .hide-m { display: none !important; }
  .playlist-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* iOS 聚焦防自动放大：输入控件 16px */
  input, select, textarea { font-size: 16px !important; }
  /* 触控目标加大 */
  .btn-brand, .btn-ghost, .pc-btn, .g-btn, .dj-follow { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; }
  .tab, .earn-filter a, .mall-cats a { padding: 9px 14px; min-height: 38px; display: inline-flex; align-items: center; }
  .pd-qty button { width: 40px; height: 42px; }
  .pd-qty input { height: 42px; }
  .pd-actions .btn-brand, .pd-actions .pd-buy { flex: 1 1 100%; padding: 12px 0; }
  .detail-btns .btn-brand, .detail-btns .btn-ghost { flex: 1 1 45%; text-align: center; white-space: nowrap; font-size: 13px; padding-left: 6px; padding-right: 6px; }
  /* 手机端最新更新行：压缩为 封面+标题+价格 */
  /* 商品卡：价格与按钮不再互相挤压换行 */
  .g-foot { flex-wrap: wrap; row-gap: 5px; }
  .g-price { white-space: nowrap; }
  .g-btn { margin-left: auto; white-space: nowrap; padding: 4px 10px; }
  /* 播放条手机端精简：隐藏收藏/模式按钮与曲风chip，标题给足宽度 */
  #btnLike, #btnMode { display: none; }
  .p-title-row { gap: 8px; }
  .p-title-row .chip { display: none; }
  #pTitle { flex: 1 1 auto; min-width: 0; max-width: none; }
  .p-artist { flex-shrink: 0; max-width: 40vw; overflow: hidden; text-overflow: ellipsis; }
  h1.logo, .logo { margin: 0; }
.topbar-inner { height: 54px; }
  .logo-img { height: 28px; }
  .banner { height: 190px; }
  .slide-inner h3 { font-size: 20px; }
}

/* ---------- 触屏：无 hover 时始终显示播放角标 ---------- */
@media (hover: none) {
  .s-cover i { display: flex; }
  .song-play { opacity: 1; }
  .song-play span { transform: scale(1); }
  .v-play { opacity: 1; }
  .v-play span { transform: scale(1); }
  .song-row:hover { transform: none; }
}

/* ---------- 艺术家名与 DJ 头像链接 ---------- */
.s-by a { color: inherit; text-decoration: none; transition: color .15s; }
.s-by a:hover { color: var(--brand); }
a.dj-avatar { color: inherit; text-decoration: none; }

/* ---------- 首页最新更新两列布局 ---------- */
.latest-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; align-items: start; }
.latest-cols .song-list { min-width: 0; }
/* 两列半宽下的紧凑行：隐藏类型章/KEY 两列（类型在 BY 行已有），其余收缩，给标题留宽度 */
.latest-cols .song-row {
  grid-template-columns: 46px 50px 1fr 44px 48px 64px;
  gap: 8px; padding: 8px 12px;
}
.latest-cols .chip, .latest-cols .s-key { display: none; }
.latest-cols .s-cover { width: 46px; height: 46px; font-size: 18px; }
.latest-cols .s-date { font-size: 11px; }
.latest-cols .s-main { flex: 1; }
.latest-cols .s-by { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.latest-cols .s-price { font-size: 13px; }
@media (max-width: 980px) { .latest-cols { grid-template-columns: 1fr; } }

/* 手机端最新更新行：压缩为 封面+标题+价格（须置于 .latest-cols 定义之后以获得正确层叠顺序） */
@media (max-width: 620px) {
  .latest-cols .song-row { grid-template-columns: 46px minmax(0, 1fr) auto; }
  .latest-cols .s-date, .latest-cols .s-hq { display: none; }
  /* 专辑/分类页 has-act 行（8列模板同样存在层叠压制，须在此覆盖） */
  .song-row.has-act { grid-template-columns: 48px minmax(0, 1fr) auto; }
  /* 价格列竖排：收藏/下载一行、价格一行，给标题让出宽度 */
  .song-row.has-act .s-price { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
  .song-row.has-act .row-act { margin-right: 0; }
}

/* 手机端页脚：2 列网格 + 链接胶囊横排，避免全竖排拉长 */
@media (max-width: 620px) {
  .foot-inner { grid-template-columns: 1fr 1fr; gap: 18px 14px; padding: 30px 16px 20px; }
  .foot-col.about { grid-column: 1 / -1; }
  .foot-col.about p { margin-top: 8px; }
  .foot-col h4 { margin-bottom: 8px; }
  .foot-inner .foot-col:not(.about) a {
    display: inline-block; padding: 3px 11px; margin: 0 6px 7px 0;
    background: var(--card2); border: 1px solid var(--line); border-radius: 13px;
    font-size: 12px; line-height: 1.7;
  }
  .foot-inner .foot-col:not(.about) a:hover { transform: none; }
  .foot-col.qr { grid-column: 1 / -1; margin-top: 4px; }
}

/* 空占位与封面层级: img 盖住 💿 占位; BPM/KEY 空单元格隐藏但保留列宽对齐 */
.album-cover img { position: relative; z-index: 1; }
.song-row .s-bpm:empty, .song-row .s-key:empty { visibility: hidden; }

/* 手机端区块头内联描述独立换行 */
@media (max-width: 620px) {
  .sec-head h1, .sec-head h2 { flex-wrap: wrap; row-gap: 6px; }
  .sec-head h1 small, .sec-head h2 small { display: block; width: 100%; margin: 0 !important; }
}

/* ---- topbar hover dropdown groups ---- */
.nav-drop{position:relative;display:inline-flex}
.nav-drop-btn{display:inline-flex;align-items:center;gap:3px;background:none;border:0;cursor:pointer}
.nd-caret{font-style:normal;font-size:9px;color:var(--muted);transform:translateY(1px)}
.nav-drop-panel{position:absolute;top:calc(100% + 10px);right:0;min-width:200px;background:var(--card);border:1px solid var(--line);border-radius:12px;box-shadow:0 14px 34px rgba(0,0,0,.4);padding:6px;display:none;z-index:95}
.nav-drop-panel::before{content:"";position:absolute;top:-12px;left:0;right:0;height:12px}
.nav-drop:hover .nav-drop-panel,.nav-drop:focus-within .nav-drop-panel{display:block;animation:ndIn .16s ease}
.nav-drop-panel a{display:flex;align-items:center;gap:9px;padding:9px 12px;border-radius:8px;color:var(--text);font-size:13px;white-space:nowrap;text-decoration:none}
.nav-drop-panel a:hover{background:var(--card2);color:var(--brand)}
.nd-sep{height:1px;background:var(--line);margin:5px 8px}
.nd-logout{display:flex;align-items:center;gap:9px;width:100%;padding:9px 12px;border:0;background:none;border-radius:8px;color:var(--pink);font-size:13px;cursor:pointer;text-align:left}
.nd-logout:hover{background:var(--card2)}
@keyframes ndIn{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:none}}

/* ---- bottom player progress bar: draggable seek ---- */
.p-bar{cursor:pointer}
.p-bar:hover .p-fill{box-shadow:0 0 10px rgba(47,107,255,.9)}
.p-bar:hover::after{content:"";position:absolute;top:50%;width:12px;height:12px;border-radius:50%;background:var(--brand);box-shadow:0 0 0 3px rgba(47,107,255,.25);transform:translate(-50%,-50%);pointer-events:none}
.p-bar{position:relative}
