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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.container {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 40px;
  width: 100%;
  max-width: 600px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.title {
  text-align: center;
  color: #fff;
  margin-bottom: 30px;
  font-size: 2.5em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.file-section {
  text-align: center;
  margin-bottom: 20px;
}

#fileInput {
  display: none;
}

.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.now-playing {
  text-align: center;
  margin-bottom: 20px;
}

#nowPlaying {
  color: #fff;
  font-size: 18px;
  font-weight: 500;
}

.progress-section {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

#currentTime, #duration {
  color: #fff;
  font-size: 14px;
  min-width: 50px;
  text-align: center;
}

.progress-bar {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  cursor: pointer;
  overflow: hidden;
}

.progress {
  height: 100%;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  border-radius: 4px;
  width: 0%;
  transition: width 0.1s linear;
}

.controls {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 25px;
}

.btn-control {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  width: 60px;
  height: 50px;
}

.btn-control:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

.btn-play {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: #fff;
  width: 100px;
  height: 50px;
  font-size: 18px;
}

.btn-play:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(245, 87, 108, 0.4);
}

.volume-section {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
  color: #fff;
}

#volumeSlider {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  outline: none;
  -webkit-appearance: none;
}

#volumeSlider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  cursor: pointer;
}

.playlist-section h3 {
  color: #fff;
  margin-bottom: 15px;
  font-size: 1.3em;
}

.playlist {
  max-height: 200px;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  padding: 10px;
}

.playlist-item {
  padding: 12px 15px;
  color: #fff;
  cursor: pointer;
  border-radius: 6px;
  margin-bottom: 5px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.playlist-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.playlist-item.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.playlist-item .index {
  min-width: 30px;
  opacity: 0.7;
}

.playlist-item .name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.playlist::-webkit-scrollbar {
  width: 8px;
}

.playlist::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
}

.playlist::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}

.playlist::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}
