/*======================================

            VARIABLES

======================================*/

:root{

--primary:#ff4d88;
--secondary:#ff8ab5;
--dark:#1f1f1f;
--light:#ffffff;
--shadow:0 15px 35px rgba(0,0,0,.15);

}

*{

margin:0;
padding:0;
box-sizing:border-box;
font-family:"Poppins",sans-serif;

}

body{

background:linear-gradient(135deg,#fff4f8,#ffe9f2,#fff8fb);

background-size:400% 400%;

animation:bgMove 18s infinite;

padding-bottom:180px;

overflow-x:hidden;

}

/*======================================

                HERO

======================================*/

.hero{

height:45vh;

background:url("../img/fondos/music.jpg") center/cover;

display:flex;

justify-content:center;

align-items:center;

position:relative;

}

.overlay{

position:absolute;

inset:0;

background:rgba(0,0,0,.45);

}

.hero-content{

position:relative;

z-index:5;

text-align:center;

color:white;

padding:20px;

}

.hero-content h1{

font-size:60px;

margin-bottom:15px;

}

.hero-content p{

font-size:22px;

max-width:700px;

line-height:1.8;

}

/*======================================

            BUSCADOR

======================================*/

.search{

width:90%;

max-width:1300px;

margin:50px auto;

}

.search input{

width:100%;

padding:18px;

font-size:18px;

border:none;

outline:none;

border-radius:50px;

box-shadow:var(--shadow);

}

/*======================================

            PLAYLIST

======================================*/

.playlist{

width:90%;

max-width:1300px;

margin:auto;

display:flex;

flex-direction:column;

gap:18px;

padding-bottom:60px;

}

.song{

display:flex;

align-items:center;

gap:20px;

padding:18px;

background:white;

border-radius:20px;

cursor:pointer;

transition:.35s;

box-shadow:0 8px 20px rgba(0,0,0,.08);

}

.song:hover{

transform:translateY(-5px);

box-shadow:0 20px 35px rgba(0,0,0,.15);

}

.song img{

width:90px;

height:90px;

object-fit:cover;

border-radius:15px;

transition:.35s;

}

.song:hover img{

transform:scale(1.08);

}

.info{

flex:1;

}

.info h2{

font-size:24px;

color:var(--primary);

margin-bottom:8px;

}

.info p{

color:#777;

font-size:16px;

}

.play{

width:65px;

height:65px;

border:none;

border-radius:50%;

background:linear-gradient(135deg,var(--primary),var(--secondary));

color:white;

font-size:24px;

cursor:pointer;

transition:.3s;

}

.play:hover{

transform:scale(1.12);

}

/*======================================

            PLAYER

======================================*/

.player{

position:fixed;

left:0;

right:0;

bottom:0;

background:white;

box-shadow:0 -10px 30px rgba(0,0,0,.15);

display:flex;

align-items:center;

gap:20px;

padding:18px 35px;

z-index:999;

}

.player img{

width:90px;

height:90px;

border-radius:50%;

object-fit:cover;

animation:spin 10s linear infinite;

animation-play-state:paused;

}

.player.playing img{

animation-play-state:running;

}

.player-info{

min-width:250px;

}

.player-info h2{

font-size:24px;

color:var(--primary);

margin-bottom:8px;

}

.player-info p{

color:#666;

}

.player audio{

flex:1;

height:55px;

}

/*======================================

        EFECTO ACTIVO

======================================*/

.song.active{

border-left:8px solid var(--primary);

background:#fff2f7;

}

.song.active .play{

background:#ff3366;

}

/*======================================

        ANIMACIONES

======================================*/

@keyframes spin{

from{

transform:rotate(0deg);

}

to{

transform:rotate(360deg);

}

}

@keyframes bgMove{

0%{

background-position:0% 50%;

}

50%{

background-position:100% 50%;

}

100%{

background-position:0% 50%;

}

}

/*======================================

        RESPONSIVE

======================================*/

@media(max-width:900px){

.hero-content h1{

font-size:42px;

}

.hero-content p{

font-size:18px;

}

.song{

flex-wrap:wrap;

}

.info{

width:100%;

}

.player{

flex-direction:column;

padding:20px;

}

.player-info{

text-align:center;

min-width:auto;

}

.player audio{

width:100%;

}

}

@media(max-width:600px){

.song img{

width:70px;

height:70px;

}

.info h2{

font-size:20px;

}

.play{

width:55px;

height:55px;

font-size:20px;

}

.hero{

height:38vh;

}

.hero-content h1{

font-size:34px;

}

.hero-content p{

font-size:16px;

}

}
/*======================================

        BARRAS DE AUDIO

======================================*/

.bars{

display:flex;

align-items:flex-end;

gap:4px;

height:35px;

margin-left:20px;

}

.bars span{

width:5px;

height:12px;

background:#ff4d88;

border-radius:10px;

}

.bars.active span{

animation:music .8s infinite ease-in-out;

}

.bars span:nth-child(2){

animation-delay:.1s;

}

.bars span:nth-child(3){

animation-delay:.2s;

}

.bars span:nth-child(4){

animation-delay:.3s;

}

.bars span:nth-child(5){

animation-delay:.4s;

}

@keyframes music{

0%,100%{

height:10px;

}

50%{

height:35px;

}

}