/* ───── 音乐播放器 ───── */
#player {
  position: fixed;
  bottom: 0;
  left: 0;
  height: 64px;
  z-index: 1050;
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-glow);
  overflow: hidden;
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1), border-radius 0.35s;
}
#player.player-collapsed {
  width: 48px;
  border-radius: 0 10px 0 0;
  border-right: 1px solid var(--border-glow);
}
#player.player-expanded {
  width: 100%;
  border-radius: 0;
  border-right: none;
}
.player-tab {
  width: 48px;
  min-width: 48px;
  height: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  gap: 2px;
  color: var(--gold);
  transition: background 0.2s;
}
.player-tab:hover { background: rgba(212,168,67,0.1); }
.player-arrow { font-size: 1rem; line-height: 1; transition: transform 0.35s; }
.player-collapsed .player-arrow { transform: rotate(0deg); }
.player-expanded .player-arrow { transform: rotate(180deg); }
.player-icon { font-size: 0.9rem; line-height: 1; }
.player-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 0 8px;
  gap: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s 0.1s;
}
.player-expanded .player-body {
  opacity: 1;
  pointer-events: auto;
}
.player-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}
.player-play-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: transparent;
  color: var(--gold);
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}
.player-play-btn:hover { background: rgba(212,168,67,0.15); }
.player-track {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}
.player-title-row {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 24px;
}
.player-title {
  flex: 0 0 220px;
  color: var(--gold-light);
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player-lyrics {
  flex: 1;
  min-width: 0;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-secondary);
  font-size: 0.85rem;
}
.player-progress {
  display: flex;
  align-items: center;
  gap: 8px;
}
.player-bar {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}
.player-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
  transition: width 0.3s;
}
.player-time {
  color: var(--text-secondary);
  font-size: 0.75rem;
  white-space: nowrap;
  min-width: 65px;
  text-align: right;
}

/* ───── 拖拽手柄 ───── */
.player-bar {
  position: relative;
}
.player-thumb {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 12px;
  height: 12px;
  background: var(--gold-light);
  border: 2px solid var(--gold);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  cursor: grab;
  opacity: 0;
  transition: opacity 0.2s, width 0.2s, height 0.2s, box-shadow 0.2s;
  pointer-events: none;
  z-index: 2;
}
.player-bar:hover .player-thumb {
  opacity: 1;
}
.player-bar.dragging .player-thumb {
  opacity: 1;
  width: 16px;
  height: 16px;
  box-shadow: 0 0 12px rgba(212,168,67,0.6);
  cursor: grabbing;
}

/* ───── 拖拽时间提示 ───── */
.player-tooltip {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.85);
  color: var(--gold-light);
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border-glow);
  white-space: nowrap;
  display: none;
  pointer-events: none;
  z-index: 3;
}
.player-bar.dragging .player-tooltip {
  display: block;
}

/* ───── 拖拽时禁用进度条动画 ───── */
.player-bar.dragging .player-fill {
  transition: none;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.player-collapse-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.2s;
}
.player-collapse-btn:hover { color: var(--gold); }

#player .player-nav-btn {
  width: 36px !important;
  height: 36px !important;
  border: 2px solid var(--gold) !important;
  background: transparent !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  flex-shrink: 0 !important;
  padding: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  transition: background 0.2s !important;
  opacity: 1 !important;
}
#player .player-nav-btn:hover { opacity: 1 !important; background: rgba(212,168,67,0.15) !important; }
#player .player-nav-btn img { display: block; }

#player .player-play-btn img { display: block; }

.icon-gold {
  filter: brightness(0) saturate(100%) invert(73%) sepia(39%) saturate(530%) hue-rotate(12deg) brightness(90%) contrast(88%);
}

.player-repeat-btn {
  width: 36px !important;
  height: 36px !important;
  border: 2px solid var(--gold) !important;
  background: transparent !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  flex-shrink: 0 !important;
  padding: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  transition: all 0.2s !important;
  opacity: 0.5 !important;
}
.player-repeat-btn:hover { opacity: 0.85 !important; background: rgba(212,168,67,0.1) !important; }
.player-repeat-btn.active { opacity: 1 !important; box-shadow: 0 0 10px rgba(212,168,67,0.4) !important; }
.player-repeat-btn.active-one { opacity: 1 !important; box-shadow: 0 0 10px rgba(0,212,255,0.4) !important; border-color: var(--accent-cyan) !important; }
.player-repeat-btn img { display: block; }
.player-repeat-btn.active-one img { filter: brightness(0) saturate(100%) invert(73%) sepia(39%) saturate(530%) hue-rotate(12deg) brightness(90%) contrast(88%) hue-rotate(140deg) !important; }

#heroCarousel .carousel-placeholder {
  will-change: opacity;
}
.player-list-btn {
  background: none;
  border: none;
  color: var(--gold);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.2s;
  opacity: 0.7;
}
.player-list-btn:hover { opacity: 1; color: var(--gold-light); }
