/* roulang page: index */
:root {
  --ink: #1A1714;
  --paper: #F3EEE6;
  --clay: #C45C26;
  --clay-deep: #A34B1C;
  --court: #3E6B4C;
  --court-soft: #E5F0E8;
  --plum: #6A3B58;
  --stone: #8C8378;
  --line: #D9D0C3;
  --card: #FFFCF7;
  --dark: #161311;
  --dark-2: #221E1A;
  --warm: #E6DFD4;
  --radius: 8px;
  --shadow: 0 8px 24px rgba(26, 23, 20, .06);
  --max: 1120px;
  --header-h: 118px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Heiti SC", sans-serif;
  font-size: 17px;
  line-height: 1.75;
  padding-top: var(--header-h);
}
img { max-width: 100%; display: block; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1 {
  font-size: 44px;
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-weight: 700;
}
h2 {
  font-size: 28px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  font-weight: 700;
}
h3 {
  font-size: 18px;
  line-height: 1.45;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.num {
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}
.container { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.section { padding: 72px 0; }
.band-paper { background: var(--paper); }
.band-soft { background: #F7F3EC; }
.band-dark { background: var(--dark); color: #F3EEE6; }
.band-dark .lead, .band-dark .muted { color: #D4CBC0; }
.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--stone);
  font-size: 13px;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--clay);
  flex: 0 0 auto;
}
.band-dark .kicker { color: #C9BFB4; }
.lead { margin-top: 14px; max-width: 68ch; color: var(--ink); }
.band-dark .lead { color: #E7E0D6; }
.muted { color: var(--stone); }
.subline { margin-top: 12px; font-size: 16px; color: var(--court); }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.logo {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--ink);
  max-width: 16em;
}
.logo span {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--clay);
}
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  padding: 8px 12px;
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--ink);
}
.site-nav a:hover { color: var(--clay); background: rgba(196, 92, 38, .08); }
.site-nav a:active { background: rgba(196, 92, 38, .16); }
.site-nav a.is-active { color: var(--clay); box-shadow: inset 0 -2px 0 var(--clay); }
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  height: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
}
.nav-toggle:hover { border-color: var(--clay); color: var(--clay); }
.progress-wrap { border-top: 1px solid var(--line); }
.progress {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 10px 0 12px;
  scrollbar-width: thin;
}
.progress a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 6px 12px;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
}
.progress .step-no {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}
.progress li.is-current a {
  background: var(--clay);
  border-color: var(--clay);
  color: #fff;
}
.progress li.is-current .step-no { border-color: rgba(255,255,255,.7); color: #fff; }
.progress a:hover { border-color: var(--clay); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
  font-size: 15px;
  font-weight: 600;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); filter: brightness(.94); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--plum);
  outline-offset: 2px;
}
.btn-clay { background: var(--clay); color: #fff; }
.btn-clay:hover { background: var(--clay-deep); }
.btn-ghost { background: transparent; color: var(--court); border-color: var(--court); }
.btn-ghost:hover { background: var(--court-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

.scoreboard {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 32px;
}
.score {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--clay);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 16px 14px;
}
.score:nth-child(2), .score:nth-child(4) { border-left-color: var(--court); }
.score .label { display: block; color: var(--stone); font-size: 14px; margin-bottom: 8px; }
.score .num { font-size: 34px; line-height: 1; font-weight: 650; }
.score small { display: block; margin-top: 8px; color: var(--stone); font-size: 13px; }

.head-block { max-width: 760px; }
.lanes { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 28px; }
.lane {
  display: grid;
  grid-template-columns: 52px 1.1fr 1.6fr auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--clay);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 18px;
  color: var(--ink);
}
.lane:nth-child(2) { width: 88%; border-left-color: var(--court); }
.lane:nth-child(3) { width: 74%; }
.lane:nth-child(4) { width: 60%; border-left-color: var(--plum); }
.lane:hover { transform: translateY(-1px); border-color: var(--clay); }
.lane-no { color: var(--clay); font-size: 14px; }
.lane-name { font-weight: 700; font-size: 18px; }
.lane-meta { color: var(--stone); font-size: 14px; }
.lane-go { color: var(--clay); font-size: 14px; font-weight: 600; white-space: nowrap; }

.score-table { margin-top: 28px; border-top: 1px solid rgba(217, 208, 195, .35); }
.score-row, .score-head-row {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr 1.3fr;
  gap: 12px;
  align-items: start;
}
.score-head-row { padding: 0 0 10px; color: #C9BFB4; font-size: 13px; letter-spacing: 0.06em; }
.score-row { padding: 16px 0; border-top: 1px solid rgba(217, 208, 195, .28); }
.old-cell { color: #B7AFA4; }
.now-cell { color: #F3EEE6; }
.now-cell strong { color: #F0C2A4; font-weight: 700; }

.axis { margin-top: 28px; margin-left: 6px; border-left: 1px solid var(--line); }
.axis-item { position: relative; padding: 0 0 28px 28px; }
.axis-item::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid var(--clay);
  background: var(--paper);
}
.axis-item:nth-child(even)::before { border-color: var(--court); }
.axis-date { color: var(--clay); font-size: 13px; }
.axis-item h3 { margin: 2px 0 6px; }
.axis-item p { color: #3c3833; max-width: 68ch; }

.scene-rail {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  margin-top: 28px;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
}
.scene-card {
  flex: 0 0 340px;
  scroll-snap-align: start;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--court);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}
.scene-card:nth-child(2) { border-left-color: var(--clay); }
.scene-card:nth-child(3) { border-left-color: var(--plum); }
.scene-card p { margin: 10px 0 16px; color: #3f3a34; font-size: 15px; }
.frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--warm);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.frame::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(26, 23, 20, .12);
}
.scene-card .frame { margin-bottom: 14px; }

.digest { margin-top: 22px; }
.digest a, .related a {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.digest a:hover .digest-title, .related a:hover { color: var(--clay); }
.digest time, .related time { color: var(--stone); font-size: 14px; }
.digest-title { font-weight: 650; }

.tag-wall { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(243, 238, 230, .28);
  color: #F3EEE6;
  background: var(--dark-2);
  font-size: 15px;
}
.tag:hover { background: var(--clay); border-color: var(--clay); color: #fff; }
.tag:active { filter: brightness(.92); }

.assure { margin-top: 12px; }
.assure li {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.assure strong { font-size: 16px; }
.assure span { color: #3f3a34; }

.screen-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 22px;
  margin-top: 28px;
}
.screen-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}
.screen-card:first-child { border-top: 3px solid var(--clay); }
.screen-card:last-child { border-top: 3px solid var(--court); }
.screen-card h3 { margin: 12px 0 8px; }
.screen-card p { color: #3f3a34; font-size: 15px; }
.layout-lines { display: grid; gap: 8px; padding: 18px; height: 100%; }
.layout-lines i {
  display: block;
  height: 10px;
  background: rgba(26, 23, 20, .12);
  border-radius: 99px;
}
.layout-lines i.wide { width: 86%; }
.layout-lines i.mid { width: 62%; }
.layout-lines i.pair { width: 44%; }
.pair-row { display: flex; gap: 10px; }
.screen-card .frame::after { display: none; }

.qa { margin-top: 8px; }
.qa article {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.qa h3 { font-size: 17px; }
.qa p { color: #3f3a34; }

.picks {
  display: grid;
  grid-template-columns: 1.35fr .8fr;
  gap: 18px;
  margin-top: 28px;
}
.pick-lg, .pick-sm {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.pick-lg { border-left: 3px solid var(--clay); padding: 14px; margin-bottom: 18px; }
.pick-lg:last-child { margin-bottom: 0; }
.pick-lg h3, .pick-sm h3 { margin: 10px 0 6px; }
.pick-lg p, .pick-sm p { color: #3f3a34; font-size: 15px; }
.pick-side { display: grid; gap: 12px; }
.pick-sm { border-left: 3px solid var(--court); padding: 12px 14px; }
.pick-sm:nth-child(even) { border-left-color: var(--plum); }
.more-link { display: inline-flex; margin-top: 10px; color: var(--clay); font-weight: 650; font-size: 14px; }
.more-link:hover { color: var(--clay-deep); }

.faq { margin-top: 18px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-weight: 700;
  font-size: 17px;
}
.faq-q::after { content: "+"; color: var(--clay); font-weight: 500; }
.faq-item.is-open .faq-q::after { content: "–"; }
.faq-a { display: none; padding: 0 0 16px; color: #3f3a34; max-width: 70ch; }
.faq-item.is-open .faq-a { display: block; }

.remind-form {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  gap: 14px;
  align-items: end;
}
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: #E7E0D6; }
.field input, .field select {
  height: 46px;
  border-radius: var(--radius);
  border: 1px solid #3A342E;
  background: var(--dark-2);
  color: #F3EEE6;
  padding: 0 12px;
}
.field input::placeholder { color: #8C8378; }
.form-note { margin-top: 14px; color: #E7C3AE; min-height: 1.5em; }
.related { margin-top: 8px; }
.related a { grid-template-columns: 36px 1fr; }

.site-footer { background: #100E0C; color: #E7E0D6; padding: 36px 0 28px; }
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}
.footer-brand { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; color: #fff; }
.footer-note { margin-top: 8px; color: #B7AFA4; max-width: 46ch; font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.footer-links a { color: #F3EEE6; font-size: 14px; }
.footer-links a:hover { color: #F0C2A4; }
.footer-copy {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid rgba(217, 208, 195, .2);
  color: #8C8378;
  font-size: 13px;
}

@media (max-width: 1024px) {
  h1 { font-size: 36px; }
  .scoreboard { grid-template-columns: repeat(2, 1fr); }
  .lane, .lane:nth-child(2), .lane:nth-child(3), .lane:nth-child(4) { width: 100%; }
  .picks, .screen-grid { grid-template-columns: 1fr 1fr; }
  .remind-form { grid-template-columns: 1fr 1fr; }
  .qa article { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 768px) {
  :root { --header-h: 112px; }
  body { font-size: 16px; }
  h1 { font-size: 30px; }
  h2 { font-size: 22px; }
  .section { padding: 40px 0; }
  .container { width: min(var(--max), calc(100% - 28px)); }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 64px;
    z-index: 50;
    flex-direction: column;
    align-items: stretch;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px 14px 14px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px; }
  .scoreboard, .picks, .screen-grid, .remind-form { grid-template-columns: 1fr; }
  .lane { grid-template-columns: 40px 1fr; }
  .lane-meta, .lane-go { grid-column: 2; }
  .score-head-row { display: none; }
  .score-row { grid-template-columns: 1fr; gap: 4px; }
  .assure li, .digest a, .related a { grid-template-columns: 1fr; gap: 4px; }
  .hero-actions .btn { width: 100%; }
  .footer-grid { flex-direction: column; }
  .pick-lg { margin-bottom: 12px; }
}
@media (max-width: 520px) {
  .logo { font-size: 15px; max-width: 11em; }
  .score .num { font-size: 28px; }
  .scene-card { flex-basis: 84%; }
  .score-row .old-cell::before { content: "旧路径 · "; color: #8C8378; }
  .score-row .now-cell::before { content: "当前索引 · "; color: #C9BFB4; }
}

/* roulang page: category1 */
:root {
  --ink: #1A1714;
  --paper: #F3EEE6;
  --clay: #C45C26;
  --clay-deep: #A34B1C;
  --court: #3E6B4C;
  --court-soft: #E5F0E8;
  --plum: #6A3B58;
  --stone: #8C8378;
  --line: #D9D0C3;
  --card: #FFFCF7;
  --dark: #161311;
  --dark-2: #221E1A;
  --warm: #E6DFD4;
  --radius: 8px;
  --shadow: 0 8px 24px rgba(26, 23, 20, .06);
  --max: 1120px;
  --header-h: 118px;
}
:root { --header-h: 112px; }
:root {
  --ink: #1A1714;
  --paper: #F3EEE6;
  --clay: #C45C26;
  --clay-deep: #A34B1C;
  --court: #3E6B4C;
  --court-soft: #E5F0E8;
  --plum: #6A3B58;
  --stone: #8C8378;
  --line: #D9D0C3;
  --card: #FFFCF7;
  --dark: #161311;
  --dark-2: #221E1A;
  --warm: #E6DFD4;
  --radius: 8px;
  --shadow: 0 8px 24px rgba(26, 23, 20, .06);
  --max: 1120px;
  --header-h: 118px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Heiti SC", sans-serif;
  font-size: 17px;
  line-height: 1.75;
  padding-top: var(--header-h);
}
img { max-width: 100%; display: block; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 0.8em; }
h1, h2, h3 { margin: 0; letter-spacing: -0.03em; line-height: 1.3; font-weight: 700; }
h1 { font-size: 44px; }
h2 { font-size: 26px; }
h3 { font-size: 18px; }
.num { font-variant-numeric: tabular-nums; font-family: ui-monospace, "SFMono-Regular", "Cascadia Mono", monospace; }
.container { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.section { padding: 72px 0; }
.band-paper { background: var(--paper); }
.band-warm { background: var(--warm); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-dark { background: var(--dark); color: #F3EEE6; }
.band-dark .muted, .band-dark .lead { color: #D4CBC0; }
.lead { margin-top: 14px; max-width: 68ch; }
.muted { color: var(--stone); }
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  position: relative;
}
.logo {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--ink);
  max-width: 16em;
}
.logo span {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--clay);
}
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  padding: 8px 12px;
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--ink);
}
.site-nav a:hover { color: var(--clay); background: rgba(196, 92, 38, .08); }
.site-nav a:active { background: rgba(196, 92, 38, .16); }
.site-nav a.is-active { color: var(--clay); box-shadow: inset 0 -2px 0 var(--clay); }
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  height: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
}
.nav-toggle:hover { border-color: var(--clay); color: var(--clay); }
.nav-toggle:active { background: var(--warm); }
.progress-wrap { border-top: 1px solid var(--line); overflow-x: auto; }
.progress {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 10px 0 12px;
}
.progress li { flex: 0 0 auto; }
.progress a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 6px 12px;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
}
.progress li.is-current a {
  background: var(--clay);
  border-color: var(--clay);
  color: #fff;
}
.progress a:hover { border-color: var(--clay); }
.progress a:active { background: rgba(196, 92, 38, .12); }
.step-no {
  width: 1.4em;
  height: 1.4em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid currentColor;
  font-size: 12px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
  font-size: 15px;
  font-weight: 600;
  background: transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); filter: brightness(.94); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--plum);
  outline-offset: 2px;
}
.btn-clay { background: var(--clay); color: #fff; }
.btn-clay:hover { background: var(--clay-deep); }
.btn-ghost { background: transparent; color: var(--court); border-color: var(--court); }
.btn-ghost:hover { background: var(--court-soft); }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 14px; }
.catalog-head {
  display: grid;
  grid-template-columns: 1.4fr .8fr;
  gap: 28px;
  align-items: end;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.kicker {
  margin: 0 0 10px;
  color: var(--clay);
  font-size: 13px;
  letter-spacing: 0.08em;
}
.catalog-head .lead { margin-bottom: 0; color: #3c3833; }
.side-index {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--clay);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px 16px;
}
.side-index ol { list-style: none; margin: 0; padding: 0; }
.side-index li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.side-index li:first-child { border-top: 0; }
.side-index strong { font-size: 20px; color: var(--clay); font-weight: 700; }
.filters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.filter-group {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
}
.filter-group:nth-child(odd) { border-top: 3px solid var(--clay); }
.filter-group:nth-child(even) { border-top: 3px solid var(--court); }
.filter-label { display: block; margin-bottom: 10px; font-size: 14px; color: var(--stone); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
}
.chip:hover { border-color: var(--clay); color: var(--clay); }
.chip:active { background: rgba(196, 92, 38, .12); }
.chip[aria-pressed="true"] { background: var(--clay); border-color: var(--clay); color: #fff; }
.filter-empty {
  margin: 18px 0 0;
  padding: 12px 14px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--stone);
}
.entry-list { margin-top: 8px; }
.entry {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 18px;
  padding: 20px 0 20px 14px;
  border-bottom: 1px solid var(--line);
  border-left: 3px solid var(--clay);
}
.entry[data-region="kr"] { border-left-color: var(--court); }
.entry[hidden] { display: none; }
.frame {
  aspect-ratio: 16 / 9;
  background: #E4DDD3;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.frame::before, .frame::after {
  content: "";
  position: absolute;
  left: 12px;
  height: 1px;
  background: var(--stone);
  opacity: .55;
}
.frame::before { top: 14px; width: 36px; }
.frame::after { top: 20px; width: 22px; }
.entry-no {
  position: absolute;
  right: 10px;
  bottom: 8px;
  font-size: 12px;
  color: var(--stone);
}
.entry h3 { margin-bottom: 8px; }
.entry h3 a:hover { color: var(--clay); }
.entry p { margin: 0 0 12px; color: #3f3a34; font-size: 15px; }
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--stone);
  font-size: 12px;
}
.rhythm {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  align-items: start;
  border-left: 3px solid var(--clay);
  padding-left: 18px;
}
.rhythm .num { font-size: 28px; color: #F3EEE6; display: block; }
.rhythm p { margin: 0; color: #E7E0D6; max-width: 68ch; }
.screen-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 22px;
  margin-top: 28px;
}
.screen-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 18px 8px;
}
.screen-card:first-child { border-top: 3px solid var(--clay); }
.screen-card:last-child { border-top: 3px solid var(--court); }
.screen-card h3 { margin: 0 0 10px; }
.screen-card p { color: #3f3a34; font-size: 15px; }
.screen-card ul { margin: 0 0 12px; padding: 0; list-style: none; }
.screen-card li {
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.related a {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.related a:hover { color: var(--clay); }
.related time { color: var(--stone); font-size: 14px; }
.faq { margin-top: 18px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); background: transparent; }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 0;
  font-weight: 650;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--clay); font-size: 20px; line-height: 1; }
.faq-item[open] summary::after { content: "–"; }
.faq-item summary:hover { color: var(--clay); }
.faq-item p { margin: 0 0 16px; color: #3f3a34; max-width: 68ch; }
.more-row { display: flex; align-items: center; gap: 16px; }
.back-line { margin: 16px 0 0; font-size: 15px; }
.back-line a { border-bottom: 1px solid var(--clay); color: #F3EEE6; }
.back-line a:hover { color: #fff; }
.site-footer { background: var(--dark); color: #E7E0D6; padding: 36px 0 22px; border-top: 1px solid rgba(217, 208, 195, .2); }
.footer-grid { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; }
.footer-brand { margin: 0 0 8px; font-weight: 700; letter-spacing: -0.03em; color: #fff; }
.footer-note { margin: 0; color: #C9BFB4; font-size: 14px; max-width: 36em; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.footer-links a { color: #E7E0D6; font-size: 14px; }
.footer-links a:hover { color: #fff; }
.footer-copy { margin-top: 22px; padding-top: 14px; border-top: 1px solid rgba(217, 208, 195, .2); color: #A89F94; font-size: 13px; }
@media (max-width: 1024px) {
  .catalog-head, .screen-grid, .filters { grid-template-columns: 1fr 1fr; }
  .rhythm { grid-template-columns: 120px 1fr; }
}
@media (max-width: 768px) {
  :root { --header-h: 112px; }
  h1 { font-size: 30px; }
  h2 { font-size: 22px; }
  .section { padding: 40px 0; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 64px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 20px 12px;
    z-index: 50;
  }
  .site-nav.is-open { display: flex; }
  .catalog-head, .screen-grid, .filters, .rhythm, .entry, .related a {
    grid-template-columns: 1fr;
  }
  .footer-grid { flex-direction: column; }
  .entry { padding-left: 12px; }
}
@media (max-width: 520px) {
  .container { width: min(var(--max), calc(100% - 28px)); }
  .logo { font-size: 16px; max-width: 12em; }
  .chip { min-height: 36px; }
  .more-row { align-items: stretch; }
  .btn { width: 100%; }
}
