/* ═══════════════════════════════════════════════════════════════
   KODE31 — MASTER DESIGN SYSTEM
   Import this sheet on every page:
   <link rel="stylesheet" href="kode31-styles.css">
   ═══════════════════════════════════════════════════════════════

   TABLE OF CONTENTS
   ─────────────────
   01. Google Fonts Import
   02. CSS Custom Properties (Tokens)
   03. Reset & Base
   04. Typography Scale
   05. Screen / Page System
   06. Navigation Bar
   07. Dimension Buttons (Home)
   08. Genre / List Items (Universe)
   09. Album Carousel & Cards (Universe)
   10. CTA Buttons
   11. Multiverse List Items
   12. Play History Overlay
   13. Music Player
   14. Form Elements (Shared)
   15. Utility Classes
   16. Animations & Keyframes
   17. Grain Texture Overlay
   18. Scrollbar Styling
   19. Responsive Helpers
   ═══════════════════════════════════════════════════════════════ */


/* ─────────────────────────────────────────────
   01. GOOGLE FONTS
───────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&family=DM+Mono:wght@300;400;500&display=swap');


/* ─────────────────────────────────────────────
   02. CSS CUSTOM PROPERTIES (DESIGN TOKENS)
───────────────────────────────────────────── */
:root {

  /* ── FONTS ── */
  --font-display:  'Cormorant Garamond', Georgia, serif;
  --font-ui:       'Syne', sans-serif;
  --font-body:     'DM Sans', sans-serif;
  --font-mono:     'DM Mono', 'Courier New', monospace;

  /* ── TYPE SCALE ── */
  --text-2xs:  9px;
  --text-xs:   10.5px;
  --text-sm:   12px;
  --text-base: 14px;
  --text-md:   16px;
  --text-lg:   1.1rem;
  --text-xl:   1.35rem;
  --text-2xl:  1.7rem;
  --text-3xl:  2.2rem;
  --text-4xl:  clamp(2.6rem, 8vw, 3.2rem);

  /* ── LETTER SPACING ── */
  --tracking-tight:  -0.025em;
  --tracking-normal: 0em;
  --tracking-wide:   0.06em;
  --tracking-wider:  0.14em;
  --tracking-widest: 0.3em;

  /* ── LINE HEIGHT ── */
  --leading-none:   1;
  --leading-tight:  1.1;
  --leading-snug:   1.3;
  --leading-normal: 1.5;
  --leading-loose:  1.7;

  /* ══ HOME / NEUTRAL PALETTE ══ */
  --home-bg:           #f5f4f0;
  --home-surface:      #ffffff;
  --home-border:       rgba(0, 0, 0, 0.09);
  --home-text:         #1a1a1a;
  --home-text-muted:   rgba(0, 0, 0, 0.35);
  --home-text-faint:   rgba(0, 0, 0, 0.20);
  --home-rule:         rgba(0, 0, 0, 0.12);

  /* ══ UNIVERSE PALETTE (dark) ══ */
  --uni-bg:            #0c0c0c;
  --uni-bg-raised:     #141414;
  --uni-surface:       rgba(255, 255, 255, 0.042);
  --uni-surface-hover: rgba(255, 255, 255, 0.072);
  --uni-border:        rgba(255, 255, 255, 0.062);
  --uni-border-hover:  rgba(255, 255, 255, 0.115);
  --uni-text:          #ffffff;
  --uni-text-muted:    rgba(255, 255, 255, 0.40);
  --uni-text-faint:    rgba(255, 255, 255, 0.22);
  --uni-text-ghost:    rgba(255, 255, 255, 0.12);

  /* Universe accent gradient (used on headings, badges) */
  --uni-gradient:      linear-gradient(120deg, #e879f9 0%, #818cf8 45%, #38bdf8 100%);
  --uni-gradient-subtle: linear-gradient(120deg,
    rgba(232,121,249,0.18) 0%,
    rgba(129,140,248,0.10) 45%,
    rgba(56,189,248,0.06) 100%);

  /* ══ MULTIVERSE PALETTE (light) ══ */
  --multi-bg:          #f5f4f0;
  --multi-surface:     #ffffff;
  --multi-surface-hover: #f9f8f5;
  --multi-border:      rgba(0, 0, 0, 0.072);
  --multi-border-hover:rgba(0, 0, 0, 0.13);
  --multi-text:        #111111;
  --multi-text-muted:  rgba(0, 0, 0, 0.36);
  --multi-text-faint:  rgba(0, 0, 0, 0.20);
  --multi-rule:        rgba(0, 0, 0, 0.08);

  /* ══ GENRE ACCENT COLOURS ══
     Used as CSS var(--genre-accent) on individual items */
  --accent-indie:      #a78bfa;
  --accent-phonk:      #f87171;
  --accent-hiphop:     #fbbf24;
  --accent-afro:       #34d399;
  --accent-spaces:     #67e8f9;
  --accent-kids:       #fde68a;
  --accent-bhakti:     #fb923c;
  --accent-noor:       #c4b5fd;

  /* ══ SEMANTIC COLOURS ══ */
  --color-success:     #22c55e;
  --color-warning:     #f59e0b;
  --color-error:       #ef4444;
  --color-info:        #38bdf8;

  /* ── SPACING SCALE ── */
  --space-1:   4px;
  --space-2:   8px;
  --space-3:   12px;
  --space-4:   16px;
  --space-5:   20px;
  --space-6:   24px;
  --space-8:   32px;
  --space-10:  40px;
  --space-12:  48px;
  --space-16:  64px;

  /* Page horizontal padding */
  --page-pad:  22px;

  /* ── BORDER RADIUS ── */
  --radius-xs:  3px;
  --radius-sm:  5px;
  --radius-md:  8px;
  --radius-lg:  12px;
  --radius-xl:  16px;
  --radius-2xl: 24px;
  --radius-full:9999px;

  /* ── TRANSITIONS ── */
  --ease:       0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --ease-slow:  0.32s cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring:0.4s  cubic-bezier(0.34, 1.56, 0.64, 1);

  /* ── Z-INDEX STACK ── */
  --z-base:    1;
  --z-raised:  10;
  --z-nav:     20;
  --z-overlay: 100;
  --z-modal:   200;
  --z-toast:   300;

  /* ── SHADOWS ── */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 0 0 0.5px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 0 0 0.5px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12), 0 0 0 0.5px rgba(0,0,0,0.06);

  /* Nav height — used to offset sticky content */
  --nav-height: 68px;
}


/* ─────────────────────────────────────────────
   03. RESET & BASE
───────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  width: 100%;
  height: 100%;
  background-color: #0a0a0a;
}

html, body { background: #0a0a0a; }

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  background: #0a0a0a;
  color: var(--home-text);
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  height: 100dvh;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Body variants — add class to <body> per dimension */
body.universe  { background: var(--uni-bg);   color: var(--uni-text);   }
body.multiverse{ background: var(--multi-bg); color: var(--multi-text); }

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
  appearance: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

ul, ol { list-style: none; }

input, textarea, select {
  font-family: var(--font-body);
  font-size: var(--text-base);
}


/* ─────────────────────────────────────────────
   04. TYPOGRAPHY SCALE
───────────────────────────────────────────── */

/* Display — Cormorant Garamond, editorial, large */
.t-display-xl {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 300;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
}
.t-display-lg {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 300;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
}
.t-display-md {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  line-height: var(--leading-snug);
}
.t-display-sm {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  line-height: var(--leading-snug);
}

/* UI — Syne, uppercase labels, nav, buttons */
.t-label-lg {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
}
.t-label-md {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
}
.t-label-sm {
  font-family: var(--font-ui);
  font-size: var(--text-2xs);
  font-weight: 400;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
}

/* Mono — DM Mono, tags, meta, codes */
.t-mono-md {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
}
.t-mono-sm {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  letter-spacing: var(--tracking-wide);
}

/* Body */
.t-body-md { font-size: var(--text-md);  line-height: var(--leading-normal); }
.t-body-sm { font-size: var(--text-base); line-height: var(--leading-normal); }
.t-body-xs { font-size: var(--text-xs);  line-height: var(--leading-normal); }

/* Italic accent — used inside display headlines */
.t-italic { font-style: italic; }

/* Gradient text — Universe hero headings */
.t-gradient-uni {
  background: var(--uni-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


/* ─────────────────────────────────────────────
   05. SCREEN / PAGE SYSTEM
   Single-page app: only .active screen is shown.
   Multi-page app: each page gets its own <body> class.
───────────────────────────────────────────── */
.screen {
  display: none;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  position: relative;
}
.screen.active {
  display: flex;
  height: 100dvh;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-padding-bottom: env(safe-area-inset-bottom);
  animation: k-screen-in var(--ease-slow) both;
}
.screen-home.active { overflow: hidden; }

/* Page wrappers for multi-page builds */
.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
}
.page-content {
  flex: 1;
  padding: 0 var(--page-pad);
}

/* ── Universe page ── */
.page-universe,
.screen-universe {
  background: var(--uni-bg);
  color: var(--uni-text);
}
/* ── Multiverse page ── */
.page-multiverse,
.screen-multiverse {
  background: var(--multi-bg);
  color: var(--multi-text);
}
/* ── Home / neutral page ── */
.page-home,
.screen-home {
  background: var(--home-bg);
  color: var(--home-text);
  align-items: center;
  justify-content: center;
}

/* Centered content column */
.content-column {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 var(--page-pad);
}


/* ─────────────────────────────────────────────
   06. NAVIGATION BAR
───────────────────────────────────────────── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6) var(--page-pad) var(--space-4);
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  height: var(--nav-height);
}

/* Dark nav (Universe) */
.nav--dark {
  background: var(--uni-bg);
  border-bottom: 0.5px solid var(--uni-border);
}
/* Light nav (Multiverse / Home) */
.nav--light {
  background: var(--multi-bg);
  border-bottom: 0.5px solid var(--multi-border);
}

/* Back button */
.nav__back {
  width: 36px; height: 36px;
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  transition: background var(--ease);
  flex-shrink: 0;
}
.nav--dark  .nav__back { background: rgba(255,255,255,0.07); color: var(--uni-text); }
.nav--dark  .nav__back:hover { background: rgba(255,255,255,0.13); }
.nav--light .nav__back { background: rgba(0,0,0,0.06); color: var(--multi-text); }
.nav--light .nav__back:hover { background: rgba(0,0,0,0.11); }

/* Wordmark */
.nav__wordmark {
  font-family: var(--font-ui);
  font-size: var(--text-2xs);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
}
.nav--dark  .nav__wordmark { color: var(--uni-text-muted); }
.nav--light .nav__wordmark { color: var(--multi-text-muted); }

/* Logo / Clover mark — swap <svg> for <img src="logo.svg"> */
.nav__logo {
  width: 28px; height: 28px;
  cursor: pointer; flex-shrink: 0;
  transition: opacity var(--ease);
}
.nav__logo:hover { opacity: 0.55; }
.nav__logo img,
.nav__logo svg { width: 100%; height: 100%; display: block; }


/* ─────────────────────────────────────────────
   07. DIMENSION BUTTONS (Home Screen)
───────────────────────────────────────────── */
.dim-stack {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dim-card {
  width: 100%;
  border: none;
  text-align: left;
  cursor: pointer;
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  transition: transform var(--ease), box-shadow var(--ease);
}
.dim-card:hover  { transform: translateY(-1px); }
.dim-card:active { transform: scale(0.988); }
.dim-card:hover .dim-card__arrow { transform: translateX(4px); }

.dim-card__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  position: relative;
  z-index: 1;
}
.dim-card__left  { display: flex; flex-direction: column; gap: 6px; }

.dim-card__num {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  letter-spacing: 0.14em;
}
.dim-card__name {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: var(--tracking-tight);
  line-height: 1;
  display: block;
}
.dim-card__desc {
  font-size: 10.5px;
  letter-spacing: 0.035em;
  line-height: var(--leading-snug);
  max-width: 210px;
  display: block;
}
.dim-card__arrow {
  font-size: 20px;
  transition: transform var(--ease);
}

/* Universe variant */
.dim-card--universe { background: #111111; }
.dim-card--universe::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 100% 140% at 88% 55%,
    rgba(168,85,247,0.20) 0%, rgba(99,102,241,0.08) 40%, transparent 65%);
  pointer-events: none;
}
.dim-card--universe::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 10% 20%,
    rgba(56,189,248,0.07) 0%, transparent 50%);
  pointer-events: none;
}
.dim-card--universe .dim-card__num   { color: rgba(255,255,255,0.25); }
.dim-card--universe .dim-card__name  { color: #ffffff; }
.dim-card--universe .dim-card__desc  { color: rgba(255,255,255,0.32); }
.dim-card--universe .dim-card__arrow { color: rgba(255,255,255,0.22); }

/* Multiverse variant */
.dim-card--multiverse {
  background: #ffffff;
  box-shadow: 0 0 0 0.5px rgba(0,0,0,0.10), 0 1px 4px rgba(0,0,0,0.04);
}
.dim-card--multiverse .dim-card__num   { color: rgba(0,0,0,0.25); }
.dim-card--multiverse .dim-card__name  { color: #111111; }
.dim-card--multiverse .dim-card__desc  { color: rgba(0,0,0,0.38); }
.dim-card--multiverse .dim-card__arrow { color: rgba(0,0,0,0.20); }


/* ─────────────────────────────────────────────
   08. GENRE / LIST ITEMS (Universe)
───────────────────────────────────────────── */
.genre-list {
  padding: 0 var(--page-pad);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}

.genre-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) 18px;
  border-radius: var(--radius-md);
  background: var(--uni-surface);
  border: 0.5px solid var(--uni-border);
  cursor: pointer;
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: background var(--ease), transform var(--ease), border-color var(--ease);
}
/* Left accent line */
.genre-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2.5px;
  border-radius: 0 2px 2px 0;
  background: var(--genre-accent, #a78bfa);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--ease);
}
.genre-item:hover {
  background: var(--uni-surface-hover);
  border-color: var(--uni-border-hover);
  transform: translateX(4px);
}
.genre-item:hover::before { transform: scaleX(1); }
.genre-item:active { transform: scale(0.99) translateX(2px); }

.genre-item__left  { display: flex; flex-direction: column; gap: 3px; }
.genre-item__name {
  font-family: var(--font-ui);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--uni-text);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.genre-item__tag {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  color: var(--uni-text-faint);
  letter-spacing: 0.06em;
}
.genre-item__right {
  display: flex; align-items: center; gap: 10px;
}
.genre-item__dot {
  width: 5px; height: 5px;
  border-radius: var(--radius-full);
  background: var(--genre-accent, #a78bfa);
  flex-shrink: 0;
}
.genre-item__chevron {
  color: var(--uni-text-ghost);
  font-size: 14px; line-height: 1;
}

/* Stagger entries when list loads */
.genre-item:nth-child(1) { animation-delay: 0.04s; }
.genre-item:nth-child(2) { animation-delay: 0.08s; }
.genre-item:nth-child(3) { animation-delay: 0.12s; }
.genre-item:nth-child(4) { animation-delay: 0.16s; }
.genre-item:nth-child(5) { animation-delay: 0.20s; }
.genre-item:nth-child(6) { animation-delay: 0.24s; }
.genre-item:nth-child(7) { animation-delay: 0.28s; }
.genre-item:nth-child(8) { animation-delay: 0.32s; }
.genre-item { opacity: 0; animation: k-fade-up 0.35s cubic-bezier(0.4,0,0.2,1) forwards; }


/* ─────────────────────────────────────────────
   09. ALBUM CAROUSEL & CARDS (Universe)
───────────────────────────────────────────── */
.carousel {
  display: flex;
  gap: 14px;
  padding: 0 var(--page-pad) var(--space-1);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel:active { cursor: grabbing; }

.album-card {
  flex-shrink: 0;
  width: 215px;
  scroll-snap-align: start;
  cursor: pointer;
}

.album-card__art {
  width: 215px; height: 215px;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}
.album-card__art-bg {
  width: 100%; height: 100%;
  background: var(--alb-grad, #333);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}
.album-card:hover .album-card__art-bg { transform: scale(1.04); }

/* Badge — Latest release */
.album-card__badge {
  position: absolute;
  top: 10px; left: 10px;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
}
.album-card__badge--latest {
  background: rgba(255,255,255,0.92);
  color: #111;
}
.album-card__badge--external {
  background: rgba(0,0,0,0.55);
  color: rgba(255,255,255,0.80);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Hover overlay */
.album-card__overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.28);
  opacity: 0;
  transition: opacity 0.2s;
  border-radius: var(--radius-md);
}
.album-card:hover .album-card__overlay { opacity: 1; }

/* Play / Link circle */
.album-card__play {
  width: 50px; height: 50px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.92);
  border: none; cursor: pointer;
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.15s;
}
.album-card__play:hover { transform: scale(1.08); }

.album-card__info { padding: var(--space-2) 2px 0; }
.album-card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--uni-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.album-card__meta {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  color: var(--uni-text-faint);
  margin-top: 3px;
  letter-spacing: 0.04em;
}

.carousel-hint {
  text-align: center;
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  color: var(--uni-text-ghost);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  padding: var(--space-2) 0 var(--space-4);
}


/* ─────────────────────────────────────────────
   10. CTA BUTTONS (Shared)
───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--ease);
  border: 0.5px solid transparent;
  white-space: nowrap;
}
.btn--full { width: 100%; }

/* Universe primary */
.btn--uni-primary {
  background: rgba(255,255,255,0.08);
  color: var(--uni-text);
  border-color: rgba(255,255,255,0.16);
}
.btn--uni-primary:hover {
  background: rgba(255,255,255,0.13);
  border-color: rgba(255,255,255,0.26);
}
/* Universe ghost */
.btn--uni-ghost {
  background: transparent;
  color: var(--uni-text-muted);
  border-color: rgba(255,255,255,0.07);
}
.btn--uni-ghost:hover {
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.70);
  border-color: rgba(255,255,255,0.12);
}

/* Multiverse primary */
.btn--multi-primary {
  background: var(--multi-text);
  color: var(--multi-bg);
  border-color: var(--multi-text);
}
.btn--multi-primary:hover { opacity: 0.88; }

/* Multiverse ghost */
.btn--multi-ghost {
  background: transparent;
  color: var(--multi-text-muted);
  border-color: var(--multi-border);
}
.btn--multi-ghost:hover {
  background: var(--multi-surface);
  color: var(--multi-text);
  border-color: var(--multi-border-hover);
}

/* Active / pressed state for all buttons */
.btn:active { transform: scale(0.975); }


/* ─────────────────────────────────────────────
   11. MULTIVERSE LIST ITEMS
───────────────────────────────────────────── */
.multi-list {
  padding: 0 var(--page-pad);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}

.multi-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--space-5);
  border-radius: var(--radius-md);
  background: var(--multi-surface);
  border: 0.5px solid var(--multi-border);
  cursor: pointer;
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: all var(--ease);
}
.multi-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2.5px;
  border-radius: 0 2px 2px 0;
  background: var(--multi-text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--ease);
}
.multi-item:hover {
  border-color: var(--multi-border-hover);
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}
.multi-item:hover::before { transform: scaleX(1); }
.multi-item:active { transform: scale(0.99) translateX(2px); }

.multi-item__left  { display: flex; flex-direction: column; gap: 3px; }
.multi-item__name {
  font-family: var(--font-ui);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--multi-text);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.multi-item__sub {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  color: var(--multi-text-muted);
  letter-spacing: 0.06em;
}
.multi-item__chevron {
  color: rgba(0,0,0,0.20);
  font-size: 14px; line-height: 1;
}

/* Stagger */
.multi-item:nth-child(1) { opacity: 0; animation: k-fade-up 0.35s 0.04s forwards; }
.multi-item:nth-child(2) { opacity: 0; animation: k-fade-up 0.35s 0.08s forwards; }
.multi-item:nth-child(3) { opacity: 0; animation: k-fade-up 0.35s 0.12s forwards; }
.multi-item:nth-child(4) { opacity: 0; animation: k-fade-up 0.35s 0.16s forwards; }
.multi-item:nth-child(5) { opacity: 0; animation: k-fade-up 0.35s 0.20s forwards; }
.multi-item:nth-child(6) { opacity: 0; animation: k-fade-up 0.35s 0.24s forwards; }
.multi-item:nth-child(7) { opacity: 0; animation: k-fade-up 0.35s 0.28s forwards; }


/* ─────────────────────────────────────────────
   12. PLAY HISTORY OVERLAY (Bottom Sheet)
───────────────────────────────────────────── */
.history-overlay {
  display: none;
  position: fixed; inset: 0;
  z-index: var(--z-modal);
}
.history-overlay.open { display: flex; flex-direction: column; }

.history-overlay__backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.58);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  cursor: pointer;
}

.history-sheet {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: #141414;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding-bottom: calc(var(--space-10) + env(safe-area-inset-bottom));
  max-height: 76vh;
  display: flex; flex-direction: column;
  animation: k-sheet-up 0.28s cubic-bezier(0.4,0,0.2,1) both;
}
.history-sheet__handle {
  width: 36px; height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.18);
  margin: 14px auto 0;
  flex-shrink: 0;
}
.history-sheet__header {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 18px var(--page-pad) 12px;
  flex-shrink: 0;
}
.history-sheet__title {
  font-family: var(--font-ui);
  font-size: var(--text-2xs);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--uni-text-muted);
}
.history-sheet__close {
  width: 28px; height: 28px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.07);
  color: var(--uni-text);
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background var(--ease);
}
.history-sheet__close:hover { background: rgba(255,255,255,0.13); }

.history-list {
  overflow-y: auto; flex: 1;
  padding: 0 var(--page-pad);
  display: flex; flex-direction: column;
  gap: var(--space-2);
}

.history-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--uni-surface);
  border: 0.5px solid var(--uni-border);
  cursor: pointer;
  transition: background var(--ease);
}
.history-item:hover { background: var(--uni-surface-hover); }

.history-item__art {
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.history-item__info { flex: 1; min-width: 0; }
.history-item__song {
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 400;
  color: var(--uni-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.history-item__album {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  color: var(--uni-text-faint);
  margin-top: 2px; letter-spacing: 0.04em;
}
.history-empty {
  text-align: center;
  padding: var(--space-10) var(--page-pad);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: rgba(255,255,255,0.22);
  font-style: italic;
}


/* ─────────────────────────────────────────────
   13. MUSIC PLAYER
───────────────────────────────────────────── */

/* Full-screen player */
.player-screen {
  position: relative;
  overflow: hidden;
  background: var(--uni-bg);
}

/* Blurred album art fills bg */
.player-bg {
  position: absolute; inset: 0;
  background: var(--player-grad, #111);
  filter: blur(60px) saturate(1.4);
  opacity: 0.55;
  transform: scale(1.2);
  transition: background 0.6s ease;
}
.player-bg-dim {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.6);
}

/* Player content above bg */
.player-content {
  position: relative;
  z-index: 1;
  display: flex; flex-direction: column;
  min-height: 100vh;
  padding-bottom: var(--space-10);
}

/* Large album art */
.player-art-wrap {
  width: calc(100% - (var(--page-pad) * 2));
  max-width: 320px;
  margin: var(--space-5) auto var(--space-6);
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}
.player-art {
  width: 100%; height: 100%;
  background: var(--player-grad, #333);
}

/* Track info */
.player-info {
  padding: 0 var(--page-pad) var(--space-6);
  text-align: center;
}
.player-song-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  color: var(--uni-text);
  margin-bottom: var(--space-1);
}
.player-album-name {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  color: var(--uni-text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Waveform visualiser placeholder */
.player-waveform {
  padding: 0 var(--page-pad);
  height: 40px;
  display: flex; align-items: center;
  gap: 2px;
  margin-bottom: var(--space-4);
  overflow: hidden;
}
.player-waveform__bar {
  flex: 1; border-radius: 1px;
  background: rgba(255,255,255,0.25);
  animation: k-wave var(--dur, 0.8s) ease-in-out infinite alternate;
  animation-delay: var(--del, 0s);
}
@keyframes k-wave {
  from { height: 4px; }
  to   { height: var(--h, 30px); }
}

/* Seek bar */
.player-seek {
  padding: 0 var(--page-pad) var(--space-5);
}
.player-seek__track {
  height: 2px;
  background: rgba(255,255,255,0.15);
  border-radius: 1px;
  position: relative;
  cursor: pointer;
}
.player-seek__progress {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: rgba(255,255,255,0.7);
  border-radius: 1px;
  transition: width 0.25s linear;
}
.player-seek__thumb {
  position: absolute;
  width: 12px; height: 12px;
  border-radius: var(--radius-full);
  background: #fff;
  top: 50%; transform: translate(-50%, -50%);
  box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.player-seek__times {
  display: flex; justify-content: space-between;
  margin-top: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  color: var(--uni-text-faint);
}

/* Controls */
.player-controls {
  display: flex; align-items: center;
  justify-content: center; gap: var(--space-8);
  padding: 0 var(--page-pad) var(--space-6);
}
.player-ctrl-btn {
  background: none; border: none;
  color: var(--uni-text-muted);
  cursor: pointer;
  transition: color var(--ease), transform var(--ease);
  font-size: 22px; line-height: 1;
}
.player-ctrl-btn:hover { color: var(--uni-text); transform: scale(1.1); }
.player-ctrl-btn--play {
  width: 58px; height: 58px;
  border-radius: var(--radius-full);
  background: var(--uni-text);
  color: var(--uni-bg);
  font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--ease-spring);
}
.player-ctrl-btn--play:hover { transform: scale(1.07); color: var(--uni-bg); }

/* Mini player bar (persistent bottom) */
.mini-player {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: var(--z-overlay);
  background: rgba(18,18,18,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 0.5px solid rgba(255,255,255,0.08);
  padding: 10px var(--page-pad) calc(12px + env(safe-area-inset-bottom));
  display: none;
  align-items: center; gap: 12px;
  cursor: pointer;
  transition: transform var(--ease);
}
.mini-player.visible { display: flex; }
.mini-player:hover { background: rgba(22,22,22,0.96); }
.mini-player__art {
  width: 38px; height: 38px;
  border-radius: var(--radius-sm); flex-shrink: 0;
}
.mini-player__info { flex: 1; min-width: 0; }
.mini-player__title {
  font-family: var(--font-display);
  font-size: 1rem; color: var(--uni-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mini-player__sub {
  font-family: var(--font-mono);
  font-size: var(--text-2xs); color: var(--uni-text-faint);
  margin-top: 1px;
}
.mini-player__play {
  width: 32px; height: 32px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.1);
  border: none; color: var(--uni-text);
  font-size: 13px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--ease); flex-shrink: 0;
}
.mini-player__play:hover { background: rgba(255,255,255,0.18); }


/* ─────────────────────────────────────────────
   14. FORM ELEMENTS (Shared)
───────────────────────────────────────────── */

/* Text Input */
.input {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-base);
  transition: border-color var(--ease), box-shadow var(--ease);
  outline: none;
}
.input--dark {
  background: var(--uni-surface);
  border: 0.5px solid var(--uni-border);
  color: var(--uni-text);
}
.input--dark::placeholder { color: var(--uni-text-ghost); }
.input--dark:focus {
  border-color: rgba(255,255,255,0.25);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.05);
}
.input--light {
  background: var(--multi-surface);
  border: 0.5px solid var(--multi-border);
  color: var(--multi-text);
}
.input--light::placeholder { color: var(--multi-text-faint); }
.input--light:focus {
  border-color: rgba(0,0,0,0.25);
  box-shadow: 0 0 0 3px rgba(0,0,0,0.04);
}

/* Search input with icon */
.search-wrap {
  position: relative;
}
.search-wrap .input { padding-left: 40px; }
.search-wrap__icon {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  font-size: 14px; pointer-events: none;
}
.search-wrap--dark .search-wrap__icon  { color: var(--uni-text-ghost); }
.search-wrap--light .search-wrap__icon { color: var(--multi-text-faint); }


/* ─────────────────────────────────────────────
   15. UTILITY CLASSES
───────────────────────────────────────────── */

/* Spacing helpers */
.mt-1  { margin-top: var(--space-1); }
.mt-2  { margin-top: var(--space-2); }
.mt-3  { margin-top: var(--space-3); }
.mt-4  { margin-top: var(--space-4); }
.mt-6  { margin-top: var(--space-6); }
.mt-8  { margin-top: var(--space-8); }
.mt-10 { margin-top: var(--space-10); }
.mb-2  { margin-bottom: var(--space-2); }
.mb-4  { margin-bottom: var(--space-4); }
.mb-6  { margin-bottom: var(--space-6); }
.mb-8  { margin-bottom: var(--space-8); }

.pt-2  { padding-top: var(--space-2); }
.pt-4  { padding-top: var(--space-4); }
.pb-4  { padding-bottom: var(--space-4); }
.pb-8  { padding-bottom: var(--space-8); }
.pb-10 { padding-bottom: var(--space-10); }

.px-page { padding-left: var(--page-pad); padding-right: var(--page-pad); }

/* Dividers */
.divider {
  height: 0.5px;
  background: var(--home-rule);
  margin: 0 var(--page-pad);
}
.divider--dark  { background: var(--uni-border); }
.divider--light { background: var(--multi-rule); }

/* Badge / Pill */
.badge {
  display: inline-flex; align-items: center;
  padding: 3px 9px; border-radius: var(--radius-xs);
  font-family: var(--font-mono);
  font-size: var(--text-2xs); letter-spacing: 0.12em;
  text-transform: uppercase; font-weight: 500;
}
.badge--white { background: rgba(255,255,255,0.92); color: #111; }
.badge--dark  { background: rgba(0,0,0,0.55); color: rgba(255,255,255,0.8); }
.badge--accent { background: var(--genre-accent, #a78bfa); color: #fff; }

/* Flex helpers */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-1 { flex: 1; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }

/* Text alignment */
.text-center { text-align: center; }
.text-left   { text-align: left; }

/* Truncate */
.truncate {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Safe area bottom padding */
.safe-bottom { padding-bottom: calc(var(--space-8) + env(safe-area-inset-bottom)); }


/* ─────────────────────────────────────────────
   16. ANIMATIONS & KEYFRAMES
───────────────────────────────────────────── */

/* Screen entrance */
@keyframes k-screen-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Element fade up (staggered lists, hero content) */
@keyframes k-fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Bottom sheet slide up */
@keyframes k-sheet-up {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

/* Subtle pulse for loading states */
@keyframes k-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.45; }
}

/* Spin — used on clover logo idle animation (optional) */
@keyframes k-spin {
  to { transform: rotate(360deg); }
}

/* Hero entrance stagger helper — apply .k-stagger to parent */
.k-stagger > * {
  opacity: 0;
  animation: k-fade-up 0.45s cubic-bezier(0.4,0,0.2,1) both;
}
.k-stagger > *:nth-child(1)  { animation-delay: 0.05s; }
.k-stagger > *:nth-child(2)  { animation-delay: 0.10s; }
.k-stagger > *:nth-child(3)  { animation-delay: 0.15s; }
.k-stagger > *:nth-child(4)  { animation-delay: 0.20s; }
.k-stagger > *:nth-child(5)  { animation-delay: 0.25s; }
.k-stagger > *:nth-child(6)  { animation-delay: 0.30s; }


/* ─────────────────────────────────────────────
   17. GRAIN TEXTURE OVERLAY
───────────────────────────────────────────── */
body::after {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.38;
}


/* ─────────────────────────────────────────────
   18. SCROLLBAR STYLING
───────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.22); }
* { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.12) transparent; }


/* ─────────────────────────────────────────────
   19. RESPONSIVE HELPERS
───────────────────────────────────────────── */

/* Max width cap for desktop / tablet views */
@media (min-width: 600px) {
  :root { --page-pad: 28px; }
}

/* ── Desktop: app lives inside a phone-shaped device frame ── */
@media (min-width: 760px) {
  html {
    /* neutral desktop backdrop, frame centered both axes */
    background: #e8e6e0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 0;
  }
  body {
    /* the device: a tall rounded phone frame, centered */
    width: 420px;
    max-width: 420px;
    margin: 0;
    min-height: 0;
    height: min(920px, calc(100vh - 56px));
    border-radius: 40px;
    overflow: hidden;
    position: relative;
    /* clip children to the rounded corners (kills square-edge leak) */
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    isolation: isolate;
    box-shadow:
      0 50px 100px -20px rgba(0,0,0,0.32),
      0 30px 60px -30px rgba(0,0,0,0.4),
      0 0 0 1px rgba(0,0,0,0.06),
      0 0 0 10px #1a1a1a,
      0 0 0 11px rgba(255,255,255,0.08);
    background: var(--home-bg);
  }

  /* The active screen scrolls inside the frame, not the page */
  .screen.active {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
  }
  .screen { min-height: 100%; }

  /* For multi-page files (apps, guides, etc) the body itself is the scroll area */
  body.universe,
  body.multiverse { height: min(920px, calc(100vh - 56px)); overflow-y: auto; }

  /* Grain overlay stays within the frame */
  body::after { border-radius: 40px; }

  /* Sticky navs stick to the frame top, not the viewport */
  .nav { position: sticky; }
}

/* Larger desktops — softer backdrop, frame stays same size */
@media (min-width: 1100px) {
  html {
    background:
      radial-gradient(ellipse 60% 50% at 50% 35%, #efece6 0%, #e4e1da 60%, #ddd9d1 100%);
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}


/* ═══════════════════════════════════════════════════════════════
   20. ALBUM LANDING — full-bleed dissolving cover (Universe)
   Matches the player aesthetic. Swipe to browse, tap to open.
═══════════════════════════════════════════════════════════════ */

#s-landing {
  position: relative;
  overflow: hidden;
  background: #0a0a0a;
}

/* Full-bleed cover — pinned top, dissolves into the dark */
.lp-cover {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 66%;
  z-index: 1;
  background: var(--uni-grad, linear-gradient(135deg,#e879f9,#818cf8,#38bdf8));
  background-size: cover !important;
  background-position: center !important;
  transition: opacity 0.4s ease;
  -webkit-mask-image: linear-gradient(to bottom,
    rgba(0,0,0,0.5) 0%,
    rgba(0,0,0,0.92) 14%,
    #000 40%,
    #000 62%,
    rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(to bottom,
    rgba(0,0,0,0.5) 0%,
    rgba(0,0,0,0.92) 14%,
    #000 40%,
    #000 62%,
    rgba(0,0,0,0) 100%);
}
/* scrim so nav reads on bright covers */
.lp-cover::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, transparent 22%);
  pointer-events: none;
}

/* Nav floats over cover */
.lp-nav {
  position: relative;
  z-index: 4;
  background: transparent !important;
  backdrop-filter: none !important;
}

/* Invisible tap layer over the cover → opens player */
.lp-tap {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 60%;
  z-index: 3;
  background: none;
  border: none;
  cursor: pointer;
}

/* Swipe hint near the dissolve */
.lp-hint {
  position: absolute;
  top: 52%;
  left: 0; right: 0;
  z-index: 3;
  text-align: center;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.7);
  text-shadow: 0 1px 12px rgba(0,0,0,0.6);
  pointer-events: none;
  animation: lp-hint-pulse 2.6s ease-in-out infinite;
}
@keyframes lp-hint-pulse {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 0.85; }
}

/* Bottom info — sits on the dark dissolve */
.lp-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 3;
  padding: 0 var(--page-pad) calc(34px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.lp-genre-label {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--uni-text-faint);
  margin-bottom: 14px;
}
.lp-genre-label strong { color: var(--uni-text-muted); font-weight: 500; }
.lp-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 8vw, 2.9rem);
  font-weight: 400;
  color: #fff;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 24px rgba(0,0,0,0.5);
}
.lp-sub {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--uni-text-muted);
  margin-top: 10px;
}

/* Dots */
.lp-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin: 22px 0 24px;
}
.lp-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  border: none; cursor: pointer; padding: 0;
  transition: all var(--ease);
}
.lp-dot.active { background: #fff; width: 22px; border-radius: 3px; }

/* Actions */
.lp-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  width: 100%;
}
.lp-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 320px;
  padding: 17px 32px;
  border-radius: var(--radius-full);
  background: #fff;
  border: none;
  cursor: pointer;
  transition: transform var(--ease);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.lp-play:active { transform: scale(0.97); }
.lp-play__icon { font-size: 13px; color: #0a0a0a; }
.lp-play__text {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #0a0a0a;
}
.lp-catalogue {
  background: none; border: none; cursor: pointer;
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--uni-text-faint);
  transition: color var(--ease);
  padding: 4px;
}
.lp-catalogue:hover { color: var(--uni-text-muted); }


/* ═══════════════════════════════════════════════════════════════
   20b. FULL CATALOGUE (per genre)
═══════════════════════════════════════════════════════════════ */

#s-catalogue {
  position: relative;
  overflow-y: auto;
  background: #0a0a0a;
}
.cat-glow {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 130%; height: 40%;
  border-radius: 50%;
  filter: blur(90px) saturate(1.5);
  opacity: 0.3;
  z-index: 0;
  pointer-events: none;
  transition: background 0.6s ease;
}
#s-catalogue .nav { position: relative; z-index: 3; background: transparent !important; }

.cat-hero {
  position: relative;
  z-index: 2;
  padding-top: 8px;
  padding-bottom: 24px;
}
.cat-hero__eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--uni-text-faint);
  margin-bottom: 12px;
}
.cat-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 10vw, 3.4rem);
  font-weight: 300;
  color: #fff;
  line-height: 0.98;
  letter-spacing: -0.03em;
}
.cat-hero__tag {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--uni-text-muted);
  margin-top: 12px;
}

/* Catalogue grid — 2 columns of album cards */
.cat-list {
  position: relative;
  z-index: 2;
  padding: 0 var(--page-pad);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.cat-card {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  transform: translateY(18px);
  animation: gx-enter 0.5s cubic-bezier(0.22,1,0.36,1) forwards;
  animation-delay: var(--cat-delay, 0s);
}
.cat-card__art {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 14px;
  background-size: cover !important;
  background-position: center !important;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0,0,0,0.4);
  transition: transform var(--ease-spring);
}
.cat-card__art::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(150deg, rgba(255,255,255,0.12) 0%, transparent 45%, rgba(0,0,0,0.2) 100%);
}
.cat-card:active .cat-card__art { transform: scale(0.96); }
.cat-card__badge {
  position: absolute;
  top: 10px; left: 10px;
  z-index: 2;
  background: rgba(255,255,255,0.92);
  color: #111;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  padding: 4px 9px;
  border-radius: 3px;
  text-transform: uppercase;
}
.cat-card__play {
  position: absolute;
  bottom: 12px; right: 12px;
  z-index: 2;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  color: #0a0a0a;
  font-size: 12px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transform: scale(0.7) translateY(6px);
  transition: all var(--ease-spring);
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
.cat-card:hover .cat-card__play { opacity: 1; transform: scale(1) translateY(0); }
.cat-card__meta { padding: 0 2px; }
.cat-card__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.cat-card__sub {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--uni-text-faint);
  margin-top: 5px;
}
/* Touch: always show play affordance faintly */
@media (hover: none) {
  .cat-card__play { opacity: 0.85; transform: scale(1) translateY(0); }
}


/* ═══════════════════════════════════════════════════════════════
   20c. GENRE PICKER — full-bleed cover (Universe)
   Mirrors #s-landing structure exactly. Cover 60%, dissolves to name.
═══════════════════════════════════════════════════════════════ */
#s-genre { position: relative; background: #0a0a0a; }
#s-genre:not(.list-active) { overflow: hidden; }
#s-genre.list-active { overflow-y: auto; }
#s-genre.list-active .gp-list-mode { display: block !important; min-height: 60vh; }
#s-genre.list-active .gp-nav { position: sticky; top: 0; }

/* Cover — pinned top, 60%, dissolves into the dark (same mask as landing) */
.gp-cover {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 82%;
  z-index: 1;
  background: linear-gradient(135deg,#e879f9,#818cf8,#38bdf8);
  background-size: cover !important;
  background-position: center 22% !important;
  transition: opacity 0.4s ease;
  -webkit-mask-image: linear-gradient(to bottom,
    #000 0%, #000 68%, rgba(0,0,0,0.5) 86%, rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(to bottom,
    #000 0%, #000 68%, rgba(0,0,0,0.5) 86%, rgba(0,0,0,0) 100%);
}
.gp-cover::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    rgba(0,0,0,0.95) 0%,
    rgba(0,0,0,0.85) 8%,
    rgba(0,0,0,0.55) 18%,
    rgba(0,0,0,0.25) 28%,
    transparent 44%);
  pointer-events: none;
}
.gp-enter {
  background: none; border: none; cursor: pointer; padding: 0;
  display: flex; flex-direction: column; align-items: center;
  transition: transform var(--ease);
}
.gp-enter:active { transform: scale(0.97); }

/* Nav floats over cover */
.gp-nav { position: relative; z-index: 4; background: transparent !important; backdrop-filter: none !important; }
.gp-nav.nav--solid { background: var(--uni-bg) !important; }
.gp-nav .nav__wordmark { color: rgba(255,255,255,0.85) !important; text-shadow: 0 2px 14px rgba(0,0,0,0.8); }
.gp-nav .nav__back { color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,0.8); }
.gp-nav .nav__logo { width: 22px; height: 22px; }

/* tap layer to enter */
.gp-tap { position: absolute; top: 0; left: 0; right: 0; height: 55%; z-index: 3; background: none; border: none; cursor: pointer; }

.gp-follow-btn{
  position:absolute;
  top:70px; left:50%; transform:translateX(-50%);
  z-index:6;
  display:inline-flex; align-items:center; gap:7px;
  padding:8px 16px;
  border-radius:100px; border:1px solid var(--gold, #d4af37);
  background:rgba(0,0,0,0.3); color:var(--gold, #d4af37);
  font-family:var(--font-ui, 'Syne', sans-serif); font-size:9.5px; font-weight:700;
  letter-spacing:0.16em; text-transform:uppercase; white-space:nowrap;
  -webkit-tap-highlight-color:transparent; transition:opacity 0.3s ease, transform 0.2s ease;
  backdrop-filter:blur(4px); -webkit-backdrop-filter:blur(4px);
}
.gp-follow-btn:active{ transform:translateX(-50%) scale(0.95); }
.gp-follow-btn svg{ width:13px; height:13px; }
/* hide it when the list view is active */
#s-genre.list-active .gp-follow-btn{ display:none; }

.gx-hero__btns{ display:flex; gap:10px; flex-wrap:wrap; align-items:stretch; }
.gp-radio-btn{
  display:inline-flex; align-items:center; gap:8px;
  padding:10px 18px; border-radius:100px;
  border:1px solid var(--gold,#d4af37); background:rgba(212,175,55,0.08); color:var(--gold,#d4af37);
  font-family:var(--font-ui,'Syne',sans-serif); font-size:12px; font-weight:700; letter-spacing:0.1em;
  text-transform:uppercase;
  -webkit-tap-highlight-color:transparent; transition:transform 0.2s ease;
}
.gp-radio-btn:active{ transform:scale(0.96); }
.gp-radio-btn svg{ width:14px; height:14px; }

.radio-scrim{ position:fixed; inset:0; z-index:60; background:#000; opacity:0; pointer-events:none; transition:opacity 0.3s ease; }
.radio-scrim.open{ opacity:0.92; pointer-events:auto; }
.radio-sheet{
  position:fixed; top:50%; left:50%; transform:translate(-50%,-46%) scale(0.96);
  width:calc(100% - 48px); max-width:400px; max-height:80vh; overflow-y:auto;
  z-index:61; background:#0d0d10; border:0.5px solid rgba(255,255,255,0.1);
  border-radius:22px; padding:28px 24px 24px;
  opacity:0; pointer-events:none;
  transition:opacity 0.3s ease, transform 0.35s cubic-bezier(0.16,1,0.3,1);
}
.radio-sheet.open{ opacity:1; pointer-events:auto; transform:translate(-50%,-50%) scale(1); }
.radio-sheet__handle{ display:none; }
.radio-sheet__title{ font-family:var(--font-display,'Cormorant Garamond',serif); font-size:1.8rem; font-weight:400; color:#fff; margin-bottom:4px; }
.radio-sheet__sub{ font-family:var(--font-mono,'DM Mono',monospace); font-size:10px; letter-spacing:0.12em; text-transform:uppercase; color:rgba(255,255,255,0.4); margin-bottom:22px; }
.radio-chips{ display:flex; flex-wrap:wrap; gap:10px; margin-bottom:24px; }
.radio-chip{ padding:11px 18px; border-radius:100px; border:1px solid rgba(255,255,255,0.15); background:rgba(255,255,255,0.04); color:rgba(255,255,255,0.7); font-family:var(--font-ui,'Syne',sans-serif); font-size:13px; font-weight:600; -webkit-tap-highlight-color:transparent; transition:all 0.2s ease; }
.radio-chip{ padding:11px 18px; border-radius:100px; border:1px solid rgba(255,255,255,0.15); background:rgba(255,255,255,0.04); color:rgba(255,255,255,0.7); font-family:var(--font-ui,'Syne',sans-serif); font-size:13px; font-weight:600; -webkit-tap-highlight-color:transparent; transition:all 0.2s ease; }
.radio-chip.selected{
  background:var(--chip-color,#d4af37);
  border-color:var(--chip-color,#d4af37);
  color:#fff;
}
.radio-play-btn{ width:100%; padding:16px; border-radius:14px; border:none; background:#f4f4f4; color:#0a0a0a; font-family:var(--font-ui,'Syne',sans-serif); font-size:15px; font-weight:700; display:flex; align-items:center; justify-content:center; gap:9px; -webkit-tap-highlight-color:transparent; }
.radio-play-btn svg{ width:16px; height:16px; }

/* "Pick a Genre" eyebrow — just under the nav, on the dark scrim */
.gp-eyebrow {
  position: absolute; top: 80px; left: 0; right: 0; z-index: 3;
  text-align: center;
  font-family: var(--font-ui); font-size: 12px; font-weight: 600;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: rgba(255,255,255,0.95); text-shadow: 0 2px 18px rgba(0,0,0,0.85), 0 0 30px rgba(0,0,0,0.5);
  pointer-events: none;
}

/* swipe hint near the dissolve */
.gp-hint {
  position: absolute; bottom: 30%; left: 0; right: 0; z-index: 3;
  text-align: center;
  font-family: var(--font-ui); font-size: 8px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,0.6); text-shadow: 0 1px 12px rgba(0,0,0,0.6);
  pointer-events: none;
  animation: lp-hint-pulse 2.6s ease-in-out infinite;
}

/* bottom info — sits up where the image dissolves, not at the very bottom */
.gp-info {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 3;
  padding: 0 var(--page-pad) calc(28px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.gp-name {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.6rem, 11vw, 3.6rem); line-height: 1; letter-spacing: -0.02em;
  color: #fff; text-shadow: 0 2px 24px rgba(0,0,0,0.5);
}
.gp-tag {
  font-family: var(--font-mono); font-size: var(--text-2xs);
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--uni-text-muted); margin-top: 12px;
}
.gp-dots { display: flex; justify-content: center; gap: 7px; margin: 24px 0 26px; flex-wrap: wrap; }
.gp-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.28); border: none; cursor: pointer; padding: 0;
  transition: all var(--ease);
}
.gp-dot.active { background: #fff; width: 22px; border-radius: 3px; }
.gp-list-btn {
  background: rgba(255,255,255,0.07);
  border: 0.5px solid rgba(255,255,255,0.18);
  color: #fff;
  font-family: var(--font-ui); font-size: 12px; font-weight: 600; letter-spacing: 0.06em;
  padding: 14px 30px; border-radius: var(--radius-full); cursor: pointer;
  transition: all var(--ease);
}
.gp-list-btn:hover { background: rgba(255,255,255,0.14); }

/* list mode back button */
.gp-grid-btn {
  margin-top: 18px;
  background: rgba(212,175,55,0.14); border: 1px solid rgba(212,175,55,0.55);
  color: var(--gold, #d4af37);
  font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 12px 22px; border-radius: var(--radius-full); cursor: pointer;
  transition: all var(--ease);
}
.gp-grid-btn:active { transform: scale(0.97); }
.gp-grid-btn:hover { background: rgba(212,175,55,0.24); border-color: var(--gold, #d4af37); }


/* ═══════════════════════════════════════════════════════════════
   21. GENRE SELECT — "ULTRA" (Universe)
   Each row a doorway to a different world
═══════════════════════════════════════════════════════════════ */

/* ── Hero ── */
.gx-hero {
  padding-top: 30px;
  padding-bottom: 26px;
}
.gx-hero__eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--uni-text-faint);
  margin-bottom: 14px;
}
.gx-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 8vw, 3rem);
  font-weight: 300;
  color: var(--uni-text);
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.gx-hero__sub {
  margin-top: 12px;
  font-size: var(--text-sm);
  color: var(--uni-text-muted);
  line-height: var(--leading-snug);
  max-width: 240px;
}

/* ── List container ── */
.genre-list {
  padding: 0 var(--page-pad);
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
}

/* ── The row ── */
.gx-row {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 18px;
  border-radius: 14px;
  background: rgba(255,255,255,0.022);
  border: 0.5px solid rgba(255,255,255,0.06);
  cursor: pointer;
  text-align: left;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.3s cubic-bezier(0.34, 1.2, 0.64, 1),
    border-color 0.3s ease;
  /* entrance */
  opacity: 0;
  transform: translateY(16px);
  animation: gx-enter 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--gx-delay, 0s);
}
@keyframes gx-enter {
  to { opacity: 1; transform: translateY(0); }
}

/* colour wash — sits behind content, floods on press/hover */
.gx-row__wash {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 140% at 0% 50%,
      rgba(var(--gx-tint), 0.16) 0%,
      rgba(var(--gx-tint), 0.05) 40%,
      transparent 72%);
  opacity: 0.5;
  transition: opacity 0.34s ease;
}
.gx-row:hover {
  border-color: rgba(var(--gx-tint), 0.35);
  transform: translateX(5px);
}
.gx-row:hover .gx-row__wash { opacity: 1; }
.gx-row:active { transform: scale(0.985) translateX(3px); }

/* left edge accent strip — grows on hover */
.gx-row::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  height: 0%;
  width: 3px;
  background: var(--gx-accent);
  border-radius: 0 3px 3px 0;
  transform: translateY(-50%);
  transition: height 0.34s cubic-bezier(0.34, 1.4, 0.64, 1);
  box-shadow: 0 0 12px var(--gx-accent);
}
.gx-row:hover::before { height: 64%; }

/* ── Index column ── */
.gx-row__index {
  position: relative;
  width: 38px; height: 38px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gx-row__cover {
  width: 44px; height: 44px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
}
.gx-row__num {
  position: absolute;
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  color: var(--uni-text-faint);
  letter-spacing: 0.08em;
  transition: opacity 0.28s ease, transform 0.28s ease;
}
.gx-row__glyph {
  position: absolute;
  font-size: 22px;
  line-height: 1;
  color: var(--gx-accent);
  opacity: 0;
  transform: scale(0.5) rotate(-30deg);
  transition: opacity 0.32s ease, transform 0.42s cubic-bezier(0.34,1.56,0.64,1);
  text-shadow: 0 0 16px rgba(var(--gx-tint), 0.6);
}
.gx-row:hover .gx-row__num {
  opacity: 0;
  transform: scale(0.6);
}
.gx-row:hover .gx-row__glyph {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

/* ── Body ── */
.gx-row__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.gx-row__name {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 400;
  color: var(--uni-text);
  line-height: 1;
  letter-spacing: -0.01em;
  transition: color 0.28s ease;
}
.gx-row:hover .gx-row__name { color: #fff; }
.gx-row__tag {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  color: var(--uni-text-faint);
  letter-spacing: 0.06em;
  margin-top: 4px;
  transition: color 0.28s ease;
}
.gx-row:hover .gx-row__tag { color: rgba(var(--gx-tint), 0.9); }
/* mood line — hidden by default, slides in on hover */
.gx-row__mood {
  font-size: var(--text-2xs);
  color: var(--uni-text-muted);
  font-style: italic;
  font-family: var(--font-display);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.32s ease, opacity 0.32s ease, margin 0.32s ease;
}
.gx-row:hover .gx-row__mood {
  max-height: 20px;
  opacity: 0.7;
  margin-top: 4px;
}

/* ── Right column ── */
.gx-row__right {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  position: relative;
  min-width: 40px;
}
.gx-row__count {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--uni-text-muted);
  line-height: 1;
  transition: color 0.28s ease, transform 0.32s ease;
}
.gx-row:hover .gx-row__count {
  color: var(--gx-accent);
  transform: translateY(-2px);
}
.gx-row__count-label {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--uni-text-faint);
  margin-top: 3px;
  transition: opacity 0.28s ease;
}
.gx-row__arrow {
  position: absolute;
  right: 0;
  font-size: 18px;
  color: var(--gx-accent);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.3s ease, transform 0.34s cubic-bezier(0.34,1.4,0.64,1);
}
.gx-row:hover .gx-row__arrow {
  opacity: 1;
  transform: translateX(4px);
}
/* on hover, count slides out of the way for the arrow */
.gx-row:hover .gx-row__count,
.gx-row:hover .gx-row__count-label {
  opacity: 0;
}

/* Touch devices: no hover. Give each row quiet permanent character
   (glyph + faint wash) without the full hover flood on all 8 at once. */
@media (hover: none) {
  .gx-row__wash { opacity: 0.6; }
  .gx-row__num { opacity: 0; }
  .gx-row__glyph { opacity: 0.85; transform: scale(1) rotate(0deg); }
  .gx-row::before { height: 44%; }
  .gx-row__name { color: #fff; }
  .gx-row__arrow { display: none; }
  .gx-row__count, .gx-row__count-label { opacity: 1; }
  .gx-row__mood { display: none; }
  .gx-row:active .gx-row__wash { opacity: 1; }
  .gx-row:active::before { height: 64%; }
}


/* ═══════════════════════════════════════════════════════════════
   22. MULTIVERSE HUB — "ULTRA" (light world)
   Same soul as genre select, white/editorial treatment
═══════════════════════════════════════════════════════════════ */

/* ── Hero ── */
.mx-hero {
  padding-top: 30px;
  padding-bottom: 26px;
}
.mx-hero__eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--multi-text-faint);
  margin-bottom: 14px;
}
.mx-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 7.5vw, 2.8rem);
  font-weight: 300;
  color: var(--multi-text);
  line-height: 1.04;
  letter-spacing: -0.03em;
}
.mx-hero__title em { color: var(--multi-text-muted); }
.mx-hero__sub {
  margin-top: 12px;
  font-size: var(--text-sm);
  color: var(--multi-text-muted);
  line-height: var(--leading-snug);
  max-width: 260px;
}

/* ── List ── */
.multi-list {
  padding: 0 var(--page-pad);
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
}

/* ── Row ── */
.mx-row {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border-radius: 14px;
  background: #ffffff;
  border: 0.5px solid var(--multi-border);
  cursor: pointer;
  text-align: left;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.3s cubic-bezier(0.34,1.2,0.64,1),
              border-color 0.3s ease,
              box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(16px);
  animation: gx-enter 0.5s cubic-bezier(0.22,1,0.36,1) forwards;
  animation-delay: var(--mx-delay, 0s);
}
/* ink wash floods from left on hover */
.mx-row__wash {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 70% 130% at 0% 50%,
    rgba(0,0,0,0.05) 0%, transparent 68%);
  opacity: 0;
  transition: opacity 0.34s ease;
}
.mx-row:hover {
  border-color: rgba(0,0,0,0.18);
  transform: translateX(5px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.06);
}
.mx-row:hover .mx-row__wash { opacity: 1; }
.mx-row:active { transform: scale(0.985) translateX(3px); }

/* left ink strip */
.mx-row::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  height: 0%;
  width: 3px;
  background: var(--multi-text);
  border-radius: 0 3px 3px 0;
  transform: translateY(-50%);
  transition: height 0.34s cubic-bezier(0.34,1.4,0.64,1);
}
.mx-row:hover::before { height: 60%; }

/* index / glyph */
.mx-row__index {
  position: relative;
  width: 38px; height: 38px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.mx-row__num {
  position: absolute;
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  color: var(--multi-text-faint);
  letter-spacing: 0.08em;
  transition: opacity 0.28s ease, transform 0.28s ease;
}
.mx-row__glyph {
  position: absolute;
  font-size: 21px;
  line-height: 1;
  color: var(--multi-text);
  opacity: 0;
  transform: scale(0.5) rotate(-25deg);
  transition: opacity 0.32s ease, transform 0.42s cubic-bezier(0.34,1.56,0.64,1);
}
.mx-row:hover .mx-row__num { opacity: 0; transform: scale(0.6); }
.mx-row:hover .mx-row__glyph { opacity: 1; transform: scale(1) rotate(0deg); }

/* body */
.mx-row__body {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 2px;
}
.mx-row__name {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 400;
  color: var(--multi-text);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.mx-row__sub {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  color: var(--multi-text-faint);
  letter-spacing: 0.06em;
  margin-top: 4px;
}
.mx-row__desc {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-2xs);
  color: var(--multi-text-muted);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.32s ease, opacity 0.32s ease, margin 0.32s ease;
}
.mx-row:hover .mx-row__desc {
  max-height: 20px; opacity: 0.7; margin-top: 4px;
}

/* arrow */
.mx-row__arrow {
  flex-shrink: 0;
  font-size: 18px;
  color: var(--multi-text);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.3s ease, transform 0.34s cubic-bezier(0.34,1.4,0.64,1);
}
.mx-row:hover .mx-row__arrow { opacity: 1; transform: translateX(0); }

/* touch devices */
@media (hover: none) {
  .mx-row__wash { opacity: 0.5; }
  .mx-row__num { opacity: 0; }
  .mx-row__glyph { opacity: 0.85; transform: scale(1) rotate(0deg); }
  .mx-row::before { height: 40%; }
  .mx-row__arrow { opacity: 0.35; transform: translateX(0); }
  .mx-row__desc { display: none; }
  .mx-row:active .mx-row__wash { opacity: 0.9; }
  .mx-row:active::before { height: 60%; }
}

/* Temporarily disables heavy layout recalculations when waking from background.
   Applied for ~400ms by the visibilitychange handler so the CSS compositor and
   the JS timers don't try to catch up in the same frames and thrash the layout. */
body.waking-up *, body.waking-up *::before, body.waking-up *::after {
  transition: none !important;
  animation-play-state: paused !important;
}
