/* ======================================
   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;
  }
}

/* ======================================
   DISCOGRAPHY (Releases tab)
   ====================================== */

/* --- Accessibility helper --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Tabs --- */
.music-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 99px;
}

.music-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  padding: 9px 22px;
  border-radius: 99px;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.music-tab:hover {
  color: var(--text);
}

.music-tab.active {
  background: var(--accent);
  color: #0A0A0A;
}

.music-tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.discography-status {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  padding: 24px 0;
}

/* --- Release list (single stacked column) --- */
.discography-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* --- Release card (horizontal: cover left, body right) --- */
.release-card {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 18px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: border-color 0.25s ease;
}

.release-card:hover {
  border-color: rgba(236, 255, 12, 0.4);
}

.release-cover {
  position: relative;
  flex-shrink: 0;
  width: 150px;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  background: #0d0d0d;
  overflow: hidden;
}

.release-cover-img,
.release-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.release-type-badge {
  flex-shrink: 0;
  background: var(--accent);
  color: #0A0A0A;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 0;
}

.release-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Title row: name on the left, release-type tag pinned to the top right. */
.release-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.release-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1875rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text);
}

/* Single's one-line track info, matching the EP/album track-list divider. */
.release-single-info {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 12px;
  font-size: 0.875rem;
}

.release-single-artist {
  color: var(--text);
}

.release-single-dur {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.release-date {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.release-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* --- Track list (EP / Remix EP) --- */
.release-tracklist {
  border-top: 1px solid var(--border-subtle);
  padding-top: 12px;
}

.release-tracklist-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.release-tracks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.release-track {
  display: grid;
  grid-template-columns: 1.5rem 1fr auto;
  align-items: start;
  gap: 8px;
  font-size: 0.875rem;
}

.release-track-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  text-align: right;
  line-height: 1.35;
}

.release-track-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.release-track-title {
  color: var(--text);
  line-height: 1.35;
}

.release-track-artist {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.release-track-dur {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* --- Streaming buttons + Spotify embed --- */
.release-player {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

/* The inline player appears below the button row once consent is given. */
.release-player-embed { display: none; }
.release-player.consented .release-player-embed { display: block; }

.release-player-embed iframe {
  width: 100%;
  height: 152px;
  border: 0;
  border-radius: 12px;
}

.release-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.release-stream-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

/* Override the global a:hover underline. */
.release-stream-btn:hover { text-decoration: none; }

/* Leading brand logo inside a stream button. */
.release-stream-icon {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  object-fit: contain;
  flex-shrink: 0;
}

.release-stream-btn--spotify {
  background: transparent;
  border: 1px solid #30D866;
  color: #30D866;
}

.release-stream-btn--spotify:hover {
  background: rgba(48, 216, 102, 0.12);
}

.release-stream-btn--ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.release-stream-btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Per-platform brand colours (outline + text). These follow the --ghost rule
   so they win on equal specificity. */
.release-stream-btn--appleMusic {
  border-color: #FC2840;
  color: #FC2840;
}

.release-stream-btn--appleMusic:hover {
  background: rgba(252, 40, 64, 0.12);
  border-color: #FC2840;
  color: #FC2840;
}

.release-stream-btn--deezer {
  border-color: #9E34F7;
  color: #9E34F7;
}

.release-stream-btn--deezer:hover {
  background: rgba(158, 52, 247, 0.12);
  border-color: #9E34F7;
  color: #9E34F7;
}

.release-stream-btn--beatport {
  border-color: #01FF95;
  color: #01FF95;
}

.release-stream-btn--beatport:hover {
  background: rgba(1, 255, 149, 0.12);
  border-color: #01FF95;
  color: #01FF95;
}

.release-stream-btn--youtube,
.release-stream-btn--youtubeMusic {
  border-color: #F9061B;
  color: #F9061B;
}

.release-stream-btn--youtube:hover,
.release-stream-btn--youtubeMusic:hover {
  background: rgba(249, 6, 27, 0.12);
  border-color: #F9061B;
  color: #F9061B;
}

.release-stream-btn--soundcloud {
  border-color: #FF5500;
  color: #FF5500;
}

.release-stream-btn--soundcloud .release-stream-icon {
  width: 26px;
  border-radius: 0;
}

.release-stream-btn--soundcloud:hover {
  background: rgba(255, 85, 0, 0.12);
  border-color: #FF5500;
  color: #FF5500;
}

.release-stream-btn--amazonMusic {
  border-color: #25D1DA;
  color: #25D1DA;
}

.release-stream-btn--amazonMusic:hover {
  background: rgba(37, 209, 218, 0.12);
  border-color: #25D1DA;
  color: #25D1DA;
}

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

/* Keep the cover-left / body-right layout on phones, just smaller + tighter. */
@media (max-width: 560px) {
  .release-card {
    gap: 14px;
    padding: 14px;
  }
  .release-cover {
    width: 96px;
    border-radius: 8px;
  }
}
