/* =========================================================
   TRYHARD — 3D COVERFLOW
   Usado en ARTISTS y RELEASES.
   Este archivo se carga DESPUÉS de style.css, así que
   sus reglas ganan por orden de cascada sin tocar
   el archivo original.
========================================================= */

.coverflow {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.coverflow-spotlight {
  position: absolute;
  top: -18%;
  left: 50%;
  width: 620px;
  height: 620px;
  transform: translateX(-50%);
  background: radial-gradient(
    circle,
    rgba(255, 23, 23, .30) 0%,
    rgba(255, 23, 23, .10) 45%,
    rgba(255, 23, 23, 0) 72%
  );
  filter: blur(4px);
  pointer-events: none;
  z-index: 0;
}

.coverflow-pedestal {
  position: absolute;
  bottom: 6%;
  left: 50%;
  width: 280px;
  height: 36px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 23, 23, .55) 0%,
    rgba(255, 23, 23, .18) 45%,
    rgba(255, 23, 23, 0) 75%
  );
  filter: blur(3px);
  pointer-events: none;
  z-index: 0;
}

.coverflow-stage {
  position: relative;
  width: 100%;
  height: 100%;
  perspective: 1500px;
  z-index: 1;
}

.coverflow-track {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}

.coverflow-item {
  position: absolute;
  top: 50%;
  left: 50%;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 22px 50px rgba(0, 0, 0, .55);
  transition:
    transform .55s cubic-bezier(.16, 1, .3, 1),
    opacity .55s ease,
    filter .55s ease,
    box-shadow .3s ease;
  will-change: transform, opacity, filter;
}

.coverflow-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.coverflow-item.is-active {
  cursor: default;
  box-shadow:
    0 30px 70px rgba(255, 23, 23, .22),
    0 22px 50px rgba(0, 0, 0, .6);
}

.coverflow-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  width: 42px;
  height: 42px;

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

  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(5, 5, 5, .55);

  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;

  cursor: pointer;
  z-index: 6;

  transition:
    background .2s ease,
    border-color .2s ease,
    transform .2s ease;
}

.coverflow-arrow:hover {
  background: var(--red, #ff1717);
  border-color: var(--red, #ff1717);
}

.coverflow-arrow:active {
  transform: translateY(-50%) scale(.92);
}

.coverflow-prev { left: 3%; }
.coverflow-next { right: 3%; }


/* =========================================================
   RELEASES — COVERFLOW (portadas cuadradas)
========================================================= */

.releases .coverflow--releases {
  height: 420px;
  margin-top: 4px;
}

.releases .coverflow--releases .coverflow-item {
  width: 200px;
  height: 200px;
  margin: -100px 0 0 -100px;
  border-radius: 3px;
}

/* El grid original de .release-content ya no aplica:
   pasamos a layout vertical simple para el modo coverflow. */
.release-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.release-filters {
  grid-column: unset;
  grid-row: unset;
  position: relative;
  order: -1;
}

.release-info {
  grid-column: unset;
  grid-row: unset;
  width: 100%;
  padding-top: 22px;
  text-align: center;
}

.release-info h3,
.release-secondary,
.platforms {
  margin-left: auto;
  margin-right: auto;
}

.platforms {
  justify-content: center;
}

.release-secondary {
  justify-content: center;
}

.release-counter {
  grid-column: unset;
  grid-row: unset;
  width: auto;
  margin: 10px auto 0;
  border-bottom: 0;
  text-align: center;
}


/* =========================================================
   ARTISTS — COVERFLOW (retratos verticales)
========================================================= */

.artists-coverflow-wrap {
  grid-column: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.coverflow--artists {
  height: 460px;
}

.coverflow--artists .coverflow-item {
  width: 220px;
  height: 300px;
  margin: -150px 0 0 -110px;
  border-radius: 4px;
  background: linear-gradient(145deg, #444, #111);
}

.artist-info-panel {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

.artist-info-name {
  margin: 0;
  color: #f3f3f1;
  font-family: "Anton", sans-serif;
  font-size: clamp(34px, 4vw, 46px);
  font-weight: 400;
  line-height: .95;
  letter-spacing: -.02em;
  text-transform: uppercase;
}

.artist-info-panel .artist-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.artist-info-panel .artist-meta span {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.artist-info-panel .artist-role { color: #b8b8b8; }
.artist-info-panel .artist-location { color: #777; }
.artist-info-panel .artist-genre { color: var(--red, #ff1717); font-weight: 900; }

.artist-info-link {
  margin-top: 4px;
}


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

@media (max-width: 1000px) {

  .artists-coverflow-wrap {
    grid-column: 1 / -1;
  }

}

@media (max-width: 700px) {

  .releases .coverflow--releases {
    height: 320px;
  }

  .releases .coverflow--releases .coverflow-item {
    width: 148px;
    height: 148px;
    margin: -74px 0 0 -74px;
  }

  .coverflow--artists {
    height: 380px;
  }

  .coverflow--artists .coverflow-item {
    width: 170px;
    height: 232px;
    margin: -116px 0 0 -85px;
  }

  .coverflow-arrow {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .coverflow-prev { left: 2%; }
  .coverflow-next { right: 2%; }

  .artists-coverflow-wrap {
    padding: 0 22px;
  }

  .release-info {
    padding-top: 18px;
  }

}
