/* Songs page: a playlist of sticky notes and a player pinned to the bottom. Loads after site.css. */

.songs-page { padding-bottom: 168px; }

.songs-acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.songs-acts button {
  font: inherit; font-weight: 800; font-size: 17px;
  border: 0; border-radius: 999px; padding: 12px 22px; cursor: pointer;
  color: var(--ink); background: var(--jot);
  box-shadow: 3px 4px 0 rgba(0, 0, 0, 0.3);
}
.songs-acts button.ghost { background: transparent; color: var(--chalk); box-shadow: inset 0 0 0 2px var(--chalk-dim); }
.songs-acts button[aria-pressed="true"] { background: var(--c4); color: var(--ink); box-shadow: 3px 4px 0 rgba(0, 0, 0, 0.3); }
.songs-acts button:focus-visible, .track-play:focus-visible, .bar button:focus-visible { outline: 3px solid var(--chalk); outline-offset: 3px; }

.tracks { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 26px; max-width: 44em; }

.track {
  position: relative;
  padding: 18px 20px 16px;
  border-radius: 6px;
  color: var(--ink);
  background: var(--tc, var(--c2));
  box-shadow: 4px 6px 0 rgba(0, 0, 0, 0.3);
  transform: rotate(var(--tilt, -0.5deg));
  transition: transform 200ms var(--spring), box-shadow 200ms;
}
.track:nth-child(even) { --tilt: 0.5deg; }
.track.is-current { transform: rotate(0) scale(1.01); box-shadow: 0 0 0 4px var(--chalk), 6px 8px 0 rgba(0, 0, 0, 0.35); }

.track-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; }
.track-play {
  width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center;
  background: var(--ink); color: var(--chalk);
}
.track-play svg { width: 22px; height: 22px; fill: currentColor; }
.track-num { margin: 0; font-family: "Permanent Marker", cursive; font-size: 14px; color: var(--ink-soft); }
.track-title { margin: 0; font-size: 25px; line-height: 1.1; }
.track-topic { margin: 3px 0 0; font-weight: 700; }
.track-meta { margin: 10px 0 0; font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.track-meta a { color: var(--ink); font-weight: 800; text-decoration-thickness: 2px; text-underline-offset: 3px; }

.track-lyrics { margin-top: 12px; }
.track-lyrics summary { cursor: pointer; font-weight: 800; }
.track-lyrics[open] summary { margin-bottom: 12px; }
.stanza { margin: 0 0 12px; }
.stanza h3 { margin: 0 0 2px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); }
.stanza p { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.45; }

/* Songs with word timings: the lyrics start faint, the word being sung is inked in,
   and words already sung stay dark. Songs without timings keep plain dark lyrics. */
.is-timed .lw { border-radius: 4px; padding: 1px 3px; margin: -1px -3px; cursor: pointer; }
.track.is-current .is-timed .lw, .track.is-current .is-timed .not-sung { color: rgba(28, 20, 64, 0.5); }
.track.is-current .is-timed .lw.is-sung { color: var(--ink); }
.track.is-current .is-timed .lw.is-now { color: var(--chalk); background: var(--ink); }

/* the player bar */
.bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  padding: 10px clamp(16px, 5vw, 72px) calc(12px + env(safe-area-inset-bottom));
  background: var(--wall-deep);
  border-top: 3px solid var(--jot);
  color: var(--chalk);
}
.bar-inner { max-width: 44em; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; align-items: center; }
.bar-now { margin: 0; min-width: 0; }
.bar-title { display: block; font-weight: 800; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-topic { display: block; font-size: 14px; color: var(--chalk-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-btns { display: flex; gap: 6px; }
.bar button {
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; color: var(--ink); background: var(--chalk);
}
.bar button.big { background: var(--jot); width: 52px; height: 52px; }
.bar button svg { width: 20px; height: 20px; fill: currentColor; }
.bar-seek { grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 13px; font-variant-numeric: tabular-nums; color: var(--chalk-dim); }
.bar-seek input { width: 100%; accent-color: var(--jot); }

@media (max-width: 760px) {
  .track { transform: none; padding: 16px 16px 14px; }
  .track.is-current { transform: none; }
  .track-title { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .track { transition: none; }
}

.save-status { margin: 14px 0 0; font-weight: 600; color: var(--chalk-dim); max-width: 34em; }
.songs-acts button:disabled { opacity: 0.6; cursor: progress; }
