/**
 * Filthy Casual Games - Universal Music Player UI Styling (fcg-music-player.css)
 */

.fcg-music-widget {
  font-family: 'JetBrains Mono', 'Space Grotesk', system-ui, -apple-system, sans-serif;
  color: #f8fafc;
  user-select: none;
  z-index: 99999;
}

.fcg-music-floating {
  position: fixed;
  bottom: 20px;
  right: 20px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 0 15px rgba(56, 189, 248, 0.2);
  border-radius: 12px;
}

.fcg-music-player-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
}

/* Compact style when embedded inside a header bar */
#headerMusicPlayer .fcg-music-player-bar,
.fcg-music-header-mount .fcg-music-player-bar {
  padding: 4px 10px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

/* Equalizer Spectrum Visualizer */
.fcg-music-visualizer {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  width: 20px;
  height: 18px;
}

.fcg-music-visualizer span {
  flex: 1;
  background: #38bdf8;
  border-radius: 2px;
  height: 20%;
  transition: height 0.15s ease;
}

.fcg-music-visualizer.active span:nth-child(1) { animation: fcgEqBar 0.6s ease-in-out infinite alternate; }
.fcg-music-visualizer.active span:nth-child(2) { animation: fcgEqBar 0.8s ease-in-out infinite alternate 0.15s; }
.fcg-music-visualizer.active span:nth-child(3) { animation: fcgEqBar 0.5s ease-in-out infinite alternate 0.3s; }
.fcg-music-visualizer.active span:nth-child(4) { animation: fcgEqBar 0.7s ease-in-out infinite alternate 0.1s; }

@keyframes fcgEqBar {
  0% { height: 15%; background: #38bdf8; }
  100% { height: 100%; background: #39ff14; }
}

/* Track Info */
.fcg-music-info {
  display: flex;
  flex-direction: column;
  min-width: 140px;
  max-width: 220px;
  overflow: hidden;
}

.fcg-music-title {
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  color: #f8fafc;
}

.fcg-music-category {
  font-size: 0.65rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Control Buttons */
.fcg-music-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.fcg-music-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fcg-music-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.fcg-btn-primary {
  background: #38bdf8;
  color: #0f172a;
  border-color: #38bdf8;
  font-weight: bold;
}

.fcg-btn-primary:hover {
  background: #0ea5e9;
  color: #0f172a;
}

/* Volume Slider */
.fcg-music-vol-slider {
  width: 60px;
  height: 4px;
  accent-color: #38bdf8;
  cursor: pointer;
}
