/* Reset and General Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

/* Body Styling */
body {
  background: #111; /* Deep Black Background */
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  flex-direction: column;
}

/* Music Player Container */
.container {
  background: #222;
  padding: 20px;
  width: 400px;
  border-radius: 20px;
  box-shadow: 0 10px 30px #ff1493;
  text-align: center;
  border: 2px solid #ff1493;
  transition: box-shadow 0.3s ease-in-out;
}

/* Add glowing effect on hover */
.container:hover {
  box-shadow: 0 0 20px 4px rgba(255, 20, 147, 0.7),
    0 0 40px 6px rgba(255, 20, 147, 0.5);
  border: 2px solid #ff1493;
}
/* Navigation */
nav {
  display: flex;
  justify-content: space-between;
}

.circle {
  width: 40px;
  height: 40px;
  background: #ff1493; /* Pink */
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s;
}

.circle:hover {
  background: #ff69b4; /* Lighter Pink */
}

.circle i {
  color: #fff;
  font-size: 18px;
}

/* Song Image */
.song-img {
  width: 190px;
  height: 160px;
  border-radius: 50%;
  border: 6px solid #ff1493; /* Pink Border */
  box-shadow: 0 10px 20px rgba(255, 20, 147, 0.4);
  margin-top: 10px;
}

/* Song Title & Artist */
.titleandname {
  margin-top: 15px;
}

.title {
  font-size: 22px;
  font-weight: bold;
  color: #ff69b4; /* Light Pink Title */
}

.name {
  font-size: 16px;
  color: #ffb6c1; /* Soft Pink */
  font-style: italic;
}

/* Audio Progress Bar */
#progress {
  width: 100%;
  height: 6px;
  background: #444;
  border-radius: 4px;
  cursor: pointer;
  margin: 20px 0;
}

#progress::-webkit-slider-thumb {
  width: 16px;
  height: 16px;
  background: #ff1493; /* Pink */
  border-radius: 50%;
  cursor: pointer;
}

/* Controls */
.controls {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.controls div {
  width: 60px;
  height: 60px;
  background: #ff1493; /* Pink */
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  transition: 0.3s;
}

.controls div:hover {
  background: #ff69b4; /* Lighter Pink */
}

.controls div:nth-child(2) {
  transform: scale(1.3);
  background: #ff69b4; /* Slightly Lighter Pink */
}

/* Song List Panel */
.list {
  position: absolute;
  top: 15%; /* Adjusted top position for better alignment */
  left: 50%;
  transform: translateX(-50%);
  background: #222;
  width: 300px;
  padding: 20px;
  border-radius: 15px;
  display: none;
  box-shadow: 0 5px 20px rgba(255, 20, 147, 0.5);
  border: 2px solid #ff1493;
  max-height: 300px; /* Limit max height to avoid overflow */
  overflow-y: auto; /* Enable vertical scroll if needed */
}

.list ul {
  list-style: none;
  padding: 0;
}

.list ul li {
  padding: 10px;
  margin: 5px 0;
  background: #333;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
  text-align: center;
  color: #ffb6c1;
}

.list ul li:hover {
  background: #ff1493;
  color: #fff;
}

/* Close Button */
.list .xmark {
  text-align: right;
  margin-bottom: 10px;
}

.list .xmark i {
  color: #ff1493;
  font-size: 20px;
  cursor: pointer;
  transition: 0.3s;
}

.list .xmark i:hover {
  color: #ff69b4;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 450px) {
  .container {
    width: 90%;
  }

  .list {
    width: 90%;
    top: 10%;
  }
}
@media (max-width: 1000px) {
  .list {
    top: 10%;
  }
}
