/* ======================================
   TIJDVERDRIJF - MUSIC PAGE
   ====================================== */

/* --- Section blocks --- */

.music-section {
  margin-bottom: 56px;
}

.music-section:last-of-type {
  margin-bottom: 72px;
}

.music-section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 8px;
}

.music-section-subtitle {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.55;
  margin-bottom: 24px;
}

/* --- Player grid: SoundCloud + Spotify paired --- */

.music-players {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 900px) {
  .music-players {
    grid-template-columns: 1fr;
  }
}

/* --- Embed wrappers (SoundCloud + Spotify share surface) --- */

.soundcloud-embed,
.spotify-embed {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
}

.soundcloud-embed iframe,
.spotify-embed iframe {
  display: block;
  width: 100%;
  border: 0;
}

/* --- Blocked state: hide the (unloaded) iframe, show the placeholder --- */

.soundcloud-embed.embed-blocked iframe,
.spotify-embed.embed-blocked iframe {
  display: none;
}

.embed-placeholder {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 40px 24px;
  min-height: 450px;
  text-align: center;
  background: var(--surface);
}

.soundcloud-embed.embed-blocked .embed-placeholder,
.spotify-embed.embed-blocked .embed-placeholder {
  display: flex;
}

.embed-placeholder-text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.55;
  max-width: 320px;
  margin: 0;
}

.embed-placeholder-btn {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 10px;
  padding: 10px 20px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.embed-placeholder-btn:hover {
  background: rgba(236, 255, 12, 0.15);
  color: var(--accent);
}

.embed-placeholder-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* --- Section divider --- */

.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 56px 0;
}

/* --- Demo form --- */

.demo-form {
  max-width: 600px;
}

/* Success state - inline callout (not full-page like .form-success) */

.demo-form-success {
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid var(--success);
  border-radius: 10px;
  padding: 20px 22px;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.55;
  text-align: center;
}

/* --- Responsive --- */

@media (max-width: 640px) {
  .music-section {
    margin-bottom: 44px;
  }

  .section-divider {
    margin: 44px 0;
  }

  .soundcloud-embed iframe,
  .spotify-embed iframe {
    height: 400px;
  }

  .embed-placeholder {
    min-height: 400px;
  }
}
