:root {
  --bg: #f3f0e8;
  --fg: #171b18;
  --muted: #62665f;
  --muted-2: #858980;
  --surface: #ebe7dd;
  --surface-2: #f8f6f0;
  --border: #d7d2c6;
  --border-strong: #aaa69b;
  --accent: #174b9b;
  --accent-strong: #103b7d;
  --success: #2d6a4f;
  --danger: #9e2f26;
  --radius-sm: 3px;
  --radius-md: 4px;
  --radius-lg: 6px;
  --shadow: 0 24px 70px rgba(31, 35, 30, .12);
  --shadow-sm: 0 14px 30px rgba(31, 35, 30, .09);
  --max: 1220px;
}

body { background: var(--bg); }

.btn {
  border-radius: 3px;
  box-shadow: none;
  letter-spacing: .01em;
}
.btn-primary { box-shadow: none; }
.btn-secondary { background: transparent; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid rgba(23, 27, 24, .18);
  background: rgba(243, 240, 232, .94);
  backdrop-filter: blur(12px);
}
.header-inner {
  max-width: var(--max);
  min-height: 72px;
  margin: 0 auto;
  padding: 12px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.brand-mark {
  width: auto;
  height: 34px;
  border-radius: 2px;
  padding: 0 8px;
  background: var(--fg);
  color: #fff;
  font-family: "Songti SC", "Noto Serif SC", SimSun, serif;
  font-size: 12px;
  letter-spacing: .12em;
}
.brand-text strong {
  font-family: "Songti SC", "Noto Serif SC", SimSun, serif;
  font-size: 16px;
  letter-spacing: .04em;
}
.brand-text span {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav-link {
  color: #4f534d;
  font-size: 13px;
  font-weight: 650;
}
.nav-link:hover { color: var(--accent); }

.hero {
  position: relative;
  border-bottom: 1px solid var(--border-strong);
  background: var(--bg);
}
.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 78px 28px 64px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, .6fr);
  gap: clamp(36px, 6vw, 84px);
  align-items: center;
}
.eyebrow,
.section-kicker {
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.hero h1 {
  max-width: none;
  margin: 18px 0 24px;
  font-family: "Songti SC", "Noto Serif SC", Georgia, SimSun, serif;
  font-size: clamp(48px, 5.2vw, 72px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.035em;
}
.hero-copy { min-width: 0; }
.hero p {
  max-width: 60ch;
  margin: 0;
  color: #50544e;
  font-size: 17px;
  line-height: 1.85;
  text-wrap: pretty;
}
.hero-proof {
  min-width: 0;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  padding: 22px 22px 18px;
}
.hero-proof-head,
.hero-proof-metrics,
.hero-proof-list { display: grid; }
.hero-proof-head {
  grid-template-columns: 1fr auto;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hero-proof-head span:last-child { color: var(--accent); }
.hero-proof-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid var(--border);
}
.hero-proof-metrics div {
  display: grid;
  gap: 4px;
  padding: 18px 12px 16px 0;
}
.hero-proof-metrics div + div { border-left: 1px solid var(--border); padding-left: 16px; }
.hero-proof-metrics strong { color: var(--fg); font-family: Georgia, "Times New Roman", serif; font-size: 30px; line-height: 1; }
.hero-proof-metrics span { color: var(--muted); font-size: 12px; }
.hero-proof-list { list-style: none; gap: 0; margin: 0; padding: 0; }
.hero-proof-list li { display: flex; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--border); padding: 11px 0; font-size: 12px; }
.hero-proof-list li:last-child { border-bottom: 0; padding-bottom: 2px; }
.hero-proof-list span { color: var(--muted); }
.hero-proof-list strong { color: var(--fg); text-align: right; font-weight: 700; }
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 76px 28px 96px;
}
#archive { scroll-margin-top: 92px; }
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 36px;
  margin-bottom: 34px;
}
.section-head > div:first-child { max-width: 680px; }
.section-head h2,
.submit-band h2 {
  margin: 12px 0 16px;
  font-family: "Songti SC", "Noto Serif SC", Georgia, SimSun, serif;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.12;
  letter-spacing: -.025em;
}
.section-head p,
.submit-band p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}
.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  border-bottom: 1px solid var(--border-strong);
}
.tab {
  min-height: 42px;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  padding: 8px 13px;
  font-size: 13px;
  font-weight: 720;
}
.tab:hover { color: var(--fg); }
.tab.active {
  border-bottom-color: var(--accent);
  background: transparent;
  color: var(--fg);
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px 190px auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}
.search-wrap input,
.select {
  min-height: 46px;
  border-radius: 3px;
  background: var(--surface-2);
}
.view-toggle {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--surface-2);
}
.view-toggle button {
  min-height: 44px;
  border: 0;
  border-right: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  padding: 0 13px;
  font-size: 13px;
  font-weight: 700;
}
.view-toggle button:last-child { border-right: 0; }
.view-toggle button.active { background: var(--fg); color: #fff; }

.archive-policy {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  margin: 0 0 28px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  color: var(--muted);
  font-size: 13px;
}
.archive-policy strong { color: var(--fg); }

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 18px;
}
.grid.compact { grid-template-columns: 1fr; gap: 12px; }
.card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface-2);
  box-shadow: none;
  transition: border-color .18s var(--ease), transform .18s var(--ease);
}
.card:hover,
.card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: none;
  outline: 3px solid rgba(23, 75, 155, .14);
  outline-offset: 2px;
}
.card.hash-highlight {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(23, 75, 155, .14);
}
.card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: #d9d4c8;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.78) contrast(1.02);
  transition: transform .35s var(--ease), filter .35s var(--ease);
}
.card:hover .card-media img { transform: scale(1.015); filter: saturate(.95); }
.type-chip,
.play-chip {
  position: absolute;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, .62);
  border-radius: 2px;
  background: rgba(15, 18, 16, .78);
  color: #fff;
  padding: 4px 7px;
  font-size: 11px;
  font-weight: 720;
  backdrop-filter: blur(6px);
}
.type-chip { left: 10px; top: 10px; }
.play-chip { right: 10px; bottom: 10px; }
.play-chip.verified { background: rgba(21, 83, 58, .9); }
.play-chip.pending { background: rgba(74, 70, 63, .82); }
.no-cover {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 18px 18px 16px;
}
.card h3 {
  margin: 0;
  font-family: "Songti SC", "Noto Serif SC", Georgia, SimSun, serif;
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: -.01em;
}
.card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.card .meta-row { margin-top: auto; padding-top: 4px; }
.tag {
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  padding: 0 7px 0 0;
  font-size: 11px;
  font-weight: 650;
}
.tag::after {
  content: "·";
  margin-left: 7px;
  color: var(--border-strong);
}
.tag:last-child::after { content: ""; margin: 0; }
.tag.green { color: var(--success); }
.grid.compact .card {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
}
.grid.compact .card-media { height: 100%; aspect-ratio: auto; }
.prompt-card { border-left: 3px solid var(--accent); }
.prompt-card .card-media { display: none; }
.prompt-preview {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  color: var(--fg);
  padding: 12px 0;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 12px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}
.empty {
  grid-column: 1 / -1;
  border-top: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border-strong);
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  padding: 54px 24px;
  text-align: center;
}
.empty strong {
  display: block;
  margin-bottom: 6px;
  color: var(--fg);
  font-family: "Songti SC", "Noto Serif SC", SimSun, serif;
  font-size: 22px;
}
.empty span { display: block; }
.empty .btn { margin-top: 18px; }

.submit-band {
  border-top: 1px solid #090b09;
  background: #171b18;
  color: #f5f2ea;
}
.submit-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 76px 28px;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(360px, .72fr);
  gap: 64px;
  align-items: start;
}
.submit-band .section-kicker { color: #8eb7f2; }
.submit-band p { color: #c4c7c0; }
.submit-band .btn-primary { background: #f3f0e8; border-color: #f3f0e8; color: #171b18; }
.submit-band .btn-secondary { border-color: #666b65; color: #f3f0e8; }
.source-list { display: grid; border-top: 1px solid #555a54; }
.source-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  border: 0;
  border-bottom: 1px solid #555a54;
  border-radius: 0;
  background: transparent;
  padding: 15px 0;
}
.source-item strong { color: #8eb7f2; font-family: Georgia, serif; }
.source-item span { color: #d1d3cd; font-size: 13px; line-height: 1.6; }

footer { border-top: 1px solid var(--border); background: var(--bg); }
.footer-inner {
  max-width: var(--max);
  min-height: 84px;
  margin: 0 auto;
  padding: 20px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 12px;
}
.footer-inner a,
.footer-links a { color: var(--accent); text-decoration: none; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }

.policy-main {
  width: min(840px, calc(100% - 48px));
  margin: 0 auto;
  padding: 96px 0 110px;
}
.policy-main h1 { margin: 12px 0 22px; font-size: clamp(42px, 7vw, 76px); line-height: .98; }
.policy-lead { max-width: 720px; margin-bottom: 52px; color: var(--text); font-size: 19px; line-height: 1.8; }
.policy-main section { padding: 30px 0; border-top: 1px solid var(--border); }
.policy-main section h2 { margin: 0 0 12px; font-size: 26px; }
.policy-main section p { margin: 0 0 12px; color: var(--muted); line-height: 1.85; }
.policy-updated { margin-top: 36px; color: var(--muted); font-size: 13px; }
.caption-note { margin: 0; padding: 8px 12px; background: #111; color: #fff; font-size: 12px; text-align: center; }

.external-panel strong { display: block; margin-bottom: 8px; font-size: 18px; }
.external-panel p { margin: 0 0 18px; }
.provenance {
  display: grid;
  grid-template-columns: 100px repeat(3, minmax(0, 1fr));
  gap: 8px 14px;
  margin: 18px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  color: var(--muted);
  font-size: 12px;
}
.provenance strong { color: var(--fg); }
.provenance .rights-note { grid-column: 2 / -1; }
.submission-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.submission-check input { margin-top: 4px; }

@media (max-width: 1060px) {
  .hero-inner { grid-template-columns: 1fr; }
  .section-head { grid-template-columns: 1fr; align-items: start; }
  .tabs { justify-content: flex-start; }
  .toolbar { grid-template-columns: minmax(0, 1fr) 180px 180px; }
  .view-toggle { grid-column: 1 / -1; width: max-content; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .submit-inner { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .header-inner { min-height: 64px; padding: 10px 18px; align-items: center; }
  .header-actions { gap: 8px; }
  .nav-link { display: none; }
  .header-actions .btn { min-height: 40px; padding: 8px 11px; }
  .hero-inner,
  .shell,
  .submit-inner { padding-left: 18px; padding-right: 18px; }
  .hero-inner { padding-top: 56px; padding-bottom: 46px; gap: 30px; }
  .hero h1 { max-width: none; font-size: clamp(40px, 11vw, 56px); line-height: 1.12; overflow-wrap: anywhere; }
  .hero-break { display: none; }
  .hero p { font-size: 15px; }
  .hero-proof { padding: 18px; }
  .shell { padding-top: 58px; padding-bottom: 72px; }
  .section-head { margin-bottom: 26px; }
  .section-head h2, .submit-band h2 { font-size: 38px; }
  .tabs { width: 100%; overflow-x: auto; flex-wrap: nowrap; justify-content: flex-start; }
  .tab { white-space: nowrap; }
  .toolbar,
  .grid,
  .grid.compact .card { grid-template-columns: 1fr; }
  .view-toggle { grid-column: auto; }
  .grid { gap: 18px; }
  .grid.compact .card-media { aspect-ratio: 16 / 9; }
  .archive-policy { grid-template-columns: 1fr; gap: 4px; }
  .provenance { grid-template-columns: 1fr; }
  .provenance .rights-note { grid-column: auto; }
  .submit-inner { gap: 38px; padding-top: 58px; padding-bottom: 58px; }
  .footer-inner { display: grid; }
}

@media (max-width: 430px) {
  .brand-text span { display: none; }
  .brand-text strong { font-size: 14px; }
  .hero-cta .btn { width: 100%; }
  .hero-proof-list li { align-items: flex-start; }
  .hero-proof-list strong { max-width: 70%; }
  .source-item { grid-template-columns: 36px minmax(0, 1fr); }
}
