/* Music discography. Loads after site.css. Each release era sets --era; cards, markers and glows follow it. */
.era-incoming, .era-latest { --era: #d398f6; }
.era-nightmares { --era: #c77bf2; }
.era-singles { --era: #d2dce8; }
.era-ignition { --era: #ff7a3d; }

/* Two-column page hero: title and lede on the left, a fixed-size signal count on the right.
   Nothing in the hero grows with the catalogue, so the first release stays on the first screen. */
.page-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); column-gap: 64px; padding: 44px 0 32px; }
.page-hero > * { grid-column: 1; }
.page-hero h1 { font-size: clamp(56px, 8vw, 104px); }
.signal-count { grid-column: 2; grid-row: 1 / 4; align-self: center; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; }
.signal-count div { display: flex; flex-direction: column-reverse; gap: 8px; padding: 22px 20px; }
.signal-count div + div { border-left: 1px solid var(--line); }
.signal-count dd { margin: 0; color: #f4f0f8; font-family: 'Orbitron', sans-serif; font-size: 44px; font-weight: 700; line-height: 1; }
.signal-count div:last-child dd { color: var(--violet); }
.signal-count dt { color: var(--muted); font-family: 'Courier New', monospace; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }

/* Release bar: one link per era, sticky while scrolling. It scrolls sideways instead of wrapping,
   so more albums never push the page down. js/music.js marks the era in view. */
.release-bar { position: sticky; top: 0; z-index: 20; border-block: 1px solid var(--line); background: rgba(3, 3, 5, .94); backdrop-filter: blur(6px); }
.release-bar-inner { position: relative; display: flex; gap: 6px; width: min(1240px, 94%); margin: 0 auto; padding: 8px 0; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.release-bar-inner.has-more-end { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
.release-bar-inner.has-more-start { -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%); mask-image: linear-gradient(90deg, transparent, #000 15%); }
.release-bar-inner.has-more-start.has-more-end { -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
.release-bar a { display: inline-flex; flex: none; align-items: center; gap: 12px; min-height: 44px; padding: 8px 16px; border: 1px solid transparent; color: var(--muted); font-family: 'Orbitron', sans-serif; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; transition: border-color .2s, color .2s; }
.release-bar a:hover { border-color: var(--line); color: var(--text); }
.release-bar a[aria-current] { border-color: var(--violet); background: color-mix(in srgb, var(--violet) 14%, transparent); color: var(--violet); box-shadow: inset 0 -2px 0 var(--violet); }
.release-bar time { font-family: 'Courier New', monospace; letter-spacing: .06em; white-space: nowrap; }
/* Anchor jumps land below the sticky bar instead of under it. */
.era { scroll-margin-top: 72px; }

/* Signal timeline: a glowing spine down the left with a node and date for each era (wide screens only). */
.discography { position: relative; padding-left: 120px; padding-bottom: 32px; }
.discography::before { content: ''; position: absolute; left: 47px; top: 36px; bottom: 60px; width: 2px; background: linear-gradient(#d398f6, #d2dce8 14%, #c77bf2 30%, #c77bf2 58%, #ff7a3d 76%, rgba(255, 122, 61, 0)); opacity: .9; box-shadow: 0 0 6px rgba(211, 152, 246, .7), 0 0 16px rgba(211, 152, 246, .35); }
.era { position: relative; padding: 26px 0 34px; }
.era-marker { position: absolute; left: -120px; top: 40px; width: 96px; height: 60px; }
.era-marker::before { content: ''; position: absolute; left: 40px; top: -1px; width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle, #fff 0 22%, color-mix(in srgb, var(--era) 70%, #fff) 40%, var(--era) 70%); box-shadow: 0 0 0 5px var(--page), 0 0 0 7px color-mix(in srgb, var(--era) 45%, transparent), 0 0 18px var(--era), 0 0 44px color-mix(in srgb, var(--era) 55%, transparent); }
.era-marker time { position: absolute; left: 0; top: 24px; width: 96px; color: var(--era); font-family: 'Courier New', monospace; font-size: 12px; letter-spacing: .14em; text-align: center; background: var(--page); padding: 2px 0; }

/* Album and incoming headers */
.album-header, .incoming-feature, .latest-feature { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 34px; align-items: center; padding: 20px; border-color: color-mix(in srgb, var(--era) 45%, var(--line)); color: var(--era); }
.album-cover { width: 100%; aspect-ratio: 1; object-fit: cover; border: 1px solid color-mix(in srgb, var(--era) 55%, transparent); box-shadow: 0 22px 50px -24px color-mix(in srgb, var(--era) 70%, transparent); }
.album-copy { color: var(--text); }
.era-kicker { color: var(--era); font-family: 'Orbitron', sans-serif; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.album-copy h2 { margin-top: 8px; font-size: clamp(32px, 4.6vw, 60px); line-height: 1.05; letter-spacing: .02em; text-transform: uppercase; }
.album-text { max-width: 52ch; margin-top: 12px; color: #d6cfdc; font-size: 15px; line-height: 1.75; }
.album-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 22px; }
.album-actions .button { min-width: 240px; }
.album-transmission { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: #e5c2f5; font-size: 13px; }
.album-transmission:hover { text-decoration: underline; }
.incoming-feature, .latest-feature { box-shadow: 0 0 0 1px var(--era), 0 0 26px color-mix(in srgb, var(--era) 40%, transparent), 0 0 70px color-mix(in srgb, var(--era) 16%, transparent); }
.incoming-feature .single-date, .latest-feature .single-date { margin-left: 10px; color: var(--era); font-family: 'Courier New', monospace; font-size: .38em; letter-spacing: .06em; vertical-align: middle; white-space: nowrap; }
.incoming-note { color: var(--muted); font-family: 'Courier New', monospace; font-size: 12px; letter-spacing: .04em; }
.era-heading { margin-bottom: 4px; }
.era-heading h2 { color: var(--era); }

/* Older albums: the tracks fold behind a toggle so the page stays a manageable length as albums accumulate.
   Native <details> works without JavaScript, and browsers open it for find-in-page matches. */
.tracklist { margin-top: 14px; }
.tracklist > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 10px 20px; border: 1px solid color-mix(in srgb, var(--era) 40%, var(--line)); background: #08070c; color: var(--era); font-family: 'Orbitron', sans-serif; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; list-style: none; cursor: pointer; transition: border-color .2s; }
.tracklist > summary::-webkit-details-marker { display: none; }
.tracklist > summary:hover { border-color: var(--era); }
.tracklist > summary::after { content: ''; flex-shrink: 0; width: 9px; height: 9px; margin-top: -4px; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: rotate(45deg); transition: transform .2s; }
.tracklist[open] > summary::after { margin-top: 4px; transform: rotate(-135deg); }
.tracklist-hide, .tracklist[open] .tracklist-show { display: none; }
.tracklist[open] .tracklist-hide { display: inline; }

/* Track cards */
.track-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 18px 0 0; padding: 0; list-style: none; }
.track-card { position: relative; display: flex; flex-direction: column; min-width: 0; border: 1px solid color-mix(in srgb, var(--era) 28%, #26222c); background: #08070c; transition: transform .25s ease-out, box-shadow .25s ease-out, border-color .25s; }
/* Same signature-glow language as the homepage member cards, in the era colour. */
.track-card:hover, .track-card:focus-within { transform: translateY(-3px); border-color: var(--era); box-shadow: 0 0 22px color-mix(in srgb, var(--era) 38%, transparent), 0 0 56px color-mix(in srgb, var(--era) 14%, transparent); }
.track-cover { position: relative; aspect-ratio: 1; overflow: hidden; }
.track-cover > img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease-out; }
.track-card:hover .track-cover > img { transform: scale(1.04); }
.track-cover::after { content: ''; position: absolute; inset: 58% 0 0; background: linear-gradient(transparent, rgba(8, 7, 12, .92)); pointer-events: none; }
/* Outlined numerals read as a track index without competing with the cover art. */
.track-num { position: absolute; z-index: 1; left: 12px; bottom: 2px; color: transparent; font-family: 'Orbitron', sans-serif; font-size: 40px; font-weight: 900; line-height: 1; -webkit-text-stroke: 1px color-mix(in srgb, var(--era) 75%, #fff); }
.track-tx { position: absolute; z-index: 1; top: 10px; right: 10px; padding: 3px 8px; border: 1px solid color-mix(in srgb, var(--era) 55%, transparent); background: rgba(3, 3, 5, .78); color: var(--era); font-family: 'Courier New', monospace; font-size: 12px; letter-spacing: .06em; }
/* Placeholder until cover art exists: era-tinted signal field with scanlines, official monogram and T-number. */
.cover-placeholder { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; background: radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--era) 26%, #0b0910), #050407 72%); }
.cover-placeholder::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 4px); }
.cover-placeholder img { width: 34%; filter: invert(1); opacity: .45; }
.cover-placeholder span { position: relative; color: color-mix(in srgb, var(--era) 70%, #fff); font-family: 'Courier New', monospace; font-size: 12px; letter-spacing: .24em; }
.track-body { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 12px 14px 0; }
.track-body h3 { font-size: 18px; font-weight: 600; line-height: 1.25; }
.track-note { color: var(--era); font-family: 'Courier New', monospace; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.track-text { flex: 1; color: #d6cfdc; font-size: 13px; line-height: 1.6; }
/* Stacked rows: streaming icons, Lyric video, Lyrics & lore, each on one line at four cards across. */
.track-actions { display: flex; flex-direction: column; margin-top: 8px; }
.track-video, .track-lyrics { display: flex; align-items: center; gap: 8px; min-height: 44px; border-top: 1px solid #1d1a22; font-size: 12px; white-space: nowrap; }
.track-lyrics { justify-content: space-between; }
/* Spotify, Apple Music, YouTube Music, Amazon Music: direct links built by scripts/sync-links.mjs (sprite and icon size in css/site.css). */
.track-dsps { display: flex; gap: 8px; padding: 8px 0; border-top: 1px solid #1d1a22; }
.track-dsp { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 36px; height: 36px; border: 1px solid color-mix(in srgb, var(--era) 35%, #26222c); border-radius: 50%; color: var(--era); transition: color .2s, border-color .2s, background-color .2s; }
.track-dsp:hover, .track-dsp:focus-visible { border-color: var(--era); background: color-mix(in srgb, var(--era) 18%, transparent); color: #fff; }
.album-stream { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.album-stream-label { margin-right: 4px; color: var(--era); font-family: 'Orbitron', sans-serif; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.album-stream .track-dsp { width: 44px; height: 44px; }
.album-stream .dsp-icon { width: 22px; height: 22px; }
.track-lyrics { color: var(--muted); }
.track-lyrics .arrow { width: 16px; height: 16px; }
.track-video { color: #e6e1ec; }
.video-icon { width: 22px; height: 22px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.4; }
.video-icon path { fill: currentColor; stroke: none; }
.track-video:hover, .track-lyrics:hover { color: #fff; text-decoration: underline; }

@media (max-width: 1050px) {
    .discography { padding-left: 0; }
    .discography::before { display: none; }
    .era-marker { position: static; display: flex; align-items: center; gap: 12px; width: auto; height: auto; margin-bottom: 12px; }
    .era-marker::before { position: static; flex-shrink: 0; }
    .era-marker time { position: static; width: auto; text-align: left; }
    .track-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
    .page-hero { display: block; padding-top: 40px; }
    .signal-count { max-width: 480px; margin-top: 24px; }
    .album-header, .incoming-feature, .latest-feature { grid-template-columns: 180px minmax(0, 1fr); gap: 22px; }
    .album-actions .button { min-width: 0; }
    .track-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .page-hero { width: 90%; padding: 40px 0 28px; }
    .page-lede { font-size: 14px; }
    .signal-count div { padding: 14px 12px; }
    .signal-count dd { font-size: 30px; }
    .signal-count dt { letter-spacing: .08em; }
    .release-bar-inner { width: 90%; }
    .release-bar a { padding: 8px 12px; }
    .album-header, .incoming-feature, .latest-feature { grid-template-columns: 1fr; padding: 16px; }
    .album-cover { max-width: 320px; }
    .album-transmission { width: 100%; justify-content: space-between; }
    /* Label above the four album icons, so the row never runs wider than the card. */
    .album-stream-label { flex-basis: 100%; }
    /* Compact rows on phones: cover thumbnail beside the text keeps 19 songs scannable. */
    .track-grid { grid-template-columns: 1fr; gap: 10px; }
    .track-card { display: grid; grid-template-columns: 104px minmax(0, 1fr); }
    .track-card:hover, .track-card:focus-within { transform: none; }
    .track-cover { align-self: start; }
    .track-num { left: 8px; font-size: 26px; }
    .track-tx { display: none; }
    .cover-placeholder img { width: 42%; }
    .cover-placeholder span { display: none; }
    .track-body { padding: 10px 12px 0; gap: 4px; }
    .track-body h3 { font-size: 16px; }
    .track-text { font-size: 13px; }
    .track-actions { flex-direction: row; flex-wrap: wrap; column-gap: 14px; margin-top: 4px; border-top: 1px solid #1d1a22; }
    .track-video, .track-lyrics { border-top: 0; }
    .track-lyrics { justify-content: flex-start; }
    .track-video, .track-lyrics { min-height: 40px; }
    /* The icons get their own line; Lyric video and Lyrics & lore share the next. */
    .track-dsps { flex-basis: 100%; padding: 8px 0 2px; border-top: 0; }
}

/* ---------- Effects tying Music to the homepage and member files (user mockup, Oct 31) ---------- */
.energy-divider { margin-top: -6px; margin-bottom: 8px; }
/* Release cards glow in their era colour (Gravity Switch violet, Nightmares deep purple, Ignition amber). */
.album-header { box-shadow: 0 0 0 1px color-mix(in srgb, var(--era) 35%, transparent), 0 0 28px color-mix(in srgb, var(--era) 22%, transparent), 0 24px 80px -24px color-mix(in srgb, var(--era) 55%, transparent); }
/* Section headings carry the small signal waveform to their right. */
.era-heading { display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: 28px; align-items: center; }
.era-heading h2 { grid-column: 1; }
.era-heading p { grid-column: 1; }
.era-heading::after { content: ''; grid-column: 2; grid-row: 1 / 3; height: 34px; background: url('../assets/effects/heading-wave.webp') center / 100% 100% no-repeat; mix-blend-mode: screen;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
/* Atmosphere at the page edges, behind the content; faded so it never competes with text. */
.music-atmosphere { position: absolute; z-index: -1; inset: 0; overflow: hidden; pointer-events: none; mix-blend-mode: screen; }
/* The container blends as one layer: it forms its own group, so the pieces inside could not reach the page. */
.atmo { position: absolute; background: center / contain no-repeat; opacity: .75; }
.atmo-crystals { top: 30px; right: 3%; width: min(560px, 44vw); aspect-ratio: 1130 / 195; background-image: url('../assets/effects/atmo-crystals.webp'); }
.atmo-red { top: 26%; left: -40px; width: min(420px, 32vw); aspect-ratio: 600 / 355; background-image: url('../assets/effects/atmo-red.webp'); }
.atmo-violet { top: 18%; right: -40px; width: min(520px, 38vw); aspect-ratio: 630 / 280; background-image: url('../assets/effects/atmo-violet.webp'); }
.atmo-blue { top: 58%; right: -30px; width: min(520px, 38vw); aspect-ratio: 765 / 324; background-image: url('../assets/effects/atmo-blue.webp'); }
.atmo-ember { top: 78%; left: -50px; width: min(520px, 38vw); aspect-ratio: 705 / 245; background-image: url('../assets/effects/atmo-ember.webp'); }
@media (max-width: 800px) {
    .music-atmosphere .atmo:not(.atmo-crystals) { display: none; }
    .era-heading { grid-template-columns: 1fr; }
    .era-heading::after { grid-column: 1; grid-row: 3; margin-top: 8px; height: 26px; }
}
/* Featured listening stays in the hero; Spotify owns the embedded player UI. */
.page-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; column-gap: 48px; }
.signal-count { grid-column: 1; grid-row: auto; margin-top: 24px; }
.signal-count div { padding: 0 16px; gap: 6px; }
.signal-count div:first-child { padding-left: 0; }
.signal-count dd { font-size: 28px; }
.music-preview { grid-column: 2; grid-row: 1 / 5; align-self: center; min-width: 0; }
.music-preview h2 { margin: 0 0 18px; color: var(--text); font-size: clamp(22px, 2.6vw, 32px); font-weight: 400; }
.music-preview iframe { display: block; width: 100%; height: 152px; border: 0; border-radius: 12px; }
@media (max-width: 800px) {
    .page-hero { display: block; }
    .music-preview { margin-top: 28px; }
}

.preview-player-row { display: grid; grid-template-columns: minmax(0, 1fr) 44px; align-items: center; gap: 16px; }
.preview-platforms { display: flex; flex-direction: column; gap: 6px; }
.preview-platforms a { position: relative; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: var(--muted); }
.preview-platforms svg { width: 24px; height: 24px; }
.preview-platforms a:hover, .preview-platforms a:focus-visible { color: var(--violet); }
.platform-name { position: absolute; right: 100%; margin-right: 8px; padding: 6px 10px; white-space: nowrap; background: var(--page); border: 1px solid var(--line); color: var(--text); font-size: 12px; opacity: 0; visibility: hidden; pointer-events: none; z-index: 2; }
.preview-platforms a:hover .platform-name, .preview-platforms a:focus-visible .platform-name { opacity: 1; visibility: visible; }
@media (max-width: 800px) {
    .preview-player-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .preview-platforms { flex-direction: row; gap: 12px; }
    .platform-name { right: auto; left: 0; bottom: 100%; margin: 0 0 6px; }
}
