/* ==========================================================================
   player.css - Music Player, Vinyl Disc, Progress Scrubber & Audio Controls
   ========================================================================== */

.player-card {
  position: relative;
  overflow: hidden;
  margin-bottom: 2rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.player-top {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Rotating Vinyl Record */
.vinyl-box {
  position: relative;
  width: 90px;
  height: 90px;
  flex-shrink: 0;
}

.vinyl-disc {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, #2a2a2a 0%, #111111 60%, #050505 100%);
  border: 3px solid #333333;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 15px rgba(255, 94, 142, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.4s ease;
  animation: vinylSpin 7s linear infinite;
  animation-play-state: paused;
}

.player-card.playing .vinyl-disc {
  animation-play-state: running;
}

@keyframes vinylSpin {
  100% { transform: rotate(360deg); }
}

.vinyl-grooves {
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  pointer-events: none;
}

.vinyl-label {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #12091c;
  box-shadow: 0 0 8px rgba(0,0,0,0.5);
}

/* Track Metadata */
.track-info {
  flex: 1;
  min-width: 0;
}

.track-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.25rem;
}

.track-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.2rem;
}

.track-artist {
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Animated Equalizer Waves */
.sound-waves {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
  margin-left: 0.5rem;
}

.sound-bar {
  width: 3px;
  background: var(--accent-rose);
  border-radius: 999px;
  height: 4px;
  transition: height 0.2s ease;
}

.player-card.playing .sound-bar:nth-child(1) { animation: soundBar 1.1s ease-in-out infinite alternate; }
.player-card.playing .sound-bar:nth-child(2) { animation: soundBar 0.8s ease-in-out infinite alternate 0.2s; }
.player-card.playing .sound-bar:nth-child(3) { animation: soundBar 1.4s ease-in-out infinite alternate 0.4s; }
.player-card.playing .sound-bar:nth-child(4) { animation: soundBar 0.9s ease-in-out infinite alternate 0.1s; }

@keyframes soundBar {
  0% { height: 4px; }
  100% { height: 18px; }
}

/* Progress Scrubber */
.progress-container {
  margin-bottom: 1.25rem;
}

.progress-bar-wrapper {
  position: relative;
  width: 100%;
  height: 7px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  cursor: pointer;
  overflow: hidden;
  transition: height 0.2s ease;
}

.progress-bar-wrapper:hover {
  height: 9px;
}

.progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-pink), var(--accent-gold));
  border-radius: 999px;
  pointer-events: none;
  transition: width 0.1s linear;
}

.time-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.45rem;
  font-variant-numeric: tabular-nums;
}

/* Control Buttons */
.player-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.controls-left, .controls-right {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.controls-center {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.btn-ctrl {
  background: var(--bg-glass);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.btn-ctrl:hover {
  background: var(--bg-glass-hover);
  border-color: var(--accent-pink);
  transform: scale(1.08);
}

.btn-ctrl:active {
  transform: scale(0.95);
}

.btn-play-pause {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-rose), var(--accent-gold));
  border: none;
  color: #12091c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(255, 94, 142, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-play-pause:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 26px rgba(255, 94, 142, 0.65);
}

.btn-play-pause:active {
  transform: scale(0.95);
}

/* Volume Slider */
.volume-wrapper {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.volume-slider {
  width: 75px;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  outline: none;
  cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-rose);
  cursor: pointer;
  box-shadow: 0 0 6px rgba(0,0,0,0.5);
}

/* Hide player card completely in mobile mode */
@media (max-width: 992px) {
  .player-card {
    display: none !important;
  }
}


