/* ============================================================
   星海音乐 Web · mobile.css（v6.26 · 从 style.css 结构化拆分）
   内容：手机端：迷你条 / 底部导航 / 全屏播放器 / 动态光效 / 移动适配
   【v6.22】#bnIndicator 重做为发光液态玻璃胶囊（体积光+落位流光）
   ⚠ 级联顺序即加载顺序（app.html 按本文件在链中的位置引入），
     调整 @media / 覆盖关系时请保持文件间相对顺序不变。
   ============================================================ */

/* ---------- 【v6.29.5】历史全屏子页（手机）：仅桌面侧栏入口之外的新入口 ----------
   手机端历史入口移到设置页；进入后底部导航隐藏，只留迷你播放器 + 左上角返回。
   返回按钮默认隐藏（桌面侧栏进历史仍是普通视图），仅手机布局显示。 */
.history-back { display: none; }

@media (max-width: 768px) and (min-height: 501px), (max-width: 639px) {
  /* 历史子页：底部导航整体隐藏（v6.29.5 历史入口已移入设置） */
  body[data-view="history"] .bottom-nav { display: none; }
  /* 迷你条从导航上方落到屏幕底部（导航没了，不再需要 62px 让位） */
  body[data-view="history"] .mini-bar { bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
  /* 底部让位相应减小（只剩迷你条 58px + 间距） */
  body[data-view="history"] .view { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  /* 子页顶部：左上角返回按钮（仅手机布局显示） */
  .history-back { display: inline-flex; }
  .history-head { padding-left: 4px; }
}

/* ---------- 手机端：迷你播放条（全局液态玻璃动态光效） ---------- */
.mini-bar {
  display: none;
  position: fixed;
  left: 10px; right: 10px;
  bottom: calc(62px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  height: 58px;
  /* 液态玻璃：更通透底色 + 高饱和毛玻璃（与底部导航栏同款配方） */
  background: rgba(10, 14, 26, 0.6);
  border: 1px solid rgba(var(--accent-rgb), 0.16);
  border-radius: 14px;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
  align-items: center;
  gap: 10px;
  padding: 0 6px 0 8px;
  cursor: pointer;
}
/* 动态流光：斜向光带周期性扫过表面（transform 动画 = 纯合成器层，不触发重绘）
   【v6.8 质感调优】光带更窄更淡、周期更长：从“扫过一道亮光”改为“一缕若隐若现的反光” */
.mini-bar::after {
  content: '';
  position: absolute;
  top: -10%; bottom: -10%; left: 0;
  width: 36%;
  background: linear-gradient(105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.05) 45%,
    rgba(var(--accent-rgb), 0.065) 55%,
    transparent 100%);
  transform: translateX(-130%);
  animation: glassSheen 13s ease-in-out infinite;
  pointer-events: none;
}
.mini-bar.hidden { display: none !important; }
.mini-progress {
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: rgba(255, 255, 255, 0.07);
  /* 【v6.23】液态进度细条：顶部内嵌高光，与播放器进度条同语言 */
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  z-index: 1;
}
.mini-progress i {
  display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, #a8b4ff, var(--accent) 55%, var(--accent-2));
  box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.55);
  transition: transform 0.25s linear;
}
.mini-cover, .mini-fallback {
  width: 42px; height: 42px; border-radius: 9px; flex: none;
  object-fit: cover; background: var(--card);
}
.mini-fallback { display: flex; align-items: center; justify-content: center; color: var(--sub); margin-right: -42px; }
.mini-bar.has-cover .mini-fallback { display: none; }
.mini-fallback .icon { width: 18px; height: 18px; }
.mini-meta { flex: 1; min-width: 0; }
.mini-name {
  font-size: 13px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mini-singer {
  font-size: 11px; color: var(--sub);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* ---------- 【v6.34】迷你条歌词：有歌词时第二行（歌手位）滚动当前句 ----------
   .lyr-on 由 app.js updateMiniLyric 切换：开启且当前歌有歌词时挂上。
   文案用主题色微亮，与纯灰的歌手名区分开（一眼能看出"这是歌词"）。 */
.mini-bar.lyr-on .mini-singer {
  color: rgba(var(--accent-rgb), 0.95);
  font-size: 11.5px;
  letter-spacing: 0.2px;
}
.mini-singer.mini-lyr-fx { animation: miniLyrIn 0.3s ease; }
@keyframes miniLyrIn {
  from { opacity: 0; transform: translateY(5px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .mini-singer.mini-lyr-fx { animation: none; }
}
.mini-btn {
  width: 38px; height: 38px; flex: none;
  display: flex; align-items: center; justify-content: center;
  border: none; border-radius: 50%;
  background: transparent; color: var(--text);
  cursor: pointer;
  transition: transform 0.12s ease;
}
/* 【v6.11】按压反馈从背景色方块改为缩放（与 play-btn 一致的物理感反馈） */
.mini-btn:active { transform: scale(0.88); }
.mini-btn .icon { width: 20px; height: 20px; }
.mini-btn.play { background: var(--grad); color: #fff; }
/* 【v6.26 uiverse 风格】迷你播放键播放中呼吸光（box-shadow 脉动；
   不用外扩光环——mini-bar overflow:hidden 会裁出破相，发光在按钮自身上最稳。
   注意挂在 #miniPlay.playing（.play 类历史上无人注入，属死规则不能依赖） */
#miniPlay.playing { animation: mini-glow 1.9s ease-in-out infinite; }
@keyframes mini-glow {
  0%, 100% { box-shadow: 0 0 4px rgba(var(--accent-rgb), 0.35); }
  50% { box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.7); }
}
@media (prefers-reduced-motion: reduce) {
  #miniPlay.playing { animation: none; box-shadow: 0 0 6px rgba(var(--accent-rgb), 0.45); }
}

/* ---------- 全局液态玻璃动态光效定义 ----------
   glassSheen：斜向光带周期性扫过玻璃表面（transform 合成器动画，不重绘）
   glassGlow：顶部高光线缓慢呼吸（opacity 动画）
   两者均为"轻微、缓慢"的液态质感变化，静置时不干扰阅读 */
@keyframes glassSheen {
  0%   { transform: translateX(-130%); }
  46%  { transform: translateX(390%); }
  100% { transform: translateX(390%); } /* 剩余时间静置，形成间歇节奏 */
}
@keyframes glassGlow {
  0%, 100% { opacity: 0.72; }
  50%      { opacity: 1; }
}
/* 【v6.22】导航指示胶囊（手机 #bnIndicator / 桌面 #navIndicator）液态玻璃光效：
   indSweep 落位流光——切换视图时一道亮光斜扫过胶囊（JS 注入 .land 触发，
   手机/桌面两处共用，定义于顶层供跨文件引用；被 .ind-skin overflow:hidden
   裁在胶囊内，不再飘出导航容器）；
   indBreath 顶光呼吸——静置时缓慢明暗，光在玻璃内存留的微弱脉动；
   【v6.23】indJellyY/indJellyX 果冻回弹——拖动松手/切换落位时内层皮肤做
   一次阻尼弹性形变（先沿运动轴拉长过冲，再正交轴反拉，逐步收敛），
   Y=侧栏竖向拖动，X=底部导航/窄屏侧栏横向 */
@keyframes indSweep {
  0%   { opacity: 1; transform: translateX(-120%); }
  100% { opacity: 0; transform: translateX(120%); }
}
@keyframes indBreath {
  0%, 100% { opacity: 0.72; }
  50%      { opacity: 1; }
}
@keyframes indJellyY {
  0%   { transform: scale(0.965, 1.12); }
  28%  { transform: scale(1.035, 0.94); }
  52%  { transform: scale(0.99, 1.045); }
  74%  { transform: scale(1.008, 0.988); }
  100% { transform: none; }
}
@keyframes indJellyX {
  0%   { transform: scale(1.12, 0.965); }
  28%  { transform: scale(0.94, 1.035); }
  52%  { transform: scale(1.045, 0.99); }
  74%  { transform: scale(0.988, 1.008); }
  100% { transform: none; }
}
/* 无障碍：用户系统偏好减少动效时关闭流动/呼吸（保留静态玻璃质感） */
@media (prefers-reduced-motion: reduce) {
  .mini-bar::after,
  .bottom-nav::after,
  .bottom-nav::before,
  .lyric-panel::before,
  .search-box::after {
    animation: none !important;
  }
  /* 【v6.12】导航过渡与指示条滑动同步关闭（无障碍策略与全局一致） */
  #navIndicator, #bnIndicator { transition: none !important; }
  .nav-item .icon, .bn-item.active .icon { animation: none !important; transition: none !important; }
  /* 【v6.13】seg 胶囊滑动与歌词重装动画同步关闭（页面滑动由 JS 侧跳过） */
  .seg-ind { transition: none !important; }
  .lyr-fx { animation: none !important; }
  /* 【v6.22】指示胶囊流光/呼吸同步关闭（JS 侧不再注入 .land，双保险）
     【v6.23】果冻形变/拉伸过渡同步关闭（JS 侧 beginDrag 也跳过） */
  #navIndicator::before, #bnIndicator::before { animation: none !important; }
  #navIndicator.land::after, #bnIndicator.land::after { animation: none !important; opacity: 0 !important; }
  #navIndicator .ind-skin::before, #bnIndicator .ind-skin::before { animation: none !important; }
  #navIndicator.land .ind-skin::after, #bnIndicator.land .ind-skin::after { animation: none !important; opacity: 0 !important; }
  #navIndicator .ind-skin, #bnIndicator .ind-skin { animation: none !important; transition: none !important; }
}

/* ---------- 手机端：底部导航栏（液态玻璃光效，与迷你播放条同款质感） ---------- */
.bottom-nav { display: none; }

/* ---------- 手机端：全屏播放器 ---------- */
.fs-player {
  position: fixed; inset: 0; z-index: 110;
  transform: translateY(100%);
  /* 【v6.14】关闭时延迟隐藏（等滑出动画播完，旧版 visibility 瞬时隐藏 →
     关闭永远看不到退场动画）；【v6.15】统一自底部升起/下沉（与左上角向下
     箭头语义一致），方向性 fx-right 机制移除 */
  transition: transform 0.34s cubic-bezier(0.32, 0.72, 0.25, 1), visibility 0s linear 0.34s;
  display: flex; flex-direction: column;
  background: var(--bg);
  visibility: hidden;
}
.fs-player.open { transform: translate(0, 0); visibility: visible; transition: transform 0.34s cubic-bezier(0.32, 0.72, 0.25, 1), visibility 0s; }
body.fs-lock { overflow: hidden; }
/* 全屏播放器打开时隐藏迷你条，避免重复 */
body.fs-lock #miniBar { display: none !important; }
/* 【v6.15】内容随开关淡入淡出（背景层仍随面板滑动）：旧版关闭全程可见，
   大封面随面板滑向底部、正好掠过迷你条封面位置，观感像“专辑图飞到迷你条上”；
   现关闭时内容 0.18s 快速淡出（面板继续下滑），打开时轻延迟淡入出层次 */
.fs-player .fs-head, .fs-player .fs-body { transition: opacity 0.18s ease; }
.fs-player:not(.open) .fs-head, .fs-player:not(.open) .fs-body { opacity: 0; }
.fs-player.open .fs-head, .fs-player.open .fs-body { opacity: 1; transition: opacity 0.22s ease 0.06s; }
.fs-bg {
  position: absolute; inset: -40px;
  background-size: cover; background-position: center;
  filter: blur(60px) brightness(0.62) saturate(1.25);
  opacity: 0.75;
  transition: opacity 0.4s;
}
/* 封面与背景的柔和过渡：径向渐变把背景边缘融回底色，避免生硬截断 */
.fs-bg::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 40%, transparent 28%, rgba(10, 14, 26, 0.4) 76%, rgba(10, 14, 26, 0.66) 100%);
}
.fs-head {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 10px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 10px;
}
/* 全局液态玻璃光效：头部底缘高光分割线（在模糊封面背景之上） */
.fs-head::after {
  content: '';
  position: absolute;
  left: 10%; right: 10%; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.16) 30%,
    rgba(var(--accent-rgb), 0.32) 50%,
    rgba(255, 255, 255, 0.16) 70%,
    transparent 100%);
  pointer-events: none;
}
.fs-head-title { flex: 1; text-align: center; font-size: 13.5px; color: #c9d3ec; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fs-head-actions { display: flex; align-items: center; gap: 4px; }
.fs-head .icon-btn { width: 40px; height: 40px; }
.fs-body {
  position: relative; z-index: 2;
  flex: 1; min-height: 0;
  display: flex; flex-direction: column; align-items: center;
  padding: 4px 22px calc(14px + env(safe-area-inset-bottom, 0px));
  gap: 10px;
}
/* 封面随屏幕高度收缩；点封面可切换歌词模式 */
.fs-cover-wrap {
  width: min(58vw, 300px);
  width: min(58vw, min(272px, 34dvh));
  aspect-ratio: 1; margin-top: 12px; flex: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.fs-cover-ring {
  width: 100%; height: 100%; border-radius: 16px;
  background: var(--card); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.5);
}
.fs-cover { width: 100%; height: 100%; object-fit: cover; display: none; }
.fs-cover-ring.has .fs-cover { display: block; }
/* 修复：旧选择器写成 .np-cover-fallback，但 HTML 类名是 .fs-cover-fallback，
   导致全屏播放器封面占位图标从未被正确样式化，也不随封面加载隐藏 */
.fs-cover-ring.has .fs-cover-fallback { display: none; }
.fs-cover-fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--sub); }
.fs-cover-fallback .icon { width: 48px; height: 48px; }
/* 【修复】手机端文字显示不全（全是三个点）：
   1) fs-singer 旧版无 font-size 定义 → 裸奔浏览器默认 16px，与歌名抢空间；
   2) fs-name 强制单行 nowrap → 长歌名只显示开头几个字加省略号。现允许两行截断。 */
.fs-name {
  max-width: 100%;
  font-size: 20px; font-weight: 700;
  text-align: center;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.fs-info { display: flex; align-items: center; justify-content: center; gap: 8px; max-width: 100%; margin-top: 2px; }
.fs-singer {
  font-size: 13.5px;
  color: var(--sub);
  max-width: 86%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* 【v6.5】封面模式下的当前歌词预览（参考示例播放器，点按展开大歌词）
   v6.7：主行 + 翻译副行两行结构（副行更小更淡，单行截断） */
.fs-now-line {
  max-width: 100%;
  min-height: 21px;
  padding: 2px 6px;
  font-size: 14px;
  color: var(--sub);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.fs-now-t {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* 【v6.8】封面模式预览行逐字卡拉OK（开启逐字且有逐字数据时由 JS 渲染 kw-w span）：
   字级渐变填充与歌词模式同机制，填充色更柔和贴合预览行的小字号 */
.fs-now-t .kw-w {
  background: linear-gradient(90deg, #cfd9f8 0 var(--p, 0%), rgba(142, 154, 179, 0.5) var(--p, 0%) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.fs-now-tr {
  max-width: 94%;
  font-size: 11px;
  color: rgba(142, 154, 179, 0.85);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fs-lyric {
  position: relative;
  flex: 1; min-height: 12px;
  width: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 9%, #000 88%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 9%, #000 88%, transparent 100%);
  scrollbar-width: none;
}
.fs-lyric::-webkit-scrollbar { display: none; }
/* 封面模式：歌词列表隐藏（仅作弹性间隔，当前句在 .fs-now-line 预览）
   —— display:none 同时让 offsetParent 为 null，帧循环自动跳过逐字计算省 CPU */
.fs-player:not(.lm) #fsLyricLines { display: none; }
/* 歌词模式：大歌词铺满（参考示例播放器的歌词页） */
.fs-player.lm .fs-cover-wrap,
.fs-player.lm .fs-info,
.fs-player.lm .fs-name,
.fs-player.lm .fs-singer,
.fs-player.lm .fs-now-line { display: none; }
.fs-player.lm .fs-lyric { flex: 1 1 auto; min-height: 0; padding-bottom: 16px; }
.fs-player.lm .fs-body { padding-top: 2px; gap: 12px; }
.fs-player.lm .fs-lyric-line { padding: 12px 4px; font-size: 17px; color: rgba(142, 154, 179, 0.6); }
.fs-player.lm .fs-lyric-line.active { font-size: 21px; color: var(--text); text-shadow: 0 2px 14px rgba(var(--accent-rgb), 0.28); }
.fs-player.lm .fs-head-title { color: #e6ecff; }
.fs-lyric-line {
  padding: 9px 2px;
  font-size: 15.5px; line-height: 1.5;
  color: var(--sub);
  text-align: center;
  cursor: pointer;
  transition: color 0.2s, font-size 0.2s;
}
.fs-lyric-line.active { color: var(--text); font-size: 19px; font-weight: 600; }
.fs-lyric-line .kw-w {
  background: linear-gradient(90deg, var(--accent) 0 var(--p, 0%), rgba(142, 154, 179, 0.45) var(--p, 0%) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.fs-lyric-line.active .kw-w {
  background: linear-gradient(90deg, #fff 0 var(--p, 0%), rgba(142, 154, 179, 0.45) var(--p, 0%) 100%);
  -webkit-background-clip: text; background-clip: text;
}
.fs-progress { width: 100%; display: flex; align-items: center; gap: 10px; }
.fs-progress .time { font-size: 12px; color: var(--sub); min-width: 34px; text-align: center; }
.fs-progress .np-time { font-size: 12px; min-width: 38px; }
/* 【v6.16】滑杆伸展占满中间：旧版未设 flex，appearance:none 后 input 取
   默认窄宽（~129px）且 flex 不放大 → 两侧时间 + 窄滑杆整体挤在左侧，
   手机端全屏播放器进度条不居中。现在 flex:1 占满中间，与两侧时间对称 */
#fsProgressBar { flex: 1; min-width: 0; }
/* 【v6.23】全屏播放器：滑杆放大（轨道 6px / 玻璃珠 16px），触屏好按 */
#fsProgressBar { height: 6px; }
#fsProgressBar::-webkit-slider-thumb { width: 16px; height: 16px; }
#fsProgressBar::-moz-range-thumb { width: 16px; height: 16px; }
#fsProgressBar::-moz-range-track, #fsProgressBar::-moz-range-progress { height: 6px; }
.fs-buttons { display: flex; align-items: center; justify-content: center; gap: 22px; width: 100%; }
.fs-buttons .icon-btn { width: 44px; height: 44px; }
.fs-buttons .play-btn { width: 62px; height: 62px; }

/* ---------- 移动端整体适配 ----------
   【v6.17】手机布局判定加入高度条件：横屏矮屏（宽 ≥640 且高 <500）交由
   下方“横屏手机电脑布局”块接管（侧栏 + 底部播放条），本块不再生效 ——
   避免同一屏同时出现侧栏和底部导航两套导航。竖屏手机/窄横屏(<640)不变 */
@media (max-width: 768px) and (min-height: 501px), (max-width: 639px) {
  :root { --pb-h: 74px; }

  .sidebar { display: none; }
  /* 底部导航栏：液态玻璃光效（更通透的底色 + 高饱和毛玻璃 + 顶部高光线 + 动态流光） */
  .bottom-nav {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    height: calc(56px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(10, 14, 26, 0.64);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border-top: 1px solid rgba(var(--accent-rgb), 0.16);
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.35);
    z-index: 95;
    overflow: hidden;
  }
  /* 顶部玻璃高光线：中间亮、两端淡出的镜面边缘光 + 缓慢呼吸（动态）
     【v6.8 质感调优】更克制：亮度下调、周期放慢，贴近真实玻璃的微反光 */
  .bottom-nav::before {
    content: '';
    position: absolute;
    top: 0; left: 8%; right: 8%;
    height: 1px;
    background: linear-gradient(90deg,
      transparent 0%,
      rgba(255, 255, 255, 0.16) 22%,
      rgba(var(--accent-rgb), 0.34) 50%,
      rgba(255, 255, 255, 0.16) 78%,
      transparent 100%);
    animation: glassGlow 6.4s ease-in-out infinite;
    pointer-events: none;
  }
  /* 动态流光带：周期性从左到右扫过导航栏表面（液态反光感）——【v6.8】更淡更缓 */
  .bottom-nav::after {
    content: '';
    position: absolute;
    top: -10%; bottom: -10%; left: 0;
    width: 36%;
    background: linear-gradient(105deg,
      transparent 0%,
      rgba(255, 255, 255, 0.045) 45%,
      rgba(var(--accent-rgb), 0.06) 55%,
      transparent 100%);
    transform: translateX(-130%);
    animation: glassSheen 12s ease-in-out infinite;
    animation-delay: 2.4s; /* 与迷你条错开节奏，光效交替流动 */
    pointer-events: none;
  }
  .bn-item {
    flex: 1;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2px;
    background: none; border: none;
    color: var(--sub);
    font-size: 10px;
    cursor: pointer;
    min-height: 48px;
    position: relative;
    z-index: 1; /* 高于 ::after 光泽层 */
    transition: color 0.2s;
  }
  /* 【v6.29.4】底部导航新增「歌单」项后共 7 项：极窄屏（<360px）字号微收，
     保证 7 项同排不溢出（标签均两字，正常宽度绰绰有余） */
  .bn-item .icon { width: 21px; height: 21px; transition: filter 0.25s, transform 0.2s; }
  @media (max-width: 359px) {
    .bn-item { font-size: 9px; gap: 1px; }
    .bn-item .icon { width: 19px; height: 19px; }
  }
  /* 【v6.22】激活项发光与指示胶囊同色系（--lg-glow-rgb 随玻璃样式换色）
     【v6.24】双层光晕：白核 specular + 主题色弥散（与侧栏图标同配方） */
  .bn-item.active { color: var(--accent); text-shadow: 0 1px 8px rgba(var(--lg-glow-rgb), 0.38); }
  .bn-item.active .icon {
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.40)) drop-shadow(0 0 8px rgba(var(--lg-glow-rgb), 0.60));
    transform: translateY(-1px);
  }
  /* 【v6.12】底部导航切换过渡：①滑动指示胶囊（JS 注入 #bnIndicator，随激活项平移）
     ②激活图标弹跳（弹性曲线，切换时可感知） */
  /* 【v6.13】长按拖动切换（配合 JS）：横滑手势归 JS、竖滑仍交给页面滚动；
     禁用长按系统菜单/选择，拖动中指示胶囊脱离过渡改为跟手 */
  .bottom-nav {
    touch-action: pan-y;
    -webkit-user-select: none; user-select: none;
    -webkit-touch-callout: none;
  }
  /* 拖动中：外壳脱离过渡改为跟手 + 内层提亮（发光玻璃的“通电”态）；
     v6.23 形变（抓取挤压/速度拉伸）由 JS 写入 .ind-skin 内联 transform */
  .bottom-nav.dragging #bnIndicator { transition: none; }
  .bottom-nav.dragging #bnIndicator .ind-skin {
    background:
      radial-gradient(130% 100% at 50% -38%, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0.09) 40%, rgba(255, 255, 255, 0) 58%),
      radial-gradient(80% 120% at 50% 118%, rgba(var(--lg-glow-rgb), 0.42) 0%, rgba(var(--lg-glow-rgb), 0) 58%),
      linear-gradient(180deg,
        rgba(255, 255, 255, 0.24) 0%,
        rgba(var(--lg-glow-rgb), 0.20) 34%,
        rgba(var(--lg-glow-rgb), 0.40) 78%,
        rgba(var(--lg-glow-rgb), 0.50) 100%);
    box-shadow:
      0 0 14px 1px rgba(var(--lg-glow-rgb), 0.48),
      0 3px 24px rgba(var(--lg-glow-rgb), 0.60),
      0 8px 26px rgba(0, 0, 0, 0.32),
      inset 0 1px 0 rgba(255, 255, 255, 0.54),
      inset 0 -1px 0 rgba(255, 255, 255, 0.18),
      inset 0 -9px 16px -9px rgba(var(--lg-glow-rgb), 0.66),
      inset 0 0 0 1px rgba(255, 255, 255, 0.20);
  }
  .bn-item.drag-hot { color: var(--accent); }
  /* 【v6.22】底部导航指示胶囊：发光液态玻璃（当前视图的“灯”）。
     分层光效：①顶部受光穹顶（径向白光打入玻璃内部）②玻璃体积光
     （白→主题色渐变，底部聚光）③顶缘镜面高光/底缘透光/玻璃边框（inset）
     ④外发光晕（主题光色洒在下方玻璃面板上）⑤磨砂采样（把下方 WebGL
     玻璃的折射边缘柔化成乳白）；--lg-glow-rgb 由 glass.js 按当前玻璃样式
     写到宿主（水晶=青/深邃=深蓝紫…），无 glass.js 时回退 CSS 默认蓝紫 */
  #bnIndicator {
    position: absolute; top: 6px; bottom: calc(6px + env(safe-area-inset-bottom, 0px));
    left: 0;
    z-index: 0; pointer-events: none;
    transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), width 0.3s;
  }
  /* 【v6.23】双层结构：外壳只管定位平移，内层 .ind-skin 承担视觉与果冻形变
     （抓取挤压/速度拉伸/落位回弹），overflow:hidden 把落位流光裁在胶囊内
     【v6.24】光线质感 v2：穹顶受光更锐 + 底部聚焦漫射（次表面散射，
     光从底缘“透”出来）+ 三层外发光晕（近亮晕/主题主晕/投影分离）+
     底缘内透光 caustic——与桌面侧栏胶囊同配方升级 */
  #bnIndicator .ind-skin {
    position: absolute; inset: 0;
    border-radius: 13px;
    overflow: hidden;
    background:
      radial-gradient(130% 100% at 50% -42%, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0.06) 40%, rgba(255, 255, 255, 0) 58%),
      radial-gradient(80% 120% at 50% 118%, rgba(var(--lg-glow-rgb), 0.34) 0%, rgba(var(--lg-glow-rgb), 0) 60%),
      linear-gradient(180deg,
        rgba(255, 255, 255, 0.18) 0%,
        rgba(var(--lg-glow-rgb), 0.13) 34%,
        rgba(var(--lg-glow-rgb), 0.30) 78%,
        rgba(var(--lg-glow-rgb), 0.38) 100%);
    box-shadow:
      0 0 12px 1px rgba(var(--lg-glow-rgb), 0.36),
      0 2px 18px rgba(var(--lg-glow-rgb), 0.44),
      0 6px 22px rgba(0, 0, 0, 0.30),
      inset 0 1px 0 rgba(255, 255, 255, 0.48),
      inset 0 -1px 0 rgba(255, 255, 255, 0.12),
      inset 0 -8px 14px -8px rgba(var(--lg-glow-rgb), 0.58),
      inset 0 0 0 1px rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(5px) saturate(158%);
    -webkit-backdrop-filter: blur(5px) saturate(158%);
    transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  }
  /* 顶光呼吸：静置时玻璃内存留的光缓慢明暗（极弱，不干扰阅读；v6.24 对比略增） */
  #bnIndicator .ind-skin::before {
    content: '';
    position: absolute; inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 42%);
    animation: indBreath 4.6s ease-in-out infinite;
    pointer-events: none;
  }
  /* 落位流光：切换视图时一道斜向亮光扫过胶囊（JS 注入 .land 重触发；
     被 .ind-skin overflow:hidden 裁在胶囊内，不再飘出导航栏） */
  #bnIndicator .ind-skin::after {
    content: '';
    position: absolute; inset: 0;
    border-radius: inherit;
    /* 【v6.24】流光增强：白核提亮 + 主题色随行光带（与桌面胶囊同配方） */
    background: linear-gradient(100deg,
      rgba(255, 255, 255, 0) 26%,
      rgba(var(--lg-glow-rgb), 0.26) 42%,
      rgba(255, 255, 255, 0.62) 50%,
      rgba(var(--lg-glow-rgb), 0.32) 58%,
      rgba(255, 255, 255, 0) 76%);
    transform: translateX(-120%);
    opacity: 0;
    pointer-events: none;
  }
  #bnIndicator.land .ind-skin::after {
    animation: indSweep 0.72s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
  }
  /* 【v6.23】果冻落位/回弹（JS 注入 .jelly-x/.jelly-y） */
  #bnIndicator .ind-skin.jelly-x { animation: indJellyX 0.62s cubic-bezier(0.22, 1, 0.36, 1) both; }
  #bnIndicator .ind-skin.jelly-y { animation: indJellyY 0.62s cubic-bezier(0.22, 1, 0.36, 1) both; }
  @keyframes bnPop {
    0% { transform: scale(0.84); }
    55% { transform: scale(1.16); }
    100% { transform: translateY(-1px); }
  }
  .bn-item.active .icon { animation: bnPop 0.36s cubic-bezier(0.34, 1.56, 0.64, 1); }

  /* 【v6.7 修复】最后一首歌被迷你播放条遮挡点不到：
     旧方案只在滚动容器 .main 上留 padding，部分移动浏览器（旧 iOS Safari
     的 -webkit-overflow-scrolling / 某些 WebView）会忽略滚动容器的
     padding-bottom，滚到尽头时末行仍被固定定位的迷你条盖住。
     现在把让位空间直接放在内容元素 .view 上（内容元素的 padding 永远有效），
     .main 只保留小基础间距。搜索结果/收藏/播放列表/设置四个视图全覆盖。 */
  .main { padding-bottom: 24px; }
  .view { padding-bottom: calc(126px + env(safe-area-inset-bottom, 0px)); }
  .player-bar { display: none; }
  .mini-bar { display: flex; }
  body.np-open .mini-bar { display: none; }

  .topbar {
    position: sticky; top: 0; z-index: 60;
    /* 【v6.8】基础顶部余量 10px → 14px：部分全屏/WebView 浏览器不上报
       safe-area 却仍绘制状态栏，加一点自保险余量；正常浏览器多 4px 不影响观感 */
    padding: calc(14px + env(safe-area-inset-top, 0px)) 0 16px;
    /* 【v6.17】顶栏满宽收尾：上方基础规则已用负 margin 抵消 .main 的
       26px 侧 padding，此处水平 padding 归零 → 搜索条 + 选择器
       一直贴到屏幕左右缘（左右不空出位置） */
    /* 【v6.16】旧版实底 rgba(10,14,26,.72) + 底部 1px 硬线 → 深色矩形与下方
       主内容区（body 渐变带顶部光晕）不一致，底缘生硬割裂。改为向下渐隐：
       顶部保持遮蔽力（sticky 下方有滚动内容穿过，blur 毛玻璃全块生效），
       底部衰减到透明 → 无硬边缘，与主内容自然过渡；inset 底缘线同步移除 */
    background: linear-gradient(to bottom,
      rgba(10, 14, 26, 0.86) 0%,
      rgba(10, 14, 26, 0.60) 62%,
      rgba(10, 14, 26, 0.22) 86%,
      rgba(10, 14, 26, 0) 100%);
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
  }
  .search-box {
    gap: 8px; min-width: 0;
    position: relative; overflow: hidden;
    border-radius: 13px 0 0 13px;
    /* 【v6.14】底色从比顶栏更深的暗场（rgba(8,12,24,0.52)）改为中性微亮面
       （比周围浅一点点），保留内嵌接缝轮廓但亮度贴近周边 —— 修复“背景底色
       比周围更深不好看”；下沉阴影同步减淡不再压暗 */
    background-color: rgba(148, 163, 196, 0.07);
    border-color: rgba(var(--accent-rgb), 0.16);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.22);
  }
  .search-box::after { display: none; }  /* 旧凸面流光停用（凹面质感下会自相矛盾） */
  /* 【v6.29.3】聚焦态柔化：旧版 0.30 的紫环偏重 —— 与桌面端同步改成
     半透明描边 + 淡光晕（内嵌阴影保留维持凹面质感） */
  .search-box:focus-within {
    border-color: rgba(var(--accent-rgb), 0.38);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.22), 0 0 0 3px rgba(var(--accent-rgb), 0.13);
  }
  .search-box input { min-height: 42px; font-size: 16px; }
  .btn-primary { padding: 0 12px; }
  .selectors select {
    min-height: 44px; max-width: 112px;   /* 与 search-box（input 42 + 2 边框）同高，拼接无缝 */
    border-radius: 0 13px 13px 0;
    background-color: rgba(148, 163, 196, 0.07);
    border-color: rgba(var(--accent-rgb), 0.16);
    /* 内嵌分隔线：与输入段共享轮廓，接缝处只留一道发丝蓝线 */
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.22), inset 1px 0 0 rgba(var(--accent-rgb), 0.14);
  }
  /* 【v6.29.4】自绘下拉镜像同款拼接条（顶栏右段）：同底色/同高/去左圆角 */
  .selectors .xsel-btn {
    min-height: 44px; max-width: 112px;
    border-radius: 0 13px 13px 0; border-left: none;
    background-color: rgba(148, 163, 196, 0.07);
    border-color: rgba(var(--accent-rgb), 0.16);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.22), inset 1px 0 0 rgba(var(--accent-rgb), 0.14);
  }
  .selectors .xsel-btn .xsel-val { max-width: 78px; }
  /* 手机菜单：选项热区加大到 44px 级，弹层免受 safe-area 裁切 */
  .xsel-opt { padding: 12px 12px; font-size: 14px; }
  .xsel-menu { max-height: min(300px, 56vh); }
  /* 顶部玻璃高光线（中间亮两端淡出，与底部导航顶部光相互应） */
  .topbar::before {
    content: ''; position: absolute; left: 10%; right: 10%;
    top: calc(8px + env(safe-area-inset-top, 0px));
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.28), transparent);
    pointer-events: none;
  }
  .welcome { padding: 40px 16px; }
  /* 手机端歌词面板：歌名过长时缩小字号避免"三个点" */
  .lyric-name { font-size: 15px; }

  /* 【v6.5】手机列表参考示例播放器：封面替代序号、整行即播放热区
     （行内播放按钮隐藏），歌名两行截断，动作列按按钮数自适应 */
  .song-row { grid-template-columns: 44px minmax(0, 1fr) 42px 48px; gap: 8px; padding: 9px 10px; }
  .song-row.acts2 { grid-template-columns: 44px minmax(0, 1fr) 42px 88px; }
  .col-idx { display: none; }
  .col-src { display: none; }
  .song-row .act-play { display: none; }
  .song-row .act-download { display: none; }
  .col-cover { width: 44px; height: 44px; border-radius: 8px; }
  .song-name {
    font-size: 14px; font-weight: 600; line-height: 1.35;
    white-space: normal; text-overflow: clip;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }
  .song-artist { font-size: 11.5px; margin-top: 2px; }
  .song-artist .song-album { display: none; }
  .icon-btn { width: 40px; height: 40px; }
  .icon-btn .icon { width: 19px; height: 19px; }

  .lyric-panel { width: 100vw; bottom: 0; z-index: 100; border-radius: 16px 16px 0 0; }

  .np-stage { grid-template-columns: 1fr; gap: 18px; padding: 16px 16px 24px; }
  .np-left { position: static; }
  .np-cover-wrap, .np-cover-ring { width: min(72vw, 280px); height: auto; aspect-ratio: 1; }
  .np-cover, .np-cover-fallback { width: 62%; height: 62%; }
  .np-lyric { height: min(38vh, 260px); }
  .np-actions { gap: 10px; }
  .np-actions .icon-btn.big { width: 48px; height: 48px; }
  .np-actions .play-btn { width: 66px; height: 66px; }
  .btn-download { width: 100%; justify-content: center; min-height: 46px; }
  .mv-modal { padding: 0; align-items: flex-end; }
  .mv-card { border-radius: 14px 14px 0 0; }
}
@media (min-width: 769px) {
  .mini-bar, .bottom-nav, .fs-player { display: none !important; }
}




/* ============================================================
   【v6.31 阶段三】工具箱：手机全屏子页（与历史子页同机制）
   底部导航隐藏、迷你条贴底、返回按钮显示
   ============================================================ */
@media (max-width: 768px) and (min-height: 501px), (max-width: 639px) {
  body[data-view="toolbox"] .bottom-nav { display: none; }
  body[data-view="toolbox"] .mini-bar { bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
  body[data-view="toolbox"] .view { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  /* 【v6.32 修复】提升优先级：toolbox.css 在本文件之后加载，其顶层
     .toolbox-back{display:none} 会盖掉这里的显示规则（曾致手机端无返回按钮）。
     body[data-view] 选择器权重更高，不受加载顺序影响。 */
  body[data-view="toolbox"] .toolbox-back { display: inline-flex; }
  .toolbox-back { display: inline-flex; }
  .toolbox-head { padding-left: 4px; }
}
