/* ============================================================
   RX 主页温馨音乐播放器（music.css · v20261007c 优化终版）
   收起态：圆形数字人虚拟形象（清纯动漫美少女动作帧：眨眼/歪头/挥手循环）
           + 旋转能量环 + 波形 + 粒子
   播放中：FAB 旁迷你歌词胶囊（电脑/手机自适应、不遮挡）
   展开态：紫粉全息黑胶唱片（可显示歌曲封面）+ 渐变辉光歌词动效
   ============================================================ */
.rxm {
  --rxm-accent: #e045ee;
  --rxm-accent2: #a855f7;
  position: fixed; top: 74px; right: 14px; z-index: 10000;
  font-family: "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
  display: none;
}
.rxm.show { display: block; }

/* ================= 收起态小图标（圆形虚拟形象头像） ================= */
.rxm-fab {
  position: relative;
  width: 52px; height: 52px;
  border: 0; padding: 0; cursor: pointer; color: #fff;
  background: transparent;
  border-radius: 50%;
  display: grid; place-items: center; overflow: visible;
  touch-action: none;
  transition: transform .18s ease, filter .25s ease;
}
.rxm.show .rxm-fab { opacity: 1; visibility: visible; }
.rxm-fab:hover { transform: translateY(-2px) scale(1.05); filter: brightness(1.12); }
.rxm-fab:active { transform: scale(.93); }

/* 光环（圆形辉光） */
.rxm-fab-halo {
  position: absolute; left: 50%; top: 50%; width: 84px; height: 84px;
  margin: -42px 0 0 -42px; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(217,70,239,.5), rgba(168,85,247,.18) 55%, transparent 72%);
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.rxm-fab:hover .rxm-fab-halo { opacity: 1; }
.rxm.is-playing .rxm-fab-halo { opacity: .9; animation: rxmHaloPulse 2.2s ease-in-out infinite; }
@keyframes rxmHaloPulse {
  0%, 100% { transform: scale(.96); opacity: .75; }
  50% { transform: scale(1.08); opacity: 1; }
}

/* 旋转能量环（conic 渐变沿圆形边缘流动） */
.rxm-fab-ring {
  position: absolute; inset: -3px; z-index: 0;
  border: 2px solid transparent; border-radius: 50%;
  background:
    linear-gradient(rgba(20, 14, 40, .9), rgba(20, 14, 40, .9)) padding-box,
    conic-gradient(from 0deg, #a855f7, #f0abfc, #d946ef, #f0abfc, #a855f7) border-box;
  animation: rxmRingSpin 7s linear infinite;
  opacity: .85; pointer-events: none;
}
.rxm.is-playing .rxm-fab-ring { animation-duration: 2.6s; opacity: 1; }
@keyframes rxmRingSpin { to { transform: rotate(360deg); } }

/* 数字人虚拟形象：外层只负责圆形裁切（overflow:hidden），
   内层承载雪碧图并按帧精确平移；旧版 background-position 用 25% 步进在 400% 尺寸下会
   错位显示相邻两帧的拼接缝隙（白边），现改为内层 translateX(-25%*帧) 精确切帧，
   并把画面整体放大 6%，把素材边缘的浅色描边裁到圆形之外，彻底消除切帧白边。 */
.rxm-fab-girl {
  position: absolute; inset: -3px; z-index: 1;     /* 略放大一圈，与能量环重合，浮动时不露边 */
  border-radius: 50%;
  overflow: hidden;
  background: #140c26;
  pointer-events: none;
  animation: rxmGirlFloat 3.8s ease-in-out infinite;
  will-change: transform;
}
.rxm-fab-girl-in {
  position: absolute; left: 0; top: -3%; height: 106%;
  width: 424%;              /* 4 帧，每帧 = 424%/4 = 106% 容器宽，整体放大 6% 裁掉边缘白边 */
  background-image: url('/assets/img/rxm-girl-sprite.png');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  transform: translateX(calc(var(--f, 0) * -25%));   /* -25% 内层宽 = 恰好一帧，零错位 */
  transition: transform .14s steps(1, end);
  will-change: transform;
}
.rxm.is-playing .rxm-fab-girl { animation-duration: 2.6s; }
.rxm.is-playing .rxm-fab-girl-in { filter: brightness(1.06) saturate(1.08); }
.rxm-fab:hover .rxm-fab-girl-in { filter: brightness(1.12); }
@keyframes rxmGirlFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* 底部波形条 */
.rxm-fab-wave {
  position: absolute; left: 50%; bottom: 5px; z-index: 2;
  transform: translateX(-50%);
  display: flex; align-items: flex-end; gap: 2px; height: 7px;
  opacity: 0; transition: opacity .25s ease;
}
.rxm-fab-wave i {
  width: 2.5px; border-radius: 2px; background: rgba(255,255,255,.95);
  height: 4px; transform: scaleY(.4); transform-origin: bottom;
}
.rxm.is-playing .rxm-fab-wave { opacity: 1; }
.rxm.is-playing .rxm-fab-wave i { animation: rxmFabWave .9s ease-in-out infinite; }
.rxm.is-playing .rxm-fab-wave i:nth-child(1) { animation-delay: -.1s; }
.rxm.is-playing .rxm-fab-wave i:nth-child(2) { animation-delay: -.45s; }
.rxm.is-playing .rxm-fab-wave i:nth-child(3) { animation-delay: -.25s; }
.rxm.is-playing .rxm-fab-wave i:nth-child(4) { animation-delay: -.6s; }
.rxm.is-playing .rxm-fab-wave i:nth-child(5) { animation-delay: -.35s; }
@keyframes rxmFabWave {
  0%, 100% { transform: scaleY(.35); }
  50% { transform: scaleY(1); }
}

/* 粒子点缀 */
.rxm-fab-spark {
  position: absolute; z-index: 2; width: 4px; height: 4px; border-radius: 50%;
  background: #f5d0fe; box-shadow: 0 0 6px #f0abfc;
  opacity: 0; pointer-events: none;
  animation: rxmSpark 2.6s ease-in-out infinite;
}
.rxm-fab-spark.s1 { left: 12%; top: 20%; }
.rxm-fab-spark.s2 { right: 10%; top: 44%; animation-delay: 1.3s; }
.rxm-fab-spark.s3 { left: 18%; bottom: 16%; animation-delay: .7s; }
@keyframes rxmSpark {
  0%, 100% { opacity: 0; transform: scale(.4); }
  50% { opacity: 1; transform: scale(1.15); }
}

/* ================= 展开面板 ================= */
.rxm-panel {
  position: fixed; top: 0; left: 0; width: 320px; z-index: 10000;
  background: rgba(26, 20, 44, .88);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px; padding: 14px 15px 16px;
  backdrop-filter: blur(20px) saturate(1.2); -webkit-backdrop-filter: blur(20px) saturate(1.2);
  box-shadow: 0 24px 60px rgba(10, 6, 24, .6);
  color: #fff; text-align: center;
  opacity: 0; transform: translateY(10px) scale(.97); pointer-events: none;
  transition: opacity .22s ease, transform .22s ease, visibility 0s .24s;
  max-height: 88vh; overflow-y: auto;
  visibility: hidden;
}
.rxm-panel.open {
  opacity: 1; transform: translateY(0) scale(1); pointer-events: auto;
  transition: opacity .22s ease, transform .22s ease, visibility 0s;
  visibility: visible;
}

.rxm-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.rxm-panel-title { font-size: 11px; letter-spacing: 2.5px; color: rgba(255,255,255,.55); }
.rxm-panel-tools { display: flex; align-items: center; gap: 6px; }
.rxm-icon-btn { width: 27px; height: 27px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.1); color: #fff; display: grid; place-items: center;
  transition: background .15s, transform .12s; }
.rxm-icon-btn:hover { background: rgba(255,255,255,.2); }
.rxm-icon-btn:active { transform: scale(.9); }
.rxm-min { width: 27px; height: 27px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.1); color: #fff; display: grid; place-items: center; }
.rxm-min:hover { background: rgba(255,255,255,.2); }
.rxm-deck-open { cursor: pointer; }
/* 模式 / 列表按钮 */
.rxm-btn.rxm-mode, .rxm-btn.rxm-queue { color: rgba(255,255,255,.62); }
.rxm-btn.rxm-mode.is-active { color: var(--rxm-accent); filter: drop-shadow(0 0 6px rgba(224,69,238,.7)); }
.rxm-controls { gap: 14px; }
.rxm-controls .rxm-btn svg { width: 20px; height: 20px; }

/* ---- 黑胶唱机（高质量 SVG 唱片 + 封面标签） ---- */
.rxm-deck { position: relative; height: 132px; margin: 2px 0 8px; }
.rxm-record {
  position: absolute; left: 50%; top: 50%; width: 118px; height: 118px;
  margin: -59px 0 0 -59px; border-radius: 50%;
  background-size: cover; background-position: center;
  box-shadow: 0 12px 26px rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.07);
  display: grid; place-items: center;
}
.rxm-record-art {
  position: absolute; inset: 0; border-radius: 50%;
  background-size: cover; background-position: center;
}
.rxm-record-label {
  position: relative; width: 50px; height: 50px; border-radius: 50%; overflow: hidden;
  background: linear-gradient(135deg, var(--rxm-accent2), var(--rxm-accent));
  display: grid; place-items: center; color: rgba(255,255,255,.92);
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.25), 0 2px 8px rgba(0,0,0,.4);
}
.rxm-record-label img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.rxm-record-label i {
  position: relative; width: 10px; height: 10px; border-radius: 50%;
  background: rgba(18,12,28,.92); border: 1.5px solid rgba(255,255,255,.65);
  z-index: 2; box-shadow: 0 0 4px rgba(0,0,0,.5);
}
.rxm-record-label svg { position: relative; z-index: 1; width: 22px; height: 22px; }
.rxm-record.spin { animation: rxmspin 7s linear infinite; }
@keyframes rxmspin { to { transform: rotate(360deg); } }

/* 唱臂 */
.rxm-tonearm {
  position: absolute; right: 18px; top: 2px;
  width: 16px; height: 96px;
  transform: rotate(-26deg); transform-origin: 8px 8px;
  transition: transform .55s cubic-bezier(.34,1.4,.5,1);
  z-index: 2;
}
.rxm-panel.is-playing .rxm-tonearm { transform: rotate(-6deg); }
.rxm-tonearm i {
  position: absolute; left: 50%; top: 8px; width: 3px; height: 72px;
  margin-left: -1.5px; border-radius: 3px;
  background: linear-gradient(#e8e4f0, #b9b3c8);
  box-shadow: 0 2px 5px rgba(0,0,0,.4);
}
.rxm-tonearm::before {
  content: ''; position: absolute; left: 50%; top: 0; width: 14px; height: 14px;
  margin-left: -7px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f2eef8, #9d97ac);
  box-shadow: 0 2px 6px rgba(0,0,0,.45);
}
.rxm-tonearm::after {
  content: ''; position: absolute; left: 50%; bottom: 8px; width: 6px; height: 9px;
  margin-left: -3px; border-radius: 2px; background: #d8d2e4;
}

/* ---- 曲目信息 ---- */
.rxm-meta { margin-bottom: 6px; }
.rxm-name { font-size: 14.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rxm-artist { font-size: 11.5px; color: rgba(255,255,255,.6); margin-top: 2px; }

/* ---- 频谱 ---- */
.rxm-spectrum { display: block; width: 100%; height: 30px; margin: 2px 0 6px; }

/* ---- 歌词（渐变辉光动效） ---- */
.rxm-lrc {
  height: 64px; overflow: hidden; position: relative; margin-bottom: 4px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 28%, #000 72%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 28%, #000 72%, transparent);
  scroll-behavior: smooth;
}
.rxm-line {
  font-size: 12.5px; line-height: 22px; color: rgba(255,255,255,.42);
  cursor: pointer; transition: color .2s, transform .2s; padding: 0 8px;
}
.rxm-line.active {
  font-weight: 700; transform: scale(1.05);
  background: linear-gradient(90deg, #ffffff 0%, #f0abfc 30%, #ffffff 50%, #f0abfc 80%, #ffffff 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: rxmLineShine 2.4s linear infinite, rxmLinePulse 2.4s ease-in-out infinite;
  text-shadow: 0 0 18px rgba(217, 70, 239, .55);
}
@keyframes rxmLineShine { to { background-position: -220% 0; } }
@keyframes rxmLinePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
.rxm-no-lrc { font-size: 12.5px; color: rgba(255,255,255,.48); line-height: 64px; }

/* ---- 进度 ---- */
.rxm-progress { padding: 4px 2px 2px; cursor: pointer; touch-action: none; }
.rxm-track { position: relative; height: 4px; border-radius: 999px; background: rgba(255,255,255,.16); }
.rxm-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  border-radius: 999px; background: linear-gradient(90deg, var(--rxm-accent2), var(--rxm-accent)); }
.rxm-times { display: flex; justify-content: space-between; font-size: 10.5px;
  color: rgba(255,255,255,.58); font-variant-numeric: tabular-nums; padding: 0 2px; }

/* ---- 控制按钮 ---- */
.rxm-controls { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 6px; }
.rxm-btn { border: 0; background: transparent; color: #fff; cursor: pointer; padding: 6px;
  border-radius: 50%; display: grid; place-items: center; transition: background .15s, transform .12s; }
.rxm-btn:hover { background: rgba(255,255,255,.12); }
.rxm-btn:active { transform: scale(.9); }
.rxm-play {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--rxm-accent2), var(--rxm-accent));
  box-shadow: 0 8px 20px rgba(224,69,238,.45);
}
.rxm-play:hover { background: linear-gradient(135deg, var(--rxm-accent), var(--rxm-accent2)); }

/* ================= 收起态迷你歌词胶囊（不遮挡） ================= */
.rxm-ticker {
  position: fixed; top: 0; left: 0; z-index: 10001;
  max-width: 260px; height: 30px;
  display: flex; align-items: center; gap: 7px;
  padding: 0 12px; border-radius: 999px;
  background: rgba(22, 15, 42, .92);
  border: 1px solid rgba(224,69,238,.4);
  box-shadow: 0 10px 26px rgba(10,6,24,.5), 0 0 14px rgba(224,69,238,.14);
  color: #fff; cursor: pointer;
  opacity: 0; transform: translateY(4px) scale(.96); pointer-events: none;
  transition: opacity .22s ease, transform .28s cubic-bezier(.34,1.35,.5,1);
  overflow: hidden;
}
.rxm-ticker.show { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.rxm.panel-open .rxm-ticker { opacity: 0; pointer-events: none; }
.rxm-ticker-note {
  flex: 0 0 auto; width: 18px; height: 18px; border-radius: 50%;
  display: grid; place-items: center; font-size: 10px; color: #fff;
  background: linear-gradient(135deg, var(--rxm-accent2), var(--rxm-accent));
  animation: rxmTickerNote 1.6s ease-in-out infinite;
}
@keyframes rxmTickerNote {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2) rotate(-10deg); }
}
.rxm-ticker-text {
  flex: 1; min-width: 0; font-size: 12px; line-height: 30px;
  color: rgba(255,255,255,.92);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.rxm-ticker-text.marquee {
  display: inline-block; width: auto; max-width: none;
  animation: rxmMarquee linear infinite;
}
@keyframes rxmMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ================= 随机邀请气泡 ================= */
.rxm-invite {
  position: fixed; top: 0; left: 0; width: 214px; z-index: 10001;
  background: rgba(26, 20, 44, .92);
  border: 1px solid rgba(224,69,238,.35);
  border-radius: 16px; padding: 12px 14px; text-align: left; color: #fff;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 18px 44px rgba(10,6,24,.55), 0 0 18px rgba(224,69,238,.18);
  opacity: 0; transform: translateY(8px) scale(.96); pointer-events: none;
  transition: opacity .25s ease, transform .3s cubic-bezier(.34,1.35,.5,1), visibility 0s .3s;
  visibility: hidden;
}
.rxm-invite.show {
  opacity: 1; transform: translateY(0) scale(1); pointer-events: auto;
  transition: opacity .25s ease, transform .3s cubic-bezier(.34,1.35,.5,1), visibility 0s;
  visibility: visible;
}
.rxm-invite-text { font-size: 13.5px; line-height: 1.5; margin-bottom: 10px; font-weight: 600; }
.rxm-invite-actions { display: flex; gap: 8px; align-items: center; justify-content: flex-end; }
.rxm-invite-yes { border: 0; cursor: pointer; font-size: 12.5px; padding: 6px 14px;
  border-radius: 999px; color: #fff;
  background: linear-gradient(135deg, var(--rxm-accent2), var(--rxm-accent));
  box-shadow: 0 4px 12px rgba(224,69,238,.4); }
.rxm-invite-yes:hover { filter: brightness(1.1); }
.rxm-invite-x { width: 26px; height: 26px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.1); color: rgba(255,255,255,.75); font-size: 15px; line-height: 1;
  display: grid; place-items: center; }
.rxm-invite-x:hover { background: rgba(255,255,255,.2); }

/* ================= 手机端 ================= */
@media (max-width: 640px) {
  /* 收起态固定在右下角 QQ 客服按钮（bottom10/高54）上方，避开移动端头部，无遮挡 */
  .rxm { top: auto; bottom: 76px; right: 10px; }
  .rxm-fab { width: 46px; height: 46px; }
  .rxm-fab-wave { bottom: 5px; height: 6px; }
  .rxm-fab-wave i { width: 2px; }

  .rxm-panel {
    width: 100%; left: 0; right: 0; bottom: 0; top: auto;
    border-radius: 22px 22px 0 0;
    padding: 14px 16px calc(16px + env(safe-area-inset-bottom));
    max-height: 82vh;
    transform: translateY(100%);
    backdrop-filter: none; -webkit-backdrop-filter: none;
    background: #1a142c;
  }
  .rxm-panel.open { transform: translateY(0); }

  .rxm-deck { height: 122px; }
  .rxm-record { width: 108px; height: 108px; margin: -54px 0 0 -54px; }
  .rxm-lrc { height: 72px; }
  .rxm-invite { width: 200px; background: #1a142c; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .rxm-ticker { max-width: 210px; height: 28px; }
  .rxm-ticker-text { line-height: 28px; font-size: 11.5px; }
}

/* 尊重系统“减少动态效果”设置 */
@media (prefers-reduced-motion: reduce) {
  .rxm-record.spin, .rxm-fab-ring, .rxm-fab-halo, .rxm.is-playing .rxm-fab-wave i,
  .rxm-fab-spark, .rxm-ticker-note, .rxm-ticker-text.marquee,
  .rxm-line.active, .rxm-fab-glyph { animation: none; }
  .rxm-fab-glyph { transition: opacity .6s ease; }
  .rxm-tonearm { transition: none; }
}

/* ================= 全屏沉浸式播放器 ================= */
body.rxm-im-open { overflow: hidden; }
.rxm-immersive {
  position: fixed; inset: 0; z-index: 10002;
  display: flex; flex-direction: column;
  padding: calc(14px + env(safe-area-inset-top)) 22px calc(20px + env(safe-area-inset-bottom));
  color: #fff; text-align: center;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .38s ease, visibility 0s .38s;
  overflow: hidden;
  background: radial-gradient(130% 100% at 50% -10%, #2a1852 0%, #180e34 46%, #0b071a 100%);
}
.rxm-immersive.open { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .38s ease; }

/* 背景层：封面高斯模糊 + 极光光斑 + 星点 */
.rxm-im-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.rxm-im-blur {
  position: absolute; inset: -8%;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  filter: blur(64px) brightness(.42) saturate(1.5); transform: scale(1.25);
  opacity: .85; transition: background-image .4s ease;
  animation: rxmImBlurDrift 26s ease-in-out infinite alternate;
}
@keyframes rxmImBlurDrift { from { transform: scale(1.25) translate(-2%, -1%); } to { transform: scale(1.32) translate(2%, 2%); } }
.rxm-im-veil {
  position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 50% 30%, rgba(20,10,44,.2), rgba(10,6,24,.72)),
    linear-gradient(to bottom, rgba(11,7,26,.35), rgba(11,7,26,.55) 70%, rgba(11,7,26,.85));
}
.rxm-orb { position: absolute; border-radius: 50%; filter: blur(46px); opacity: .5; mix-blend-mode: screen; }
.rxm-orb.o1 { width: 46vmax; height: 46vmax; left: -14vmax; top: -12vmax;
  background: radial-gradient(circle, rgba(168,85,247,.75), transparent 65%); animation: rxmOrb1 18s ease-in-out infinite alternate; }
.rxm-orb.o2 { width: 42vmax; height: 42vmax; right: -14vmax; top: 6vmax;
  background: radial-gradient(circle, rgba(217,70,239,.6), transparent 65%); animation: rxmOrb2 22s ease-in-out infinite alternate; }
.rxm-orb.o3 { width: 40vmax; height: 40vmax; left: 18vmax; bottom: -18vmax;
  background: radial-gradient(circle, rgba(34,211,238,.42), transparent 65%); animation: rxmOrb3 24s ease-in-out infinite alternate; }
@keyframes rxmOrb1 { from { transform: translate(0,0) scale(1); } to { transform: translate(6vmax, 5vmax) scale(1.12); } }
@keyframes rxmOrb2 { from { transform: translate(0,0) scale(1.05); } to { transform: translate(-5vmax, 7vmax) scale(.95); } }
@keyframes rxmOrb3 { from { transform: translate(0,0) scale(1); } to { transform: translate(-4vmax, -6vmax) scale(1.1); } }
.rxm-dot { position: absolute; width: 4px; height: 4px; border-radius: 50%;
  background: #f5d0fe; box-shadow: 0 0 8px #f0abfc; opacity: .5; animation: rxmTwinkle 3.4s ease-in-out infinite; }
.rxm-dot.d1 { left: 12%; top: 18%; } .rxm-dot.d2 { left: 82%; top: 14%; animation-delay: .8s; }
.rxm-dot.d3 { left: 26%; top: 62%; animation-delay: 1.5s; } .rxm-dot.d4 { left: 70%; top: 70%; animation-delay: .4s; }
.rxm-dot.d5 { left: 50%; top: 10%; animation-delay: 2.1s; } .rxm-dot.d6 { left: 8%; top: 44%; animation-delay: 1.1s; }
@keyframes rxmTwinkle { 0%,100% { opacity: .15; transform: scale(.6); } 50% { opacity: .9; transform: scale(1.2); } }

/* 顶栏 */
.rxm-im-top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; height: 48px; }
.rxm-im-eyebrow { font-size: 11px; letter-spacing: 3px; color: rgba(255,255,255,.55); }
.rxm-im-top .rxm-icon-btn { background: rgba(255,255,255,.1); width: 38px; height: 38px; }

/* 碟片舞台：外层负责上下浮动，内层只负责旋转，避免两个 transform 动画互相覆盖导致“唱片不转” */
.rxm-im-stage { position: relative; z-index: 2; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 6px 0; touch-action: none; }
.rxm-im-disc-float { display: grid; place-items: center; animation: rxmImFloat 6s ease-in-out infinite; will-change: transform; }
.rxm-im-disc {
  position: relative; width: min(58vw, 250px); height: min(58vw, 250px); border-radius: 50%;
  background-image: var(--rxm-vinyl, none); background-size: cover; background-position: center;
  display: grid; place-items: center;
  box-shadow: 0 26px 70px rgba(0,0,0,.6), 0 0 60px rgba(217,70,239,.35), inset 0 0 0 1px rgba(255,255,255,.08);
}
.rxm-im-disc.spin { animation: rxmImSpin 16s linear infinite; }
@keyframes rxmImSpin { to { transform: rotate(360deg); } }
@keyframes rxmImFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.rxm-im-ring { position: absolute; inset: -10px; border-radius: 50%; pointer-events: none;
  border: 1.5px solid rgba(240,171,252,.35);
  box-shadow: 0 0 26px rgba(217,70,239,.25), inset 0 0 26px rgba(168,85,247,.25); }
.rxm-im-disc-label {
  position: relative; width: 46%; height: 46%; border-radius: 50%; overflow: hidden;
  background: linear-gradient(135deg, var(--rxm-accent2), var(--rxm-accent));
  display: grid; place-items: center; box-shadow: inset 0 0 0 2px rgba(0,0,0,.28), 0 4px 16px rgba(0,0,0,.5);
}
.rxm-im-disc-label img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rxm-im-disc-note { position: relative; color: rgba(255,255,255,.92); width: 44%; height: 44%; display: grid; place-items: center; }
.rxm-im-disc-note svg { width: 100%; height: 100%; }

/* 曲目信息 */
.rxm-im-info { position: relative; z-index: 2; padding: 4px 12px 2px; }
.rxm-im-name { font-size: 21px; font-weight: 800; letter-spacing: .5px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 2px 18px rgba(0,0,0,.5); }
.rxm-im-artist { font-size: 13.5px; color: rgba(255,255,255,.62); margin-top: 4px; }
.rxm-im-mode-tag { display: inline-block; margin-top: 8px; font-size: 11px; letter-spacing: 1px;
  color: #f5d0fe; background: rgba(217,70,239,.16); border: 1px solid rgba(240,171,252,.3);
  padding: 3px 12px; border-radius: 999px; }

/* 沉浸式歌词 */
.rxm-im-lrc { position: relative; z-index: 2; height: 86px; margin: 8px 0 4px; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
  scroll-behavior: smooth; }
.rxm-im-lrc .rxm-line { font-size: 14px; line-height: 28px; }

/* 进度 / 时间 */
.rxm-im-progress { position: relative; z-index: 2; padding: 6px 6px 2px; cursor: pointer; touch-action: none; }
.rxm-im-track { position: relative; height: 5px; border-radius: 999px; background: rgba(255,255,255,.18); }
.rxm-im-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, var(--rxm-accent2), var(--rxm-accent)); box-shadow: 0 0 10px rgba(224,69,238,.6); }
.rxm-im-scrub { position: absolute; top: 50%; left: 0; width: 13px; height: 13px; border-radius: 50%;
  background: #fff; transform: translate(-50%,-50%); box-shadow: 0 0 8px rgba(0,0,0,.5); opacity: 0; transition: opacity .15s; }
.rxm-im-progress:hover .rxm-im-scrub, .rxm-im-progress:active .rxm-im-scrub { opacity: 1; }
.rxm-im-times { position: relative; z-index: 2; justify-content: space-between; font-size: 11.5px; color: rgba(255,255,255,.6); padding: 0 6px; }

/* 控制区 */
.rxm-im-controls { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center;
  gap: clamp(14px, 6vw, 34px); margin-top: 10px; }
.rxm-im-controls .rxm-btn { color: rgba(255,255,255,.92); }
.rxm-im-controls .rxm-btn.rxm-im-mode, .rxm-im-controls .rxm-btn.rxm-im-queue { color: rgba(255,255,255,.66); }
.rxm-im-controls .rxm-btn.rxm-im-mode.is-active { color: var(--rxm-accent); filter: drop-shadow(0 0 7px rgba(224,69,238,.8)); }
.rxm-im-play-big { width: 68px; height: 68px; border-radius: 50%;
  background: linear-gradient(135deg, var(--rxm-accent2), var(--rxm-accent));
  box-shadow: 0 12px 30px rgba(224,69,238,.5); }
.rxm-im-play-big:hover { background: linear-gradient(135deg, var(--rxm-accent), var(--rxm-accent2)); }
.rxm-im-play-big svg { width: 32px; height: 32px; }

/* 播放列表抽屉 */
.rxm-queue-panel {
  position: absolute; z-index: 5; top: 0; right: 0; height: 100%; width: min(340px, 86vw);
  display: flex; flex-direction: column;
  background: rgba(22,15,42,.96); border-left: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  transform: translateX(102%); visibility: hidden;
  transition: transform .32s cubic-bezier(.34,1.2,.5,1), visibility 0s linear .32s;
  padding: calc(14px + env(safe-area-inset-top)) 8px calc(16px + env(safe-area-inset-bottom));
}
.rxm-queue-panel.open {
  transform: translateX(0); visibility: visible;
  transition: transform .32s cubic-bezier(.34,1.2,.5,1), visibility 0s;
}
.rxm-queue-head { display: flex; align-items: center; gap: 10px; padding: 4px 12px 12px; }
.rxm-queue-head b { font-size: 15px; }
.rxm-queue-count { font-size: 12px; color: rgba(255,255,255,.5); }
.rxm-queue-head .rxm-icon-btn { margin-left: auto; font-size: 20px; }
.rxm-queue-list { flex: 1; overflow-y: auto; padding: 0 8px; -webkit-overflow-scrolling: touch; }
.rxm-queue-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px;
  cursor: pointer; transition: background .15s; text-align: left; }
.rxm-queue-item:hover { background: rgba(255,255,255,.07); }
.rxm-queue-item.active { background: linear-gradient(90deg, rgba(217,70,239,.22), rgba(168,85,247,.08)); }
.rxm-qi-idx { flex: 0 0 22px; width: 22px; text-align: center; font-size: 12px; color: rgba(255,255,255,.5); font-variant-numeric: tabular-nums; }
.rxm-queue-item.active .rxm-qi-idx { color: var(--rxm-accent); }
.rxm-qi-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rxm-qi-meta b { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rxm-qi-meta em { font-style: normal; font-size: 11.5px; color: rgba(255,255,255,.5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rxm-qi-eq { display: flex; align-items: flex-end; gap: 2px; height: 14px; }
.rxm-qi-eq i { width: 3px; border-radius: 2px; background: var(--rxm-accent); animation: rxmQiEq .9s ease-in-out infinite; }
.rxm-qi-eq i:nth-child(1){ height: 60%; animation-delay: -.2s; }
.rxm-qi-eq i:nth-child(2){ height: 100%; animation-delay: -.5s; }
.rxm-qi-eq i:nth-child(3){ height: 40%; animation-delay: -.35s; }
@keyframes rxmQiEq { 0%,100% { transform: scaleY(.4); } 50% { transform: scaleY(1); } }

@media (max-width: 640px) {
  .rxm-immersive { padding-left: 16px; padding-right: 16px; }
  .rxm-im-disc { width: min(62vw, 220px); height: min(62vw, 220px); }
  .rxm-im-name { font-size: 18px; }
  .rxm-im-lrc { height: 76px; }
  .rxm-queue-panel { width: 100%; border-left: 0; border-top: 1px solid rgba(255,255,255,.1);
    height: 78%; top: auto; bottom: 0; border-radius: 22px 22px 0 0; transform: translateY(102%); }
  .rxm-queue-panel.open { transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  /* 氛围层降为静态 / 极慢，唱片仍缓慢旋转，避免沉浸式“完全没动效、唱片不转” */
  .rxm-im-blur, .rxm-orb, .rxm-im-grid, .rxm-im-rays, .rxm-im-sun, .rxm-im-scan, .rxm-im-stars { animation: none; }
  .rxm-im-disc-float, .rxm-dot, .rxm-qi-eq i { animation: none; }
  .rxm-im-disc.spin { animation: rxmImSpin 40s linear infinite; }
}

/* ============================================================
   第二轮：沉浸式布局重构（dvh / body-main）+ 赛博朋克背景层
   RX 标识 / 跟手圆钮 / 手势气泡 / 全屏歌词 / 加载态 / 过渡动画
   ============================================================ */

/* ---- 全屏容器：使用动态视口高度，杜绝手机浏览器地址栏导致的“只显示一半” ---- */
/* 统一 border-box：height:100dvh 必须包含上下 padding/安全区，否则矮屏会把控制条顶出屏幕 */
.rxm, .rxm *,
.rxm-panel, .rxm-panel *,
.rxm-ticker, .rxm-ticker *,
.rxm-invite, .rxm-invite *,
.rxm-queue-panel, .rxm-queue-panel *,
.rxm-immersive, .rxm-immersive *,
.rxm-lrc-full, .rxm-lrc-full * { box-sizing: border-box; }
.rxm-immersive {
  height: 100vh; height: 100dvh;
  padding: calc(8px + env(safe-area-inset-top)) 0 calc(6px + env(safe-area-inset-bottom));
}
.rxm-im-top { padding: 0 clamp(16px, 4vw, 34px); flex: 0 0 auto; }
.rxm-im-body {
  position: relative; z-index: 2;
  flex: 1 1 auto; min-height: 0;
  display: flex; flex-direction: column;
  padding: 0 clamp(16px, 5vw, 44px);
}
.rxm-im-main { flex: 0 0 auto; min-height: 0; display: flex; flex-direction: column; }

/* ---- 赛博朋克背景：霓虹网格 ---- */
.rxm-im-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(217, 70, 239, .13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 85, 247, .12) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(130% 95% at 50% 18%, #000 25%, transparent 78%);
  mask-image: radial-gradient(130% 95% at 50% 18%, #000 25%, transparent 78%);
  animation: rxmGridMove 6.5s linear infinite;
  opacity: .8;
}
@keyframes rxmGridMove { from { background-position: 0 0, 0 0; } to { background-position: 0 46px, 0 0; } }

/* ---- 复古合成器浪潮太阳（横向霓虹切条） ---- */
.rxm-im-sun {
  position: absolute; left: 50%; top: 4%;
  width: min(50vmin, 380px); height: min(50vmin, 380px);
  margin-left: calc(min(50vmin, 380px) / -2);
  border-radius: 50%; pointer-events: none;
  background: linear-gradient(to bottom, #fbcfe8 0%, #f0abfc 22%, #d946ef 46%, #a855f7 72%, #6d28d9 100%);
  -webkit-mask-image: repeating-linear-gradient(to bottom, #000 0 12px, rgba(0,0,0,.15) 12px 16px);
  mask-image: repeating-linear-gradient(to bottom, #000 0 12px, rgba(0,0,0,.15) 12px 16px);
  box-shadow: 0 0 120px rgba(217, 70, 239, .45);
  opacity: .42;
  animation: rxmSunPulse 8s ease-in-out infinite;
}
@keyframes rxmSunPulse { 0%, 100% { opacity: .34; } 50% { opacity: .52; } }

/* ---- 缓慢旋转的紫色光束 ---- */
.rxm-im-rays {
  position: absolute; left: 50%; top: 44%;
  width: 150vmax; height: 150vmax; pointer-events: none;
  transform: translate(-50%, -50%);
  background: repeating-conic-gradient(from 0deg,
    rgba(217, 70, 239, .09) 0deg 5deg, transparent 5deg 15deg);
  -webkit-mask-image: radial-gradient(circle, transparent 16%, #000 42%, transparent 72%);
  mask-image: radial-gradient(circle, transparent 16%, #000 42%, transparent 72%);
  animation: rxmRaysRotate 70s linear infinite;
  opacity: .8;
}
@keyframes rxmRaysRotate { to { transform: translate(-50%, -50%) rotate(360deg); } }

/* ---- 双层漂移星尘 ---- */
.rxm-im-stars {
  position: absolute; inset: -12% 0; pointer-events: none;
  background-image:
    radial-gradient(1.6px 1.6px at 24px 34px, rgba(255,255,255,.9), transparent),
    radial-gradient(1px 1px at 86px 128px, rgba(240,171,252,.85), transparent),
    radial-gradient(1.3px 1.3px at 160px 64px, rgba(255,255,255,.7), transparent),
    radial-gradient(1px 1px at 200px 180px, rgba(216,180,254,.7), transparent);
  background-size: 230px 230px;
  animation: rxmStarsDrift 46s linear infinite, rxmStarsTwinkle 4.5s ease-in-out infinite;
  opacity: .65;
}
.rxm-im-stars.s2 { background-size: 340px 340px; animation-duration: 78s, 6.5s; opacity: .45; }
@keyframes rxmStarsDrift { from { transform: translateY(0); } to { transform: translateY(-230px); } }
@keyframes rxmStarsTwinkle { 0%, 100% { opacity: .4; } 50% { opacity: .85; } }

/* ---- 扫描线 + 周期性扫光 ---- */
.rxm-im-scan {
  position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,.035) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay; overflow: hidden;
}
.rxm-im-scan::after {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 22%;
  background: linear-gradient(to bottom, transparent, rgba(240,171,252,.12), transparent);
  animation: rxmScanSweep 7.5s linear infinite;
}
@keyframes rxmScanSweep { from { transform: translateY(-32vh); } to { transform: translateY(125vh); } }

/* ---- 碟心 RX 霓虹标识（面板 + 全屏同风格） ---- */
.rxm-rx {
  font-weight: 900; font-style: italic; letter-spacing: -1px;
  font-family: "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 15px; line-height: 1;
  background: linear-gradient(135deg, #ffffff 0%, #f5d0fe 34%, #e879f9 66%, #a855f7 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 0 6px rgba(217, 70, 239, .65));
}
.rxm-im-disc-note .rxm-rx { font-size: clamp(26px, 7vmin, 42px); }
.rxm-im-disc-note { z-index: 2; }

/* ---- 全屏打开时主页迷你歌词双保险隐藏 ---- */
body.rxm-im-open .rxm-ticker { opacity: 0 !important; pointer-events: none !important; visibility: hidden !important; }

/* ---- 进度条圆钮（面板 / 全屏统一，拖动常显、放大命中区） ---- */
.rxm-track { transition: height .14s ease; }
.rxm-scrub {
  position: absolute; top: 50%; left: 0; width: 13px; height: 13px; border-radius: 50%;
  background: #fff; transform: translate(-50%, -50%);
  box-shadow: 0 0 0 3px rgba(217, 70, 239, .35), 0 2px 7px rgba(0,0,0,.55);
  opacity: 0; pointer-events: none;
  transition: opacity .15s ease, transform .14s cubic-bezier(.34,1.5,.5,1);
}
.rxm-track::before { content: ''; position: absolute; left: 0; right: 0; top: -10px; bottom: -10px; }
.rxm-track:hover .rxm-scrub,
.rxm-track.dragging .rxm-scrub { opacity: 1; }
.rxm-track.dragging .rxm-scrub { transform: translate(-50%, -50%) scale(1.3); }
.rxm-seeking .rxm-track { height: 6px; }
.rxm-im-scrub { width: 14px; height: 14px; }

/* ---- 上下滑手势快进 / 回退气泡 ---- */
.rxm-seek-bubble {
  position: absolute; left: 50%; top: 50%; z-index: 6;
  transform: translate(-50%, -50%) scale(.85);
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 14px 24px; border-radius: 16px; white-space: nowrap;
  background: rgba(20, 12, 38, .92);
  border: 1px solid rgba(240, 171, 252, .42);
  box-shadow: 0 14px 44px rgba(0,0,0,.6), 0 0 28px rgba(217,70,239,.4);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  color: #fff; opacity: 0; pointer-events: none;
  transition: opacity .16s ease, transform .16s cubic-bezier(.34,1.4,.5,1);
}
.rxm-seek-bubble.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.rxm-sb-arrow { font-size: 20px; line-height: 1; color: #f0abfc; text-shadow: 0 0 14px rgba(217,70,239,.95);
  animation: rxmSbBob .55s ease-in-out infinite alternate; }
.rxm-seek-bubble b { font-size: 15px; font-weight: 800; }
.rxm-sb-time { font-size: 12px; color: rgba(255,255,255,.62); font-variant-numeric: tabular-nums; }
@keyframes rxmSbBob { from { transform: translateY(-2px); } to { transform: translateY(2px); } }

/* ---- 全屏歌词抽屉（点击唱片 / 迷你歌词放大进入） ---- */
.rxm-lrc-full {
  position: absolute; inset: 0; z-index: 8;
  display: flex; flex-direction: column;
  background: linear-gradient(to bottom, rgba(22, 13, 44, .97), rgba(11, 7, 26, .99));
  backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px);
  padding: calc(10px + env(safe-area-inset-top)) 20px calc(18px + env(safe-area-inset-bottom));
  opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(26px);
  transition: opacity .3s ease, transform .34s cubic-bezier(.34,1.15,.5,1), visibility 0s linear .34s;
}
.rxm-lrc-full.open {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0);
  transition: opacity .3s ease, transform .34s cubic-bezier(.34,1.15,.5,1), visibility 0s;
}
.rxm-lrc-full-head { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; height: 44px; }
.rxm-lrc-full-title { font-size: 12px; letter-spacing: 3px; color: rgba(255,255,255,.58); }
.rxm-lrc-full-close { font-size: 20px; }
.rxm-lrc-full-list {
  flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch;
  text-align: center; padding: 36% 0; scroll-behavior: smooth;
}
.rxm-fl-line {
  font-size: 16px; line-height: 2.35; color: rgba(255,255,255,.4);
  cursor: pointer; padding: 0 12px;
  transition: color .25s ease, transform .25s ease, text-shadow .25s ease, font-weight .25s ease;
}
.rxm-fl-line.active { color: #fff; font-weight: 800; transform: scale(1.06); text-shadow: 0 0 22px rgba(217,70,239,.85); }
.rxm-lrc-full-empty { color: rgba(255,255,255,.45); font-size: 14px; line-height: 2.2; }

/* ---- 加载态：播放钮转圈 + 唱片辉光呼吸 ---- */
.rxm.is-loading .rxm-play, .rxm.is-loading .rxm-im-play { position: relative; }
.rxm.is-loading .rxm-play::after, .rxm.is-loading .rxm-im-play::after {
  content: ''; position: absolute; inset: 8px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.35); border-top-color: #fff;
  animation: rxmBtnSpin .72s linear infinite;
}
.rxm.is-loading .rxm-im-play::after { inset: 10px; }
@keyframes rxmBtnSpin { to { transform: rotate(360deg); } }
.rxm.is-loading .rxm-im-disc {
  box-shadow: 0 26px 70px rgba(0,0,0,.6), 0 0 96px rgba(217,70,239,.58), inset 0 0 0 1px rgba(255,255,255,.12);
}

/* ---- 触控手感：去点击高亮 / 禁双击缩放 / 加大热区 / 按压反馈 ---- */
.rxm-btn, .rxm-icon-btn, .rxm-queue-item, .rxm-fl-line, .rxm-ticker,
.rxm-invite-yes, .rxm-invite-x, .rxm-deck-open { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.rxm-im-stage, .rxm-im-lrc { -webkit-tap-highlight-color: transparent; }
.rxm-im-stage { cursor: pointer; }
.rxm-im-lrc { cursor: pointer; touch-action: none; }
.rxm-im-controls .rxm-btn { padding: 8px; }
.rxm-im-controls .rxm-btn:active { transform: scale(.86); }
.rxm-queue-item { transition: background .18s ease, transform .16s ease; }
.rxm-queue-item:active { transform: scale(.98); }
.rxm-fl-line:active { transform: scale(.98); }

/* ---- 全屏入场错峰动画 ---- */
.rxm-immersive.open .rxm-im-top,
.rxm-immersive.open .rxm-im-stage,
.rxm-immersive.open .rxm-im-info,
.rxm-immersive.open .rxm-im-lrc,
.rxm-immersive.open .rxm-im-progress,
.rxm-immersive.open .rxm-im-controls { animation: rxmImRise .52s cubic-bezier(.22,.9,.3,1) both; }
.rxm-immersive.open .rxm-im-top { animation-delay: .02s; }
.rxm-immersive.open .rxm-im-stage { animation-delay: .07s; }
.rxm-immersive.open .rxm-im-info { animation-delay: .15s; }
.rxm-immersive.open .rxm-im-lrc { animation-delay: .2s; }
.rxm-immersive.open .rxm-im-progress { animation-delay: .24s; }
.rxm-immersive.open .rxm-im-controls { animation-delay: .28s; }
@keyframes rxmImRise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

/* ---- 手机竖屏：收紧碟片 / 间距，全部内容在安全区内完整显示 ---- */
@media (max-width: 640px) {
  .rxm-immersive { padding: calc(6px + env(safe-area-inset-top)) 0 calc(4px + env(safe-area-inset-bottom)); }
  .rxm-im-top { height: 42px; padding: 0 10px; }
  .rxm-im-top .rxm-icon-btn { width: 34px; height: 34px; }
  .rxm-im-body { padding: 0 14px; }
  .rxm-im-disc { width: min(50vw, 196px); height: min(50vw, 196px); }
  .rxm-im-info { padding: 2px 6px 0; }
  .rxm-im-name { font-size: 17px; }
  .rxm-im-artist { font-size: 12px; margin-top: 3px; }
  .rxm-im-mode-tag { margin-top: 6px; padding: 2px 10px; font-size: 10.5px; }
  .rxm-im-lrc { height: 58px; margin: 5px 0 2px; }
  .rxm-im-lrc .rxm-line { font-size: 13px; line-height: 23px; }
  .rxm-im-progress { padding: 4px 4px 0; }
  .rxm-im-controls { gap: clamp(12px, 6.5vw, 26px); margin-top: 7px; }
  .rxm-im-controls .rxm-btn { padding: 9px; }
  .rxm-im-play-big { width: 60px; height: 60px; }
  .rxm-im-play-big svg { width: 28px; height: 28px; }
  .rxm-fl-line { font-size: 15px; line-height: 2.3; }
  .rxm-lrc-full-list { padding: 30% 0; }
}

/* ---- 横屏 / 矮屏：舞台与信息左右分栏，杜绝横屏显示不全 ---- */
@media (max-height: 560px) {
  .rxm-immersive { padding: calc(4px + env(safe-area-inset-top)) 0 calc(4px + env(safe-area-inset-bottom)); }
  .rxm-im-top { height: 38px; }
  .rxm-im-body { flex-direction: row; align-items: center; gap: clamp(12px, 4vw, 44px); padding: 0 clamp(14px, 4vw, 56px); }
  .rxm-im-stage { flex: 0 0 auto; width: min(48vh, 40vw); height: 100%; padding: 0; }
  .rxm-im-disc { width: min(44vh, 38vw); height: min(44vh, 38vw); }
  .rxm-im-main { flex: 1 1 auto; min-width: 0; max-width: 580px; overflow-y: auto; }
  .rxm-im-info { padding: 0 8px; }
  .rxm-im-lrc { height: 52px; margin: 4px 0; }
  .rxm-im-lrc .rxm-line { font-size: 12.5px; line-height: 21px; }
  .rxm-im-controls { margin-top: 6px; gap: clamp(12px, 4vw, 30px); }
  .rxm-im-play-big { width: 56px; height: 56px; }
  .rxm-im-play-big svg { width: 26px; height: 26px; }
  .rxm-im-sun { top: -12%; opacity: .3; }
}
/* 极矮横屏：隐藏迷你歌词（仍可点唱片 / 歌词区进入全屏歌词） */
@media (max-height: 430px) {
  .rxm-im-lrc { display: none; }
  .rxm-im-mode-tag { display: none; }
  .rxm-im-stage { width: min(42vh, 36vw); }
  .rxm-im-disc { width: min(40vh, 32vw); height: min(40vh, 32vw); }
}
