:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --text: #2b2f36;
  --text-soft: #6b7280;
  --line: #e3e6eb;
  --brand: #3b5bdb;
  --brand-soft: #eef1fb;
  --brand-deep: #2f49b0;
  --warn-bg: #fdf6e9;
  --warn-line: #ecd9ac;
  --warn-text: #7a5a12;
  --note-bg: #f2f5ff;
  --note-line: #ccd6f6;
  --radius: 6px;
  --radius-sm: 4px;
  --shadow: 0 1px 2px rgba(43, 47, 54, 0.05);
  --container: 1120px;
  --gap: 24px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body.site-body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  font-variant-numeric: tabular-nums;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--brand-deep);
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 12px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
}

p {
  margin: 0 0 14px;
}

ul,
ol {
  margin: 0 0 14px;
  padding-left: 1.2em;
}

figure {
  margin: 0;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* ===== layout ===== */

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 30;
}

.site-header-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.site-nav {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.site-brand {
  flex: 0 0 auto;
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
}

.site-brand:hover,
.site-brand:focus-visible {
  color: var(--brand);
  text-decoration: none;
  background: var(--brand-soft);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list-left {
  justify-content: flex-start;
}

.nav-list-right {
  justify-content: flex-end;
}

.nav-item {
  margin: 0;
}

.nav-link {
  display: inline-block;
  padding: 8px 12px;
  min-height: 44px;
  line-height: 28px;
  color: var(--text-soft);
  border-radius: var(--radius-sm);
  font-size: 15px;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--brand);
  background: var(--brand-soft);
  text-decoration: none;
}

.nav-link.is-current {
  color: var(--brand);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
}

.site-main {
  display: block;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 28px 20px 56px;
}

.inner-main {
  padding-top: 20px;
}

/* ===== components ===== */

.section {
  margin-bottom: 44px;
}

.section-head {
  margin-bottom: 18px;
}

.section-title {
  font-size: 22px;
  margin-bottom: 6px;
}

.section-desc,
.section-intro {
  color: var(--text-soft);
  font-size: 15px;
  margin: 0;
  max-width: 76ch;
}

.sub-title {
  font-size: 17px;
  margin-bottom: 10px;
}

.section-foot {
  margin: 16px 0 0;
  font-size: 15px;
}

.inline-link {
  font-weight: 500;
}

.tag {
  display: inline-block;
  padding: 2px 8px;
  margin-right: 6px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--brand-deep);
  background: var(--brand-soft);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  border: 1px solid transparent;
}

.btn:hover,
.btn:focus-visible {
  text-decoration: none;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--brand-deep);
  color: #fff;
}

.btn-ghost {
  background: var(--surface);
  color: var(--brand);
  border-color: var(--line);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--brand);
  color: var(--brand-deep);
  background: var(--brand-soft);
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 14px;
  color: var(--text-soft);
  margin-bottom: 14px;
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--text-soft);
}

.page-header {
  margin-bottom: 26px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.page-title {
  font-size: 30px;
  margin-bottom: 10px;
}

.page-description {
  color: var(--text-soft);
  font-size: 15px;
  margin: 0;
  max-width: 78ch;
}

.page-layout {
  display: grid;
  gap: var(--gap);
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.layout-shell {
  grid-template-columns: minmax(0, 1fr) 280px;
}

.page-layout.layout-shell.sidebar-left {
  grid-template-columns: 240px minmax(0, 1fr);
}

.content-column {
  min-width: 0;
}

.callout {
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 18px 0;
  border: 1px solid var(--line);
  background: var(--surface);
}

.callout-note {
  background: var(--note-bg);
  border-color: var(--note-line);
}

.callout-warn {
  background: var(--warn-bg);
  border-color: var(--warn-line);
}

.callout-title {
  font-weight: 600;
  margin: 0 0 8px;
}

.callout-warn .callout-title {
  color: var(--warn-text);
}

.callout-list,
.callout-text {
  margin: 0;
  font-size: 15px;
}

.callout-list {
  padding-left: 1.2em;
}

.callout-list li {
  margin-bottom: 4px;
}

.notice-box {
  border-radius: var(--radius);
  border: 1px solid var(--note-line);
  background: var(--note-bg);
  padding: 16px 18px;
  margin-top: 18px;
}

.notice-title {
  font-size: 15px;
  margin-bottom: 6px;
}

.notice-text {
  margin: 0;
  font-size: 15px;
  color: var(--text-soft);
}

.field-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.field-table caption,
.field-table-caption,
.field-caption {
  caption-side: top;
  text-align: left;
  padding: 10px 12px;
  color: var(--text-soft);
  font-size: 14px;
  border-bottom: 1px solid var(--line);
}

.field-table th,
.field-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.field-table thead th {
  background: #f1f3f8;
  font-weight: 600;
  color: var(--text);
}

.field-table tbody th {
  font-weight: 600;
  width: 140px;
}

.field-table tbody tr:last-child th,
.field-table tbody tr:last-child td {
  border-bottom: 0;
}

.field-table-wrap {
  overflow-x: auto;
}

.related-section {
  margin-top: 36px;
}

.related-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.related-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
}

.related-link {
  font-weight: 500;
}

.related-desc {
  display: block;
  color: var(--text-soft);
  font-size: 14px;
  margin-top: 4px;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

.faq-question {
  cursor: pointer;
  font-weight: 600;
  padding: 4px 0;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.faq-answer {
  margin: 8px 0 4px;
  color: var(--text-soft);
  font-size: 15px;
}

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  margin-top: 20px;
}

.site-footer-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 28px 20px;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
}

.footer-brand-name {
  font-weight: 600;
  margin: 0 0 4px;
}

.footer-brand-desc,
.footer-note,
.footer-copy {
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
}

.footer-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}

.footer-link {
  display: inline-block;
  padding: 8px 0;
  min-height: 44px;
  line-height: 28px;
  color: var(--text-soft);
  font-size: 14px;
}

.footer-link:hover,
.footer-link:focus-visible {
  color: var(--brand);
}

/* ===== pages: home ===== */

.fact-bar {
  background: var(--brand-soft);
  border-bottom: 1px solid var(--line);
}

.fact-bar-text {
  max-width: var(--container);
  margin: 0 auto;
  padding: 8px 20px;
  font-size: 13px;
  color: var(--brand-deep);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: 32px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  margin-bottom: 44px;
}

.hero-text {
  min-width: 0;
}

.hero-title {
  font-size: 30px;
  margin-bottom: 12px;
}

.hero-summary {
  color: var(--text-soft);
  font-size: 15px;
  margin-bottom: 16px;
}

.hero-tags {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tag {
  padding: 4px 10px;
  font-size: 13px;
  color: var(--brand-deep);
  background: var(--brand-soft);
  border-radius: var(--radius-sm);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-media {
  min-width: 0;
}

.hero-media img {
  display: block;
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.hero-media-caption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-soft);
}

.genre-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.genre-col {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 16px 12px;
  min-width: 0;
}

.genre-name {
  font-size: 17px;
  margin-bottom: 8px;
}

.genre-scope {
  color: var(--text-soft);
  font-size: 14px;
  margin-bottom: 10px;
}

.genre-items {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.genre-item {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.genre-item:last-child {
  border-bottom: 0;
}

.cover-wall {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.cover-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  min-width: 0;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.cover-card:hover {
  background: #fbfcfe;
  border-color: #cfd6e6;
}

.cover-figure {
  margin-bottom: 10px;
}

.cover-figure img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: #eceff5;
}

.cover-card:nth-child(3n + 2) .cover-figure img {
  height: 232px;
}

.cover-card:nth-child(3n) .cover-figure img {
  height: 178px;
}

.cover-name {
  font-size: 15px;
  margin-bottom: 6px;
}

.cover-tags {
  margin: 0;
}

.update-list,
.updates-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.update-row {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr) 120px 92px;
  gap: 12px;
  align-items: center;
  padding: 11px 10px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  transition: background-color 0.18s ease;
}

.update-row:hover {
  background: #fbfcfe;
}

.update-date {
  color: var(--text-soft);
  font-size: 14px;
}

.update-name {
  min-width: 0;
}

.update-genre {
  color: var(--text-soft);
  font-size: 14px;
}

.update-status {
  font-size: 13px;
  justify-self: start;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: var(--brand-soft);
  color: var(--brand-deep);
}

.status-ongoing {
  background: var(--brand-soft);
  color: var(--brand-deep);
}

.status-completed {
  background: #eaf5ee;
  color: #2f6d45;
}

.status-paused {
  background: #f3f1ec;
  color: #7a6a4a;
}

.ranking-layout,
.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
  gap: var(--gap);
  align-items: start;
}

.ranking-main,
.guide-main {
  min-width: 0;
}

.ranking-aside,
.guide-aside {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.rank-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.rank-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.18s ease;
}

.rank-item:hover {
  background: #fbfcfe;
}

.rank-no {
  font-weight: 600;
  color: var(--brand);
  font-size: 15px;
}

.rank-name {
  min-width: 0;
}

.aside-text {
  font-size: 14px;
  color: var(--text-soft);
}

.aside-link {
  margin: 10px 0 0;
  font-size: 14px;
}

.field-summary {
  margin: 0;
  border-top: 1px solid var(--line);
}

.field-name {
  font-weight: 600;
  padding-top: 10px;
}

.field-desc {
  margin: 0 0 10px;
  color: var(--text-soft);
  font-size: 15px;
}

.feedback-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.feedback-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--text-soft);
}

.feedback-item:last-child {
  border-bottom: 0;
}

.index-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.index-col {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 15px;
  min-width: 0;
}

.index-name {
  font-size: 16px;
  margin-bottom: 6px;
}

.index-desc {
  margin: 0;
  font-size: 14px;
  color: var(--text-soft);
}

/* ===== pages: genres ===== */

.genres-tree {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  min-width: 0;
}

.tree-title {
  font-size: 16px;
  margin-bottom: 6px;
}

.tree-note {
  font-size: 13px;
  color: var(--text-soft);
  margin-bottom: 12px;
}

.tree-list,
.tree-sublist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tree-item {
  border-bottom: 1px solid var(--line);
}

.tree-item:last-child {
  border-bottom: 0;
}

.tree-toggle {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 10px 4px;
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
}

.tree-toggle:hover {
  color: var(--brand);
}

.tree-item.is-open .tree-toggle {
  color: var(--brand);
}

.tree-sublist {
  display: none;
  padding: 0 0 8px 12px;
}

.tree-item.is-open .tree-sublist {
  display: block;
}

.tree-subitem {
  padding: 6px 0;
  font-size: 14px;
  color: var(--text-soft);
}

.genre-section {
  margin-bottom: 36px;
}

.genre-block {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 18px;
  scroll-margin-top: 90px;
}

.genre-figure {
  min-width: 0;
}

.genre-figure img {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: #eceff5;
}

.genre-figure-caption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-soft);
}

.genre-body {
  min-width: 0;
}

.genre-entry-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.genre-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.genre-entry:last-child {
  border-bottom: 0;
}

.entry-tag {
  font-size: 12px;
  color: var(--brand-deep);
  background: var(--brand-soft);
  border-radius: var(--radius-sm);
  padding: 2px 8px;
  white-space: nowrap;
}

.entry-status {
  font-size: 13px;
  color: var(--text-soft);
  white-space: nowrap;
}

.field-section {
  margin-bottom: 36px;
}

.field-note {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-soft);
}

/* ===== pages: updates ===== */

.content-section {
  margin-bottom: 36px;
}

.updates-list .update-row {
  grid-template-columns: 116px minmax(0, 1fr) 132px 96px;
}

.note-body {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.note-text {
  font-size: 15px;
}

.note-figure {
  margin: 16px 0;
}

.note-figure img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: #eceff5;
}

.note-caption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-soft);
}

/* ===== pages: ranking ===== */

.rank-section {
  min-width: 0;
}

.rank-figure {
  margin-bottom: 18px;
}

.rank-figure img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: #eceff5;
}

.rank-figure figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-soft);
}

.rank-section .rank-item {
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: start;
  padding: 14px 10px;
}

.rank-body {
  min-width: 0;
}

.rank-section .rank-name {
  font-size: 16px;
  margin-bottom: 4px;
}

.rank-note {
  margin: 0;
  font-size: 14px;
  color: var(--text-soft);
}

.rank-aside {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.aside-title {
  font-size: 17px;
  margin-bottom: 10px;
}

.aside-block {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.aside-block:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.aside-subtitle {
  font-size: 15px;
  margin-bottom: 4px;
}

.aside-block p {
  margin: 0;
  font-size: 14px;
  color: var(--text-soft);
}

/* ===== pages: reading guide ===== */

.page-figure {
  margin-bottom: 28px;
}

.page-figure img {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #eceff5;
}

.page-figure-caption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-soft);
}

.guide-section {
  margin-bottom: 36px;
}

.genre-rule-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.genre-rule-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  min-width: 0;
}

.genre-rule-title {
  font-size: 15px;
  margin-bottom: 6px;
}

.genre-rule-text {
  margin: 0;
  font-size: 14px;
  color: var(--text-soft);
}

.feedback-title {
  font-size: 15px;
  margin-bottom: 6px;
}

.feedback-text {
  margin: 0;
  font-size: 14px;
  color: var(--text-soft);
}

/* ===== pages: 404 ===== */

.error-main {
  padding-top: 48px;
}

.error-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 28px;
  max-width: 720px;
}

.error-panel h1 {
  font-size: 30px;
  margin-bottom: 12px;
}

.error-lead {
  font-size: 16px;
  margin-bottom: 10px;
}

.error-note {
  color: var(--text-soft);
  font-size: 15px;
}

.error-actions {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.error-action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 15px;
}

.error-action-link:hover,
.error-action-link:focus-visible {
  border-color: var(--brand);
  background: var(--brand-soft);
  text-decoration: none;
}

.error-action-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.error-action-primary:hover,
.error-action-primary:focus-visible {
  background: var(--brand-deep);
  border-color: var(--brand-deep);
  color: #fff;
}

/* ===== responsive ===== */

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
    gap: 24px;
  }

  .genre-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .index-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .layout-shell,
  .page-layout.layout-shell.sidebar-left {
    grid-template-columns: minmax(0, 1fr) 260px;
  }

  .page-layout.layout-shell.sidebar-left {
    grid-template-columns: 220px minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .site-header-inner {
    padding: 10px 16px;
    gap: 10px;
  }

  .site-nav {
    flex-wrap: wrap;
    gap: 0;
  }

  .nav-toggle {
    display: flex;
    order: 1;
  }

  .site-brand {
    order: 2;
    flex: 1 1 auto;
    text-align: center;
    font-size: 18px;
  }

  .nav-list {
    order: 3;
    flex: 1 1 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    display: none;
    border-top: 1px solid var(--line);
    margin-top: 10px;
    padding-top: 6px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    display: block;
    padding: 10px 4px;
  }

  .site-main {
    padding: 20px 16px 44px;
  }

  .fact-bar-text {
    padding: 8px 16px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    padding: 22px 18px;
    gap: 20px;
  }

  .hero-title,
  .page-title,
  .error-panel h1 {
    font-size: 24px;
  }

  .hero-media img {
    height: 220px;
  }

  .genre-grid,
  .cover-wall,
  .index-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cover-figure img,
  .cover-card:nth-child(3n + 2) .cover-figure img,
  .cover-card:nth-child(3n) .cover-figure img {
    height: 170px;
  }

  .ranking-layout,
  .guide-layout,
  .layout-shell,
  .page-layout.layout-shell.sidebar-left {
    grid-template-columns: minmax(0, 1fr);
  }

  .update-row,
  .updates-list .update-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 10px;
    padding: 12px 4px;
  }

  .update-name {
    grid-column: 1 / -1;
    font-size: 15px;
  }

  .update-status {
    justify-self: end;
  }

  .genre-block {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .genre-figure img {
    height: 180px;
  }

  .genre-entry {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .entry-status {
    grid-column: 2;
  }

  .note-figure img,
  .rank-figure img,
  .page-figure img {
    height: 200px;
  }

  .field-table tbody th {
    width: auto;
  }

  .site-footer-inner {
    grid-template-columns: minmax(0, 1fr);
    padding: 24px 16px;
    gap: 16px;
  }

  .error-main {
    padding-top: 28px;
  }

  .error-panel {
    padding: 24px 18px;
  }
}

@media (max-width: 480px) {
  .cover-wall,
  .genre-grid,
  .index-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cover-figure img,
  .cover-card:nth-child(3n + 2) .cover-figure img,
  .cover-card:nth-child(3n) .cover-figure img {
    height: 200px;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }
}
