.nav-music {
  justify-content: flex-end;
}

.nav-active {
  color: var(--white) !important;
}

/* ── Hero (background video) ── */
.music-hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-top: 0;
  background: var(--black);
}

.music-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.08);
  pointer-events: none;
}

.music-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.35) 45%, rgba(0, 0, 0, 0.2) 100%);
  pointer-events: none;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .music-hero-video {
    display: none;
    transform: none;
  }
}

/* ── Releases Section ── */
.music-releases-section {
  position: relative;
  z-index: 3;
  padding: clamp(1.5rem, 4vw, 2.5rem) 2rem 3rem;
  max-width: 1280px;
  margin: 0 auto;
}

/* YouTube preview — below hero (no overlap with title) */
.music-preview {
  margin-top: 0;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.music-preview-frame {
  position: relative;
  width: 100%;
  max-width: min(720px, 92vw);
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--gray-900);
}

.music-preview-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.releases-heading {
  font-family: var(--font-headline);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.releases-heading--music {
  margin-top: clamp(1.5rem, 4vw, 2.75rem);
  margin-bottom: 1.5rem;
}

.releases-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  align-items: start;
}

/* ── Release Card ── */
.release-card {
  text-decoration: none;
  color: var(--white);
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.release-artwork {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  flex: 0 0 auto;
  overflow: hidden;
  background: var(--gray-900);
}

.release-artwork img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              filter 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.release-card:hover .release-artwork img {
  transform: scale(1.05);
  filter: brightness(0.5);
}

.release-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.release-card:hover .release-overlay {
  opacity: 1;
}

.listen-btn {
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  padding: 0.875rem 2rem;
  border: 1px solid var(--white);
  transition: background 0.3s ease, color 0.3s ease;
}

.listen-btn:hover {
  background: var(--white);
  color: var(--black);
}

.release-info {
  flex: 1 1 auto;
  padding: 1rem 0.25rem 0;
  min-width: 0;
}

.release-info h3 {
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.release-info p {
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--gray-400);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Platform Links ── */
.music-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  padding-top: 0;
}

.music-platforms--above-preview {
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.music-platform-link {
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-400);
  text-decoration: none;
  padding: 0.875rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: color var(--transition), border-color var(--transition);
}

.music-platform-link:hover {
  color: var(--white);
  border-color: var(--white);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .releases-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }

}

@media (max-width: 768px) {
  .music-hero {
    min-height: 100vh;
    min-height: 100svh;
    padding-top: 0;
  }

  .music-hero-video {
    transform: scale(1.12);
  }

  .music-preview {
    margin-top: 0;
    margin-bottom: 2.5rem;
  }

  .music-releases-section {
    padding: 1.25rem 1.5rem 2rem;
  }

  .releases-heading {
    margin-bottom: 1rem;
  }

  .releases-heading--music {
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
  }

  .music-platforms--above-preview {
    margin-bottom: 1.25rem;
  }

  .music-platforms {
    flex-direction: column;
    align-items: center;
  }

  .music-platform-link {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .releases-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .release-info h3 {
    font-size: 0.8125rem;
  }

  .release-info p {
    font-size: 0.75rem;
  }

  .listen-btn {
    font-size: 0.6875rem;
    padding: 0.625rem 1.25rem;
  }
}
