* {
  box-sizing: border-box;
}

:root {
  --bg: #02060b;
  --panel: rgba(4, 15, 25, 0.82);
  --panel-strong: rgba(6, 20, 34, 0.92);
  --line: rgba(73, 164, 219, 0.24);
  --line-soft: rgba(255, 255, 255, 0.11);
  --text: #f5f8fb;
  --muted: #95a7b7;
  --cyan: #3bc7ff;
  --blue: #168de2;
  --orange: #ff6418;
  --orange-soft: rgba(255, 100, 24, 0.22);
  --page-surface: linear-gradient(180deg, rgba(6, 20, 34, 0.82), rgba(2, 6, 11, 0.74));
}

body.site-body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(2, 6, 11, 0.96), rgba(2, 6, 11, 0.98)),
    #02060b;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.topbar,
.ai-reader-notice,
.portal-shell,
.portal-footer,
.playlist-shell,
.site-footer {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}

.ai-reader-notice {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  gap: 8px;
  align-items: start;
  margin-top: 8px;
  padding: 7px 10px;
  max-height: 4.5rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid rgba(59, 199, 255, 0.14);
  border-radius: 8px;
  background: rgba(2, 9, 16, 0.62);
  color: #aebdc8;
  font-size: 0.72rem;
  line-height: 1.24;
  scrollbar-color: rgba(59, 199, 255, 0.38) rgba(255, 255, 255, 0.06);
  scrollbar-width: thin;
}

.ai-reader-notice strong {
  color: #f0e7da;
  text-transform: uppercase;
  font-size: 0.66rem;
  line-height: 1.2;
  white-space: nowrap;
}

.ai-reader-notice span {
  min-width: 0;
}

.ai-reader-notice a {
  color: var(--cyan);
  font-weight: 800;
  text-decoration: none;
  border-bottom: 1px solid rgba(59, 199, 255, 0.32);
  white-space: nowrap;
}

.topbar {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  padding: 24px 0 12px;
}

.wordmark {
  display: grid;
  gap: 2px;
  text-decoration: none;
  min-width: 170px;
}

.wordmark-main {
  font-size: 2rem;
  line-height: 1;
  font-weight: 800;
}

.wordmark-sub {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.topbar-gm-link,
.footer-gm-link,
.gm-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 6px;
}

.topbar-gm-link:focus-visible,
.footer-gm-link:focus-visible,
.gm-logo-link:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 5px;
}

.topbar-gm {
  width: 84px;
  height: 44px;
  object-fit: cover;
  border-left: 1px solid var(--line-soft);
  padding-left: 18px;
  opacity: 0.95;
}

/* Compact public navigation. AI/protocol surfaces live in the reader notice,
   footer, /ai/, and /protocol/ instead of dominating the landing page topbar. */
.topnav {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
}

.nav-lane {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
}

.nav-lane__label {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.nav-lane__hint {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
  font-size: 0.62rem;
  opacity: 0.82;
}

.nav-lane--human .nav-lane__label {
  color: var(--cyan);
  background: rgba(59, 199, 255, 0.14);
  border: 1px solid rgba(59, 199, 255, 0.42);
}

.nav-lane--ai .nav-lane__label {
  color: var(--orange);
  background: var(--orange-soft);
  border: 1px solid rgba(255, 100, 24, 0.5);
}

.nav-lane__links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 0;
}

.nav-lane__links a {
  position: relative;
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.2;
  white-space: nowrap;
}

.nav-lane--human .nav-lane__links a {
  color: var(--cyan);
}

.nav-lane--human .nav-lane__links a:hover,
.nav-lane--human .nav-lane__links a.active {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.nav-lane--ai .nav-lane__links a {
  color: var(--orange);
}

.nav-lane--ai .nav-lane__links a:hover,
.nav-lane--ai .nav-lane__links a.active {
  color: #ff8c3a;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* AI lane is a <details>; on desktop it renders inline with the toggle neutralized. */
.nav-lane--ai > summary {
  cursor: default;
  list-style: none;
}

.nav-lane--ai > summary::-webkit-details-marker {
  display: none;
}

.nav-lane--ai > summary::marker {
  content: "";
}

.nav-lane--ai > .nav-lane__links {
  display: flex;
}

.library-button,
.primary-action,
.secondary-action,
.small-button,
.archive-link {
  text-decoration: none;
  border-radius: 8px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.library-button {
  padding: 0 20px;
  border: 1px solid var(--orange);
  background: var(--orange-soft);
  color: #fff3ec;
  font-weight: 700;
  font-size: 0.88rem;
}

.collection-hero {
  position: relative;
  isolation: isolate;
  width: min(1240px, calc(100% - 48px));
  min-height: 560px;
  margin: 8px auto 12px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.collection-hero__covers {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.collection-hero__cover {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(220px, 27vw, 380px);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  opacity: 0.36;
  filter: saturate(0.9) contrast(1.06) brightness(0.72);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.48);
}

.collection-hero__cover--fp {
  transform: translate(-128%, -48%) rotate(-10deg);
}

.collection-hero__cover--cw {
  opacity: 0.3;
  transform: translate(-50%, -55%) scale(1.02);
}

.collection-hero__cover--aip {
  transform: translate(28%, -48%) rotate(10deg);
}

.collection-hero__image-link {
  display: block;
  position: relative;
  z-index: 2;
  width: min(100%, 520px);
  border-radius: 8px;
  line-height: 0;
  text-decoration: none;
  outline: 1px solid rgba(59, 199, 255, 0.16);
  outline-offset: 4px;
  transition: transform 160ms ease, outline-color 160ms ease, filter 160ms ease;
}

.collection-hero__image-link:hover {
  transform: translateY(-1px);
  outline-color: rgba(255, 100, 24, 0.42);
  filter: saturate(1.04);
}

.collection-hero__image-link:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 6px;
}

.collection-hero__image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.portal-shell {
  padding: 0 0 34px;
}

.hero-panel {
  position: relative;
  min-height: 340px;
  display: grid;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(59, 199, 255, 0.12);
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 11, 1) 0%, rgba(2, 6, 11, 0.96) 45%, rgba(2, 6, 11, 0.78) 100%),
    linear-gradient(180deg, rgba(2, 6, 11, 0) 72%, rgba(2, 6, 11, 1) 100%);
  pointer-events: none;
}

.hero-art {
  position: absolute;
  inset: 0 0 0 auto;
  width: 76%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.92;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  padding: 42px 0;
}

.hero-copy h1 {
  margin: 0;
  display: grid;
  gap: 2px;
  font-size: 4.35rem;
  line-height: 0.95;
  font-weight: 900;
}

.hero-copy h1 span:nth-child(1),
.hero-copy h1 span:nth-child(3) {
  color: #8addff;
}

.hero-copy h1 span:nth-child(2) {
  color: var(--orange);
}

.hero-copy p {
  width: min(410px, 100%);
  margin: 22px 0 0;
  color: #d7e1e8;
  font-size: 1.08rem;
  line-height: 1.5;
}

.hero-copy .hero-lede {
  width: min(520px, 100%);
  color: #f4e9dc;
  font-size: 1.16rem;
  font-weight: 800;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.primary-action,
.secondary-action {
  padding: 0 20px;
  font-weight: 750;
  font-size: 0.94rem;
}

.primary-action {
  background: linear-gradient(180deg, #ff7b23, #d93d0a);
  border: 1px solid #ff8c3a;
  box-shadow: 0 0 22px rgba(255, 100, 24, 0.34);
}

.primary-action.is-disabled {
  color: #d9e5ec;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(139, 167, 184, 0.28);
  box-shadow: none;
  cursor: default;
}

.secondary-action {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-soft);
}

/* Human-path primary CTA (cyan/blue) — distinct from the orange support CTA. */
.human-action {
  text-decoration: none;
  border-radius: 8px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  font-weight: 750;
  font-size: 0.94rem;
  color: #04222e;
  background: linear-gradient(180deg, var(--cyan), var(--blue));
  border: 1px solid var(--cyan);
  box-shadow: 0 0 22px rgba(59, 199, 255, 0.3);
}

.human-action:hover {
  filter: brightness(1.06);
}

/* AI-path links/buttons (orange). */
.ai-action {
  color: var(--orange) !important;
  border-color: rgba(255, 100, 24, 0.6) !important;
  background: var(--orange-soft) !important;
}

/* Orientation note near the top of AI-facing pages. */
.ai-orientation-note {
  margin: 0 0 16px;
  padding: 10px 16px;
  border-left: 4px solid var(--orange);
  background: var(--orange-soft);
  border-radius: 10px;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--text);
}

.ai-orientation-note a {
  color: var(--cyan);
  font-weight: 700;
}

.portal-section {
  border-top: 1px solid var(--line);
  padding: 22px 28px 30px;
  background: var(--page-surface);
}

.section-title {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: center;
  margin-bottom: 16px;
  color: #dce8f1;
  text-transform: uppercase;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
}

.section-title span {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--orange));
}

.section-title span:last-child {
  background: linear-gradient(90deg, var(--cyan), transparent);
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.album-card {
  display: grid;
  min-height: 238px;
  min-width: 0;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(10, 27, 40, 0.78), rgba(0, 0, 0, 0.34));
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.album-card:hover,
.album-card:focus-visible {
  border-color: var(--cyan);
  outline: 3px solid rgba(59, 199, 255, 0.18);
  outline-offset: 3px;
}

.album-card-captain-white:hover,
.album-card-captain-white:focus-visible {
  border-color: var(--blue);
}

.album-card-ai-psychosis:hover,
.album-card-ai-psychosis:focus-visible {
  border-color: #f53919;
}

.album-cover {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  background: var(--page-surface);
}

.album-meta {
  display: grid;
  gap: 9px;
  padding: 22px;
  align-content: start;
}

.album-title {
  color: #7cdcff;
  font-size: 1.06rem;
  font-weight: 800;
  line-height: 1.2;
}

.album-counts {
  color: #d7e1e8;
  font-size: 0.88rem;
  line-height: 1.4;
}

.album-status {
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 560;
  line-height: 1.35;
}

.album-status:first-of-type {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 820;
}

.album-open {
  width: fit-content;
  margin-top: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(59, 199, 255, 0.28);
  border-radius: 999px;
  color: #e7f7ff;
  background: rgba(59, 199, 255, 0.07);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.collection-page {
  padding-top: 30px;
}

.collection-page-intro {
  width: min(760px, 100%);
  margin: 0 auto 26px;
  text-align: center;
}

.collection-page-intro h1 {
  margin: 8px 0 0;
  color: #f4e9dc;
  font-size: clamp(3rem, 8vw, 6.2rem);
  line-height: 0.9;
  font-weight: 900;
}

.collection-page-subtitle {
  margin: 14px 0 0;
  color: var(--cyan);
  font-size: 1.1rem;
  font-weight: 820;
}

.collection-page-intro p:not(.section-kicker):not(.collection-page-subtitle) {
  margin: 14px auto 0;
  width: min(680px, 100%);
  color: #d7e1e8;
  line-height: 1.55;
}

.collection-page-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.collection-album-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(10, 27, 40, 0.82), rgba(0, 0, 0, 0.38));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.26);
  transition: transform 160ms ease, border-color 160ms ease, filter 160ms ease;
}

.collection-album-card:hover,
.collection-album-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--cyan);
  outline: 3px solid rgba(59, 199, 255, 0.18);
  outline-offset: 3px;
  filter: saturate(1.04);
}

.collection-album-cover {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--page-surface);
}

.collection-album-meta {
  display: grid;
  gap: 9px;
  padding: 16px 18px 18px;
}

.collection-album-title {
  color: #7cdcff;
  font-size: 1.05rem;
  font-weight: 860;
  line-height: 1.2;
}

.collection-album-count {
  color: #f4e9dc;
  font-size: 0.84rem;
  font-weight: 780;
}

.collection-album-frame {
  color: #d7e1e8;
  font-size: 0.82rem;
  line-height: 1.35;
}

.collection-album-open {
  width: fit-content;
  margin-top: 4px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 100, 24, 0.32);
  border-radius: 999px;
  color: #fff3ec;
  background: rgba(255, 100, 24, 0.11);
  font-size: 0.75rem;
  font-weight: 820;
  text-transform: uppercase;
}

.collection-page-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.section-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 12px;
}

.section-kicker {
  margin: 0;
  color: #f2f7fb;
  text-transform: uppercase;
  font-size: 0.88rem;
  font-weight: 800;
}

.section-subtitle,
.archive-copy,
.library-note {
  margin: 2px 0 0;
  color: var(--cyan);
  font-size: 0.92rem;
  line-height: 1.35;
}

.library-count {
  color: var(--cyan);
  font-size: 1.02rem;
  font-weight: 800;
  white-space: nowrap;
}

.small-button {
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 700;
  font-size: 0.82rem;
  text-decoration: none;
  white-space: nowrap;
}

.library-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  border: 1px solid rgba(59, 199, 255, 0.14);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(2, 9, 16, 0.72);
}

.library-row {
  min-height: 42px;
  display: grid;
  grid-template-columns: 34px 32px minmax(150px, 1fr) 94px 58px 138px 56px 56px;
  gap: 12px;
  align-items: center;
  padding: 0 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.library-row:last-child {
  border-bottom: 0;
}

.library-index,
.library-duration {
  color: #a8b7c4;
  font-variant-numeric: tabular-nums;
  font-size: 0.82rem;
}

.library-play {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(59, 199, 255, 0.2);
  color: #bdefff;
  font-size: 0.58rem;
}

.library-title {
  font-weight: 700;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.library-origin {
  justify-self: start;
  color: var(--cyan);
  border: 1px solid rgba(59, 199, 255, 0.3);
  background: rgba(59, 199, 255, 0.08);
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 0.78rem;
  white-space: nowrap;
}

.library-wave {
  height: 18px;
  background:
    repeating-linear-gradient(90deg, transparent 0 6px, rgba(216, 229, 238, 0.7) 6px 8px, transparent 8px 12px);
  opacity: 0.65;
}

.library-icon {
  color: #c5d1da;
  text-decoration: none;
  font-size: 0.76rem;
}

.library-note {
  color: #8796a2;
  margin: 12px 0 0;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.download-card {
  display: grid;
  gap: 8px;
  min-height: 118px;
  padding: 16px;
  border: 1px solid rgba(255, 100, 24, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 100, 24, 0.1), rgba(2, 9, 16, 0.74));
  color: var(--text);
  text-decoration: none;
}

.download-card:hover,
.download-card:focus-visible {
  border-color: var(--orange);
  outline: 3px solid rgba(255, 100, 24, 0.18);
  outline-offset: 3px;
}

.download-title {
  color: #ffe2d1;
  font-size: 1rem;
  font-weight: 850;
  line-height: 1.25;
}

.download-meta,
.download-note {
  color: #b8c7d1;
  font-size: 0.8rem;
  line-height: 1.35;
}

.download-note {
  color: #ffb184;
}

.download-page-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.download-page-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(2, 9, 16, 0.72);
}

.download-page-card h2,
.download-page-card p {
  margin: 0;
}

.download-page-card h2 {
  color: #7cdcff;
  font-size: 1.12rem;
}

.download-page-card code {
  color: #ffe2d1;
}

.download-warning {
  color: #ffb184;
  font-size: 0.84rem;
  line-height: 1.4;
}

.support-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(124, 220, 255, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(124, 220, 255, 0.08), rgba(2, 9, 16, 0.72));
}

.support-card-wide {
  max-width: 860px;
  margin: 0 auto;
}

.support-copy {
  margin: 0;
  color: #f4e9dc;
  font-size: 1.04rem;
  line-height: 1.55;
  font-weight: 720;
}

.support-actions,
.support-secondary-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.support-note,
.support-notes,
.support-download-note {
  color: #a9b8c4;
  font-size: 0.88rem;
  line-height: 1.45;
}

.support-note,
.support-notes {
  margin: 0;
}

.support-notes {
  padding-left: 20px;
}

.thanks-page {
  max-width: 780px;
  margin-inline: auto;
}

.thanks-copy {
  display: grid;
  gap: 12px;
  color: #dce8ef;
  font-size: 1.05rem;
  line-height: 1.58;
}

.thanks-copy p {
  margin: 0;
}

.support-download-note a {
  color: #ffb184;
  font-weight: 800;
}

.album-support-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 34px 0 18px;
  padding: 18px;
  border: 1px solid rgba(124, 220, 255, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 100, 24, 0.08), rgba(2, 9, 16, 0.74)),
    rgba(2, 9, 16, 0.68);
}

.album-support-copy {
  margin: 0;
  color: #e5edf2;
  font-size: 0.95rem;
  line-height: 1.45;
  font-weight: 720;
}

.album-support-action {
  display: flex;
  flex: 0 0 auto;
}

.archive-card {
  display: grid;
  gap: 8px;
  min-height: 136px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(2, 9, 16, 0.72);
  text-decoration: none;
}

.archive-card:hover,
.archive-card:focus-visible {
  border-color: var(--cyan);
  outline: none;
}

.archive-icon {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--cyan);
  border-radius: 8px;
  color: var(--cyan);
  font-size: 0.74rem;
  font-weight: 800;
}

.archive-term .archive-icon,
.archive-json .archive-icon {
  border-color: var(--orange);
  color: var(--orange);
}

.archive-title {
  font-size: 1rem;
  font-weight: 800;
}

.archive-desc {
  color: #b9c8d2;
  font-size: 0.86rem;
  line-height: 1.35;
}

.archive-link {
  justify-content: flex-start;
  min-height: 0;
  color: var(--cyan);
  font-size: 0.84rem;
  font-weight: 800;
}

.archive-term .archive-link,
.archive-json .archive-link {
  color: var(--orange);
}

.about-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
  gap: 34px;
  align-items: center;
  padding: 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(90deg, rgba(3, 20, 34, 0.86), rgba(2, 6, 11, 0.78)),
    radial-gradient(circle at left center, rgba(59, 199, 255, 0.14), transparent 260px);
}

.about-panel-compact {
  grid-template-columns: minmax(160px, 0.36fr) minmax(0, 1fr);
  align-items: start;
  padding: 22px 28px;
}

.about-panel-compact .about-principles {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.about-mark {
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  border: 1px solid rgba(255, 100, 24, 0.35);
  display: grid;
  place-items: center;
  color: var(--orange);
  font-size: 4rem;
  font-weight: 900;
  background:
    radial-gradient(circle, rgba(255, 100, 24, 0.22), rgba(255, 100, 24, 0.02) 58%, transparent 60%),
    rgba(0, 0, 0, 0.38);
}

.about-copy p {
  margin: 8px 0 0;
  color: #d4e0e8;
  line-height: 1.55;
}

.about-principles {
  display: grid;
  gap: 16px;
}

.about-principles p {
  margin: 0;
  display: grid;
  gap: 2px;
  color: var(--cyan);
  font-weight: 800;
}

.about-principles span {
  color: #b8c7d1;
  font-weight: 450;
}

.portal-footer {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: center;
  justify-items: center;
  text-align: center;
  padding: 22px 0 34px;
  color: #a9b7c2;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.footer-gm {
  width: 96px;
  height: 48px;
  object-fit: cover;
  justify-self: center;
  margin-inline: auto;
}

.footer-gm-link {
  justify-self: center;
}

.footer-owned,
.footer-social,
.portal-footer p,
.technical-stamp {
  font-size: 0.82rem;
}

.footer-social a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(59, 199, 255, 0.3);
  text-underline-offset: 3px;
}

.footer-social a:hover,
.footer-social a:focus-visible {
  color: var(--cyan);
}

.portal-footer p {
  justify-self: center;
  margin: 0;
}

.technical-stamp {
  margin: 4px 0 0;
  color: rgba(149, 167, 183, 0.7);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.landing-shell,
.brand-header {
  display: none;
}

/* Playlist pages */
.playlist-shell {
  padding: 24px 0 64px;
}

.playlist-header {
  display: grid;
  gap: 24px;
  padding: 0 0 22px;
}

.logo-link {
  display: inline-block;
  justify-self: center;
  text-decoration: none;
}

.site-logo {
  display: block;
  width: 440px;
  max-width: 82vw;
  height: auto;
}

.site-logo.small {
  width: 300px;
  max-width: 70vw;
  margin: 0 auto;
}

.playlist-identity {
  display: grid;
  grid-template-columns: minmax(192px, 286px) minmax(0, 1fr);
  gap: 26px;
  align-items: center;
}

.playlist-cover {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  justify-self: center;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--page-surface);
}

.playlist-copy {
  min-width: 0;
}

.album-breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin: 0 0 10px;
  color: rgba(169, 184, 196, 0.82);
  font-size: 0.78rem;
  line-height: 1.35;
  text-transform: uppercase;
  font-weight: 820;
}

.album-breadcrumb a {
  color: rgba(124, 220, 255, 0.82);
  text-decoration: none;
}

.album-breadcrumb a:hover,
.album-breadcrumb a:focus-visible {
  color: #ffb184;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: 3.8rem;
  line-height: 1;
  letter-spacing: 0;
}

.playlist-subtitle {
  margin: 12px 0 0;
  color: #d7e1e8;
  font-size: 1.12rem;
  line-height: 1.35;
}

.status-line {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.status-line a {
  color: #bdefff;
  text-decoration: none;
  border-bottom: 1px solid rgba(59, 199, 255, 0.32);
}

.playlist-frame {
  margin: 18px 0 0;
  color: #f0e7da;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.35;
}

.playlist-summary,
.playlist-anchors {
  max-width: 72ch;
  margin: 8px 0 0;
  color: #b8c7d1;
  font-size: 0.9rem;
  line-height: 1.45;
}

.album-player {
  display: grid;
  gap: 12px;
  margin: 8px 0 22px;
  padding: 14px;
  border: 1px solid rgba(59, 199, 255, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(6, 20, 34, 0.88), rgba(2, 9, 16, 0.76));
}

.album-master-audio {
  display: none;
}

.album-player-main {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.player-button,
.player-icon-button {
  min-height: 40px;
  border: 1px solid var(--line-soft);
  background: rgba(247, 243, 235, 0.07);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.player-button {
  border-radius: 8px;
  padding: 0 14px;
  font-size: 0.82rem;
  font-weight: 800;
}

.player-icon-button {
  width: 40px;
  border-radius: 999px;
  font-size: 1.2rem;
  line-height: 1;
}

.player-button:hover:not(:disabled),
.player-icon-button:hover:not(:disabled),
.player-button:focus-visible,
.player-icon-button:focus-visible {
  border-color: var(--cyan);
  background: rgba(59, 199, 255, 0.14);
  outline: none;
}

.player-button:disabled,
.player-icon-button:disabled,
.album-player input:disabled {
  opacity: 0.42;
  cursor: default;
}

.album-player-readout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.player-now {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #d7e1e8;
  font-size: 0.9rem;
  font-weight: 760;
}

.player-time {
  color: var(--muted);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.album-player-sliders {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 240px);
  gap: 14px;
  align-items: center;
}

.player-seek,
.player-volume {
  width: 100%;
  accent-color: var(--orange);
}

.player-volume-label {
  display: grid;
  grid-template-columns: auto minmax(90px, 1fr);
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 0.78rem;
  white-space: nowrap;
}

.player-current-line {
  margin: -12px 0 20px;
  color: #d7e1e8;
  font-size: 0.9rem;
  font-weight: 760;
  line-height: 1.35;
}

.tracklist {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 10px;
}

.track {
  background: rgba(247, 243, 235, 0.05);
  border: 1px solid rgba(247, 243, 235, 0.1);
  border-radius: 8px;
  padding: 12px;
}

.track.is-current {
  border-color: var(--orange);
  background:
    linear-gradient(180deg, rgba(255, 100, 24, 0.1), rgba(247, 243, 235, 0.05));
}

.track-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.track-num {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-size: 0.84rem;
  line-height: 1.35;
  text-align: right;
  padding-top: 2px;
}

.track-title {
  min-width: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  word-break: break-word;
}

.track-origin,
.track-provenance,
.track-songbench {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 450;
  line-height: 1.35;
}

.track-origin {
  text-transform: uppercase;
}

.track-provenance summary {
  cursor: pointer;
  display: inline-flex;
  width: fit-content;
  color: var(--cyan);
}

.track-provenance p {
  margin: 5px 0 0;
  max-width: 68ch;
}

.track-songbench {
  margin: 10px 0 0 54px;
}

.track-songbench a {
  color: rgba(189, 239, 255, 0.78);
  text-decoration: none;
  border-bottom: 1px solid rgba(59, 199, 255, 0.22);
}

.lyric-toggle {
  min-width: 40px;
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(247, 243, 235, 0.07);
  color: var(--text);
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
}

.lyric-toggle:hover:not(:disabled),
.lyric-toggle[aria-expanded="true"] {
  background: rgba(59, 199, 255, 0.14);
  border-color: var(--cyan);
}

.lyric-toggle:disabled {
  opacity: 0.3;
  cursor: default;
}

audio {
  width: 100%;
  display: block;
  margin-top: 10px;
}

.missing-audio {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.lyrics {
  display: none;
  white-space: pre-wrap;
  overflow: auto;
  max-height: 54vh;
  margin: 10px 0 0;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--line-soft);
  background: rgba(0, 0, 0, 0.34);
  color: #eee6da;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.84rem;
  line-height: 1.55;
}

.lyrics.open {
  display: block;
}

.held-section {
  margin-top: 34px;
}

.held-section h2 {
  margin: 0;
  color: #d7e1e8;
  font-size: 1.1rem;
}

.site-footer {
  display: grid;
  justify-items: center;
  text-align: center;
  padding: 24px 0 48px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 0.82rem;
}

.gm-logo {
  display: block;
  width: 170px;
  height: auto;
  opacity: 0.72;
}

.gm-logo-link {
  margin: 0 auto 10px;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 1080px) {
  .topbar {
    grid-template-columns: auto auto;
  }

  .topnav {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
  }

  /* Mobile: hide the lane sub-hints to keep the row compact. */
  .nav-lane__hint {
    display: none;
  }

  /* Human path: compact public links that wrap inside the viewport. */
  .nav-lane--human {
    flex-wrap: wrap;
    overflow: visible;
    gap: 10px;
    width: 100%;
  }

  .nav-lane--human .nav-lane__links {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 14px;
  }

  .library-button {
    justify-self: end;
  }

  .hero-copy h1 {
    font-size: 3.55rem;
  }

  .library-row {
    grid-template-columns: 34px 32px minmax(150px, 1fr) 84px 52px;
  }

  .library-wave,
  .library-icon {
    display: none;
  }

  .archive-grid,
  .about-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-mark {
    display: none;
  }

  .portal-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .topbar,
  .ai-reader-notice,
  .portal-shell,
  .portal-footer,
  .playlist-shell,
  .site-footer {
    width: min(100% - 24px, 1240px);
  }

  .topbar {
    gap: 14px;
    padding-top: 18px;
  }

  .collection-hero {
    width: min(100% - 24px, 1240px);
    min-height: min(96vw, 430px);
    margin: 10px auto 14px;
  }

  .collection-hero__cover {
    width: clamp(118px, 34vw, 210px);
    opacity: 0.28;
  }

  .collection-hero__cover--fp {
    transform: translate(-116%, -48%) rotate(-9deg);
  }

  .collection-hero__cover--cw {
    opacity: 0.22;
    transform: translate(-50%, -56%) scale(1.02);
  }

  .collection-hero__cover--aip {
    transform: translate(16%, -48%) rotate(9deg);
  }

  .collection-hero__image-link {
    width: min(100%, 360px);
    outline-offset: 3px;
  }

  .collection-hero__image-link:focus-visible {
    outline-offset: 5px;
  }

  .ai-reader-notice {
    grid-template-columns: minmax(0, 1fr) max-content;
    gap: 5px 8px;
    max-height: 5rem;
    padding: 7px 9px;
    font-size: 0.72rem;
  }

  .ai-reader-notice span {
    grid-column: 1 / -1;
  }

  .topbar-gm-link {
    display: none;
  }

  .topnav {
    gap: 14px;
  }

  .library-button {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .hero-panel {
    min-height: auto;
    padding-top: 24px;
  }

  .hero-art {
    width: 100%;
    opacity: 0.56;
  }

  .hero-panel::after {
    background:
      linear-gradient(90deg, rgba(2, 6, 11, 0.96), rgba(2, 6, 11, 0.44)),
      linear-gradient(180deg, rgba(2, 6, 11, 0) 70%, rgba(2, 6, 11, 1) 100%);
  }

  .hero-copy {
    padding: 32px 0 42px;
  }

  .hero-copy h1 {
    font-size: 3rem;
  }

  .album-grid,
  .collection-page-grid,
  .download-grid,
  .download-page-grid,
  .archive-grid,
  .about-panel {
    grid-template-columns: 1fr;
  }

  .portal-section,
  .about-panel {
    padding-left: 16px;
    padding-right: 16px;
  }

  .about-panel-compact .about-principles {
    grid-template-columns: 1fr;
  }

  .collection-page {
    padding-top: 22px;
  }

  .collection-page-intro h1 {
    font-size: 3.25rem;
  }

  .section-header {
    grid-template-columns: 1fr;
  }

  .library-row {
    grid-template-columns: 34px 28px minmax(0, 1fr);
    min-height: auto;
    padding: 10px 12px;
  }

  .library-origin,
  .library-duration {
    grid-column: 3;
  }

  .playlist-identity {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .playlist-cover {
    width: min(100%, 320px);
    max-width: 320px;
    margin-inline: auto;
  }

  .playlist-summary,
  .playlist-anchors {
    margin-left: auto;
    margin-right: auto;
  }

  h1 {
    font-size: 2.8rem;
  }

  .track-row {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .lyric-toggle {
    grid-column: 2;
    justify-self: start;
  }

  .track-songbench {
    margin-left: 46px;
  }

  .album-player-sliders,
  .album-player-readout {
    grid-template-columns: 1fr;
  }

  .player-volume-label {
    grid-template-columns: 1fr;
  }

  .player-current-line {
    margin-top: -10px;
  }

  .album-support-cta {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .album-support-action,
  .album-support-action .primary-action {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .wordmark-main {
    font-size: 1.55rem;
  }

  .wordmark-sub {
    font-size: 0.64rem;
  }

  .nav-lane__links a {
    font-size: 0.84rem;
  }

  .hero-copy h1 {
    font-size: 2.35rem;
  }

  .hero-copy p,
  .playlist-subtitle {
    font-size: 1rem;
  }

  .portal-footer {
    grid-template-columns: 1fr;
  }
}
