/**
 * @file
 * Spotify-style audio player styles.
 */

.spotify-audio-player {
  display: flex;
  align-items: center;
  background: #1a1a1a;
  border-radius: 8px;
  padding: 16px;
  margin: 20px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s ease;
}

.spotify-audio-player:hover {
  background: #2a2a2a;
}

.spotify-audio-cover {
  min-width: 80px;
  border-radius: 8px;
  overflow: hidden;
  margin-right: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  background: #333;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spotify-audio-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: 150px;
}

.spotify-audio-cover-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.spotify-audio-cover-placeholder svg {
  width: 40px;
  height: 40px;
}

.spotify-audio-info {
  flex: 1;
  min-width: 0;
  margin-right: 16px;
}

.spotify-audio-title {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spotify-audio-subtitle {
  font-size: 14px;
  color: #b3b3b3;
  overflow: hidden;
  max-width: 200px;
}

.spotify-audio-controls {
  flex: 1;
  min-width: 200px;
  display: flex;
  align-items: end;
  gap: 12px;
}

.spotify-play-btn {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  background: #1db954;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(29, 185, 84, 0.3);
}

.spotify-play-btn:hover {
  background: #1ed760;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(29, 185, 84, 0.4);
}

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

.spotify-play-btn svg {
  width: 24px;
  height: 24px;
}

.spotify-audio-progress {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.spotify-audio-progress-bar {
  width: 100%;
  height: 4px;
  background: #404040;
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.spotify-audio-progress-fill {
  height: 100%;
  background: #1db954;
  border-radius: 2px;
  width: 0%;
  transition: width 0.1s linear;
}

.spotify-audio-progress-bar:hover .spotify-audio-progress-fill {
  background: #1ed760;
}

.spotify-audio-time {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #b3b3b3;
  font-variant-numeric: tabular-nums;
}

.spotify-audio-element {
  display: none;
}

/* Responsive design */
@media (max-width: 768px) {
  .spotify-audio-player {
    flex-direction: column;
    padding: 12px;
  }

  .spotify-audio-cover {
    width: 120px;
    height: 120px;
    margin-right: 0;
    margin-bottom: 12px;
  }

  .spotify-audio-info {
    text-align: center;
    margin-right: 0;
    margin-bottom: 12px;
  }

  .spotify-audio-controls {
    width: 100%;
    flex-direction: column;
    gap: 8px;
  }

  .spotify-audio-progress {
    width: 100%;
  }
}

