/* ==========================================================================
   PERSISTENT BOTTOM AUDIO PREVIEW PLAYER
   ========================================================================== */

.global-audio-player {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99;
  background: rgba(10, 9, 24, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(157, 78, 221, 0.35);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.8), 0 -2px 15px rgba(0, 240, 255, 0.2);
  padding: 12px 24px;
  transform: translateY(100%);
  transition: transform var(--transition-smooth);
}

.global-audio-player.active {
  transform: translateY(0);
}

.player-grid-layout {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 300px 1fr 280px;
  align-items: center;
  gap: 24px;
}

/* Left: Track Meta */
.player-track-info {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.player-cover-thumbnail {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  background: #090818;
  border: 1px solid rgba(0, 240, 255, 0.3);
  flex-shrink: 0;
}

.player-cover-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player-meta-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.player-track-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-track-artist {
  font-size: 12px;
  color: var(--neon-blue);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Center: Controls & Scrubber */
.player-center-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.player-buttons-row {
  display: flex;
  align-items: center;
  gap: 18px;
}

.ctrl-btn {
  color: #94a3b8;
  font-size: 16px;
  padding: 6px;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ctrl-btn:hover {
  color: #ffffff;
  transform: scale(1.1);
}

.ctrl-play-pause-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--grad-primary);
  color: #000;
  font-size: 18px;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
  transition: transform var(--transition-fast);
}

.ctrl-play-pause-btn:hover {
  transform: scale(1.08);
}

.player-scrubber-bar {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
}

.time-stamp {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #64748b;
  min-width: 36px;
  text-align: center;
}

.progress-track-container {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

.progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 0%;
  background: var(--grad-primary);
  border-radius: var(--radius-full);
  box-shadow: 0 0 8px var(--neon-blue);
  transition: width 0.1s linear;
}

/* Right: Volume & Quick Buy Action */
.player-right-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.volume-control-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #94a3b8;
}

.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 80px;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  outline: none;
  cursor: pointer;
}

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

.player-quick-buy-btn {
  background: var(--grad-pink-purple);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 0 12px rgba(247, 37, 133, 0.4);
  transition: all var(--transition-fast);
}

.player-quick-buy-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(247, 37, 133, 0.6);
}

.player-close-btn {
  color: #64748b;
  font-size: 16px;
  padding: 4px;
}

.player-close-btn:hover {
  color: #fff;
}

/* Mobile & Tablet Player Adjustments */
@media (max-width: 900px) {
  .player-grid-layout {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }
  .player-right-actions {
    display: none;
  }
}
