* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding: 20px;
  color: #333;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 30px;
  text-align: center;
}

header h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
  font-weight: 700;
}

header p {
  opacity: 0.9;
  font-size: 1.1em;
}

main {
  padding: 40px;
}

.song-list {
  list-style: none;
}

.song-item {
  background: #f8f9fa;
  border-radius: 12px;
  margin-bottom: 15px;
  transition: all 0.3s ease;
  overflow: hidden;
}

.song-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.song-link {
  display: block;
  padding: 20px;
  text-decoration: none;
  color: #333;
  font-size: 1.1em;
  font-weight: 500;
}

.song-link:hover {
  color: #667eea;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #666;
}

.empty-state h2 {
  margin-bottom: 10px;
  color: #333;
}

.loading {
  text-align: center;
  padding: 40px;
  color: #666;
}

.player-container {
  text-align: center;
}

.song-info {
  margin-bottom: 30px;
}

.song-title {
  font-size: 1.8em;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
}

.audio-player-wrapper {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
}

audio {
  width: 100%;
  max-width: 600px;
  outline: none;
}

/* Style the audio progress bar - ensure it displays correctly */
audio {
  width: 100%;
  max-width: 600px;
  outline: none;
  /* Ensure native controls work properly */
  -webkit-appearance: none;
}

/* Webkit browsers (Chrome, Safari, Edge) */
audio::-webkit-media-controls-panel {
  background-color: transparent;
}

audio::-webkit-media-controls-timeline {
  /* Don't override the progress bar - let it work natively */
}

audio::-webkit-media-controls-current-time-display,
audio::-webkit-media-controls-time-remaining-display {
  color: #333;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

audio::-webkit-media-controls-play-button {
  background-color: #667eea;
  border-radius: 50%;
}

/* Firefox audio controls styling */
audio::-moz-media-controls-timeline {
  /* Let Firefox handle progress bar natively */
}

audio::-moz-media-controls-current-time-display,
audio::-moz-media-controls-time-remaining-display {
  color: #333;
}

.back-link {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 24px;
  background: #667eea;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.back-link:hover {
  background: #5568d3;
}

.error-message {
  background: #fee;
  color: #c33;
  padding: 15px;
  border-radius: 8px;
  margin: 20px 0;
  border-left: 4px solid #c33;
}

@media (max-width: 600px) {
  header h1 {
    font-size: 2em;
  }
  
  main {
    padding: 20px;
  }
  
  .song-title {
    font-size: 1.4em;
  }
}

