* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  overflow: hidden;
  background-color: #f5626b;
}

.player-container {
  width: 100%;
  max-width: 400px;
  max-height: 98vh;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(180deg, #232731 0%, #1a1d24 100%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
}

.player-header {
  padding: 8px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  flex-shrink: 0;
  gap: 10px;
  border-bottom: none;
}

.volume-control {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-grow: 1;
  justify-content: center;
}

.speaker-icon {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
}

.control-btn-base {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 20px;
  padding: 8px;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}

.control-btn-base:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.minimize-btn {}

.player-header .more-options-btn {}

.controls-container {
  padding: 15px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.album-cover {
  position: relative;
  width: 100%;
  padding-top: min(100%, 45vh);
  background-color: #0d0f16;
  margin-bottom: 15px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
}

.album-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease;
  opacity: 0;
}

.album-cover .more-options-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: rgba(0, 0, 0, 0.3);
  width: 36px;
  height: 36px;
  z-index: 10;
}

.album-cover .more-options-btn:hover {
  background-color: rgba(0, 0, 0, 0.5);
}

.track-info {
  color: #fff;
  margin-bottom: 15px;
  flex-shrink: 0;
  text-align: center;
}

.track-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
  color: #ffffff;
  text-shadow: none;
}

.track-artist {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.playback-controls {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin-bottom: 15px;
  flex-shrink: 0;
}

.control-btn {
  font-size: 20px;
}

.play-btn {
  position: relative;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: linear-gradient(145deg, #f77078, #e0505a);
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 6px 18px rgba(245, 98, 107, 0.45);
  font-size: 24px;
  color: #ffffff;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.play-btn:hover {
  background: linear-gradient(145deg, #f87d85, #e65c67);
  transform: scale(1.05);
  box-shadow: 0 8px 22px rgba(245, 98, 107, 0.5);
}

.play-btn:active {
  transform: scale(0.98);
  box-shadow: 0 4px 12px rgba(245, 98, 107, 0.4);
}

.play-btn span {
  position: relative;
  z-index: 2;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.9);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(255, 255, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

@keyframes spin-clockwise {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes spin-clockwise-offset {
  0% {
    transform: rotate(45deg);
  }
  100% {
    transform: rotate(405deg);
  }
}

.play-btn::before {
  content: '';
  position: absolute;
  width: 73px;
  height: 73px;
  top: -9px;
  left: -9px;
  border: 4px dashed rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
  box-sizing: border-box;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.7));
}

.play-btn::after {
  content: '';
  position: absolute;
  width: 65px;
  height: 65px;
  top: -5px;
  left: -5px;
  border: 5px solid transparent;
  border-top: 5px solid white;
  border-right: 5px solid white;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
  box-sizing: border-box;
  filter: drop-shadow(0 0 3px white);
}

.play-btn-inner-ring {
  position: absolute;
  width: 59px;
  height: 59px;
  top: -2px;
  left: -2px;
  border: 3px solid transparent;
  border-bottom: 3px solid rgba(255, 255, 255, 0.9);
  border-left: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
  box-sizing: border-box;
  pointer-events: none;
}

.play-btn.playing-border {
  animation: pulse 2s infinite;
}

.play-btn.playing-border::before {
  opacity: 1;
  animation: spin-clockwise 4s linear infinite;
}

.play-btn.playing-border::after {
  opacity: 1;
  animation: spin-clockwise 2s linear infinite;
}

.play-btn.playing-border .play-btn-inner-ring {
  opacity: 1;
  animation: spin-clockwise-offset 3s linear infinite;
}

.progress-container {
  margin-bottom: 10px;
  flex-shrink: 0;
}

.progress-bar {
  width: 100%;
  height: 5px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  cursor: pointer;
  position: relative;
  margin-bottom: 8px;
  overflow: visible;
}

.progress {
  width: 0%;
  height: 100%;
  background-color: #fff;
  border-radius: 3px;
  position: relative;
  transition: width 0.1s linear;
}

.progress-handle {
  width: 14px;
  height: 14px;
  background-color: #fff;
  border-radius: 50%;
  position: absolute;
  right: -7px;
  top: 50%;
  transform: translateY(-50%) scale(0);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.progress-bar:hover .progress-handle {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.time-info {
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: normal;
}

.waveform {
  display: flex;
  align-items: flex-end;
  height: 40px;
  gap: 2px;
  margin-bottom: 15px;
  flex-shrink: 0;
  overflow: hidden;
  opacity: 1;
}

.waveform-bar {
  flex: 1;
  background-color: #f5626b;
  border-radius: 2px 2px 0 0;
  transition: height 0.1s ease;
  min-height: 2px;
}

.volume-slider {
  width: 100%;
  height: 5px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  cursor: pointer;
  outline: none;
  transition: background-color 0.2s ease;
}

.volume-slider:hover {
  background: rgba(255, 255, 255, 0.3);
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

.volume-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s ease;
}

.volume-slider::-moz-range-thumb:hover {
  transform: scale(1.1);
}

@media (max-width: 480px) {
  .player-container {
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
    border: none;
    box-shadow: none;
    background: linear-gradient(180deg, #232731 0%, #1a1d24 100%);
  }
  .controls-container {
    padding: 15px;
  }
  .album-cover {
    padding-top: min(100%, 40vh);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
  }
  body {
    background: #f5626b;
  }
  .player-header {
    padding: 8px 12px;
    gap: 8px;
  }
  .volume-control {
    gap: 5px;
  }
  .play-btn {
    width: 55px;
    height: 55px;
    font-size: 24px;
  }
}