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

.music-container {
  position: relative;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  min-height: 100vh;
  color: #333;
  position: relative;
  overflow-x: hidden;
}

/* 粒子背景容器 */
#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
}

/* 音乐播放器 */
.music-player-container {
  background: #f8f9fa;
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  width: 90%;
  max-width: 1200px;
  text-align: center;
}

.player-header {
  text-align: center;
  margin-bottom: 2rem;
}

.player-header h1 {
  font-size: 2rem;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.player-header p {
  color: #7f8c8d;
  font-size: 1.1rem;
}

/* 播放器主体 */
.player-body {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  background: white;
  justify-content: center;
}

.album-art {
  flex: 1;
  min-width: 250px;
  max-width: 300px;
  text-align: center;
  margin-top: 50px;
}

.album-image {
  width: 100%;
  max-width: 250px;
  height: auto;
  aspect-ratio: 1/1;
  border-radius: 50%;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  object-fit: cover;
  transition: transform 0.5s;
}

.album-image.playing {
  animation: rotateAlbum 15s linear infinite;
}

@keyframes rotateAlbum {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.player-controls {
  flex: 2;
  min-width: 300px;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.song-info {
  margin-bottom: 1.5rem;
}

.song-title {
  font-size: 1.8rem;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.song-artist {
  font-size: 1.2rem;
  color: #7f8c8d;
}

/* 进度条 */
.progress-container {
  margin-bottom: 1.5rem;
  width: 100%;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
  cursor: pointer;
}

.progress {
  height: 100%;
  background: #3498db;
  width: 0%;
  border-radius: 4px;
  transition: width 0.1s;
}

.progress-time {
  display: flex;
  justify-content: space-between;
  color: #7f8c8d;
  font-size: 0.9rem;
}

/* 控制按钮 */
.controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.control-button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: #2c3e50;
  transition: all 0.3s;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.control-button:hover {
  color: #3498db;
  background: rgba(52, 152, 219, 0.1);
}

.play-button {
  background: #3498db;
  color: white;
  font-size: 2rem;
  width: 70px;
  height: 70px;
  box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

.play-button:hover {
  background: #2980b9;
  color: white;
  transform: scale(1.05);
}

.song-description {
  background: #e9ecef;
  backdrop-filter: blur(5px);
  border-radius: 12px;
  padding: 1.2rem;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  width: 100%;
  text-align: center;
}

.song-description h3 {
  color: #2c3e50;
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
  border-bottom: 2px solid #3498db;
  padding-bottom: 0.5rem;
  display: inline-block;
}

.song-description p {
  color: #5a6c7d;
  line-height: 1.5;
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
}

.song-description p:last-child {
  margin-bottom: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .music-container {
    padding: 10px;
  }
  
  .music-player-container {
    padding: 1.5rem;
    width: 95%;
  }
  
  .player-header h1 {
    font-size: 1.8rem;
  }
  
  .player-body {
    gap: 1.5rem;
  }
  
  .album-art {
    min-width: 200px;
    max-width: 250px;
    margin-top: 40px;
  }
  
  .player-controls {
    min-width: 100%;
  }
  
  .song-title {
    font-size: 1.5rem;
  }
  
  .song-artist {
    font-size: 1.1rem;
  }
  
  .play-button {
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .music-player-container {
    padding: 1rem;
    border-radius: 15px;
  }
  
  .player-header h1 {
    font-size: 1.5rem;
  }
  
  .player-header p {
    font-size: 1rem;
  }
  
  .album-art {
    min-width: 180px;
    max-width: 200px;
    margin-top: 30px;
  }
  
  .song-title {
    font-size: 1.3rem;
  }
  
  .song-artist {
    font-size: 1rem;
  }
  
  .controls {
    gap: 1rem;
  }
  
  .control-button {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }
  
  .play-button {
    width: 55px;
    height: 55px;
    font-size: 1.6rem;
  }
  
  .song-description {
    padding: 1rem;
  }
  
  .song-description h3 {
    font-size: 1.1rem;
  }
  
  .song-description p {
    font-size: 0.85rem;
  }
}
