:root {
  --bg: #070708;
  --panel: #101012;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f4f1ea;
  --muted: #9a958c;
  --gold: #d7b56a;
  --red: #c81d32;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  min-height: 100vh;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
}
img, video { max-width: 100%; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--gold); }
h1, h2, h3, p { margin: 0; }
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.site { background: var(--bg); overflow-x: clip; }
.site .bar {
  position: sticky;
  top: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  width: min(1180px, calc(100vw - 48px));
  max-width: 100%;
  margin: 0 auto;
  padding: 8px 0 14px;
  background: rgba(7, 7, 8, 0.94);
}
.site .mark { display: flex; justify-content: center; width: 100%; min-width: 0; text-decoration: none; }
.site .mark img { display: block; width: 100%; max-width: 640px; height: auto; object-fit: contain; }
.site .bar-tools { display: flex; align-items: center; justify-content: space-between; gap: 22px; min-width: 0; max-width: 100%; }
.site .tabs { display: flex; gap: 4px; flex: none; }
.site .lookup { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; margin: 0; }
.site .scopes { display: flex; gap: 6px; flex: none; }
.site .scopes button {
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}
.site .scopes button[aria-pressed="true"] { color: #1a1408; background: var(--gold); border-color: transparent; }
.site .scopes button:hover { color: white; }
.site .scopes button[aria-pressed="true"]:hover { color: #1a1408; }
.site .directory { display: grid; gap: 8px; }
.site .directory button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  text-align: left;
}
.site .directory button:hover { border-color: rgba(215, 181, 106, 0.45); }
.site .directory strong, .site .directory small { display: block; }
.site .directory strong { font-size: 16px; }
.site .directory small { margin-top: 3px; color: var(--muted); font-size: 13px; }
.site .directory em { color: var(--gold); font-size: 13px; font-style: normal; white-space: nowrap; }
.site .tabs button {
  height: 42px;
  padding: 0 16px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0.01em;
}
.site .tabs button[aria-selected="true"] { color: white; border-bottom-color: var(--gold); }
.site .tabs button:hover { color: white; }

.site main { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding-bottom: 64px; }
.site .stage {
  display: grid;
  grid-template-columns: minmax(280px, 460px) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  padding: 36px 0 8px;
}
.site .stage[hidden],
.site #directory[hidden],
.site #results[hidden],
.site #browse[hidden] { display: none; }
.site .stage-photo img {
  display: block;
  width: 100%;
  max-height: 68vh;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #000;
}
.site .stage-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-top: 14px;
}
.site .stage-nav button {
  height: 36px;
  width: fit-content;
  padding: 0 2px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.site #nextHit { justify-self: end; }
.site .stage-nav button:hover { color: white; }
.site .count { color: var(--gold); font-size: 13px; font-weight: 650; letter-spacing: 0.06em; }
.site .kicker {
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.site h1 {
  margin-top: 12px;
  font-size: clamp(36px, 4.4vw, 58px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.03em;
}
.site .detail { margin-top: 14px; max-width: 36rem; color: #ddd8ce; font-size: 18px; line-height: 1.35; }
.site .meta { margin-top: 14px; color: var(--muted); font-size: 15px; line-height: 1.4; }
.site .who { margin-top: 22px; font-size: 18px; }
.site .who b { font-weight: 700; }
.site .who span { margin-left: 8px; color: var(--muted); font-weight: 500; }

.site .lookup input {
  flex: 1;
  min-width: 0;
  width: auto;
  height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  font-size: 17px;
  outline: none;
}
.site .lookup input::placeholder { color: #6f6b64; }
.site .lookup input:focus { border-color: rgba(215, 181, 106, 0.7); }

.site .section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin: 36px 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.site h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 650; letter-spacing: -0.03em; }
.site .section-head p { color: var(--muted); font-size: 14px; }
.site .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.site .card {
  display: block;
  width: 100%;
  padding: 0 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  text-align: left;
  color: inherit;
  overflow: hidden;
}
.site .card:hover { border-color: rgba(215, 181, 106, 0.45); }
.site .card img { display: block; aspect-ratio: 4 / 5; width: 100%; object-fit: cover; background: #000; }
.site .card strong, .site .card em, .site .card small { display: block; padding-inline: 12px; }
.site .card strong {
  margin-top: 12px;
  font-size: 15px;
  font-weight: 700;
  font-style: normal;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.site .card em {
  margin-top: 4px;
  min-height: 2.7em;
  color: #cfcabb;
  font-size: 13px;
  font-style: normal;
  font-weight: 500;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.site .card small { margin-top: 8px; color: var(--gold); font-size: 12px; letter-spacing: 0.01em; }
.site .empty { margin: 8px 0 24px; color: var(--muted); }

.site dialog {
  width: min(1040px, calc(100% - 32px));
  max-height: calc(100vh - 40px);
  margin: auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #0c0c0e;
  color: inherit;
  overflow: auto;
}
.site dialog::backdrop { background: rgba(0, 0, 0, 0.78); }
.site dialog:not([open]) { display: none; }
.site dialog[open] {
  position: fixed;
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.85fr);
  gap: 28px;
  align-items: start;
}
.site #detailPhoto {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #000;
}
.site #detailPlayer {
  margin-top: 10px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 0.98;
  letter-spacing: -0.03em;
}
.site #detailText { margin-top: 12px; }
.site dialog video { width: 100%; margin-top: 18px; border-radius: 12px; background: black; }
.site .close {
  position: absolute;
  top: 16px;
  right: 16px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #161618;
  color: white;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.site .detail-copy { padding-top: 28px; }
.site footer { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 8px 0 28px; color: var(--muted); font-size: 13px; }

.desk .top, .desk main { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.desk .top { display: flex; justify-content: space-between; gap: 24px; align-items: end; padding: 28px 0 8px; }
.desk .brand { display: flex; align-items: center; gap: 12px; color: white; text-decoration: none; }
.desk .brand img { width: 54px; height: 54px; object-fit: contain; }
.desk .brand span { font-size: 22px; letter-spacing: -0.03em; }
.desk .brand strong { font-weight: 800; }
.desk .top p, .desk .meta { color: var(--muted); }
.desk .kicker { color: var(--gold); font-size: 12px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
.question-show { margin: 22px 0; }
.question-show > button {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  text-align: left;
}
.question { display: grid; grid-template-columns: 140px 1fr; gap: 16px; margin-top: 12px; padding: 12px; border-radius: 18px; background: #101014; }
.question img { width: 140px; border-radius: 12px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.choices button, .question select, .question input, .save {
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #191920;
}
.choices button.is-picked, .save { background: var(--red); border-color: transparent; color: white; font-weight: 750; }
.question .row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.saved { color: #8ee0ad; font-size: 13px; }

@media (max-width: 800px) {
  .site .bar, .site main, .site footer { width: min(100% - 28px, 1180px); }
  .site .bar { gap: 10px; padding-top: 4px; }
  .site .bar-tools, .site .lookup { display: block; }
  .site .scopes { margin-bottom: 10px; overflow-x: auto; }
  .site .lookup input { width: 100%; }
  .site .mark img { max-width: 100%; }
  .site .stage:not([hidden]), .site dialog[open], .question { display: block; }
  .site .stage { gap: 22px; padding-top: 22px; }
  .site .stage-copy { margin-top: 8px; }
  .site h1 { font-size: 36px; }
  .site .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .site .card strong, .site .card em, .site .card small { padding-inline: 8px; }
  .site dialog { width: calc(100% - 16px); padding: 14px; }
  .question img { width: 100%; margin-bottom: 10px; }
  .desk .top { display: block; }
  .desk .top p { margin-top: 10px; }
}
