.player-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 20px;
  max-width: 600px;
  margin: 0 auto;
  gap: 15px;
}

.cover-art {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.play-overlay-btn {
  position: absolute;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  opacity: 1; /* 始终显示 */
}

.player-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 80px;
  padding: 10px 0;
}

.track-info {
  text-align: left;
  margin-bottom: 8px;
}

.track-info h3 {
  margin: 0 0 3px 0;
  font-size: 1.1em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 400px;
}

.track-info p {
  margin: 0;
  color: #666;
  font-size: 0.9em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 400px;
}

.progress-container {
  display: flex;
  align-items: center;
  width: 100%;
  margin-bottom: 5px;
}

#current-time, #total-time {
  min-width: 40px;
  text-align: center;
  font-size: 0.85em;
  color: #666;
}

.progress-bar {
  flex-grow: 1;
  height: 5px;
  background-color: #ddd;
  border-radius: 3px;
  margin: 0 8px;
  cursor: pointer;
  position: relative;
}

.progress {
  height: 100%;
  background: linear-gradient(to right, #ff6b6b, #4ecdc4);
  border-radius: 3px;
  width: 0%;
}

.volume-wrapper {
  position: relative;
  display: inline-block;
}

.volume-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2em;
  color: #666;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
}

.volume-btn:focus {
  outline: none;
}

.volume-slider-container {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  width: 100px;
  padding: 15px 10px;
  background-color: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  z-index: 10;
  display: none; /* 默认隐藏 */
}

.volume-slider-container.show {
  display: block !important; /* 显示时 */
}

.volume-slider-container:hover {
  display: block; /* 悬停时 */
}

.volume-slider {
  height: 5px;
  background-color: #ddd;
  border-radius: 3px;
  cursor: pointer;
  position: relative;
}

.volume-level {
  height: 100%;
  background-color: #4ecdc4;
  border-radius: 3px;
  width: 100%;
}