/* ============================================
   MUSIC SECTION — Horizontal scroll (desktop)
   ============================================ */

.parallax__content.music-section {
  --album-gap: clamp(2.4rem, 3.6vw, 3.8rem);
  --album-pad-inline: clamp(1.25rem, 2.4vw, 2.75rem);
  position: relative;
  z-index: 3;
  margin-top: clamp(-9.5rem, -16vh, -5.5rem);
  margin-bottom: clamp(3rem, 6vh, 5rem);
  overflow-x: hidden;
  overflow-y: visible;
  background: transparent;
}

.parallax__content.music-section::before {
  content: "";
  display: none;
}

.album-strip-viewport {
  overflow: visible;
}

.album-strip {
  display: flex;
  align-items: center;
  gap: var(--album-gap);
  width: max-content;
  padding:
    clamp(5.5rem, 12vh, 10rem)
    var(--album-pad-inline)
    clamp(7rem, 15vh, 12rem);
  will-change: transform;
}

.album-card {
  flex-shrink: 0;
  width: calc((100vw - (2 * var(--album-pad-inline)) - (3 * var(--album-gap))) / 3.5);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.album-card__link {
  display: block;
  width: 100%;
  text-decoration: none;
  color: inherit;
}

.album-card__cover {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: clamp(1rem, 1.6vw, 1.5rem);
  overflow: hidden;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.35);
  transition: transform var(--duration-normal) var(--ease-out);
}

.album-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.album-card:hover .album-card__cover {
  transform: translateY(-4px);
}

.album-card__info {
  width: 100%;
  margin-top: clamp(1.9rem, 3.2vh, 2.6rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.album-card__title {
  margin: 0;
  font-family: var(--font-primary);
  font-size: clamp(0.92rem, 0.55rem + 0.52vw, 1.16rem);
  font-weight: 500;
  letter-spacing: 0.065em;
  text-transform: uppercase;
  color: #f5f8ff;
  white-space: nowrap;
}

.album-card__links {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.album-card__links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.24rem;
  border: 2px solid rgba(255, 255, 255);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  opacity: 0.94;
  transition:
    opacity var(--duration-fast) ease,
    border-color var(--duration-fast) ease,
    background-color var(--duration-fast) ease;
}

.album-card__links a:hover {
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.08);
}

.album-card__links img {
  width: clamp(1.32rem, 1.04rem + 0.54vw, 1.56rem);
  height: clamp(1.32rem, 1.04rem + 0.54vw, 1.56rem);
  object-fit: contain;
}

@media (max-width: 1024px) {
  .parallax__content.music-section {
    --album-gap: 1.25rem;
    --album-pad-inline: 1.5rem;
  }

  .album-card {
    width: clamp(14rem, 30vw, 17rem);
  }
}

/* --- Mobile --- */
@media (max-width: 768px) {
  .parallax__content.music-section {
    margin-top: -14rem;
    margin-bottom: 0;
    transform: none;
    z-index: 5;
    background: transparent;
    overflow: hidden;
  }

  .parallax__content.music-section::before {
    content: "";
    position: absolute;
    inset: 0 0 0 0;
    z-index: 0;
    display: block;
    background:
      linear-gradient(
        180deg,
        rgba(8, 14, 40, 0) 0%,
        rgba(15, 27, 83, 0.78) 24%,
        #152375 44%,
        #15226e 100%
      );
  }

  .album-strip-viewport {
    position: relative;
    z-index: 6;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 1.5rem;
    scrollbar-width: none;
  }

  .album-strip-viewport::-webkit-scrollbar {
    display: none;
  }

  .album-strip {
    gap: 1.25rem;
    padding: clamp(5.5rem, 10vh, 7rem) 1.5rem clamp(5rem, 10vh, 7rem);
    position: relative;
    width: max-content;
    min-width: 100%;
    will-change: auto;
  }

  .album-card {
    width: clamp(12rem, 55vw, 15rem);
    position: relative;
    z-index: 6;
    scroll-snap-align: start;
  }

  .album-card__cover {
    border-radius: 0.75rem;
  }

  .album-card__info {
    margin-top: 0.75rem;
    gap: 0.5rem;
  }

  .album-card__title {
    font-size: 0.7rem;
    letter-spacing: 0.04em;
  }

  .album-card__links {
    gap: 0.5rem;
  }

  .album-card__links a {
    padding: 0.24rem;
  }

  .album-card__links img {
    width: 1.08rem;
    height: 1.08rem;
  }
}

@media (max-width: 480px) {
  .parallax__content.music-section {
    margin-top: -15.5rem;
    margin-bottom: 0;
    transform: none;
    z-index: 5;
    background: transparent;
  }

  .parallax__content.music-section::before {
    background:
      linear-gradient(
        180deg,
        rgba(8, 14, 40, 0) 0%,
        rgba(15, 27, 83, 0.86) 28%,
        #152375 48%,
        #15226e 100%
      );
  }

  .album-strip {
    padding-top: clamp(5.75rem, 9vh, 6.75rem);
  }

  .album-card {
    width: clamp(10rem, 50vw, 13rem);
  }

  .album-card__title {
    font-size: 0.62rem;
  }

  .album-card__links img {
    width: 1.04rem;
    height: 1.04rem;
  }

  .album-card__links a {
    padding: 0.12rem;
  }
}
