/* Music deck page: the homepage's deck component (../music-deck.css, ../music-deck.js) on its own page.
   This file only lays the page out. The deck's own type and colours are fixed and are not restyled here;
   the whole stage is scaled as one piece to fit the column (--deck-s, set in music.js). */

/* ---------- Hero: intro left, deck right ---------- */
/* Back button: hangs just under the header row, the same pill as on the Art Room page. */
.music-home-row { height: 0; }
.music-home { position: relative; top: -20px; display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border: 1px solid #d8d9d8; border-radius: 99px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 500; white-space: nowrap; transition: background .2s, color .2s, border-color .2s; }
.music-home:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.music-home span { transition: translate .25s; }
.music-home:hover span { translate: -3px 0; }
.music-hero { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); align-items: center; column-gap: clamp(24px, 4vw, 72px); padding-top: 54px; padding-bottom: 36px; }
.music-page h1 { margin: 0; max-width: none; font-size: clamp(44px, 5.6vw, 80px); line-height: 1.02; letter-spacing: -.045em; color: var(--blue); text-align: left; }
.music-lead { margin-top: 24px; max-width: 400px; font-size: 18px; line-height: 1.65; color: var(--text-lead); text-wrap: pretty; }
.music-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 34px; }
/* The blue button has a 5px lip below its face; a little extra top padding centres the label on the whole shape
   (the same correction as the homepage's hero button). The spade sits a touch high, so it drops 1.5px. */
.music-actions .button-blue { padding: 18px 24px 14px; }
.music-actions .button span { font-size: 17px; line-height: 1; position: relative; top: 1.5px; }
.music-intro > * { animation: hero-in .8s both; }
.music-intro > :nth-child(2) { animation-delay: .08s; }
.music-intro > :nth-child(3) { animation-delay: .16s; }
.music-intro > :nth-child(4) { animation-delay: .24s; }

/* ---------- The deck ---------- */
/* The root carries the homepage's .hero-music-deck class so every deck rule applies unchanged; only the
   hero's own placement (fixed size, offset, 15° tilt) is undone here. The stage keeps its own pixel size and
   is scaled as one piece: the cards and box span --deck-w, centred on --deck-cx, from --deck-top down. */
.music-deck.hero-music-deck { --deck-s: 1; --deck-w: 630; --deck-cx: 370; --deck-top: 26; --deck-h: 650; position: relative; width: auto; height: auto; right: auto; top: auto; min-width: 0; transform: none; }
.music-stage-wrap { position: relative; height: calc(var(--deck-h) * var(--deck-s) * 1px); }
.music-deck.hero-music-deck .stage { left: 50%; top: 0; transform: translate(calc(var(--deck-cx) * var(--deck-s) * -1px), calc(var(--deck-top) * var(--deck-s) * -1px)) scale(var(--deck-s)); }
.music-deck.hero-music-deck .playback-status { position: static; width: auto; margin: 14px 0 0; padding: 0; font-size: 12px; }

/* ---------- Tracklist ---------- */
.music-list { padding-top: 70px; }
.music-list .section-heading { margin-bottom: 26px; }
.track-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.track-row { display: grid; grid-template-columns: 34px 52px minmax(0, 1fr) auto auto; align-items: center; column-gap: 18px; padding: 14px 14px 14px 8px; border-bottom: 1px solid var(--line); transition: background .2s; }
.track-row:hover, .track-row.is-current { background: #f4f5f2; }
.track-number { font-size: 12px; font-weight: 600; letter-spacing: .08em; color: #8c939c; font-variant-numeric: tabular-nums; }
.track-row.is-current .track-number { color: var(--blue); }
.track-art { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; background: var(--line); }
.track-play { all: unset; box-sizing: border-box; min-width: 0; cursor: pointer; }
.track-play:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; border-radius: 4px; }
.track-title { display: block; font-family: var(--display); font-size: 19px; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-artist { display: block; margin-top: 3px; font-size: 14px; color: var(--muted); }
.track-state { font-size: 12px; color: #6d7379; border: 1px solid var(--line); border-radius: 20px; padding: 7px 12px; white-space: nowrap; pointer-events: none; }
.track-row.is-current .track-state { background: var(--ice); border-color: transparent; color: #284790; font-weight: 500; }
.track-link { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: #8c939c; font-size: 17px; transition: background .2s, color .2s; }
.track-link:hover { background: var(--lime); color: var(--ink); }
.music-back { margin-top: 34px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .music-hero { grid-template-columns: 1fr; row-gap: 30px; padding-top: 54px; }
  .music-lead { max-width: 520px; }
  .music-page h1 br { display: none; }
}
@media (max-width: 760px) {
  .music-home { top: -8px; padding: 8px 14px; }
  .music-lead { font-size: 17px; margin-top: 18px; }
  .music-actions { margin-top: 26px; }
  .music-list { padding-top: 40px; }
  .track-row { grid-template-columns: 26px 44px minmax(0, 1fr) auto; column-gap: 12px; padding: 12px 4px; }
  .track-art { width: 44px; height: 44px; }
  .track-title { font-size: 17px; }
  .track-artist { font-size: 13px; }
  .track-state { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .music-intro > * { animation: none; }
}

/* Reveal on scroll (same as the About page). */
.reveal { opacity: 0; translate: 0 18px; transition: opacity .7s cubic-bezier(.2,.8,.2,1), translate .7s cubic-bezier(.2,.8,.2,1); }
.reveal.is-in { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; translate: none; transition: none; } }
