/* MUSIC PLAYER CONTAINER */
#music-player {
  position: relative;
  width: 1080px;
  height: 590px;
  background-color: #222;
  overflow: hidden;
  font-family: 'Open Sans', sans-serif;
  margin: 20px auto;
}

/* BACKGROUND: Blurred cover art */
#music-player-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: blur(15px);
  opacity:50%;
  transform: scale(1.2);
  z-index: 0;
}

/* CONTENT: Holds cover art and track list */
#music-player-content {
  position: relative;
  z-index: 1;
  display: flex;
  padding: 20px;
  box-sizing: border-box;
  height: 420px;
}

/* LEFT SECTION: Cover Art */
#left-section {
  width: 420px;
  height: 420px;
  margin-right: 20px;
  margin-top: 40px;
  position: relative;
}

#left-section img {
  width: 420px;
  height: 420px;
  object-fit: cover;
  box-shadow: 8px 0 10px -2px rgba(0,0,0,0.5);
  -webkit-user-drag: none;
  user-select: none;
}

/* RIGHT SECTION: Track List */
#right-section {
  width: 580px;
  height: 420px;
  overflow-y: auto;
  padding-right: 10px;
  margin-top: 40px;
}

/* Custom Scrollbar for Track List */
#right-section::-webkit-scrollbar {
  width: 8px;
}
#right-section::-webkit-scrollbar-track {
  background: #333;
}
#right-section::-webkit-scrollbar-thumb {
  background: #ADB1B3;
  border-radius: 8px;
}

/* TRACK LIST */
#track-list {
  display: flex;
  flex-direction: column;
}

.track {
  display: flex;
  align-items: center;
  height: 60px;
  padding: 0 10px;
  margin-bottom: 5px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.3s ease;
  position: relative;
}

.track:hover {
  border: 1px solid lightgrey;
}

/* Updated selected track style */
.track.selected {
  border: 1px solid lightgrey;
  background-color: rgba(0, 0, 0, 0.2);
}

.track .track-number {
  width: 55px;
  text-align: center;
  color: white;
  font-size: 18px;
}

.track .track-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  color: white;
  padding: 0 10px;
}

.track .track-title {
  font-size: 16px;
}

.track .track-genre {
  font-size: 14px;
  opacity: 0.8;
}

.track .track-play-icon {
  width: 24px;
  height: 24px;
}

.track .track-play-icon svg {
  pointer-events: none;
}

/* CONTROL PANEL: Positioned at the very bottom */
#control-panel {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  box-sizing: border-box;
  z-index: 2;
}

/* CONTROLS */
#controls {
  display: flex;
  gap: 20px;
  align-items: center;
}

#controls button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

/* PROGRESS CONTAINER */
#progress-container {
  width: 480px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 20px;
}

#progress-bar {
  position: relative;
  flex: 1;
  height: 8px;
  background-color: #444;
  cursor: pointer;
  border-radius: 4px;
  margin: 0 10px;
}

#progress {
  width: 0%;
  height: 100%;
  background-color: #fff;
  border-radius: 4px;
}

#progress-hover {
  position: absolute;
  top: 0;
  width: 2px;
  height: 100%;
  background-color: rgba(255,255,255,0.8);
  pointer-events: none;
  display: none;
}

#current-time,
#duration {
  font-size: 14px;
  color: white;
}

/* VOLUME CONTAINER */
#volume-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

#volume-bar {
  position: relative;
  width: 140px;
  height: 8px;
  background: linear-gradient(90deg, #555, #333);
  cursor: pointer;
  border-radius: 4px;
}

#volume-level {
  width: 100%;
  height: 100%;
  background-color: #fff;
  border-radius: 4px;
}

/* Mute Button */
#mute-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
