[hidden] { display: none !important; }

/* ═══════════════════════════════════════════════════════════════════
   WAVELENGTH · the catalogue, after dark
   Ground: deep violet — a listening room at 2am, never flat black.
   Accent: ONE electric cyan, spent only where signal lives (the rail
   mark, the chart bar, the waveform crest, a focused field). Syne
   shouts, Sora explains, Space Mono keeps every timecode and count.
   The signature is the row: a rank numeral, a deterministic waveform,
   and a bar measured against the number one.
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --void:       #080413;   /* the corridor behind everything */
  --night:      #120827;   /* the page ground */
  --panel:      #1A0E37;   /* raised surfaces */
  --panel-lift: #23134A;   /* hover pools */
  --panel-deep: #0E0620;   /* wells and insets */
  --seam:       #37205F;   /* hairlines and cable runs */
  --seam-soft:  #281748;

  --neon:       #5AF0FF;   /* the one accent */
  --neon-hot:   #C4FBFF;   /* crest highlight */
  --neon-dim:   #2F8FA3;   /* accent at rest */
  --neon-wash:  rgba(90, 240, 255, .12);

  --ice:        #EFEAFF;   /* headline white, violet-tinted */
  --haze:       #B4A9D6;   /* body text */
  --mute:       #8578AE;   /* captions */
  --faint:      #6A5C93;   /* the quietest legible tone */

  --warn:       #FF9CC2;   /* the only other hue: errors */

  --display: "Syne", "Trebuchet MS", sans-serif;
  --text:    "Sora", system-ui, -apple-system, sans-serif;
  --mono:    "Space Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --rail: 264px;
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --shadow: 0 18px 44px rgba(4, 2, 12, .55);
}

* { box-sizing: border-box; }

html { background: var(--void); }

body {
  margin: 0;
  padding-left: var(--rail);
  background:
    radial-gradient(1100px 620px at 78% -8%, rgba(90, 240, 255, .07), transparent 62%),
    radial-gradient(760px 520px at 6% 108%, rgba(140, 78, 255, .12), transparent 60%),
    var(--night);
  color: var(--haze);
  font: 400 16px/1.62 var(--text);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: var(--ice); text-decoration: none; }
a:hover { color: var(--neon); }
h1, h2, h3 { margin: 0; font-family: var(--display); color: var(--ice); letter-spacing: -.015em; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.dot { color: var(--faint); margin: 0 .45em; }

:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 2px;
  border-radius: 3px;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 60;
  background: var(--neon); color: var(--void);
  padding: .6rem 1rem; font-weight: 600; border-radius: 0 0 var(--r-sm) 0;
}
.skip:focus { left: 0; }

/* ═══════════ THE RAIL ═══════════ */
.rail {
  position: fixed; inset: 0 auto 0 0; width: var(--rail); z-index: 30;
  display: flex; flex-direction: column; gap: 1.6rem;
  padding: 1.9rem 1.4rem 1.5rem;
  background: linear-gradient(180deg, var(--panel-deep), var(--void));
  border-right: 1px solid var(--seam-soft);
}

.brand { display: flex; align-items: center; gap: .8rem; color: var(--ice); }
.brand:hover { color: var(--ice); }
.brand-mark { display: block; color: var(--neon); line-height: 0; filter: drop-shadow(0 0 10px rgba(90, 240, 255, .38)); }
.brand-mark svg { fill: currentColor; }
.brand-stack { display: flex; flex-direction: column; min-width: 0; }
.brand-word {
  font-family: var(--display); font-weight: 800; font-size: 1.24rem;
  letter-spacing: -.03em; line-height: 1.05;
}
.brand-sub {
  font-family: var(--mono); font-size: .62rem; color: var(--mute);
  letter-spacing: .22em; text-transform: uppercase; white-space: nowrap;
}

.rail-nav { display: flex; flex-direction: column; gap: .18rem; }
.rail-nav a {
  display: flex; align-items: center; gap: .55rem;
  padding: .62rem .8rem; border-radius: var(--r-sm);
  color: var(--haze); font-size: .95rem; font-weight: 500;
  border-left: 2px solid transparent;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.rail-nav a:hover { background: var(--panel); color: var(--ice); }
.rail-nav a.on {
  background: linear-gradient(90deg, var(--neon-wash), transparent 78%);
  border-left-color: var(--neon); color: var(--ice);
}
.badge {
  font-family: var(--mono); font-size: .68rem; font-weight: 700;
  background: var(--neon); color: var(--void);
  border-radius: 99px; padding: .05rem .42rem; line-height: 1.5;
}

.who { margin-top: auto; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.who-name {
  font-size: .88rem; color: var(--ice); font-weight: 500;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rail-foot { font-size: .7rem; line-height: 1.5; color: var(--faint); letter-spacing: .02em; }

/* ═══════════ SHELL ═══════════ */
#main { display: block; }
.view { max-width: 1080px; margin: 0 auto; padding: 3rem 2.2rem 4rem; }

.cap { margin-bottom: 2.2rem; max-width: 62ch; }
.cap-eyebrow {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--neon-dim); margin-bottom: .7rem;
}
.cap-h { font-size: clamp(2.1rem, 5vw, 3.1rem); font-weight: 800; line-height: 1.02; }
.cap-sub { margin-top: .85rem; color: var(--haze); font-size: 1rem; font-weight: 300; }

.backlink {
  display: inline-block; margin-bottom: 1.6rem;
  font-family: var(--mono); font-size: .78rem; color: var(--mute);
}
.backlink:hover { color: var(--neon); }

.sec-h {
  font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em;
  display: flex; align-items: center; gap: .7rem;
}
.sec-h::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--seam), transparent);
}

/* ═══════════ STATES ═══════════ */
.state { margin: 1.2rem 0; }
.st-load {
  display: flex; align-items: center; gap: .7rem;
  font-family: var(--mono); font-size: .82rem; color: var(--mute); letter-spacing: .04em;
}
.st-pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--neon);
  box-shadow: 0 0 0 0 rgba(90, 240, 255, .5);
  animation: pulse 1.5s ease-out infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 9px rgba(90, 240, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(90, 240, 255, 0); }
}
.st-err {
  border: 1px solid var(--seam); border-left: 3px solid var(--warn);
  background: var(--panel); border-radius: var(--r-md);
  padding: 1.1rem 1.2rem; display: flex; gap: 1rem;
  align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.st-err-msg { color: var(--ice); font-size: .95rem; }
.st-empty {
  border: 1px dashed var(--seam); border-radius: var(--r-md);
  padding: 2.4rem 1.6rem; text-align: center; background: rgba(26, 14, 55, .42);
}
.st-empty-h { font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: var(--ice); }
.st-empty-l { margin-top: .5rem; color: var(--mute); font-size: .93rem; font-weight: 300; }
.st-empty .btn { margin-top: 1.1rem; }

/* ═══════════ BUTTONS + FIELDS ═══════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  font-family: var(--text); font-size: .9rem; font-weight: 600;
  padding: .66rem 1.15rem; border-radius: 99px;
  border: 1px solid transparent; cursor: pointer;
  transition: background .16s ease, color .16s ease, border-color .16s ease, transform .1s ease;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
.btn-neon {
  background: var(--neon); color: var(--void);
  box-shadow: 0 0 22px rgba(90, 240, 255, .22);
}
.btn-neon:hover:not(:disabled) { background: var(--neon-hot); color: var(--void); }
.btn-ghost { background: transparent; border-color: var(--seam); color: var(--ice); }
.btn-ghost:hover:not(:disabled) { border-color: var(--neon); color: var(--neon); background: var(--neon-wash); }
.btn-quiet { background: var(--panel-lift); color: var(--ice); border-color: var(--seam-soft); }
.btn-quiet:hover:not(:disabled) { border-color: var(--neon); color: var(--neon); }
.btn-sm { font-size: .78rem; padding: .4rem .8rem; }
.btn-wide { width: 100%; }

.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: .95rem; }
.field label { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.field input[type="text"], .field input[type="email"], .field input[type="password"] {
  font: 400 .95rem var(--text); color: var(--ice);
  background: var(--panel-deep); border: 1px solid var(--seam);
  border-radius: var(--r-sm); padding: .68rem .8rem; width: 100%;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.field input::placeholder { color: var(--faint); }
.field input:focus {
  outline: none; border-color: var(--neon);
  box-shadow: 0 0 0 3px rgba(90, 240, 255, .16);
}
.check { display: inline-flex; align-items: center; gap: .5rem; font-size: .88rem; color: var(--haze); cursor: pointer; }
.check input { accent-color: var(--neon); width: 16px; height: 16px; }
.form-err {
  margin: .3rem 0 .8rem; color: var(--warn); font-size: .86rem;
  border-left: 2px solid var(--warn); padding-left: .6rem;
}
.linklike {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--neon); font: inherit; text-decoration: underline; text-underline-offset: 3px;
}

/* ═══════════ THE CHART ═══════════ */
.chart { display: flex; flex-direction: column; gap: .25rem; }
.rank {
  display: grid; align-items: center; gap: 0 1.1rem;
  grid-template-columns: 3rem minmax(0, 1fr) 132px 6.6rem 3.6rem;
  padding: .95rem 1rem; border-radius: var(--r-md);
  border: 1px solid transparent;
  transition: background .16s ease, border-color .16s ease;
}
.rank + .rank { border-top: 1px solid var(--seam-soft); border-radius: var(--r-md); }
.rank:hover { background: var(--panel); border-color: var(--seam-soft); }
.rank-n {
  font-family: var(--display); font-weight: 800; font-size: 1.7rem;
  color: var(--faint); line-height: 1; letter-spacing: -.04em;
}
.rank:first-child .rank-n, .rank:nth-child(2) .rank-n, .rank:nth-child(3) .rank-n { color: var(--neon); }
.rank-main { min-width: 0; display: flex; flex-direction: column; gap: .28rem; }
.rank-title {
  font-family: var(--display); font-weight: 700; font-size: 1.06rem; color: var(--ice);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rank-by { font-size: .84rem; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-artist { color: var(--haze); }
.rank-bar { display: block; height: 3px; background: var(--seam-soft); border-radius: 99px; overflow: hidden; margin-top: .18rem; }
.rank-bar i {
  display: block; height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, var(--neon-dim), var(--neon));
}
.rank-wave { color: var(--seam); line-height: 0; }
.rank:hover .rank-wave { color: var(--neon-dim); }
.rank-plays { display: flex; flex-direction: column; text-align: right; line-height: 1.2; }
.rank-plays b { font-size: .95rem; color: var(--ice); font-weight: 700; }
.rank-plays small { font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.rank-time { text-align: right; font-size: .86rem; color: var(--haze); }

.wave { display: block; width: 100%; height: auto; fill: currentColor; }

.tag-x {
  display: inline-block; font-family: var(--mono); font-style: normal;
  font-size: .58rem; font-weight: 700; letter-spacing: .06em;
  background: var(--seam); color: var(--ice);
  border-radius: 3px; padding: .04rem .28rem; vertical-align: .12em;
}

/* ═══════════ THE ROSTER ═══════════ */
.roster {
  display: grid; gap: 1.1rem;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
}
.card {
  display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--seam-soft);
  border-radius: var(--r-lg); overflow: hidden;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--neon-dim); box-shadow: var(--shadow); }
.card-art, .hero-art, .tile-art, .sleeve-art {
  position: relative; display: block; background: var(--panel-deep); overflow: hidden;
}
.card-art { aspect-ratio: 4 / 3; }
.card-art img, .hero-art img, .tile-art img, .sleeve-art img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.82) contrast(1.05);
}
.card:hover .card-art img { filter: saturate(1) contrast(1.05); }
.card-art--verified::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon), transparent);
}
.art--blank::before, .card-art::before, .tile-art::before, .hero-art::before, .sleeve-art::before {
  content: attr(data-letter);
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 800; font-size: 3.2rem;
  color: var(--seam); background: var(--panel-deep);
}
.card-art img, .tile-art img, .hero-art img, .sleeve-art img { position: relative; z-index: 1; }
.card-body { padding: .95rem 1.05rem 1.15rem; display: flex; flex-direction: column; gap: .55rem; }
.card-name {
  font-family: var(--display); font-weight: 700; font-size: 1.05rem; color: var(--ice);
  display: flex; align-items: center; gap: .4rem;
}
.verified {
  font-size: .62rem; font-weight: 700; color: var(--void);
  background: var(--neon); border-radius: 50%;
  width: 15px; height: 15px; display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}
.verified--lg { width: 20px; height: 20px; font-size: .76rem; }
.card-tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.card-tags em, .tag-quiet {
  font-style: normal; font-family: var(--mono); font-size: .64rem;
  letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid var(--seam); border-radius: 99px;
  padding: .12rem .5rem; color: var(--haze);
}
.tag-quiet { color: var(--faint); border-style: dashed; }
.card-stats { display: flex; gap: 1rem; font-size: .72rem; color: var(--mute); flex-wrap: wrap; }
.card-stats b { color: var(--ice); font-weight: 700; }

/* ═══════════ HERO (artist) ═══════════ */
.hero { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 2rem; margin-bottom: 3rem; }
.hero-art { border-radius: var(--r-lg); aspect-ratio: 1; border: 1px solid var(--seam-soft); }
.hero-art--verified { box-shadow: 0 0 0 1px var(--neon-dim), 0 0 34px rgba(90, 240, 255, .16); }
.hero-eyebrow {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--neon-dim);
}
.hero-h {
  margin-top: .6rem; font-size: clamp(2rem, 4.4vw, 2.9rem); font-weight: 800; line-height: 1.04;
  display: flex; align-items: center; gap: .65rem; flex-wrap: wrap;
}
.hero-bio { margin-top: .9rem; max-width: 58ch; font-weight: 300; color: var(--haze); }
.hero-since { margin-top: 1rem; font-family: var(--mono); font-size: .72rem; color: var(--faint); }

.figures {
  display: flex; flex-wrap: wrap; gap: .5rem 2.4rem; margin-top: 1.4rem;
  padding-top: 1.2rem; border-top: 1px solid var(--seam-soft);
}
.figures dt { font-family: var(--mono); font-size: .64rem; letter-spacing: .13em; text-transform: uppercase; color: var(--mute); }
.figures dd { font-size: 1.05rem; color: var(--ice); font-weight: 700; margin-top: .12rem; }

.links { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.1rem; }
.links a {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid var(--seam); border-radius: 99px; padding: .28rem .7rem; color: var(--haze);
}
.links a:hover { border-color: var(--neon); color: var(--neon); }

/* ═══════════ THE WALL (albums) ═══════════ */
.disco { margin-top: 2.4rem; }
.wall {
  display: grid; gap: 1.4rem 1.2rem; margin-top: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(186px, 1fr));
}
.tile { display: flex; flex-direction: column; gap: .3rem; }
.tile-art {
  aspect-ratio: 1; border-radius: var(--r-md); border: 1px solid var(--seam-soft);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.tile:hover .tile-art { transform: translateY(-4px); border-color: var(--neon-dim); box-shadow: var(--shadow); }
.tile-notch {
  position: absolute; z-index: 2; right: .55rem; bottom: .55rem;
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(8, 4, 19, .74); border: 1px solid var(--seam);
  opacity: 0; transition: opacity .18s ease;
}
.tile-notch::after {
  content: ""; position: absolute; left: 9px; top: 7px;
  border-left: 9px solid var(--neon);
  border-top: 6px solid transparent; border-bottom: 6px solid transparent;
}
/* the triangle is a hover cue on a link (it opens the release) — never a
   transport control, and never on a static sleeve */
.tile:hover .tile-notch, .tile:focus-visible .tile-notch { opacity: 1; }
.tile-title {
  margin-top: .5rem; font-family: var(--display); font-weight: 700; font-size: .98rem; color: var(--ice);
  line-height: 1.25;
}
.tile-by { font-size: .82rem; color: var(--mute); }
.tile-meta { font-size: .68rem; color: var(--faint); letter-spacing: .02em; }
.tile-meta .dot { margin: 0 .3em; }

/* ═══════════ THE SLEEVE (album) ═══════════ */
.sleeve { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 2.2rem; margin-bottom: 2.8rem; }
.sleeve-art { border-radius: var(--r-md); aspect-ratio: 1; border: 1px solid var(--seam); box-shadow: var(--shadow); }
.sleeve-eyebrow {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--neon-dim);
}
.sleeve-h { margin-top: .55rem; font-size: clamp(1.9rem, 4.2vw, 2.7rem); font-weight: 800; line-height: 1.05; }
.sleeve-by { margin-top: .5rem; font-size: 1.05rem; }
.sleeve-by a { color: var(--haze); border-bottom: 1px solid var(--seam); }
.sleeve-by a:hover { color: var(--neon); border-color: var(--neon); }
.sleeve-label { margin-top: 1.1rem; font-family: var(--mono); font-size: .76rem; color: var(--haze); letter-spacing: .04em; }
.sleeve-copy { margin-top: .25rem; font-size: .72rem; color: var(--faint); }

.listing-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.listing-head .sec-h { flex: 1; }
.listing-note { font-family: var(--mono); font-size: .74rem; color: var(--mute); }
.listing-foot {
  margin-top: 1.3rem; font-size: .82rem; color: var(--faint);
  border-top: 1px solid var(--seam-soft); padding-top: .9rem; max-width: 66ch; font-weight: 300;
}

.tracks { margin-top: 1.2rem; display: flex; flex-direction: column; }
.trk {
  display: grid; align-items: center; gap: 0 1.1rem;
  grid-template-columns: 2.4rem minmax(0, 1fr) 132px 3.6rem auto;
  grid-template-areas: "n main wave time act" "drawer drawer drawer drawer drawer";
  padding: .78rem .9rem; border-radius: var(--r-md);
  border-bottom: 1px solid var(--seam-soft);
  transition: background .16s ease;
}
.trk:hover { background: var(--panel); }
.trk-n { grid-area: n; font-size: .88rem; color: var(--faint); }
.trk-main { grid-area: main; min-width: 0; display: flex; flex-direction: column; gap: .16rem; }
.trk-title { font-weight: 500; color: var(--ice); font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trk-meta { font-size: .76rem; color: var(--mute); }
.trk-meta b { color: var(--haze); font-weight: 400; }
.trk-wave { grid-area: wave; color: var(--seam); line-height: 0; }
.trk:hover .trk-wave { color: var(--neon-dim); }
.trk-time { grid-area: time; text-align: right; font-size: .84rem; color: var(--haze); }
.trk-act { grid-area: act; }
.trk-drawer { grid-area: drawer; margin-top: .8rem; }

.drawer-tag {
  font-family: var(--mono); font-size: .66rem; letter-spacing: .13em;
  text-transform: uppercase; color: var(--mute); margin-bottom: .45rem;
}
.drawer-empty { font-size: .86rem; color: var(--mute); padding: .5rem 0; }
.drawer-list { display: flex; flex-direction: column; gap: .35rem; }
.drawer-pick {
  width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center; gap: .9rem; text-align: left; cursor: pointer;
  background: var(--panel-deep); border: 1px solid var(--seam);
  border-radius: var(--r-sm); padding: .6rem .8rem;
  color: var(--haze); font: inherit; font-size: .88rem;
  transition: border-color .16s ease, background .16s ease;
}
.drawer-pick:hover:not(:disabled) { border-color: var(--neon); background: var(--panel-lift); }
.drawer-pick:disabled { cursor: default; opacity: .62; }
.dp-name { color: var(--ice); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dp-count { font-size: .7rem; color: var(--faint); }
.dp-go {
  font-family: var(--mono); font-size: .74rem; color: var(--neon);
  min-width: 2.6rem; text-align: right;
}
.drawer-pick.is-done .dp-go { color: var(--faint); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; }

/* ═══════════ PLAYLISTS ═══════════ */
.composer {
  background: var(--panel); border: 1px solid var(--seam-soft);
  border-radius: var(--r-lg); padding: 1.4rem 1.5rem 1.2rem; margin-bottom: 2rem;
  position: relative; overflow: hidden;
}
.composer::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, var(--neon), transparent 55%);
}
.comp-tag {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--neon-dim); margin-bottom: .9rem;
}
.comp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 0 1.1rem; }
.comp-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: .3rem; }

.plists { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.plist {
  background: var(--panel); border: 1px solid var(--seam-soft);
  border-radius: var(--r-lg); padding: 1.3rem 1.4rem 1.2rem;
  display: flex; flex-direction: column; gap: .55rem;
}
.pl-top { display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.pl-name { font-size: 1.2rem; font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-flag {
  font-family: var(--mono); font-size: .6rem; letter-spacing: .12em; text-transform: uppercase;
  border-radius: 99px; padding: .16rem .55rem; border: 1px solid var(--seam); flex: 0 0 auto;
}
.pl-flag--pub { color: var(--neon); border-color: var(--neon-dim); background: var(--neon-wash); }
.pl-flag--priv { color: var(--mute); }
.pl-desc { font-size: .88rem; color: var(--haze); font-weight: 300; }
.pl-wave { color: var(--seam); line-height: 0; margin: .3rem 0 .1rem; }
.pl-figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem 1rem; padding-top: .9rem; border-top: 1px solid var(--seam-soft); }
.pl-figs dt { font-family: var(--mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.pl-figs dd { font-size: .98rem; color: var(--ice); font-weight: 700; margin-top: .1rem; }
.plists-foot { margin-top: 1.5rem; font-size: .82rem; color: var(--faint); max-width: 70ch; font-weight: 300; }

/* ═══════════ THE DOOR ═══════════ */
.door { display: flex; justify-content: center; padding: 1rem 0 2rem; }
.door-card {
  width: 100%; max-width: 440px;
  background: var(--panel); border: 1px solid var(--seam-soft);
  border-radius: var(--r-lg); padding: 2rem 1.9rem 1.9rem;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.door-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon), transparent);
}
.door-eyebrow {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--neon-dim);
}
.door-h { margin-top: .5rem; font-size: 1.9rem; font-weight: 800; }
.door-lede { margin: .7rem 0 1.5rem; font-size: .92rem; color: var(--haze); font-weight: 300; }
.demo-slot {
  margin-top: 1.5rem; padding-top: 1.3rem; border-top: 1px dashed var(--seam);
}
.ds-tag {
  font-family: var(--mono); font-size: .66rem; letter-spacing: .13em;
  text-transform: uppercase; color: var(--mute); margin-bottom: .7rem;
}
.ds-rows { display: flex; flex-direction: column; gap: .3rem; margin-bottom: 1rem; }
.ds-rows > div { display: flex; justify-content: space-between; gap: 1rem; font-size: .84rem; }
.ds-rows dt { color: var(--mute); }
.ds-rows dd { color: var(--ice); }
.door-alt { margin-top: 1.4rem; font-size: .88rem; color: var(--mute); }
#signupForm { margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px solid var(--seam-soft); }

/* ═══════════ TOAST + FOOTER ═══════════ */
.toast {
  position: fixed; z-index: 50; left: 50%; bottom: 1.6rem; transform: translateX(-50%);
  max-width: min(90vw, 460px);
  background: var(--neon); color: var(--void);
  font-size: .9rem; font-weight: 600;
  padding: .78rem 1.2rem; border-radius: 99px;
  box-shadow: 0 14px 40px rgba(4, 2, 12, .6);
}
.toast--err { background: var(--warn); }

.dusk {
  border-top: 1px solid var(--seam-soft);
  padding: 2.4rem 2.2rem 3rem; max-width: 1080px; margin: 0 auto;
}
.dusk-brand {
  font-family: var(--display); font-weight: 800; font-size: 1.6rem;
  color: var(--seam); letter-spacing: -.03em;
}
.dusk-line { margin-top: .7rem; max-width: 76ch; font-size: .82rem; color: var(--faint); font-weight: 300; }

/* ═══════════ NARROW ═══════════ */
@media (max-width: 1080px) {
  .rank { grid-template-columns: 2.6rem minmax(0, 1fr) 96px 5.6rem 3.4rem; }
  .hero { grid-template-columns: 210px minmax(0, 1fr); gap: 1.6rem; }
  .sleeve { grid-template-columns: 230px minmax(0, 1fr); gap: 1.7rem; }
}

@media (max-width: 900px) {
  body { padding-left: 0; }
  .rail {
    position: static; width: auto; flex-direction: row; align-items: center;
    gap: 1rem; padding: .85rem 1.1rem; flex-wrap: wrap;
    border-right: 0; border-bottom: 1px solid var(--seam-soft);
  }
  .brand-sub { display: none; }
  .rail-nav { flex-direction: row; flex-wrap: wrap; gap: .2rem; margin-left: auto; }
  .rail-nav a { padding: .42rem .7rem; font-size: .85rem; border-left: 0; border-bottom: 2px solid transparent; }
  .rail-nav a.on { background: var(--neon-wash); border-left: 0; border-bottom-color: var(--neon); }
  .who { margin-top: 0; }
  .rail-foot { display: none; }
  .view { padding: 2.2rem 1.15rem 3rem; }
  .dusk { padding: 2rem 1.15rem 2.6rem; }

  .rank {
    grid-template-columns: 2.4rem minmax(0, 1fr) 4.6rem;
    grid-template-areas: "n main plays" "n main time";
    row-gap: .1rem; padding: .8rem .55rem;
  }
  .rank-n { grid-area: n; font-size: 1.35rem; }
  .rank-main { grid-area: main; }
  .rank-wave { display: none; }
  .rank-plays { grid-area: plays; }
  .rank-time { grid-area: time; font-size: .78rem; }

  .hero, .sleeve { grid-template-columns: minmax(0, 1fr); gap: 1.3rem; }
  .hero-art { max-width: 210px; }
  .sleeve-art { max-width: 260px; }
  .figures { gap: .6rem 1.6rem; }

  .trk {
    grid-template-columns: 2.1rem minmax(0, 1fr) auto;
    grid-template-areas: "n main act" "n time act" "drawer drawer drawer";
    row-gap: .05rem;
  }
  .trk-wave { display: none; }
  .trk-time { text-align: left; }

  .comp-grid { grid-template-columns: minmax(0, 1fr); }
  .plists { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 520px) {
  .cap-h { font-size: 2rem; }
  .roster { grid-template-columns: minmax(0, 1fr); }
  .wall { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1.1rem .8rem; }
  .drawer-pick { grid-template-columns: minmax(0, 1fr) auto; }
  .dp-count { grid-column: 1 / -1; }
  .door-card { padding: 1.5rem 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .card:hover, .tile:hover .tile-art { transform: none; }
  .st-pulse { box-shadow: 0 0 0 3px rgba(90, 240, 255, .18); }
}
