/* ============================================================
   ForgeMatch v2 — Dark Stage Design System
   ============================================================ */

/* ── Design Tokens (Punk Zine, dark) ─────────────────────── */
:root {
  --bg:           #06070a;
  --surface:      #0e0f14;
  --surface-2:    #181a22;
  --surface-3:    #1f2128;
  --border:       #2a2c36;
  --border-hover: #3a3c46;

  --paper:        #e9eaef;
  --paper-dim:    #c7c9d2;

  --green:        #1db954;
  --green-dim:    rgba(29,185,84,0.15);
  --green-glow:   rgba(29,185,84,0.25);
  --purple:       #c89bff;
  --purple-dim:   rgba(200,155,255,0.14);
  --blue:         #6db4ff;
  --yellow:       #ffd23a;
  --red:          #ff3a36;
  --red-2:        #cc2a26;
  --red-dim:      rgba(255,58,54,0.14);

  --text:         #e9eaef;
  --text-dim:     #9a9da8;
  --text-muted:   #6f7280;

  --font-body:    'IBM Plex Mono', ui-monospace, SFMono-Regular, monospace;
  --font-head:    'Anton', 'Impact', sans-serif;
  --font-type:    'Special Elite', 'Courier New', cursive;

  --radius:       3px;
  --radius-lg:    4px;
  --radius-pill:  4px;

  --shadow:       4px 4px 0 #000;
  --shadow-lg:    6px 6px 0 #000;
  --shadow-red:   6px 6px 0 var(--red);

  --transition:   0.15s ease;
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green); text-decoration: none; transition: color var(--transition); }
a:hover { color: #1ed760; }
img { display: block; max-width: 100%; }
main { flex: 1; }
p { color: var(--text); }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-hover); }

/* ── Background: red vignette + paper grain ─────────────── */
.mesh-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background-image:
    radial-gradient(ellipse at 50% -10%, rgba(255,58,54,0.05) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 110%, rgba(255,58,54,0.03) 0%, transparent 45%);
}

/* Hide the legacy blobs the markup ships with */
.mesh-bg .blob { display: none; }

/* Photocopy grain over everything */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.7' numOctaves='1' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.05;
}

/* ── Navbar ──────────────────────────────────────────────── */
.fm-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11,11,18,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(255,255,255,0.04);
}

.nav-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  background: linear-gradient(135deg, var(--green), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-brand i { -webkit-text-fill-color: var(--green); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  flex: 1;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-dim);
  border: none;
  background: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active { color: var(--text); background: var(--surface-2); }

.nav-link i { font-size: 0.8rem; }

/* Dropdowns */
.nav-dropdown { position: relative; }

.nav-dropmenu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 200px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.5rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.18s ease;
  z-index: 999;
}

.nav-dropdown:hover .nav-dropmenu,
.nav-dropdown:focus-within .nav-dropmenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropitem {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: var(--text-dim);
  transition: all var(--transition);
  cursor: pointer;
}

.nav-dropitem:hover { color: var(--text); background: var(--surface-3); }
.nav-dropitem.disabled { opacity: 0.45; cursor: default; pointer-events: none; }
.nav-dropitem i { font-size: 0.8rem; width: 14px; text-align: center; }

.drop-divider { height: 1px; background: var(--border); margin: 0.4rem 0; }

.nav-caret {
  font-size: 0.65rem !important;
  margin-left: auto;
  transition: transform var(--transition);
}
.nav-dropdown:hover .nav-caret { transform: rotate(180deg); }

.nav-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
  white-space: nowrap;
}

.nav-username {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  color: var(--text-dim);
  cursor: pointer;
}
.nav-dropmenu-right { left: auto; right: 0; }
.nav-dropbtn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.nav-avatar {
  width: 24px; height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text-dim);
  border-radius: 2px;
  transition: all var(--transition);
}

.badge-soon {
  display: inline-block;
  font-size: 0.65rem;
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  background: var(--surface-3);
  color: var(--text-muted);
  vertical-align: middle;
  margin-left: 4px;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-lg { padding: 0.7rem 1.6rem; font-size: 1rem; }
.btn-sm { padding: 0.35rem 0.9rem; font-size: 0.8rem; }
.btn:not(.btn-lg):not(.btn-sm) { padding: 0.5rem 1.1rem; font-size: 0.875rem; }

.btn-spotify {
  background: var(--green);
  color: #000;
}
.btn-spotify:hover {
  background: #1ed760;
  color: #000;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--green-glow);
}

.btn-ghost {
  background: var(--surface-2);
  color: var(--text-dim);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: var(--surface-3);
  color: var(--text);
  border-color: var(--border-hover);
}

.btn.disabled,
.btn[disabled] {
  opacity: 0.35;
  pointer-events: none;
}

/* ── Layout ───────────────────────────────────────────────── */
.page-container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.py-4 { padding-top: 1rem;  padding-bottom: 1rem; }
.py-5 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-6 { padding-top: 3rem;  padding-bottom: 3rem; }
.py-8 { padding-top: 5rem;  padding-bottom: 5rem; }
.mt-2 { margin-top: .5rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.5rem; }
.mt-6 { margin-top: 3rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.5rem; }
.mb-6 { margin-bottom: 3rem; }
.text-center { text-align: center; }

/* ── Glass Card ───────────────────────────────────────────── */
.glass-card {
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.04) 0%,
    rgba(255,255,255,0.02) 100%
  );
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  backdrop-filter: blur(4px);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.glass-card:hover {
  border-color: var(--border-hover);
}

/* Gradient border on active cards */
.glass-card.glow-border {
  background:
    linear-gradient(var(--surface-2), var(--surface-2)) padding-box,
    linear-gradient(135deg, var(--green), var(--purple)) border-box;
  border: 1px solid transparent;
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-lg { padding: 8rem 1.5rem 6rem; }
.hero-sm { padding: 4rem 1.5rem; }

.hero-content { position: relative; z-index: 1; }

.hero-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-dim);
  border: 1px solid rgba(29,185,84,0.3);
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.85rem;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 520px;
  margin: 0 auto 2rem;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Glowing gradient text */
.glow-text {
  background: linear-gradient(135deg, var(--green) 0%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Stats Strip ──────────────────────────────────────────── */
.stats-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.stats-strip-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.strip-stat { text-align: center; }

.strip-val {
  display: block;
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--green), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.strip-label { font-size: 0.8rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; }

.strip-divider { width: 1px; height: 40px; background: var(--border); }

/* ── Landing page redesign ────────────────────────────────── */
.hero-landing { position: relative; padding: 5rem 1.5rem 2rem; overflow: hidden; }
.landing-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}
.landing-orb-1 {
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(29,185,84,0.15) 0%, transparent 70%);
  top: -80px; left: -80px;
}
.landing-orb-2 {
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(168,85,247,0.15) 0%, transparent 70%);
  top: -80px; right: -80px;
}
/* Inline stats row inside hero */
.hero-inline-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.his-item { text-align: center; }
.his-val {
  display: block;
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--green), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}
.his-label { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.07em; margin-top: 0.2rem; display: block; }
.his-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--border); flex-shrink: 0; }
/* How it works */
.hiw-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.hiw-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.25rem 1.75rem;
  position: relative;
  border-top: 2px solid transparent;
}
.hiw-step + .hiw-step { border-left: 1px solid var(--border); }
.hiw-step-green  { border-top-color: var(--green); }
.hiw-step-purple { border-top-color: var(--purple); }
.hiw-step-blue   { border-top-color: var(--blue); }
.hiw-step-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.hiw-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1.1rem;
}
.hiw-icon.green  { background: var(--green-dim);  color: var(--green);  }
.hiw-icon.purple { background: var(--purple-dim); color: var(--purple); }
.hiw-icon.blue   { background: rgba(59,130,246,0.12); color: var(--blue); }
.hiw-step h4 { font-family: var(--font-head); font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.hiw-step p  { font-size: 0.85rem; color: var(--text-dim); line-height: 1.55; margin: 0; flex: 1; }
/* Feature grid (landing) */
.landing-features-band { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.feature-grid-lg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.feature-card-lg {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  transition: border-color var(--transition), transform var(--transition);
}
.feature-card-lg:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.feature-icon-lg {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}
.feature-icon-lg.green  { background: var(--green-dim);  color: var(--green);  }
.feature-icon-lg.purple { background: var(--purple-dim); color: var(--purple); }
.feature-icon-lg.blue   { background: rgba(59,130,246,0.12); color: var(--blue); }
.feature-icon-lg.yellow { background: rgba(234,179,8,0.12); color: #eab308; }
.feature-card-lg h4 { font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; }
.feature-card-lg p  { font-size: 0.875rem; color: var(--text-dim); line-height: 1.6; margin: 0; }
/* Bottom CTA band */
.landing-cta-band {
  background: linear-gradient(135deg, rgba(29,185,84,0.07) 0%, rgba(168,85,247,0.07) 100%);
  border-top: 1px solid var(--border);
}
.landing-cta-title { font-family: var(--font-head); font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 0.5rem; }
.landing-cta-sub { font-size: 1rem; color: var(--text-dim); margin: 0; }
@media (max-width: 768px) {
  .hero-landing { padding: 4rem 1rem 3rem; }
  .landing-orb { display: none; }
  .hiw-row { grid-template-columns: 1fr; }
  .hiw-step + .hiw-step { border-left: none; border-top: 1px solid var(--border); }
  .feature-grid-lg { grid-template-columns: 1fr; }
  .hero-inline-stats { gap: 1rem; }
  .his-val { font-size: 1.2rem; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .feature-grid-lg { grid-template-columns: repeat(2, 1fr); }
  .hiw-step { min-width: 160px; }
}

/* ── Section headings ─────────────────────────────────────── */
.section-header { margin-bottom: 1rem; }

.section-header h2 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-sub { font-size: 1rem; color: var(--text-dim); margin-top: 0.5rem; }
.section-title {
  font-family: var(--font-head);
  font-size: 1.75rem;
  font-weight: 700;
}

/* ── Card Grids ───────────────────────────────────────────── */
.card-grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

/* ── Action cards (home logged-in) ───────────────────────── */
.action-card {
  display: block;
  background:
    linear-gradient(var(--surface-2), var(--surface-2)) padding-box,
    linear-gradient(135deg, transparent, transparent) border-box;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all 0.22s ease;
  color: var(--text);
}

.action-card:hover {
  color: var(--text);
  background:
    linear-gradient(var(--surface-2), var(--surface-2)) padding-box,
    linear-gradient(135deg, var(--green), var(--purple)) border-box;
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.action-card h3 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0.85rem 0 0.4rem;
}

.action-card p { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 1rem; }

.action-card-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.action-card-icon.green  { background: var(--green-dim);  color: var(--green);  }
.action-card-icon.purple { background: var(--purple-dim); color: var(--purple); }
.action-card-icon.blue   { background: rgba(59,130,246,0.12); color: var(--blue); }

.action-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.action-card:hover .action-link { color: var(--green); }

/* ── Feature cards (landing page) ────────────────────────── */
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: border-color var(--transition);
}

.feature-card:hover { border-color: var(--border-hover); }

.feature-icon {
  width: 42px; height: 42px;
  background: var(--green-dim);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.feature-card h4 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.feature-card p { font-size: 0.875rem; color: var(--text-dim); }

/* ── Page headers ─────────────────────────────────────────── */
.page-title {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.page-sub { font-size: 0.95rem; color: var(--text-dim); margin-top: 0.3rem; }

.page-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.page-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* ── Badges ───────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 5px;
  white-space: nowrap;
}

.badge-lead    { background: rgba(29,185,84,0.12);  color: var(--green);  border: 1px solid rgba(29,185,84,0.3);  }
.badge-rhythm  { background: rgba(245,158,11,0.12); color: var(--yellow); border: 1px solid rgba(245,158,11,0.3); }
.badge-bass    { background: rgba(59,130,246,0.12); color: var(--blue);   border: 1px solid rgba(59,130,246,0.3); }
.badge-platform { background: var(--surface-3); color: var(--text-dim); border: 1px solid var(--border); gap: 5px; }

.badge-pub     { background: rgba(29,185,84,0.15);  color: var(--green);  border: 1px solid rgba(29,185,84,0.3);  }
.badge-nocdlc  { background: var(--surface-3); color: var(--text-muted); border: 1px solid var(--border); }
.badge-pending { background: rgba(245,158,11,0.12); color: var(--yellow); border: 1px solid rgba(245,158,11,0.3); }
.badge-review  { background: rgba(239,68,68,0.12);  color: var(--red);    border: 1px solid rgba(239,68,68,0.3);  }
.badge-ok      { background: var(--surface-3); color: var(--text-muted); border: 1px solid var(--border); }

/* ── Song match cards ─────────────────────────────────────── */
/* ── Matches search bar ───────────────────────────────────── */
.matches-search-bar {
  margin-bottom: 1.75rem;
}

.search-input-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(var(--surface-2), var(--surface-2)) padding-box,
    linear-gradient(135deg, rgba(29,185,84,0.3), rgba(139,92,246,0.2)) border-box;
  border: 1px solid transparent;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.search-input-wrap:focus-within {
  background:
    linear-gradient(var(--surface-2), var(--surface-2)) padding-box,
    linear-gradient(135deg, rgba(29,185,84,0.7), rgba(139,92,246,0.5)) border-box;
  box-shadow: 0 0 24px rgba(29,185,84,0.12);
}

.search-icon {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--green);
  font-size: 1rem;
  pointer-events: none;
}

.search-input {
  width: 100%;
  background: transparent;
  border: none;
  border-radius: var(--radius-lg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.85rem 1.25rem 0.85rem 3rem;
  outline: none;
}

.search-input::placeholder { color: var(--text-muted); }

.search-clear {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: color var(--transition);
}

.search-clear:hover { color: var(--text); }

/* ── Search dropdown ──────────────────────────────────────── */
.search-dropdown {
  display: none;
  position: fixed;
  top: 0; left: 0;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  z-index: 9999;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  text-align: left;
}
.search-dropdown.open { display: block; }
.sd-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  text-decoration: none;
  color: inherit;
  transition: background var(--transition);
}
.sd-item:hover { background: var(--surface-2); color: inherit; }
.sd-item + .sd-item { border-top: 1px solid var(--border); }
.sd-icon {
  width: 30px; height: 30px;
  background: var(--surface);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  color: var(--green);
  flex-shrink: 0;
}
.sd-info { flex: 1; min-width: 0; }
.sd-name   { font-size: 0.855rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sd-artist { font-size: 0.75rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sd-arrow  { font-size: 0.6rem; color: var(--text-muted); opacity: 0; transition: opacity var(--transition); flex-shrink: 0; }
.sd-item:hover .sd-arrow { opacity: 1; }
.sd-empty  { padding: 0.85rem 1rem; font-size: 0.85rem; color: var(--text-muted); text-align: center; }
.sd-img    { width: 100%; height: 100%; object-fit: cover; border-radius: 5px; display: block; }

/* ── Custom audio preview player ──────────────────────────── */
.sp {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface-3);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.5rem;
}

.sp-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--green);
  color: #000;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.58rem;
  flex-shrink: 0;
  padding: 0;
  transition: background var(--transition), transform var(--transition);
}
.sp-btn:hover  { background: #1ed760; transform: scale(1.1); }
.sp-btn:active { transform: scale(0.95); }

.sp-bar {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  cursor: pointer;
  position: relative;
}
.sp-bar:hover { height: 4px; }

.sp-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green), #1ed760);
  border-radius: 3px;
  width: 0%;
  pointer-events: none;
  transition: width 0.08s linear;
}

.sp-time {
  font-size: 0.67rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  min-width: 22px;
  text-align: right;
  flex-shrink: 0;
}

/* ── Song cards ───────────────────────────────────────────── */
.songs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 1rem;
}

.song-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.22s ease;
  display: flex;
  flex-direction: column;
}

.song-card:hover {
  border-color: rgba(29,185,84,0.4);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(29,185,84,0.15);
}

.song-art {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--surface-2);
  flex-shrink: 0;
}

.song-art img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.song-card:hover .song-art img { transform: scale(1.04); }

.song-art-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.5rem;
}

.song-dl-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #fff;
  opacity: 0;
  transition: opacity var(--transition);
}
.song-card:hover .song-dl-overlay { opacity: 1; }

.song-body { padding: 0.75rem; flex: 1; display: flex; flex-direction: column; gap: 0.2rem; padding-bottom: 0.6rem; }

.song-name {
  font-weight: 600;
  font-size: 0.875rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.song-artist {
  font-size: 0.78rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.song-author { font-size: 0.72rem; color: var(--text-muted); margin-top: 0.1rem; }

.song-badges {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 0.4rem;
}
.song-badges .badge {
  width: 100%;
  justify-content: center;
}

.song-preview {
  width: 100%;
  height: 26px;
  margin-top: 0.5rem;
  border-radius: 4px;
  accent-color: var(--green);
}

/* push preview + practice to bottom of card as a unit */
.card-bottom { margin-top: auto; display: flex; flex-direction: column; gap: 0.5rem; }
.sp { padding-top: 0.5rem; }

/* ── Version list (grouped duplicates) ────────────────────── */
.ver-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 0.5rem;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--surface-3);
  border: none;
  border-radius: var(--radius);
  padding: 0.38rem 0.65rem;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.ver-toggle:hover { background: var(--surface-2); color: var(--text-dim); }
.ver-toggle.open  { color: var(--green); background: var(--green-dim); }
.ver-toggle i { font-size: 0.62rem; transition: transform var(--transition); }
.ver-toggle.open i { transform: rotate(180deg); }

.ver-list {
  display: none;
  flex-direction: column;
  margin-top: 0.3rem;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.ver-list.open { display: flex; }

.ver-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.ver-row:last-child { border-bottom: none; }
.ver-author { flex: 1; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ver-dl {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--green);
  font-size: 0.65rem;
  flex-shrink: 0;
  transition: background var(--transition);
}
.ver-dl:hover { background: var(--green); color: #000; }

/* ── Pagination ───────────────────────────────────────────── */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
  margin-top: 2.5rem;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 0.5rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-dim);
  background: var(--surface-2);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.page-btn:hover { color: var(--text); background: var(--surface-3); border-color: var(--border-hover); }
.page-btn.active { background: var(--green); color: #000; border-color: var(--green); font-weight: 700; }
.page-btn.disabled { opacity: 0.3; pointer-events: none; }

/* ── Empty state ──────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 5rem 1rem;
}
.empty-state i { font-size: 3.5rem; color: var(--text-muted); margin-bottom: 1.25rem; display: block; }
.empty-state h3 { font-family: var(--font-head); font-size: 1.3rem; margin-bottom: 0.5rem; }
.empty-state p { color: var(--text-dim); margin-bottom: 1.5rem; }

/* ── Tracks page ──────────────────────────────────────────── */
.tracks-search-wrap {
  position: relative;
  flex-shrink: 0;
  width: 280px;
}

.input-search {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.875rem;
  padding: 0.5rem 0.875rem 0.5rem 2.2rem;
  outline: none;
  transition: border-color var(--transition);
}
.input-search::placeholder { color: var(--text-muted); }
.input-search:focus { border-color: var(--green); }

.input-search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.8rem;
  pointer-events: none;
}

.tracks-legend h6 {
  font-family: var(--font-head);
  font-weight: 600;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.legend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.4rem 1rem;
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* AG Grid customisation */
.ag-theme-quartz-dark {
  --ag-background-color: transparent;
  --ag-odd-row-background-color: rgba(255,255,255,0.02);
  --ag-header-background-color: var(--surface-2);
  --ag-border-color: var(--border);
  --ag-row-hover-color: var(--surface-2);
  --ag-font-family: var(--font-body);
  --ag-font-size: 13px;
  --ag-cell-horizontal-padding: 12px;
}

.cell-link { color: var(--green); font-size: 0.8rem; }
.cell-link:hover { color: #1ed760; }
.text-dim { color: var(--text-muted); }

/* ── Link page ────────────────────────────────────────────── */
.link-card { text-align: center; padding: 2.5rem; }

.link-icon {
  font-size: 2.5rem;
  color: var(--green);
  margin-bottom: 1rem;
  display: block;
}

.link-icon.spinning { animation: spin 2s linear infinite; }
.link-icon.done     { color: var(--green); }
.link-icon.error    { color: var(--red);   }

@keyframes spin { to { transform: rotate(360deg); } }

.link-progress-bar {
  width: 100%;
  height: 6px;
  background: var(--surface-3);
  border-radius: 3px;
  overflow: hidden;
}

.link-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--purple));
  border-radius: 3px;
  transition: width 0.4s ease;
}

.link-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.link-stat {
  background: var(--surface-3);
  border-radius: var(--radius);
  padding: 0.75rem;
}

.link-stat-val {
  display: block;
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--green);
}

.link-stat-label { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.1rem; display: block; }

/* ── Link activity log ────────────────────────────────────── */
.link-log-legend {
  display: flex;
  gap: 1.25rem;
  font-size: 0.73rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}
.link-log-legend i { margin-right: 0.3rem; font-size: 0.65rem; }
.link-log {
  max-height: 220px;
  overflow-y: auto;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.78rem;
  scrollbar-width: thin;
}

.link-log-row {
  display: grid;
  grid-template-columns: 16px 1fr auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.75rem;
  border-bottom: 1px solid var(--border);
}
.link-log-row:last-child { border-bottom: none; }

.link-log-matched i { color: var(--green); }
.link-log-linked  i { color: var(--yellow); }

.link-log-name   { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-log-artist { color: var(--text-muted); font-size: 0.72rem; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; }

/* Done-state results list (newly matched / newly linked songs) */
.link-results-section {
  margin-top: 1.75rem;
  text-align: left;
}
.link-results-title {
  font-family: var(--font-head);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper-dim);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.link-results-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 280px;
  overflow-y: auto;
  border: 2px solid var(--paper);
  background: var(--surface);
  box-shadow: 4px 4px 0 var(--red);
}
.link-result-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.85rem;
  border-bottom: 1px dashed var(--border);
}
.link-result-row:last-child { border-bottom: 0; }
.link-result-link {
  flex: 1;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--paper);
  min-width: 0;
}
.link-result-link:hover .link-result-name { color: var(--red); }
.link-result-name {
  font-weight: 700;
  font-size: 0.86rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.link-result-artist {
  font-family: var(--font-type);
  font-size: 0.75rem;
  color: var(--paper-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.link-result-arrow {
  color: var(--paper-dim);
  font-size: 0.7rem;
  flex-shrink: 0;
}
.link-result-row:hover .link-result-arrow { color: var(--red); }
.link-results-empty {
  margin-top: 1.5rem;
  padding: 1rem;
  border: 2px dashed var(--border);
  text-align: center;
}

.info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.info-list li {
  font-size: 0.875rem;
  color: var(--text-dim);
  padding-left: 1.25rem;
  position: relative;
}
.info-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--green);
}

/* ── Stats page ───────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.stat-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-align: center;
  transition: border-color var(--transition);
}

.stat-tile:hover { border-color: var(--border-hover); }

.stat-tile-val {
  font-family: var(--font-head);
  font-size: 1.9rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--green), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-tile.accent-green .stat-tile-val { background: var(--green); -webkit-background-clip: text; background-clip: text; }
.stat-tile.accent-yellow .stat-tile-val { background: var(--yellow); -webkit-background-clip: text; background-clip: text; }

.stat-tile-label { font-size: 0.78rem; color: var(--text-dim); margin-top: 0.35rem; text-transform: uppercase; letter-spacing: 0.06em; }

.newest-member {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.newest-member i { font-size: 1.2rem; flex-shrink: 0; }
.newest-member strong { display: block; font-size: 0.95rem; }
.newest-member .text-dim { display: block; font-size: 0.85rem; }
.newest-member .small { margin-left: auto; }

.card-heading {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rank-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}
.rank-row:last-child { border-bottom: none; }
.rank-num { color: var(--text-muted); font-size: 0.75rem; width: 20px; flex-shrink: 0; }
.rank-name { flex: 1; }
.rank-count { font-weight: 600; color: var(--green); }
.rank-count.dim { color: var(--text-muted); }

.tuning-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; }

/* rank rows with bar charts */
.rank-bar-row { gap: 0.5rem; }
.rank-bar-wrap { flex: 1; height: 6px; background: var(--surface-3); border-radius: 3px; overflow: hidden; }
.rank-bar-fill { height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--green), rgba(29,185,84,0.4)); }
.rank-bar-fill.purple { background: linear-gradient(90deg, var(--purple), rgba(139,92,246,0.4)); }

/* stat progress bars */
.arrange-stat { display: flex; flex-direction: column; gap: 0.3rem; }
.arrange-label { display: flex; justify-content: space-between; align-items: center; font-size: 0.82rem; }
.stat-bar-track { height: 6px; background: var(--surface-3); border-radius: 3px; overflow: hidden; }
.stat-bar-fill { height: 100%; border-radius: 3px; transition: width 0.6s ease; }
.stat-bar-fill.green  { background: linear-gradient(90deg, var(--green), rgba(29,185,84,0.4)); }
.stat-bar-fill.yellow { background: linear-gradient(90deg, var(--yellow), rgba(234,179,8,0.4)); }
.stat-bar-fill.blue   { background: linear-gradient(90deg, var(--blue), rgba(59,130,246,0.4)); }
.stat-bar-fill.purple { background: linear-gradient(90deg, var(--purple), rgba(139,92,246,0.4)); }

/* ── Profile page ─────────────────────────────────────────── */
.profile-card {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  flex-wrap: wrap;
}

/* Legacy circular .profile-card-avatar + gradient-ring removed.
   Square punk version lives in the punk override block below. */

.profile-card-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.profile-card-name   { font-family: var(--font-head); font-size: 1.75rem; font-weight: 700; margin: 0; line-height: 1.1; }
.profile-card-handle { color: var(--green); font-size: 0.88rem; margin: 0; }
.profile-card-joined { color: var(--text-muted); font-size: 0.82rem; margin: 0; }
.profile-card-joined i, .profile-card-handle i { margin-right: 0.3rem; }
.profile-name-row { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.15rem; }
.btn-icon-ghost {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.2rem 0.35rem;
  border-radius: var(--radius);
  font-size: 0.75rem;
  transition: color var(--transition), background var(--transition);
  line-height: 1;
}
.btn-icon-ghost:hover { color: var(--text); background: var(--surface-2); }
.edit-name-form { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.15rem; }
.edit-name-input { width: 220px; padding: 0.35rem 0.65rem; font-size: 1rem; font-family: var(--font-head); font-weight: 700; }

.profile-card-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-shrink: 0;
}

.profile-stat { text-align: center; }
.profile-stat-val   { font-family: var(--font-head); font-size: 1.6rem; font-weight: 800; color: var(--green); line-height: 1; }
.profile-stat-label { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 0.2rem; }
.profile-stat-divider { width: 1px; height: 40px; background: var(--border); }

/* Profile body two-column */
.profile-body {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 1.5rem;
  align-items: start;
}

/* Action list */
.profile-action-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.profile-action-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.18s, box-shadow 0.18s;
  color: var(--text);
}

.profile-action-item:hover {
  border-color: rgba(29,185,84,0.35);
  box-shadow: 0 2px 12px rgba(29,185,84,0.08);
  color: var(--text);
}

.profile-action-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.profile-action-icon.green  { background: var(--green-dim);  color: var(--green);  }
.profile-action-icon.purple { background: var(--purple-dim); color: var(--purple); }
.profile-action-icon.blue   { background: rgba(59,130,246,0.12); color: var(--blue); }

.profile-action-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.profile-action-text strong { font-size: 0.9rem; font-weight: 600; }
.profile-action-text span   { font-size: 0.78rem; color: var(--text-muted); }
.profile-action-arrow       { color: var(--text-muted); font-size: 0.75rem; flex-shrink: 0; }

/* Recent matches */
.profile-recent-card { padding: 0; overflow: hidden; }

.profile-match-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
}
.profile-match-row.bordered { border-bottom: 1px solid var(--border); }
.profile-match-num  { font-size: 0.72rem; color: var(--text-muted); width: 18px; flex-shrink: 0; text-align: right; }
.profile-match-info { flex: 1; min-width: 0; }
.profile-match-name   { font-weight: 600; font-size: 0.875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-match-artist { font-size: 0.76rem; color: var(--text-dim); }

.profile-match-dl {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--green);
  font-size: 0.8rem;
  flex-shrink: 0;
  transition: background var(--transition);
}
.profile-match-dl:hover { background: var(--green); color: #000; }

.text-right { text-align: right; }

@media (max-width: 860px) {
  .profile-body { grid-template-columns: 1fr; }
  .profile-card { gap: 1.25rem; padding: 1.25rem; }
  .profile-card-stats { width: 100%; justify-content: space-around; }
}

/* ── My Stats page ────────────────────────────────────────── */
.my-stats-hero {
  text-align: center;
  padding: 2.5rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.my-stats-big {
  font-family: var(--font-head);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--green), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.my-stats-label { font-size: 1rem; color: var(--text-dim); margin-top: 0.5rem; }
.my-stats-sub   { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.25rem; }

/* website stats newest member card */
.newest-member-body { display: flex; align-items: center; gap: 1rem; margin-top: 0.75rem; }
.newest-member-id { font-family: var(--font-head); font-size: 2rem; font-weight: 900; color: var(--green); }
.newest-member-name { font-weight: 600; }

/* btn-xs */
.btn-xs { padding: 0.2rem 0.6rem; font-size: 0.75rem; }

/* ── Info/boring pages ────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 1.25rem; }
.faq-item dt { font-weight: 600; color: var(--text); margin-bottom: 0.3rem; }
.faq-item dd { color: var(--text-dim); font-size: 0.9rem; padding-left: 1rem; border-left: 2px solid var(--green-dim); }

.credits-list { display: flex; flex-direction: column; gap: 0.75rem; }
.credit-row { display: flex; justify-content: space-between; align-items: center; padding: 0.6rem 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.credit-row:last-child { border-bottom: none; }
.credit-row span { color: var(--text-dim); font-size: 0.85rem; }

.upcoming-list { display: flex; flex-direction: column; gap: 1rem; }
.upcoming-item { padding: 1.25rem 1.5rem; }
.upcoming-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; }
.upcoming-header h5 { font-family: var(--font-head); font-weight: 700; }
.upcoming-pct { font-size: 0.8rem; font-weight: 700; padding: 2px 8px; border-radius: var(--radius-pill); }
.pct-90, .pct-80 { background: var(--green-dim); color: var(--green); }
.pct-5, .pct-0   { background: var(--surface-3); color: var(--text-muted); }
.upcoming-bar { height: 4px; background: var(--surface-3); border-radius: 2px; margin-top: 0.75rem; overflow: hidden; }
.upcoming-bar div { height: 100%; background: linear-gradient(90deg, var(--green), var(--purple)); border-radius: 2px; }

.feature-checklist { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.feature-checklist li { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.9rem; }
.feature-checklist li i { margin-top: 2px; flex-shrink: 0; }
.feature-checklist strong { color: var(--text); }

/* ── Error page ───────────────────────────────────────────── */
.error-code {
  font-family: var(--font-head);
  font-size: clamp(5rem, 15vw, 10rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
}

/* ── Footer ───────────────────────────────────────────────── */
.fm-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  margin-top: auto;
  padding: 3rem 1.5rem 1.5rem;
}

.footer-inner {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  gap: 4rem;
  flex-wrap: wrap;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.footer-brand { flex: 1; min-width: 180px; }

.footer-logo {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.footer-logo:hover { color: var(--green); }

.footer-tagline { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.5rem; }

.footer-links {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 100px;
}

.footer-col h6 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.footer-col a {
  font-size: 0.875rem;
  color: var(--text-dim);
}
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.footer-sep { color: var(--border-hover); }
.footer-build { opacity: 0.5; }
.footer-build code { font-family: monospace; font-size: 0.75rem; }

/* ── Utility colours ──────────────────────────────────────── */
.text-green  { color: var(--green)  !important; }
.text-yellow { color: var(--yellow) !important; }
.text-blue   { color: var(--blue)   !important; }
.text-dim    { color: var(--text-dim); }
.text-muted  { color: var(--text-muted); }
.d-flex      { display: flex; }
.gap-3       { gap: 0.75rem; }
.justify-center { justify-content: center; }
.small       { font-size: 0.8rem; }
.mt-3        { margin-top: 0.75rem; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }

  .nav-menu {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(11,11,18,0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    gap: 0.25rem;
  }

  .nav-menu.open { display: flex; }

  .nav-links { flex-direction: column; align-items: stretch; width: 100%; }

  .nav-dropdown { width: 100%; }

  .nav-dropmenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: var(--surface-3);
    margin-top: 0.25rem;
    display: none;
  }

  .nav-dropdown.open .nav-dropmenu { display: block; }

  .nav-user {
    margin-left: 0;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
  }

  .hero-lg { padding: 4rem 1rem 3rem; }

  .stats-strip-inner { gap: 1.5rem; }
  .strip-divider { display: none; }

  .page-title-row { flex-direction: column; }
  .tracks-search-wrap { width: 100%; }

  .songs-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }

  .footer-inner { gap: 2rem; }
  .footer-links { gap: 2rem; }
}

@media (max-width: 480px) {
  .songs-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .link-stats-row { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
  .card-grid.grid-3 { grid-template-columns: 1fr; }
}

/* ── Matches filter bar ──────────────────────────────────── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.6rem 1.5rem;
  margin-bottom: 1.25rem;
}
.filter-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.filter-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.filter-pills { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.filter-pill {
  font-size: 0.71rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  transition: all var(--transition);
  line-height: 1.5;
}
.filter-pill:hover  { border-color: var(--green); color: var(--green); }
.filter-pill.active { background: var(--green-dim); border-color: var(--green); color: var(--green); }
.filter-clear { font-size: 0.72rem; color: var(--text-muted); text-decoration: none; align-self: center; transition: color var(--transition); }
.filter-clear:hover { color: var(--red); }

/* ── Clickable artist / username links ───────────────────── */
.artist-link { color: inherit; text-decoration: none; }
.artist-link:hover { color: var(--green); }
.nav-username { text-decoration: none; color: inherit; }
.nav-username:hover { color: var(--green); }
.cell-artist-link { color: inherit; text-decoration: none; }
.cell-artist-link:hover { color: var(--green); }

/* ── Song analysis badges (matches page) ────────────────── */
.song-analysis { display: flex; gap: 0.3rem; flex-wrap: wrap; margin-top: 0.3rem; }
.song-analysis span { font-size: 0.67rem; padding: 0.15rem 0.45rem; background: var(--surface-3); border-radius: var(--radius-pill); border: 1px solid var(--border); color: var(--text-muted); }

/* ── Linked song/artist names on match cards ─────────────── */
.song-name a, .song-artist a { color: inherit; text-decoration: none; display: block; }
.song-name a:hover { color: var(--green); }
.song-artist a:hover { color: var(--text-dim); text-decoration: underline; }

/* ── Artist profile hero ─────────────────────────────────── */
.artist-hero {
  position: relative;
  background: linear-gradient(135deg, rgba(29,185,84,0.1) 0%, rgba(139,92,246,0.07) 55%, transparent 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem 2rem;
  overflow: hidden;
}
.artist-hero-glow {
  position: absolute;
  top: -80px; right: -80px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(29,185,84,0.15) 0%, transparent 65%);
  pointer-events: none;
}
.artist-hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green);
  margin-bottom: 0.5rem;
}
.artist-hero-name {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  background: linear-gradient(100deg, var(--text) 40%, var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.artist-hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.artist-hero-stat { text-align: center; }
.artist-hero-stat-val {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-head);
  color: var(--text);
  line-height: 1;
}
.artist-hero-stat-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.2rem;
}
.artist-hero-divider { width: 1px; height: 2rem; background: var(--border); }
.artist-hero-tunings { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.artist-tuning-chip {
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  background: rgba(29,185,84,0.1);
  border: 1px solid rgba(29,185,84,0.25);
  border-radius: var(--radius-pill);
  color: var(--green);
}

/* ── Artist tracklist ─────────────────────────────────────── */
.tracklist { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.track-row {
  display: grid;
  grid-template-columns: 2.5rem 1fr auto auto;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.track-row:last-child { border-bottom: none; }
.track-row:hover { background: var(--surface-2); }
.track-num { color: var(--text-muted); font-size: 0.82rem; text-align: right; font-variant-numeric: tabular-nums; }
.track-title { min-width: 0; }
.track-title > span { font-weight: 500; }
.track-title a { color: var(--text); text-decoration: none; font-weight: 500; }
.track-title a:hover { color: var(--green); }
.track-meta { display: flex; gap: 0.6rem; align-items: center; margin-top: 0.2rem; flex-wrap: wrap; }
.track-author { font-size: 0.73rem; color: var(--text-muted); }
.track-more { font-size: 0.68rem; padding: 0.1rem 0.45rem; background: var(--surface-3); border: 1px solid var(--border); border-radius: var(--radius-pill); color: var(--text-muted); }
.track-badges { display: flex; gap: 0.25rem; flex-wrap: wrap; justify-content: flex-end; }
.track-actions { display: flex; gap: 0.35rem; align-items: center; }

@media (max-width: 640px) {
  .track-row { grid-template-columns: 2rem 1fr auto; }
  .track-badges { display: none; }
}

/* ── Song profile page ───────────────────────────────────── */
.song-profile-hero { display: flex; gap: 1.5rem; align-items: flex-start; }
.sph-art { width: 130px; height: 130px; border-radius: var(--radius); flex-shrink: 0; background: var(--surface-3); display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 2rem; overflow: hidden; }
.sph-art img { width: 100%; height: 100%; object-fit: cover; }
.sph-meta { flex: 1; min-width: 0; }
.sph-title { font-size: 1.5rem; font-family: var(--font-head); margin-bottom: 0.2rem; }
.sph-artist { color: var(--green); text-decoration: none; font-weight: 500; }
.sph-artist:hover { text-decoration: underline; }
.sph-album { font-size: 0.85rem; margin-top: 0.15rem; }
.sph-pop { display: flex; align-items: center; gap: 0.5rem; }
.sph-pop-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.sph-pop-bar { flex: 1; max-width: 140px; height: 4px; background: var(--surface-3); border-radius: 4px; overflow: hidden; }
.sph-pop-bar div { height: 100%; background: var(--green); border-radius: 4px; }
.sph-pop-val { font-size: 0.8rem; color: var(--text-dim); }

.analysis-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 0.75rem; }
.analysis-tile { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.75rem 1rem; text-align: center; }
.analysis-tile-val { font-size: 1.2rem; font-weight: 700; font-family: var(--font-head); color: var(--green); }
.analysis-tile-label { font-size: 0.67rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 0.15rem; }

.cdlc-table-header { padding: 0.85rem 1rem; border-bottom: 1px solid var(--border); }
.cdlc-table-header h6 { margin: 0; }
.cdlc-table { width: 100%; border-collapse: collapse; }
.cdlc-table th { text-align: left; font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; padding: 0.5rem 1rem; border-bottom: 1px solid var(--border); }
.cdlc-table td { padding: 0.65rem 1rem; border-bottom: 1px solid var(--border); font-size: 0.85rem; vertical-align: middle; }
.cdlc-table tbody tr:last-child td { border-bottom: none; }
.cdlc-table tbody tr:hover { background: var(--surface-2); }

/* ── Link / Missing source picker ───────────────────────── */
.link-source { text-align: left; }
.link-source-label { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-muted); display: block; margin-bottom: 0.4rem; }
.link-source-row { display: flex; gap: 1rem; }
.link-radio { display: flex; align-items: center; gap: 0.4rem; font-size: 0.875rem; cursor: pointer; }
.link-radio input { accent-color: var(--green); cursor: pointer; }
.link-select {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-family: var(--font-body);
  outline: none;
  cursor: pointer;
  transition: border-color var(--transition);
}
.link-select:focus { border-color: var(--green); }

/* ── Recently Added feed ─────────────────────────────────── */
.recent-list { display: flex; flex-direction: column; gap: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.recent-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.recent-row:last-child { border-bottom: none; }
.recent-row:hover { background: var(--surface-2); }
.recent-art {
  width: 56px; height: 56px;
  border-radius: 0;
  border: 2px solid var(--paper);
  background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--red); font-size: 1.1rem; flex-shrink: 0;
  overflow: hidden;
}
.recent-art img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.recent-info { flex: 1; min-width: 0; }
.recent-name { font-weight: 600; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recent-name a { color: var(--text); text-decoration: none; }
.recent-name a:hover { color: var(--green); }
.recent-artist { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.1rem; }
.recent-badges { display: flex; gap: 0.25rem; flex-wrap: wrap; margin-top: 0.3rem; }
.recent-meta { text-align: right; flex-shrink: 0; }
.recent-author { display: block; font-size: 0.78rem; color: var(--text-muted); }
.recent-ago    { display: block; font-size: 0.7rem; color: var(--text-muted); margin-top: 0.15rem; }

@media (max-width: 600px) {
  .recent-meta { display: none; }
}

/* ── Missing songs results ───────────────────────────────── */
.missing-list { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; max-height: 360px; overflow-y: auto; }
.missing-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.missing-row:last-child { border-bottom: none; }
.missing-row:hover { background: var(--surface-2); }
.missing-info { flex: 1; min-width: 0; }
.missing-name { font-weight: 500; font-size: 0.875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.missing-artist { font-size: 0.75rem; color: var(--text-muted); }

/* ── Admin panel ─────────────────────────────────────────────── */
.admin-header { display: flex; flex-direction: column; gap: 1rem; }

.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.35rem;
}
.admin-nav-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: calc(var(--radius) - 2px);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-dim);
  text-decoration: none;
  transition: all var(--transition);
}
.admin-nav-item:hover  { background: var(--surface-2); color: var(--text); }
.admin-nav-item.active { background: var(--surface-3); color: var(--text); }
.admin-nav-add { color: var(--green) !important; margin-left: auto; }
.admin-nav-add:hover { background: var(--green-dim) !important; }
.admin-nav-alert { color: var(--yellow) !important; }
.admin-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: var(--yellow);
  color: #000;
  border-radius: var(--radius-pill);
  font-size: 0.65rem;
  font-weight: 700;
}

/* Stats strip */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
}
.admin-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  text-align: center;
}
.admin-stat-card.admin-stat-alert { border-color: rgba(245,158,11,0.35); }
.admin-stat-val   { font-family: var(--font-head); font-size: 1.75rem; font-weight: 800; color: var(--green); line-height: 1; }
.admin-stat-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 0.3rem; }
.admin-stat-alert .admin-stat-val { color: var(--yellow); }

/* Dashboard body */
.admin-body { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: start; }
.admin-section-title { font-family: var(--font-head); font-weight: 700; font-size: 0.9rem; }

.admin-action-list { display: flex; flex-direction: column; gap: 0.15rem; }
.admin-action {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius);
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.875rem;
  transition: all var(--transition);
}
.admin-action:hover { background: var(--surface-2); color: var(--text); }

.admin-mini-table { display: flex; flex-direction: column; gap: 0; }
.admin-mini-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.5rem 0; border-bottom: 1px solid var(--border); }
.admin-mini-row:last-child { border-bottom: none; }
.admin-mini-info { min-width: 0; }
.admin-mini-name { font-size: 0.85rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-mini-sub  { font-size: 0.72rem; color: var(--text-muted); }

/* Queue cards */
.queue-list { display: flex; flex-direction: column; gap: 1rem; }
.queue-card { padding: 1.25rem 1.5rem; }
.queue-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 0.75rem; }
.queue-song-name { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; }
.queue-song-artist { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.15rem; }
.queue-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; font-size: 0.8rem; color: var(--text-dim); margin-bottom: 0.75rem; }
.queue-tunings { display: flex; gap: 0.3rem; margin-bottom: 0.75rem; flex-wrap: wrap; }
.queue-url { font-size: 0.78rem; margin-bottom: 0.75rem; }
.queue-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.admin-id-badge { font-size: 0.7rem; color: var(--text-muted); background: var(--surface-3); padding: 0.2rem 0.5rem; border-radius: var(--radius-pill); flex-shrink: 0; }

/* Songs table */
.admin-search-bar { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.admin-filter-tabs { display: flex; gap: 0.2rem; }
.admin-filter-tab {
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  border-radius: var(--radius-pill);
  color: var(--text-dim);
  text-decoration: none;
  border: 1px solid transparent;
  transition: all var(--transition);
}
.admin-filter-tab:hover  { border-color: var(--border); color: var(--text); }
.admin-filter-tab.active { background: var(--surface-2); border-color: var(--border); color: var(--text); }

.admin-table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th {
  text-align: left;
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.65rem 1rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.admin-table td { padding: 0.6rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover { background: var(--surface-2); }
.admin-table tbody tr.admin-row-review { background: rgba(245,158,11,0.04); }
.admin-song-name { font-weight: 500; font-size: 0.875rem; }
.admin-no-id { font-size: 0.7rem; color: var(--text-muted); margin-left: 0.3rem; }

.admin-status {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill);
}
.admin-status.published   { background: var(--green-dim);  color: var(--green); }
.admin-status.unpublished { background: var(--surface-3);  color: var(--text-muted); }
.admin-status.review      { background: rgba(245,158,11,0.15); color: var(--yellow); }

/* Song form */
.admin-form { padding: 1.75rem 2rem; display: flex; flex-direction: column; gap: 1.75rem; }
.form-section { display: flex; flex-direction: column; gap: 1rem; }
.form-section-title {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.form-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.35rem; }
.form-group label { font-size: 0.8rem; font-weight: 500; color: var(--text-dim); }
.form-group label .req { color: var(--red); }
.form-input {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color var(--transition);
  width: 100%;
}
.form-input:focus { border-color: var(--green); }
.form-checks { display: flex; flex-direction: column; gap: 0.6rem; }
.form-check { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; cursor: pointer; }
.form-check input { accent-color: var(--green); width: 15px; height: 15px; cursor: pointer; }
.form-actions { display: flex; gap: 0.75rem; align-items: center; padding-top: 0.5rem; flex-wrap: wrap; }

.admin-errors {
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.25);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.85rem;
  color: var(--red);
}

@media (max-width: 860px) {
  .admin-body { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .admin-filter-tabs { display: none; }
  .admin-form { padding: 1.25rem; }
}

/* ── Difficulty badges ── */
.diff-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15em 0.55em;
  border-radius: 999px;
  letter-spacing: 0.03em;
}
.diff-beginner     { background: rgba(34,197,94,0.15);  color: #22c55e; }
.diff-intermediate { background: rgba(234,179,8,0.15);  color: #eab308; }
.diff-advanced     { background: rgba(239,68,68,0.15);  color: #ef4444; }

/* ── Share toast ── */
.share-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(2rem);
  background: var(--surface-3);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  font-size: 0.875rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 9999;
}
.share-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── You might also like (related songs) ── */
.related-list { display: flex; flex-direction: column; gap: 0.4rem; }
.related-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  font-size: 0.875rem;
  transition: background var(--transition);
}
.related-item:hover { background: var(--surface-2); }
.related-item i:first-child { color: var(--text-muted); font-size: 0.75rem; flex-shrink: 0; }
.related-item span { flex: 1; }
.related-arrow { color: var(--text-muted); font-size: 0.7rem; opacity: 0; transition: opacity var(--transition); }
.related-item:hover .related-arrow { opacity: 1; }

/* ── Hero search bar ── */
.hero-search {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 10;
}

/* ── Leaderboard ── */
.lb-list { display: flex; flex-direction: column; gap: 0.5rem; }
.lb-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition);
}
.lb-row:hover { border-color: var(--green); }
.lb-top { background: var(--surface-2); border-color: rgba(29,185,84,0.2); }
.lb-rank {
  min-width: 2rem;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
}
.lb-rank-top { font-size: 1.35rem; }
.lb-info { flex: 1; }
.lb-name { font-weight: 600; font-size: 0.95rem; }
.lb-since { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.1rem; }
.lb-count { text-align: right; }
.lb-count-val { font-size: 1.2rem; font-weight: 800; color: var(--green); line-height: 1; }
.lb-count-label { font-size: 0.7rem; color: var(--text-muted); margin-top: 0.1rem; }

/* ── Practice tracker ── */
.practice-bar {
  display: flex;
  gap: 0.3rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border);
}
.practice-btn {
  flex: 1;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: var(--radius);
  padding: 0.3rem 0;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all var(--transition);
}
.practice-btn:hover { border-color: var(--green); color: var(--text); }
.practice-btn.active.want        { background: rgba(59,130,246,0.15); border-color: #3b82f6; color: #3b82f6; }
.practice-btn.active.practicing  { background: rgba(234,179,8,0.15);  border-color: #eab308; color: #eab308; }
.practice-btn.active.learned     { background: rgba(29,185,84,0.15);  border-color: var(--green); color: var(--green); }

/* ── New for you (homepage) ── */
.new-for-you { padding: 1.25rem 1.5rem; }
.new-for-you-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; }
.new-for-you-title { font-size: 0.95rem; font-weight: 700; margin: 0; }
.new-for-you-list { display: flex; flex-direction: column; gap: 0.25rem; }
.new-for-you-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.45rem 0.6rem;
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  transition: background var(--transition);
}
.new-for-you-item:hover { background: var(--surface-2); }
.new-for-you-icon { width: 1.6rem; height: 1.6rem; background: var(--surface-2); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 0.65rem; color: var(--text-muted); flex-shrink: 0; }
.new-for-you-name { font-size: 0.875rem; font-weight: 500; }
.new-for-you-artist { font-size: 0.75rem; }
.new-for-you-info { flex: 1; min-width: 0; }
.new-for-you-arrow { font-size: 0.65rem; color: var(--text-muted); opacity: 0; transition: opacity var(--transition); }
.new-for-you-item:hover .new-for-you-arrow { opacity: 1; }

/* ── Custom tooltip ──────────────────────────────────────────── */
.fm-tip {
  position: fixed;
  z-index: 10000;
  background: var(--surface-3);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.1s ease, transform 0.1s ease;
  max-width: 220px;
  white-space: normal;
  text-align: center;
}
.fm-tip.visible { opacity: 1; transform: translateY(0); }

/* ── Dashboard (authenticated homepage) ── */
.dash-header { background: linear-gradient(180deg, rgba(29,185,84,0.07) 0%, transparent 100%); border-bottom: 1px solid var(--border); padding: 2rem 0 1.75rem; }
.dash-welcome-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.dash-eyebrow { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); display: block; margin-bottom: 0.25rem; }
.dash-name { font-family: var(--font-head); font-size: 2rem; font-weight: 800; margin: 0; line-height: 1.1; }
.dash-guitar { font-size: 1.4rem; color: var(--green); opacity: 0.7; }
.dash-pill-row { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.dash-pill { display: flex; flex-direction: column; align-items: center; background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 0.5rem 1.1rem; min-width: 5rem; }
.dash-pill-val { font-family: var(--font-head); font-size: 1.25rem; font-weight: 800; line-height: 1; color: var(--green); }
.dash-pill-label { font-size: 0.7rem; color: var(--text-muted); margin-top: 0.2rem; }
/* New-for-you horizontal scroll */
.nfy-scroll { display: flex; gap: 0.75rem; overflow-x: auto; padding-bottom: 0.25rem; scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
.nfy-scroll::-webkit-scrollbar { height: 4px; }
.nfy-scroll::-webkit-scrollbar-track { background: transparent; }
.nfy-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.nfy-card { flex: 0 0 9rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 0.875rem 0.875rem 0.75rem; text-decoration: none; color: inherit; transition: border-color var(--transition), background var(--transition); display: flex; flex-direction: column; gap: 0.35rem; }
.nfy-card:hover { border-color: var(--green); background: rgba(29,185,84,0.06); color: inherit; }
.nfy-card-icon { width: 2rem; height: 2rem; background: var(--surface-1); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: var(--green); font-size: 0.7rem; margin-bottom: 0.25rem; }
.nfy-card-name { font-size: 0.8rem; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nfy-card-artist { font-size: 0.72rem; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Dashboard action grid */
.dash-action-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.dash-action-card { display: flex; align-items: center; gap: 0.875rem; background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 0.875rem 1rem; text-decoration: none; color: inherit; transition: border-color var(--transition), background var(--transition); }
.dash-action-card:hover { border-color: var(--green); background: rgba(29,185,84,0.04); color: inherit; }
.dash-action-body { flex: 1; min-width: 0; }
.dash-action-body strong { display: block; font-size: 0.875rem; font-weight: 600; }
.dash-action-body span { display: block; font-size: 0.75rem; color: var(--text-muted); margin-top: 0.15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-action-arrow { font-size: 0.65rem; color: var(--text-muted); flex-shrink: 0; opacity: 0; transition: opacity var(--transition); }
.dash-action-card:hover .dash-action-arrow { opacity: 1; }
@media (max-width: 640px) {
  .dash-action-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-welcome-row { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .dash-name { font-size: 1.5rem; }
  .nfy-card { flex: 0 0 8rem; }
}

/* ── Author hero ── */
.author-hero { display: flex; align-items: flex-start; gap: 1.5rem; padding: 1.5rem 2rem; }
.author-hero-icon { font-size: 2.5rem; color: var(--green); flex-shrink: 0; margin-top: 0.25rem; }
.author-hero-info { flex: 1; }
.author-hero-eyebrow { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin: 0 0 0.25rem; }
.author-hero-name { font-family: var(--font-head); font-size: 2rem; font-weight: 800; margin: 0 0 0.5rem; }
.author-hero-stats { display: flex; align-items: center; gap: 0.75rem; font-size: 0.875rem; flex-wrap: wrap; }
.author-hero-tunings { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.5rem; }

/* ── Compare page ── */
.compare-form { padding: 1.5rem 2rem; }
.compare-inputs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 1rem; }
.compare-vs { font-family: var(--font-head); font-size: 1.1rem; font-weight: 800; color: var(--text-muted); text-align: center; padding-bottom: 0.5rem; }
.compare-summary { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.compare-stat-card { text-align: center; background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem 2rem; }
.compare-stat-val { font-family: var(--font-head); font-size: 2rem; font-weight: 800; line-height: 1; }
.compare-stat-label { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.3rem; }
.compare-unique-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.compare-unique-list { display: flex; flex-direction: column; gap: 0.3rem; }
.compare-unique-row { padding: 0.4rem 0.6rem; border-radius: var(--radius); background: var(--surface-1); font-size: 0.875rem; }
.compare-unique-artist { font-size: 0.75rem; }

/* ── Admin batch bar ── */
.queue-batch-bar { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 0.75rem 1rem; background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius); }
.queue-select-check { display: flex; align-items: center; padding: 0.2rem; cursor: pointer; }
.queue-select-check input { accent-color: var(--green); width: 16px; height: 16px; cursor: pointer; }

/* ── Profile settings card ── */
.profile-settings { padding: 1.25rem 1.5rem; margin-bottom: 1rem; }
.settings-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.toggle-btn {
  flex-shrink: 0;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--transition);
}
.toggle-btn.on  { background: rgba(29,185,84,0.15); border-color: var(--green); color: var(--green); }
.toggle-btn.off { background: var(--surface-2); color: var(--text-muted); }

@media (max-width: 600px) {
  .compare-inputs { grid-template-columns: 1fr; }
  .compare-vs { padding: 0; }
  .compare-unique-grid { grid-template-columns: 1fr; }
  .author-hero { flex-direction: column; }
}

/* ── Admin notices ─────────────────────────────────────────── */
.admin-notice {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.65rem 1rem; border-radius: var(--radius);
  font-size: 0.82rem; font-weight: 500;
}
.admin-notice-ok  { background: rgba(29,185,84,0.1);  border: 1px solid rgba(29,185,84,0.3);  color: var(--green); }
.admin-notice-err { background: rgba(239,68,68,0.1);  border: 1px solid rgba(239,68,68,0.3);  color: var(--red); }

/* ── Notification Bell ─────────────────────────────────────── */
.nav-bell { position: relative; }
.nav-bell-btn {
  background: none; border: none; color: var(--text-dim);
  font-size: 1rem; cursor: pointer; padding: 0.35rem 0.4rem;
  border-radius: var(--radius); display: flex; align-items: center;
  position: relative; transition: color var(--transition);
}
.nav-bell-btn:hover { color: var(--text); }
.nav-bell-badge {
  position: absolute; top: -1px; right: -1px;
  background: var(--red); color: #fff;
  font-size: 0.6rem; font-weight: 700; min-width: 16px; height: 16px;
  border-radius: 999px; display: flex; align-items: center; justify-content: center;
  padding: 0 3px; line-height: 1; pointer-events: none;
}
.nav-bell-panel {
  display: none; position: absolute; top: calc(100% + 0.5rem); right: -0.5rem;
  width: 320px; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); z-index: 200;
  flex-direction: column; overflow: hidden;
}
.nav-bell-panel.open { display: flex; }
.nav-bell-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.65rem 1rem; border-bottom: 1px solid var(--border);
  font-size: 0.82rem; font-weight: 600; flex-shrink: 0;
}
.nav-bell-mark-all {
  background: none; border: none; color: var(--green); font-size: 0.72rem;
  cursor: pointer; padding: 0; font-family: inherit;
}
.nav-bell-mark-all:hover { text-decoration: underline; }
.nav-bell-list { max-height: 360px; overflow-y: auto; }
.nav-bell-empty {
  padding: 2rem 1rem; text-align: center;
  color: var(--text-muted); font-size: 0.82rem;
}
.nav-bell-item {
  display: block; padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border); text-decoration: none;
  color: var(--text); font-size: 0.8rem; transition: background var(--transition);
}
.nav-bell-item:last-child { border-bottom: none; }
.nav-bell-item:hover { background: var(--surface-3); }
.nav-bell-item.unread { background: rgba(29,185,84,0.05); }
.nav-bell-item.unread .nav-bell-item-title::before {
  content: ''; display: inline-block; width: 6px; height: 6px;
  border-radius: 50%; background: var(--green);
  margin-right: 0.4rem; vertical-align: middle; flex-shrink: 0;
}
.nav-bell-item-title { font-weight: 600; margin-bottom: 0.15rem; font-size: 0.8rem; }
.nav-bell-item-body  { color: var(--text-dim); font-size: 0.75rem; margin-bottom: 0.15rem; }
.nav-bell-item-time  { color: var(--text-muted); font-size: 0.68rem; }

/* ── Artist Follow Button ──────────────────────────────────── */
.artist-hero-follow { margin-top: 0.75rem; }
.btn-follow {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.4rem 1rem; border-radius: var(--radius-pill);
  font-size: 0.8rem; font-weight: 600;
  border: 1px solid var(--border); background: var(--surface-2);
  color: var(--text-dim); cursor: pointer; transition: all var(--transition);
  font-family: inherit;
}
.btn-follow:hover { border-color: var(--red); color: var(--red); }
.btn-follow.following {
  background: var(--red-dim); border-color: var(--red); color: var(--red);
}
.btn-follow:disabled { opacity: 0.5; cursor: default; }

/* ╔══════════════════════════════════════════════════════════════╗
   ║  PUNK ZINE OVERRIDES — global reskin, dark night edition     ║
   ╚══════════════════════════════════════════════════════════════╝ */

/* Light theme: cream paper body, dark ink for text/borders. The .fm-nav
   and .fm-footer scopes below force the masthead chrome to stay dark in
   both themes so the punk newspaper look stays intact. */
:root[data-theme="light"] {
  --bg:           #ede8d8;
  --surface:      #e3dcbd;
  --surface-2:    #d4cdac;
  --surface-3:    #c5bd9b;
  --border:       #1a1a1a;
  --border-hover: #000;

  --paper:        #0a0a0a;
  --paper-dim:    #3a3a3a;

  --text:         #0a0a0a;
  --text-dim:     #4a4a4a;
  --text-muted:   #6b6b6b;

  --red:          #d8211c;
  --red-2:        #ac1714;
  --red-dim:      rgba(216,33,28,0.14);
  --green:        #1aaa4f;
  --green-dim:    rgba(26,170,79,0.16);
  --purple:       #6b4cc4;
  --purple-dim:   rgba(107,76,196,0.14);
  --blue:         #2a64d4;
  --yellow:       #b8821e;
}

/* Light theme: tone down the red top vignette so it does not look like blood */
:root[data-theme="light"] .mesh-bg {
  background-image:
    radial-gradient(ellipse at 50% -10%, rgba(216,33,28,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 110%, rgba(0,0,0,0.04) 0%, transparent 45%);
}

/* Light theme: hide the white photocopy grain (it does nothing on cream) */
:root[data-theme="light"] body::after { opacity: 0; }

/* Nav and footer always render in dark mode regardless of root theme.
   Re-declare the tokens inside their scope so children that reference
   var(--paper), var(--paper-dim), etc. still get the dark-theme values. */
.fm-nav,
.fm-footer {
  --bg:        #06070a;
  --surface:   #0e0f14;
  --surface-2: #181a22;
  --surface-3: #1f2128;
  --border:    #2a2c36;
  --paper:     #e9eaef;
  --paper-dim: #c7c9d2;
  --text:      #e9eaef;
  --text-dim:  #9a9da8;
  --text-muted:#6f7280;
}

/* Theme toggle button in the nav */
.theme-toggle {
  background: none;
  border: 2px solid transparent;
  color: var(--paper-dim);
  font-size: 0.95rem;
  cursor: pointer;
  padding: 0.4rem 0.55rem;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, background 0.15s;
  line-height: 1;
}
.theme-toggle:hover { color: var(--red); }
.theme-toggle i { width: 1em; text-align: center; }

/* Base typography */
body {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: 0.01em;
}
h1, h2, h3, .section-title, .page-title {
  font-family: var(--font-head);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  line-height: 0.95;
  font-weight: 400;
}
h4, h5, h6 {
  font-family: var(--font-head);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 400;
}
p { color: var(--paper); font-family: var(--font-body); }
a { color: var(--paper); }
a:hover { color: var(--red); }
.text-green { color: var(--green); }
.text-muted, .text-dim { color: var(--text-dim); }
.glow-text {
  background: none;
  -webkit-text-fill-color: var(--red);
  color: var(--red);
  font-style: normal;
}

::selection { background: var(--red); color: #fff; }

/* ── NAV ───────────────────────── */
.fm-nav {
  background: #000;
  border-bottom: 6px double var(--paper);
  box-shadow: 0 6px 0 var(--red), 0 12px 24px rgba(0,0,0,0.6);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.nav-inner { height: 64px; }
.nav-brand {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: none;
  -webkit-text-fill-color: var(--paper);
  color: var(--paper);
}
.nav-brand i { -webkit-text-fill-color: var(--red); color: var(--red); font-size: 0.95rem; }
.nav-brand b { color: var(--red); font-weight: 400; padding: 0 2px; }
.nav-link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper-dim);
  border-radius: 0;
  padding: 0.4rem 0.7rem;
}
.nav-link:hover, .nav-link.active {
  color: #fff;
  background: var(--red);
}
.nav-link i { font-size: 0.7rem; }
.nav-caret { font-size: 0.55rem !important; }
.nav-dropmenu {
  background: var(--surface);
  border: 2px solid var(--paper);
  border-radius: 0;
  padding: 0.35rem;
  box-shadow: 6px 6px 0 var(--red);
}
.nav-dropmenu-right { right: 0; left: auto; }
.nav-dropitem {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--paper-dim);
  border-radius: 0;
  padding: 0.55rem 0.7rem;
  text-transform: none;
}
.nav-dropitem:hover { background: var(--red); color: #fff; }
.nav-dropitem.disabled { color: var(--text-muted); }
.drop-divider { background: var(--border); }

.nav-username {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--paper);
}
.nav-avatar {
  border-radius: 0;
  border: 2px solid var(--paper);
  width: 28px; height: 28px;
}

.nav-toggle {
  border: 2px solid var(--paper);
  border-radius: 0;
  background: transparent;
}
.nav-toggle span { background: var(--paper); }

.badge-soon {
  font-family: var(--font-head);
  letter-spacing: 0.15em;
  background: var(--red);
  color: #fff;
  border: 0;
  border-radius: 0;
  padding: 1px 6px;
  transform: rotate(-2deg);
  font-size: 0.6rem;
}

/* Notification bell */
.nav-bell-btn { color: var(--paper-dim); border-radius: 0; }
.nav-bell-btn:hover { color: var(--red); }
.nav-bell-badge {
  font-family: var(--font-head);
  background: var(--red);
  border-radius: 0;
  letter-spacing: 0.05em;
}
.nav-bell-panel {
  background: var(--surface);
  border: 2px solid var(--paper);
  border-radius: 0;
  box-shadow: 6px 6px 0 var(--red);
}
.nav-bell-head {
  font-family: var(--font-head);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 0.8rem;
}
.nav-bell-mark-all { color: var(--red); text-transform: uppercase; letter-spacing: 0.1em; }
.nav-bell-item.unread { background: rgba(255,58,54,0.06); }
.nav-bell-item.unread .nav-bell-item-title::before { background: var(--red); }

/* ── BUTTONS ──────────────────── */
.btn {
  font-family: var(--font-head);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 0;
  border: 2px solid var(--paper);
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 3px 3px 0 var(--paper);
  background: transparent;
  color: var(--paper);
  line-height: 1.1;
}
.btn:hover { transform: translate(-2px,-2px); box-shadow: 5px 5px 0 var(--paper); }
.btn:active { transform: translate(1px,1px); box-shadow: 1px 1px 0 var(--paper); }

.btn-spotify {
  background: var(--green);
  color: #000;
  border-color: var(--paper);
  box-shadow: 3px 3px 0 var(--paper);
}
.btn-spotify:hover { background: #1ed760; color: #000; box-shadow: 5px 5px 0 var(--paper); }

.btn-ghost {
  background: transparent;
  color: var(--paper);
  border-color: var(--paper);
  box-shadow: 3px 3px 0 var(--red);
}
.btn-ghost:hover { background: var(--red); color: #fff; box-shadow: 5px 5px 0 var(--paper); }

.btn-sm { padding: 0.4rem 0.85rem; font-size: 0.78rem; box-shadow: 2px 2px 0 var(--paper); }
.btn-sm:hover { box-shadow: 4px 4px 0 var(--paper); }
.btn-xs { padding: 0.25rem 0.55rem; font-size: 0.7rem; box-shadow: 2px 2px 0 var(--paper); border-width: 1px; }
.btn-lg { padding: 0.95rem 1.7rem; font-size: 1rem; letter-spacing: 0.14em; box-shadow: 5px 5px 0 var(--paper); }
.btn-lg:hover { box-shadow: 8px 8px 0 var(--paper); }

/* Icon-only ghost button */
.btn-icon-ghost {
  background: transparent;
  border: 2px solid var(--paper);
  color: var(--paper);
  width: 32px; height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.btn-icon-ghost:hover { background: var(--red); color: #fff; border-color: var(--red); }

/* ── CARDS ────────────────────── */
.glass-card {
  background: var(--surface);
  border: 2px solid var(--paper);
  border-radius: 0;
  box-shadow: 6px 6px 0 var(--red);
  padding: 1.5rem;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* ── HERO (landing) ───────────── */
.hero, .hero-lg, .hero-landing { background: transparent; }
.landing-orb { display: none; }

.hero-content { position: relative; z-index: 2; }
.hero-eyebrow {
  font-family: var(--font-head);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--red);
  font-size: 0.78rem;
  background: none;
  padding: 0;
  border: 0;
  display: inline-block;
  margin-bottom: 1rem;
}
.hero-eyebrow::before { content: '▸ '; color: var(--red); }
.hero-title {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(3.5rem, 12vw, 9rem);
  line-height: 0.85;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--paper);
  margin: 0;
}
.hero-title .glow-text {
  display: inline-block;
  border: 5px solid var(--paper);
  padding: 0 0.5rem;
  transform: rotate(2deg);
  color: var(--paper);
  -webkit-text-fill-color: var(--paper);
  background: var(--red);
}
.hero-sub {
  font-family: var(--font-type);
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--paper);
  max-width: 60ch;
  margin: 1.25rem auto 1.5rem;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; margin-top: 1.5rem; }

/* Hero inline stats */
.hero-inline-stats {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.his-item { display: flex; flex-direction: column; align-items: center; }
.his-val {
  font-family: var(--font-head);
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--paper);
}
.his-item:nth-child(odd) .his-val { color: var(--red); }

/* Kill every legacy "background-clip: text" gradient stat so the punk
   theme reads as solid paper / red instead of the old green->purple. */
.his-val,
.strip-val,
.stat-tile-val,
.my-stats-big,
.artist-hero-name {
  background: none !important;
  background-clip: initial !important;
  -webkit-background-clip: initial !important;
  -webkit-text-fill-color: currentColor !important;
}
.strip-val      { color: var(--paper); }
.stat-tile-val  { color: var(--paper); }
.stat-tile.accent-green  .stat-tile-val { color: var(--green); }
.stat-tile.accent-yellow .stat-tile-val { color: var(--yellow); }
.my-stats-big   { color: var(--red); }
.artist-hero-name { color: var(--paper); }
.his-label {
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper-dim);
  margin-top: 0.3rem;
}
.his-dot { width: 4px; height: 4px; background: var(--paper); border-radius: 0; }

/* Hero search */
.hero-search {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1.5rem;
  flex-wrap: wrap;
  align-items: stretch;
}
.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.search-input-wrap .search-icon {
  position: absolute;
  left: 0.85rem;
  color: var(--paper-dim);
  font-size: 0.85rem;
  pointer-events: none;
}
.search-input, .input, .input-search, .form-input {
  background: var(--surface);
  border: 2px solid var(--paper);
  border-radius: 0;
  padding: 0.65rem 1rem 0.65rem 2.2rem;
  color: var(--paper);
  font-family: var(--font-type);
  font-size: 0.95rem;
  outline: none;
  width: 100%;
  box-shadow: 3px 3px 0 var(--red);
}
.search-input::placeholder, .input::placeholder, .form-input::placeholder { color: var(--text-dim); }
.search-input:focus, .input:focus, .form-input:focus { border-color: var(--red); box-shadow: 4px 4px 0 var(--paper); }
.input-search-icon {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--paper-dim);
}

/* Search dropdown */
.search-dropdown {
  position: fixed;
  background: var(--surface);
  border: 2px solid var(--paper);
  border-radius: 0;
  box-shadow: 6px 6px 0 var(--red);
  z-index: 1100;
  max-height: 360px;
  overflow-y: auto;
  display: none;
}
.search-dropdown.open { display: block; }
.sd-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  text-decoration: none;
  border-bottom: 1px dashed var(--border);
}
.sd-item:last-child { border-bottom: 0; }
.sd-item:hover { background: var(--red); color: #fff; }
.sd-item:hover .sd-name, .sd-item:hover .sd-artist { color: #fff; }
.sd-icon { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: var(--surface-2); border: 1px solid var(--border); color: var(--paper-dim); }
.sd-img { width: 100%; height: 100%; object-fit: cover; }
.sd-name { font-family: var(--font-body); font-weight: 700; font-size: 0.85rem; color: var(--paper); }
.sd-artist { font-family: var(--font-type); font-size: 0.78rem; color: var(--paper-dim); }
.sd-arrow { margin-left: auto; color: var(--paper-dim); font-size: 0.7rem; }
.sd-empty { padding: 1.5rem 1rem; text-align: center; color: var(--text-muted); font-size: 0.85rem; }

/* ── HOW IT WORKS ─────────────── */
.hiw-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 1rem;
  /* defeat the legacy bordered-strip rule: cards are now individually
     framed, AND we need overflow:visible so the rotated 01/02/03 stamps
     can poke out above the card edge */
  border: 0;
  border-radius: 0;
  overflow: visible;
  padding-top: 0.75rem;
}
.hiw-step {
  display: block;            /* override original flex */
  align-items: stretch;
  background: var(--surface);
  border: 2px solid var(--paper);
  border-radius: 0;
  padding: 1.75rem 1.5rem;
  position: relative;
  box-shadow: 6px 6px 0 var(--red);
  text-align: left;
}
.hiw-step:nth-child(2n) { box-shadow: 6px 6px 0 var(--paper); }
/* Defeat .hiw-step-green/.purple/.blue top-border-color overrides from legacy */
.hiw-step.hiw-step-green,
.hiw-step.hiw-step-purple,
.hiw-step.hiw-step-blue { border-top-color: var(--paper); }
.hiw-step + .hiw-step { border-left: 2px solid var(--paper); }

.hiw-step-badge {
  position: absolute;
  top: -14px;
  right: 14px;
  background: var(--red);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1.2;          /* was 1; gave Anton too little vertical room */
  letter-spacing: 0.06em;
  padding: 0.35rem 0.85rem 0.3rem;
  transform: rotate(3deg);
  margin: 0;
  border: 2px solid var(--paper);
  box-shadow: 2px 2px 0 var(--paper);
  z-index: 2;
}
/* Icons: square, paper border, dark surface, colored glyph */
.hiw-icon,
.hiw-icon.green,
.hiw-icon.purple,
.hiw-icon.blue {
  width: 48px; height: 48px;
  background: var(--surface-2);
  border: 2px solid var(--paper);
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin: 0 0 1rem;
}
.hiw-icon.green  { color: var(--green); }
.hiw-icon.purple { color: var(--purple); }
.hiw-icon.blue   { color: var(--blue); }
.hiw-step h4 {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
  color: var(--paper);
  text-align: left;
}
.hiw-step p {
  font-family: var(--font-body);
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--paper-dim);
  text-align: left;
}

/* ── FEATURE GRID (large) ─────── */
.landing-features-band { background: rgba(255,58,54,0.02); border-top: 2px solid var(--paper); border-bottom: 2px solid var(--paper); }
.feature-grid-lg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.feature-card-lg {
  background: var(--surface);
  border: 2px solid var(--paper);
  border-radius: 0;
  padding: 1.5rem 1.25rem;
  box-shadow: 6px 6px 0 var(--red);
}
.feature-card-lg:nth-child(2n) { box-shadow: 6px 6px 0 var(--paper); }
.feature-icon-lg,
.feature-icon-lg.green,
.feature-icon-lg.purple,
.feature-icon-lg.blue,
.feature-icon-lg.yellow {
  width: 48px; height: 48px;
  border: 2px solid var(--paper);
  background: var(--surface-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  border-radius: 0;
}
.feature-icon-lg.green  { color: var(--green); }
.feature-icon-lg.purple { color: var(--purple); }
.feature-icon-lg.blue   { color: var(--blue); }
.feature-icon-lg.yellow { color: var(--yellow); }
.feature-card-lg h4 { font-family: var(--font-head); font-size: 1.4rem; font-weight: 400; letter-spacing: 0.02em; margin-bottom: 0.4rem; }
.feature-card-lg p { font-family: var(--font-body); font-size: 0.85rem; line-height: 1.6; color: var(--paper-dim); }

/* ── LANDING CTA BAND ─────────── */
.landing-cta-band {
  background: var(--paper);
  color: var(--bg);
  border-top: 6px double var(--bg);
  border-bottom: 6px double var(--bg);
  position: relative;
}
.landing-cta-band .glow-text { color: var(--red); -webkit-text-fill-color: var(--red); }
.landing-cta-title {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 6vw, 4rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--bg);
  line-height: 0.9;
}
.landing-cta-sub { color: var(--bg); font-family: var(--font-type); font-size: 1.05rem; }
.landing-cta-band .btn-ghost { color: var(--bg); border-color: var(--bg); box-shadow: 3px 3px 0 var(--red); }
.landing-cta-band .btn-ghost:hover { background: var(--bg); color: var(--paper); }

/* ── DASHBOARD (logged-in home) ── */
.dash-header {
  background: #000;
  border-bottom: 4px solid var(--paper);
  padding: 2rem 0;
}
.dash-welcome-row { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; flex-wrap: wrap; }
.dash-eyebrow {
  font-family: var(--font-head);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--red);
  font-size: 0.75rem;
}
.dash-name {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--paper);
  line-height: 0.9;
  margin-top: 0.25rem;
}
.dash-guitar { color: var(--red); font-size: 0.6em; }
.dash-pill-row { display: flex; gap: 0.75rem; }
.dash-pill {
  background: var(--surface);
  border: 2px solid var(--paper);
  padding: 0.65rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 3px 3px 0 var(--red);
}
.dash-pill-val {
  font-family: var(--font-head);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--paper);
}
.dash-pill:first-child .dash-pill-val { color: var(--red); }
.dash-pill-label {
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper-dim);
  margin-top: 0.2rem;
}

.dash-action-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.dash-action-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--surface);
  border: 2px solid var(--paper);
  border-radius: 0;
  padding: 1rem 1.1rem;
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--red);
  transition: transform var(--transition), box-shadow var(--transition);
}
.dash-action-card:nth-child(2n) { box-shadow: 4px 4px 0 var(--paper); }
.dash-action-card:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--red); }
.dash-action-card:nth-child(2n):hover { box-shadow: 6px 6px 0 var(--paper); }
.action-card-icon,
.action-card-icon.green,
.action-card-icon.purple,
.action-card-icon.blue {
  width: 42px; height: 42px;
  border: 2px solid var(--paper);
  background: var(--surface-2);
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  font-size: 1rem;
}
.action-card-icon.green  { color: var(--green); }
.action-card-icon.purple { color: var(--purple); }
.action-card-icon.blue   { color: var(--blue); }
.dash-action-body strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--paper);
  line-height: 1;
  margin-bottom: 0.2rem;
}
.dash-action-body span { font-family: var(--font-body); font-size: 0.78rem; color: var(--paper-dim); }
.dash-action-arrow { margin-left: auto; color: var(--red); }

/* New-for-you scroller */
.new-for-you-title { font-family: var(--font-head); letter-spacing: 0.05em; text-transform: uppercase; font-size: 1.4rem; }
.new-for-you-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.nfy-scroll {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.25rem 0 1rem;
  cursor: grab;
  user-select: none;
  scroll-behavior: smooth;
  scrollbar-color: var(--paper-dim) var(--surface);
}
.nfy-scroll.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}
.nfy-scroll::-webkit-scrollbar { height: 6px; }
.nfy-scroll::-webkit-scrollbar-track { background: var(--surface); border: 1px solid var(--border); }
.nfy-scroll::-webkit-scrollbar-thumb { background: var(--paper-dim); }
.nfy-scroll::-webkit-scrollbar-thumb:hover { background: var(--red); }

.nfy-card {
  flex: 0 0 14rem;
  min-height: 9rem;
  background: var(--surface);
  border: 2px solid var(--paper);
  border-radius: 0;
  padding: 1rem;
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--red);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s, background 0.15s;
}
.nfy-card:hover,
.nfy-card:focus-visible {
  /* keep the green glow the user liked and add the punk shadow lift */
  background: rgba(29,185,84,0.08);
  border-color: var(--green);
  color: inherit;
  transform: translate(-2px,-2px);
  box-shadow: 6px 6px 0 var(--red);
}
.nfy-scroll.is-dragging .nfy-card,
.nfy-scroll.is-dragging .nfy-card:hover {
  /* freeze hover transforms while actually dragging so cards don't jitter.
     Do NOT set pointer-events: none here — it makes mouseup retarget to the
     parent and breaks clicks on the cards. */
  transform: none;
  box-shadow: 4px 4px 0 var(--red);
  background: var(--surface);
  border-color: var(--paper);
}
.nfy-card-icon {
  width: 2rem; height: 2rem;
  background: var(--surface-2);
  border: 2px solid var(--paper);
  border-radius: 0;
  color: var(--red);
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.4rem;
}

/* Square album-art tile at the top of an NFY card */
.nfy-card-art {
  width: 100%;
  aspect-ratio: 1;
  background: var(--surface-2);
  border: 2px solid var(--paper);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  font-size: 1.8rem;
  margin-bottom: 0.55rem;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}
.nfy-card-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none; /* clicks should go to the card link, drags to the scroller */
}
.nfy-card-name {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1.3;
  color: var(--paper);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nfy-card-artist {
  font-family: var(--font-type);
  font-size: 0.78rem;
  color: var(--paper-dim);
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── PAGE STRUCTURE ───────────── */
.page-container {
  max-width: 1300px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  /* No top/bottom padding shorthand: lets .py-4/.py-6/.py-8 utilities work */
}
.page-title {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 0.85;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.page-sub { font-family: var(--font-type); color: var(--paper-dim); font-size: 1rem; max-width: 60ch; }
.page-title-row { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 3px solid var(--paper); }
.section-title {
  font-family: var(--font-head);
  font-size: 2rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.section-header h2 { font-family: var(--font-head); font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: -0.01em; text-transform: uppercase; line-height: 0.9; }
.section-sub { font-family: var(--font-type); color: var(--paper-dim); font-size: 1rem; margin-top: 0.5rem; }

/* ── BADGES (tunings, status) ─── */
.badge {
  font-family: var(--font-head);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 8px;
  border: 0;
  border-radius: 0;
  display: inline-block;
  transform: rotate(-2deg);
  color: #fff;
}
.badge-lead   { background: var(--green); color: #000; }
.badge-rhythm { background: var(--purple); color: #000; }
.badge-bass   { background: var(--blue);   color: #000; }
.badge-pub, .badge-ok       { background: var(--green);  color: #000; transform: rotate(0); }
.badge-pending              { background: var(--yellow); color: #000; transform: rotate(0); }
.badge-nocdlc, .badge-review{ background: var(--red);    color: #fff; transform: rotate(0); }

/* ── ADMIN TABLES ─────────────── */
.admin-table-wrap { background: var(--surface); border: 2px solid var(--paper); box-shadow: 6px 6px 0 var(--red); overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-family: var(--font-body); font-size: 0.85rem; }
.admin-table th {
  background: #000;
  color: var(--paper);
  font-family: var(--font-head);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: 400;
  padding: 0.75rem 0.85rem;
  text-align: left;
  border-bottom: 2px solid var(--paper);
}
.admin-table td { padding: 0.7rem 0.85rem; border-bottom: 1px dashed var(--border); color: var(--paper); }
.admin-table tr:hover td { background: rgba(255,58,54,0.05); }
.admin-song-name { font-weight: 700; }
.admin-status {
  font-family: var(--font-head);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 2px 8px;
  display: inline-block;
}
.admin-status.published   { background: var(--green);  color: #000; }
.admin-status.unpublished { background: var(--surface-3); color: var(--paper-dim); }
.admin-status.review      { background: var(--yellow); color: #000; }

/* Admin nav strip */
.admin-header { margin-bottom: 1.5rem; }
.admin-nav { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.admin-nav-item {
  font-family: var(--font-body);
  font-size: 0.74rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.5rem 0.85rem;
  background: var(--surface);
  border: 2px solid var(--paper);
  color: var(--paper-dim);
  text-decoration: none;
}
.admin-nav-item:hover, .admin-nav-item.active { background: var(--red); color: #fff; border-color: var(--paper); }
.admin-nav-add { background: var(--red); color: #fff; }
.admin-badge {
  background: #000;
  color: var(--paper);
  font-size: 0.65rem;
  padding: 1px 5px;
  margin-left: 4px;
}
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0; border: 2px solid var(--paper); }
.admin-stat-card {
  background: var(--surface);
  padding: 1.25rem 1rem;
  border-right: 2px solid var(--paper);
  text-align: center;
}
.admin-stat-card:last-child { border-right: 0; }
.admin-stat-card.admin-stat-alert { background: var(--red); color: #fff; }
.admin-stat-val { font-family: var(--font-head); font-size: 2.4rem; line-height: 1; }
.admin-stat-label { font-family: var(--font-body); font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; margin-top: 0.4rem; color: var(--paper-dim); }
.admin-stat-card.admin-stat-alert .admin-stat-label { color: #fff; }

/* ── PROFILE CARD ─────────────── */
.profile-card {
  background: var(--surface);
  border: 2px solid var(--paper);
  box-shadow: 8px 8px 0 var(--red);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2rem;
  padding: 2rem;
  align-items: center;
}
.profile-card-avatar img, .profile-avatar-fallback {
  width: 96px; height: 96px;
  border: 3px solid var(--paper);
  border-radius: 0;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  font-size: 2rem;
}
.profile-card-name {
  font-family: var(--font-head);
  font-size: 2.5rem;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  line-height: 0.95;
}
.profile-card-handle, .profile-card-joined { color: var(--paper-dim); font-size: 0.85rem; margin-top: 0.3rem; }
.profile-card-stats { display: flex; gap: 1rem; align-items: center; }
.profile-stat-val { font-family: var(--font-head); font-size: 2rem; line-height: 1; color: var(--paper); }
.profile-stat:nth-child(odd) .profile-stat-val { color: var(--red); }
.profile-stat-label { font-family: var(--font-body); font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--paper-dim); margin-top: 0.3rem; }
.profile-stat-divider { width: 2px; height: 30px; background: var(--paper); }

/* ── FOOTER ───────────────────── */
.fm-footer {
  background: #000;
  border-top: 6px double var(--paper);
  padding: 2rem 1.5rem 1rem;
  margin-top: 4rem;
  position: relative;
}
.fm-footer::before {
  content: 'FORGEMATCH / MADE BY HANDS / EST. 2020';
  display: block;
  position: absolute;
  top: -1.4rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--red);
  color: #fff;
  font-family: var(--font-head);
  letter-spacing: 0.3em;
  font-size: 0.7rem;
  padding: 0.35rem 1rem;
  white-space: nowrap;
}
.footer-inner { max-width: 1300px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 2rem; }
.footer-logo {
  font-family: var(--font-head);
  font-size: 1.4rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--paper);
  text-decoration: none;
}
.footer-logo i { color: var(--red); }
.footer-tagline { font-family: var(--font-type); color: var(--paper-dim); margin-top: 0.5rem; font-size: 0.85rem; }
.footer-col h6 {
  font-family: var(--font-head);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.6rem;
}
.footer-col a {
  display: block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--paper-dim);
  text-decoration: none;
  padding: 0.2rem 0;
  letter-spacing: 0.04em;
}
.footer-col a:hover { color: var(--red); }
.footer-bottom {
  max-width: 1300px;
  margin: 2rem auto 0;
  padding-top: 1rem;
  border-top: 1px dashed var(--paper);
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--paper-dim);
}
.footer-sep { color: var(--red); }
.footer-build code { background: var(--surface-2); padding: 1px 6px; color: var(--paper); }

/* Hero-search button alignment */
.hero-search .btn { padding: 0.7rem 1.2rem; }

/* Reset legacy gradient-text */
.glow-text-green { color: var(--red); -webkit-text-fill-color: var(--red); }

/* Tracks page search bar */
.tracks-search-wrap { position: relative; max-width: 360px; min-width: 220px; }

/* Tracks page badges already covered above. AG Grid keeps its own theme. */

/* Tracklist (artist page) tweaks */
.track-row {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0;
  margin-bottom: 0.4rem;
}
.track-row:hover { border-color: var(--red); background: rgba(255,58,54,0.05); }
.track-num { font-family: var(--font-head); color: var(--red); }
.track-title a { color: var(--paper); text-decoration: none; font-weight: 700; }
.track-meta { font-family: var(--font-type); font-size: 0.78rem; color: var(--paper-dim); }
.artist-link { color: var(--red); }
.artist-link:hover { text-decoration: underline; }
.track-author { color: var(--paper-dim); }

/* Artist hero */
.artist-hero {
  background: var(--surface);
  border: 2px solid var(--paper);
  box-shadow: 8px 8px 0 var(--red);
  padding: 2rem;
  position: relative;
}
.artist-hero-glow { display: none; }
.artist-hero-eyebrow {
  font-family: var(--font-head);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--red);
  font-size: 0.75rem;
}
.artist-hero-name {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 6vw, 4rem);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  line-height: 0.9;
}
.artist-hero-stats { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; flex-wrap: wrap; }
.artist-hero-stat-val { font-family: var(--font-head); font-size: 1.8rem; line-height: 1; color: var(--paper); }
.artist-hero-stat-label { font-family: var(--font-body); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--paper-dim); margin-top: 0.15rem; display: block; }
.artist-hero-divider { width: 2px; height: 30px; background: var(--paper); }
.artist-tuning-chip {
  font-family: var(--font-head);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  padding: 2px 8px;
  background: var(--surface-2);
  border: 1px solid var(--paper);
  color: var(--paper);
  transform: rotate(-2deg);
  display: inline-block;
}

/* Profile match rows */
.profile-match-row { display: flex; align-items: center; gap: 1rem; padding: 0.65rem 0; }
.profile-match-row.bordered { border-bottom: 1px dashed var(--border); }
.profile-match-num { font-family: var(--font-head); font-size: 1.4rem; color: var(--red); width: 1.75rem; }
.profile-match-name { font-family: var(--font-body); font-weight: 700; color: var(--paper); }
.profile-match-artist { font-family: var(--font-type); font-size: 0.85rem; }

/* Color the existing background "mesh" container */
.mesh-bg { background-color: var(--bg); }

/* Misc utility colors that some pages still reference */
.text-yellow { color: var(--yellow); }
.text-blue   { color: var(--blue); }
.text-red    { color: var(--red); }
.text-right  { text-align: right; }
.text-center { text-align: center; }

/* ── FILTER PILLS (matches/tracks) ─────────────── */
.filter-label {
  font-family: var(--font-head);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper-dim);
  margin-right: 0.4rem;
}
.filter-pills { gap: 0.4rem; }
.filter-pill {
  font-family: var(--font-head);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 0;
  border: 2px solid var(--paper);
  background: transparent;
  color: var(--paper);
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--paper);
  transition: transform var(--transition), box-shadow var(--transition);
}
.filter-pill:hover { transform: translate(-1px,-1px); box-shadow: 3px 3px 0 var(--paper); border-color: var(--paper); color: var(--paper); }

/* Part-specific colors (matches the .badge-lead/.badge-rhythm/.badge-bass tunings) */
.filter-pill[data-part="lead"]          { border-color: var(--green); color: var(--green); box-shadow: 2px 2px 0 var(--green); }
.filter-pill[data-part="lead"]:hover    { box-shadow: 3px 3px 0 var(--green); }
.filter-pill[data-part="lead"].active   { background: var(--green); color: #000; border-color: var(--green); box-shadow: 3px 3px 0 var(--paper); }

.filter-pill[data-part="rhythm"]        { border-color: var(--purple); color: var(--purple); box-shadow: 2px 2px 0 var(--purple); }
.filter-pill[data-part="rhythm"]:hover  { box-shadow: 3px 3px 0 var(--purple); }
.filter-pill[data-part="rhythm"].active { background: var(--purple); color: #000; border-color: var(--purple); box-shadow: 3px 3px 0 var(--paper); }

.filter-pill[data-part="bass"]          { border-color: var(--blue); color: var(--blue); box-shadow: 2px 2px 0 var(--blue); }
.filter-pill[data-part="bass"]:hover    { box-shadow: 3px 3px 0 var(--blue); }
.filter-pill[data-part="bass"].active   { background: var(--blue); color: #000; border-color: var(--blue); box-shadow: 3px 3px 0 var(--paper); }

/* Generic active state for non-part pills (status filters, etc.) */
.filter-pill.active:not([data-part]) {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
  box-shadow: 3px 3px 0 var(--paper);
}

.filter-clear {
  font-family: var(--font-head);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
}
.filter-clear:hover { color: var(--paper); }

/* ── SETLISTS ─────────────────────────── */
.setlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.setlist-tile {
  display: block;
  text-decoration: none;
  background: var(--surface);
  border: 2px solid var(--paper);
  padding: 1rem 1.1rem 0.85rem;
  box-shadow: 4px 4px 0 var(--red);
  transition: transform 0.15s, box-shadow 0.15s;
}
.setlist-tile:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--red); }
.setlist-tile:nth-child(2n) { box-shadow: 4px 4px 0 var(--paper); }
.setlist-tile:nth-child(2n):hover { box-shadow: 6px 6px 0 var(--paper); }
.setlist-tile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.setlist-tile-count {
  font-family: var(--font-head);
  font-size: 1.6rem;
  line-height: 1;
  color: var(--red);
}
.setlist-tile-vis {
  font-family: var(--font-head);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 2px 6px;
  background: var(--green);
  color: #000;
}
.setlist-tile-vis.priv { background: var(--surface-3); color: var(--paper-dim); }
.setlist-tile-name {
  font-family: var(--font-head);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--paper);
  line-height: 1.05;
}
.setlist-tile-desc {
  font-family: var(--font-type);
  font-size: 0.78rem;
  color: var(--paper-dim);
  margin-top: 0.35rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.setlist-tile-foot {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.setlist-edit-form.open { display: flex !important; }

.setlist-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.setlist-row {
  display: grid;
  grid-template-columns: 3rem 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 2px solid var(--paper);
  border-radius: 0;
  margin-bottom: 0.5rem;
  box-shadow: 3px 3px 0 var(--red);
}
.setlist-row:nth-child(2n) { box-shadow: 3px 3px 0 var(--paper); }
.setlist-pos {
  font-family: var(--font-head);
  font-size: 1.6rem;
  color: var(--red);
  line-height: 1;
}
.setlist-info { min-width: 0; }
.setlist-name {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--paper);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.setlist-name a { color: var(--paper); text-decoration: none; }
.setlist-name a:hover { color: var(--red); }
.setlist-meta {
  font-family: var(--font-type);
  font-size: 0.78rem;
  color: var(--paper-dim);
  margin-top: 0.15rem;
}
.setlist-badges { display: flex; gap: 0.3rem; flex-wrap: wrap; margin-top: 0.35rem; }
.setlist-actions { display: flex; gap: 0.4rem; align-items: center; }

.setlist-add-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  background: var(--surface);
  border: 2px dashed var(--border);
}
.setlist-add-label {
  font-family: var(--font-head);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--paper-dim);
  margin-right: 0.4rem;
}
.setlist-add-label i { color: var(--red); margin-right: 0.3rem; }

/* ── AUTHOR PROFILE PAGE ─────────────────── */
.author-hero-link {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--paper-dim);
  margin: 0.3rem 0 0.5rem;
}
.author-hero-actions { display: flex; gap: 0.75rem; align-items: center; }
.author-rating-strip {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.author-rating {
  display: flex;
  flex-direction: column;
  padding: 0.5rem 0.9rem;
  background: var(--surface-2);
  border: 2px solid var(--paper);
  box-shadow: 3px 3px 0 var(--red);
  min-width: 7rem;
}
.author-rating-label {
  font-family: var(--font-head);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper-dim);
}
.author-rating-val {
  font-family: var(--font-head);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--red);
  margin-top: 0.2rem;
}
.author-rating-max {
  font-size: 0.7rem;
  color: var(--paper-dim);
  letter-spacing: 0.05em;
  margin-left: 1px;
}

.author-top-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--surface);
  border: 2px solid var(--paper);
  box-shadow: 6px 6px 0 var(--red);
}
.author-top-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px dashed var(--border);
  text-decoration: none;
  transition: background 0.15s;
}
.author-top-row:last-child { border-bottom: 0; }
.author-top-row:hover { background: rgba(255,58,54,0.05); }
.author-top-rank {
  font-family: var(--font-head);
  font-size: 1.4rem;
  color: var(--red);
  letter-spacing: -0.02em;
  min-width: 2.2rem;
}
.author-top-info { flex: 1; min-width: 0; }
.author-top-name {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--paper);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.author-top-artist {
  font-family: var(--font-type);
  font-size: 0.78rem;
  color: var(--paper-dim);
}
.author-top-score {
  font-family: var(--font-head);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--paper);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.author-top-score i { color: var(--yellow); }

.track-review {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--paper-dim);
  text-decoration: none;
  margin-left: 0.5rem;
}
.track-review i { color: var(--yellow); }
.track-review:hover { color: var(--red); }

/* ── STAY-IN-TUNE BANNER ─────────────────── */
.stay-in-tune-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.65rem 1rem;
  background: rgba(255,58,54,0.08);
  border: 2px solid var(--red);
  box-shadow: 4px 4px 0 var(--paper);
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--paper);
}
.stay-in-tune-banner i.fa-lock { color: var(--red); margin-right: 0.4rem; }
.stay-in-tune-banner strong { font-family: var(--font-head); letter-spacing: 0.04em; }
.tuning-locked-name {
  font-family: var(--font-head);
  letter-spacing: 0.06em;
  background: var(--red);
  color: #fff;
  padding: 2px 8px;
  margin-left: 0.25rem;
}
.stay-in-tune-set { display: inline-block; margin-left: 0.5rem; }
.filter-pill.is-default {
  background: var(--surface-3);
  border-color: var(--red);
  color: var(--red);
  box-shadow: 2px 2px 0 var(--red);
}
.filter-pill.is-default i.fa-lock { margin-left: 0.3rem; font-size: 0.65rem; opacity: 0.8; }

/* ── ACHIEVEMENT STAMPS ─────────────────── */
.ach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}
.ach-tile {
  position: relative;
  background: var(--surface);
  border: 2px solid var(--paper);
  padding: 1.1rem 1rem 1rem;
  text-align: center;
  box-shadow: 4px 4px 0 var(--red);
  transition: transform 0.15s, box-shadow 0.15s;
}
.ach-tile:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--red); }
.ach-tile:nth-child(3n+2) { box-shadow: 4px 4px 0 var(--paper); }
.ach-tile:nth-child(3n+2):hover { box-shadow: 6px 6px 0 var(--paper); }

.ach-icon {
  width: 56px; height: 56px;
  margin: 0 auto 0.6rem;
  background: var(--surface-2);
  border: 2px solid var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--red);
}
.ach-name {
  font-family: var(--font-head);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--paper);
  margin-bottom: 0.25rem;
  line-height: 1;
}
.ach-desc {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--paper-dim);
  line-height: 1.4;
}

.ach-earned::before {
  content: 'EARNED';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  background: var(--red);
  color: #fff;
  font-family: var(--font-head);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  padding: 2px 8px;
  border: 2px solid var(--paper);
  z-index: 2;
}
.ach-earned .ach-icon {
  background: var(--red);
  color: #fff;
}

.ach-locked {
  opacity: 0.55;
  filter: grayscale(0.4);
}
.ach-locked .ach-icon {
  background: var(--surface-2);
  color: var(--text-muted);
  border-color: var(--text-muted);
}
.ach-locked .ach-name { color: var(--paper-dim); }

.ach-progress {
  margin-top: 0.65rem;
  height: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.ach-progress-bar {
  height: 100%;
  background: var(--red);
}
.ach-progress-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--paper);
  mix-blend-mode: difference;
}

/* ── REVIEWS ──────────────────────── */

/* Per-CDLC head on /cdlc/:id */
.cdlc-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.cdlc-eyebrow {
  font-family: var(--font-head);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--red);
  font-size: 0.7rem;
  margin-bottom: 0.3rem;
}
.cdlc-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  line-height: 0.9;
  margin-bottom: 0.4rem;
}
.cdlc-artist {
  font-family: var(--font-type);
  color: var(--red);
  font-size: 1.15rem;
  text-decoration: none;
}
.cdlc-artist:hover { color: var(--paper); }
.cdlc-arrangements { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 0.75rem; }

/* Summary cards (Accuracy / Difficulty / Quality / Count) */
.review-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}
.review-summary-card {
  background: var(--surface);
  border: 2px solid var(--paper);
  padding: 1rem 1.25rem;
  box-shadow: 4px 4px 0 var(--red);
}
.review-summary-card:nth-child(2n) { box-shadow: 4px 4px 0 var(--paper); }
.rs-label {
  font-family: var(--font-head);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.7rem;
  color: var(--paper-dim);
}
.rs-stars { display: flex; align-items: center; gap: 0.5rem; margin: 0.4rem 0; }
.rs-stars .star-row { color: var(--yellow); display: inline-flex; gap: 1px; font-size: 0.9rem; }
.rs-stars .star-row .far { color: var(--text-muted); }
.rs-stars .star-num {
  font-family: var(--font-head);
  font-size: 1.6rem;
  line-height: 1;
  color: var(--paper);
  letter-spacing: -0.01em;
}
.rs-foot {
  font-family: var(--font-type);
  font-size: 0.75rem;
  color: var(--paper-dim);
}
.review-summary-card.rs-count {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.rs-count-val {
  font-family: var(--font-head);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--red);
}
.rs-count-label {
  font-family: var(--font-head);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.7rem;
  color: var(--paper-dim);
  margin-top: 0.4rem;
}

/* Review form */
.review-section-title {
  font-family: var(--font-head);
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.rating-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px dashed var(--border);
}
.rating-row label {
  font-family: var(--font-head);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
  min-width: 6rem;
  color: var(--paper);
}
.rating-hint {
  font-family: var(--font-type);
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-left: auto;
}
.review-comment {
  flex: 1;
  font-family: var(--font-type);
  resize: vertical;
  min-height: 70px;
  padding-left: 1rem !important;
}
.review-form-actions { display: flex; gap: 0.75rem; padding-top: 1rem; }

/* Star radio input (clickable golden stars).
   DOM order is 5,4,3,2,1; row-reverse makes visual left-to-right read 1-5.
   :hover ~ label and :checked ~ label cascade later DOM siblings, which are
   the lower-rated visual positions to the left. */
.star-input {
  display: inline-flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 0.15rem;
}
.star-input input { display: none; }
.star-input label {
  font-size: 1.4rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.1s;
  letter-spacing: 0;
  text-transform: none;
  min-width: 0;
}
.star-input label:hover,
.star-input label:hover ~ label,
.star-input input:checked ~ label,
.star-input input:checked ~ label ~ label {
  color: var(--yellow);
}

/* Difficulty 3-button picker (Beginner / Intermediate / Advanced) */
.diff-input { display: inline-flex; gap: 0.5rem; flex-wrap: wrap; }
.diff-input input { display: none; }
.diff-input .diff-opt {
  font-family: var(--font-head);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.5rem 0.85rem;
  border: 2px solid var(--paper);
  background: transparent;
  color: var(--paper);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 2px 2px 0 var(--paper);
  min-width: 0;
}
.diff-input .diff-opt:hover { transform: translate(-1px,-1px); box-shadow: 3px 3px 0 var(--paper); }
.diff-input input:checked + .diff-opt-1 { background: var(--green);  color: #000; border-color: var(--green);  box-shadow: 3px 3px 0 var(--paper); }
.diff-input input:checked + .diff-opt-2 { background: var(--yellow); color: #000; border-color: var(--yellow); box-shadow: 3px 3px 0 var(--paper); }
.diff-input input:checked + .diff-opt-3 { background: var(--red);    color: #fff; border-color: var(--red);    box-shadow: 3px 3px 0 var(--paper); }

/* Review list */
.review-list { list-style: none; padding: 0; margin: 0; }
.review-item {
  padding: 1rem 0;
  border-bottom: 1px dashed var(--border);
}
.review-item:last-child { border-bottom: 0; }
.review-item-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.4rem;
}
.review-author { font-size: 0.85rem; }
.review-scores { display: flex; gap: 0.4rem; }
.rev-pip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-family: var(--font-head);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 2px 8px;
  color: var(--paper);
}
.rev-pip i { color: var(--red); font-size: 0.7rem; }
.review-comment-text {
  font-family: var(--font-type);
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--paper-dim);
  margin: 0.25rem 0 0;
}

/* Tiny review link on song page rows and match cards */
.review-pip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--paper);
  text-decoration: none;
  padding: 2px 0;
}
.review-pip i { color: var(--yellow); font-size: 0.78rem; }
.review-pip:hover { color: var(--red); }
.song-review-pip {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  color: var(--paper-dim);
  margin: 0;
  padding-bottom: 0.25rem;
  border-bottom: 1px dashed var(--border);
}

@media (max-width: 700px) {
  .review-summary-grid { grid-template-columns: 1fr 1fr; }
  .rating-row { flex-wrap: wrap; }
  .rating-row label { min-width: 100%; }
  .rating-hint { margin-left: 0; }
}

/* CDLC versions table on /song/:id: keep it inside the card on wide
   screens, let it scroll horizontally on narrow ones. */
.cdlc-table-scroll {
  width: 100%;
  overflow-x: auto;
}
.cdlc-table-scroll .cdlc-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}
.cdlc-table-scroll th,
.cdlc-table-scroll td {
  padding: 0.6rem 0.7rem;
  white-space: nowrap;
}
.cdlc-table-scroll th {
  font-family: var(--font-head);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper-dim);
  text-align: left;
  border-bottom: 2px solid var(--border);
}
.cdlc-table-scroll td { border-bottom: 1px dashed var(--border); font-size: 0.85rem; }
.cdlc-table-scroll tr:last-child td { border-bottom: 0; }

/* Responsive */
@media (max-width: 900px) {
  .hiw-row, .feature-grid-lg, .dash-action-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .nav-inner { padding: 0 1rem; }
}
@media (max-width: 600px) {
  .footer-inner { grid-template-columns: 1fr; }
  .dash-welcome-row { flex-direction: column; align-items: flex-start; }
  .hero-cta { flex-direction: column; align-items: stretch; }
}
