/* Trình Phát Nhạc & Visualizers (Classic Bars, Floating Dots, Bass Mountain, Stacked Blocks, Gradient Moving) */
.music-player-bar {
  width: 100%;
  min-width: 0;
  height: 39px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.music-control {
  width: 35px;
  min-width: 35px;
  height: 35px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  color: var(--text);
  background: var(--solid);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 950;
  box-shadow: 0 5px 14px rgba(143, 42, 87, 0.08);
}

.music-control.play-control {
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--pink2));
}

.music-track {
  height: 35px;
  min-width: 0;
  flex: 1;
  padding: 0 10px;
  border-radius: 12px;
  color: var(--text);
  background: var(--solid);
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  box-shadow: 0 5px 14px rgba(143, 42, 87, 0.08);
}

.music-track-copy {
  min-width: 58px;
  max-width: 84px;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.music-track-copy strong {
  font-size: 11px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.music-track-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 750;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.music-equalizer {
  min-width: 0;
  height: 18px;
  flex: 1 1 auto;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: stretch;
  gap: 2px;
  opacity: 0.96;
}

.music-equalizer span {
  width: 3px;
  min-width: 2px;
  height: 15px;
  flex: 1 1 0;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--pink), var(--pink2));
  transform: scaleY(0.24);
  transform-origin: center;
  animation: musicBeat 0.72s ease-in-out infinite;
  animation-play-state: paused;
}

.music-player-bar.playing .music-equalizer span {
  animation-play-state: running;
}

/* Visualizer Variants */
.music-player-bar.visual-eq6 .music-equalizer span {
  border-radius: 50%;
  aspect-ratio: 1 / 1;
}

.music-player-bar.visual-eq8 .music-equalizer span {
  border-radius: 2px;
  background: linear-gradient(180deg, #ff7ea9, var(--pink2));
}

.music-player-bar.visual-eq10 .music-equalizer span {
  border-radius: 0;
}

.topbar.visual-gradient {
  --music-glow: 0;
  background: linear-gradient(120deg, rgba(255, 125, 174, .42), rgba(142, 112, 255, .34), rgba(91, 216, 226, .34), rgba(255, 125, 174, .42));
  background-size: 300% 300%;
  animation: musicPanelGradient 12s ease-in-out infinite;
  box-shadow: 0 14px 38px rgba(142, 43, 86, calc(.14 + var(--music-glow) * .18)), inset 0 1px 0 rgba(255, 255, 255, .4);
}

@keyframes musicPanelGradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
