*{
  box-sizing:border-box;
  -webkit-tap-highlight-color:transparent;
}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  background:#050505;
  color:#fff;
  font-family:Arial,Helvetica,sans-serif;
  padding-bottom:82px;
  overflow-x:hidden;
}

button,
input{
  font:inherit;
}

button{
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
}

img{
  display:block;
  max-width:100%;
}


/* =========================
   SPLASH
========================= */

.splash{
  position:fixed;
  inset:0;
  z-index:1000;
  background:#050505;
  display:flex;
  align-items:center;
  justify-content:center;
  animation:splashOut .7s ease 2s forwards;
}

.splash-content{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  animation:splashIntro 1.1s ease both;
}

.splash-logo{
  width:105px;
  height:105px;
  object-fit:contain;
  border-radius:24px;
}

.splash-name{
  margin-top:18px;
  font-size:25px;
  font-weight:800;
  letter-spacing:5px;
}

.splash-subtitle{
  margin-top:7px;
  font-size:10px;
  font-weight:700;
  letter-spacing:3px;
  color:#d8b35a;
}

@keyframes splashIntro{
  from{
    opacity:0;
    transform:scale(.92);
  }
  to{
    opacity:1;
    transform:scale(1);
  }
}

@keyframes splashOut{
  to{
    opacity:0;
    visibility:hidden;
    pointer-events:none;
  }
}


/* =========================
   APLICACIÓN
========================= */

#app{
  min-height:100vh;
  animation:pageIn .55s ease both;
}

@keyframes pageIn{
  from{
    opacity:0;
  }
  to{
    opacity:1;
  }
}


/* =========================
   BARRA SUPERIOR
========================= */

.topbar{
  height:64px;
  padding:0 20px;
  display:flex;
  align-items:center;
  border-bottom:1px solid #1d1d1d;
  position:sticky;
  top:0;
  background:rgba(7,7,7,.94);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  z-index:50;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:800;
  letter-spacing:3px;
  font-size:16px;
}

.brand-logo{
  width:32px;
  height:32px;
  object-fit:contain;
  border-radius:8px;
}


/* =========================
   PANTALLAS
========================= */

.screen{
  display:none;
  min-height:calc(100vh - 64px);
  padding-bottom:110px;
  animation:screenIn .35s ease both;
}

.screen.active-screen{
  display:block;
}

@keyframes screenIn{
  from{
    opacity:0;
    transform:translateY(7px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}


/* =========================
   INICIO
========================= */

.featured-release{
  padding:30px 20px 24px;
  position:relative;
  overflow:hidden;
}

.featured-release::before{
  content:"";
  position:absolute;
  width:300px;
  height:300px;
  border-radius:50%;
  background:rgba(216,179,90,.08);
  filter:blur(45px);
  top:-100px;
  right:-110px;
  pointer-events:none;
}

.featured-cover-wrap{
  position:relative;
  width:min(76vw,330px);
  aspect-ratio:1;
  margin:8px auto 26px;
}

.featured-cover{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:18px;
  box-shadow:
    0 20px 55px rgba(0,0,0,.55),
    0 0 35px rgba(216,179,90,.08);
}

.release-info{
  text-align:center;
  position:relative;
  z-index:1;
}

.release-status{
  display:inline-block;
  font-size:10px;
  font-weight:800;
  letter-spacing:2.5px;
  color:#d8b35a;
  margin-bottom:10px;
}

.release-info h1{
  margin:0;
  font-size:28px;
  line-height:1.1;
  letter-spacing:.5px;
}

.featured-artist{
  margin:8px 0 22px;
  color:#888;
  font-size:13px;
}

.countdown{
  display:flex;
  justify-content:center;
  gap:9px;
  margin:0 auto;
}

.countdown div{
  min-width:62px;
  padding:10px 7px;
  background:#101010;
  border:1px solid #202020;
  border-radius:12px;
}

.countdown strong{
  display:block;
  font-size:20px;
  font-weight:700;
}

.countdown small{
  display:block;
  margin-top:4px;
  color:#777;
  font-size:8px;
  letter-spacing:1px;
}

.primary-button,
.secondary-button{
  border:0;
  border-radius:12px;
  padding:13px 18px;
  font-weight:800;
  letter-spacing:.5px;
  transition:
    transform .15s ease,
    box-shadow .15s ease,
    opacity .15s ease;
}

.primary-button{
  margin-top:4px;
  background:#d8b35a;
  color:#080808;
  box-shadow:0 8px 25px rgba(216,179,90,.14);
}

.secondary-button{
  background:#151515;
  color:#fff;
  border:1px solid #2a2a2a;
}

.primary-button:active,
.secondary-button:active{
  transform:scale(.95);
}

.hidden{
  display:none !important;
}


/* =========================
   TRACKLIST
========================= */

.featured-tracklist{
  margin-top:30px;
}

.tracklist-title{
  color:#777;
  font-size:10px;
  font-weight:800;
  letter-spacing:2px;
  margin-bottom:10px;
}

.locked-track{
  display:flex;
  align-items:center;
  gap:14px;
  padding:14px 2px;
  border-bottom:1px solid #191919;
  color:#666;
  font-size:13px;
}

.locked-track span:nth-child(1){
  width:25px;
  color:#444;
  font-size:11px;
}

.locked-track span:nth-child(2){
  flex:1;
  letter-spacing:.5px;
}

.locked-track span:nth-child(3){
  font-size:11px;
}


/* =========================
   PERFIL RESUMIDO
========================= */

.profile-summary{
  margin:15px 20px 25px;
  padding:30px 20px;
  text-align:center;
  background:#0c0c0c;
  border:1px solid #1c1c1c;
  border-radius:20px;
}

.profile-logo{
  width:72px;
  height:72px;
  object-fit:contain;
  margin:0 auto 14px;
  border-radius:16px;
}

.profile-summary h2{
  margin:0;
  font-size:21px;
  letter-spacing:2px;
}

.profile-summary p{
  margin:7px 0 22px;
  color:#777;
  font-size:12px;
}

.profile-stats{
  display:flex;
  justify-content:center;
  gap:55px;
  margin-bottom:23px;
}

.profile-stats div{
  display:flex;
  flex-direction:column;
  gap:5px;
}

.profile-stats strong{
  font-size:20px;
}

.profile-stats span{
  color:#666;
  font-size:8px;
  letter-spacing:1.5px;
}


/* =========================
   ENCABEZADOS
========================= */

.screen-header{
  padding:32px 20px 20px;
}

.screen-header h1{
  margin:0;
  font-size:31px;
  letter-spacing:-.5px;
}

.screen-header p{
  margin:7px 0 0;
  color:#777;
  font-size:13px;
}


/* =========================
   CANCIONES
========================= */

.song-list{
  padding:0 20px 20px;
}

.song{
  display:flex;
  align-items:center;
  gap:13px;
  padding:11px;
  margin:7px 0;
  background:#101010;
  border:1px solid #1b1b1b;
  border-radius:14px;
  transition:
    transform .15s ease,
    border-color .15s ease;
}

.song:active{
  transform:scale(.98);
}

.cover{
  width:52px;
  height:52px;
  flex:none;
  display:grid;
  place-items:center;
  border-radius:10px;
  background:#1b1b1b;
  color:#d8b35a;
  font-size:20px;
}

.info{
  flex:1;
  min-width:0;
}

.title{
  font-weight:700;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.meta{
  font-size:11px;
  color:#777;
  margin-top:5px;
}

.song button{
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  flex:none;
  background:#181818;
  border:1px solid #242424;
  border-radius:50%;
  color:#fff;
  font-size:15px;
  transition:transform .15s ease;
}

.song button:active{
  transform:scale(.88);
}


/* =========================
   ÁLBUMES
========================= */

.album-list{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:14px;
  padding:0 20px 25px;
}

.album-card{
  min-width:0;
  background:#101010;
  border:1px solid #1d1d1d;
  border-radius:15px;
  padding:10px;
  transition:transform .15s ease;
}

.album-card:active{
  transform:scale(.97);
}

.album-cover{
  width:100%;
  aspect-ratio:1;
  border-radius:10px;
  background:#1d1d1d;
  display:grid;
  place-items:center;
  color:#d8b35a;
  font-size:25px;
}

.album-card-info{
  padding:10px 2px 3px;
}

.album-card-info strong{
  display:block;
  font-size:13px;
}

.album-card-info span{
  display:block;
  margin-top:4px;
  color:#777;
  font-size:10px;
}

.favorites-section{
  padding:0 20px 16px;
}

.favorites-card{
  display:flex;
  align-items:center;
  gap:13px;
}

.favorites-card .album-cover{
  width:62px;
  flex:none;
}

.favorites-card .album-card-info{
  padding:0;
}


/* =========================
   BUSCAR
========================= */

.search-box{
  margin:0 20px 20px;
  height:52px;
  display:flex;
  align-items:center;
  gap:10px;
  padding:0 15px;
  background:#101010;
  border:1px solid #242424;
  border-radius:14px;
}

.search-icon{
  color:#777;
  font-size:22px;
}

.search-box input{
  flex:1;
  min-width:0;
  border:0;
  outline:0;
  background:none;
  color:#fff;
  font-size:14px;
}

.search-box input::placeholder{
  color:#666;
}

.search-results{
  padding:0 20px 20px;
}


/* =========================
   MINI PLAYER
========================= */

.mini{
  position:fixed;
  z-index:80;
  left:10px;
  right:10px;
  bottom:74px;
  display:flex;
  align-items:center;
  gap:10px;
  padding:9px;
  background:rgba(20,20,20,.97);
  border:1px solid #2a2a2a;
  border-radius:15px;
  box-shadow:0 10px 35px rgba(0,0,0,.45);
  animation:miniIn .25s ease both;
}

@keyframes miniIn{
  from{
    opacity:0;
    transform:translateY(10px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}

.mini-cover{
  width:43px;
  height:43px;
  flex:none;
}

.mini-cover img{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:8px;
}

.player-info{
  flex:1;
  min-width:0;
}

.player-info b{
  display:block;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  font-size:13px;
}

.player-info small{
  display:block;
  color:#777;
  font-size:10px;
  margin-top:3px;
}

.mini #play{
  width:39px;
  height:39px;
  display:grid;
  place-items:center;
  flex:none;
  background:#fff;
  color:#050505;
  border:0;
  border-radius:50%;
  font-size:13px;
  transition:transform .15s ease;
}

.mini #play:active{
  transform:scale(.88);
}


/* =========================
   REPRODUCTOR COMPLETO
========================= */

.full-player{
  position:fixed;
  inset:0;
  z-index:200;
  background:#070707;
  overflow-y:auto;
  animation:playerIn .35s ease both;
}

@keyframes playerIn{
  from{
    opacity:0;
    transform:translateY(20px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}

.full-player-top{
  height:65px;
  padding:0 18px;
  display:grid;
  grid-template-columns:42px 1fr 42px;
  align-items:center;
  text-align:center;
  color:#777;
  font-size:9px;
  font-weight:800;
  letter-spacing:2px;
}

.full-player-top button{
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border:0;
  background:none;
  color:#fff;
  font-size:23px;
}

.full-player-content{
  width:min(100%,520px);
  margin:auto;
  padding:18px 25px 35px;
}

.full-cover-wrap{
  width:min(82vw,390px);
  aspect-ratio:1;
  margin:15px auto 30px;
}

.full-cover{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:18px;
  box-shadow:
    0 25px 60px rgba(0,0,0,.55),
    0 0 45px rgba(216,179,90,.07);
}

.full-song-info{
  margin-bottom:25px;
}

.full-song-info h1{
  margin:0;
  font-size:25px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.full-song-info p{
  margin:7px 0 3px;
  color:#d8b35a;
  font-size:14px;
}

.full-song-info span{
  color:#666;
  font-size:11px;
}

.progress-area{
  margin-bottom:24px;
}

#progress{
  width:100%;
  height:4px;
  appearance:none;
  -webkit-appearance:none;
  background:#292929;
  border-radius:10px;
  outline:none;
}

#progress::-webkit-slider-thumb{
  appearance:none;
  -webkit-appearance:none;
  width:12px;
  height:12px;
  border-radius:50%;
  background:#fff;
}

#progress::-moz-range-thumb{
  width:12px;
  height:12px;
  border:0;
  border-radius:50%;
  background:#fff;
}

.time-row{
  display:flex;
  justify-content:space-between;
  margin-top:7px;
  color:#666;
  font-size:9px;
}

.player-controls{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:30px;
}

.player-controls button{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border:0;
  background:none;
  color:#fff;
  font-size:17px;
  transition:transform .15s ease;
}

.player-controls button:active{
  transform:scale(.84);
}

.player-controls .main-play{
  width:62px;
  height:62px;
  border-radius:50%;
  background:#fff;
  color:#050505;
  font-size:20px;
}

.player-actions{
  display:flex;
  justify-content:space-around;
  padding-top:5px;
}

.player-actions button{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  border:0;
  background:none;
  color:#888;
  font-size:20px;
  transition:transform .15s ease,color .15s ease;
}

.player-actions button span{
  font-size:8px;
  letter-spacing:1px;
}

.player-actions button:active{
  transform:scale(.88);
}


/* =========================
   LETRAS
========================= */

.lyrics-screen{
  position:fixed;
  inset:0;
  z-index:300;
  background:#080808;
  overflow:hidden;
}

.lyrics-top{
  position:relative;
  z-index:3;
  height:65px;
  padding:0 18px;
  display:grid;
  grid-template-columns:42px 1fr 42px;
  align-items:center;
  text-align:center;
  color:#fff;
  font-size:10px;
  font-weight:800;
  letter-spacing:2px;
}

.lyrics-top button{
  width:38px;
  height:38px;
  border:0;
  background:none;
  color:#fff;
  font-size:23px;
}

.lyrics-background{
  position:absolute;
  inset:0;
  background:#101010;
  opacity:.8;
}

.lyrics-content{
  position:relative;
  z-index:2;
  height:calc(100vh - 65px);
  overflow-y:auto;
  padding:70px 28px 120px;
}

.lyrics-text{
  max-width:600px;
  margin:auto;
  text-align:center;
  font-size:22px;
  line-height:1.8;
  color:#aaa;
}

.lyrics-line.active{
  color:#fff;
  transform:scale(1.03);
}


/* =========================
   AVISO SIN INTERNET
========================= */

.offline-notice{
  position:fixed;
  z-index:90;
  left:14px;
  right:14px;
  bottom:145px;
  padding:10px 13px;
  text-align:center;
  background:#171717;
  border:1px solid #303030;
  border-radius:11px;
  color:#999;
  font-size:10px;
  box-shadow:0 8px 25px rgba(0,0,0,.35);
}


/* =========================
   NAVEGACIÓN INFERIOR
========================= */

nav{
  position:fixed;
  z-index:100;
  left:0;
  right:0;
  bottom:0;
  height:66px;
  background:rgba(9,9,9,.97);
  border-top:1px solid #202020;
  display:flex;
  justify-content:space-around;
  padding-bottom:env(safe-area-inset-bottom);
}

nav button{
  flex:1;
  max-width:120px;
  border:0;
  background:none;
  color:#666;
  font-size:19px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:4px;
  transition:
    transform .15s ease,
    color .15s ease;
}

nav button span{
  line-height:1;
}

nav button small{
  font-size:9px;
  letter-spacing:.3px;
}

nav button.active{
  color:#d8b35a;
}

nav button:active{
  transform:scale(.88);
}


/* =========================
   RESPONSIVE
========================= */

@media(min-width:700px){

  body{
    padding-bottom:90px;
  }

  main{
    max-width:900px;
    margin:auto;
  }

  .featured-release{
    padding-top:45px;
  }

  .featured-cover-wrap{
    width:360px;
  }

  .album-list{
    grid-template-columns:repeat(3,1fr);
  }

  .mini{
    left:50%;
    right:auto;
    width:min(680px,calc(100% - 40px));
    transform:translateX(-50%);
  }

  .offline-notice{
    left:50%;
    right:auto;
    width:min(500px,calc(100% - 30px));
    transform:translateX(-50%);
  }

}