/* ==========================
   🎵 DISCOGRAFÍA
========================== */

.discografia-page{
  max-width:1200px;
  margin:80px auto;
  padding:0 20px 140px;
}

/* HERO */

.disco-hero{
  height:55vh;

  background-image:url("img/covers/portada.jpg");

  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;

  border-radius:28px;

  position:relative;

  overflow:hidden;

  display:flex;
  align-items:end;

  margin-bottom:60px;
}

.disco-overlay{
  position:absolute;
  inset:0;

  background:
  linear-gradient(
    to top,
    rgba(0,0,0,0.65),
    rgba(0,0,0,0.15)
  );
}

.disco-hero-content{
  position:relative;
  z-index:2;

  padding:50px;

  color:white;
}

.disco-hero-content h1{
  font-size:4rem;
  margin-bottom:12px;
}

.disco-hero-content p{
  font-size:1rem;
  opacity:0.85;
  max-width:600px;
}

/* GRID */

.albums-grid{
  display:grid;

  grid-template-columns:
  repeat(auto-fit,minmax(260px,1fr));

  gap:32px;
}

/* CARD */

.album-card{
  background:#fff;

  border-radius:24px;

  overflow:hidden;

  box-shadow:
  0 12px 30px rgba(0,0,0,0.08);

  transition:
  transform .3s ease,
  box-shadow .3s ease;

  cursor:pointer;
}

.album-card:hover{
  transform:translateY(-6px);

  box-shadow:
  0 20px 40px rgba(0,0,0,0.14);
}

/* COVER */

.album-cover{
  position:relative;
}

.album-cover img{
  width:100%;
  aspect-ratio:1/1;
  object-fit:cover;
  display:block;
}

/* PLAY BUTTON */

.album-play{
  position:absolute;

  right:18px;
  bottom:18px;

  width:56px;
  height:56px;

  border-radius:50%;

  border:none;

  background:rgba(255,255,255,0.95);

  backdrop-filter:blur(10px);

  box-shadow:
  0 8px 20px rgba(0,0,0,0.18);

  cursor:pointer;

  font-size:1.1rem;

  transition:all .25s ease;
}

.album-play:hover{
  transform:scale(1.08);
}

/* INFO */

.album-info{
  padding:24px;
}

.album-info h3{
  font-size:1rem;

  letter-spacing:0.06em;
  text-transform:uppercase;

  margin-bottom:8px;
}

.album-info p{
  color:#666;
  font-size:0.9rem;
}

/* PLAYER */

.music-player{
  position:fixed;

  left:50%;
  bottom:24px;

  transform:translateX(-50%);

  width:min(1100px,calc(100% - 24px));

  background:
  rgba(255,255,255,0.78);

  backdrop-filter:blur(18px);

  border:
  1px solid rgba(255,255,255,0.35);

  border-radius:24px;

  padding:18px 24px;

  display:flex;
  align-items:center;
  justify-content:space-between;

  box-shadow:
  0 14px 40px rgba(0,0,0,0.12);

  z-index:9999;
}

/* LEFT */

.player-left{
  display:flex;
  align-items:center;
  gap:18px;

  width:30%;
}

.player-left img{
  width:68px;
  height:68px;

  border-radius:16px;

  object-fit:cover;
}

.player-left h4{
  font-size:0.92rem;
}

.player-left p{
  font-size:0.82rem;
  color:#666;
}

/* CENTER */

.player-center{
  width:40%;
}

.controls{
  display:flex;
  justify-content:center;
  gap:14px;

  margin-bottom:10px;
}

.controls button{
  width:42px;
  height:42px;

  border:none;

  border-radius:50%;

  background:#111;
  color:#fff;

  cursor:pointer;

  transition:all .25s ease;
}

.controls button:hover{
  transform:scale(1.06);
  background:#222;
}

/* PROGRESS */

#progress{
  width:100%;
  accent-color:#111;
}

/* RIGHT */

.player-right{
  width:20%;

  display:flex;
  justify-content:end;
}

#shuffle.active{
  background:#111;
  color:#fff;
}

/* ==========================
   🎵 TRACKLIST
========================== */

.album-tracks{
  margin-top:22px;

  display:flex;
  flex-direction:column;

  gap:8px;
}

.track-btn{
  width:100%;

  border:none;

  background:#f5f5f5;

  border-radius:12px;

  padding:12px 14px;

  display:flex;
  align-items:center;

  gap:14px;

  cursor:pointer;

  transition:
  background .2s ease,
  transform .2s ease;
}

.track-btn:hover{
  background:#ececec;
  transform:translateX(4px);
}

.track-number{
  font-size:0.75rem;

  letter-spacing:0.1em;

  color:#777;

  width:24px;
}

.track-title{
  font-size:0.92rem;
  text-align:left;
}

/* ==========================
   🎵 TRACK ACTIVO
========================== */

.track-btn{
  transition:
    background .25s ease,
    transform .2s ease,
    color .25s ease;
}

.track-btn.active{

  background:#111;

  color:#fff;

  border-radius:12px;

  transform:translateX(4px);

  box-shadow:
  0 8px 20px rgba(0,0,0,.15);

}

.track-btn.active .track-number{
  color:#1db954;
}

.track-btn.active::before{
  content:"▶";
  margin-right:10px;
  color:#1db954;
  font-size:.8rem;
}

/* ==========================
   🔊 VOLUMEN
========================== */

.volume-control{
  display:flex;
  align-items:center;
  gap:10px;
}

#volume{
  width:110px;
  accent-color:#111;
}

/* ==========================
   🔀 SHUFFLE
========================== */

/* ==========================
   🔀 SHUFFLE
========================== */

#shuffle{
  width:44px;
  height:44px;

  border-radius:50%;

  border:none;

  background:#111;
  color:#777;

  display:flex;
  align-items:center;
  justify-content:center;

  cursor:pointer;

  font-size:1rem;

  transition:
    all .25s ease;
}

/* hover */

#shuffle:hover{
  color:#fff;
  transform:scale(1.06);
}

/* activo */

#shuffle.active{
  background:#1db954;
  color:#fff;

  box-shadow:
  0 0 12px rgba(29,185,84,.5);

  transform:scale(1.1);
}

/* ==========================
   ⏱ PROGRESS PLAYER
========================== */

.progress-container{

  display:flex;

  align-items:center;

  gap:10px;

  width:100%;

  margin-top:14px;

}

#progress{

  flex:1;

  width:100%;

  appearance:none;

  height:4px;

  border-radius:999px;

  background:#ccc;

  cursor:pointer;

}

/* barra chrome */

#progress::-webkit-slider-thumb{

  appearance:none;

  width:14px;

  height:14px;

  border-radius:50%;

  background:#111;

  cursor:pointer;

}

/* firefox */

#progress::-moz-range-thumb{

  width:14px;

  height:14px;

  border:none;

  border-radius:50%;

  background:#111;

  cursor:pointer;

}

#current-time,
#duration{

  font-size:0.72rem;

  color:#777;

  width:42px;

  flex-shrink:0;

  text-align:center;

}

@media(max-width:768px){

  .discografia-page{
    padding-bottom:240px;
  }

  .disco-hero{
    height:45vh;
    border-radius:20px;
  }

  .disco-hero-content{
    padding:30px;
  }

  .disco-hero-content h1{
    font-size:2.4rem;
  }

  .albums-grid{
    gap:22px;
  }

  /* PLAYER MOBILE */

  .music-player{

  left:10px;
  right:10px;
  bottom:10px;

  width:auto;

  transform:none;

  padding:16px;

  border-radius:22px;

  display:flex;
  flex-direction:column;

  gap:16px;

  align-items:stretch;
}

  .player-left{
    width:100%;

    display:flex;
    align-items:center;

    gap:14px;
  }

  .player-left img{

    width:56px;
    height:56px;

    border-radius:12px;

    flex-shrink:0;
  }

  .player-left h4{
    font-size:.95rem;
  }

  .player-left p{
    font-size:.8rem;
  }

  .player-center{
    width:100%;
  }

  .controls{

    width:100%;

    display:flex;
    justify-content:center;

    gap:12px;

    margin-bottom:14px;
  }

  .controls button{

    width:48px;
    height:48px;

    flex-shrink:0;
  }

  .progress-container{
    width:100%;
  }

  #progress{
    width:100%;
  }

  .player-right{

    width:100%;

    display:flex;
    justify-content:center;
  }

  .volume-control{
    width:100%;

    display:flex;
    justify-content:center;

    gap:12px;
  }

  #volume{
    width:140px;
  }

}

/* ==========================
   📱 FIX MOBILE DISCografia
========================== */

html,
body{
  overflow-x:hidden;
}

@media(max-width:768px){

  .discografia-page{
    width:100%;
    overflow:hidden;
    padding:0 14px 240px;
  }

  .albums-grid{

    grid-template-columns:1fr;

    width:100%;
  }

  .album-card{
    width:100%;
    min-width:0;
  }

  .album-info{
    padding:20px;
  }

  .track-title{
    font-size:.85rem;

    overflow:hidden;
    text-overflow:ellipsis;
  }

  .music-player{

    position:fixed;

    left:10px;
    right:10px;
    bottom:10px;

    width:auto;

    transform:none;

    max-width:none;

    z-index:99999;
  }

  .controls{
    flex-wrap:wrap;
  }

  .progress-container{
    min-width:0;
  }

  #progress{
    min-width:0;
  }

}