.music-player-container {
  font-family: 'PT Sans', sans-serif;
  font-size: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
  max-width: 900px;
}

.music-player {
  background: #fff;
  border: 1px solid #eeeeef;
  border-radius: 20px;
  box-shadow: 0 5px 12px rgba(0,0,0,.1);
  padding: 2.5rem;
  text-align: center;
  width: 100%;
}

.music-cover {
  display: inline-block;
}
.music-cover img {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 16px !important;
  box-shadow: 0 12px 36px rgba(0,0,0,0.2);
  margin-bottom: 1.6rem;
}

.info h2 {
  font-family: 'Jost', sans-serif;
  font-size: 1.7rem;
  margin-bottom: 0.7rem;
}

.info p {
  color: #555;
  font-size: 1.05rem;
  margin-bottom: 1.6rem;
}

.progress-container {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 2rem;
}

#progress {
  flex: 1;
  height: 8px;
  -webkit-appearance: none;
  background: #e8e8e8;
  border-radius: 4px;
  outline: none;
}

#progress::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: #bd21c7;
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

.controls {
  display: flex;
  justify-content: center;
  gap: 1.6rem;
}

.controls button {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #f5f5f5;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
  box-shadow: none;
}

.controls button:hover {
  background: #e0e0e0;
}

#play {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #bd21c7 0%, #6a0dad 50%, #1a0022 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(189, 33, 199, 0.4);
}

#play:hover {
  background: linear-gradient(135deg, #bd21c7 0%, #842ac5 50%, #1a0022 100%);
}

#play svg {
  fill: white;
  width: 48px;
  height: 48px;
}

.playlist {
  background: #fff;
  border: 1px solid #eeeeef;
  border-radius: 20px;
  box-shadow: 0 5px 12px rgba(0,0,0,.1);
  padding: 1.8rem;
  width: 100%;
}

.playlist h3 {
  margin-bottom: 1.2rem;
  font-size: 1.3rem;
  font-weight: 600 !important;
  color: #333;
}

.playlist ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.playlist li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 1.1rem;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s;
}

.playlist li:hover {
  background: #fafafa;
}

.playlist li.active {
  background: #f8e9ff;
  border-left: 3px solid #bd21c7;
}

.playlist img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px !important;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .music-player-container {
    flex-direction: row;
    justify-content: center;
    /* align-items: flex-start; */
    gap: 3rem;
  }

  .music-player,
  .playlist {
    max-width: 430px;
    flex: 1;
  }
}

@media (max-width: 379px) {
  .music-player {
    padding: 1.8rem 1.2rem;
  }

  .music-cover img {
    width: 150px;
    height: 150px;
  }

  .info h2 {
    font-size: 1.4rem;
  }

  .info p {
    font-size: 0.95rem;
  }

  .progress-container {
    gap: 8px;
  }

  #progress {
    height: 6px;
  }

  #current-time,
  #duration {
    font-size: 0.85rem;
  }

  .controls {
    gap: 1rem;
  }

  .controls button {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
  }

  .controls button {
    min-width: 52px;
    min-height: 52px;
  }

  #play {
    width: 64px;
    height: 64px;
    min-width: 64px;
    min-height: 64px;
  }

  #play svg {
    width: 26px;
    height: 26px;
  }

  .playlist {
    padding: 1.2rem;
  }

  .playlist li {
    padding: 0.7rem;
    gap: 12px;
  }

  .playlist img {
    width: 44px;
    height: 44px;
  }

  .playlist h3 {
    font-size: 1.05rem;
  }
}

@media (max-width: 319px) {
  .music-player {
    padding: 1.4rem 0.9rem;
  }

  .music-cover img {
    width: 120px;
    height: 120px;
  }

  .info h2 {
    font-size: 1.2rem;
  }

  .progress-container {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 1.6rem;
  }

  #current-time,
  #duration {
    font-size: 0.8rem;
    min-width: 32px;
    text-align: center;
    flex-shrink: 0;
  }

  #progress {
    flex: 1;
    height: 5px;
    min-width: 60px; 
  }

  .controls button {
    width: 46px;
    height: 46px;
    min-width: 46px;
    min-height: 46px;
  }

  #play {
    width: 58px;
    height: 58px;
    min-width: 58px;
    min-height: 58px;
  }

  #play svg {
    width: 22px;
    height: 22px;
  }

  .playlist {
    padding: 1.1rem;
  }

  .playlist img {
    width: 38px;
    height: 38px;
  }

  .playlist li {
    gap: 10px;
    padding: 0.55rem;
    font-size: 0.92rem;
  }

  .playlist h3 {
    font-size: 1rem;
  }
}