/* Free Music page — matches existing minimal aesthetic */

.fm-page {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 64px 96px;
}

.fm-inner {
  width: 100%;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Header */
.fm-header {
  margin-bottom: 52px;
}
.fm-eyebrow {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  font-weight: 500;
}
.fm-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.0;
  letter-spacing: 0.01em;
  color: var(--fg);
  margin-bottom: 16px;
}
.fm-artist {
  font-size: 15px;
  color: var(--muted);
  font-weight: 300;
  letter-spacing: 0.04em;
}

/* Player wrapper */
.fm-player-wrap {
  border: 1px solid var(--border);
  padding: 40px 40px 36px;
  margin-bottom: 32px;
  background: var(--white);
}

.fm-track-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}
.fm-song-title {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.05em;
  color: var(--fg);
}
.fm-dot {
  color: var(--border);
  font-size: 14px;
}
.fm-artist-name, .fm-duration {
  font-size: 13px;
  color: var(--muted);
  font-weight: 300;
}

/* Waveform */
.fm-waveform {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 48px;
  margin-bottom: 24px;
}
.wave-bar {
  flex: 1;
  background: var(--border);
  border-radius: 2px;
  height: 40%;
  transition: height 0.1s ease, opacity 0.3s ease;
  opacity: 0.5;
}

/* Audio element — hide default, show our custom controls */
.fm-player-wrap audio {
  width: 100%;
  height: 40px;
  display: block;
}

/* Style the native audio player */
.fm-player-wrap audio::-webkit-media-controls-panel {
  background: var(--bg-dark);
}
.fm-player-wrap audio::-webkit-media-controls-play-button,
.fm-player-wrap audio::-webkit-media-controls-mute-button {
  filter: invert(0.3);
}

/* CTA */
.fm-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 64px;
}
.fm-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--fg);
  color: var(--bg);
  text-decoration: none;
  padding: 16px 32px;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.08em;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}
.fm-download-btn:hover {
  background: var(--accent);
}
.fm-format {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 300;
}

/* About section */
.fm-about {
  padding-top: 0;
}
.fm-divider {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}
.fm-divider-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}
.fm-divider-text {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
  white-space: nowrap;
}
.fm-about-text {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
  font-weight: 300;
}

/* Mobile */
@media (max-width: 768px) {
  .fm-page { padding: 48px 24px 64px; }
  .fm-player-wrap { padding: 28px 24px 24px; }
  .fm-download-btn { width: 100%; justify-content: center; }
}