@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap');
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}
*::before, *::after{
  padding: 0;
  margin: 0;
}
:root{
  /* TEMA: Dark Glassmorphism (Cristal Oscuro Elegante) */
  --color1: #ff4d6d;      /* Acento coral/rosado brillante */
  --color2: #c9184a;      /* Acento rojo profundo para gradientes sutiles */
  --lightblack: rgba(15, 15, 20, 0.65); /* Fondo oscuro semitransparente (Dark Mode) */
  --white: #F4F4F5;       /* Texto blanco hueso para no deslumbrar */
  --darkwhite: rgba(255, 255, 255, 0.1); /* Botones secundarios */
  --penkshadow: #ff4d6d;
  --lightbshadow: rgba(0, 0, 0, 0.5); /* Sombra más fuerte para dar profundidad */
}

body{
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background-image: url("https://i.imgur.com/jA3HtC5.jpeg");
  background-size: 100% 100%;
  background-repeat: no-repeat;
}
.wrapper{
  width: 380px;
  padding: 25px 30px;
  overflow: hidden;
  position: relative;
  border-radius: 20px;
  background: var(--lightblack);
  backdrop-filter: blur(15px) saturate(120%); /* Difumina el fondo pero mantiene los colores vivos */
  -webkit-backdrop-filter: blur(15px) saturate(120%);
  border: 1px solid rgba(255, 255, 255, 0.08); /* Borde súper sutil como un cristal ahumado */
  box-shadow: 0 15px 35px 0 rgba(0, 0, 0, 0.4);
}
.wrapper i{
  cursor: pointer;
}
.top-bar, .progress-area .song-timer, 
.controls, .music-list .header, .music-list ul li{
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.top-bar i{
  font-size: 30px;
  color: var(--white);
}
.top-bar i:first-child{
  margin-left: -7px;
}
.top-bar span{
  font-size: 18px;
  margin-left: -3px;
  color: var(--white);
  letter-spacing: 0.5px;
}
.img-area{
  width: 100%;
  height: 256px;
  overflow: hidden;
  margin-top: 25px;
  border-radius: 15px;
  box-shadow: 0px 8px 20px rgba(0,0,0,0.4);
}
.img-area img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.song-details{
  text-align: center;
  margin: 30px 0;
}
.song-details p{
  color: var(--white);
}
.song-details .name{
  font-size: 21px;
  font-weight: 600;
}
.song-details .artist{
  font-size: 18px;
  opacity: 0.7; /* Ligeramente más opaco para dar jerarquía al título */
  line-height: 35px;
}
.progress-area{
  height: 6px;
  width: 100%;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.15); /* Barra base clara translúcida */
  cursor: pointer;
}
.progress-area .progress-bar{
  height: inherit;
  width: 0%;
  position: relative;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--color1) 0%, var(--color2) 100%);
}
.progress-bar::before{
  content: "";
  position: absolute;
  height: 12px;
  width: 12px;
  border-radius: 50%;
  top: 50%;
  right: -5px;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%);
  background: var(--white); /* El puntito de arrastre en blanco puro */
  box-shadow: 0 0 5px rgba(0,0,0,0.5);
  transition: opacity 0.2s ease;
}
.progress-area:hover .progress-bar::before{
  opacity: 1;
  pointer-events: auto;
}
.progress-area .song-timer{
  margin-top: 4px;
}
.song-timer span{
  font-size: 12px;
  color: var(--white);
  opacity: 0.7;
}
.controls{
  margin: 40px 0 5px 0;
}
.controls i{
  font-size: 28px;
  user-select: none;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s ease;
}
.controls i:hover {
  color: var(--white);
}
.controls i:nth-child(2),
.controls i:nth-child(4){
  font-size: 40px;
}
.controls #prev{
  margin-right: -13px;
}
.controls #next{
  margin-left: -13px;
}
.controls .play-pause{
  height: 58px;
  width: 58px;
  display: flex;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--white); /* Botón principal destacado en blanco (estilo Spotify) */
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.1s ease;
}
.controls .play-pause:active {
  transform: scale(0.95);
}
.play-pause::before{
  display: none; /* Quitamos el gradiente de fondo para hacerlo más limpio */
}
.play-pause i{
  font-size: 36px;
  color: #1A1A1A; /* Ícono de play/pause en negro sobre el botón blanco */
  position: relative;
}

.music-list{
  position: absolute;
  background: rgba(20, 20, 25, 0.95); /* Más opaco para leer bien la lista */
  backdrop-filter: blur(20px);
  width: 100%;
  left: 0;
  bottom: -55%;
  opacity: 0;
  pointer-events: none;
  z-index: 5;
  padding: 15px 30px;
  border-radius: 15px;
  box-shadow: 0px -5px 20px rgba(0,0,0,0.5);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.music-list.show{
  bottom: 0;
  opacity: 1;
  pointer-events: auto;
}
.header .row{
  display: flex;
  align-items: center;
  font-size: 19px;
  color: var(--white);
}
.header .row i{
  cursor: default;
  color: var(--white);
}
.header .row span{
  margin-left: 5px;
}
.header #close{
  font-size: 22px;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}
.header #close:hover {
  color: var(--white);
}
.music-list ul{
  margin: 10px 0;
  max-height: 260px;
  overflow: auto;
}
.music-list ul::-webkit-scrollbar{
  width: 4px;
}
.music-list ul::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,0.2);
  border-radius: 10px;
}
.music-list ul li{
  list-style: none;
  display: flex;
  cursor: pointer;
  padding-bottom: 10px;
  margin-bottom: 5px;
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05); 
}
.music-list ul li:last-child{
  border-bottom: 0px;
}
.music-list ul li .row span{
  font-size: 17px;
}
.music-list ul li .row p{
  opacity: 0.6;
  font-size: 14px;
}
ul li .audio-duration{
  font-size: 15px;
  opacity: 0.8;
}
ul li.playing{
  pointer-events: none;
  color: var(--color1);
}