/* Soundtrack section */

.soundtrack {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.soundtrack__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.soundtrack__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease-out;
  will-change: transform;
}

.soundtrack__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  
  /* Dark center (85% black) fading out to a lighter edge (30% black) */
  background: radial-gradient(
    ellipse at center, 
    rgba(0, 0, 0, 0.85) 15%, 
    rgba(0, 0, 0, 0.3) 75%
  );
}

.soundtrack__container {
  position: relative;
  z-index: 1;
}

.soundtrack__title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
}

.soundtrack__description {
  color: var(--color-text-primary);
  max-width: 600px;
  margin: 0 auto var(--space-md);
  line-height: 1.7;
}

.soundtrack__warning {
  font-size: 1.2rem;
  color: var(--color-text-secondary);
  font-style: italic;
  margin-bottom: var(--space-xl);
}

.soundtrack__widgets {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  max-width: 500px;
  margin: 0 auto;
}

.soundtrack__widget {
  background: rgba(20, 20, 40, 0.8);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: var(--space-lg);
  backdrop-filter: blur(8px);
}

.soundtrack__widget h3 {
  font-size: 0.9rem;
  margin-bottom: var(--space-md);
  color: var(--color-text-secondary);
}

@media (max-width: 900px) {
  /* 1. Pull the container up and fade out the bottom edge */
  .soundtrack__bg {
    top: -10%; /* Drags the image up behind the title */
    bottom: auto; /* Disconnects it from the bottom of the section */
    height: 80%; /* Prevents it from stretching all the way down */
    
    /* The cinematic fade-to-black dissolve at the bottom */
    mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
  }

  /* 2. Lock the image focus to the top so we don't just see empty sky */
  .soundtrack__bg img {
    object-position: 20% 20%; 
    width: 120%; /* Makes it slightly wider than the screen */
    max-width: none; 
    transform: translateX(-10%); /* Pulls it back to center the extra width */
  }

  /* 3. Shift the dark reading-spot UP so it actually sits right behind the title */
  .soundtrack__bg::after {
    background: radial-gradient(
      ellipse at 50% 25%, /* Moved the dark center up towards the top-middle */
      rgba(0, 0, 0, 0.85) 15%, 
      rgba(0, 0, 0, 0.2) 80%
    );
  }

  .soundtrack__title {
    font-size: 1.4rem; /* Adjust this down (e.g., 1.4rem) if it still wraps to 3 lines */
    line-height: 1.2; /* Keeps the two lines nicely stacked */
    padding: 0 var(--space-sm); /* Reduces side padding to give the text more width */
  }

  .soundtrack__description {
  font-size: 0.85rem;
  line-height: 1.5;
  }

  .soundtrack__warning {
    font-size: 1.0rem;
  }
  
  .soundtrack__widgets {
    grid-template-columns: 1fr;
  }
}