/* Xeonists Music Player — 网易云风格专辑播放器 */
.xmp {
  --xmp-bg1: #2b2150;
  --xmp-bg2: #171130;
  --xmp-accent: #8b6dff;
  --xmp-accent2: #a88bff;
  --xmp-text: #ece8fb;
  --xmp-muted: rgba(236, 232, 251, 0.45);
  position: relative;
  max-width: 1080px;
  margin: 2em auto;
  border-radius: 20px;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 18% 30%, var(--xmp-bg1) 0%, var(--xmp-bg2) 70%),
    var(--xmp-bg2);
  color: var(--xmp-text);
  box-shadow: 0 18px 60px rgba(30, 15, 80, 0.45);
  font-size: 15px;
  line-height: 1.6;
}
.xmp * { box-sizing: border-box; }
.xmp {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ===== 舞台区：唱片 + 信息 ===== */
.xmp-stage {
  display: flex;
  align-items: center;
  gap: 4%;
  padding: 48px 6% 40px;
  min-height: 460px;
}

/* --- 黑胶唱片 --- */
.xmp-disc-wrap {
  position: relative;
  flex: 0 0 340px;
  width: 340px;
  height: 340px;
  margin-right: 2%;
}
.xmp-disc {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 0 0 6px rgba(255,255,255,0.04), 0 0 60px rgba(139, 109, 255, 0.35);
  animation: xmp-spin 14s linear infinite;
  animation-play-state: paused;
}
.xmp.is-playing .xmp-disc { animation-play-state: running; }
.xmp-disc img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.xmp-hole {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9%;
  height: 9%;
  transform: translate(-50%, -50%);
  background: var(--xmp-bg2);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(23, 17, 48, 0.8), inset 0 0 6px rgba(0,0,0,0.6);
}
@keyframes xmp-spin { to { transform: rotate(360deg); } }

/* 光环 */
.xmp-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
}
.xmp-ring.r1 { width: 112%; height: 112%; border: 1px solid rgba(168, 139, 255, 0.35); }
.xmp-ring.r2 { width: 126%; height: 126%; border: 1px solid rgba(168, 139, 255, 0.22); }
.xmp-ring.r3 { width: 142%; height: 142%; border: 1px solid rgba(168, 139, 255, 0.12); }

/* 旋转光晕 */
.xmp-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150%;
  height: 150%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: conic-gradient(from 0deg,
    transparent 0deg,
    rgba(160, 130, 255, 0.55) 55deg,
    rgba(255, 255, 255, 0.5) 70deg,
    rgba(160, 130, 255, 0.55) 85deg,
    transparent 140deg);
  filter: blur(18px);
  animation: xmp-spin 7s linear infinite;
  animation-play-state: paused;
  pointer-events: none;
  z-index: -1;
}
.xmp.is-playing .xmp-glow { animation-play-state: running; }

/* --- 右侧信息 --- */
.xmp-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.xmp-title,
.xmp .xmp-info h3 {
  margin: 0 0 16px !important;
  padding: 0 !important;
  color: #fff !important;
  font-size: 32px !important;
  font-weight: 700 !important;
  font-family: inherit !important;
  line-height: 1.25 !important;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 18px rgba(139, 109, 255, 0.35);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.xmp-meta {
  display: flex !important;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 26px !important;
  padding: 0 !important;
}
.xmp-meta-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  line-height: 1.5;
  margin: 0;
}
.xmp-label {
  flex: 0 0 auto;
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--xmp-muted);
  position: relative;
  padding-left: 10px;
}
.xmp-label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 12px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--xmp-accent), var(--xmp-accent2));
}
.xmp-value {
  font-size: 15.5px;
  color: rgba(236, 232, 251, 0.88);
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.xmp-lyrics {
  position: relative;
  height: 300px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 18%, #000 82%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0, #000 18%, #000 82%, transparent 100%);
}
.xmp-lyrics ul {
  list-style: none;
  margin: 0;
  padding: 0;
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.xmp-lyrics li {
  padding: 9px 0;
  color: var(--xmp-muted);
  font-size: 15px;
  transition: color 0.3s, font-size 0.3s, text-shadow 0.3s;
  cursor: default;
  white-space: pre-wrap;
}
.xmp-lyrics li.active {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  text-shadow: 0 0 22px rgba(168, 139, 255, 0.65);
}
.xmp-nolyric {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  text-align: center;
  color: var(--xmp-muted);
  display: none;
}
.xmp-lyrics.no-lrc .xmp-nolyric { display: block; }

/* ===== 底部控制条 ===== */
.xmp-bar { position: relative; }
.xmp-progress {
  position: relative;
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: height 0.15s;
}
.xmp-progress:hover { height: 7px; }
.xmp-progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--xmp-accent), var(--xmp-accent2));
  border-radius: 0 3px 3px 0;
  position: relative;
}
.xmp-progress-fill::after {
  content: "";
  position: absolute;
  right: -6px;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  transform: translateY(-50%) scale(0);
  transition: transform 0.15s;
  box-shadow: 0 0 10px rgba(168, 139, 255, 0.8);
}
.xmp-progress:hover .xmp-progress-fill::after { transform: translateY(-50%) scale(1); }

.xmp-bar-inner {
  display: flex;
  align-items: center;
  padding: 14px 26px 18px;
  gap: 20px;
}
.xmp-now {
  flex: 1;
  min-width: 0;
  line-height: 1.35;
}
.xmp-now-title {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #fff !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.xmp-now-artist {
  font-size: 12.5px;
  color: var(--xmp-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.xmp-ctrl {
  display: flex;
  align-items: center;
  gap: 10px;
}
.xmp-btn {
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  color: var(--xmp-text);
  opacity: 0.85;
  border-radius: 50%;
  transition: opacity 0.2s, background 0.2s, transform 0.1s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.xmp-btn:hover { opacity: 1; background: rgba(255,255,255,0.08); }
.xmp-btn:active { transform: scale(0.92); }
.xmp-btn svg { width: 20px; height: 20px; fill: currentColor; }
.xmp-btn.xmp-big {
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.1);
}
.xmp-btn.xmp-big:hover { background: rgba(255, 255, 255, 0.16); }
.xmp-btn.xmp-big svg { width: 24px; height: 24px; }
.xmp .ic-pause { display: none; }
.xmp.is-playing .ic-pause { display: block; }
.xmp.is-playing .ic-play { display: none; }

.xmp-vol {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}
.xmp-vol-range {
  width: 110px;
  accent-color: var(--xmp-accent);
  cursor: pointer;
}

/* ===== 播放列表面板 ===== */
.xmp-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 300px;
  background: rgba(20, 14, 42, 0.97);
  backdrop-filter: blur(14px);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.3, 1);
  z-index: 5;
  display: flex;
  flex-direction: column;
  border-left: 1px solid rgba(168, 139, 255, 0.18);
}
.xmp.panel-open .xmp-panel { transform: translateX(0); }
.xmp-panel-head {
  padding: 16px 14px 10px 22px;
  font-size: 14px;
  color: var(--xmp-muted);
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.xmp-panel-close svg { width: 16px; height: 16px; }
.xmp-panel ol {
  list-style: none;
  margin: 0;
  padding: 0 8px 20px;
  overflow-y: auto;
  flex: 1;
}
.xmp-panel li {
  padding: 11px 14px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--xmp-muted);
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.2s, color 0.2s;
}
.xmp-panel li:hover { background: rgba(255,255,255,0.06); color: var(--xmp-text); }
.xmp-panel li.current {
  color: var(--xmp-accent2);
  font-weight: 600;
}
.xmp-idx { margin-right: 8px; opacity: 0.6; }

/* ===== 响应式 ===== */
@media (max-width: 760px) {
  .xmp-stage {
    flex-direction: column;
    padding: 36px 7% 28px;
    gap: 26px;
    min-height: 0;
  }
  .xmp-disc-wrap {
    flex-basis: auto;
    width: 230px;
    height: 230px;
  }
  .xmp-title { font-size: 22px; }
  .xmp-lyrics { height: 200px; }
  .xmp-bar-inner { flex-wrap: wrap; gap: 12px; padding: 12px 18px 14px; }
  .xmp-now { flex-basis: 100%; order: -1; }
  .xmp-vol-range { width: 70px; }
  .xmp-panel { width: 100%; border-left: 0; border-top: 1px solid rgba(168,139,255,0.18); }
}
