:root {
  --bg: #070a11;
  --bg-soft: #0b101b;
  --panel: #101725;
  --panel-2: #141d2e;
  --line: rgba(148, 163, 184, .14);
  --line-strong: rgba(148, 163, 184, .26);
  --text: #e9effa;
  --muted: #93a1b8;
  --faint: #61708a;
  --accent: #5eead4;
  --accent-2: #38bdf8;
  --orange: #fbbf24;
  --red: #fb7185;
  --green: #a3e635;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px -30px rgba(0, 0, 0, .9);
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(1100px 600px at 12% -10%, rgba(56, 189, 248, .12), transparent 60%),
    radial-gradient(900px 500px at 90% 0%, rgba(94, 234, 212, .10), transparent 55%),
    var(--bg);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.container {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 10, 17, .78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 70px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #04111a;
  font-weight: 900;
  font-size: 18px;
  letter-spacing: -.03em;
  box-shadow: 0 0 30px rgba(94, 234, 212, .25);
}

.brand-mark.small { width: 24px; height: 24px; border-radius: 7px; font-size: 13px; }

.brand-text {
  display: flex;
  flex-direction: column;
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1.05;
}

.brand-text small {
  font-size: 9px;
  color: var(--faint);
  font-weight: 500;
  letter-spacing: .22em;
  margin-top: 3px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav a {
  position: relative;
  padding: 8px 13px;
  border-radius: 9px;
  color: var(--muted);
  font-weight: 650;
  font-size: 13px;
  letter-spacing: .08em;
}

.main-nav a:hover { color: var(--text); background: rgba(148, 163, 184, .07); }
.main-nav a.active { color: var(--text); background: rgba(94, 234, 212, .08); }
.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.soon {
  margin-left: 6px;
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid var(--line-strong);
  font-size: 8px;
  letter-spacing: .12em;
  color: var(--faint);
  vertical-align: 1px;
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  width: min(330px, 34vw);
  padding: 0 12px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(16, 23, 37, .65);
  color: var(--faint);
  transition: border-color .2s, background .2s;
}

.nav-search:focus-within { border-color: rgba(94, 234, 212, .45); background: rgba(16, 23, 37, .95); }
.nav-search svg { width: 16px; height: 16px; flex: 0 0 auto; }
.nav-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 12.5px;
}
.nav-search input::placeholder { color: var(--faint); }
.nav-search kbd {
  padding: 1px 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--faint);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 66px;
  border-bottom: 1px solid var(--line);
}

.hero-inner { position: relative; z-index: 2; max-width: 900px; }

.eyebrow, .section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 10.5px;
  font-weight: 750;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(94, 234, 212, .6);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(94, 234, 212, .45); }
  70% { box-shadow: 0 0 0 8px rgba(94, 234, 212, 0); }
  100% { box-shadow: 0 0 0 0 rgba(94, 234, 212, 0); }
}

.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.04;
  letter-spacing: -.045em;
  font-weight: 800;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--accent), var(--accent-2) 55%, #c4b5fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  max-width: 640px;
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 15px;
}
.hero-sub strong { color: var(--text); font-weight: 700; }

.hero-search {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 720px;
  padding: 8px 8px 8px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(16, 23, 37, .9);
  box-shadow: 0 22px 60px -30px rgba(0, 0, 0, .9);
  transition: border-color .2s, box-shadow .2s;
}

.hero-search:focus-within {
  border-color: rgba(94, 234, 212, .55);
  box-shadow: 0 0 0 4px rgba(94, 234, 212, .07), 0 22px 60px -30px rgba(0, 0, 0, .9);
}

.hero-search svg { width: 19px; height: 19px; color: var(--faint); flex: 0 0 auto; }
.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  padding: 8px 0;
}
.hero-search input::placeholder { color: var(--faint); }
.hero-search button, .btn-primary {
  border: 0;
  border-radius: 9px;
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #04111a;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .02em;
  box-shadow: 0 10px 24px -12px rgba(94, 234, 212, .7);
  transition: transform .15s, filter .15s;
}
.hero-search button:hover, .btn-primary:hover { transform: translateY(-1px); filter: brightness(1.05); }

.quick-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  color: var(--faint);
  font-size: 12px;
}
.quick-links a { color: var(--muted); border-bottom: 1px dashed var(--line-strong); padding-bottom: 1px; }
.quick-links a:hover { color: var(--accent); border-color: var(--accent); }

.hero-glow {
  position: absolute;
  right: -120px;
  top: -140px;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, .18), transparent 62%);
  filter: blur(10px);
  pointer-events: none;
}

/* ---------- Stats ---------- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: -26px;
  position: relative;
  z-index: 3;
}

.stat-card {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 20px 20px 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(20, 29, 46, .92), rgba(13, 18, 30, .92));
  box-shadow: var(--shadow);
}

.stat-label { color: var(--faint); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.stat-card strong { font-size: 30px; line-height: 1.15; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat-note { color: var(--muted); font-size: 11.5px; }

/* ---------- Sections ---------- */
.section-block { margin-top: 64px; }
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.section-heading h2 { margin: 7px 0 0; font-size: 26px; letter-spacing: -.025em; }
.text-link { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.text-link span { color: var(--accent); }
.text-link:hover { color: var(--text); }

/* ---------- Rank table ---------- */
.rank-table {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(13, 18, 30, .7);
}

.rank-head, .rank-row {
  display: grid;
  grid-template-columns: 46px minmax(220px, 2fr) minmax(160px, 1.2fr) .7fr .7fr;
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
}

.rank-head {
  color: var(--faint);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  background: rgba(20, 29, 46, .55);
}

.rank-row { border-bottom: 1px solid rgba(148, 163, 184, .07); transition: background .15s; }
.rank-row:last-child { border-bottom: 0; }
.rank-row:hover { background: rgba(94, 234, 212, .04); }

.rank-no {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(148, 163, 184, .08);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}
.rank-no.top { background: rgba(94, 234, 212, .12); color: var(--accent); }

.rank-name { display: flex; align-items: center; gap: 9px; font-weight: 650; font-size: 13.5px; }
.rank-name small { color: var(--faint); font-size: 10.5px; font-weight: 500; }
.mfr-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); flex: 0 0 auto; }
.mfr-dot.nvidia { background: var(--green); box-shadow: 0 0 10px rgba(163, 230, 53, .5); }
.mfr-dot.amd { background: var(--red); box-shadow: 0 0 10px rgba(251, 113, 133, .5); }
.mfr-dot.ati { background: var(--orange); }
.mfr-dot.intel { background: var(--accent-2); }
.mfr-dot.apple { background: #c4b5fd; }

.rank-chip { display: flex; flex-direction: column; font-size: 11.5px; }
.rank-chip b { font-weight: 600; color: var(--text); }
.rank-chip small { color: var(--faint); }
.rank-mem { color: var(--muted); font-size: 12px; }
.rank-score { text-align: right; font-family: var(--mono); font-weight: 700; font-size: 14px; color: var(--accent); }

/* ---------- Latest ---------- */
.latest-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.latest-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(16, 23, 37, .6);
  transition: border-color .2s, transform .2s;
}
.latest-card:hover { border-color: rgba(94, 234, 212, .35); transform: translateY(-2px); }
.latest-year { color: var(--accent); font-family: var(--mono); font-size: 10.5px; }
.latest-card strong { font-size: 13.5px; line-height: 1.35; }
.latest-card span:last-child { color: var(--faint); font-size: 11px; }

/* ---------- Features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feature-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(20, 29, 46, .6), rgba(13, 18, 30, .5));
}
.feature-index { color: var(--faint); font-family: var(--mono); font-size: 10px; letter-spacing: .1em; }
.feature-card h3 { margin: 12px 0 6px; font-size: 16px; }
.feature-card p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.75; }

/* ---------- Page head / filters ---------- */
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 54px 0 26px;
}
.page-head h1 { margin: 8px 0 6px; font-size: 38px; letter-spacing: -.035em; }
.page-head p { margin: 0; color: var(--muted); font-size: 13.5px; }
.page-count { text-align: right; }
.page-count b { display: block; font-size: 32px; font-family: var(--mono); color: var(--accent); line-height: 1; }
.page-count span { color: var(--faint); font-size: 10.5px; letter-spacing: .1em; }

.filter-bar {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto auto auto auto;
  gap: 10px;
  align-items: end;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(13, 18, 30, .72);
  margin-bottom: 16px;
}

.filter-search {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 42px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(7, 10, 17, .55);
  color: var(--faint);
}
.filter-search:focus-within { border-color: rgba(94, 234, 212, .4); }
.filter-search svg { width: 16px; height: 16px; flex: 0 0 auto; }
.filter-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 13px; }
.filter-search input::placeholder { color: var(--faint); }

.select-wrap { display: flex; flex-direction: column; gap: 5px; min-width: 104px; }
.select-wrap span { color: var(--faint); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; }
.select-wrap select {
  height: 42px;
  padding: 0 30px 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(7, 10, 17, .55);
  color: var(--text);
  font-size: 12px;
  outline: 0;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--faint) 50%), linear-gradient(135deg, var(--faint) 50%, transparent 50%);
  background-position: calc(100% - 15px) 18px, calc(100% - 10px) 18px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.select-wrap select:focus { border-color: rgba(94, 234, 212, .4); }
.filter-bar .btn-primary { height: 42px; padding: 0 20px; }

.active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--faint);
  font-size: 11px;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(20, 29, 46, .7);
  color: var(--muted);
  font-size: 11px;
}
.filter-chip i { color: var(--faint); font-style: normal; }
.filter-chip:hover { border-color: var(--red); color: var(--red); }
.filter-clear { color: var(--faint); font-size: 11px; text-decoration: underline; text-underline-offset: 3px; }
.filter-clear:hover { color: var(--text); }

/* ---------- GPU grid ---------- */
.gpu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }

.gpu-card {
  display: flex;
  flex-direction: column;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(20, 29, 46, .66), rgba(13, 18, 30, .78));
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.gpu-card:hover {
  transform: translateY(-3px);
  border-color: rgba(94, 234, 212, .35);
  box-shadow: 0 24px 50px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(94, 234, 212, .05);
}

.gpu-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.mfr-badge, .meta-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 9.5px;
  font-weight: 750;
  letter-spacing: .08em;
  border: 1px solid transparent;
}
.mfr-badge.nvidia { color: var(--green); background: rgba(163, 230, 53, .08); border-color: rgba(163, 230, 53, .2); }
.mfr-badge.amd { color: var(--red); background: rgba(251, 113, 133, .08); border-color: rgba(251, 113, 133, .2); }
.mfr-badge.ati { color: var(--orange); background: rgba(251, 191, 36, .08); border-color: rgba(251, 191, 36, .2); }
.mfr-badge.intel { color: var(--accent-2); background: rgba(56, 189, 248, .08); border-color: rgba(56, 189, 248, .2); }
.mfr-badge.apple { color: #c4b5fd; background: rgba(196, 181, 253, .08); border-color: rgba(196, 181, 253, .2); }
.mfr-badge.other { color: var(--muted); background: rgba(148, 163, 184, .08); border-color: var(--line); }

.meta-badge { color: var(--faint); background: rgba(148, 163, 184, .05); border-color: var(--line); font-weight: 500; letter-spacing: 0; }
.year-badge { color: var(--faint); font-family: var(--mono); font-size: 10.5px; }

.gpu-card h3 { margin: 0 0 4px; font-size: 15.5px; letter-spacing: -.015em; line-height: 1.35; }
.gpu-code { display: flex; align-items: center; gap: 6px; color: var(--faint); font-size: 11px; margin-bottom: 16px; }
.gpu-code .code-name { color: var(--muted); font-family: var(--mono); }
.gpu-code .dot { opacity: .45; }

.gpu-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: auto;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}
.gpu-metrics div { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.gpu-metrics b {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gpu-metrics span { color: var(--faint); font-size: 8.5px; letter-spacing: .04em; text-transform: uppercase; }
.gpu-metrics .metric-score b { color: var(--accent); }

/* ---------- Pagination ---------- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 38px 0 20px;
  flex-wrap: wrap;
}
.page-numbers { display: flex; align-items: center; gap: 4px; }
.page-num, .page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
  background: rgba(16, 23, 37, .55);
}
.page-num:hover, .page-btn:hover { border-color: var(--line-strong); color: var(--text); }
.page-num.current { background: rgba(94, 234, 212, .12); border-color: rgba(94, 234, 212, .35); color: var(--accent); font-weight: 700; }
.page-btn.disabled { opacity: .35; pointer-events: none; }
.page-ellipsis { color: var(--faint); padding: 0 4px; }

.empty-state { padding: 80px 20px; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--radius); margin: 20px 0 60px; }
.empty-mark { font-size: 40px; color: var(--faint); font-family: var(--mono); }
.empty-state h2 { margin: 8px 0 6px; font-size: 20px; }
.empty-state p { color: var(--muted); font-size: 13px; }
.empty-state a { color: var(--accent); }

/* ---------- Detail ---------- */
.breadcrumb { display: flex; align-items: center; gap: 8px; padding: 26px 0 20px; color: var(--faint); font-size: 11px; overflow: hidden; white-space: nowrap; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb .current { color: var(--muted); overflow: hidden; text-overflow: ellipsis; }

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 26px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(650px 300px at 0% 0%, rgba(56, 189, 248, .10), transparent 60%),
    linear-gradient(160deg, rgba(20, 29, 46, .85), rgba(11, 16, 27, .9));
  box-shadow: var(--shadow);
}

.badge-row { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.detail-hero h1 { margin: 0 0 12px; font-size: clamp(30px, 4vw, 44px); line-height: 1.1; letter-spacing: -.04em; }

.detail-sub { display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: 12px; }
.detail-sub b { color: var(--faint); font-weight: 500; margin-right: 6px; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }

.detail-desc {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.8;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-score-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 22px;
  border: 1px solid rgba(94, 234, 212, .18);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(94, 234, 212, .08), rgba(56, 189, 248, .04));
}
.score-label { color: var(--accent); font-size: 10px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.score-value { font-family: var(--mono); font-size: 38px; line-height: 1.1; letter-spacing: -.04em; color: var(--text); }
.score-value.muted { color: var(--faint); }
.score-sub { color: var(--muted); font-size: 10.5px; }
.score-chip { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(94, 234, 212, .14); color: var(--faint); font-size: 10.5px; }

.key-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 16px 0 20px; }
.key-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(13, 18, 30, .62);
  min-width: 0;
}
.key-label { color: var(--faint); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; }
.key-card b { font-family: var(--mono); font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.key-card small { color: var(--muted); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(20, 29, 46, .55), rgba(13, 18, 30, .62));
  padding: 22px;
  margin-bottom: 16px;
}
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.panel-head h2 { margin: 0; font-size: 17px; letter-spacing: -.015em; }
.panel-note, .count { color: var(--faint); font-family: var(--mono); font-size: 10.5px; white-space: nowrap; }
.panel-foot { margin: 12px 0 0; color: var(--faint); font-size: 10.5px; }

.bench-panel { padding-bottom: 18px; }
.chart-box { position: relative; height: 460px; width: 100%; }
.chart-box canvas { width: 100% !important; }

.bench-table-wrap { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 8px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.data-table th {
  text-align: left;
  padding: 9px 10px;
  color: var(--faint);
  font-weight: 600;
  font-size: 9.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}
.data-table td { padding: 9px 10px; border-bottom: 1px solid rgba(148, 163, 184, .06); color: var(--muted); vertical-align: top; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tr:hover td { background: rgba(94, 234, 212, .025); }
.data-table .num { text-align: right; font-family: var(--mono); color: var(--text); white-space: nowrap; }
.data-table .subtle { color: var(--faint); }
.bench-name { color: var(--text); }
.compact td, .compact th { padding: 8px 10px; }

.spec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.spec-panel { margin-bottom: 0; }
.spec-list { margin: 0; }
.spec-row {
  display: grid;
  grid-template-columns: minmax(110px, 42%) minmax(0, 1fr);
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(148, 163, 184, .07);
}
.spec-row:last-child { border-bottom: 0; }
.spec-row dt { color: var(--faint); font-size: 11px; }
.spec-row dd { margin: 0; color: var(--muted); font-size: 11.5px; word-break: break-word; }

.chip-list { display: flex; flex-wrap: wrap; gap: 5px; }
.chip {
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(148, 163, 184, .05);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
}

.notes-panel .notes { color: var(--muted); font-size: 12px; white-space: pre-line; line-height: 1.8; }

.inline-filter {
  width: min(360px, 100%);
  height: 38px;
  margin-bottom: 12px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(7, 10, 17, .5);
  color: var(--text);
  font-size: 12px;
  outline: 0;
}
.inline-filter:focus { border-color: rgba(94, 234, 212, .4); }

.table-wrap { overflow: auto; max-height: 520px; border: 1px solid var(--line); border-radius: 10px; }
.table-wrap .data-table th { position: sticky; top: 0; background: #111827; z-index: 2; }
.variant-table td { font-size: 11px; }
.variant-name a { color: var(--accent); }
.variant-name a:hover { text-decoration: underline; }
.other-changes { min-width: 220px; color: var(--faint) !important; }

.source-note { display: flex; gap: 16px; padding: 22px 2px 10px; color: var(--faint); font-size: 10.5px; }
.source-note span { flex: 0 0 auto; letter-spacing: .12em; text-transform: uppercase; }
.source-note p { margin: 0; }

/* ---------- CPU / placeholder / error ---------- */
.placeholder-hero { padding: 80px 0 50px; max-width: 760px; }
.placeholder-hero h1 { margin: 18px 0; font-size: clamp(38px, 5vw, 58px); line-height: 1.05; letter-spacing: -.045em; }
.placeholder-hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.placeholder-hero p { color: var(--muted); font-size: 14px; line-height: 1.9; }
.placeholder-hero code { padding: 1px 5px; border: 1px solid var(--line); border-radius: 4px; background: rgba(148, 163, 184, .06); color: var(--accent); font-family: var(--mono); font-size: 11px; }
.placeholder-actions { display: flex; gap: 10px; margin-top: 26px; }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  padding: 10px 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.btn-ghost:hover { color: var(--text); border-color: var(--text); }

.error-box { padding: 110px 0; max-width: 520px; }
.error-code { font-family: var(--mono); font-size: 64px; color: var(--accent); line-height: 1; letter-spacing: -.06em; }
.error-box h1 { margin: 12px 0 8px; font-size: 28px; }
.error-box p { color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { margin-top: 70px; border-top: 1px solid var(--line); background: rgba(7, 10, 17, .7); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 28px 0; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; font-weight: 650; }
.footer-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--faint); font-size: 10.5px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .gpu-grid { grid-template-columns: repeat(2, 1fr); }
  .latest-grid { grid-template-columns: repeat(4, 1fr); }
  .key-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-hero { grid-template-columns: 1fr; }
  .hero-score-card { flex-direction: row; align-items: baseline; flex-wrap: wrap; gap: 10px 16px; }
  .score-value { font-size: 32px; }
  .filter-bar { grid-template-columns: 1fr auto auto; }
  .filter-search { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .container { width: calc(100% - 32px); }
  .nav-search { display: none; }
  .main-nav { margin-left: auto; }
  .hero { padding: 64px 0 50px; }
  .hero h1 { font-size: 44px; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); margin-top: -18px; }
  .feature-grid { grid-template-columns: 1fr; }
  .rank-head, .rank-row { grid-template-columns: 38px 1.6fr .9fr .6fr; }
  .rank-head span:nth-child(3), .rank-row .rank-chip { display: none; }
  .rank-head span:nth-child(4), .rank-row .rank-mem { display: none; }
  .page-head h1 { font-size: 30px; }
  .page-count { display: none; }
  .filter-bar { grid-template-columns: 1fr 1fr; }
  .filter-bar .btn-primary { grid-column: 1 / -1; }
  .gpu-grid { grid-template-columns: 1fr; }
  .latest-grid { grid-template-columns: repeat(2, 1fr); }
  .spec-grid { grid-template-columns: 1fr; }
  .chart-box { height: 380px; }
  .detail-hero { padding: 22px; }
  .key-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 520px) {
  .header-inner { height: 62px; gap: 12px; }
  .brand-text small { display: none; }
  .hero h1 { font-size: 36px; }
  .hero-search { flex-wrap: wrap; padding: 12px; }
  .hero-search input { width: 100%; flex: 1 1 100%; }
  .hero-search button { width: 100%; }
  .stat-card strong { font-size: 24px; }
  .gpu-metrics { grid-template-columns: repeat(2, 1fr); }
  .detail-hero h1 { font-size: 28px; }
  .key-grid { grid-template-columns: 1fr 1fr; }
  .spec-row { grid-template-columns: 1fr; gap: 2px; }
  .rank-name small { display: none; }
  .pagination { gap: 8px; }
}
