/* ============================================================
   拖拖音频 H5 — 视觉完全对齐小程序
   基准：小程序 750rpx 设计稿，375px 屏时 1rpx = 0.5px
   配色 / 圆角 / 玻璃质感 / 渐变全部取自 audio-miniprogram
   ============================================================ */

:root {
  /* ---- 底色（app.wxss page）---- */
  --bg: #0c0c11;
  --card: #16161f;
  --line: #23232e;
  --line-2: #1c1c24;

  /* ---- 文字 ---- */
  --text: #f5f5f7;
  --text-2: #b8b8c4;
  --text-3: #8a8a9a;
  --text-4: #6c6c7a;

  /* ---- 品牌 ---- */
  --brand: #8A5CFF;
  --brand-2: #FF5C8A;
  --brand-soft: #a06bff;
  --grad: linear-gradient(135deg, #8A5CFF, #FF5C8A);
  --grad-chip: linear-gradient(135deg, #FF5C8A, #B44AFF);
  --grad-go: linear-gradient(135deg, #3FA9FF, #8A5CFF);

  /* ---- 玻璃（搜索栏 / 公告 / 迷你播放器同一套）---- */
  --glass: linear-gradient(135deg, rgba(58, 42, 92, .70), rgba(92, 42, 88, .70));
  --glass-line: rgba(255, 255, 255, .16);

  /* ---- 功能色 ---- */
  --gold: #ffcf5e;
  --green: #4bd07a;
  --bpm: #a99bff;

  /* ---- 尺寸（移动端基准）---- */
  --pad: 12px;
  --cover: 34px;
  --fs-title: 13px;
  --fs-mod: 10.5px;
  --fs-sub: 8px;
  --icon-h: 59px;
  --icon-fs: 19px;
  --tabbar-h: 50px;
  --page-w: 100%;
}

@media (min-width: 640px) {
  :root {
    --pad: 20px;
    --cover: 52px;
    --fs-title: 16px;
    --fs-mod: 12.5px;
    --fs-sub: 10.5px;
    --icon-h: 100px;
    --icon-fs: 27px;
    --tabbar-h: 60px;
    --page-w: 780px;
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

/* 背景氛围光：深色底上一点品牌色弥散 */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(560px 320px at 12% -6%, rgba(138, 92, 255, .16), transparent 70%),
    radial-gradient(520px 300px at 92% 4%, rgba(255, 92, 138, .11), transparent 70%);
}

button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
input { font: inherit; }
a { color: inherit; text-decoration: none; }

.app {
  position: relative;
  z-index: 1;
  max-width: var(--page-w);
  margin: 0 auto;
  padding-bottom: calc(var(--tabbar-h) + 96px);
  min-height: 100vh;
}

/* ============================================================
   顶部：搜索栏 + 公告
   ============================================================ */
.topbar { padding: 8px var(--pad) 0; }

.searchbar {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid var(--glass-line);
  border-radius: 20px;
  padding: 8px 12px;
  transition: border-color .2s;
}
.searchbar:focus-within { border-color: rgba(138, 92, 255, .55); }
.s-ico { font-size: 15px; opacity: .75; line-height: 1; flex-shrink: 0; }
.s-input {
  flex: 1;
  min-width: 0;
  height: 22px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  outline: none;
}
.s-input::placeholder { color: rgba(255, 255, 255, .42); }
.s-input::-webkit-search-cancel-button { display: none; }
.s-go {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: var(--grad-go);
  box-shadow: 0 2px 8px rgba(63, 169, 255, .35);
  white-space: nowrap;
}
.s-go:active { opacity: .85; }

/* 公告条：与搜索框同款玻璃胶囊 */
.actbar {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 6px;
  padding: 5px 14px;
  border-radius: 17px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  backdrop-filter: blur(20px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, .10);
  overflow: hidden;
}
.act-horn { font-size: 12px; flex-shrink: 0; }
.act-view { flex: 1; min-width: 0; overflow: hidden; }
.act-track {
  display: inline-block;
  white-space: nowrap;
  font-size: 11.5px;
  color: var(--text-2);
  animation: marquee 22s linear infinite;
}
.act-track span { padding-right: 40px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.act-arrow { color: var(--text-4); font-size: 14px; flex-shrink: 0; }

/* ============================================================
   12 个分类图标（2 行 × 6，霓虹渐变方块）
   ============================================================ */
.icon-grid {
  display: flex;
  flex-wrap: wrap;
  padding: 8px var(--pad) 4px;
}
.icon-cell {
  width: 16.666%;
  padding: 4px 2.5px;
  display: flex;
  justify-content: center;
}
.icon-box {
  position: relative;
  width: 100%;
  height: var(--icon-h);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .07);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .35);
  transition: transform .16s ease, filter .16s;
  cursor: pointer;
}
.icon-box:active { transform: scale(.95); filter: brightness(1.12); }
.icon-shine {
  position: absolute;
  top: -36%;
  left: -20%;
  width: 140%;
  height: 74%;
  background: linear-gradient(160deg, rgba(255, 255, 255, .30), rgba(255, 255, 255, 0));
  pointer-events: none;
}
.icon-cap {
  position: relative;
  font-size: var(--icon-fs);
  font-weight: 700;
  line-height: 1.13;
  letter-spacing: .4px;
  width: 2.2em;
  text-align: center;
  word-break: break-all;
}

/* ============================================================
   筛选 chip 行 + 随机
   ============================================================ */
.sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px var(--pad) 5px;
}
.chip-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.chip-bar::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0;
  height: 22px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
  color: var(--text-2);
  background: #1c1c24;
  white-space: nowrap;
  transition: .18s;
  cursor: pointer;
}
.chip.on {
  color: #fff;
  font-weight: 700;
  background: var(--grad-chip);
}
.chip:active { opacity: .82; }

.qt-rand {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--grad);
  box-shadow: 0 3px 10px rgba(138, 92, 255, .42);
  animation: qtGlow 2.4s ease-in-out infinite;
  white-space: nowrap;
}
.qt-rand:active { opacity: .82; }
.qt-rand .ico { font-size: 11px; line-height: 1; }
.qt-rand.spin .ico { animation: qtSpin .5s ease; }
@keyframes qtSpin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@keyframes qtGlow {
  0%, 100% { box-shadow: 0 3px 10px rgba(138, 92, 255, .42); }
  50% { box-shadow: 0 3px 15px rgba(255, 92, 138, .55); }
}

/* ============================================================
   歌曲列表（单列，与小程序首页完全一致）
   ============================================================ */
.list { padding: 0 var(--pad); }
.song {
  display: flex;
  align-items: center;
  padding: 6px 2px;
  border-bottom: 1px solid var(--line-2);
  cursor: pointer;
  transition: background .15s;
}
.song:active { background: rgba(255, 255, 255, .026); }
@media (min-width: 640px) {
  .song { padding: 9px 2px; }
  .song:hover { background: rgba(255, 255, 255, .022); }
}

/* 封面：无图时用霓虹渐变 + 首字 */
.s-cover {
  position: relative;
  width: var(--cover);
  height: var(--cover);
  border-radius: 6px;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: rgba(255, 255, 255, .92);
  font-size: calc(var(--cover) * .40);
  text-shadow: 0 1px 3px rgba(0, 0, 0, .3);
}
.s-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.s-cover .hot {
  position: absolute;
  top: -2px;
  right: -1px;
  font-size: calc(var(--cover) * .28);
  line-height: 1;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .6));
}
.song.playing .s-cover { box-shadow: 0 0 0 2px rgba(160, 107, 255, .85); }

.meta { flex: 1; min-width: 0; margin-left: 6px; }
.title {
  font-size: var(--fs-title);
  font-weight: 700;
  color: #fff;
  line-height: 1.45;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.title .t-mod { font-size: var(--fs-mod); font-weight: 500; color: var(--text-3); }
.title .t-main {
  font-size: var(--fs-title);
  font-weight: 700;
  color: #fff;
  max-width: 62%;
  display: inline-block;
  vertical-align: bottom;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.title .hl { color: #FF6B8A; }

.sub {
  display: flex;
  align-items: center;
  gap: 3.5px;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
}
.sid { color: var(--gold); font-size: var(--fs-sub); flex-shrink: 0; }
.sprice {
  padding: 0 2.5px;
  border-radius: 2px;
  color: var(--gold);
  background: rgba(255, 207, 94, .18);
  font-size: var(--fs-sub);
  font-weight: 600;
  flex-shrink: 0;
}
.sfree {
  padding: 0 2.5px;
  border-radius: 2px;
  color: var(--green);
  background: rgba(75, 208, 122, .16);
  font-size: var(--fs-sub);
  font-weight: 600;
  flex-shrink: 0;
}
.sbpm { color: var(--bpm); font-size: var(--fs-sub); font-weight: 600; flex-shrink: 0; }
.sdate { color: rgba(255, 255, 255, .4); font-size: var(--fs-sub); flex-shrink: 0; }
.sartist {
  color: var(--text-3);
  font-size: var(--fs-sub);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 右侧操作：收藏 + 下载 */
.acts { display: flex; align-items: center; gap: 5px; flex-shrink: 0; margin-left: 5px; }
.act {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
  transition: .16s;
}
.act-fav {
  color: var(--gold);
  background: rgba(255, 207, 94, .16);
  border: 1px solid rgba(255, 207, 94, .45);
}
.act-fav.on { background: rgba(255, 207, 94, .30); }
.act-dl {
  color: var(--green);
  background: rgba(75, 208, 122, .22);
  border: 1px solid rgba(75, 208, 122, .55);
}
.act:active { transform: scale(.9); }

/* ============================================================
   状态 / 空态 / 加载
   ============================================================ */
.tip {
  text-align: center;
  color: var(--text-4);
  font-size: 13px;
  padding: 56px 20px;
  line-height: 1.7;
}
.tip .big { display: block; font-size: 30px; margin-bottom: 10px; opacity: .55; }

.load-foot {
  padding: 16px var(--pad) 10px;
  text-align: center;
  font-size: 11.5px;
  color: var(--text-4);
}

/* 骨架 */
.sk { display: flex; align-items: center; gap: 6px; padding: 4px 2px; border-bottom: 1px solid var(--line-2); }
.sk-c { width: var(--cover); height: var(--cover); border-radius: 6px; flex-shrink: 0; }
.sk-l { flex: 1; }
.sk-a { height: 10px; width: 62%; border-radius: 3px; margin-bottom: 5px; }
.sk-b { height: 8px; width: 38%; border-radius: 3px; }
.sk-c, .sk-a, .sk-b {
  background: linear-gradient(90deg, #16161f 25%, #1e1e29 50%, #16161f 75%);
  background-size: 200% 100%;
  animation: skShine 1.3s infinite;
}
@keyframes skShine { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ============================================================
   迷你播放器（玻璃，固定在 tabBar 上方）
   ============================================================ */
.mini {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(var(--tabbar-h) + 6px);
  width: calc(100% - 20px);
  max-width: 764px;
  z-index: 60;
  border-radius: 13px;
  box-shadow: 0 5px 16px rgba(80, 40, 110, .50);
}
.mini-inner {
  background: var(--glass);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid var(--glass-line);
  border-radius: 13px;
  padding: 6px 8px 3px;
}
.mrow { display: flex; align-items: center; gap: 5px; }
.mcover {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
}
.mcover img { width: 100%; height: 100%; object-fit: cover; }
.mcenter { flex: 1; min-width: 0; margin: 0 5px; }
.mtitle {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mtitle .t-mod { font-size: 11px; font-weight: 500; opacity: .82; }
.mtitle .t-main { font-size: 13px; font-weight: 700; }
.msub {
  margin-top: 1px;
  font-size: 9.5px;
  color: rgba(255, 255, 255, .60);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.msub .mid { color: var(--gold); margin-right: 6px; }
.msub .mprice {
  color: var(--gold);
  background: rgba(255, 207, 94, .18);
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: 600;
  margin-right: 5px;
}
.msub .mfree {
  color: var(--green);
  background: rgba(75, 208, 122, .16);
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: 600;
  margin-right: 5px;
}
.msub .mbpm { color: var(--bpm); margin-right: 5px; }

.mbtn {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  position: relative;
}
.mbtn svg { width: 17px; height: 17px; }
.mbtn:active { opacity: .7; }
.mplay {
  background: rgba(255, 255, 255, .13);
  border: 1px solid rgba(255, 255, 255, .18);
}
/* 播放/暂停图标：纯 CSS，随 .playing 切换 */
.mplay::before, .sh-main::before {
  content: '';
  position: absolute;
  transition: .2s;
}
.mplay::before {
  border-style: solid;
  border-width: 6px 0 6px 9px;
  border-color: transparent transparent transparent #fff;
  margin-left: 2px;
}
.playing .mplay::before {
  border: 0;
  width: 3.5px;
  height: 11px;
  margin: 0;
  background: #fff;
  border-radius: 1px;
  box-shadow: 6px 0 0 #fff;
  transform: translateX(-3px);
}

.mbar {
  height: 2px;
  margin: 4px 4px 2px;
  background: rgba(255, 255, 255, .16);
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
}
.mbar-fill {
  height: 100%;
  width: 0%;
  background: var(--grad);
  border-radius: 2px;
  transition: width .25s linear;
}

/* ============================================================
   底部 tabBar
   ============================================================ */
.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  display: flex;
  background: rgba(12, 12, 17, .94);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-top: 1px solid #1a1a22;
  z-index: 70;
}
.tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #7a7a86;
  font-size: 10.5px;
  cursor: pointer;
  transition: color .16s;
}
@media (min-width: 640px) {
  .tabbar { justify-content: center; }
  .tab { flex: 0 0 132px; }
}
.tab svg { width: 21px; height: 21px; fill: currentColor; }
.tab.on { color: var(--brand-soft); }
.tab:active { opacity: .7; }

/* ============================================================
   全屏播放页
   ============================================================ */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
}
.sheet-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 420px at 50% 8%, rgba(138, 92, 255, .30), transparent 68%),
    radial-gradient(520px 420px at 22% 92%, rgba(255, 92, 138, .22), transparent 70%),
    #0c0c11;
}
.sheet-body {
  position: relative;
  flex: 1;
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
  padding: 10px 24px calc(20px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.sheet-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
}
.sh-btn {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, .8);
  background: rgba(255, 255, 255, .08);
}
.sh-btn svg { width: 20px; height: 20px; }
.sh-btn.ghost { background: none; pointer-events: none; }
.sh-label { font-size: 12px; color: rgba(255, 255, 255, .55); letter-spacing: .5px; }

.sh-cover {
  width: min(64vw, 268px);
  aspect-ratio: 1;
  margin: 18px auto 20px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 62px;
  font-weight: 700;
  color: rgba(255, 255, 255, .93);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .07);
  overflow: hidden;
}
.sh-cover img { width: 100%; height: 100%; object-fit: cover; }

/* 无封面时：渐变底上画一张唱片（避免单字被误读成图标） */
.vinyl {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vinyl::before {
  content: '';
  position: absolute;
  inset: 7%;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(0, 0, 0, .30) 0 26%, transparent 26.5%),
    repeating-radial-gradient(circle, rgba(0, 0, 0, .28) 0 1.5px, rgba(255, 255, 255, .055) 1.5px 4px);
  box-shadow: inset 0 0 26px rgba(0, 0, 0, .45);
}
.vinyl::after {
  content: '';
  position: absolute;
  width: 15%;
  height: 15%;
  border-radius: 50%;
  background: rgba(12, 12, 17, .85);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .22);
}

.sh-title {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  line-height: 1.4;
}
.sh-title .t-mod { font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, .55); }
.sh-sub {
  margin-top: 8px;
  text-align: center;
  font-size: 11.5px;
  color: rgba(255, 255, 255, .55);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}
.sh-sub .pill {
  padding: 1px 7px;
  border-radius: 5px;
  background: rgba(255, 255, 255, .08);
}
.sh-sub .pill.gold { color: var(--gold); background: rgba(255, 207, 94, .16); }
.sh-sub .pill.green { color: var(--green); background: rgba(75, 208, 122, .16); }
.sh-sub .pill.bpm { color: var(--bpm); background: rgba(169, 155, 255, .16); }

.sh-prog { margin: 22px 0 0; }
.sh-prog input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .16);
  outline: none;
}
.sh-prog input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 5px rgba(0, 0, 0, .5);
}
.sh-prog input[type=range]::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 50%;
  background: #fff;
}
.sh-time {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 10.5px;
  color: rgba(255, 255, 255, .45);
}

.sh-ctrl {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  margin: 18px 0 0;
}
.sh-side {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, .8);
}
.sh-side svg { width: 24px; height: 24px; }
.sh-main {
  position: relative;
  width: 62px;
  height: 62px;
  border-radius: 999px;
  background: var(--grad);
  box-shadow: 0 8px 26px rgba(138, 92, 255, .45);
}
.sh-main::before {
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent #fff;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  margin-left: 3px;
}
.playing .sh-main::before {
  border: 0;
  width: 6px;
  height: 20px;
  background: #fff;
  border-radius: 2px;
  box-shadow: 11px 0 0 #fff;
  left: 50%;
  top: 50%;
  transform: translate(calc(-50% - 5.5px), -50%);
}

.sh-foot {
  margin-top: auto;
  padding-top: 22px;
  text-align: center;
}
@media (min-width: 640px) {
  .sheet-body { justify-content: center; padding-bottom: 34px; }
  .sh-cover { width: 300px; margin: 16px auto 22px; }
  .sh-foot { margin-top: 26px; padding-top: 0; }
}
.sh-tip { display: block; font-size: 10.5px; color: rgba(255, 255, 255, .38); margin-bottom: 10px; }
.sh-mini {
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .16);
}
.sh-mini:active { opacity: .8; }

/* ============================================================
   曲库页 —— 大类网格 + 小类胶囊（对齐小程序 pages/category）
   ============================================================ */
.parent-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 10px 10px 5px;
}
.parent-card {
  padding: 12px 3px;
  text-align: center;
  border-radius: 9px;
  background: linear-gradient(135deg, #2a2340, #241d33);
  border: 1px solid rgba(138, 92, 255, .35);
  color: #ddd6f5;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 2px 7px rgba(0, 0, 0, .3);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: .16s;
}
.parent-card.on {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(138, 92, 255, .5);
}
.parent-card:active { transform: scale(.97); }

.child-section {
  margin: 7px 10px 0;
  padding: 9px 8px 8px;
  background: #14141c;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 10px;
}
.sec-label {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-bottom: 7px;
  padding-left: 2px;
}
.sec-label-t { font-size: 12px; color: #9a9aa8; letter-spacing: 1px; }
.sec-label-s { font-size: 10.5px; color: #5e5e6a; }

.child-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
}
.child-cell {
  padding: 8px 1px;
  text-align: center;
  border-radius: 999px;
  background: #20202a;
  color: #a8a8b6;
  font-size: 10.5px;
  border: 1px solid #2e2e3a;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: .16s;
}
.child-cell.on {
  background: rgba(138, 92, 255, .20);
  color: #c9a8ff;
  border-color: #8A5CFF;
  font-weight: 600;
}
.child-cell:active { opacity: .8; }

@media (min-width: 640px) {
  .parent-strip { gap: 10px; padding: 14px 20px 8px; }
  .parent-card { padding: 16px 6px; font-size: 15px; border-radius: 11px; }
  .child-section { margin: 10px 20px 0; padding: 12px 12px 11px; border-radius: 12px; }
  .sec-label-t { font-size: 13px; }
  .sec-label-s { font-size: 11.5px; }
  .child-grid { gap: 8px; }
  .child-cell { padding: 10px 2px; font-size: 12.5px; }
}

/* 页面小标题 */
.page-head {
  padding: 10px var(--pad) 4px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.page-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}
.page-head .cnt { font-size: 11px; color: var(--text-4); }

/* ============================================================
   专辑页（紧凑列表，与歌曲行同一视觉节奏）
   ============================================================ */
.album-list { padding: 6px var(--pad) 0; }
.album-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 2px;
  border-bottom: 1px solid var(--line-2);
  cursor: pointer;
  transition: background .15s;
}
.album-item:active { background: rgba(255, 255, 255, .026); }
.athumb {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 9px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 800;
  color: rgba(255, 255, 255, .93);
  overflow: hidden;
}
.athumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(255, 255, 255, .24), transparent 62%);
}
.ameta { flex: 1; min-width: 0; }
.aname {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.asub { font-size: 10px; color: var(--text-3); margin-top: 2px; }
.ago { color: var(--text-4); font-size: 16px; flex-shrink: 0; }

@media (min-width: 640px) {
  .album-item { padding: 11px 2px; }
  .athumb { width: 56px; height: 56px; font-size: 21px; border-radius: 11px; }
  .aname { font-size: 15px; }
  .asub { font-size: 11.5px; }
}

/* ============================================================
   我的 / 引导小程序
   ============================================================ */
.me-wrap { padding: 14px var(--pad) 0; }
.me-card {
  border-radius: 16px;
  padding: 20px 18px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid var(--glass-line);
  text-align: center;
}
.me-logo {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  margin: 0 auto 12px;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 8px 24px rgba(138, 92, 255, .40);
}
.me-card h3 { margin: 0 0 6px; font-size: 16px; font-weight: 700; }
.me-card p { margin: 0; font-size: 12px; color: var(--text-3); line-height: 1.65; }

.me-rows { margin-top: 14px; border-radius: 14px; overflow: hidden; background: #14141c; }
.me-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border-bottom: 1px solid #1c1c24;
  font-size: 13px;
  color: var(--text-2);
  cursor: pointer;
}
.me-row:last-child { border-bottom: 0; }
.me-row .ic { width: 20px; text-align: center; }
.me-row .ar { margin-left: auto; color: var(--text-4); font-size: 15px; }
.me-row:active { background: rgba(255, 255, 255, .03); }

.qr-box {
  margin-top: 16px;
  border-radius: 16px;
  padding: 18px;
  background: #14141c;
  text-align: center;
  border: 1px dashed #2a2a36;
}
.qr-ph {
  width: 132px;
  height: 132px;
  margin: 0 auto 12px;
  border-radius: 12px;
  background: #101018;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-4);
  font-size: 11px;
  text-align: center;
  line-height: 1.6;
  border: 1px solid #22222c;
}
.qr-ph img { width: 100%; height: 100%; object-fit: contain; border-radius: 12px; }
.qr-txt { font-size: 11.5px; color: var(--text-3); line-height: 1.7; }

/* ============================================================
   Toast
   ============================================================ */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tabbar-h) + 84px);
  transform: translateX(-50%) translateY(6px);
  z-index: 300;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(30, 30, 40, .96);
  border: 1px solid rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 12.5px;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .5);
  opacity: 0;
  transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
