:root {
  --bg: #15171a;
  --panel: #1d2024;
  --text: #eceae4;
  --soft: #a3a6ab;
  --muted: #8d9096;
  --rec: #ff4b3e;
  --line: #34383e;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.4;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; width: 100%; }
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--rec); }
:focus-visible { outline: 2px solid var(--rec); outline-offset: 2px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: var(--rec); flex: none; }
.dot.sm { width: 7px; height: 7px; }
.dot.lg { width: 14px; height: 14px; }

/* header */
.top { border-bottom: 1px solid var(--line); }
.top-in { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; padding-top: 16px; padding-bottom: 16px; }
.logo { font-size: 26px; font-weight: 700; letter-spacing: -0.03em; display: flex; align-items: center; gap: 10px; }
.logo:hover { color: var(--text); }
.nav { display: flex; gap: 22px; margin-left: auto; font-size: 16px; }
.search { position: relative; flex: 1 1 260px; max-width: 440px; }
.search input {
  width: 100%; font: inherit; font-size: 15px; padding: 11px 14px;
  background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 6px;
}
.search input::placeholder { color: var(--muted); }
.suggest {
  position: absolute; z-index: 10; top: calc(100% + 6px); left: 0; right: 0; margin: 0; padding: 6px;
  list-style: none; background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .45);
}
.suggest a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 5px; }
.suggest a:hover, .suggest a.active { background: #282c31; color: var(--text); }
.suggest .s-meta { color: var(--muted); font-size: 14px; white-space: nowrap; }
.search-msg {
  position: absolute; z-index: 10; top: calc(100% + 6px); left: 0; right: 0; margin: 0; padding: 12px 14px;
  background: var(--panel); border: 1px solid var(--rec); border-radius: 8px; color: var(--text); font-weight: 600;
}
.search-msg span { display: block; font-weight: 400; color: var(--soft); font-size: 14px; margin-top: 2px; }

/* type */
h1 { margin: 0; font-size: clamp(40px, 6vw, 72px); line-height: 1; letter-spacing: -0.035em; }
h2 { margin: 0 0 18px; font-size: 28px; letter-spacing: -0.02em; }
.lede { margin: 14px 0 0; font-size: 19px; color: var(--soft); max-width: 640px; }
.lede a { text-decoration: underline; }
.crumbs { padding-top: 22px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--soft); }
.head { padding: 26px 0 30px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }

/* home */
.hero { padding: 72px 0 48px; }
.hero h1 { max-width: 820px; }
.try { margin: 22px 0 0; color: var(--muted); font-size: 15px; }
.try a { text-decoration: underline; }
.sec { padding: 24px 0 40px; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.sec-head a { color: var(--soft); font-size: 15px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.tile, .decade, .card {
  display: flex; flex-direction: column; gap: 4px; background: var(--panel);
  border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px;
}
.tile:hover, .decade:hover, .card:hover { border-color: #5a5f66; color: var(--text); }
.tile-name { font-size: 21px; font-weight: 700; letter-spacing: -0.01em; }
.tile-meta { font-size: 14px; color: var(--muted); }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 10px 16px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 999px; font-size: 16px;
}
.pill:hover { border-color: #5a5f66; color: var(--text); }
.count { color: var(--muted); font-size: 14px; }
.decades { display: grid; grid-template-columns: repeat(auto-fill, minmax(94px, 1fr)); gap: 10px; }
.decade { text-align: center; align-items: center; padding: 20px 10px; }
.decade-name { font-size: 22px; font-weight: 700; }

/* brand + list pages */
.filters { display: flex; flex-direction: column; gap: 12px; }
.filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filter-label { width: 70px; font-size: 14px; color: var(--muted); }
.chip {
  font: inherit; font-size: 15px; min-height: 44px; padding: 10px 16px; border-radius: 999px; cursor: pointer;
  background: var(--panel); color: var(--text); border: 1px solid var(--line);
}
.chip:hover { border-color: #5a5f66; }
.chip.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.showing { color: var(--muted); font-size: 15px; margin: 22px 0 14px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; padding-bottom: 48px; }
.card { min-height: 96px; justify-content: space-between; }
.card-name { font-size: 18px; font-weight: 700; line-height: 1.2; }
.card-meta { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.tag { font-size: 12px; padding: 3px 8px; border-radius: 4px; background: #2a2e33; color: #c4c6ca; }
.empty { color: var(--muted); font-size: 17px; }
.az { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px 40px; padding-bottom: 48px; }
.az-letter { font-size: 22px; color: var(--rec); margin: 12px 0 6px; }
.az-row { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 17px; }

/* camera page */
.cam-title { display: flex; align-items: center; gap: 14px; margin-top: 20px; font-size: clamp(34px, 5vw, 60px); line-height: 1.05; }
.cam { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; padding: 28px 0 56px; }
.cam-main { flex: 999 1 540px; min-width: 0; }
.cam-side { flex: 1 1 280px; min-width: 0; }
.vf { position: relative; padding: 10px; }
.vf::before, .vf::after, .vf > i::before, .vf > i::after {
  content: ""; position: absolute; width: 24px; height: 24px; border: 0 solid var(--text);
}
.vf::before { top: 0; left: 0; border-width: 2px 0 0 2px; }
.vf::after { top: 0; right: 0; border-width: 2px 2px 0 0; }
.vf > i::before { bottom: 0; left: 0; border-width: 0 0 2px 2px; }
.vf > i::after { bottom: 0; right: 0; border-width: 0 2px 2px 0; }
.screen { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 3px; display: flex; align-items: center; justify-content: center; }
.rec { position: absolute; top: 14px; left: 16px; display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; }
.soon { margin: 0; color: var(--muted); font-size: 18px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 20px 22px; }
.side-h { font-size: 18px; margin: 0 0 12px; letter-spacing: 0; }
.specs { margin: 0; display: grid; grid-template-columns: 90px 1fr; gap: 10px 12px; font-size: 15px; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; }
.specs a { text-decoration: underline; }
.prevnext { display: flex; justify-content: space-between; gap: 12px; margin: 16px 0 28px; font-size: 15px; }
.prevnext a { color: var(--soft); }
.side-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.side-list a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.side-list a.muted { color: var(--soft); border-bottom: 0; font-size: 15px; }

.foot { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot .wrap { padding-top: 22px; padding-bottom: 22px; }

@media (max-width: 640px) {
  .nav { margin-left: 0; order: 3; width: 100%; }
  .search { order: 2; max-width: none; }
  .hero { padding: 44px 0 32px; }
  .filter-label { width: 100%; }
}
