@import url("https://fonts.googleapis.com/css2?family=Lato&family=Montserrat:wght@600&family=Roboto:wght@300;400&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  color: black;
  font-family: "Lato", sans-serif;
  overflow: hidden;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
}
.player {
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.wrapper {
  width: 380px;
  max-width: 90vw;
  padding: 35px 45px;
  border-radius: 25px;
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 
    0 25px 45px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.wrapper:hover {
  transform: translateY(-5px);
  box-shadow: 
    0 35px 60px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.3);
}
.details {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.track-art {
  margin: 25px auto;
  height: 200px;
  width: 200px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  border: 3px solid rgba(255, 255, 255, 0.8);
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}
.track-art:hover {
  transform: scale(1.02);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.25),
    inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}
.now-playing {
  font-size: 12px;
  font-weight: 500;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.track-name {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: capitalize;
  color: #333;
  text-align: center;
}

.track-artist {
  font-size: 16px;
  text-transform: capitalize;
  font-family: "Roboto", sans-serif;
  margin-top: 5px;
  color: #666;
  text-align: center;
}
.buttons {
  width: 100%;
  margin: 25px auto 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.buttons button {
  background: none;
  border: none;
  color: #555;
  cursor: pointer;
  padding: 10px;
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.buttons button:hover {
  color: #667eea;
  background: rgba(102, 126, 234, 0.1);
  transform: translateY(-2px);
}
.buttons button:active {
  transform: translateY(0);
}
.buttons button i {
  opacity: 0.9;
  font-size: 18px;
  transition: all 0.3s ease;
}
.buttons .playpause-track {
  padding: 15px;
}
.buttons .playpause-track i {
  font-size: 48px;
  color: #667eea;
}
.buttons .playpause-track:hover i {
  color: #5a67d8;
  transform: scale(1.1);
}

.slider_container {
  width: 100%;
  margin: 25px auto;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 15px;
}
.current-time,
.total-duration {
  color: #666;
  font-family: 'Roboto', sans-serif;
  font-size: 12px;
  font-weight: 500;
  min-width: 35px;
  text-align: center;
}
.seek_slider {
  flex: 1;
  border-radius: 10px;
  appearance: none;
  height: 6px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  background-size: 0% 100%;
  background-repeat: no-repeat;
  background-color: #e2e8f0;
  transition: all 0.3s ease;
  cursor: pointer;
}
.seek_slider:hover {
  height: 8px;
}
.seek_slider::-webkit-slider-thumb {
  appearance: none;
  width: 16px;
  height: 16px;
  background: #667eea;
  border: 2px solid #fff;
  cursor: pointer;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}
.seek_slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.rotate {
  animation: rotation 10s infinite linear;
}
@keyframes rotation {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(359deg);
  }
}

/* Active states for buttons */
.random-track.active i,
.repeat-track.active i {
  color: #667eea !important;
}

/* Responsive Design */
@media (max-width: 480px) {
  .wrapper {
    width: 95vw;
    padding: 25px 30px;
  }
  
  .track-art {
    height: 160px;
    width: 160px;
  }
  
  .track-name {
    font-size: 20px;
  }
  
  .buttons button i {
    font-size: 16px;
  }
  
  .buttons .playpause-track i {
    font-size: 42px;
  }
}

@media (max-width: 350px) {
  .wrapper {
    padding: 20px 25px;
  }
  
  .track-art {
    height: 140px;
    width: 140px;
  }
  
  .buttons {
    gap: 5px;
  }
  
  .buttons button {
    padding: 8px;
  }
}
