/* BASE */

html,body{
overflow:hidden;
height:100%;
margin:0;
padding:0;
background:#0f0f0f;
color:white;
font-family:system-ui,-apple-system,sans-serif;
}

#app{
height:100dvh;
max-width:420px;
margin:auto;
padding:12px 18px 8px 18px;
display:flex;
flex-direction:column;
justify-content:flex-start;
gap:8px;
text-align:center;
overflow:hidden;
}



/* TOP BAR */

#topBar{
display:flex;
justify-content:space-between;
align-items:center;
margin-bottom:6px;
}

h1{
font-family:Roboto,system-ui,-apple-system,sans-serif;
font-size:25px;
font-weight:600;
letter-spacing:1px;
margin:0;
color:#ffffff;
opacity:.85;
}

#topButtons{
display:flex;
gap:10px;
}

.topBtn{
width:44px;
height:44px;
display:flex;
align-items:center;
justify-content:center;
border-radius:12px;
background:#1c1c1e;
border:1px solid rgba(255,255,255,.06);
cursor:pointer;
transition:.15s;
}

.topBtn svg{
width:20px;
height:20px;
fill:white;
opacity:.85;
}

.topBtn:active{
transform:scale(.92);
background:#333;
}

.topBtn.active{
background:#2f7cff;
border-color:#2f7cff;
}

.topBtn.active svg{
opacity:1;
}



/* INFO */

#stats{
font-size:18px;
font-weight:500;
letter-spacing:.3px;
opacity:.85;
margin-top:8px;
}



/* ICONA PLAYER */

#coverContainer{
width:220px;
height:220px;
margin:10px auto 4px auto;
display:flex;
align-items:center;
justify-content:center;
}

#cover{
width:100%;
height:100%;
border-radius:16px;
background:#111;
box-shadow:0 0 25px rgba(255,255,255,.08);
object-fit:contain;
padding:18px;
box-sizing:border-box;
}



/* CONTROLLI PRINCIPALI */

#mainControls{
display:flex;
justify-content:center;
align-items:center;
gap:30px;
margin:10px 0 5px 0;
}

button{
border:none;
color:white;
cursor:pointer;
}

.navBtn{
width:82px;
height:82px;
border-radius:22px;
background:#1f1f1f;
display:flex;
align-items:center;
justify-content:center;
}

.playBtn{
width:115px;
height:115px;
border-radius:30px;
background:#2a2a2a;
display:flex;
align-items:center;
justify-content:center;
position:relative;
}

button:active{
transform:scale(.94);
}



/* ICONE SVG */

.navBtn svg{
width:34px;
height:34px;
fill:white;
display:block;
}

.playBtn svg{
width:46px;
height:46px;
fill:white;
position:absolute;
}



/* TITOLO BRANO */

#trackName{
opacity:0.7;
font-size:0.9em;
margin-top:-4px;
}

#trackArtist{
font-size:18px;
font-weight:500;
letter-spacing:.3px;
min-height:28px;
margin-top:8px;
opacity:.95;
}



/* PROGRESS BAR */

#progressContainer{
display:flex;
align-items:center;
gap:10px;
font-size:13px;
margin-top:10px;
opacity:.85;
}

#progressBar{
flex:1;
appearance:none;
height:6px;
border-radius:6px;
background:#333;
outline:none;
}

#progressBar::-webkit-slider-thumb{
appearance:none;
width:18px;
height:18px;
border-radius:50%;
background:white;
cursor:pointer;
}

#progressBar::-moz-range-thumb{
width:18px;
height:18px;
border-radius:50%;
background:white;
border:none;
cursor:pointer;
}



/* SETTINGS */

#settingsPage{
display:none;
max-width:420px;
margin:auto;
padding:14px 16px 22px 16px;
text-align:left;
font-size:15px;
}

.settingsSection{
margin-bottom:16px;
}

.settingsTitle{
font-size:10px;
letter-spacing:1px;
opacity:.45;
margin:16px 0 6px 0;
text-transform:uppercase;
}

.settingItem{
display:flex;
align-items:center;
justify-content:space-between;
padding:9px 0;
border-bottom:1px solid rgba(255,255,255,.04);
font-size:15px;
line-height:1.2;
}

.settingItem span{
flex:1;
}

.settingItem input[type="checkbox"]{
width:17px;
height:17px;
cursor:pointer;
}



/* BOTTONE */

#backBtn{
margin-top:16px;
width:100%;
padding:11px;
font-size:14px;
background:#1c1c1e;
border:1px solid rgba(255,255,255,.05);
color:white;
border-radius:10px;
}

#appVersion
{
font-size:10px;
color:#888;
opacity:0.55;
text-align:center;
margin-top:18px;
margin-bottom:6px;
letter-spacing:0.5px;
}