body{
font-family:Arial;
background:#121212;
color:white;
text-align:center;
margin:0;
-webkit-tap-highlight-color:transparent;
}

.hdr1 {
 height: 180px;
 width: 100%;
 background-color: #000000;
 display: flex;
 align-items: center;
 padding-left: 2%;
 padding-right: 2%;
 position:relative;
}

.fullLogo {
 width: 25%;
 position: absolute;
 left:50%;
 transform:translateX(-50%);
}

.searchIcon {
 margin-left: auto;
 cursor:pointer;
}

button{
border:none;
background:none;
cursor:pointer;
outline:none;
color:white;
}


/* MINI PLAYER */

.miniPlayer{
position:fixed;
bottom:0;
left:0;
right:0;
height:160px;
background:#181818;
display:none;
align-items:center;
gap:30px;
padding:0 40px;
box-shadow:0 -10px 30px rgba(0,0,0,0.6);
cursor:pointer;
}

.miniPlayer img{
width:120px;
border-radius:10px;
object-fit:cover;
}

.miniInfo{
flex:1;
text-align:left;
}

.miniInfo h4{
margin:0;
font-size:24px;
}

.miniInfo p{
margin:4px 0 0;
font-size:20px;
color:#aaa;
}



/* PLAY BUTTON 

.playBtn{
width:76px;
height:76px;
border-radius:50%;
background:linear-gradient(135deg,#ff7a18,#ff4ecd);
display:flex;
align-items:center;
justify-content:center;
position:relative;
} */

/*

.playBtn{
width:100px;
height:100px;
border-radius:50%;

background:linear-gradient(270deg,#ff7a18,#ff4ecd,#ff7a18);
background-size:400% 400%;

display:flex;
align-items:center;
justify-content:center;

position:relative;
transform:translateX(-15px);
}


@keyframes gradientMove{

0%{
background-position:0% 50%;
}

50%{
background-position:100% 50%;
}

100%{
background-position:0% 50%;
}

}

.playBtn.pause{
animation:gradientMove 3s linear infinite;
}
/*
.playBtn::before{
content:"";
border-left:12px solid white;
border-top:8px solid transparent;
border-bottom:8px solid transparent;
margin-left:4px;
}

.playBtn::before{
content:"";

border-left:30px solid white;
border-top:19px solid transparent;
border-bottom:19px solid transparent;

position:absolute;
left:50%;
top:50%;
transform:translate(-35%,-50%);
}
/*
.playBtn.pause::before{
content:"";
width:10px;
height:10px;
background:white;
clip-path:polygon(
0% 0%,35% 0%,35% 100%,0% 100%,
65% 0%,100% 0%,100% 100%,65% 100%
);
}


.playBtn.pause::before{
content:"";

width:22px;
height:22px;

background:white;

clip-path:polygon(
0% 0%,35% 0%,35% 100%,0% 100%,
65% 0%,100% 0%,100% 100%,65% 100%
);

position:absolute;
left:50%;
top:50%;
transform:translate(-50%,-50%);
}
*/


.playBtn{

width:100px;
height:100px;

border-radius:50%;

background:linear-gradient(270deg,#ff7a18,#ff4ecd,#ff7a18);
background-size:400% 400%;

display:flex;
align-items:center;
justify-content:center;

position:relative;
cursor:pointer;

}

.playBtn svg{

width:50px;
height:50px;

fill:white;

position:absolute;

transition:.3s;

}

/* default */

.pauseIcon{
display:none;
}

/* playing */

.playBtn.pause .playIcon{
display:none;
}

.playBtn.pause .pauseIcon{
display:block;
}

@keyframes gradientMove{

0%{
background-position:0% 50%;
}

50%{
background-position:100% 50%;
}

100%{
background-position:0% 50%;
}

}

.playBtn.pause{

background:linear-gradient(270deg,#ff7a18,#ff4ecd,#ff7a18);
background-size:400% 400%;

animation:gradientMove 3s linear infinite;

}





/* FULL PLAYER */

.fullPlayer{
position:fixed;
top:0;
left:0;
right:0;
bottom:0;
background:#121212;

display:flex;
flex-direction:column;
align-items:center;
justify-content:center;

gap:25px;

transform:translateY(100%);
transition:.35s ease;

z-index:20;
}

.fullPlayer.active{
transform:translateY(0);
}

.fullPlayer img{
width:500vw;
max-width:700px;
aspect-ratio:1;
object-fit:cover;
border-radius:14px;
box-shadow:0 20px 50px rgba(0,0,0,0.6);
}

#bigTitle{

font-size:48px;      /* bigger text */
font-weight:700;

margin-top:10px;

text-align:center;

max-width:700px;     /* prevents long titles from stretching */

}


/* TIME */

.timeContainer{
display:flex;
align-items:center;
gap:10px;
}

.timeContainer span{
font-size:30px;
color:#aaa;
width:40px;
padding: 20px;
}

#progress{
width:80vw;
cursor:pointer;
}


/* CONTROLS */

.controls{
display:flex;
align-items:center;
gap:35px;
}

.iconBtn{
width:60px;
height:60px;
border-radius:50%;
background:#2a2a2a;
position:relative;
}

.iconBtn.play{
background:#1db954;
}

.iconBtn.play::before{
content:"";
position:absolute;
left:24px;
top:20px;
border-left:14px solid white;
border-top:9px solid transparent;
border-bottom:9px solid transparent;
}

.iconBtn.play.pause::before{
content:"";
width:18px;
height:18px;
background:white;
clip-path:polygon(
0% 0%,35% 0%,35% 100%,0% 100%,
65% 0%,100% 0%,100% 100%,65% 100%
);
position:absolute;
left:21px;
top:21px;
}

.iconBtn.prev::before{
content:"⏮";
font-size:22px;
position:absolute;
top:18px;
left:18px;
}

.iconBtn.next::before{
content:"⏭";
font-size:22px;
position:absolute;
top:18px;
left:18px;
}


/* VOLUME */

.volume input{
margin-top: 100px;
width:400px;
}


/* CLOSE BUTTON */

.closePlayer{
position:absolute;
top:25px;
left:25px;
font-size:100px;
}

/*
.searchPage{
position:fixed;
top:0;
left:0;
right:0;
bottom:0;
background:#121212;
display:none;
overflow:auto;
z-index:5;
}*/

.searchPage{
position:fixed;
top:0;
left:0;
right:0;
bottom:95px;   /* leave space for mini player */
background:#121212;
display:none;
overflow:auto;
z-index:5;
}

.searchHeader{
display:flex;
align-items:center;
gap:20px;
padding:30px;
}

/*
.searchHeader input{
flex:1;
padding:14px;
border:none;
border-radius:30px;
background:#1e1e1e;
color:white;
font-size:16px;
}
*/

.searchHeader input{
flex:1;
padding:20px 26px;     /* bigger padding */
height: 100px;
border:none;
border-radius:40px;    /* smoother rounded look */
background:#1e1e1e;
color:white;
font-size:40px;
max-width:800px;       /* wider bar */
width:100%;
}

.backBtn{
width:80px;
cursor:pointer;
}

.searchHeader input::placeholder{
color:#888;
font-size:40px;
}

/* SONG GRID 

#results{
display:grid;
grid-template-columns:repeat(auto-fill,200px);
gap:20px;
justify-content:center;
padding:20px;
padding-bottom:160px;
}


/* SONG CARD 

.song{
background:#1e1e1e;
padding:12px;
border-radius:12px;
cursor:pointer;
transition:.2s;
text-align:left;
}

.song:hover{
background:#2a2a2a;
}

.song img{
width:100%;
border-radius:10px;
object-fit:cover;
}

.song p{
margin:8px 0 0;
font-size:14px;
}

.song small{
color:#aaa;
}
*/

/* SONG GRID */

#results{
display:grid;
grid-template-columns:repeat(auto-fill,420px); /* bigger cards */
gap:100px;
justify-content:center;
padding:30px;
padding-bottom:160px;
}



/* SONG CARD */

.song{
background:#1e1e1e;
padding:18px;
border-radius:16px;
cursor:pointer;
transition:.2s;
text-align:left;
}

.song:hover{
background:#2a2a2a;
transform:scale(1.03);
}



/* SONG IMAGE */

.song img{
width:100%;
height:380px;   /* larger image */
object-fit:cover;
border-radius:12px;
}



/* SONG TITLE */

.song p{
margin:12px 0 0;
font-size:24px;
font-weight:600;
}



/* ARTIST NAME */

.song small{
color:#aaa;
font-size:20px;
}


/* HEADER SWITCH BLOCK */

.headerBlock{
width:100%;
display:flex;
align-items:center;
justify-content:center;
gap:25px;
}

/* SEARCH HEADER */

#searchHeader{
padding:20px;
}

/* SEARCH INPUT */

#searchInput{

width:100%;
max-width:900px;

height:80px;

padding:0 35px;

font-size:28px;

border-radius:50px;

border:none;
outline:none;

background:#1e1e1e;
color:white;

}

/* PLACEHOLDER */

#searchInput::placeholder{
color:#aaa;
font-size:26px;
}
