@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Charmonman:wght@700&display=swap');
*{
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'Poppins', sans-serif;
}
body{
	display: grid;
	place-items: center;
	min-height: 100vh;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	padding: 10px;
}
.main{
    position: relative;
    overflow: hidden;
    height: 90vh;
    width: min(400px, 90%);
    max-width: 400px;
    display: flex;
    align-items: center;
    flex-direction: column;
    border-radius: 20px;
    background: linear-gradient(135deg, #673AB7 0%, #7E57C2 100%);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

/*top_section*/
.top_section{
  margin: 1em 0;
}
.top_section h5{
	color: #fff;
	font-size: 1.5em;
	font-family: 'Charmonman', cursive;
}


/*tracks part*/
.tracks{
  width: 90%;
  max-height: 75vh;
  overflow-y: scroll;
  padding: 10px 0;
  padding-bottom: 50px;
}
.tracks::-webkit-scrollbar {
  display: none;
}
.tracks .song:not(:first-child){
  margin-top: 1em;
}
.tracks .song{
  width: 100%;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  padding: 10px;
  margin-bottom: 8px;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.1);
  transition: all 0.3s ease;
}
.tracks .song:hover{
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  background: rgba(255,255,255,0.15);
}
.tracks .song .more{
  margin-left: 15px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  overflow: hidden;
}
.tracks .song .song_info{
  flex: 1;
  min-width: 0;
  margin-right: 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 60px;
  overflow: hidden;
}
.tracks .song .song_info p{
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  width: 100%;
  margin: 0;
  line-height: 1.4;
}
.tracks .song .song_info p:nth-child(1){
  font-weight: 500;
  font-size: 0.9em;
  margin-bottom: 4px;
  max-width: 200px;
}
.tracks .song .song_info p:nth-child(2){
  font-size: 0.75em;
  color: rgba(255,255,255,0.7);
  max-width: 180px;
}
.tracks .song  #play_btn{
  height: 45px;
  width: 45px;
  min-height: 45px;
  min-width: 45px;
  border: none;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  background: none;
  color: #fff;
  transition: all 0.3s ease;
  flex-shrink: 0;
  box-shadow: inset 5px 5px 5px rgba(0,0,0,0.2),
			inset -5px -5px 15px rgba(255,255,255,0.1),
			-5px -5px 15px rgba(255,255,255,0.1);
}
.tracks .song  #play_btn:hover{
  transform: scale(1.1);
  box-shadow: inset 5px 5px 5px rgba(0,0,0,0.3),
			inset -5px -5px 15px rgba(255,255,255,0.15),
			-5px -5px 15px rgba(255,255,255,0.15);
}
.tracks .song button i{
  font-size: 1.3em;
  transition: transform 0.3s ease;
}
.tracks .song:not(:first-child){
			margin-top: 15px;
}
.tracks .song .img{
  height: 60px;
  width: 60px;
  min-height: 60px;
  min-width: 60px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
}
.tracks .song .img img{
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
  display: block;
}
.tracks .song:hover .img img{
  transform: scale(1.05);
}



/*controlls part*/
.controlls{
		   width: 75%;
		   margin-top: 2.5em;
}
.progress_part{
			width: 100%;
			margin-bottom: 2em;
			display: flex;
			align-items: center;
			flex-direction: column;
			justify-content: space-between;
      
}
.progress_part p{
  color: #fff;
}
.progress_part .durations{
  width: 100%;
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
} 
.progress_part #slider{
  width: 100%;
}
.controlls_btns{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.controlls_btns button{
  height: 50px;   
  width: 50px;   
  border: none;
  outline: none;
  cursor: pointer;
  margin: 0 0.5em;
  background: none;
  transition: 0.5s;
  border-radius: 50%;
}
.controlls_btns button:hover{	
  box-shadow: inset 5px 5px 5px rgba(0,0,0,0.2),
			inset -5px -5px 15px rgba(255,255,255,0.1),
			5px 5px 15px rgba(0,0,0,0.3),
			-5px -5px 15px rgba(255,255,255,0.1);
}
.controlls_btns button i{
  font-size: 1.3em;
}

.controlls_btns button:nth-child(2){
  border-radius: 50%;
  box-shadow: inset 5px 5px 5px rgba(0,0,0,0.2),
			inset -5px -5px 15px rgba(255,255,255,0.1),
			5px 5px 15px rgba(0,0,0,0.3),
			-5px -5px 15px rgba(255,255,255,0.1);
}
.controlls_btns button i{
  color: #fff;
}


/*range slider*/
#slider{
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  width: 85%;
  height: 4px;
  cursor: pointer;
  position: relative;
  border-radius: 3px;
  background: rgba(255,255,255,0.3);
}
input[type=range]::-webkit-slider-thumb{
  -webkit-appearance: none;
  appearance: none;
  height: 20px;
  width: 20px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: transform 0.2s ease;
}
input[type=range]::-webkit-slider-thumb:hover{
  transform: scale(1.1);
}


/*popup_music_player part*/
.main .popup_music_player{
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(110%);
  width: min(400px, 90%);
  max-width: 400px;
  height: 90vh;
  background: linear-gradient(135deg, #673AB7 0%, #7E57C2 100%);
  padding: 20px;
  z-index: 9999;
  display: flex;
  align-items: center;
  flex-direction: column;
  border-radius: 20px;
  transition: transform 0.4s ease;
  box-shadow: 0 -8px 32px rgba(0,0,0,0.5);
  backdrop-filter: blur(20px);
}

/*top*/
.top{
  width: 100%;
  padding: 10px 20px;
  color: #ccc;
  font-size: 1.2em;
  display: flex;
  justify-content: space-between;
}
.top p{
  font-family: 'Charmonman', cursive;
}
.top i{
  height: 30px;
  width: 30px;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
background: rgba(255,255,255,0.1);
}
.popup_music_player .song_img{
margin-top: 2em;
height: 200px;
width: 200px;
border-radius: 50%;
overflow: hidden;
box-shadow: inset 5px 5px 5px rgba(0,0,0,0.2),
            inset -5px -5px 15px rgba(255,255,255,0.1),
			5px 5px 15px rgba(0,0,0,0.3),
			-5px -5px 15px rgba(255,255,255,0.1);
}
.popup_music_player img{
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.song_description{
  margin-top: 2em;
  display: flex;
  align-items: center;
  flex-direction: column;
}
.song_description h3{
  font-size: 1.2em;
  color: #fff;
}
.song_description p{
  color: #ccc;
  margin-top: 5px;
}

/*small music player*/
.small_music_player{
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 70px;
  padding: 0 15px;
  display: flex;
  align-items: center;
  border-radius: 20px 20px 0 0;
  background: linear-gradient(135deg, #673AB7 0%, #7E57C2 100%);
  transition: transform 0.4s ease;
  transform: translateY(80px);
  z-index: 100;
  box-shadow: 0 -4px 15px rgba(0,0,0,0.3);
}
.s_player_img{
  position: relative;
  height: 50px;
  width: 50px;
  min-width: 50px;
  overflow: hidden;
  border-radius: 10px;
  margin-right: 15px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  flex-shrink: 0;
}
.playing_img{
  height: 100%;
  width: 100%;
  opacity: 0.8;
}
.small_music_player .song_detail{
  flex: 1;
  min-width: 0;
  margin-right: 15px;
}
.small_music_player p{
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
  line-height: 1.3;
}
.small_music_player #song_name{
  font-size: 0.9em;
  font-weight: 500;
  margin-bottom: 2px;
}
.small_music_player #artist_name{
  font-size: 0.75em;
  color: rgba(255,255,255,0.7);
}
.s_player_img .playing_img img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#up_player{
  height: 35px;
  width: 35px;
  min-width: 35px;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: rgba(255,255,255,0.2);
  transition: all 0.3s ease;
  flex-shrink: 0;
}
#up_player:hover{
  background: rgba(255,255,255,0.3);
  transform: scale(1.1);
}


/*wave animation*/
.wave_animation{
  height: 40px;
  position: absolute;
  bottom: 0;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  list-style: none;
  padding: 0;
  margin: 0;
}
.wave_animation li{
  list-style: none;
  width: 4px;
  margin: 0 2px;
  border-radius: 15px;
  background: rgba(255,255,255,0.7);
  animation: animate 0.6s ease-in-out alternate infinite;
}
.wave_animation li:nth-child(1){
  animation-delay: 0s;
}
.wave_animation li:nth-child(2){
  animation-delay: 0.1s;
}
.wave_animation li:nth-child(3){
  animation-delay: 0.2s;
}
.wave_animation li:nth-child(4){
  animation-delay: 0.3s;
}
.wave_animation li:nth-child(5){
  animation-delay: 0.4s;
}


/*animation*/
@keyframes animate {
  0%{
    height: 5px;
  }
  100%{
	height: 25px;
  }
}

/* Add some responsive design */
@media (max-width: 768px) {
  .main {
    width: 95%;
    height: 95vh;
  }
}

/*Dev Ideas*/
