/* 画册唱片播放器 · 五款样式 */

.el-music.hc-player,
.hc-player {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  display: block;
  color: inherit;
  overflow: visible;
  pointer-events: auto !important;
  cursor: pointer;
}

/* 全册悬浮：相对书壳定位，不受翻页影响 */
.bgm-float {
  position: absolute !important;
  z-index: 80;
  left: 36px;
  top: 36px;
  margin: 0;
  transform: none !important;
}

.hc-player-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.hc-player-disc {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #2a2a2a 0 18%, transparent 19%),
    repeating-radial-gradient(circle at 50% 50%, #111 0 1px, #1c1c1c 1px 3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease;
}

.hc-player-grooves {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    inset 0 0 0 6px rgba(255, 255, 255, 0.03),
    inset 0 0 0 14px rgba(0, 0, 0, 0.15);
  pointer-events: none;
}

.hc-player-label {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34%;
  height: 34%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: linear-gradient(145deg, #d4af70, #a67c3b);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.25);
  pointer-events: none;
}

.hc-player-toggle {
  position: relative;
  z-index: 2;
  width: 34%;
  height: 34%;
  min-width: 22px;
  min-height: 22px;
  border: none;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  color: #1a1208;
}

.hc-ico-play,
.hc-ico-pause {
  display: block;
  width: 0;
  height: 0;
}

.hc-ico-play {
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent currentColor;
  margin-left: 2px;
}

.hc-ico-pause {
  width: 10px;
  height: 10px;
  background:
    linear-gradient(currentColor, currentColor) 0 0 / 3px 100% no-repeat,
    linear-gradient(currentColor, currentColor) 100% 0 / 3px 100% no-repeat;
  display: none;
}

.hc-player.is-playing .hc-ico-play { display: none; }
.hc-player.is-playing .hc-ico-pause { display: block; }

.hc-player.is-playing .hc-player-disc {
  animation: hc-disc-spin 3.6s linear infinite;
}

@keyframes hc-disc-spin {
  to { transform: rotate(360deg); }
}

/* 1 经典黑胶 */
.hc-player--vinyl .hc-player-disc {
  background:
    radial-gradient(circle at 50% 50%, #3a3a3a 0 16%, transparent 17%),
    repeating-radial-gradient(circle at 50% 50%, #0d0d0d 0 1px, #1a1a1a 1px 3px);
}
.hc-player--vinyl .hc-player-toggle { color: #2a1a08; }

/* 2 霓虹 */
.hc-player--neon .hc-player-disc {
  background:
    radial-gradient(circle at 50% 50%, #123 0 16%, transparent 17%),
    repeating-radial-gradient(circle at 50% 50%, #061018 0 1px, #0c1c28 1px 3px);
  box-shadow:
    0 0 0 2px rgba(56, 189, 248, 0.35),
    0 0 18px rgba(56, 189, 248, 0.45),
    0 6px 16px rgba(0, 0, 0, 0.35);
}
.hc-player--neon .hc-player-label {
  background: linear-gradient(145deg, #67e8f9, #0284c7);
}
.hc-player--neon .hc-player-toggle { color: #042f2e; }

/* 3 纸质 */
.hc-player--paper .hc-player-disc {
  background:
    radial-gradient(circle at 50% 50%, #efe4d2 0 16%, transparent 17%),
    repeating-radial-gradient(circle at 50% 50%, #e8dcc8 0 1px, #f3ebe0 1px 3px);
  box-shadow: 0 6px 14px rgba(80, 60, 40, 0.18);
}
.hc-player--paper .hc-player-grooves {
  border-color: rgba(120, 90, 60, 0.12);
}
.hc-player--paper .hc-player-label {
  background: linear-gradient(145deg, #c45c4a, #8f2f2a);
}
.hc-player--paper .hc-player-toggle { color: #fff8f0; }

/* 4 极简 */
.hc-player--minimal .hc-player-disc {
  background: rgba(255, 255, 255, 0.88);
  border: 2px solid rgba(26, 35, 50, 0.7);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
.hc-player--minimal .hc-player-grooves,
.hc-player--minimal .hc-player-label {
  display: none;
}
.hc-player--minimal .hc-player-toggle {
  width: 42%;
  height: 42%;
  color: #1a2332;
  background: transparent;
}

/* 5 胶囊 */
.hc-player--capsule .hc-player-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px 0 6px;
  border-radius: 999px;
  background: rgba(15, 22, 32, 0.78);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  color: #f8fafc;
}
.hc-player--capsule .hc-player-mini {
  position: relative;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}
.hc-player--capsule .hc-player-disc,
.hc-player--capsule .hc-player-toggle {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hc-player--capsule .hc-player-toggle {
  color: #1a1208;
}
.hc-player--capsule .hc-player-meta {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.hc-player--capsule .hc-player-meta strong {
  font-size: 12px;
  letter-spacing: 0.06em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}
.hc-player--capsule .hc-player-meta em {
  font-style: normal;
  font-size: 10px;
  opacity: 0.65;
  letter-spacing: 0.08em;
}

@media (prefers-reduced-motion: reduce) {
  .hc-player.is-playing .hc-player-disc {
    animation: none;
  }
}
