/* =====================================================================
   /music/: the "Come Die With Me" single. Loaded after nocturne.css
   (tokens, masthead, buttons, fog, grain, footer). Layout follows the
   Lunas music page: sleeve + record hero, tracklist, download tray, and
   a sticky player bar.
   ===================================================================== */

.page-single main { position: relative; z-index: 1; }
.masthead { background: rgba(5,0,13,0.72); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-bottom: 1px solid var(--line-soft); }
.nav a[aria-current="page"] { color: var(--bone); }
.nav a[aria-current="page"] i { color: var(--green); }

/* ---------- hero ---------- */
.s-hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 140px 0 90px; overflow: hidden; }
.s-hero-bg { position: absolute; inset: -10%; background-size: cover; background-position: center; filter: blur(70px) saturate(1.4) brightness(0.45); opacity: 0.55; transform: scale(1.1); }
.s-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,0,13,0.2) 0%, rgba(5,0,13,0) 40%, var(--void) 100%); pointer-events: none; }
.s-hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; width: 100%; }

.s-stage { position: relative; aspect-ratio: 1 / 1; width: min(84%, 540px); }
.s-copy { position: relative; z-index: 3; }
.s-halo { position: absolute; inset: -12%; border-radius: 50%; left: 18%; right: -30%;
  background: radial-gradient(circle, rgba(157,0,255,0.55) 0%, rgba(157,0,255,0.18) 38%, transparent 68%);
  transform: scale(var(--halo, 1)); opacity: var(--halo-a, 0.55); transition: transform 0.08s linear, opacity 0.2s; filter: blur(8px); }
.s-disc { position: absolute; top: 4%; bottom: 4%; aspect-ratio: 1 / 1; border-radius: 50%;
  background:
    radial-gradient(circle, #0a0710 0 3.2%, transparent 3.3%),
    repeating-radial-gradient(circle, #111 0 1px, #070509 1.5px 3px),
    #070509;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.9), inset 0 0 0 1px rgba(255,255,255,0.04);
  animation: spin 3.6s linear infinite; animation-play-state: paused; transition: left 0.9s var(--ease); left: 14%; }
.s-disc::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 30deg, transparent 0 10%, rgba(255,255,255,0.07) 14%, transparent 22% 60%, rgba(255,255,255,0.05) 64%, transparent 72%); }
.s-label { position: absolute; inset: 33%; border-radius: 50%; background-size: cover; background-position: center; box-shadow: 0 0 0 2px rgba(0,0,0,0.6); }
.s-label::after { content: ''; position: absolute; inset: 44%; border-radius: 50%; background: #05000d; }
.is-playing .s-disc { animation-play-state: running; left: 26%; }
@keyframes spin { to { transform: rotate(360deg); } }

.s-sleeve { position: relative; z-index: 2; display: block; width: 100%; aspect-ratio: 1 / 1; border: 0; padding: 0; cursor: pointer; background: none;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,0.95), 0 0 0 1px rgba(168,85,255,0.25); }
.s-sleeve img { width: 100%; height: 100%; object-fit: cover; }
.s-sleeve-play { position: absolute; left: 50%; top: 50%; width: 88px; height: 88px; margin: -44px 0 0 -44px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(5,0,13,0.72); color: var(--green); box-shadow: 0 0 0 1px rgba(56,255,106,0.5), 0 0 40px -6px var(--glow-green); opacity: 0; transform: scale(0.85); transition: opacity 0.35s, transform 0.35s var(--ease); }
.s-sleeve-play svg { width: 34px; height: 34px; margin-left: 4px; }
.s-sleeve:hover .s-sleeve-play, .s-sleeve:focus-visible .s-sleeve-play { opacity: 1; transform: scale(1); }

.s-copy .eyebrow { margin-bottom: 22px; flex-wrap: wrap; row-gap: 6px; }
.s-copy .eyebrow span { white-space: nowrap; }
.s-title { font-family: var(--black); font-weight: 400; font-size: clamp(3.2rem, 7.4vw, 6.6rem); line-height: 0.95; color: var(--bone);
  text-shadow: 0 0 40px var(--glow-purple), 0 6px 30px rgba(0,0,0,0.8); }
.s-by { margin-top: 14px; font-family: var(--display); font-weight: 800; letter-spacing: 0.3em; text-transform: uppercase; color: var(--green); font-size: 0.9rem; }
.s-tagline { margin-top: 26px; font-size: 1.15rem; color: var(--text); max-width: 30ch; }
.s-cta { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- release ---------- */
.s-release { position: relative; padding: clamp(40px, 6vw, 90px) 0 clamp(120px, 12vw, 180px); }
.s-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.s-rel-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.s-rel-title { margin-top: 10px; font-family: var(--display); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bone); font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.textbtn { background: none; border: 0; cursor: pointer; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); padding: 6px 0; border-bottom: 1px solid var(--line); transition: color 0.3s, border-color 0.3s; }
.textbtn:hover { color: var(--green); border-color: var(--green); }

.trk-list { list-style: none; }
.trk { display: grid; grid-template-columns: 28px 44px 34px minmax(0, 1fr) auto auto; align-items: center; gap: 16px; padding: 20px 6px; border-bottom: 1px solid var(--line-soft); transition: background 0.3s; }
.trk:hover { background: rgba(168,85,255,0.05); }
.trk.is-current { background: linear-gradient(90deg, rgba(56,255,106,0.07), transparent 70%); }
.trk-check { position: relative; width: 22px; height: 22px; cursor: pointer; }
.trk-check input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.trk-check span { position: absolute; inset: 0; border: 1px solid rgba(168,85,255,0.5); transition: background 0.2s, border-color 0.2s; }
.trk-check input:checked + span { background: var(--green); border-color: var(--green); box-shadow: 0 0 18px -4px var(--glow-green); }
.trk-check input:checked + span::after { content: ''; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px; border: solid var(--void); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.trk-check input:focus-visible + span { outline: 2px solid var(--purple); outline-offset: 2px; }
.trk-play { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(168,85,255,0.45); background: rgba(13,6,25,0.5); color: var(--bone); display: grid; place-items: center; cursor: pointer; transition: border-color 0.3s, color 0.3s, box-shadow 0.3s; }
.trk-play:hover { border-color: var(--green); color: var(--green); box-shadow: 0 0 24px -6px var(--glow-green); }
.trk-play svg, .pbar-toggle svg { width: 18px; height: 18px; }
.i-pause { display: none; }
.is-current.is-playing-track .trk-play .i-play, .pbar.is-on .pbar-toggle .i-play { display: none; }
.is-current.is-playing-track .trk-play .i-pause, .pbar.is-on .pbar-toggle .i-pause { display: block; }
.trk-n { font-family: var(--mono); font-size: 0.78rem; color: var(--faint); }
.trk-main { display: flex; flex-direction: column; min-width: 0; }
.trk-t { font-family: var(--display); font-weight: 700; letter-spacing: 0.06em; color: var(--bone); font-size: 1.02rem; }
.trk-t i { font-style: normal; color: var(--purple); font-weight: 600; }
.trk-d { font-size: 0.9rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trk-len { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); }
.trk-dl { display: flex; gap: 8px; }
.trk-dl a { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.18em; color: var(--text); padding: 6px 9px; border: 1px solid var(--line); transition: color 0.3s, border-color 0.3s; }
.trk-dl a:hover { color: var(--green); border-color: var(--green); }

.s-credits { margin-top: 40px; display: grid; gap: 14px; }
.s-credits div { display: grid; grid-template-columns: 200px 1fr; gap: 16px; }
.s-credits dt { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--faint); padding-top: 4px; }
.s-credits dd { color: var(--text); font-size: 0.98rem; }
.s-credits a { color: var(--bone); border-bottom: 1px solid var(--line); }
.s-credits a:hover { color: var(--green); border-color: var(--green); }

/* ---------- tray ---------- */
.tray { position: sticky; top: 104px; padding: 30px 28px; background: linear-gradient(180deg, var(--panel), var(--ink)); border: 1px solid var(--line); box-shadow: 0 30px 80px -40px rgba(0,0,0,0.9); }
.tray-count { margin-top: 16px; font-family: var(--display); font-weight: 700; letter-spacing: 0.08em; color: var(--bone); font-size: 1.15rem; }
.tray-note { margin-top: 12px; font-size: 0.92rem; color: var(--muted); }
.tray-btn { width: 100%; margin-top: 18px; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.btn[disabled]::before { display: none; }
.fmt { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); }
.fmt label { position: relative; cursor: pointer; }
.fmt input { position: absolute; opacity: 0; }
.fmt span { display: block; text-align: center; padding: 11px 6px; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.16em; color: var(--muted); transition: background 0.25s, color 0.25s; }
.fmt small { font-size: 0.62rem; opacity: 0.8; }
.fmt input:checked + span { background: rgba(168,85,255,0.18); color: var(--bone); box-shadow: inset 0 -2px 0 var(--purple); }
.fmt input:focus-visible + span { outline: 2px solid var(--purple); outline-offset: -2px; }
.tray-all { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line-soft); display: grid; gap: 10px; }
.tray-all .link-arrow { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.08em; color: var(--text); }
.tray-all .link-arrow:hover { color: var(--green); }
.tray-support { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line-soft); }

/* ---------- player bar ---------- */
.pbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 120; display: grid; grid-template-columns: 56px 48px minmax(0, 1fr); gap: 16px; align-items: center;
  padding: 12px max(var(--gutter), 16px); background: rgba(8,3,17,0.9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line);
  transform: translateY(100%); transition: transform 0.5s var(--ease); }
.pbar.is-shown { transform: none; }
.pbar-art { width: 56px; height: 56px; object-fit: cover; }
.pbar-toggle { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--green); color: var(--void); display: grid; place-items: center; cursor: pointer; box-shadow: 0 0 30px -8px var(--glow-green); }
.pbar-t { font-family: var(--display); font-weight: 700; letter-spacing: 0.06em; color: var(--bone); font-size: 0.92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pbar-seek { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; font-family: var(--mono); font-size: 0.72rem; color: var(--muted); }
.pbar-seek input { width: 100%; accent-color: var(--green); }
.page-single.has-player .credits { padding-bottom: 130px; }

/* ---------- small screens ---------- */
@media (max-width: 980px) {
  .s-hero { padding-top: 120px; min-height: auto; }
  .s-hero-inner { grid-template-columns: 1fr; }
  .s-stage { width: min(72vw, 440px); margin: 0 auto; transform: translateX(-8%); }
  .s-copy { text-align: center; }
  .s-copy .eyebrow { justify-content: center; }
  .s-tagline { margin-left: auto; margin-right: auto; }
  .s-cta { justify-content: center; }
  .s-layout { grid-template-columns: 1fr; }
  .tray { position: static; }
}
@media (max-width: 640px) {
  .trk { grid-template-columns: 24px 40px minmax(0, 1fr) auto; gap: 12px; }
  .trk-n, .trk-len { display: none; }
  .trk-dl { grid-column: 3 / -1; }
  .trk-play { width: 40px; height: 40px; }
  .s-credits div { grid-template-columns: 1fr; gap: 2px; }
  .pbar { grid-template-columns: 44px 44px minmax(0, 1fr); gap: 12px; }
  .pbar-art { width: 44px; height: 44px; }
  .pbar-toggle { width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .s-disc { animation: none; }
  .s-halo { transition: none; }
}
