/* WP Music Player - player.css */

.wpmp-wrap {
  font-family: 'Noto Serif SC', 'PingFang SC', 'Microsoft YaHei', serif;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  border-radius: 20px;
  padding: 28px 32px 24px;
  max-width: 600px;
  margin: 32px auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.wpmp-wrap::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(circle at 30% 30%, rgba(99, 102, 241, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(236, 72, 153, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

/* --- Header --- */
.wpmp-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}

.wpmp-disc {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #ec4899);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
  animation: wpmp-disc-spin 8s linear infinite;
  animation-play-state: paused;
  overflow: hidden;
}

.wpmp-disc.wpmp-playing {
  animation-play-state: running;
}

@keyframes wpmp-disc-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.wpmp-disc::after {
  content: '';
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #1a1a2e;
  position: absolute;
  z-index: 2;
}

.wpmp-disc svg {
  position: absolute;
  z-index: 3;
  width: 26px;
  height: 26px;
  fill: rgba(255, 255, 255, 0.9);
}

.wpmp-disc img {
  position: absolute;
  z-index: 1;
}

.wpmp-info {
  flex: 1;
  min-width: 0;
}

.wpmp-title {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #fff !important;
  margin: 0 0 4px !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.05em;
  line-height: 1.4 !important;
}

.wpmp-artist {
  font-size: 13px !important;
  color: rgba(255, 255, 255, 0.5) !important;
  margin: 0 !important;
  letter-spacing: 0.08em;
  line-height: 1.4 !important;
}

/* --- Progress --- */
.wpmp-progress-wrap {
  margin-bottom: 18px;
}

.wpmp-time-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 6px;
}

.wpmp-progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.wpmp-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #ec4899);
  border-radius: 2px;
  width: 0%;
  transition: width 0.3s linear;
  position: relative;
}

.wpmp-progress-fill::after {
  content: '';
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 6px rgba(99, 102, 241, 0.8);
}

/* --- Controls --- */
.wpmp-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 22px;
}

.wpmp-btn {
  background: none !important;
  border: none !important;
  cursor: pointer;
  padding: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s, opacity 0.15s;
  opacity: 0.7;
  box-shadow: none !important;
}

.wpmp-btn:hover {
  opacity: 1;
  transform: scale(1.1);
}

.wpmp-btn svg {
  fill: #fff;
}

.wpmp-btn-play {
  width: 52px !important;
  height: 52px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #6366f1, #ec4899) !important;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.5) !important;
  opacity: 1 !important;
}

.wpmp-btn-play:hover {
  transform: scale(1.08) !important;
  opacity: 1 !important;
}

/* --- Volume --- */
.wpmp-volume-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.wpmp-volume-row > svg {
  fill: rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
}

.wpmp-volume-slider {
  flex: 1;
  -webkit-appearance: none;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.15);
  outline: none;
  cursor: pointer;
}

.wpmp-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #ec4899);
  cursor: pointer;
  box-shadow: 0 0 6px rgba(99, 102, 241, 0.6);
}

.wpmp-volume-slider::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #ec4899);
  cursor: pointer;
  border: none;
}

/* --- Lyrics --- */
.wpmp-lyrics-wrap {
  height: 220px;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
}

.wpmp-lyrics-inner {
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  padding: 20px 0;
}

.wpmp-lyric-line {
  text-align: center;
  font-size: 14px !important;
  color: rgba(255, 255, 255, 0.3) !important;
  line-height: 2.0 !important;
  padding: 4px 16px;
  transition: all 0.4s ease;
  cursor: default;
  border-radius: 6px;
  letter-spacing: 0.05em;
}

.wpmp-lyric-line.wpmp-active {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #fff !important;
  text-shadow: 0 0 20px rgba(99, 102, 241, 0.8), 0 0 40px rgba(236, 72, 153, 0.4);
  background: rgba(99, 102, 241, 0.08);
  letter-spacing: 0.08em;
}

.wpmp-lyric-line.wpmp-near {
  color: rgba(255, 255, 255, 0.6) !important;
  font-size: 14.5px !important;
}

/* 无歌词时的提示 */
.wpmp-no-lyrics {
  text-align: center;
  color: rgba(255, 255, 255, 0.25);
  font-size: 13px;
  padding-top: 80px;
  letter-spacing: 0.1em;
}
