/* YPlay 轻听 · 深蓝紫灰暗色主题（桌面/手机同一套色） */
:root {
  --bg: #384057;            /* 页面底：蓝灰（亮一档、蓝分量加大） */
  --surface: #414866;       /* 侧栏 / 卡片面 */
  --surface-2: #4b5375;     /* 二级面：hover / 输入框 */
  --line: #545c7d;
  --text: #f0f2f7;
  --text-2: #c6cbd8;
  --muted: #a8afc0;
  --primary: #8487f7;       /* 长春花紫（暗底上的发光感主色） */
  --primary-deep: #6669dc;
  --primary-soft: #48507a;  /* 主色调暗底胶囊 / 高亮底 */
  --primary-rgb: 132, 135, 247;
  --pink: #a67bff;          /* 渐变伙伴：柔紫 */
  --yellow: #ffb340;
  --mint: #3fd6a4;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, .2);
  --shadow: 0 8px 24px rgba(0, 0, 0, .28);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, .38);
  --r-lg: 20px;
  --r-md: 16px;
  --r-sm: 12px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  /* 字体栈对齐 music.163.com 手机版：Helvetica 优先，中文回落 PingFang SC /
     微软雅黑 / 华文黑体；数字用系统等宽比例，标点与西文更接近官方观感。
     只改字体，不动配色。 */
  font-family: Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    STHeiTi, Arial, sans-serif;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
button, input { font-family: inherit; }
button { cursor: pointer; border: 0; background: none; color: inherit; }
button:focus-visible, input:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.is-hidden { display: none !important; }

/* ---------- 布局 ---------- */
.app {
  --nav-w: 232px;
  display: grid;
  grid-template-columns: var(--nav-w) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  height: 100vh;
  position: relative;
  transition: grid-template-columns .28s cubic-bezier(.4, 0, .2, 1);
}
/* 侧栏收起：列宽归零，内容淡出。由分界线上的按钮切换 */
.app.nav-collapsed { --nav-w: 0px; }
.app.nav-collapsed .sidebar { opacity: 0; pointer-events: none; border-right-color: transparent; }
.sidebar {
  grid-row: 1 / 3;
  background: var(--surface);
  border-right: 1px solid var(--line);
  padding: 26px 16px 18px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  z-index: 5;
  transition: opacity .18s ease;
}
.main { grid-column: 2; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.player { grid-column: 2; padding: 0 24px 18px; z-index: 20; }

/* 侧栏与内容区之间的「分界线」：整条 14px 热区，点一下收起/展开 */
.sidebar-rail {
  position: absolute; top: 0; bottom: 0;
  left: calc(var(--nav-w) - 7px); width: 14px;
  z-index: 30; padding: 0; border: 0; background: none;
  display: grid; place-items: center; cursor: pointer;
  transition: left .28s cubic-bezier(.4, 0, .2, 1);
}
.app.nav-collapsed .sidebar-rail { left: -1px; }
.rail-grip { width: 3px; height: 64px; border-radius: 3px; background: #5a617e; transition: background .18s, height .18s; }
.sidebar-rail:hover .rail-grip, .sidebar-rail:focus-visible .rail-grip { background: var(--primary); height: 92px; }
.rail-arrow {
  position: absolute; top: 50%; width: 18px; height: 42px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  display: grid; place-items: center; opacity: 0; transform: translateY(-50%);
  transition: opacity .18s, transform .18s;
}
.sidebar-rail:hover .rail-arrow, .sidebar-rail:focus-visible .rail-arrow { opacity: 1; }
.rail-arrow .icon { width: 13px; height: 13px; color: var(--text-2); }
.app.nav-collapsed .rail-arrow { opacity: 1; transform: translateY(-50%) rotate(180deg); }

/* ---------- 侧栏 ---------- */
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 30px; }
.brand-logo {
  width: 42px; height: 42px; border-radius: 13px; flex: none;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--pink) 100%);
  box-shadow: 0 6px 18px rgba(var(--primary-rgb), .3);
}
.brand-logo .icon { width: 22px; height: 22px; stroke-width: 2.2; }
.brand-name { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name strong { font-size: 20px; letter-spacing: .5px; }
.brand-name span { font-size: 12px; color: var(--muted); margin-top: 3px; letter-spacing: 1px; }

.nav-label {
  font-size: 12px; font-weight: 700; color: var(--muted);
  letter-spacing: 1.5px; padding: 0 12px; margin: 4px 0 10px;
  display: flex; justify-content: space-between; align-items: center;
}
.nav-label span { font-weight: 500; letter-spacing: 0; font-size: 12px; }
.nav-label-queue { margin-top: 26px; }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav-item {
  display: flex; align-items: center; gap: 13px;
  width: 100%; height: 44px; padding: 0 13px; border-radius: 13px;
  color: var(--text-2); font-size: 15px; font-weight: 500;
  transition: background .18s, color .18s, transform .18s;
  text-align: left;
}
.nav-item .icon { width: 19px; height: 19px; }
.nav-item:hover { background: var(--surface-2); color: var(--primary); transform: translateX(2px); }
.nav-item.is-active {
  background: var(--primary-soft);
  color: var(--primary); font-weight: 700;
  box-shadow: inset 3px 0 0 var(--primary);
}
.nav-item em {
  margin-left: auto; font-style: normal; font-size: 12px; font-weight: 700;
  background: var(--primary-soft); color: var(--primary); padding: 2px 7px; border-radius: 20px;
}

.side-queue { flex: 1; overflow-y: auto; min-height: 60px; padding: 2px 4px; }
.side-queue::-webkit-scrollbar, .content::-webkit-scrollbar, .drawer-body::-webkit-scrollbar, .lyric-body::-webkit-scrollbar { width: 6px; }
.side-queue::-webkit-scrollbar-thumb, .content::-webkit-scrollbar-thumb, .drawer-body::-webkit-scrollbar-thumb, .lyric-body::-webkit-scrollbar-thumb { background: #60688a; border-radius: 8px; }
.side-empty { color: var(--muted); font-size: 13px; text-align: center; line-height: 1.9; padding: 22px 8px; }
.side-song {
  display: flex; align-items: center; gap: 9px; padding: 7px 9px;
  border-radius: 10px; font-size: 13px; color: var(--text-2); cursor: pointer;
}
.side-song:hover { background: var(--surface-2); }
.side-song.playing { color: var(--primary); background: var(--primary-soft); font-weight: 700; }
.side-song .idx { width: 15px; flex: none; color: var(--muted); font-variant-numeric: tabular-nums; }
.side-song .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-song.playing .idx { color: var(--primary); }

.side-foot { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 10px; }
.api-status { display: flex; align-items: center; gap: 8px; padding: 10px 12px 0; font-size: 12px; color: var(--muted); }
.api-status i { width: 7px; height: 7px; border-radius: 50%; background: #6f7790; flex: none; }
.api-status.ok i { background: var(--mint); box-shadow: 0 0 0 3px rgba(63, 214, 164, .16); }
.api-status.bad i { background: #ff7a7a; box-shadow: 0 0 0 3px rgba(255, 122, 122, .16); }
.api-status.ok span { color: #57e0b6; }
.api-status.bad span { color: #ff8f8f; }

/* ---------- 顶栏 ---------- */
.topbar {
  height: 78px; flex: none; display: flex; align-items: center; gap: 24px;
  padding: 0 34px; background: rgba(56, 64, 87, .72);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.top-left { display: flex; align-items: center; gap: 8px; min-width: 190px; overflow: hidden; }
.top-left h1 {
  font-size: 21px; margin: 0; font-weight: 800; letter-spacing: -.3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
/* 搜索框按页面出现：发现/搜索页搜歌，全部歌单页只筛歌单，其余视图隐藏 */
.topbar .search-box { display: none; }
.topbar.search-mode .search-box { display: flex; max-width: 560px; }
/* 歌单页是即时筛选，不需要回车提示 */
.topbar.search-playlist .search-box kbd { display: none; }
.search-box {
  flex: 1; max-width: 430px; height: 42px; align-items: center; gap: 10px;
  padding: 0 14px; background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow-sm); transition: box-shadow .2s, border-color .2s;
}
.search-box:focus-within { border-color: var(--primary); box-shadow: 0 6px 20px rgba(var(--primary-rgb), .16); }
.search-box .icon { width: 18px; height: 18px; color: var(--muted); }
.search-box input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 14px; color: var(--text); min-width: 0; }
.search-box input::placeholder { color: #8f97ab; }
.search-box input::-webkit-search-cancel-button { cursor: pointer; }
.search-box kbd {
  font-family: inherit; font-size: 11px; color: var(--muted);
  border: 1px solid var(--line); background: var(--surface-2);
  padding: 3px 7px; border-radius: 6px;
}
.top-right { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.greeting { font-size: 13px; color: var(--muted); white-space: nowrap; }
.avatar {
  width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center;
  font-size: 13px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, #5e5ce6, #bf5af2);
  box-shadow: 0 6px 16px rgba(94, 92, 230, .28);
}

/* ---------- 内容区 ---------- */
.content { flex: 1; overflow-y: auto; padding: 28px 34px 34px; min-height: 0; }
.hero {
  border-radius: var(--r-lg); padding: 30px 34px; margin-bottom: 30px;
  /* 暮色蓝紫渐变：靛蓝→紫罗兰，柔光晕点染，白字压深底 */
  background:
    radial-gradient(circle at 86% 18%, rgba(139, 92, 246, .34), rgba(139, 92, 246, 0) 46%),
    radial-gradient(circle at 12% 82%, rgba(79, 106, 255, .28), rgba(79, 106, 255, 0) 46%),
    radial-gradient(circle at 55% 110%, rgba(167, 108, 255, .22), rgba(167, 108, 255, 0) 55%),
    linear-gradient(120deg, #3d4377 0%, #4a4585 38%, #504a8a 68%, #404879 100%);
  color: var(--text); position: relative; overflow: hidden;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .3);
  border: 1px solid rgba(255, 255, 255, .06);
}
.hero::after {
  content: ""; position: absolute; right: -60px; top: -110px; width: 320px; height: 320px;
  border-radius: 50%; background: rgba(255, 255, 255, .05);
}
.hero::before {
  content: ""; position: absolute; right: 90px; bottom: -150px; width: 240px; height: 240px;
  border-radius: 50%; background: rgba(255, 255, 255, .04);
}
.hero-tag { font-size: 12px; letter-spacing: 2px; color: rgba(233, 235, 242, .6); font-weight: 700; }
.hero h2 { margin: 12px 0 8px; font-size: 29px; font-weight: 800; letter-spacing: -.5px; color: #fff; }
.hero p { margin: 0 0 20px; font-size: 14px; color: rgba(233, 235, 242, .68); }
.hero-btn {
  background: var(--primary); color: #fff; font-weight: 600; font-size: 14px;
  padding: 11px 22px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 6px 18px rgba(var(--primary-rgb), .35); transition: transform .2s, box-shadow .2s;
  position: relative; z-index: 1;
}
.hero-btn:hover { transform: translateY(-2px); }
.hero-btn .icon { width: 16px; height: 16px; }
.hero-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; position: relative; z-index: 1; }
.hero-copy { flex: 1; min-width: 0; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-btn-main { background: var(--primary); color: #fff; }
.hero-btn-ghost { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: none; border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(6px); }
.hero-btn-ghost:hover { background: rgba(255, 255, 255, .18); }
.hero-random { flex: none; width: 150px; text-align: center; cursor: pointer; user-select: none; }
.hero-random-disc {
  width: 132px; height: 132px; margin: 0 auto; border-radius: 50%;
  background: repeating-radial-gradient(circle, rgba(255,255,255,.055) 0 8px, rgba(255,255,255,.015) 8px 16px), #494f75;
  border: 1px solid rgba(255, 255, 255, .1);
  display: grid; place-items: center; box-shadow: 0 10px 26px rgba(0, 0, 0, .4);
  transition: transform .4s cubic-bezier(.22,.8,.3,1);
}
.hero-random:hover .hero-random-disc { transform: rotate(90deg) scale(1.05); }
.hero-random-disc span {
  width: 54px; height: 54px; border-radius: 50%; background: var(--primary); color: #fff;
  display: grid; place-items: center; box-shadow: 0 4px 12px rgba(var(--primary-rgb), .4);
}
.hero-random-disc .icon { width: 26px; height: 26px; }
.hero-random-cap { margin-top: 10px; font-size: 13px; font-weight: 700; color: rgba(233, 235, 242, .75); letter-spacing: 1px; }

.section-head { display: flex; align-items: baseline; gap: 12px; margin: 0 0 18px; }
.section-head h3 { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -.3px; }
.section-head span { font-size: 13px; color: var(--muted); }
.section-head .more { margin-left: auto; color: var(--primary); font-size: 13px; font-weight: 700; }
.section-head .more + .more { margin-left: 0; }
/* 换一批 / 随机播放：iOS tinted pill —— 色调底胶囊，hover 平滑填充为实色 */
.shuffle-btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 16px; border-radius: 999px;
  background: var(--primary-soft); color: var(--primary);
  font-size: 13px; font-weight: 600; letter-spacing: .2px;
  transition: background .18s, color .18s, transform .18s, box-shadow .18s;
}
.section-head .shuffle-btn { margin-left: auto; }
.shuffle-btn:hover {
  background: var(--primary); color: #fff; transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(var(--primary-rgb), .28);
}
.shuffle-btn:active { transform: translateY(0); }
.shuffle-btn:disabled { opacity: .5; cursor: default; transform: none; box-shadow: none; }
.shuffle-btn .icon { width: 14px; height: 14px; }
.pl-tools { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; }
/* 歌单页分类导航：横向可换行的分类 chips + 右侧「换一批」 */
.cat-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 20px; }
.cat-chip {
  height: 30px; padding: 0 14px; border-radius: 15px; font-size: 13px; font-weight: 600;
  color: var(--text-2); background: var(--surface); border: 1px solid var(--line);
  cursor: pointer; transition: color .16s, background .16s, border-color .16s;
}
.cat-chip:hover { color: var(--primary); border-color: var(--primary); }
.cat-chip.active { color: #fff; background: var(--primary); border-color: var(--primary); }
.catalog-sort-static { display: inline-flex; align-items: center; cursor: default; }
.catalog-sort-static:hover { color: #fff; border-color: var(--primary); }
.cat-nav .pl-shuffle { margin-left: auto; }
.section { margin-bottom: 34px; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 22px 20px; }
/* 全部歌单页：滚动到底自动续载（哨兵节点被 IntersectionObserver 监听） */
.load-more { display: flex; justify-content: center; padding: 26px 0 4px; min-height: 40px; }
.load-more-btn {
  height: 36px; padding: 0 20px; border-radius: 18px; font-size: 13px; font-weight: 600;
  color: var(--text-2); background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); transition: color .18s, border-color .18s, transform .18s;
}
.load-more-btn:hover { color: var(--primary); border-color: var(--primary); transform: translateY(-1px); }
.load-end { font-size: 12px; color: var(--muted); }
.cover-card { cursor: pointer; min-width: 0; }
.cover-wrap {
  position: relative; aspect-ratio: 1; border-radius: var(--r-md); overflow: hidden;
  background: linear-gradient(135deg, #50577c, #56568c);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .3); transition: transform .25s, box-shadow .25s;
}
.cover-card:hover .cover-wrap { transform: translateY(-5px); box-shadow: var(--shadow); }
.cover-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s; }
.cover-card:hover .cover-wrap img { transform: scale(1.07); }
.cover-play {
  position: absolute; right: 10px; bottom: 10px; width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--pink)); color: #fff;
  display: grid; place-items: center; opacity: 0; transform: translateY(8px);
  transition: opacity .22s, transform .22s; box-shadow: 0 6px 16px rgba(var(--primary-rgb), .4);
}
.cover-card:hover .cover-play { opacity: 1; transform: none; }
.cover-play .icon { width: 18px; height: 18px; }
.cover-count {
  position: absolute; top: 9px; right: 9px; padding: 3px 8px; border-radius: 20px;
  background: rgba(20, 24, 45, .5); color: #fff; font-size: 11px; backdrop-filter: blur(6px);
}
.cover-card .c-title { margin: 11px 2px 3px; font-size: 14px; font-weight: 700; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cover-card .c-sub { margin: 0 2px; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 歌手/专辑分类页 */
.catalog-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 18px; }
.catalog-toolbar .catalog-sort { margin: 0; }
.catalog-input {
  flex: 0 1 260px; min-width: 160px; height: 36px; padding: 0 14px; border-radius: 18px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  font-size: 13px; outline: none; transition: border-color .16s;
}
.catalog-input:focus { border-color: var(--primary); }
.catalog-input::placeholder { color: var(--muted); }
.artist-card .cover-wrap { border-radius: 50%; }
.catalog-end { font-size: 12px; color: var(--muted); letter-spacing: 1px; }

/* 首屏骨架：卡片区先占位，避免布局跳动 */
.cover-card.skel { pointer-events: none; }
.skel-box, .skel-line {
  background: linear-gradient(100deg, #444b6b 8%, #50577c 20%, #444b6b 33%);
  background-size: 220% 100%; animation: skelShift 1.3s linear infinite;
}
.skel-box { width: 100%; aspect-ratio: 1; border-radius: var(--r-md); }
.skel-line { height: 12px; border-radius: 6px; margin: 12px 2px 0; }
.skel-line.short { width: 58%; height: 10px; margin-top: 8px; }
@keyframes skelShift { to { background-position: -220% 0; } }

/* 歌单详情头部 */
.detail-head {
  display: flex; gap: 26px; align-items: flex-end; padding: 6px 0 26px; margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.detail-cover {
  width: 168px; height: 168px; border-radius: 20px; object-fit: cover; flex: none;
  box-shadow: var(--shadow);   background: linear-gradient(135deg, #50577c, #56568c);
}
.detail-info { min-width: 0; padding-bottom: 4px; }
.detail-info .badge { display: inline-block; font-size: 12px; font-weight: 700; color: var(--primary); background: var(--primary-soft); padding: 4px 11px; border-radius: 20px; }
.detail-info h2 { margin: 12px 0 8px; font-size: 27px; font-weight: 800; line-height: 1.3; }
.detail-info p { margin: 0 0 18px; font-size: 13px; color: var(--muted); line-height: 1.7; max-height: 44px; overflow: hidden; }
.detail-actions { display: flex; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 20px; border-radius: 999px; font-size: 14px; font-weight: 600;
  transition: transform .18s, box-shadow .18s, background .18s, color .18s;
}
.btn:hover { transform: translateY(-1px); }
.btn .icon { width: 16px; height: 16px; }
.btn.primary { background: var(--primary); color: #fff; box-shadow: 0 6px 16px rgba(var(--primary-rgb), .24); }
.btn.primary:hover { background: var(--primary-deep); }
.btn.ghost { background: var(--bg); color: var(--text); border: 1px solid var(--line); }
.btn.ghost:hover { background: var(--primary-soft); color: var(--primary); border-color: transparent; }

/* 歌曲列表 */
.song-list { display: flex; flex-direction: column; gap: 2px; }
.song-row {
  display: grid; grid-template-columns: 34px 44px minmax(120px, 1.5fr) minmax(90px, 1fr) minmax(90px, .9fr) 62px 36px 36px;
  align-items: center; gap: 14px; padding: 9px 14px; border-radius: 13px;
  color: var(--text-2); font-size: 14px; transition: background .16s, box-shadow .16s;
}
.song-row.head { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .5px; padding-top: 4px; padding-bottom: 8px; }
.song-row.head:hover { background: none; box-shadow: none; }
.song-row:not(.head):hover { background: var(--surface-2); box-shadow: var(--shadow-sm); }
.song-row.is-current { background: linear-gradient(100deg, var(--primary-soft), #4e4d8f); color: var(--primary); font-weight: 700; }
.row-idx { color: var(--muted); font-variant-numeric: tabular-nums; text-align: center; font-size: 13px; }
.song-row.is-current .row-idx { color: var(--primary); }
.row-cover { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: #50577c; }
.row-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.row-name small { color: var(--muted); font-weight: 400; margin-left: 6px; }
/* 版权 / VIP 受限歌：保留显示但弱化，点播放时自动跳过 */
.song-row.is-restricted .row-cover,
.song-row.is-restricted .row-cell,
.song-row.is-restricted .row-dur { opacity: .45; }
.song-row.is-restricted .row-name { color: var(--muted); font-weight: 500; }
.row-name .tag-limit {
  display: inline-block; margin-left: 6px; padding: 1px 5px; border-radius: 5px;
  background: #535b7e; color: #b0b8c9; font-size: 11px; font-weight: 500; vertical-align: 1px;
}
.row-cell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.row-cell.is-link { cursor: pointer; transition: color .16s; }
.row-cell.is-link:hover { color: var(--primary); text-decoration: underline; }
/* 合作曲多位歌手：每位独立可点，分隔符不可点 */
.row-artist-link, .meta-link, .artist-sep { transition: color .16s; }
.row-artist-link, .meta-link { cursor: pointer; }
.row-artist-link:hover, .meta-link:hover { color: var(--primary); text-decoration: underline; }
.artist-sep { color: var(--muted); }
.row-dur { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 13px; }
.icon-btn {
  width: 34px; height: 34px; border-radius: 10px; display: inline-grid; place-items: center;
  color: var(--muted); position: relative; transition: color .16s, background .16s, transform .16s;
}
.icon-btn:hover { color: var(--primary); background: var(--primary-soft); transform: translateY(-1px); }
.icon-btn .icon { width: 18px; height: 18px; }
.icon-btn.liked { color: var(--pink); }
.icon-btn.liked .icon { fill: currentColor; }
.row-play { width: 30px; height: 30px; }
.row-dl { width: 30px; height: 30px; }
.row-dl .icon { width: 16px; height: 16px; }

/* 批量选择：第一列在原序号位置叠一个圆形复选框，不额外占列 */
.row-lead { position: relative; display: block; height: 24px; }
.row-idx { display: block; line-height: 24px; }
.row-check {
  display: none; position: absolute; inset: 0; margin: auto;
  width: 20px; height: 20px; padding: 0; border-radius: 50%;
  border: 1.5px solid #6f7790; background: var(--surface); color: transparent;
  place-items: center; transition: background .16s, border-color .16s, color .16s;
}
.row-check .icon { width: 12px; height: 12px; }
.song-list.select-mode .row-idx { visibility: hidden; }
.song-list.select-mode .row-check { display: grid; }
.song-row.is-selected { background: var(--primary-soft); }
.song-row.is-selected .row-check { background: var(--primary); border-color: var(--primary); color: #fff; }
.head-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.head-actions .more { margin-left: 0; display: inline-flex; align-items: center; gap: 5px; }
.head-actions .more .icon { width: 14px; height: 14px; }
.section-head.in-select .head-actions { display: none; }
.select-bar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 12px 16px; margin-bottom: 12px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm);
}
.sel-toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--primary); }
.sel-toggle .icon { width: 14px; height: 14px; }
.sel-count { font-size: 13px; color: var(--muted); }
.sel-count b { color: var(--primary); font-size: 15px; }
.sel-actions { margin-left: auto; display: flex; gap: 8px; }
.sel-actions .btn { height: 34px; padding: 0 14px; font-size: 13px; }

/* 排行榜列表 */
.rank-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.rank-card {
  display: flex; align-items: center; gap: 14px; padding: 12px; background: var(--surface);
  border-radius: var(--r-md); box-shadow: var(--shadow-sm); cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.rank-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.rank-card img { width: 62px; height: 62px; border-radius: 12px; object-fit: cover; flex: none; }
.rank-card b { display: block; font-size: 15px; margin-bottom: 6px; }
.rank-card span { font-size: 12px; color: var(--muted); }

/* 虚拟可播榜单卡：名次 + 封面 + 名称 + 播放按钮，和真实榜单明确区分 */
.rank-card-v { position: relative; gap: 12px; padding: 12px 14px; }
.rank-no {
  width: 26px; flex: none; text-align: center; font-size: 18px; font-weight: 800;
  font-style: italic; color: #828aa2; font-variant-numeric: tabular-nums;
}
.rank-card-v.is-top .rank-no { color: var(--primary); }
.rank-card-v.is-top:nth-child(1) .rank-no { color: #ff5b6e; }
.rank-card-v.is-top:nth-child(2) .rank-no { color: #ff8a4c; }
.rank-card-v.is-top:nth-child(3) .rank-no { color: #e8b23a; }
.rank-card-v .rank-meta { flex: 1; min-width: 0; }
.rank-card-v .rank-meta b { margin-bottom: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-card-v .rank-meta span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-go {
  width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary); opacity: 0; transform: scale(.85);
  transition: opacity .18s, transform .18s;
}
.rank-card:hover .rank-go { opacity: 1; transform: none; }
.rank-go .icon { width: 16px; height: 16px; }
.rank-cover .c-sub { min-height: 16px; }

/* 搜索提示 */
.search-tip { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 90px 20px; color: var(--muted); }
.search-tip .tip-icon { width: 74px; height: 74px; border-radius: 24px; display: grid; place-items: center; background: var(--surface); box-shadow: var(--shadow-sm); margin-bottom: 20px; }
.search-tip .tip-icon .icon { width: 32px; height: 32px; color: var(--primary); }
.search-tip h3 { margin: 0 0 8px; color: var(--text); font-size: 18px; }
.search-tip p { margin: 0; font-size: 13px; }
.hot-tags { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; margin-top: 24px; }
.hot-tags button { padding: 8px 15px; border-radius: 20px; background: var(--surface); color: var(--text-2); font-size: 13px; box-shadow: var(--shadow-sm); }
.hot-tags button:hover { color: var(--primary); transform: translateY(-2px); }

.loading-box, .error-box, .empty-box { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 90px 20px; color: var(--muted); gap: 14px; text-align: center; }
.loading-box p, .error-box p, .empty-box p { margin: 0; font-size: 14px; }
.spinner { width: 32px; height: 32px; border-radius: 50%; border: 3px solid #545c7e; border-top-color: var(--primary); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.error-box .icon, .empty-box .icon { width: 36px; height: 36px; color: #6f7790; }

/* ---------- 播放条 ---------- */
.player-inner {
  display: grid; grid-template-columns: minmax(210px, 1fr) minmax(330px, 1.35fr) minmax(165px, 1fr);
  align-items: center; gap: 20px; min-height: 80px; padding: 11px 20px;
  background: rgba(54, 59, 82, .82); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--r-lg);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .4);
}
.np { display: flex; align-items: center; gap: 12px; min-width: 0; }
.np-cover {
  width: 52px; height: 52px; border-radius: 12px; flex: none; display: grid; place-items: center;
  color: #fff; background: linear-gradient(135deg, var(--primary), var(--pink)); overflow: hidden;
  box-shadow: 0 6px 16px rgba(var(--primary-rgb), .26);
}
.np-cover img { width: 100%; height: 100%; object-fit: cover; }
.np-cover .icon { width: 24px; height: 24px; }
.np-cover.spinning img { animation: spin 12s linear infinite; border-radius: 50%; }
.np-meta { min-width: 0; flex: 1; }
.np-title { font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.np-artist { font-size: 12px; color: var(--muted); margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 播放页歌手/专辑：可点进分类详情（迷你条走浅色主题 hover） */
.meta-link { cursor: pointer; transition: color .16s; }
.np-artist .meta-link:hover { color: var(--primary); text-decoration: underline; }
.like-btn { color: #8d94a8; flex: none; }

.player-center { min-width: 0; }
.controls { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 6px; }
.controls .icon-btn { color: var(--text-2); }
.controls .icon-btn:hover { background: var(--primary-soft); }
.play-btn {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: var(--primary); box-shadow: 0 8px 20px rgba(var(--primary-rgb), .34);
  transition: transform .18s, box-shadow .18s, background .18s;
}
.play-btn:hover { transform: scale(1.07); background: var(--primary-deep); box-shadow: 0 10px 26px rgba(var(--primary-rgb), .42); }
.play-btn .icon { width: 20px; height: 20px; }
.progress-row { display: flex; align-items: center; gap: 10px; }
.time { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; width: 34px; text-align: center; flex: none; }

input[type="range"] {
  --p: 0%; appearance: none; -webkit-appearance: none; width: 100%; height: 5px;
  border-radius: 8px; outline: none; cursor: pointer;
  background: linear-gradient(90deg, var(--primary) 0%, var(--pink) var(--p), #5b638a var(--p), #5b638a 100%);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 13px; height: 13px; border-radius: 50%;
  background: #fff; border: 3px solid var(--primary); box-shadow: 0 2px 6px rgba(0, 0, 0, .4);
}
input[type="range"]::-moz-range-thumb {
  width: 9px; height: 9px; border-radius: 50%; background: #fff;
  border: 3px solid var(--primary); box-shadow: 0 2px 6px rgba(0, 0, 0, .4);
}
.player-right { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.volume { display: flex; align-items: center; gap: 6px; }
.volume input { width: 78px; }
/* 队列按钮上的数字角标（只对按钮生效，避免污染详情页的 .badge 标签） */
.queue-btn .badge {
  position: absolute; top: 0; right: -1px; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 10px; background: var(--primary); color: #fff; font-size: 10px; font-weight: 700;
  display: grid; place-items: center;
}

/* ---------- 抽屉 / 遮罩（层级高于全屏播放页，便于在全屏里打开队列） ---------- */
.mask { position: fixed; inset: 0; background: rgba(0, 0, 0, .5); opacity: 0; pointer-events: none; transition: opacity .28s; z-index: 90; }
.mask.show { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; width: 380px; max-width: 92vw; height: 100vh;
  background: var(--surface); box-shadow: -14px 0 44px rgba(0, 0, 0, .45);
  transform: translateX(105%); transition: transform .32s cubic-bezier(.22, .8, .3, 1);
  z-index: 95; display: flex; flex-direction: column;
}
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 24px 22px 16px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { margin: 0; font-size: 18px; font-weight: 800; }
.drawer-head h3 small { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 8px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 12px; }
.drawer-foot { padding: 14px 20px; border-top: 1px solid var(--line); }
.text-btn { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); }
.text-btn:hover { color: var(--pink); }
.text-btn .icon { width: 15px; height: 15px; }
.q-item { display: flex; align-items: center; gap: 11px; padding: 10px; border-radius: 12px; cursor: pointer; }
.q-item:hover { background: var(--surface-2); }
.q-item.active { background: var(--primary-soft); color: var(--primary); font-weight: 700; }
.q-item img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; flex: none; }
.q-item .q-meta { flex: 1; min-width: 0; }
.q-item .q-name { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-item .q-artist { font-size: 12px; color: var(--muted); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-item .q-del { opacity: 0; color: var(--muted); }
.q-item:hover .q-del { opacity: 1; }

.lyric-body { flex: 1; overflow-y: auto; padding: 30px 26px; scroll-behavior: smooth; }
.lyric-line { padding: 9px 4px; text-align: center; font-size: 14px; color: #b2b8c8; line-height: 1.6; transition: color .25s, transform .25s, font-weight .25s; }
.lyric-line.active { color: var(--primary); font-weight: 800; transform: scale(1.06); }
.lyric-line.near { color: var(--text-2); }

.toast {
  position: fixed; left: 50%; bottom: 122px; transform: translate(-50%, 16px);
  background: rgba(42, 46, 64, .94); color: #fff; font-size: 13px;
  padding: 11px 20px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .1); box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transition: opacity .24s, transform .24s; z-index: 110;
  max-width: 80vw; text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 全屏播放页：黑胶唱片 + 封面氛围光（网易云风格） ---------- */
.tabbar { display: none; }          /* 手机上才出现，见 768px 断点 */
.np-full {
  position: fixed; inset: 0; z-index: 80;
  display: flex; flex-direction: column; overflow: hidden;
  background: #2d3247; color: #fff;
  padding: calc(env(safe-area-inset-top) + 14px) 24px calc(env(safe-area-inset-bottom) + 18px);
  transform: translateY(102%); visibility: hidden;
  transition: transform .34s cubic-bezier(.22, .8, .3, 1), visibility .34s;
}
.np-full.open { transform: none; visibility: visible; }
/* 封面模糊氛围底 + 暗色压层：文字始终清晰可读 */
.np-full::before {
  content: ""; position: absolute; inset: -90px; z-index: 0; pointer-events: none;
  background-image: var(--cover, none); background-size: cover; background-position: center;
  filter: blur(64px) saturate(1.45) brightness(.66);
  transform: scale(1.25); opacity: .9;
}
.np-full::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(125% 85% at 50% 0%, rgba(12, 12, 17, .45), rgba(12, 12, 17, .88) 74%);
}
.np-full > * { position: relative; z-index: 1; }
.np-full-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex: none; }
.np-full-head .icon-btn { width: 40px; height: 40px; color: rgba(255, 255, 255, .88); border-radius: 50%; }
.np-full-head .icon-btn:hover { background: rgba(255, 255, 255, .1); }
.np-full-label { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.np-full-label span { font-size: 13px; font-weight: 700; letter-spacing: 2px; color: #fff; }
.np-full-label small { font-size: 11px; color: rgba(255, 255, 255, .48); }
.np-full-stage {
  flex: 1; min-height: 0; display: grid; place-items: center;
  position: relative; touch-action: none;
}
.np-full.show-lyric .np-full-stage { touch-action: pan-y; }

/* 黑胶：唱片本体 + 盘心封面 + 中心孔 */
.np-full-art {
  position: relative; width: min(72vw, 346px); aspect-ratio: 1;
  display: grid; place-items: center; cursor: pointer;
  border: 0; background: none; box-shadow: none; overflow: visible;
}
.np-full-art.swipe-up { animation: swipeUp .32s ease-out; }
.np-full-art.swipe-down { animation: swipeDown .32s ease-out; }
@keyframes swipeUp { from { opacity: .25; transform: translateY(26px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes swipeDown { from { opacity: .25; transform: translateY(-26px) scale(.96); } to { opacity: 1; transform: none; } }
.np-vinyl {
  position: relative; width: 100%; height: 100%; border-radius: 50%;
  display: grid; place-items: center;
  /* 盘面分层（自下而上）：
     1) 左上斜向高光 —— 抛光黑胶的镜面反光
     2) 同心纹路 —— 唱片沟槽
     3) 盘面本体 —— 比纯黑提亮一档，避免与暗色背景糊在一起 */
  background:
    linear-gradient(125deg, rgba(255, 255, 255, .14) 0%, rgba(255, 255, 255, 0) 40%),
    repeating-radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .10) 0 1px, rgba(255, 255, 255, 0) 1px 5px),
    radial-gradient(circle at 50% 50%, #3f4049 0 31%, #1d1d25 31.6% 100%);
  /* 唱片与背景的分界靠三层：
     inset 高光环 → 盘面纹理层次
     0 0 0 1px 亮边 → 轮廓线
     0 0 26px 柔光   → 从背景里“浮”出来 */
  box-shadow:
    0 28px 72px rgba(0, 0, 0, .62),
    inset 0 0 72px rgba(0, 0, 0, .62),
    inset 0 0 0 6px rgba(255, 255, 255, .07),
    inset 0 0 0 7px rgba(255, 255, 255, .14),
    inset 0 0 0 9px rgba(0, 0, 0, .5),
    0 0 0 1px rgba(255, 255, 255, .34),
    0 0 0 3px rgba(255, 255, 255, .06),
    0 0 26px rgba(255, 255, 255, .10);
  animation: vinylSpin 24s linear infinite;
  animation-play-state: paused;
}
.np-full.playing .np-vinyl { animation-play-state: running; }
@keyframes vinylSpin { to { transform: rotate(360deg); } }
.np-vinyl-cover {
  width: 60%; height: 60%; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 8px rgba(0, 0, 0, .55);
}
.np-vinyl-hole {
  position: absolute; width: 13px; height: 13px; border-radius: 50%;
  background: #0a0a0d; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .14);
}

/* 唱针：按真实唱盘几何布局——支点在唱片右上外侧，唱臂向左下约 50° 延伸，
   针头落在封面外的黑色纹路上（距中心约 0.8R、右上约 43°）。
   全部用相对唱片的百分比定位：固定 px + 唱片 vw 缩放混用会随屏宽漂移，导致针头反复偏位。
   支点固定在右上外侧；暂停时整条唱臂绕支点抬起约 32°。 */
.np-needle {
  position: absolute; inset: 0;
  transform-origin: 100% 5%; transform: rotate(-32deg);
  transition: transform .55s cubic-bezier(.32, .9, .3, 1);
  z-index: 3; pointer-events: none;
}
.np-full.playing .np-needle { transform: rotate(0deg); }
/* 唱臂杆：支点 (100%,5%) 向左下 50°，长 27%（相对唱片边长） */
.np-needle::before {
  content: ""; position: absolute;
  left: calc(100% - 3px); top: 5%; width: 6px; height: 27%;
  background: linear-gradient(180deg, #e8eaf2, #98a0b6);
  border-radius: 3px; box-shadow: 0 3px 10px rgba(0, 0, 0, .45);
  transform-origin: 50% 0; transform: rotate(50deg);
}
/* 针头（拾音头）：唱臂末端，落在封面外的纹路上 */
.np-needle::after {
  content: ""; position: absolute;
  left: calc(79.3% - 13px); top: calc(22.4% - 7px); width: 26px; height: 14px;
  background: linear-gradient(180deg, #e2e5ef, #a9b0c4); border-radius: 4px;
  transform: rotate(50deg); box-shadow: 0 3px 10px rgba(0, 0, 0, .4);
}
/* 支点圆盘：以右上外侧支点为圆心 */
.np-needle i {
  position: absolute; left: calc(100% - 15px); top: calc(5% - 15px);
  width: 30px; height: 30px; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #f4f6fb, #8f97ad);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .45);
}

/* 歌词面板：整屏滚动，当前行居中高亮。
   grid 子项的 height:100% 在 place-items:center 下不生效，会让面板被内容撑高、
   盖住下方控件，所以这里改用绝对定位填满舞台。 */
.np-full-lyric {
  display: none; position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  overflow-y: auto; text-align: center; padding: 0 10px;
  scrollbar-width: none; -ms-overflow-style: none;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 16%, #000 84%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 16%, #000 84%, transparent);
}
/* 留白放在内层，滚动容器高度保持固定。
   歌词行收到文字宽度、水平居中，两侧留出真正的空白区：
   点文字 = 跳到那句，点空白 = 回唱片，两种操作不会互相误触。 */
.lyric-inner { padding: 45% 0; display: flex; flex-direction: column; align-items: center; }
.np-full-lyric::-webkit-scrollbar { width: 0; height: 0; }
.np-full.show-lyric .np-full-art { display: none; }
.np-full.show-lyric .np-full-lyric { display: block; animation: lyricPaneIn .28s ease-out; }
@keyframes lyricPaneIn { from { opacity: .15; transform: translateX(22px); } to { opacity: 1; transform: none; } }
.full-lyric-line {
  width: fit-content; max-width: 100%;
  padding: 9px 10px; font-size: 17px; line-height: 1.72; font-weight: 500;
  color: rgba(255, 255, 255, .46); border-radius: 10px; cursor: pointer;
  transition: color .28s, font-size .28s, font-weight .28s;
}
.full-lyric-line.near { color: rgba(255, 255, 255, .74); }
.full-lyric-line.active {
  color: #fff; font-weight: 800; font-size: 19px;
  text-shadow: 0 3px 22px rgba(0, 0, 0, .6), 0 0 30px rgba(255, 255, 255, .18);
}
.full-lyric-line:hover { color: rgba(255, 255, 255, .9); }
.full-lyric-empty { color: rgba(255, 255, 255, .45); font-size: 13px; padding: 40px 0; }

.np-full-meta { flex: none; text-align: center; padding: 14px 0 6px; }
.np-full-title { font-size: 22px; font-weight: 800; letter-spacing: .3px; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.np-full-artist { font-size: 13px; color: rgba(255, 255, 255, .6); margin-top: 7px; }
.np-full-album { font-size: 12px; color: rgba(255, 255, 255, .45); margin-top: 5px; }
.np-full-artist .meta-link, .np-full-album .meta-link { color: rgba(255, 255, 255, .82); }
.np-full-artist .meta-link:hover, .np-full-album .meta-link:hover { color: #fff; text-decoration: underline; }
.np-full-progress { flex: none; padding: 6px 4px 0; }
.np-full-progress input[type="range"] {
  height: 4px;
  background: linear-gradient(90deg, #fff 0%, #fff var(--p), rgba(255, 255, 255, .24) var(--p), rgba(255, 255, 255, .24) 100%);
}
.np-full-progress input[type="range"]::-webkit-slider-thumb {
  width: 11px; height: 11px; border: 0; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .5);
}
.np-full-progress input[type="range"]::-moz-range-thumb {
  width: 9px; height: 9px; border: 0; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .5);
}
.np-full-times { display: flex; justify-content: space-between; margin-top: 7px; font-size: 11px; color: rgba(255, 255, 255, .5); font-variant-numeric: tabular-nums; }
.np-full-controls { flex: none; display: flex; align-items: center; justify-content: center; gap: 20px; padding: 14px 0 10px; }
.np-full-controls .icon-btn { width: 42px; height: 42px; color: rgba(255, 255, 255, .84); border-radius: 50%; }
.np-full-controls .icon-btn:hover { background: rgba(255, 255, 255, .1); }
.np-full-controls .icon-btn .icon { width: 22px; height: 22px; }
.np-full-controls .icon-btn.liked { color: #ff7aa2; }
.np-full-controls .icon-btn.liked .icon { fill: currentColor; }
.np-full-play {
  width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: #2d3247; transition: transform .18s, box-shadow .18s;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .45);
}
.np-full-play:hover { transform: scale(1.06); }
.np-full-play .icon { width: 26px; height: 26px; }
.np-full-foot { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 8px 4px 0; }
.np-full-mini { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: rgba(255, 255, 255, .55); }
.np-full-mini .icon { width: 15px; height: 15px; }
.np-full-mini.active { color: #fff; font-weight: 700; }
.np-full-hint { font-size: 11px; color: rgba(255, 255, 255, .3); letter-spacing: .5px; }

/* ---------- 自适应 ---------- */
@media (max-width: 1180px) {
  .app { --nav-w: 76px; }
  .sidebar { padding: 24px 10px 16px; align-items: center; }
  .brand { padding: 0 0 26px; }
  .brand-name, .nav-label, .side-queue, .api-status span { display: none; }
  .nav { width: 100%; align-items: center; }
  .nav-item { width: 48px; justify-content: center; padding: 0; }
  .nav-item span, .nav-item em { display: none; }
  .side-foot { width: 100%; display: flex; justify-content: center; }
  .api-status { padding: 10px 0 0; }
  .topbar { padding: 0 22px; gap: 14px; }
  .content { padding: 24px 22px 30px; }
  .greeting { display: none; }
}
@media (max-width: 860px) and (min-width: 769px) {
  .player-inner { grid-template-columns: 1fr auto; gap: 12px; }
  .player-center { grid-row: 2; grid-column: 1 / 3; }
  .player-right { grid-column: 2; }
  .volume { display: none; }
  .song-row { grid-template-columns: 28px 40px 1fr 56px 32px 32px; }
  .song-row .cell-artist, .song-row .cell-album, .song-row.head span.cell-artist, .song-row.head span.cell-album { display: none; }
  .detail-cover { width: 110px; height: 110px; }
  .detail-info h2 { font-size: 21px; }
}

/* ---------- 手机：专业音乐软件质感 + 高级配色 ---------- */
@media (max-width: 768px) {
  /* 配色与桌面完全同一套（Apple 风格），不再单独覆盖 */
  .app { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto auto; }
  .sidebar { display: none; }
  .sidebar-rail { display: none; }
  .main { grid-column: 1; grid-row: 1; }
  .player { grid-column: 1; grid-row: 2; padding: 0 10px 8px; }
  .tabbar {
    display: grid; grid-column: 1; grid-row: 3; grid-template-columns: repeat(5, 1fr);
    background: rgba(58, 65, 92, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line); z-index: 20;
    padding: 4px 2px calc(4px + env(safe-area-inset-bottom));
  }
  .tab-item {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; height: 52px; color: var(--muted); font-size: 12px; transition: color .2s;
  }
  .tab-item .icon { width: 21px; height: 21px; }
  .tab-item::before {
    content: ""; position: absolute; top: -4px; left: 50%; width: 0; height: 2.5px;
    border-radius: 3px; background: var(--primary); transform: translateX(-50%); transition: width .22s;
  }
  .tab-item.is-active { color: var(--text); font-weight: 700; }
  .tab-item.is-active .icon { color: var(--primary); }
  .tab-item.is-active::before { width: 22px; }

  /* Hero：与桌面同一套 iPhone 浅色渐变（主样式已定义），只调尺寸与文字色 */
  .emoji { display: none; }
  .hero {
    padding: 22px 20px; margin-bottom: 26px;
  }
  .hero-tag { color: var(--muted); font-size: 12px; }
  .hero h2 { font-size: 21px; margin: 9px 0 6px; color: var(--text); }
  .hero p { font-size: 13px; margin-bottom: 15px; color: var(--text-2); }
  .hero-btn { padding: 9px 18px; font-size: 14px; }
  .hero-row { gap: 14px; }
  .hero-btn-main { background: var(--primary); color: #fff; box-shadow: 0 6px 16px rgba(var(--primary-rgb), .3); }
  .hero-btn-ghost { background: rgba(255, 255, 255, .1); color: #fff; border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(6px); }
  .hero-btn-ghost:hover { background: rgba(255, 255, 255, .18); }
  .hero-random { width: 92px; }
  .hero-random-disc {
    width: 84px; height: 84px;
    background: repeating-radial-gradient(circle, rgba(255,255,255,.055) 0 6px, rgba(255,255,255,.015) 6px 12px), #494f75;
    border: 1px solid rgba(255, 255, 255, .1);
  }
  .hero-random-disc span { width: 36px; height: 36px; background: var(--primary); color: #fff; }
  .hero-random-disc .icon { width: 18px; height: 18px; }
  .hero-random-cap { font-size: 12px; color: var(--text-2); margin-top: 6px; }

  .topbar { height: 56px; padding: 0 14px; gap: 10px; }
  .top-left { min-width: 0; }
  .top-left h1 { font-size: 20px; }
  .search-box { height: 36px; border-radius: 10px; box-shadow: none; }
  .search-box kbd, .top-right { display: none; }
  /* 手机：带搜索框的页面让输入框吃掉剩余宽度；专门的搜索页标题让位 */
  .topbar.search-mode .search-box { max-width: none; }
  .topbar.search-mode .search-box kbd { display: none; }
  .topbar.search-page .top-left h1 { display: none; }
  .content { padding: 16px 14px 20px; }
  .section { margin-bottom: 26px; }
  .section-head { gap: 8px; margin-bottom: 14px; }
  .section-head h3 { font-size: 19px; }
  .section-head span { font-size: 13px; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .cover-wrap { border-radius: 13px; box-shadow: 0 6px 16px rgba(0, 0, 0, .3); }
  .cover-play {
    opacity: 1; transform: none; width: 30px; height: 30px; right: 8px; bottom: 8px;
    background: rgba(255, 255, 255, .95); color: #404663; box-shadow: 0 4px 10px rgba(0, 0, 0, .35);
  }
  /* 手机端也显示歌曲数角标（右上角，与左上收藏、右下播放不冲突） */
  .cover-count { top: 7px; right: 7px; padding: 2px 7px; font-size: 10px; }
  .cover-card .c-title { font-size: 15px; margin-top: 8px; }
  .cover-card .c-sub { font-size: 12px; }
  .rank-grid { grid-template-columns: 1fr; gap: 10px; }
  .rank-card { box-shadow: none; border: 1px solid var(--line); background: var(--surface); padding: 10px 12px; }
  .rank-card-v .rank-no { font-size: 17px; }
  .rank-card-v .rank-go { opacity: 1; transform: none; }

  .detail-head { gap: 14px; padding: 0 0 18px; }
  .detail-cover { width: 88px; height: 88px; border-radius: 14px; }
  .detail-info h2 { font-size: 20px; margin: 8px 0 6px; }
  .detail-info p { display: none; }
  .detail-actions { gap: 8px; }
  .detail-actions .btn { height: 34px; padding: 0 14px; font-size: 14px; }
  .search-tip { padding: 60px 12px; }
  input[type="range"] { background: linear-gradient(90deg, var(--primary) 0%, var(--primary) var(--p), #5b638a var(--p), #5b638a 100%); }

  /* 歌曲行 */
  .song-row { grid-template-columns: 26px 40px minmax(0, 1fr) 32px 32px; gap: 9px; padding: 9px 8px; border-radius: 11px; }
  .song-row.head { display: none; }
  .song-row .cell-artist, .song-row .cell-album, .song-row .row-dur { display: none; }
  .row-cover { width: 40px; height: 40px; }
  .icon-btn .icon { width: 17px; height: 17px; }
  .head-actions { gap: 10px; }
  .head-actions .more { font-size: 14px; }
  .select-bar { padding: 10px 12px; gap: 8px; }
  .sel-actions .btn { height: 32px; padding: 0 10px; font-size: 14px; }

  /* 迷你播放条：白卡 + 顶部细进度线 */
  .player-inner {
    position: relative; overflow: hidden; display: flex; align-items: center; gap: 10px;
    min-height: 60px; padding: 9px 12px; border-radius: 15px;
    background: var(--surface); border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
  }
  .player-inner::before {
    content: ""; position: absolute; left: 0; top: 0; height: 2px; width: var(--p, 0%);
    background: linear-gradient(90deg, var(--primary), var(--pink)); transition: width .25s linear;
  }
  .np { flex: 1; cursor: pointer; }
  .np-cover { width: 42px; height: 42px; border-radius: 11px; }
  .np-title { font-size: 15px; }
  .np-artist { font-size: 13px; }
  .like-btn { display: none; }
  .player-center { flex: none; }
  .player-center .progress-row { display: none; }
  .controls { margin: 0; gap: 2px; }
  .controls #btnMode, .controls #btnPrev, .controls #btnLyric { display: none; }
  .controls .play-btn { width: 38px; height: 38px; background: var(--primary); box-shadow: 0 6px 16px rgba(var(--primary-rgb), .3); }
  .controls .play-btn .icon { color: #fff; }
  .player-right { display: none; }
  .toast { bottom: 140px; }

  /* 抽屉改底部弹层 */
  .drawer { top: auto; bottom: 0; width: 100%; max-width: none; height: 74vh; border-radius: 20px 20px 0 0; transform: translateY(105%); }
  .drawer.open { transform: none; }
  .drawer-head { padding: 18px 18px 14px; }

  /* 全屏播放页：手机端只做尺寸微调（深色底色与氛围光见主样式） */
  .np-full { padding-left: 20px; padding-right: 20px; }
  .np-full-art { width: min(72vw, 300px); }
  /* 唱针用百分比定位，随唱片等比缩放，无需单独覆盖位置 */
  .np-needle::before { width: 5px; }
  .np-needle::after { left: calc(79.3% - 11px); top: calc(22.4% - 6px); width: 22px; height: 12px; }
  .np-needle i { left: calc(100% - 13px); top: calc(5% - 13px); width: 26px; height: 26px; }
  .np-full-title { font-size: 20px; }
  .np-full-artist { font-size: 14px; }
  .full-lyric-line { font-size: 17px; }
  .np-full-times { font-size: 12px; }
  .np-full-controls { gap: 12px; }
  .np-full-controls .icon-btn { width: 38px; height: 38px; }
  .np-full-play { width: 58px; height: 58px; }
  .lyric-line { font-size: 16px; }
  .drawer-head h3 { font-size: 20px; }
  .q-item .q-name { font-size: 16px; }
  .q-item .q-artist { font-size: 14px; }
}

/* ---------- 歌单收藏 ---------- */
/* 卡片封面左上角的收藏按钮：未收藏半透明白心，已收藏红色实心 */
.pl-fav {
  position: absolute; top: 8px; left: 8px; width: 30px; height: 30px;
  border-radius: 50%; display: grid; place-items: center;
  background: rgba(20, 22, 30, .38); color: rgba(255, 255, 255, .92);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: background .18s, color .18s, transform .18s; z-index: 2;
}
.pl-fav:hover { background: rgba(20, 22, 30, .6); transform: scale(1.08); }
.pl-fav .icon { width: 15px; height: 15px; }
.pl-fav.is-on { color: var(--primary); }
.pl-fav.is-on .icon { fill: currentColor; }
/* 详情页收藏按钮（已收藏态） */
.btn.primary.is-collected { background: var(--surface); color: var(--primary); border: 1px solid var(--primary); box-shadow: none; }
/* 收藏歌单网格（我喜欢页的歌单区） */
.fav-pl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 20px 16px; }

/* ---------- 歌词页滚动指示条（网易云风格：滑动浏览时居中显示） ---------- */
.lyric-scroll-ind {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.92);
  display: flex; align-items: center; gap: 14px; height: 44px; padding: 0 8px 0 18px;
  background: rgba(16, 16, 20, .72); border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 24px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: #fff; font-size: 15px; font-variant-numeric: tabular-nums;
  opacity: 0; pointer-events: none; z-index: 5;
  transition: opacity .25s, transform .25s; white-space: nowrap;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
}
.lyric-scroll-ind.show { opacity: 1; transform: translate(-50%, -50%) scale(1); pointer-events: auto; }
.lyric-scroll-ind .ind-time { font-weight: 700; }
.lyric-scroll-ind .ind-text { font-size: 12px; color: rgba(255, 255, 255, .6); }
.lyric-scroll-ind .ind-play {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .14); color: #fff; transition: background .18s;
}
.lyric-scroll-ind .ind-play:hover { background: var(--primary); }
.lyric-scroll-ind .ind-play .icon { width: 15px; height: 15px; }
/* 手动浏览时当前行保持高亮但不再自动滚动 */
.np-full-lyric.user-scrolling { scroll-behavior: auto; }

/* ---------- 搜索结果 Tab + 播放全部横条（网易云风格） ---------- */
.result-tabs {
  display: flex; gap: 4px; margin: 0 0 16px; border-bottom: 1px solid var(--line);
  padding: 0 4px;
}
.result-tab {
  position: relative; padding: 10px 18px 12px; font-size: 15px; font-weight: 600;
  color: var(--muted); transition: color .18s;
}
.result-tab:hover { color: var(--text); }
.result-tab.active { color: var(--primary); font-weight: 700; }
.result-tab.active::after {
  content: ""; position: absolute; left: 50%; bottom: -1px; transform: translateX(-50%);
  width: 26px; height: 3px; border-radius: 3px; background: var(--primary);
}
.play-all-bar {
  display: flex; align-items: center; gap: 12px; height: 50px; padding: 0 18px;
  background: var(--surface-2); border-radius: 12px; margin-bottom: 12px;
  font-size: 15px; font-weight: 700; color: var(--text); cursor: pointer;
  transition: background .18s;
}
.play-all-bar:hover { background: #535b7e; }
.play-all-bar .icon { width: 20px; height: 20px; color: var(--primary); }
.play-all-bar small { font-size: 13px; color: var(--muted); font-weight: 500; }
/* 搜索结果页：全网更多入口（网络歌单独成页，不混进主页/播放全部） */
.search-more-bar {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; margin-top: 4px; padding: 10px 16px;
  border: 1px solid var(--line); border-radius: 12px;
  background: transparent; color: var(--primary);
  font-size: 14px; font-weight: 600; cursor: pointer; text-align: center;
  transition: background .18s, border-color .18s;
}
.search-more-bar:hover { background: var(--surface-2); border-color: var(--primary); }
.search-more-bar .more-arrow { font-size: 20px; line-height: 1; margin-left: 2px; }
.search-tip .search-more-bar { margin-top: 20px; min-width: 240px; }
/* 歌曲行第二行：歌手 · 专辑（手机网易云样式，桌面隐藏） */
.row-sub {
  display: none; font-size: 12px; color: var(--muted); margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.row-name-wrap { min-width: 0; }

@media (max-width: 768px) {
  .row-name-wrap { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
  .row-sub { display: block; }
  .result-tab { padding: 9px 14px 11px; font-size: 15px; }
  .fav-pl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 10px; }
  .play-all-bar { height: 46px; padding: 0 14px; }
}
