/* recordplayer.co.uk — design: "spec plate" — equipment nameplate type,
   monospace readouts, strobe-dot/groove motifs drawn from real turntable anatomy. */

:root {
  /* content surfaces (theme-adaptive) */
  --bg: #EDEAE2;
  --bg-panel: #F8F5EF;
  --text: #17130F;
  --text-muted: #6B6259;
  --line: #DAD3C3;
  --accent: #FF4B1F;      /* strobe-lamp neon orange */
  --accent-ink: #FFFFFF;
  --accent-2: #1F7A6C;    /* oscilloscope teal, sparing use */
  --win-bg: rgba(255, 75, 31, 0.10);

  /* fixed dark "control panel" band — header, hero, footer never invert */
  --panel-bg: #100E12;
  --panel-ink: #F2ECE0;
  --panel-muted: #A79F91;
  --panel-line: #2A2530;

  --radius: 5px;
  --font-display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --font-body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14121A;
    --bg-panel: #1C1922;
    --text: #F1ECE2;
    --text-muted: #A79E90;
    --line: #322C38;
    --accent: #FF6A3D;
    --accent-2: #4FC3B0;
    --win-bg: rgba(255, 106, 61, 0.14);
  }
}
:root[data-theme="dark"] {
  --bg: #14121A; --bg-panel: #1C1922; --text: #F1ECE2; --text-muted: #A79E90;
  --line: #322C38; --accent: #FF6A3D; --accent-2: #4FC3B0; --win-bg: rgba(255, 106, 61, 0.14);
}
:root[data-theme="light"] {
  --bg: #EDEAE2; --bg-panel: #F8F5EF; --text: #17130F; --text-muted: #6B6259;
  --line: #DAD3C3; --accent: #FF4B1F; --accent-2: #1F7A6C; --win-bg: rgba(255, 75, 31, 0.10);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* free cross-fade between pages in browsers that support MPA view transitions */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 16px; line-height: 1.6;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr-only {
  position: absolute !important; width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important; overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important;
}
.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 1000; padding: 9px 14px;
  background: var(--accent); color: var(--accent-ink); border-radius: var(--radius);
  font-weight: 700; text-decoration: none; transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
main:focus { outline: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; } }

h1, h2 {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -0.01em;
  line-height: 1.02; text-wrap: balance; margin: 0 0 0.4em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 {
  font-family: var(--font-mono); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.07em; font-size: 0.95rem; color: var(--text-muted);
  border-top: 1px solid var(--line); padding-top: 14px; margin-top: 2.4em;
}
h3 {
  font-family: var(--font-body); font-weight: 600; font-size: 1.05rem;
  margin: 1.3em 0 0.3em; text-wrap: balance;
}
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 22px; }
.section { padding: 30px 22px 6px; }
.section h2:first-child { margin-top: 0; }
.count { color: var(--text-muted); font-family: var(--font-mono); font-weight: 400; font-size: 0.65em; text-transform: none; letter-spacing: 0; }
.tiny { font-size: 0.7em; font-weight: 400; }
.crumbs { font-family: var(--font-mono); color: var(--text-muted); font-size: 0.78rem; margin: 0; letter-spacing: 0.02em; }
.crumbs a { text-decoration: none; border-bottom: 1px solid var(--line); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 5px; list-style: none; padding: 0; margin: 0; }
.crumbs li { display: inline-flex; gap: 5px; align-items: center; }
.crumb-sep { opacity: 0.65; }
.tagline { color: var(--text-muted); margin-top: -0.5em; font-family: var(--font-mono); font-size: 0.9rem; }
.notable { border-left: 2px solid var(--accent); padding-left: 14px; color: var(--text-muted); font-style: italic; margin: 1.2em 0; }
.know-list { margin: 0.6em 0 1.4em; padding-left: 1.3em; }
.know-list li { margin: 0.5em 0; color: var(--text); }
.know-list li::marker { color: var(--accent); }
.doc-links { display: flex; gap: 10px; flex-wrap: wrap; }
.verified-note { font-family: var(--font-mono); font-size: 0.82rem; color: var(--accent-2); margin-top: -0.6em; }
.price-line { font-family: var(--font-mono); font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.price-line strong { color: var(--accent); font-size: 1.5em; font-weight: 600; }

.chip { font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.05em; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); }
.chip-current { color: var(--accent-2); border-color: var(--accent-2); }
.chip-gone { color: var(--text-muted); }

/* header — always the dark control-panel band */
.site-head { background: var(--panel-bg); color: var(--panel-ink); position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--panel-line); }
.site-head nav { display: flex; align-items: center; gap: clamp(10px, 1.3vw, 22px); padding: 12px 22px; max-width: 1360px; flex-wrap: nowrap; }
.logo { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--panel-ink); flex-shrink: 0; }
.logo-mark { width: 26px; height: 26px; color: var(--panel-ink); flex-shrink: 0; }
.logo-word { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; letter-spacing: -0.01em; }
.logo-word em { font-style: normal; color: var(--accent); font-weight: 600; }
.nav-links { display: flex; gap: clamp(9px, 1vw, 18px); flex-wrap: nowrap; }
.nav-links a {
  color: var(--panel-muted); text-decoration: none; font-family: var(--font-mono);
  font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em;
  border-bottom: 1px solid transparent; padding-bottom: 2px;
}
.nav-links a:hover { color: var(--panel-ink); border-color: var(--accent); }
.nav-links a[aria-current="page"] { color: var(--panel-ink); border-color: var(--accent); }
.nav-menu { display: none; position: relative; }
.nav-menu summary {
  list-style: none; cursor: pointer; border: 1px solid var(--panel-line); border-radius: 999px;
  padding: 5px 11px; color: var(--panel-muted); font-family: var(--font-mono);
  font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase;
}
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary:hover, .nav-menu[open] summary { color: var(--panel-ink); border-color: var(--accent); }
.nav-menu-panel {
  position: absolute; right: 0; top: calc(100% + 10px); width: min(330px, calc(100vw - 44px));
  background: var(--panel-bg); border: 1px solid var(--panel-line); border-radius: var(--radius);
  box-shadow: 0 24px 48px -22px rgba(0, 0, 0, 0.75); padding: 12px; z-index: 80;
}
.nav-menu-links { display: grid; }
.nav-menu-links a {
  color: var(--panel-muted); text-decoration: none; padding: 9px 8px;
  border-bottom: 1px solid var(--panel-line); font-family: var(--font-mono); font-size: 0.78rem;
}
.nav-menu-links a[aria-current="page"], .nav-menu-links a:hover { color: var(--panel-ink); }
.mobile-search { display: flex; gap: 7px; margin-top: 12px; position: relative; }
.mobile-search input {
  flex: 1; min-width: 0; background: #1A1720; border: 1px solid var(--panel-line); color: var(--panel-ink);
  border-radius: var(--radius); padding: 8px 10px; font: inherit;
}
.nav-search { margin-left: auto; position: relative; flex-shrink: 0; }
.nav-search input {
  background: #1A1720; border: 1px solid var(--panel-line); color: var(--panel-ink);
  border-radius: var(--radius); padding: 7px 14px; width: 210px; font-family: var(--font-body); font-size: 0.88rem;
}
.nav-search input::placeholder { color: var(--panel-muted); }

/* theme toggle — auto → light → dark */
.theme-btn {
  background: transparent; border: 1px solid var(--panel-line); color: var(--panel-muted);
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.1em;
  padding: 5px 11px; border-radius: 999px; cursor: pointer; flex-shrink: 0;
}
.theme-btn:hover { color: var(--panel-ink); border-color: var(--accent); }

/* instant-search dropdown — always the dark control-panel surface, whatever the page theme */
.hero-search { position: relative; }
.ta-box {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 100%; z-index: 60;
  background: var(--panel-bg); border: 1px solid var(--panel-line); border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 20px 44px -18px rgba(0, 0, 0, 0.65);
}
.nav-search .ta-box { left: auto; right: 0; width: 320px; }
.ta-box a {
  display: flex; align-items: center; gap: 11px; padding: 9px 13px;
  text-decoration: none; color: var(--panel-ink); border-bottom: 1px solid var(--panel-line);
}
.ta-box a:last-child { border-bottom: none; }
.ta-box a:hover, .ta-box a.ta-on { background: #1A1720; }
.ta-disc { width: 15px; height: 15px; border-radius: 50%; background: var(--accent); position: relative; flex-shrink: 0; }
.ta-disc::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--panel-bg); }
.ta-txt { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.ta-txt strong { font-size: 0.88rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ta-txt em { font-style: normal; font-family: var(--font-mono); font-size: 0.68rem; color: var(--panel-muted); }
.ta-empty { padding: 12px 14px; color: var(--panel-muted); font-family: var(--font-mono); font-size: 0.78rem; }

/* scroll-reveal: JS toggles .is-in when in view; instant + visible with no JS or reduced motion */
.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
  .js .reveal.is-in { opacity: 1; transform: none; }
}

/* hero */
/* overflow stays visible so the instant-search dropdown can escape the band;
   nothing inside the hero extends past it horizontally */
.hero { background: var(--panel-bg); color: var(--panel-ink); padding: 54px 0 44px; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: radial-gradient(var(--panel-line) 1px, transparent 1px);
  background-size: 22px 22px; mask-image: radial-gradient(ellipse 60% 90% at 78% 40%, #000 0%, transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; }
.eyebrow { display: block; font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent); margin-bottom: 14px; }
.hero h1 { color: var(--panel-ink); }
.hero .lede { font-size: 1.08rem; max-width: 40em; color: var(--panel-muted); }
.hero-search { display: flex; gap: 10px; max-width: 520px; margin: 22px 0 20px; }
.hero-search input { flex: 1; padding: 12px 16px; border-radius: var(--radius); border: 1px solid var(--panel-line); background: #1A1720; color: var(--panel-ink); font-size: 1rem; font-family: var(--font-body); }
.hero-search input::placeholder { color: var(--panel-muted); }
.hero-stats { display: flex; gap: 28px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 0.82rem; color: var(--panel-muted); border-top: 1px solid var(--panel-line); padding-top: 16px; }
.hero-stats strong { display: block; color: var(--accent); font-size: 1.5rem; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.1; }
.hero-visual { display: flex; justify-content: center; }
.hero-art { width: 100%; max-width: 400px; height: auto; }
.art-rim { fill: none; stroke: var(--panel-line); stroke-width: 1.4; }
.art-platter circle:not(.art-spindle) { fill: none; stroke: var(--panel-muted); stroke-width: 1; }
.art-spindle { fill: var(--accent); }
.art-platter { transform-origin: 230px 230px; animation: spin 14s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.art-pivot { fill: var(--panel-ink); }
.art-tube { stroke: var(--panel-muted); stroke-width: 2.4; stroke-linecap: round; }
.art-headshell { fill: var(--accent); }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero-visual { order: -1; max-width: 260px; margin: 0 auto; } }

/* brand marquee — a slow-scrolling strip under the hero, purely ambient (the real,
   linked brand list lives further down the page in an accessible pill-row) */
.marquee { background: var(--panel-bg); border-bottom: 1px solid var(--panel-line); overflow: hidden; }
.marquee-track { display: flex; width: max-content; animation: marquee-scroll 50s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { font-family: var(--font-mono); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--panel-muted); padding: 13px 24px; white-space: nowrap; border-right: 1px solid var(--panel-line); }
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; flex-wrap: wrap; width: auto; } }

/* product-page hero — a compact version of the homepage hero: the deck's own
   record label, spinning ambiently, beside title/price/actions on the dark band */
.player-hero { background: var(--panel-bg); color: var(--panel-ink); padding: 38px 0 32px; position: relative; overflow: hidden; }
.player-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: radial-gradient(var(--panel-line) 1px, transparent 1px);
  background-size: 22px 22px; mask-image: radial-gradient(ellipse 55% 85% at 12% 30%, #000 0%, transparent 70%);
}
.player-hero-grid { display: grid; grid-template-columns: auto 1fr; gap: 34px; align-items: center; position: relative; }
.player-hero-badge { flex-shrink: 0; }
.player-hero-badge .rlabel-badge { width: 148px; height: 148px; }
.player-hero-badge .rlabel { animation: rlabel-spin 10s linear infinite; transform-origin: 50% 50%; }
.player-hero-photo {
  flex-shrink: 0; width: 260px; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden;
  background: #1A1720; border: 1px solid var(--panel-line); display: flex; align-items: center; justify-content: center;
}
.player-hero-photo img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.player-hero-copy { min-width: 0; }
.player-hero-copy .crumbs { color: var(--panel-muted); }
.player-hero-copy .crumbs a { border-color: var(--panel-line); }
.player-hero-copy h1 { color: var(--panel-ink); margin-top: 0.3em; }
.player-hero-copy .tagline { color: var(--panel-muted); }
.player-hero-copy .chip-gone { color: var(--panel-muted); border-color: var(--panel-line); }
.player-hero-copy .chip-current { border-color: var(--accent-2); color: var(--accent-2); }
.player-hero-copy .price-line { color: var(--panel-ink); }
@media (max-width: 700px) {
  .player-hero-grid { grid-template-columns: 1fr; text-align: center; }
  .player-hero-badge, .player-hero-photo { justify-self: center; }
  .player-hero-copy .doc-links { justify-content: center; }
}

/* compare-page "versus" hero — two labels face off; the left spins at a scaled
   33⅓ rpm, the right at a scaled 45, because of course they do */
.vs-hero { text-align: center; }
.vs-hero::before { mask-image: radial-gradient(ellipse 75% 95% at 50% 15%, #000 0%, transparent 72%); }
.vs-hero .crumbs { color: var(--panel-muted); }
.vs-hero .crumbs a { border-color: var(--panel-line); }
.vs-hero h1 { color: var(--panel-ink); margin: 0.5em auto 0; max-width: 18em; font-size: clamp(1.7rem, 4vw, 2.6rem); }
.vs-hero h1 em { font-style: normal; color: var(--accent); font-family: var(--font-mono); font-size: 0.55em; text-transform: uppercase; padding: 0 0.3em; }
.vs-grid { display: flex; justify-content: center; align-items: flex-start; gap: clamp(18px, 6vw, 70px); margin: 26px 0 6px; position: relative; }
.vs-side { display: flex; flex-direction: column; align-items: center; gap: 9px; text-decoration: none; color: var(--panel-ink); max-width: 200px; }
.vs-side .rlabel-badge { width: 116px; height: 116px; }
.vs-side:first-child .rlabel { animation: rlabel-spin 10.8s linear infinite; }
.vs-side:last-child .rlabel { animation: rlabel-spin 8s linear infinite; }
.vs-side:hover .vs-name { color: var(--panel-ink); border-color: var(--accent); }
.vs-photo {
  width: 168px; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden;
  background: #1A1720; border: 1px solid var(--panel-line); display: flex; align-items: center; justify-content: center;
}
.vs-photo img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
@media (max-width: 480px) { .vs-side .rlabel-badge { width: 84px; height: 84px; } .vs-photo { width: 110px; } }
.vs-name { font-family: var(--font-mono); font-size: 0.78rem; color: var(--panel-muted); border-bottom: 1px solid transparent; padding-bottom: 2px; }
.vs-price { font-family: var(--font-mono); font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; }
.vs-mark { font-family: var(--font-display); font-weight: 900; font-size: clamp(1.8rem, 4.5vw, 3rem); color: var(--accent); align-self: center; line-height: 1; }
@media (max-width: 480px) { .vs-side .rlabel-badge { width: 84px; height: 84px; } }

/* vintage hub decade plates */
.decade-head {
  font-family: var(--font-display); font-weight: 800; font-size: 2.1rem; color: var(--text);
  text-transform: none; letter-spacing: -0.01em; display: flex; align-items: baseline; gap: 14px;
  scroll-margin-top: 80px;
}
.decade-head .count { font-size: 0.42em; }

/* 404 — the runout groove */
.notfound { text-align: center; padding-top: 54px; padding-bottom: 40px; }
.notfound .nf-badge { width: 132px; height: 132px; margin: 0 auto 20px; }
.notfound .nf-badge .rlabel { animation: rlabel-spin 10.8s linear infinite; }
.notfound p { max-width: 34em; margin-left: auto; margin-right: auto; }
.notfound .hero-search { margin: 24px auto 18px; justify-content: center; }
.notfound .pill-row { justify-content: center; }

/* brand-page "spec plate" stat strip */
.stat-strip {
  display: flex; gap: 30px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 0.8rem;
  color: var(--text-muted); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 14px 0; margin: 20px 0;
}
.stat-strip strong { display: block; color: var(--accent); font-size: 1.45rem; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.15; }

/* directory filters */
.filter-panel {
  display: grid; grid-template-columns: repeat(6, minmax(120px, 1fr)); gap: 12px;
  align-items: end; background: var(--bg-panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px; margin: 18px 0;
}
.filter-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.filter-field > span {
  color: var(--text-muted); font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.filter-field select, .filter-field input {
  width: 100%; min-height: 42px; padding: 8px 10px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--bg); color: var(--text); font: inherit;
}
.filter-actions { display: flex; gap: 8px; align-items: center; }
.filter-actions .btn { min-height: 42px; }
.filter-reset { font-family: var(--font-mono); font-size: 0.76rem; }
.filter-summary { color: var(--text-muted); font-family: var(--font-mono); font-size: 0.82rem; }
.empty-state { border: 1px dashed var(--line); border-radius: var(--radius); padding: 24px; background: var(--bg-panel); }
@media (max-width: 1000px) { .filter-panel { grid-template-columns: repeat(3, minmax(150px, 1fr)); } }
@media (max-width: 620px) { .filter-panel { grid-template-columns: 1fr 1fr; } .filter-actions { grid-column: 1 / -1; } }
@media (max-width: 420px) { .filter-panel { grid-template-columns: 1fr; } .filter-actions { grid-column: auto; } }

/* buttons, tags */
.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); border: none; padding: 11px 20px; border-radius: var(--radius); font-family: var(--font-body); font-size: 0.92rem; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }
.btn-ghost:hover { background: var(--accent); color: var(--accent-ink); }
.btn-small { padding: 5px 12px; font-size: 0.8rem; border-radius: 4px; }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.pill {
  background: var(--bg-panel); border: 1px solid var(--line); border-radius: 4px;
  padding: 7px 13px; text-decoration: none; color: var(--text);
  font-family: var(--font-mono); font-size: 0.8rem;
}
.pill:hover, .pill-on { border-color: var(--accent); color: var(--accent); }
.pill-on { background: var(--win-bg); font-weight: 600; }
.pill em { font-style: normal; color: var(--text-muted); }
.pill:hover em, .pill-on em { color: inherit; opacity: 0.7; }

/* cards */
.grid { display: grid; gap: 14px; margin: 16px 0; }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); align-items: start; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.card {
  background: var(--bg-panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; text-decoration: none; color: var(--text); display: flex; flex-direction: column; gap: 7px;
  transition: border-color 0.15s, transform 0.15s; overflow: hidden;
}
.card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 10px 24px -14px var(--accent); }
.card:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }

/* product photo — bleeds to the card's edges above the padded text block */
.card-photo {
  display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3;
  margin: -16px -16px 2px; background: var(--win-bg);
}
.card-photo img { width: 100%; height: 100%; object-fit: contain; padding: 10px; mix-blend-mode: var(--photo-blend, normal); }
@media (prefers-color-scheme: dark) { .card-photo { --photo-blend: normal; background: #221f29; } }
:root[data-theme="dark"] .card-photo { background: #221f29; }
:root[data-theme="light"] .card-photo { background: var(--win-bg); }
.card-photo-fallback { background: var(--panel-bg); }
.card-photo-fallback .rlabel-badge { width: 64px; height: 64px; }
.card strong { font-size: 1.02rem; font-weight: 600; line-height: 1.25; }
.card-top { display: flex; align-items: center; gap: 12px; }
.card-top-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cat-icon { width: 15px; height: 15px; color: var(--accent); flex-shrink: 0; }
.card-cat { font-family: var(--font-mono); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }
.dot-gone { width: 5px; height: 5px; border-radius: 50%; background: var(--text-muted); margin-left: auto; align-self: flex-start; margin-top: 6px; }
.card-bits { color: var(--text-muted); font-size: 0.85rem; }
.card-price { font-family: var(--font-mono); font-weight: 600; color: var(--accent); margin-top: auto; font-variant-numeric: tabular-nums; }
.card-price em { font-weight: 400; font-style: normal; color: var(--text-muted); font-size: 0.8em; }
.cat-grid .cat-tile { gap: 10px; }
.cat-tile .cat-icon { width: 22px; height: 22px; }
.cat-tile span { color: var(--text-muted); font-size: 0.9rem; }

/* the record-label badge — the site's signature motif, reused card→hero */
.rlabel-badge { flex-shrink: 0; display: block; width: 40px; height: 40px; }
.rlabel { display: block; width: 100%; height: 100%; overflow: visible; transform-origin: 50% 50%; }
.rlabel-vinyl { fill: var(--panel-bg); }
.rlabel-groove { fill: none; stroke: var(--panel-line); stroke-width: 0.7; }
.rlabel-disc { fill: var(--accent); }
.rlabel-ring { fill: none; stroke: var(--accent-ink); stroke-width: 0.8; opacity: 0.5; }
.rlabel-icon { color: var(--accent-ink); }
.rlabel-hole { fill: var(--bg-panel); }
@keyframes rlabel-spin { to { transform: rotate(360deg); } }
.card:hover .rlabel, .pick-card:hover .rlabel { transform-origin: 50% 50%; animation: rlabel-spin 2.2s linear infinite; }

/* editorial "top pick" feature block — one large card beside a stacked trio */
.pick-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; margin: 16px 0; }
.pick-card {
  border-left: 3px solid var(--accent); padding: 0; background: var(--bg-panel);
  position: relative; overflow: hidden;
}
.pick-card::after {
  content: ""; position: absolute; top: -60px; right: -60px; width: 220px; height: 220px; pointer-events: none;
  background: radial-gradient(circle, var(--win-bg) 0%, transparent 70%); z-index: 1;
}
.pick-card .card-photo { aspect-ratio: 16 / 10; margin: 0; position: relative; z-index: 0; }
.pick-card .card-top, .pick-card .card-bits, .pick-card .card-price { padding-left: 28px; padding-right: 28px; }
.pick-card .card-top { align-items: flex-start; padding-top: 22px; }
.pick-card .card-price { padding-bottom: 26px; }
.pick-card .rlabel-badge { width: 60px; height: 60px; }
.pick-card .card-cat { font-size: 0.76rem; }
.pick-card strong { font-family: var(--font-display); font-weight: 800; font-size: 2.1rem; line-height: 1.03; }
.pick-card .card-bits { font-size: 0.95rem; }
.pick-card .card-price { font-size: 1.35rem; }
.pick-stack { display: grid; gap: 16px; }
@media (max-width: 760px) { .pick-grid { grid-template-columns: 1fr; } }

/* tables */
.table-scroll { overflow-x: auto; margin: 14px 0; border-radius: var(--radius); }
.table-scroll:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.spec-table { border-collapse: collapse; width: 100%; background: var(--bg-panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 0.94rem; }
.spec-table th, .spec-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table tbody th { width: 200px; color: var(--text-muted); font-weight: 500; font-family: var(--font-mono); font-size: 0.85rem; }
.spec-table tbody td { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.spec-table thead th { background: var(--panel-bg); color: var(--panel-ink); font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.spec-table thead a { color: var(--panel-ink); text-decoration: none; }
.spec-table thead a:hover { color: var(--accent); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: none; }
.compare-table td.highlight { background: var(--win-bg); border-left: 3px solid var(--accent); font-weight: 600; }

/* live Redbrain offers — loaded from the same-origin API after the page renders */
.live-offers { margin-top: 2.4em; }
.live-offers .offers-status { margin: 0.45rem 0 0.8rem; color: var(--text-muted); }
.live-offers[aria-busy="true"] .offers-status::before {
  content: ""; display: inline-block; width: 0.65rem; height: 0.65rem; margin-right: 0.55rem;
  border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%;
  animation: offer-spin 0.8s linear infinite;
}
@keyframes offer-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .live-offers[aria-busy="true"] .offers-status::before { animation: none; } }
.offer-list { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-panel); }
.offer-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 14px; align-items: center; padding: 13px 14px; border-bottom: 1px solid var(--line);
}
.offer-row:last-child { border-bottom: 0; }
.offer-copy { min-width: 0; }
.offer-merchant { display: block; font-size: 0.96rem; }
.offer-title {
  display: block; overflow: hidden; margin-top: 0.15rem; color: var(--text-muted);
  font-size: 0.8rem; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap;
}
.offer-stock {
  display: inline-block; white-space: nowrap; padding: 2px 8px; border: 1px solid var(--accent-2);
  border-radius: 999px; color: var(--accent-2); font-family: var(--font-mono);
  font-size: 0.68rem; letter-spacing: 0.04em; text-transform: uppercase;
}
.offer-price { white-space: nowrap; color: var(--accent); font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.offer-link { white-space: nowrap; }
.offers-disclosure { margin: 0.65rem 0 0; color: var(--text-muted); font-size: 0.78rem; }
.offers-empty .offers-status, .offers-error .offers-status { margin-bottom: 0; }
.purchase-panel { min-width: 0; }
.purchase-panel .live-offers { margin-top: 0; }
.purchase-panel > h3 { margin-top: 2rem; }
.live-offers-compact h3 { margin-bottom: 0.35rem; }
.live-offers-compact .offer-row { grid-template-columns: minmax(0, 1fr) auto; gap: 9px 12px; }
.live-offers-compact .offer-copy { grid-column: 1 / -1; }
.live-offers-compact .offer-title { white-space: normal; }
.live-offers-compact .offer-stock { justify-self: start; }
.live-offers-compact .offer-price { justify-self: end; }
.live-offers-compact .offer-link { grid-column: 1 / -1; justify-self: start; }
@media (max-width: 720px) {
  .offer-row { grid-template-columns: minmax(0, 1fr) auto; gap: 9px 12px; }
  .offer-copy { grid-column: 1 / -1; }
  .offer-title { white-space: normal; }
  .offer-stock { justify-self: start; }
  .offer-price { justify-self: end; }
  .offer-link { grid-column: 1 / -1; justify-self: start; }
}

/* compare form */
.compare-form { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; margin: 22px 0; }
.compare-field { display: flex; flex-direction: column; gap: 5px; flex: 1 1 260px; }
.compare-field > span { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.compare-form select { width: 100%; padding: 11px 12px; border-radius: var(--radius); border: 1px solid var(--line); font-size: 0.95rem; background: var(--bg-panel); color: var(--text); font-family: var(--font-body); }
.compare-form .vs { align-self: center; padding-bottom: 10px; font-family: var(--font-mono); font-weight: 700; color: var(--accent); text-transform: uppercase; font-size: 0.85rem; }
.form-error { color: var(--accent); font-weight: 600; }

/* prose + footer */
.prose { max-width: 44em; }
.prose p { margin: 1em 0; }
.site-foot { background: var(--panel-bg); color: var(--panel-ink); margin-top: 56px; padding: 40px 0 26px; font-size: 0.9rem; border-top: 1px solid var(--panel-line); }
.site-foot .logo { margin-bottom: 10px; }
.foot-cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 26px; }
.foot-label { display: block; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.7rem; color: var(--panel-muted); margin-bottom: 10px; }
.foot-cols a { display: block; color: var(--panel-muted); text-decoration: none; margin: 5px 0; font-size: 0.88rem; }
.foot-cols a:hover { color: var(--accent); }
.foot-cols p { color: var(--panel-muted); font-size: 0.88rem; max-width: 32em; }
.foot-small { opacity: 0.55; margin-top: 26px; font-size: 0.78rem; border-top: 1px solid var(--panel-line); padding-top: 18px; }

@media (max-width: 1180px) {
  .site-head nav { flex-wrap: nowrap; gap: 10px; position: relative; }
  .nav-links, .nav-search { display: none; }
  .nav-menu { display: block; margin-left: auto; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  h1 { font-size: 1.9rem; }
  .site-head nav { padding: 10px 14px; }
  .logo-word { font-size: 1.08rem; }
  .theme-btn { padding-inline: 9px; }
  .hero { padding-top: 38px; }
  .hero-search { flex-direction: column; }
  .hero-search .btn { width: 100%; }
  .spec-table tbody th { width: 130px; }
  .foot-cols { grid-template-columns: 1fr; }
}

/* ---- stylus layer ---- */
.stylus-answer { border: 1px solid var(--line, rgba(128,128,128,.25)); border-left: 4px solid var(--accent); border-radius: 8px; padding: 1rem 1.25rem; margin: 1rem 0 1.5rem; }
.stylus-part-line { font-size: 1.1rem; margin: 0 0 .5rem; }
.remind-box { border: 1px solid var(--line, rgba(128,128,128,.25)); border-radius: 10px; padding: 1.25rem 1.5rem; margin: 2rem 0; background: color-mix(in srgb, var(--accent) 6%, transparent); }
.remind-box h2 { margin-top: 0; }
.remind-grid { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: end; }
.remind-grid label { display: flex; flex-direction: column; gap: .3rem; font-size: .85rem; font-weight: 600; }
.remind-grid input[type=email], .remind-grid select { padding: .55rem .7rem; border: 1px solid var(--line, rgba(128,128,128,.35)); border-radius: 6px; background: transparent; color: inherit; min-width: 220px; font: inherit; }
.remind-small { font-size: .8rem; opacity: .7; margin: .6rem 0 0; }
.remind-done { border-left: 4px solid #2e9e5b; }
.hp { position: absolute !important; left: -9999px !important; height: 1px; width: 1px; overflow: hidden; }
.foot-note { font-size: .85rem; opacity: .75; }
