.music-section {
  position: relative;
  overflow: hidden;
  margin-top: -9rem;
  padding: 13rem 1.5rem 4.75rem;
  background: #07080d;
  z-index: 2;
}

.music-section::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 14rem;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(7, 8, 13, 0) 0%, rgba(7, 8, 13, 0.12) 28%, rgba(7, 8, 13, 0.78) 100%),
    radial-gradient(circle at 18% 22%, rgba(255, 128, 76, 0.14), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(197, 82, 255, 0.12), transparent 32%);
}

.music-section__background {
  position: absolute;
  inset: -10rem 0 0;
}

.music-section__background {
  background-image: url('../../images/artist/bg-reproductor.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.04);
  filter: saturate(1.06) contrast(1.02);
  transition: background-image 0.35s ease, transform 0.6s ease;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, rgba(0, 0, 0, 0.18) 10%, rgba(0, 0, 0, 0.86) 24%, #000 34%, #000 100%);
  mask-image: linear-gradient(180deg, transparent 0, rgba(0, 0, 0, 0.18) 10%, rgba(0, 0, 0, 0.86) 24%, #000 34%, #000 100%);
}

.music-header {
  max-width: 860px;
  margin: 0 auto 2.4rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.music-header h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.music-header p {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.player-stage {
  position: relative;
  width: min(100%, 1400px);
  height: clamp(500px, calc(100svh - 15rem), 800px);
  min-height: 500px;
  max-height: 800px;
  margin: 0 auto;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.34);
  z-index: 1;
}

.player-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(340px, 430px) 1px minmax(0, 1fr);
  gap: 1.6rem;
  padding: 1.25rem;
  border: 1px solid rgba(255, 160, 244, 0.35);
  border-radius: 34px;
  background: rgba(17, 11, 24, 0.18);
  backdrop-filter: blur(16px) saturate(1.03);
  -webkit-backdrop-filter: blur(16px) saturate(1.03);
}

.player-left,
.player-right {
  min-width: 0;
  min-height: 0;
}

.player-divider {
  width: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.12));
}

@media (max-width: 1080px) {
  .player-shell {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .player-stage {
    height: auto;
    min-height: 0;
    max-height: none;
  }

  .player-divider {
    display: none;
  }
}

@media (max-width: 767px) {
  .music-section {
    margin-top: -5rem;
    padding: 8rem 1rem 5rem;
  }

  .player-stage,
  .player-shell {
    min-height: auto;
    height: auto;
    max-height: none;
    border-radius: 28px;
  }

  .player-shell {
    padding: 1rem;
  }

  .music-header {
    margin-bottom: 1.6rem;
  }
}

@media (max-width: 420px) {
  .music-section {
    margin-top: -3.5rem;
    padding: 6.2rem 0.7rem 4.1rem;
  }

  .music-section::before {
    height: 8.5rem;
  }

  .music-section__background {
    inset: -5rem 0 0;
    transform: scale(1.02);
  }

  .music-header {
    margin-bottom: 1rem;
    padding-inline: 0.15rem;
  }

  .music-header h2 {
    font-size: clamp(1.6rem, 9vw, 2.1rem);
  }

  .music-header p {
    margin-top: 0.5rem;
    font-size: 0.84rem;
    line-height: 1.5;
  }

  .player-stage,
  .player-shell {
    border-radius: 22px;
  }

  .player-shell {
    gap: 0.9rem;
    padding: 0.72rem;
  }
}

@media (max-width: 340px) {
  .music-section {
    margin-top: -2.75rem;
    padding: 5.35rem 0.45rem 3.5rem;
  }

  .music-header {
    margin-bottom: 0.85rem;
  }

  .music-header p {
    font-size: 0.78rem;
  }

  .player-stage,
  .player-shell {
    border-radius: 18px;
  }

  .player-shell {
    padding: 0.58rem;
  }
}
