/* ============================================================
   MKY 音乐内核 · 喵九工具站适配版
   绿色霓虹主题，与 style.css 的 --accent 变量保持一致
   ============================================================ */

/* ---------- 迷你播放条（底部导航上方） ---------- */
/* 基础尺寸/布局由 style.css 提供，此处仅补充 show / active / 动画 */
.music-player.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.music-player.expanded:active {
  transform: translateY(0) scale(0.985);
}

/* 唱片光泽层（style.css 无） */
.mp-disc::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(125deg,
    rgba(255, 255, 255, 0.16) 0%,
    rgba(255, 255, 255, 0) 42%,
    rgba(255, 255, 255, 0) 60%,
    rgba(255, 255, 255, 0.08) 100%);
  pointer-events: none;
  z-index: 2;
}

/* MKY 内核使用 .spinning，style.css 使用 .playing —— 两者都保留 */
.mp-disc.spinning {
  animation: mp-spin 9s linear infinite;
}
@keyframes mp-spin {
  to { transform: rotate(360deg); }
}

/* 歌词切换动画（style.css 无） */
.mp-lyric-track.swap {
  transform: translateY(-100%);
  opacity: 0;
}

/* 播放/暂停图标切换（style.css 使用 .mp-btn.playing，MKY 使用 .music-player.playing） */
.mp-btn .mp-ico-pause { display: none; }
.music-player.playing .mp-btn .mp-ico-play { display: none; }
.music-player.playing .mp-btn .mp-ico-pause { display: block; }

/* 进度条高亮增强（发光减弱，避免溢出遮挡唱片） */
.mp-progress-fill {
  box-shadow: 0 0 3px rgba(74, 222, 128, 0.5);
}

/* 收藏按钮 */
.mp-btn.liked { color: #ff4d8d; }
.mp-btn.liked svg { fill: currentColor; }

/* ============================================================
   全屏播放器
   ============================================================ */
.music-full {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 100%;
  max-width: 420px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  background: var(--bg-deep);
  transform: translateY(100%);
  transition: transform 0.36s cubic-bezier(0.32, 0.72, 0, 1), visibility 0s 0.36s;
  overflow: hidden;
  pointer-events: none;
  visibility: hidden;
}

.music-full.open {
  transform: translateY(0);
  pointer-events: auto;
  visibility: visible;
  transition: transform 0.36s cubic-bezier(0.32, 0.72, 0, 1), visibility 0s 0s;
}

/* 背景光晕 */
.music-full::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 12%, rgba(74, 222, 128, 0.22), transparent 46%),
    radial-gradient(circle at 82% 78%, rgba(168, 85, 247, 0.18), transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(56, 189, 248, 0.10), transparent 60%);
  pointer-events: none;
}

/* 顶部栏 */
.mf-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px 10px;
  flex: 0 0 auto;
}

.mf-close {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(74, 222, 128, 0.1);
  color: var(--accent-bright);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  transition: background 0.18s, transform 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.mf-close:active {
  transform: scale(0.9);
  background: rgba(74, 222, 128, 0.2);
}

.mf-close svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.mf-head-title {
  flex: 1 1 auto;
  min-width: 0;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.mf-head-btn {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--text-secondary);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  transition: color 0.18s, background 0.18s;
  -webkit-tap-highlight-color: transparent;
}

.mf-head-btn.active {
  color: var(--accent);
  background: rgba(74, 222, 128, 0.12);
}

.mf-head-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 主体 */
.mf-body {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0 22px;
}

/* 封面唱片 */
.mf-cover-stage {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  padding: 8px 0 16px;
}

.mf-cover {
  position: relative;
  width: min(58vw, 220px);
  height: min(58vw, 220px);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%,
    #1A3A1A 0%, #0F2B0F 58%, #061206 100%);
  border: 1px solid rgba(74, 222, 128, 0.2);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6),
              0 0 40px rgba(74, 222, 128, 0.16),
              inset 0 0 40px rgba(0, 0, 0, 0.5);
  display: grid;
  place-items: center;
  overflow: hidden;
  transition: transform 0.4s ease;
}

.mf-cover.spinning {
  animation: mp-spin 16s linear infinite;
}

.mf-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.mf-cover-hole {
  position: relative;
  z-index: 2;
  width: 26%;
  height: 26%;
  border-radius: 50%;
  background: var(--bg-deep);
  border: 1px solid rgba(74, 222, 128, 0.28);
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.85);
}

.mf-cover.no-img .mf-cover-hole {
  background: radial-gradient(circle at 40% 35%,
    var(--accent-dim), #0a1f0a 70%);
  box-shadow: 0 0 24px rgba(74, 222, 128, 0.5);
}

.mf-cover.no-img img { display: none; }

/* 歌曲信息 */
.mf-song {
  flex: 0 0 auto;
  text-align: center;
  padding-bottom: 12px;
}

.mf-song-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}

.mf-song-artist {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 歌词区 */
.mf-lyrics {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  text-align: center;
  padding: 8px 4px;
  mask-image: linear-gradient(to bottom,
    transparent 0%, #000 16%, #000 84%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom,
    transparent 0%, #000 16%, #000 84%, transparent 100%);
  scrollbar-width: none;
}

.mf-lyrics::-webkit-scrollbar { display: none; }

.mf-lyric-line {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text-muted);
  padding: 5px 0;
  transition: color 0.3s, transform 0.3s, opacity 0.3s;
  opacity: 0.55;
  transform: scale(0.96);
}

.mf-lyric-line.active {
  color: var(--accent-bright);
  font-weight: 600;
  opacity: 1;
  transform: scale(1.02);
  text-shadow: 0 0 16px rgba(74, 222, 128, 0.45);
}

/* 进度 */
.mf-progress-wrap {
  flex: 0 0 auto;
  padding: 10px 0 4px;
}

.mf-progress {
  position: relative;
  height: 20px;
  display: flex;
  align-items: center;
  cursor: pointer;
  touch-action: none;
}

.mf-progress-track {
  position: relative;
  width: 100%;
  height: 4px;
  border-radius: 4px;
  background: rgba(74, 222, 128, 0.16);
  overflow: hidden;
}

.mf-progress-buf {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: rgba(74, 222, 128, 0.22);
  border-radius: 4px;
}

.mf-progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
  border-radius: 4px;
  box-shadow: 0 0 12px rgba(74, 222, 128, 0.65);
}

.mf-progress-dot {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 12px rgba(74, 222, 128, 0.9);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}

.mf-progress:hover .mf-progress-dot,
.mf-progress.dragging .mf-progress-dot {
  opacity: 1;
}

.mf-time {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
}

/* 主控制 */
.mf-controls {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 4px 26px;
}

.mf-ctrl {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  border-radius: 50%;
  transition: color 0.18s, transform 0.15s, background 0.18s;
  -webkit-tap-highlight-color: transparent;
}

.mf-ctrl:active { transform: scale(0.88); }
.mf-ctrl.active { color: var(--accent); }

.mf-ctrl svg {
  fill: currentColor;
}

.mf-ctrl-side {
  width: 42px;
  height: 42px;
}

.mf-ctrl-side svg {
  width: 20px;
  height: 20px;
}

.mf-ctrl-play {
  width: 62px;
  height: 62px;
  background: linear-gradient(135deg, var(--accent), #22c55e);
  color: #04140a;
  box-shadow: 0 8px 26px rgba(74, 222, 128, 0.42),
              0 0 30px rgba(74, 222, 128, 0.28);
}

.mf-ctrl-play:active {
  transform: scale(0.92);
}

.mf-ctrl-play svg {
  width: 26px;
  height: 26px;
}

.mf-ctrl-play .mf-ico-pause { display: none; }
.music-full.playing .mf-ctrl-play .mf-ico-play { display: none; }
.music-full.playing .mf-ctrl-play .mf-ico-pause { display: block; }

/* ============================================================
   搜索 / 榜单面板（复用主站 .search-panel 外壳）
   ============================================================ */
.search-panel {
  position: fixed;
  inset: 0;
  z-index: 320;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s, visibility 0.25s;
}

.search-panel.open {
  visibility: visible;
  opacity: 1;
}

.search-panel-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.search-panel-box {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: 78vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border-radius: 26px 26px 0 0;
  border: 1px solid var(--border);
  border-bottom: none;
  box-shadow: 0 -16px 48px rgba(0, 0, 0, 0.65);
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
  overflow: hidden;
}

.search-panel.open .search-panel-box {
  transform: translateY(0);
}

.search-panel-header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 10px;
}

.search-panel-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.search-panel-close {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: rgba(74, 222, 128, 0.1);
  color: var(--text-secondary);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  transition: background 0.18s, transform 0.15s;
}

.search-panel-close:active {
  transform: scale(0.9);
  background: rgba(74, 222, 128, 0.2);
}

.search-panel-close svg {
  width: 16px;
  height: 16px;
}

/* 输入行 */
.search-panel-input-row {
  flex: 0 0 auto;
  display: flex;
  gap: 8px;
  padding: 0 18px 12px;
}

.search-panel-input-row input {
  flex: 1 1 auto;
  min-width: 0;
  height: 40px;
  padding: 0 14px;
  border-radius: 13px;
  border: 1px solid var(--border);
  background: rgba(5, 10, 5, 0.6);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.search-panel-input-row input::placeholder {
  color: var(--text-muted);
}

.search-panel-input-row input:focus {
  border-color: rgba(74, 222, 128, 0.45);
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.1);
}

.search-panel-input-row button {
  flex: 0 0 auto;
  height: 40px;
  padding: 0 18px;
  border: none;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--accent), #22c55e);
  color: #04140a;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.18s, transform 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.search-panel-input-row button:active {
  transform: scale(0.95);
  filter: brightness(0.92);
}

/* 结果列表 */
.search-panel-results {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 10px 18px;
  scrollbar-width: none;
}

.search-panel-results::-webkit-scrollbar { display: none; }

.search-placeholder {
  padding: 34px 20px;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* 榜单快捷入口 */
.mpr-chart-tabs {
  display: flex;
  gap: 7px;
  padding: 0 8px 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.mpr-chart-tabs::-webkit-scrollbar { display: none; }

.mpr-chart-tab {
  flex: 0 0 auto;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: rgba(74, 222, 128, 0.06);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s;
  -webkit-tap-highlight-color: transparent;
}

.mpr-chart-tab.active {
  background: linear-gradient(135deg,
    rgba(74, 222, 128, 0.28), rgba(56, 189, 248, 0.2));
  border-color: rgba(74, 222, 128, 0.5);
  color: var(--accent-bright);
  box-shadow: 0 0 14px rgba(74, 222, 128, 0.24);
}

/* 歌曲行 */
.mpr-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 13px;
  cursor: pointer;
  transition: background 0.16s;
  -webkit-tap-highlight-color: transparent;
}

.mpr-item:active {
  background: rgba(74, 222, 128, 0.1);
}

.mpr-item.playing {
  background: rgba(74, 222, 128, 0.13);
}

.mpr-index {
  flex: 0 0 auto;
  width: 20px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.mpr-item.playing .mpr-index {
  color: var(--accent);
}

.mpr-item-cover {
  position: relative;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(74, 222, 128, 0.14), rgba(56, 189, 248, 0.1));
  display: grid;
  place-items: center;
}

.mpr-item-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mpr-item-cover svg {
  width: 16px;
  height: 16px;
  fill: var(--text-muted);
  position: absolute;
}

.mpr-item-cover img + svg { display: none; }

.mpr-item-info {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mpr-item-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.mpr-item.playing .mpr-item-name {
  color: var(--accent-bright);
}

.mpr-item-sub {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

/* 加载中 */
.mpr-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 30px 0;
  font-size: 12px;
  color: var(--text-muted);
}

.mpr-spinner {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid rgba(74, 222, 128, 0.2);
  border-top-color: var(--accent);
  animation: mpr-rotate 0.7s linear infinite;
}

@keyframes mpr-rotate {
  to { transform: rotate(360deg); }
}

/* 小屏适配 */
@media (max-height: 620px) {
  .mf-cover { width: min(46vw, 160px); height: min(46vw, 160px); }
  .mf-cover-stage { padding: 2px 0 10px; }
  .mf-ctrl-play { width: 54px; height: 54px; }
  .mf-controls { padding: 6px 4px 18px; }
  .mf-lyrics { padding: 4px; }
}

/* ============================================================
   UI 精修 v1.1
   —— 封面壁纸、层级、动效、间距节奏
   ============================================================ */

/* ---------- 层级修正：背景在底，内容在上 ---------- */
.music-full::before { z-index: 0; }

/* 封面模糊壁纸 */
.mf-bg {
  position: absolute;
  inset: -14%;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(52px) saturate(1.6) brightness(0.38);
  opacity: 0;
  transform: scale(1.15);
  transition: opacity 0.9s ease;
  pointer-events: none;
}

.mf-bg.on { opacity: 1; }

/* 暗色遮罩，保证前景文字对比度 */
.music-full::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(5, 10, 5, 0.42) 0%,
    rgba(5, 10, 5, 0.68) 38%,
    rgba(5, 10, 5, 0.9) 72%,
    rgba(5, 10, 5, 0.97) 100%);
  pointer-events: none;
}

/* ---------- 头部按钮精修 ---------- */
.mf-header { padding: 16px 18px 12px; }

.mf-head-btn,
.mf-close {
  flex: 0 0 auto;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.mf-head-btn {
  background: rgba(74, 222, 128, 0.07);
  border: 1px solid rgba(74, 222, 128, 0.12);
}

.mf-head-btn:active {
  transform: scale(0.9);
  background: rgba(74, 222, 128, 0.18);
}

.mf-head-btn.active {
  color: #04140a;
  background: linear-gradient(135deg, var(--accent), #22c55e);
  border-color: transparent;
  box-shadow: 0 0 16px rgba(74, 222, 128, 0.45);
}

.mf-head-title {
  font-size: 11px;
  letter-spacing: 0.22em;
  opacity: 0.72;
}

/* ---------- 封面精修 ---------- */
.mf-cover-stage {
  padding: 4px 0 20px;
}

.mf-cover {
  transition: transform 0.5s cubic-bezier(0.34, 1.3, 0.64, 1),
              box-shadow 0.5s ease;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.68),
              0 0 0 1px rgba(74, 222, 128, 0.14),
              0 0 52px rgba(74, 222, 128, 0.14),
              inset 0 0 46px rgba(0, 0, 0, 0.45);
}

/* 播放时辉光呼吸 */
.music-full.playing .mf-cover {
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.68),
              0 0 0 1px rgba(74, 222, 128, 0.22),
              0 0 64px rgba(74, 222, 128, 0.24),
              inset 0 0 46px rgba(0, 0, 0, 0.45);
}

/* 唱片中心孔 */
.mf-cover-hole {
  width: 22%;
  height: 22%;
  border: 1px solid rgba(74, 222, 128, 0.3);
  box-shadow: inset 0 0 22px rgba(0, 0, 0, 0.9),
              0 0 14px rgba(74, 222, 128, 0.2);
}

/* ---------- 歌曲信息 ---------- */
.mf-song { padding-bottom: 6px; }

.mf-song-name {
  font-size: 18px;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
}

.mf-song-artist {
  font-size: 12.5px;
  color: rgba(129, 199, 132, 0.92);
  letter-spacing: 0.02em;
}

/* ---------- 歌词精修 ---------- */
.mf-lyrics {
  padding: 14px 8px;
  mask-image: linear-gradient(to bottom,
    transparent 0%, #000 20%, #000 80%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom,
    transparent 0%, #000 20%, #000 80%, transparent 100%);
}

.mf-lyric-line {
  font-size: 13.5px;
  line-height: 1.9;
  color: rgba(232, 245, 233, 0.42);
  padding: 5px 6px;
  border-radius: 8px;
  opacity: 1;
  transform: none;
  transition: color 0.35s ease, transform 0.35s ease,
              text-shadow 0.35s ease;
}

.mf-lyric-line.active {
  color: #fff;
  font-weight: 700;
  transform: scale(1.035);
  text-shadow: 0 0 20px rgba(74, 222, 128, 0.55),
               0 0 44px rgba(74, 222, 128, 0.28);
}

/* ---------- 进度条精修 ---------- */
.mf-progress-wrap { padding: 14px 0 0; }

.mf-progress { height: 26px; }

.mf-progress-track {
  height: 3.5px;
  background: rgba(232, 245, 233, 0.14);
  transition: height 0.2s ease;
}

.mf-progress:hover .mf-progress-track,
.mf-progress.dragging .mf-progress-track {
  height: 5.5px;
}

.mf-progress-fill {
  box-shadow: 0 0 14px rgba(74, 222, 128, 0.75);
}

.mf-progress-dot {
  width: 13px;
  height: 13px;
  margin: -6.5px 0 0 -6.5px;
  box-shadow: 0 0 14px rgba(74, 222, 128, 1),
              0 2px 6px rgba(0, 0, 0, 0.5);
}

.mf-time {
  margin-top: 4px;
  font-size: 10.5px;
  letter-spacing: 0.04em;
  opacity: 0.8;
}

/* ---------- 控制区精修 ---------- */
.mf-controls {
  padding: 14px 10px 30px;
  gap: 8px;
}

.mf-ctrl-side {
  width: 44px;
  height: 44px;
  background: rgba(74, 222, 128, 0.06);
  border: 1px solid rgba(74, 222, 128, 0.1);
}

.mf-ctrl-side:active {
  background: rgba(74, 222, 128, 0.16);
}

.mf-ctrl-play {
  position: relative;
  box-shadow: 0 10px 32px rgba(74, 222, 128, 0.4),
              0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

/* 播放时的外圈脉冲 */
.music-full.playing .mf-ctrl-play::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid rgba(74, 222, 128, 0.45);
  animation: mf-pulse 2.4s ease-out infinite;
  pointer-events: none;
}

@keyframes mf-pulse {
  0%   { transform: scale(0.94); opacity: 0.7; }
  70%  { transform: scale(1.18); opacity: 0; }
  100% { transform: scale(1.18); opacity: 0; }
}

/* ---------- 迷你播放条精修 ---------- */
.music-player {
  padding: 9px 12px 11px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.55),
              0 0 22px rgba(74, 222, 128, 0.1),
              inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.mp-disc {
  box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.16),
              0 0 16px rgba(74, 222, 128, 0.14);
}

.mp-title { font-size: 12.5px; letter-spacing: 0.01em; }

/* 收起按钮：低调，仅 hover/active 时显现 */
.mp-btn-close {
  width: 26px;
  height: 26px;
  margin-left: -2px;
  opacity: 0.42;
  transition: opacity 0.2s, transform 0.15s, background 0.18s;
}

.mp-btn-close svg {
  width: 12px;
  height: 12px;
}

.music-player:hover .mp-btn-close { opacity: 0.8; }
.mp-btn-close:active { opacity: 1; }

.mp-progress {
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2.5px;
}

/* ---------- 搜索面板精修 ---------- */
.search-panel-box {
  max-height: 82vh;
  background: linear-gradient(180deg,
    rgba(15, 43, 15, 0.98) 0%,
    rgba(10, 31, 10, 0.99) 100%);
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.7),
              inset 0 1px 0 rgba(74, 222, 128, 0.12);
}

/* 顶部拖拽提示条 */
.search-panel-box::before {
  content: '';
  position: absolute;
  top: 7px;
  left: 50%;
  width: 34px;
  height: 3.5px;
  margin-left: -17px;
  border-radius: 3px;
  background: rgba(74, 222, 128, 0.24);
}

.search-panel-header { padding: 20px 18px 12px; }

.search-panel-title {
  font-size: 15px;
  letter-spacing: 0.01em;
}

.search-panel-input-row { padding: 0 16px 14px; }

.search-panel-input-row input {
  height: 42px;
  border-radius: 14px;
  font-size: 13.5px;
}

.search-panel-input-row button {
  height: 42px;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(74, 222, 128, 0.3);
}

/* 榜单 chips */
.mpr-chart-tabs {
  padding: 2px 8px 14px;
  gap: 8px;
}

.mpr-chart-tab {
  padding: 7px 15px;
  font-size: 11.5px;
  letter-spacing: 0.02em;
  transition: all 0.2s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.mpr-chart-tab:active { transform: scale(0.95); }

/* 歌曲行 */
.mpr-item {
  padding: 9px 10px;
  border-radius: 14px;
  transition: background 0.16s, transform 0.12s;
}

.mpr-item:active {
  transform: scale(0.985);
  background: rgba(74, 222, 128, 0.12);
}

.mpr-item-cover {
  border-radius: 11px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.mpr-item.playing .mpr-item-cover {
  box-shadow: 0 0 0 1.5px rgba(74, 222, 128, 0.45),
              0 2px 14px rgba(74, 222, 128, 0.3);
}

.mpr-item-name { font-size: 13px; letter-spacing: 0.01em; }

.mpr-item-sub { font-size: 11px; opacity: 0.88; }

.mpr-index {
  font-size: 11px;
  font-weight: 700;
  opacity: 0.9;
}

/* 空状态 / 加载 */
.search-placeholder {
  padding: 40px 24px;
  font-size: 12.5px;
  line-height: 1.9;
  letter-spacing: 0.02em;
  opacity: 0.85;
}

.mpr-loading {
  padding: 40px 0;
  gap: 10px;
  font-size: 12.5px;
  letter-spacing: 0.02em;
}

/* ---------- 入场动效：内容依次浮现 ---------- */
.music-full.open .mf-header,
.music-full.open .mf-cover-stage,
.music-full.open .mf-song,
.music-full.open .mf-lyrics,
.music-full.open .mf-progress-wrap,
.music-full.open .mf-controls {
  animation: mf-rise 0.5s cubic-bezier(0.22, 0.9, 0.3, 1) both;
}

.music-full.open .mf-header        { animation-delay: 0.04s; }
.music-full.open .mf-cover-stage   { animation-delay: 0.09s; }
.music-full.open .mf-song          { animation-delay: 0.14s; }
.music-full.open .mf-lyrics        { animation-delay: 0.19s; }
.music-full.open .mf-progress-wrap { animation-delay: 0.23s; }
.music-full.open .mf-controls      { animation-delay: 0.27s; }

@keyframes mf-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 封面容器单独：缩放弹入（放在 stage 上，避免覆盖封面本体的旋转动画） */
.music-full.open .mf-cover-stage {
  animation: mf-pop 0.55s cubic-bezier(0.34, 1.4, 0.64, 1) 0.08s both;
}

@keyframes mf-pop {
  from { opacity: 0; transform: scale(0.86); }
  to   { opacity: 1; transform: scale(1); }
}

/* 减弱动效偏好 */
@media (prefers-reduced-motion: reduce) {
  .music-full.open .mf-header,
  .music-full.open .mf-cover-stage,
  .music-full.open .mf-song,
  .music-full.open .mf-lyrics,
  .music-full.open .mf-progress-wrap,
  .music-full.open .mf-controls,
  .music-full.open .mf-cover-stage,
  .music-full.playing .mf-ctrl-play::after {
    animation: none !important;
  }
}

/* 小屏进一步压缩 */
@media (max-height: 620px) {
  .mf-cover-stage { padding: 0 0 12px; }
  .mf-lyrics { padding: 8px 4px; }
  .mf-lyric-line { line-height: 1.75; font-size: 13px; }
  .mf-controls { padding: 10px 8px 20px; }
  .mf-ctrl-play { width: 56px; height: 56px; }
  .mf-song-name { font-size: 16px; }
}

/* ---------- 提示层级：需高于全屏播放器 ---------- */
.toast {
  z-index: 420;
  top: 22px;
  font-size: 13px;
  padding: 10px 20px;
  letter-spacing: 0.02em;
}
