:root {
  --bg: #0b0c0f;
  --surface: #121419;
  --surface-2: #191c22;
  --surface-3: #22262e;
  --ink: #f4f2eb;
  --muted: #9a9da5;
  --muted-2: #676b74;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --accent: #d8ff57;
  --accent-ink: #101300;
  --violet: #8f91ff;
  --orange: #ff6b3d;
  --radius: 18px;
  --shell: min(1500px, calc(100vw - 56px));
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 77% 4%, rgba(143, 145, 255, 0.12), transparent 24rem),
    var(--bg);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
video {
  display: block;
  max-width: 100%;
}

.grain {
  position: fixed;
  z-index: 20;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.topbar {
  position: sticky;
  z-index: 15;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 72px;
  padding: 12px max(28px, calc((100vw - 1500px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(11, 12, 15, 0.86);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  gap: 11px;
  align-items: center;
  width: fit-content;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.055em;
}

.brand > span:last-child > span {
  color: var(--accent);
}

.brand-mark {
  position: relative;
  display: flex;
  gap: 2px;
  align-items: center;
  width: 28px;
  height: 28px;
  padding: 5px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.brand-mark i {
  display: block;
  width: 4px;
  border-radius: 4px;
  background: var(--ink);
}

.brand-mark i:nth-child(1) {
  height: 7px;
}

.brand-mark i:nth-child(2) {
  height: 16px;
  background: var(--accent);
}

.brand-mark i:nth-child(3) {
  height: 10px;
}

.topbar-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font: 11px var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(216, 255, 87, 0.7);
}

.global-search {
  justify-self: end;
  display: flex;
  gap: 10px;
  align-items: center;
  width: min(330px, 100%);
  height: 43px;
  padding: 0 10px 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  transition: border-color 160ms ease, background 160ms ease;
}

.global-search:focus-within {
  border-color: rgba(216, 255, 87, 0.48);
  background: rgba(255, 255, 255, 0.055);
}

.global-search svg {
  width: 17px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.8;
}

.global-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: none;
  font-size: 13px;
}

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

kbd {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  background: var(--surface-2);
  font: 11px var(--mono);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(440px, 0.75fr);
  gap: 70px;
  align-items: end;
  min-height: 560px;
  padding: 92px 0 68px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--muted);
  font: 11px var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow span {
  color: var(--accent);
}

.hero h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(64px, 7.4vw, 118px);
  font-weight: 590;
  line-height: 0.86;
  letter-spacing: -0.072em;
}

.hero h1 em {
  color: var(--accent);
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-weight: 400;
}

.hero-description {
  max-width: 670px;
  margin: 34px 0 25px;
  color: #b6b7bd;
  font-size: 15px;
  line-height: 1.85;
}

.source-note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted-2);
  font-size: 11px;
}

.source-note code {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  font-family: var(--mono);
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}

.stat {
  position: relative;
  min-height: 160px;
  padding: 25px;
  overflow: hidden;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.018);
}

.stat::after {
  position: absolute;
  right: 14px;
  bottom: 4px;
  color: rgba(255, 255, 255, 0.035);
  content: "+";
  font: 84px/1 var(--sans);
}

.stat-primary {
  color: var(--accent-ink);
  background: var(--accent);
}

.stat-primary::after {
  color: rgba(16, 19, 0, 0.1);
}

.stat strong,
.stat span,
.stat small {
  position: relative;
  z-index: 1;
  display: block;
}

.stat strong {
  font-size: clamp(38px, 3.4vw, 60px);
  font-weight: 620;
  line-height: 1;
  letter-spacing: -0.06em;
}

.stat span {
  margin-top: 9px;
  font-size: 13px;
  font-weight: 650;
}

.stat small {
  position: absolute;
  bottom: 21px;
  color: var(--muted-2);
  font: 10px var(--mono);
}

.stat-primary small {
  color: rgba(16, 19, 0, 0.6);
}

.run-index {
  padding: 74px 0 78px;
  border-bottom: 1px solid var(--line);
}

.section-heading,
.results-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
}

.section-heading h2,
.results-head h2,
.compare-dialog h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 46px);
  font-weight: 570;
  letter-spacing: -0.045em;
}

.section-heading .eyebrow,
.results-head .eyebrow {
  margin-bottom: 10px;
}

.section-heading > p {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 12px;
}

.run-strip {
  display: grid;
  grid-auto-columns: minmax(265px, 1fr);
  grid-auto-flow: column;
  gap: 12px;
  margin-top: 30px;
  padding-bottom: 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-color: var(--surface-3) transparent;
}

.run-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 180px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  text-align: left;
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.run-card:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
  transform: translateY(-3px);
}

.run-card.active {
  border-color: rgba(216, 255, 87, 0.6);
  box-shadow: inset 0 0 0 1px rgba(216, 255, 87, 0.16);
}

.run-number {
  color: var(--muted-2);
  font: 10px var(--mono);
}

.run-card h3 {
  max-width: 230px;
  margin: 31px 0 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.run-bottom {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-top: auto;
  color: var(--muted);
  font: 10px var(--mono);
  text-transform: uppercase;
}

.run-count {
  color: var(--accent);
  font-size: 26px;
  line-height: 1;
}

.archive {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 48px;
  padding: 74px 0 110px;
}

.filters {
  position: sticky;
  top: 94px;
  align-self: start;
  max-height: calc(100vh - 116px);
  padding-right: 22px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--surface-3) transparent;
}

.filter-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 650;
}

.text-button {
  padding: 0;
  border: 0;
  color: var(--muted);
  background: none;
  font-size: 11px;
}

.text-button:hover {
  color: var(--ink);
}

.filter-close {
  display: none;
  width: 31px;
  height: 31px;
  margin-left: 9px;
  padding: 0 0 2px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: var(--surface-2);
  font-size: 20px;
  line-height: 1;
}

fieldset {
  margin: 0;
  padding: 25px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
}

legend {
  width: 100%;
  margin-bottom: 15px;
  color: var(--muted-2);
  font: 10px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.filter-option {
  position: relative;
  display: flex;
  gap: 9px;
  align-items: center;
  min-height: 30px;
  color: #b7b9bf;
  font-size: 12px;
  cursor: pointer;
}

.filter-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.filter-box {
  display: grid;
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  transition: 140ms ease;
}

.filter-option input:checked + .filter-box {
  border-color: var(--accent);
  color: var(--accent-ink);
  background: var(--accent);
}

.filter-option input:checked + .filter-box::after {
  content: "✓";
  font-size: 10px;
  font-weight: 900;
}

.filter-option .count {
  margin-left: auto;
  color: var(--muted-2);
  font: 10px var(--mono);
}

.results {
  min-width: 0;
}

.results-head h2 span {
  margin-left: 7px;
  color: var(--muted-2);
  font: 15px var(--mono);
  vertical-align: middle;
}

.result-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.filter-mobile {
  display: none;
}

.sort-select {
  position: relative;
  display: flex;
  gap: 8px;
  align-items: center;
  height: 38px;
  padding: 0 10px 0 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted-2);
  font: 10px var(--mono);
}

.sort-select select,
.compare-controls select {
  border: 0;
  outline: 0;
  color: var(--ink);
  background: var(--surface);
  font-size: 11px;
}

.view-toggle {
  display: flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.view-toggle button {
  display: grid;
  width: 31px;
  height: 30px;
  padding: 8px;
  place-items: center;
  border: 0;
  border-radius: 6px;
  color: var(--muted-2);
  background: none;
}

.view-toggle button.active {
  color: var(--ink);
  background: var(--surface-3);
}

.view-toggle svg {
  width: 14px;
  fill: currentColor;
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-height: 21px;
  margin: 24px 0 13px;
}

.filter-chip {
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 6px 9px;
  border: 1px solid rgba(216, 255, 87, 0.22);
  border-radius: 99px;
  color: var(--accent);
  background: rgba(216, 255, 87, 0.06);
  font-size: 10px;
}

.filter-chip button {
  padding: 0;
  border: 0;
  color: inherit;
  background: none;
  line-height: 1;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 14px;
}

.result-card {
  position: relative;
  min-width: 0;
  animation: card-in 350ms both;
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(9px);
  }
}

.card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(143, 145, 255, 0.13), transparent 55%),
    var(--surface-2);
  cursor: pointer;
}

.card-media::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  content: "";
  pointer-events: none;
}

.card-media img,
.card-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(0.2, 0.7, 0.2, 1), filter 300ms ease;
}

.result-card:hover .card-media > img,
.result-card:hover .card-media > video {
  transform: scale(1.025);
}

.card-media video {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
}

.card-media.previewing video {
  opacity: 1;
}

.card-media.previewing img {
  opacity: 0;
}

.play-indicator {
  position: absolute;
  z-index: 3;
  right: 12px;
  bottom: 11px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(8, 9, 12, 0.55);
  backdrop-filter: blur(8px);
  transition: transform 180ms ease, background 180ms ease;
}

.result-card:hover .play-indicator {
  color: var(--accent-ink);
  background: var(--accent);
  transform: scale(1.08);
}

.play-indicator svg {
  width: 12px;
  margin-left: 2px;
  fill: currentColor;
}

.card-badges {
  position: absolute;
  z-index: 3;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 5px;
}

.media-badge {
  padding: 5px 7px;
  border-radius: 6px;
  color: #ececf1;
  background: rgba(8, 9, 12, 0.7);
  font: 9px var(--mono);
  letter-spacing: 0.035em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.media-badge.accent {
  color: var(--accent-ink);
  background: var(--accent);
}

.compare-add {
  position: absolute;
  z-index: 4;
  top: 10px;
  right: 10px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.27);
  border-radius: 7px;
  color: white;
  background: rgba(8, 9, 12, 0.68);
  font-size: 17px;
  line-height: 1;
  backdrop-filter: blur(8px);
}

.compare-add:hover,
.compare-add.selected {
  border-color: var(--accent);
  color: var(--accent-ink);
  background: var(--accent);
}

.card-download {
  position: absolute;
  z-index: 4;
  bottom: 11px;
  left: 11px;
  display: flex;
  gap: 6px;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.27);
  border-radius: 7px;
  opacity: 0;
  color: white;
  background: rgba(8, 9, 12, 0.72);
  font: 9px var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  transform: translateY(4px);
  transition: opacity 160ms ease, transform 160ms ease, background 160ms ease;
}

.card-download svg {
  width: 12px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.result-card:hover .card-download,
.card-download:focus-visible {
  opacity: 1;
  transform: translateY(0);
}

.card-download:hover {
  color: var(--accent-ink);
  background: var(--accent);
}

.card-body {
  padding: 14px 3px 0;
}

.card-overline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted-2);
  font: 9px var(--mono);
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.card-overline span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-title-row {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: start;
  margin-top: 9px;
}

.card-title {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.022em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-duration {
  flex: 0 0 auto;
  color: var(--muted);
  font: 10px var(--mono);
}

.card-variant {
  margin: 7px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.switch-strip {
  display: flex;
  gap: 2px;
  width: 100%;
  height: 4px;
  margin-top: 13px;
}

.switch-strip i {
  position: relative;
  display: block;
  min-width: 2px;
  height: 100%;
  flex: 1;
  background: #494d56;
}

.switch-strip i.fp {
  background: var(--violet);
}

.switch-strip i.tp {
  background: var(--orange);
}

.switch-strip i.switch::before {
  position: absolute;
  z-index: 2;
  top: -3px;
  left: -2px;
  width: 2px;
  height: 10px;
  background: var(--ink);
  content: "";
}

.no-timeline {
  height: 4px;
  margin-top: 13px;
  overflow: hidden;
  background: repeating-linear-gradient(90deg, var(--surface-3) 0 6px, transparent 6px 9px);
  opacity: 0.7;
}

.result-grid.list {
  display: block;
}

.result-grid.list .result-card {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  gap: 22px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.result-grid.list .card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0;
}

.result-grid.list .card-title {
  font-size: 18px;
}

.result-grid.list .switch-strip,
.result-grid.list .no-timeline {
  max-width: 500px;
  margin-top: 20px;
}

.load-more {
  width: 100%;
  margin-top: 54px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  background: var(--surface);
  font-size: 12px;
}

.load-more:hover {
  border-color: var(--line-strong);
  color: var(--ink);
  background: var(--surface-2);
}

.empty-state {
  padding: 110px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.empty-state > span {
  color: var(--muted-2);
  font: 60px var(--mono);
}

.empty-state h3 {
  margin: 14px 0 7px;
  color: var(--ink);
  font-size: 19px;
}

.empty-state p {
  margin: 0 0 24px;
  font-size: 12px;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 42px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 650;
}

.button.primary {
  color: var(--accent-ink);
  background: var(--accent);
}

.button.primary:hover {
  background: #e4ff85;
}

.button.secondary {
  border-color: var(--line-strong);
  color: var(--ink);
  background: var(--surface-2);
}

.button:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 28px;
  align-items: center;
  padding: 27px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font: 10px var(--mono);
}

footer p {
  margin: 0;
}

footer a {
  color: var(--muted);
}

.compare-tray {
  position: fixed;
  z-index: 18;
  right: 50%;
  bottom: 22px;
  display: flex;
  gap: 14px;
  align-items: center;
  min-width: 440px;
  padding: 10px 10px 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(25, 28, 34, 0.94);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(18px);
  transform: translateX(50%);
}

.compare-stack {
  display: flex;
  padding-left: 9px;
}

.compare-stack img {
  width: 39px;
  height: 39px;
  margin-left: -9px;
  object-fit: cover;
  border: 2px solid var(--surface-2);
  border-radius: 50%;
  background: var(--surface-3);
}

.compare-copy {
  display: flex;
  flex-direction: column;
  min-width: 104px;
}

.compare-copy strong {
  font-size: 12px;
}

.compare-copy span {
  margin-top: 3px;
  color: var(--muted);
  font: 9px var(--mono);
}

dialog {
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
}

dialog::backdrop {
  background: rgba(2, 3, 5, 0.83);
  backdrop-filter: blur(8px);
}

.detail-dialog {
  width: min(1280px, calc(100vw - 46px));
  max-width: none;
  max-height: calc(100vh - 46px);
  border: 1px solid var(--line-strong);
  border-radius: 17px;
  background: #101216;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.55);
}

.dialog-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(360px, 0.75fr);
  min-height: 660px;
}

.dialog-close {
  z-index: 5;
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0 0 3px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(11, 12, 15, 0.78);
  font-size: 25px;
  font-weight: 300;
  line-height: 1;
  backdrop-filter: blur(10px);
}

.dialog-shell > .dialog-close {
  position: absolute;
  top: 15px;
  right: 15px;
}

.detail-media {
  position: sticky;
  top: 0;
  display: grid;
  align-self: start;
  height: min(calc(100vh - 48px), 820px);
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle, #262b34 0%, #121419 52%, #090a0d 100%);
}

.detail-media video {
  width: 100%;
  max-height: 100%;
  outline: 0;
}

.video-status {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 6px 9px;
  border-radius: 99px;
  background: rgba(10, 11, 14, 0.68);
  font: 8px var(--mono);
  letter-spacing: 0.08em;
  backdrop-filter: blur(10px);
}

.video-status span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.detail-content {
  padding: 62px 32px 34px;
  overflow-y: auto;
}

.detail-kicker {
  color: var(--accent);
  font: 9px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-content h2 {
  margin: 12px 0 0;
  font-size: clamp(30px, 3.3vw, 49px);
  font-weight: 580;
  line-height: 1.03;
  letter-spacing: -0.055em;
}

.detail-variant {
  margin: 10px 0 26px;
  color: var(--muted);
  font-size: 13px;
}

.detail-timeline {
  margin: 0 0 24px;
}

.detail-timeline .switch-strip {
  height: 7px;
  margin: 0 0 10px;
}

.timeline-legend {
  display: flex;
  gap: 15px;
  color: var(--muted-2);
  font: 9px var(--mono);
}

.timeline-legend i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 4px;
  border-radius: 50%;
}

.detail-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
  border-top: 1px solid var(--line);
}

.detail-facts div {
  min-width: 0;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.detail-facts div:nth-child(odd) {
  padding-right: 12px;
}

.detail-facts dt {
  margin-bottom: 6px;
  color: var(--muted-2);
  font: 8px var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.detail-facts dd {
  margin: 0;
  overflow: hidden;
  color: #d3d3d7;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-section-title {
  margin: 27px 0 12px;
  color: var(--muted-2);
  font: 9px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reference-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.reference-grid a {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.reference-grid img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  transition: transform 300ms ease;
}

.reference-grid a:hover img {
  transform: scale(1.03);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.metric-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.metric-card strong,
.metric-card span {
  display: block;
}

.metric-card strong {
  font: 15px var(--mono);
}

.metric-card span {
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted-2);
  font: 8px var(--mono);
  text-overflow: ellipsis;
  text-transform: uppercase;
}

.raw-details {
  margin-top: 20px;
  border-bottom: 1px solid var(--line);
}

.raw-details summary {
  padding: 13px 0;
  color: var(--muted);
  font-size: 11px;
  cursor: pointer;
}

.raw-details pre {
  max-height: 220px;
  margin: 0 0 14px;
  padding: 12px;
  overflow: auto;
  border-radius: 8px;
  color: #aeb1bb;
  background: #0a0b0e;
  font: 9px/1.6 var(--mono);
  white-space: pre-wrap;
  word-break: break-all;
}

.detail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-top: 22px;
}

.compare-dialog {
  width: min(1500px, calc(100vw - 44px));
  max-width: none;
  max-height: calc(100vh - 44px);
  border: 1px solid var(--line-strong);
  border-radius: 17px;
  background: #101216;
}

.compare-dialog-shell {
  padding: 28px;
}

.compare-dialog header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 22px;
}

.compare-dialog header .eyebrow {
  margin-bottom: 7px;
}

.compare-dialog h2 {
  font-size: 35px;
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.compare-grid.three,
.compare-grid.four {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.compare-item {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #090a0d;
}

.compare-item video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: black;
}

.compare-item figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  color: var(--muted);
  font-size: 10px;
}

.compare-item figcaption strong {
  max-width: 64%;
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compare-controls {
  display: grid;
  grid-template-columns: auto auto minmax(160px, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-top: 14px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
}

.compare-controls button {
  display: flex;
  gap: 7px;
  align-items: center;
  border: 0;
  color: var(--ink);
  background: none;
  font-size: 11px;
}

.compare-controls button svg {
  width: 15px;
  fill: var(--accent);
}

.compare-controls > span,
.compare-controls label {
  color: var(--muted);
  font: 9px var(--mono);
}

.compare-controls input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

.toast {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: 28px;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  opacity: 0;
  color: var(--ink);
  background: var(--surface-3);
  font-size: 11px;
  pointer-events: none;
  transform: translate(-50%, 15px);
  transition: 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

body.dialog-open {
  overflow: hidden;
}

@media (max-width: 1180px) {
  .hero {
    grid-template-columns: 1fr 420px;
    gap: 42px;
  }

  .result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .archive {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 32px;
  }

  .dialog-shell {
    grid-template-columns: minmax(0, 1.35fr) 370px;
  }
}

@media (max-width: 900px) {
  :root {
    --shell: min(100% - 34px, 1500px);
  }

  .topbar {
    grid-template-columns: 1fr 1fr;
    padding-inline: 17px;
  }

  .topbar-meta {
    display: none;
  }

  .global-search {
    width: min(310px, 100%);
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 75px;
  }

  .hero-stats {
    max-width: 620px;
  }

  .archive {
    display: block;
  }

  .filters {
    position: fixed;
    z-index: 24;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(360px, 90vw);
    max-height: none;
    padding: 30px 25px;
    border-left: 1px solid var(--line-strong);
    background: var(--surface);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.45);
    transform: translateX(105%);
    transition: transform 200ms ease;
  }

  .filters.open {
    transform: translateX(0);
  }

  .filter-close {
    display: inline-grid;
    place-items: center;
  }

  .filter-mobile {
    display: block;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 9px;
    color: var(--muted);
    background: none;
    font-size: 11px;
  }

  .filter-mobile span {
    display: inline-grid;
    width: 18px;
    height: 18px;
    margin-left: 4px;
    place-items: center;
    border-radius: 50%;
    color: var(--accent-ink);
    background: var(--accent);
    font: 9px var(--mono);
  }

  .dialog-shell {
    display: block;
  }

  .detail-media {
    position: relative;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .detail-content {
    overflow: visible;
  }

  .detail-dialog {
    overflow-y: auto;
  }
}

@media (max-width: 640px) {
  :root {
    --shell: calc(100% - 26px);
  }

  .topbar {
    min-height: 64px;
  }

  .brand {
    font-size: 12px;
  }

  .brand-mark {
    width: 25px;
    height: 25px;
  }

  .global-search {
    width: 42px;
    height: 42px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }

  .global-search input,
  .global-search kbd {
    display: none;
  }

  .global-search:focus-within {
    position: absolute;
    right: 13px;
    left: 13px;
    width: auto;
    padding: 0 14px;
    justify-content: start;
    border-radius: 99px;
    background: var(--surface-2);
  }

  .global-search:focus-within input {
    display: block;
  }

  .hero {
    gap: 50px;
    padding: 55px 0 48px;
  }

  .hero h1 {
    font-size: clamp(52px, 17vw, 77px);
  }

  .hero-description {
    font-size: 13px;
  }

  .hero-stats {
    width: 100%;
  }

  .stat {
    min-height: 135px;
    padding: 18px;
  }

  .stat strong {
    font-size: 39px;
  }

  .stat small {
    bottom: 16px;
    max-width: 120px;
  }

  .run-index,
  .archive {
    padding-top: 52px;
  }

  .section-heading > p {
    display: none;
  }

  .run-strip {
    grid-auto-columns: 240px;
  }

  .results-head {
    align-items: start;
  }

  .result-actions {
    flex-wrap: wrap;
    justify-content: end;
  }

  .sort-select > span,
  .view-toggle {
    display: none;
  }

  .result-grid,
  .result-grid.list {
    display: grid;
    grid-template-columns: 1fr;
  }

  .result-grid.list .result-card {
    display: block;
    padding: 0;
    border: 0;
  }

  .result-grid.list .card-body {
    padding-top: 14px;
  }

  footer {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .compare-tray {
    right: 12px;
    left: 12px;
    min-width: 0;
    transform: none;
  }

  .compare-copy {
    margin-right: auto;
  }

  .compare-tray > .text-button,
  .compare-stack {
    display: none;
  }

  .detail-dialog,
  .compare-dialog {
    width: calc(100vw - 18px);
    max-height: calc(100vh - 18px);
  }

  .detail-content {
    padding: 35px 20px 25px;
  }

  .reference-grid,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .card-download {
    opacity: 1;
    transform: none;
  }

  .detail-actions {
    grid-template-columns: 1fr;
  }

  .compare-dialog-shell {
    padding: 18px;
  }

  .compare-grid,
  .compare-grid.three,
  .compare-grid.four {
    grid-template-columns: 1fr;
  }

  .compare-controls {
    position: sticky;
    bottom: 0;
    grid-template-columns: auto 1fr;
  }

  .compare-controls > span,
  .compare-controls input {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
