/* ==========================================================================
   Auto-Review — modern automotive UI
   1. Tokens & reset      6. Hero            11. Tables
   2. Base typography     7. Sections/feed   12. Compare
   3. Layout              8. Ads             13. Search/prose
   4. Buttons             9. Outstream       14. Footer/errors
   5. Header/nav         10. Catalogue       15. Motion & responsive
   ========================================================================== */

/* 1. Tokens & reset ------------------------------------------------------- */
:root {
  --bg: #0b0e14;
  --bg-alt: #0f131d;
  --surface: #141a26;
  --surface-2: #1a2130;
  --surface-3: #212a3c;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);

  --text: #eef2f9;
  --text-soft: #a7b2c6;
  --text-dim: #74809a;

  --accent: #ff4d2d;
  --accent-2: #ffb020;
  --accent-soft: rgba(255, 77, 45, 0.14);
  --cyan: #42d7ff;
  --good: #3ddc97;

  --grad-accent: linear-gradient(135deg, #ff4d2d 0%, #ffb020 100%);
  --grad-surface: linear-gradient(160deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012));

  --radius-s: 10px;
  --radius: 16px;
  --radius-l: 22px;

  --shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.9);
  --shadow-lg: 0 34px 70px -32px rgba(0, 0, 0, 0.95);
  --glow: 0 0 0 1px rgba(255, 77, 45, 0.35), 0 16px 44px -18px rgba(255, 77, 45, 0.55);

  --header-h: 74px;
  --container: 1280px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  --font: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ambient background glow that keeps the dark UI from feeling flat. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 420px at 78% -8%, rgba(255, 77, 45, 0.12), transparent 62%),
    radial-gradient(720px 380px at 8% 4%, rgba(66, 215, 255, 0.08), transparent 60%);
}

img, svg, video { max-width: 100%; height: auto; display: block; }
img { background: var(--surface-2); }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }

h1, h2, h3, h4 { margin: 0; line-height: 1.18; font-weight: 750; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: -100px; left: 16px;
  z-index: 300;
  padding: 12px 18px;
  background: var(--accent);
  color: #fff;
  border-radius: 0 0 var(--radius-s) var(--radius-s);
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0; }

/* 3. Layout --------------------------------------------------------------- */
.main { position: relative; z-index: 1; padding-bottom: 72px; }

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}
.container--narrow { width: min(100% - 32px, 820px); }

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: start;
}
.layout__main { min-width: 0; }

.section { padding: 56px 0 8px; }
.section--feed { padding-top: 40px; }

.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.section__title { font-size: clamp(22px, 2.6vw, 30px); }
.section__more {
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px dashed var(--line-strong);
  transition: color 0.2s var(--ease);
}
.section__more:hover { color: var(--accent-2); }

.page-head { padding: 28px 0 26px; }
.page-head__title { font-size: clamp(26px, 3.6vw, 40px); }
.page-head__sub { margin: 10px 0 0; color: var(--text-soft); }

.empty {
  padding: 40px 24px;
  text-align: center;
  color: var(--text-soft);
  background: var(--grad-surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}
.empty--wide { padding: 60px 24px; }

/* 4. Buttons -------------------------------------------------------------- */
.btn {
  --btn-bg: var(--surface-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--text);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.01em;
  transition: transform 0.18s var(--ease), box-shadow 0.25s var(--ease),
              background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--grad-accent);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 14px 32px -16px rgba(255, 77, 45, 0.9);
}
.btn--primary:hover { box-shadow: var(--glow); }

.btn--ghost { background: rgba(255, 255, 255, 0.04); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.09); border-color: var(--accent); }

.btn--mini { padding: 8px 14px; font-size: 13px; }
.btn--wide { padding: 15px 40px; }
.btn--full { width: 100%; }
.btn[disabled] { opacity: 0.55; pointer-events: none; }

.btn__spinner { display: none; width: 16px; height: 16px; }
.btn.is-loading .btn__spinner {
  display: block;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 5. Header / nav --------------------------------------------------------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 120;
  background: rgba(11, 14, 20, 0.72);
  backdrop-filter: saturate(150%) blur(16px);
  -webkit-backdrop-filter: saturate(150%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease),
              box-shadow 0.25s var(--ease);
}
.header.is-stuck {
  background: rgba(11, 14, 20, 0.94);
  border-bottom-color: var(--line);
  box-shadow: 0 12px 32px -24px #000;
}
.header__spacer { height: var(--header-h); }

.header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 22px;
}

.logo { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
.logo__mark {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 13px;
  background: rgba(255, 77, 45, 0.12);
  border: 1px solid rgba(255, 77, 45, 0.28);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.logo:hover .logo__mark { transform: rotate(-6deg) scale(1.05); box-shadow: var(--glow); }
.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__name { font-size: 19px; font-weight: 800; letter-spacing: -0.03em; }
.logo__accent {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.logo__tag { font-size: 10.5px; color: var(--text-dim); letter-spacing: 0.02em; }
.logo--footer .logo__name { font-size: 18px; }

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex: 1;
  justify-content: flex-end;
}
.nav__item { position: relative; }

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 15px;
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 15px;
  font-weight: 620;
  background: transparent;
  border: 1px solid transparent;
  transition: color 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.nav__link:hover,
.nav__link.is-active { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.nav__link.is-active { border-color: var(--line); }
.nav__chevron { transition: transform 0.25s var(--ease); }
[data-dropdown].is-open .nav__chevron { transform: rotate(180deg); }
[data-dropdown].is-open .nav__link--drop { color: var(--text); background: rgba(255, 255, 255, 0.08); }

.dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  width: 460px;
  padding: 14px;
  transform: translate(-50%, -8px);
  background: rgba(20, 26, 38, 0.98);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
}
[data-dropdown].is-open .dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
.dropdown__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}
.dropdown__brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 11px;
  border-radius: var(--radius-s);
  color: var(--text-soft);
  font-weight: 600;
  font-size: 14.5px;
  transition: background 0.18s var(--ease), color 0.18s var(--ease), transform 0.18s var(--ease);
}
.dropdown__brand:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  transform: translateX(3px);
}
.dropdown__logo {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  flex-shrink: 0;
  border-radius: 9px;
  background: #fff;
  overflow: hidden;
}
.dropdown__logo img { width: 28px; height: 28px; object-fit: contain; background: transparent; }
.dropdown__initial { color: #0b0e14; font-weight: 800; font-size: 14px; }

.dropdown__all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 10px;
  padding: 12px;
  border-radius: var(--radius-s);
  background: var(--grad-accent);
  color: #fff;
  font-weight: 700;
  font-size: 14.5px;
  transition: filter 0.2s var(--ease), gap 0.2s var(--ease);
}
.dropdown__all:hover { filter: brightness(1.08); gap: 14px; }

/* search + autocomplete */
.search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(340px, 34vw);
  padding: 6px 6px 6px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), width 0.28s var(--ease);
}
.search:focus-within {
  border-color: rgba(255, 77, 45, 0.6);
  background: rgba(255, 255, 255, 0.08);
  width: min(400px, 40vw);
}
.search__icon { color: var(--text-dim); flex-shrink: 0; }
.search__input {
  flex: 1;
  min-width: 0;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 14.5px;
  outline: none;
}
.search__input::placeholder { color: var(--text-dim); }
.search__input::-webkit-search-cancel-button { filter: invert(0.6); }
.search__submit {
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--grad-accent);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  transition: filter 0.2s var(--ease);
}
.search__submit:hover { filter: brightness(1.1); }

.search--page {
  width: 100%;
  max-width: 720px;
  margin-bottom: 32px;
  padding: 8px 8px 8px 18px;
}

.suggest {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(460px, 92vw);
  max-height: min(66vh, 520px);
  overflow-y: auto;
  padding: 8px;
  background: rgba(20, 26, 38, 0.99);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 130;
}
.suggest[hidden] { display: none; }
.suggest__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 11px;
  border-radius: var(--radius-s);
  transition: background 0.15s var(--ease);
}
.suggest__item:hover,
.suggest__item.is-active { background: rgba(255, 255, 255, 0.08); }
.suggest__media {
  display: grid;
  place-items: center;
  width: 42px; height: 32px;
  flex-shrink: 0;
  border-radius: 7px;
  background: var(--surface-3);
  overflow: hidden;
  font-weight: 800;
  font-size: 13px;
  color: var(--text-dim);
}
.suggest__media img { width: 100%; height: 100%; object-fit: cover; }
.suggest__body { min-width: 0; }
.suggest__title {
  display: block;
  font-size: 14.5px;
  font-weight: 620;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.suggest__sub { display: block; font-size: 12px; color: var(--text-dim); }
.suggest__kind {
  margin-left: auto;
  flex-shrink: 0;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-2);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.suggest__empty { padding: 18px; text-align: center; color: var(--text-dim); font-size: 14px; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px; height: 44px;
  margin-left: auto;
  padding: 0;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.burger span {
  width: 19px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 6. Hero ----------------------------------------------------------------- */
/* The copy sits in the upper half so the arriving car stays unobstructed in
   the lower third of the frame. */
.hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: flex;
  align-items: flex-start;
  overflow: hidden;
  isolation: isolate;
}
.hero__scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}
.hero__scene::after {
  content: "";
  position: absolute;
  inset: 0;
}

.hero__stars circle { animation: twinkle 4s ease-in-out infinite; }
.hero__stars circle:nth-child(even) { animation-delay: 1.6s; }
@keyframes twinkle { 0%, 100% { opacity: 0.25; } 50% { opacity: 0.9; } }

.hero__range { transition: transform 0.5s var(--ease); }

/* The camera does not move, so neither do the markings — the road stays put
   and only the car covers ground. */
.hero__beams { opacity: 0; transition: opacity 0.18s linear; }
.hero__car.is-flashing .hero__beams { opacity: 1; }

/* Only the lit parts react to the flash; .hl is the dark lens housing. */
.hero__lights .hl-core { transition: opacity 0.12s linear, filter 0.12s linear; }
.hero__car .hero__lights .hl-core { filter: drop-shadow(0 0 6px rgba(255, 235, 180, 0.7)); }
.hero__car.is-flashing .hero__lights .hl-core { filter: drop-shadow(0 0 18px #fff3c4); }
.hero__car.is-dark .hero__lights .hl-core { opacity: 0.25; }

.drl { animation: drlPulse 3.2s ease-in-out infinite; filter: drop-shadow(0 0 4px rgba(190, 228, 255, 0.85)); }
@keyframes drlPulse { 0%, 100% { opacity: 0.75; } 50% { opacity: 1; } }

.hero__content {
  position: relative;
  z-index: 2;
  width: min(100% - 32px, var(--container));
  padding: 42px 0 0;
  text-align: center;
}
.hero__eyebrow {
  margin: 0 0 14px;
  color: var(--accent-2);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hero__title {
  font-size: clamp(32px, 6.2vw, 68px);
  line-height: 1.03;
  text-shadow: 0 6px 34px rgba(0, 0, 0, 0.75);
}
.hero__accent {
  display: inline-block;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lead {
  max-width: 620px;
  margin: 18px auto 0;
  color: #dde4f0;
  font-size: clamp(15px, 1.7vw, 18px);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.8);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  max-width: 680px;
  margin: 30px auto 0;
  padding: 14px 16px;
  background: rgba(11, 14, 20, 0.55);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.hero__stat { text-align: center; }
.hero__stat dt { color: var(--text-dim); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.08em; }
.hero__stat dd {
  margin: 3px 0 0;
  font-size: clamp(19px, 2.4vw, 27px);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Anchored left so it never sits on top of the arriving car. */
.hero__scroll {
  position: absolute;
  bottom: 24px;
  left: max(24px, calc((100vw - var(--container)) / 2));
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  color: var(--text-dim);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s var(--ease);
}
.hero__scroll:hover { color: var(--accent-2); }
.hero__mouse {
  display: block;
  width: 22px; height: 34px;
  border: 2px solid currentColor;
  border-radius: 12px;
  position: relative;
}
.hero__mouse span {
  position: absolute;
  top: 6px; left: 50%;
  width: 3px; height: 6px;
  margin-left: -1.5px;
  background: currentColor;
  border-radius: 2px;
  animation: wheelDrop 1.7s var(--ease) infinite;
}
@keyframes wheelDrop {
  0% { opacity: 0; transform: translateY(0); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: translateY(12px); }
}

/* 7. Sections / feed ------------------------------------------------------ */
.brand-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 14px;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}
.brand-strip::-webkit-scrollbar { height: 6px; }
.brand-strip::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 3px; }

.brand-chip {
  flex: 0 0 auto;
  width: 132px;
  padding: 16px 12px;
  text-align: center;
  scroll-snap-align: start;
  background: var(--grad-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.brand-chip:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 77, 45, 0.5);
  box-shadow: var(--shadow);
}
.brand-chip__logo {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  margin: 0 auto 10px;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}
.brand-chip__logo img { width: 42px; height: 42px; object-fit: contain; background: transparent; }
.brand-chip__initial { color: #0b0e14; font-size: 20px; font-weight: 800; }
.brand-chip__name { display: block; font-weight: 700; font-size: 14.5px; }
.brand-chip__count { display: block; margin-top: 2px; color: var(--text-dim); font-size: 11.5px; }

.feed { display: grid; gap: 18px; }

.card {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 20px;
  padding: 14px;
  background: var(--grad-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}
.card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-2);
}
.card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease);
}
.card:hover .card__media img { transform: scale(1.06); }
.card__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, 0.22) 50%, transparent 62%);
  transform: translateX(-110%);
  transition: transform 0.75s var(--ease);
}
.card:hover .card__shine { transform: translateX(110%); }

.card__body { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.card__meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  color: var(--text-dim);
  font-size: 12.5px;
}
.card__title { font-size: 20px; line-height: 1.28; }
.card__title a { transition: color 0.2s var(--ease); }
.card__title a:hover { color: var(--accent-2); }
.card__text {
  margin: 9px 0 0;
  color: var(--text-soft);
  font-size: 14.5px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__ph {
  display: block;
  width: 100%; height: 100%;
  min-height: 110px;
  border-radius: inherit;
}
.card__ph--1 { background: linear-gradient(135deg, #2a3550, #141a26); }
.card__ph--2 { background: linear-gradient(135deg, #3d2740, #141a26); }
.card__ph--3 { background: linear-gradient(135deg, #24404a, #141a26); }
.card__ph--4 { background: linear-gradient(135deg, #45332a, #141a26); }
.card__ph--5 { background: linear-gradient(135deg, #232f3d, #141a26); }
.card__ph--6 { background: linear-gradient(135deg, #372a4a, #141a26); }

.feed--compact { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.feed--compact .card { grid-template-columns: minmax(0, 1fr); }
.feed--compact .card__title { font-size: 16.5px; }
.feed--compact .card__text { display: none; }

.feed__more { display: flex; justify-content: center; padding: 32px 0 8px; }

.reveal { opacity: 0; transform: translateY(22px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }

/* sidebar */
/*
  The column itself scrolls with the page: a sticky container taller than the
  viewport freezes with its lower blocks unreachable. Only the rail at the end
  is sticky, and because it is the flex item that absorbs the leftover height,
  its ad travels inside its own box instead of over the blocks above it.
*/
.sidebar { display: flex; flex-direction: column; gap: 22px; }
.sidebar__rail { flex: 1 1 auto; min-height: 0; }
.sidebar__block {
  padding: 18px;
  background: var(--grad-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.sidebar__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 16px;
}
.sidebar__list { display: grid; gap: 10px; }
.sidebar__text { color: var(--text-soft); font-size: 14px; }

.row-card {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 6px;
  border-radius: 12px;
  transition: background 0.2s var(--ease);
}
.row-card:hover { background: rgba(255, 255, 255, 0.05); }
.row-card__media {
  aspect-ratio: 3 / 2;
  border-radius: 9px;
  overflow: hidden;
  background: var(--surface-2);
}
.row-card__media img { width: 100%; height: 100%; object-fit: cover; }
.row-card__title {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13.5px;
  font-weight: 620;
  line-height: 1.35;
}
.row-card__date { display: block; margin-top: 4px; color: var(--text-dim); font-size: 11.5px; }

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px;
  background:
    radial-gradient(600px 200px at 100% 0%, rgba(255, 77, 45, 0.22), transparent 70%),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
}
.cta__title { font-size: clamp(20px, 2.4vw, 28px); margin-bottom: 6px; }
.cta__text p { margin: 0; color: var(--text-soft); }

/* 8. Ads ------------------------------------------------------------------ */
.ad {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}
.ad__label {
  align-self: flex-start;
  color: var(--text-dim);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.ad__slot {
  display: grid;
  place-items: center;
  width: var(--ad-w-desktop);
  height: var(--ad-h-desktop);
  max-width: 100%;
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.03) 0 10px, transparent 10px 20px),
    var(--surface-2);
  border-radius: 8px;
  color: var(--text-dim);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.ad__size--mobile { display: none; }
/* Sticky only inside .sidebar__rail, whose height is the room left below the
   blocks above it — so the slot can never ride over them. */
.sidebar__rail .ad--sidebar { position: sticky; top: calc(var(--header-h) + 20px); }

/* 9. Outstream ------------------------------------------------------------ */
.outstream {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 110;
  width: 330px;
  max-width: calc(100vw - 32px);
  background: rgba(16, 21, 31, 0.97);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(26px) scale(0.97);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
}
.outstream.is-visible { opacity: 1; visibility: visible; transform: none; }
.outstream.is-closed { display: none; }
.outstream__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.04);
}
.outstream__label { color: var(--text-dim); font-size: 10.5px; letter-spacing: 0.09em; text-transform: uppercase; }
.outstream__close {
  display: grid;
  place-items: center;
  width: 24px; height: 24px;
  padding: 0;
  background: rgba(255, 255, 255, 0.07);
  border: 0;
  border-radius: 7px;
  color: var(--text-soft);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.outstream__close:hover { background: var(--accent); color: #fff; }
.outstream__frame { aspect-ratio: 16 / 9; background: #05070c; }
.outstream__video { width: 100%; height: 100%; object-fit: cover; }
.outstream__placeholder {
  display: grid;
  place-items: center;
  gap: 8px;
  height: 100%;
  color: var(--text-dim);
  font-size: 12px;
  text-align: center;
}

/* 10. Catalogue ----------------------------------------------------------- */
.alphabet {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 14px;
  margin-bottom: 22px;
  background: var(--grad-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.alphabet__letter {
  display: grid;
  place-items: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  font-weight: 700;
  font-size: 14px;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}
.alphabet__letter:hover { background: var(--grad-accent); color: #fff; transform: translateY(-2px); }

.filter-bar { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.filter-bar__input {
  flex: 1;
  max-width: 420px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-size: 14.5px;
  outline: none;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.filter-bar__input:focus { border-color: rgba(255, 77, 45, 0.6); background: rgba(255, 255, 255, 0.08); }
.filter-bar__input::placeholder { color: var(--text-dim); }
.filter-bar__hint { color: var(--text-dim); font-size: 13px; }

.brand-group { margin-bottom: 34px; scroll-margin-top: calc(var(--header-h) + 20px); }
.brand-group__letter {
  display: inline-block;
  margin-bottom: 14px;
  padding-bottom: 5px;
  font-size: 20px;
  border-bottom: 3px solid var(--accent);
}
.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.brand-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 12px;
  text-align: center;
  background: var(--grad-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.brand-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 77, 45, 0.5);
  box-shadow: var(--shadow);
}
.brand-card.is-hidden { display: none; }
.brand-card__logo {
  display: grid;
  place-items: center;
  width: 72px; height: 72px;
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
}
.brand-card__logo img { width: 54px; height: 54px; object-fit: contain; background: transparent; }
.brand-card__initial { color: #0b0e14; font-size: 26px; font-weight: 800; }
.brand-card__name { font-weight: 700; font-size: 15px; }
.brand-card__count { color: var(--text-dim); font-size: 12px; }

.entity-head {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 26px 0 30px;
}
.entity-head--wide { flex-wrap: wrap; align-items: flex-start; }
.entity-head__logo {
  display: grid;
  place-items: center;
  width: 96px; height: 96px;
  flex-shrink: 0;
  border-radius: 22px;
  background: #fff;
  overflow: hidden;
}
.entity-head__logo img { width: 72px; height: 72px; object-fit: contain; background: transparent; }
.entity-head__initial { color: #0b0e14; font-size: 34px; font-weight: 800; }
.entity-head__photo {
  width: min(100%, 460px);
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-2);
}
.entity-head__photo img { width: 100%; height: 100%; object-fit: cover; }
.entity-head__title { font-size: clamp(24px, 3.4vw, 38px); }
.entity-head__sub { margin: 8px 0 0; color: var(--text-soft); }

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}
.tile {
  display: flex;
  flex-direction: column;
  background: var(--grad-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.tile:hover { transform: translateY(-5px); border-color: rgba(255, 77, 45, 0.45); box-shadow: var(--shadow); }
.tile.is-hidden { display: none; }
.tile__media { aspect-ratio: 16 / 10; background: var(--surface-2); overflow: hidden; }
.tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.tile:hover .tile__media img { transform: scale(1.07); }
.tile__body { padding: 14px 16px 16px; }
.tile__title { display: block; font-weight: 700; font-size: 16px; }
.tile__sub { display: block; margin-top: 3px; color: var(--text-dim); font-size: 12.5px; }

.gen-list { display: grid; gap: 14px; }
.gen-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 40px;
  gap: 20px;
  align-items: center;
  padding: 14px;
  background: var(--grad-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.gen-card:hover {
  transform: translateX(5px);
  border-color: rgba(255, 77, 45, 0.45);
  box-shadow: var(--shadow);
}
.gen-card__media { aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.gen-card__media img { width: 100%; height: 100%; object-fit: cover; }
.gen-card__title { display: block; font-size: 19px; font-weight: 700; }
.gen-card__meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.gen-card__arrow { display: grid; place-items: center; color: var(--text-dim); transition: color 0.2s var(--ease); }
.gen-card:hover .gen-card__arrow { color: var(--accent-2); }

.chip {
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--text-soft);
}
.chip--accent { background: var(--accent-soft); border-color: rgba(255, 77, 45, 0.35); color: var(--accent-2); }

/* spec page */
.spec-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  padding: 26px 0 34px;
}
.spec-head__media {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--surface-2);
  box-shadow: var(--shadow-lg);
}
.spec-head__media img { width: 100%; height: 100%; object-fit: cover; }
.spec-head__brand { margin: 0 0 8px; color: var(--text-dim); font-size: 13.5px; }
.spec-head__brand a { border-bottom: 1px dashed var(--line-strong); }
.spec-head__brand a:hover { color: var(--accent-2); }
.spec-head__title { font-size: clamp(24px, 3.2vw, 36px); }
.spec-head__years { margin: 8px 0 0; color: var(--text-soft); }
.spec-head__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

.highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
  gap: 10px;
  margin: 22px 0 0;
}
.highlight {
  padding: 14px 12px;
  text-align: center;
  background: var(--grad-surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.highlight:hover { border-color: rgba(255, 77, 45, 0.45); transform: translateY(-3px); }
.highlight__value {
  display: block;
  font-size: 22px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.highlight__value small { font-size: 11px; margin-left: 3px; }
.highlight__label { display: block; margin-top: 2px; color: var(--text-dim); font-size: 11.5px; }

/* A scrolling strip rather than a wrapping grid: the arrows page through the
   photos, and every thumbnail keeps the same size however many there are. */
.spec-gallery { position: relative; margin-bottom: 34px; }
.gallery {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  transform: translateY(-50%);
  background: rgba(16, 21, 31, 0.92);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--text-soft);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.gallery__arrow:hover { background: var(--accent); color: #fff; }
.gallery__arrow--prev { left: -6px; }
.gallery__arrow--next { right: -6px; }
.gallery__item {
  flex: 0 0 180px;
  scroll-snap-align: start;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-2);
  aspect-ratio: 3 / 2;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.gallery__item:hover { transform: scale(1.03); border-color: var(--accent); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(5, 7, 12, 0.94);
  backdrop-filter: blur(6px);
}
.lightbox img { max-width: min(100%, 1200px); max-height: 88vh; border-radius: var(--radius); }
.lightbox__close {
  position: absolute;
  top: 18px; right: 18px;
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 0;
  border-radius: 50%;
  color: #fff;
  font-size: 20px;
}
.lightbox__nav {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: 0;
  border-radius: 50%;
  color: #fff;
  transition: background 0.2s var(--ease);
}
.lightbox__nav:hover { background: var(--accent); }
.lightbox__nav--prev { left: 20px; }
.lightbox__nav--next { right: 20px; }
.lightbox__counter {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.specs { padding-bottom: 40px; }
.specs__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.specs__title { font-size: clamp(20px, 2.4vw, 26px); }
.specs__tools { display: flex; align-items: center; gap: 10px; }
.specs__groups { display: grid; gap: 12px; }

.spec-group {
  background: var(--grad-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.spec-group.is-hidden { display: none; }
.spec-group__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  font-weight: 700;
  font-size: 15.5px;
  cursor: pointer;
  list-style: none;
  transition: background 0.2s var(--ease);
}
.spec-group__summary::-webkit-details-marker { display: none; }
.spec-group__summary:hover { background: rgba(255, 255, 255, 0.04); }
.spec-group__summary::after {
  content: "";
  width: 9px; height: 9px;
  margin-left: auto;
  border-right: 2px solid var(--text-dim);
  border-bottom: 2px solid var(--text-dim);
  transform: rotate(45deg);
  transition: transform 0.25s var(--ease);
}
.spec-group[open] .spec-group__summary::after { transform: rotate(-135deg); }
.spec-group__count {
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-dim);
  font-size: 11.5px;
  font-weight: 600;
}

/* 11. Tables -------------------------------------------------------------- */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  -webkit-overflow-scrolling: touch;
}
.table-wrap--sticky { max-height: 78vh; overflow-y: auto; }

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
.table th,
.table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--surface-2);
  color: var(--text-soft);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}
.table tbody tr { transition: background 0.15s var(--ease); }
.table tbody tr:hover { background: rgba(255, 255, 255, 0.035); }
.table tbody tr.is-hidden { display: none; }
.table tbody tr.is-current { background: var(--accent-soft); }
.table__link { font-weight: 650; transition: color 0.2s var(--ease); }
.table__link:hover { color: var(--accent-2); }
.table__actions { text-align: right; white-space: nowrap; }

.table--trims { background: var(--surface); border: 1px solid var(--line); }
.table--specs { background: transparent; }
.table--specs th[scope="row"] {
  width: 46%;
  color: var(--text-soft);
  font-weight: 500;
}
.table--specs td { font-weight: 620; font-variant-numeric: tabular-nums; }

/* 12. Compare ------------------------------------------------------------- */
.compare { padding-bottom: 48px; }
.compare__slots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.slot {
  position: relative;
  padding: 14px;
  background: var(--grad-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}
.slot--empty {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 200px;
  border-style: dashed;
  color: var(--text-dim);
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), background 0.25s var(--ease);
}
.slot--empty:hover { border-color: var(--accent); color: var(--accent-2); background: rgba(255, 77, 45, 0.05); }
.slot__plus { font-size: 32px; line-height: 1; }
.slot__hint { font-size: 13px; }
.slot__media { aspect-ratio: 16 / 10; border-radius: 11px; overflow: hidden; background: var(--surface-2); margin-bottom: 11px; }
.slot__media img { width: 100%; height: 100%; object-fit: cover; }
.slot__brand { margin: 0; color: var(--accent-2); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.slot__name { margin: 3px 0 0; font-weight: 700; font-size: 15px; }
.slot__years { margin: 3px 0 0; color: var(--text-dim); font-size: 12.5px; }
.slot__remove {
  position: absolute;
  top: 9px; right: 9px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  padding: 0;
  background: rgba(5, 7, 12, 0.75);
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text-soft);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.slot__remove:hover { background: var(--accent); color: #fff; }

.compare__notice {
  padding: 16px 20px;
  margin-bottom: 22px;
  background: var(--accent-soft);
  border: 1px solid rgba(255, 77, 45, 0.3);
  border-radius: var(--radius);
  color: var(--accent-2);
  font-size: 14.5px;
}
.compare__controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }

.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch__track {
  width: 44px; height: 25px;
  padding: 3px;
  background: var(--surface-3);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: background 0.25s var(--ease);
}
.switch__knob {
  display: block;
  width: 17px; height: 17px;
  background: var(--text-soft);
  border-radius: 50%;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}
.switch input:checked + .switch__track { background: var(--accent); }
.switch input:checked + .switch__track .switch__knob { transform: translateX(19px); background: #fff; }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--accent-2); outline-offset: 2px; }

.table--compare { background: var(--surface); border: 1px solid var(--line); min-width: 620px; }
.table--compare thead th { text-align: center; font-size: 13px; text-transform: none; }
.table--compare thead th a { color: var(--text); font-weight: 700; }
.table--compare thead th a:hover { color: var(--accent-2); }
.table--compare td { text-align: center; font-variant-numeric: tabular-nums; }
.table--compare .table__rowhead {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--surface);
  color: var(--text-soft);
  font-weight: 500;
  text-align: left;
  min-width: 200px;
}
.table--compare thead .table__rowhead { z-index: 3; background: var(--surface-2); }
.table__group th {
  background: var(--surface-2);
  color: var(--accent-2);
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.table--compare td.is-best {
  color: var(--good);
  font-weight: 750;
  box-shadow: inset 0 0 0 1px rgba(61, 220, 151, 0.28);
}
.compare.is-diff-only [data-compare-row][data-differs="false"] { display: none; }

.picker { position: fixed; inset: 0; z-index: 210; display: grid; place-items: center; padding: 20px; }
.picker[hidden] { display: none; }
.picker__backdrop { position: absolute; inset: 0; background: rgba(5, 7, 12, 0.8); backdrop-filter: blur(5px); }
.picker__panel {
  position: relative;
  width: min(100%, 620px);
  max-height: min(84vh, 720px);
  display: flex;
  flex-direction: column;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-lg);
}
.picker__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.picker__title { font-size: 19px; }
.picker__close {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  padding: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 0;
  border-radius: 10px;
  color: var(--text-soft);
}
.picker__close:hover { background: var(--accent); color: #fff; }
.picker__input {
  width: 100%;
  padding: 13px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-size: 15px;
  outline: none;
}
.picker__input:focus { border-color: rgba(255, 77, 45, 0.6); }
.picker__results { margin-top: 14px; overflow-y: auto; display: grid; gap: 6px; }
.picker__hint { color: var(--text-dim); font-size: 14px; text-align: center; padding: 22px 0; margin: 0; }
.picker__group {
  margin: 2px 0 4px;
  color: var(--text-dim);
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.picker__item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 8px;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 12px;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease);
}
.picker__item:hover { background: rgba(255, 255, 255, 0.06); border-color: var(--line); }
.picker__thumb { aspect-ratio: 3 / 2; border-radius: 8px; overflow: hidden; background: var(--surface-2); }
.picker__thumb img { width: 100%; height: 100%; object-fit: cover; }
.picker__label { display: block; font-weight: 650; font-size: 14.5px; }
.picker__meta { display: block; color: var(--text-dim); font-size: 12px; }

/* 13. Search results / prose ---------------------------------------------- */
.results { display: grid; gap: 10px; }
.result__link {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 12px;
  background: var(--grad-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}
.result__link:hover { transform: translateX(4px); border-color: rgba(255, 77, 45, 0.45); }
.result__media {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface-2);
}
.result__media img { width: 100%; height: 100%; object-fit: cover; }
.result__initial { font-size: 24px; font-weight: 800; color: var(--text-dim); }
.result__kind {
  display: inline-block;
  padding: 2px 9px;
  margin-bottom: 5px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-2);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.result__title { display: block; font-weight: 700; font-size: 16px; }
.result__sub { display: block; color: var(--text-dim); font-size: 13px; }

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 34px 0 10px;
}
.pager__link {
  padding: 10px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-weight: 650;
  font-size: 14px;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.pager__link:hover { background: rgba(255, 255, 255, 0.07); border-color: var(--accent); }
.pager__status { color: var(--text-dim); font-size: 14px; }

.crumbs { padding: 16px 0 4px; }
.crumbs__list { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--text-dim); }
.crumbs__item { display: inline-flex; gap: 8px; align-items: center; }
.crumbs__item a { transition: color 0.2s var(--ease); }
.crumbs__item a:hover { color: var(--accent-2); }
.crumbs__sep { opacity: 0.4; }

.article { max-width: 100%; }
.article__head { padding: 22px 0 20px; }
.article__title { font-size: clamp(26px, 3.8vw, 42px); }
.article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--text-dim);
  font-size: 13.5px;
}
.article__lead { margin: 18px 0 0; color: var(--text-soft); font-size: 17.5px; line-height: 1.55; }
.article__hero { margin: 0 0 26px; border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow-lg); }
.article__hero img { width: 100%; }
.article__subtitle { margin: 36px 0 16px; font-size: 21px; }
.article__gallery { margin-top: 32px; }
.article__footer { margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line); }
.article__source { color: var(--text-dim); font-size: 13.5px; }
.article__source a { color: var(--accent-2); border-bottom: 1px dashed currentColor; }
.article__related { margin-top: 44px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tag {
  display: inline-block;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-soft);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.tag:hover { background: var(--accent-soft); color: var(--accent-2); }

.prose { font-size: 17px; line-height: 1.75; color: #dbe2ee; }
.prose p { margin: 0 0 1.15em; }
.prose h2 { margin: 1.9em 0 0.6em; font-size: 24px; }
.prose h3 { margin: 1.6em 0 0.5em; font-size: 20px; }
.prose ul { margin: 0 0 1.2em; padding-left: 22px; list-style: disc; }
.prose ol { margin: 0 0 1.2em; padding-left: 22px; list-style: decimal; }
.prose li { margin-bottom: 0.5em; }
.prose a { color: var(--accent-2); border-bottom: 1px solid rgba(255, 176, 32, 0.35); }
.prose a:hover { border-bottom-color: currentColor; }
.prose blockquote {
  margin: 1.6em 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--accent);
  color: var(--text-soft);
  font-style: italic;
}
.prose code {
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.9em;
}

/* 14. Footer / errors ----------------------------------------------------- */
/* Three flat rows instead of a column grid: links, brands, fine print. The
   footer of a reference site is a signpost, not a second home page, so it keeps
   its own measure — narrower than the content above it — and stays under a
   couple of hundred pixels tall. */
.footer {
  position: relative;
  z-index: 1;
  margin-top: 56px;
  padding: 22px 0 20px;
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
}
.footer > * {
  width: min(100% - 32px, 1040px);
  margin-inline: auto;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 26px;
}
.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 14.5px;
}
.footer__nav a { color: var(--text-soft); transition: color 0.2s var(--ease); }
.footer__nav a:hover { color: var(--accent-2); }

.footer__rss {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  padding: 6px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--accent-2);
  font-size: 12.5px;
  font-weight: 620;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.footer__rss:hover { background: var(--accent-soft); border-color: var(--accent); }

.footer__brands {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 7px 14px;
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
}
.footer__brands-label {
  color: var(--text-dim);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.footer__brands a { color: var(--text-soft); transition: color 0.2s var(--ease); }
.footer__brands a:hover { color: var(--accent-2); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 18px;
  margin-top: 15px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 12.5px;
}
.footer__bottom p { margin: 0; }

.error-page { display: grid; place-items: center; min-height: 68vh; padding: 60px 0; }
.error-page__inner { text-align: center; }
.error-page__code {
  margin: 0;
  font-size: clamp(76px, 16vw, 168px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.05em;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.9;
}
.error-page__title { margin: 12px 0 10px; font-size: clamp(24px, 3.4vw, 34px); }
.error-page__text { color: var(--text-soft); max-width: 520px; margin-inline: auto; }
.error-page .search--page { margin: 28px auto; }
.error-page__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* 15. Motion & responsive ------------------------------------------------- */
@media (max-width: 1180px) {
  .layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; }
  .dropdown { width: 400px; }
}

@media (max-width: 1024px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  /* Stacked under the feed: blocks flow side by side and nothing sticks. */
  .sidebar { flex-direction: row; flex-wrap: wrap; }
  .sidebar > * { flex: 1 1 280px; }
  .sidebar__rail { flex: 1 1 280px; }
  .sidebar__rail .ad--sidebar { position: static; }
  .spec-head { grid-template-columns: minmax(0, 1fr); gap: 22px; }
}

@media (max-width: 860px) {
  :root { --header-h: 66px; }

  .burger { display: flex; }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 18px 16px 26px;
    background: rgba(11, 14, 20, 0.985);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    transform: translateY(-14px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__link { justify-content: space-between; width: 100%; padding: 14px 16px; font-size: 16px; }

  .dropdown {
    position: static;
    width: 100%;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: none;
    background: transparent;
    border: 0;
    padding: 4px 0 0;
    display: none;
  }
  [data-dropdown].is-open .dropdown { display: block; transform: none; }

  .search { width: 100%; }
  .search:focus-within { width: 100%; }
  .suggest { width: 100%; right: auto; left: 0; }

  .card { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .card__title { font-size: 18px; }
  .gen-card { grid-template-columns: minmax(0, 1fr); }
  .gen-card__arrow { display: none; }

  /* The scene is sliced from the centre, so the arriving car always lands in
     the bottom third of the hero whatever the screen. The copy therefore has
     to fit in the top ~60%: the stats stay on one row and the spacing tightens
     rather than letting the panel sit on the car's roof. */
  .hero { min-height: 78vh; }
  .hero__content { padding: 26px 0 0; }
  .hero__title { font-size: clamp(27px, 8vw, 40px); }
  .hero__lead { margin-top: 12px; }
  .hero__actions { margin-top: 18px; gap: 8px; }
  .hero__actions .btn { padding: 11px 16px; font-size: 14px; }
  .hero__stats { margin-top: 18px; padding: 10px 8px; gap: 4px; }
  .hero__stat dt { font-size: 9.5px; letter-spacing: 0.04em; }
  .hero__stat dd { font-size: clamp(15px, 4.4vw, 20px); }

  /* Mobile in-feed banner: 320x50 instead of 720x90. */
  .ad__slot { width: var(--ad-w-mobile, var(--ad-w-desktop)); height: var(--ad-h-mobile, var(--ad-h-desktop)); }
  .ad__size--desktop { display: none; }
  .ad__size--mobile { display: inline; }
  .ad--sidebar .ad__slot {
    width: 100%;
    max-width: 336px;
    height: 280px;
  }
  .ad--sidebar .ad__size { display: inline; }

  .outstream { right: 10px; bottom: 10px; width: 268px; }

  /* Stacked data tables on narrow screens. */
  .table--trims thead { display: none; }
  .table--trims tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 12px;
    padding: 12px;
    border-bottom: 1px solid var(--line);
  }
  .table--trims tbody td { border: 0; padding: 4px 0; }
  .table--trims tbody td::before {
    content: attr(data-label) ": ";
    color: var(--text-dim);
    font-size: 12px;
  }
  .table--trims tbody td:first-child {
    grid-column: 1 / -1;
    font-size: 16px;
  }
  .table--trims tbody td:first-child::before { content: none; }
  .table--trims .table__actions { grid-column: 1 / -1; text-align: left; }

  .table--specs th[scope="row"] { width: 52%; }

  /* The RSS pill drops onto its own line rather than squeezing the links. */
  .footer__rss { margin-left: 0; }
}

@media (max-width: 560px) {
  .container { width: calc(100% - 24px); }
  .brand-grid { grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 10px; }
  .brand-card { padding: 14px 8px; }
  .brand-card__logo { width: 56px; height: 56px; border-radius: 14px; }
  .brand-card__logo img { width: 42px; height: 42px; }
  .tile-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .entity-head { gap: 14px; }
  .entity-head__logo { width: 68px; height: 68px; border-radius: 16px; }
  .entity-head__logo img { width: 50px; height: 50px; }
  .compare__slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__stats { padding: 9px 6px; }
  .hero__eyebrow { font-size: 11px; letter-spacing: 0.1em; }
  .gallery__item { flex-basis: 132px; }
  .gallery__arrow { width: 32px; height: 32px; }
  .lightbox__nav { width: 42px; height: 42px; }
  .lightbox__nav--prev { left: 6px; }
  .lightbox__nav--next { right: 6px; }
}

/* Below this width the sliced scene brings the car far enough left that the
   scroll hint would sit on its bumper. */
@media (max-width: 900px) {
  .hero__scroll { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .header, .footer, .outstream, .ad, .sidebar, .hero__scene { display: none !important; }
  body { background: #fff; color: #000; }
}

/* toast ------------------------------------------------------------------ */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 220;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: calc(100vw - 32px);
  padding: 13px 18px;
  background: rgba(20, 26, 38, 0.98);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  transform: translate(-50%, 20px);
  opacity: 0;
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease);
}
.toast.is-in { opacity: 1; transform: translate(-50%, 0); }
.toast__action {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--grad-accent);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
}

@media (max-width: 560px) {
  .toast { bottom: 16px; width: calc(100vw - 24px); border-radius: 16px; justify-content: space-between; }
}
