/* =========================================================
   base
   ========================================================= */
:root {
  --paper: #F7F5EF;
  --ink: #12332B;
  --green: #1F6B58;
  --brick: #B4552F;
  --card: #FFFFFF;
  --muted: #5A6B63;
  --line: #D8D3C6;
  --radius: 4px;
  --radius-sm: 2px;
  --container: 1160px;
  --gutter: 24px;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", "Menlo", "Consolas", "Liberation Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body.site-body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 600;
  line-height: 1.35;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

dl,
dt,
dd {
  margin: 0;
}

figure {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--green);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover {
  color: var(--brick);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--brick);
  outline-offset: 2px;
}

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

time {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

strong {
  font-weight: 600;
  color: var(--ink);
}

/* =========================================================
   layout
   ========================================================= */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.site-main {
  display: block;
  padding-bottom: 64px;
}

.inner-main {
  padding-bottom: 72px;
}

/* --- site header --- */
.site-header {
  background-color: var(--paper);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 30;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.brand:hover {
  color: var(--green);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background-color: var(--card);
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--ink);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  display: block;
}

.nav-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.nav-item {
  display: block;
}

.nav-item > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--ink);
  font-size: 15px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.nav-item > a:hover {
  color: var(--green);
  border-bottom-color: var(--green);
}

.nav-item.is-current > a,
.nav-item > a.is-current {
  font-weight: 600;
  color: var(--ink);
  border-bottom-color: var(--brick);
}

/* --- breadcrumb & page header --- */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px var(--gutter) 0;
  font-size: 14px;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--green);
  min-height: 24px;
  display: inline-flex;
  align-items: center;
}

.breadcrumb-sep {
  color: var(--muted);
}

.breadcrumb-current {
  color: var(--muted);
}

.page-header {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 20px var(--gutter) 0;
}

.page-title {
  font-size: 34px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}

/* --- page layout shells --- */
.page-layout {
  display: grid;
  gap: 32px;
}

.home-split {
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  align-items: start;
  margin-top: 56px;
}

.layout-shell {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 32px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  align-items: start;
}

.layout-main {
  min-width: 0;
  max-width: none;
}

.layout-aside {
  min-width: 0;
}

.layout-shell .layout-aside {
  order: 2;
}

.layout-shell .layout-main {
  order: 1;
}

.sidebar-left .layout-aside {
  order: 1;
}

.sidebar-left .layout-main {
  order: 2;
}

/* --- site footer --- */
.site-footer {
  background-color: var(--ink);
  color: var(--paper);
  padding: 48px 0 24px;
  margin-top: 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr);
  gap: 40px;
  align-items: start;
}

.footer-brand {
  min-width: 0;
}

.footer-name {
  color: var(--paper);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}

.footer-desc {
  color: #BFD0C8;
  font-size: 14px;
  line-height: 1.7;
  max-width: 320px;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.footer-group {
  min-width: 0;
}

.footer-group-title {
  color: var(--paper);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
}

.footer-group ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-group li {
  min-width: 0;
}

.footer-group a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  color: #BFD0C8;
  font-size: 14px;
  line-height: 1.5;
  transition: color 0.18s ease;
}

.footer-group a:hover {
  color: #FFFFFF;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(216, 211, 198, 0.22);
  color: #A9BDB4;
  font-size: 13px;
  line-height: 1.6;
}

.footer-bottom p {
  margin: 0;
}

.footer-copy {
  color: #A9BDB4;
}

.footer-year {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* =========================================================
   components
   ========================================================= */
.section-head {
  margin-bottom: 20px;
}

.section-title,
.section-head h2 {
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.section-note {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  max-width: 720px;
}

.section-note a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.section-more {
  margin-top: 16px;
  font-size: 14px;
}

.section-more a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--green);
  font-weight: 500;
}

.section-more a::after {
  content: "→";
  margin-left: 6px;
  transition: transform 0.18s ease;
}

.section-more a:hover::after {
  transform: translateX(3px);
}

/* --- buttons --- */
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--green);
  border-radius: var(--radius-sm);
  color: var(--green);
  font-size: 15px;
  font-weight: 500;
  background-color: transparent;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn-outline:hover {
  background-color: var(--green);
  color: var(--paper);
  border-color: var(--green);
}

/* --- tags --- */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 1px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  background-color: var(--card);
  white-space: nowrap;
}

.tag-genre {
  border-color: var(--green);
  color: var(--green);
}

.tag-status {
  border-color: var(--line);
  color: var(--muted);
}

.tag-status-makeup {
  border-color: var(--brick);
  color: var(--brick);
}

.tag-status-finale {
  border-color: var(--ink);
  color: var(--ink);
}

.tag + .tag {
  margin-left: 6px;
}

/* --- tip band --- */
.tip-band {
  background-color: var(--card);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
}

.tip-band-alt {
  background-color: #F1EEE4;
}

.tip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
}

.tip-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  flex: 0 0 auto;
}

.tip-text {
  flex: 1 1 320px;
  min-width: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.tip-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--green);
  border-radius: var(--radius-sm);
  color: var(--green);
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.tip-link:hover {
  background-color: var(--green);
  color: var(--paper);
}

/* --- note box / rule box / coverage box --- */
.note-box,
.rule-box,
.coverage-box {
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.note-box h2,
.rule-box-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--ink);
}

.note-box p,
.rule-limit,
.coverage-limit {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  margin-top: 10px;
}

.note-list,
.rule-list,
.coverage-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.note-list li,
.rule-list li,
.coverage-list li {
  position: relative;
  padding-left: 18px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.7;
}

.note-list li::before,
.rule-list li::before,
.coverage-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background-color: var(--brick);
  border-radius: 1px;
}

.coverage-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 18px;
  font-size: 14px;
}

.coverage-links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--green);
}

/* --- FAQ --- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 20px;
}

.faq-item summary {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 8px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  margin-left: auto;
  padding-left: 12px;
  font-size: 20px;
  font-weight: 400;
  color: var(--green);
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  padding: 4px 0 16px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

/* =========================================================
   pages
   ========================================================= */

/* --- home: hero --- */
.hero {
  padding: 48px 0 8px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.hero-text {
  min-width: 0;
}

.hero-text h1 {
  font-size: 34px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 18px;
}

.hero-lead {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  margin-bottom: 12px;
}

.hero-sub {
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-media {
  min-width: 0;
}

.hero-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background-color: var(--card);
}

.hero-media figcaption {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

/* --- home: stat strip --- */
.stat-strip {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}

.stat-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding-left: 16px;
  border-left: 3px solid var(--brick);
}

.stat-num {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--brick);
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

/* --- home: genre band --- */
.genre-band {
  padding: 56px 0 0;
}

.genre-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.genre-cell {
  min-width: 0;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.genre-cell:hover {
  border-color: var(--green);
  transform: translateY(-2px);
}

.genre-cell a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px;
  min-height: 100%;
  color: var(--ink);
}

.genre-cell a:hover {
  color: var(--ink);
}

.genre-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}

.genre-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}

/* --- home: cover wall --- */
.cover-wall {
  padding: 56px 0 0;
}

.cover-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.cover-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.cover-card:hover {
  border-color: var(--green);
  transform: translateY(-2px);
}

.cover-thumb {
  min-width: 0;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background-color: #EBE7DA;
}

.cover-thumb img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.cover-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  min-width: 0;
}

.cover-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}

.cover-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cover-summary {
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}

.cover-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin-top: 2px;
  font-size: 14px;
  font-weight: 500;
  color: var(--green);
}

.cover-link::after {
  content: "→";
  margin-left: 5px;
}

/* --- home: recent updates --- */
.recent-updates {
  min-width: 0;
}

.update-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.update-item {
  display: grid;
  grid-template-columns: 92px 56px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.update-time {
  padding-top: 2px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.update-thumb {
  width: 56px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background-color: #EBE7DA;
}

.update-thumb img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.update-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.update-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}

.update-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

/* --- home: rank summary aside --- */
.rank-summary {
  min-width: 0;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.rank-summary h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.rank-block {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.rank-block:first-of-type {
  margin-top: 12px;
  padding-top: 0;
  border-top: none;
}

.rank-block-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 8px;
}

.rank-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rank-item {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  min-width: 0;
}

.rank-no {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--brick);
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
}

.rank-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.5;
}

.rank-note {
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

/* --- home: feature picks --- */
.feature-picks {
  padding: 56px 0 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.feature-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.feature-card:hover {
  border-color: var(--green);
  transform: translateY(-2px);
}

.feature-thumb {
  min-width: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: #EBE7DA;
}

.feature-thumb img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.feature-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  min-width: 0;
}

.feature-name {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}

.feature-works,
.feature-pre {
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}

.feature-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin-top: 2px;
  font-size: 14px;
  font-weight: 500;
  color: var(--green);
}

.feature-link::after {
  content: "→";
  margin-left: 5px;
}

/* --- inner: page head / intro --- */
.page-head {
  padding-bottom: 8px;
}

.page-head-inner {
  max-width: none;
}

.page-lead {
  max-width: 640px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.page-intro {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 12px var(--gutter) 0;
}

.page-title-section {
  padding: 8px 0 0;
}

.page-title-section .page-lead {
  max-width: 640px;
}

.page-hero {
  padding: 12px 0 0;
}

/* --- inner: generic section --- */
.section {
  padding: 40px 0 0;
}

.section > .container {
  min-width: 0;
}

/* --- genres page --- */
.section-overview .overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.overview-card {
  min-width: 0;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.overview-card-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.overview-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.section-genres .genre-block {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 24px;
  align-items: start;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.section-genres .genre-block:first-of-type {
  margin-top: 24px;
}

.genre-info {
  min-width: 0;
}

.genre-info .genre-name {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.genre-info .genre-desc {
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 14px;
}

.genre-meta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 14px;
  font-size: 14px;
  line-height: 1.65;
}

.genre-meta dt {
  color: var(--green);
  font-weight: 600;
  white-space: nowrap;
}

.genre-meta dd {
  color: var(--muted);
  min-width: 0;
}

.genre-covers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  min-width: 0;
}

.genre-covers .cover-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.genre-covers .cover-card:hover {
  border-color: var(--green);
  transform: translateY(-2px);
}

.genre-covers .cover-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background-color: #EBE7DA;
}

.genre-covers .cover-card figcaption {
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink);
}

.section-cross .cross-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
  counter-reset: cross;
}

.cross-item {
  min-width: 0;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.cross-item-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.cross-item p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.cross-more {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 20px;
  font-size: 14px;
}

.cross-more a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--green);
}

/* --- updates page --- */
.timeline-section {
  margin-bottom: 40px;
}

.timeline-section:last-of-type {
  margin-bottom: 28px;
}

.timeline-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.timeline-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-cover {
  width: 56px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background-color: #EBE7DA;
}

.timeline-cover img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.timeline-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}

.timeline-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}

.timeline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.timeline-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.layout-aside .aside-block {
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}

.layout-aside .aside-block:last-child {
  margin-bottom: 0;
}

.aside-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.aside-block p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.aside-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.aside-list li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink);
}

.aside-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  background-color: var(--green);
  border-radius: 1px;
}

.aside-note {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}

/* --- rankings page --- */
.caliber-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.caliber-card {
  min-width: 0;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.caliber-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.caliber-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 12px;
}

.caliber-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.caliber-list li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink);
}

.caliber-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  background-color: var(--brick);
  border-radius: 1px;
}

.caliber-foot,
.advice-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 20px;
  font-size: 14px;
}

.caliber-foot a,
.advice-foot a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--green);
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 20px;
}

.compare-column {
  min-width: 0;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.compare-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.compare-column .rank-list {
  gap: 14px;
}

.compare-column .rank-item {
  display: grid;
  grid-template-columns: 26px 44px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-width: 0;
}

.compare-column .rank-no {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--brick);
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}

.rank-cover {
  width: 44px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background-color: #EBE7DA;
}

.rank-cover img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.rank-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rank-work {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
}

.rank-genre {
  font-size: 12px;
  line-height: 1.5;
  color: var(--green);
}

.rank-trend {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.shift-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.shift-item {
  min-width: 0;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brick);
  border-radius: var(--radius);
  padding: 20px;
}

.shift-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.shift-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.advice-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  margin-top: 20px;
  align-items: start;
}

.advice-limits {
  min-width: 0;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.advice-subtitle {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}

.advice-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.advice-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.advice-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border: 1px solid var(--brick);
  border-radius: 1px;
}

.advice-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  counter-reset: advice;
}

.advice-step {
  position: relative;
  min-width: 0;
  padding: 16px 18px 16px 52px;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  counter-increment: advice;
}

.advice-step::before {
  content: counter(advice, decimal-leading-zero);
  position: absolute;
  left: 18px;
  top: 16px;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--brick);
  line-height: 1.5;
}

.advice-step-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.advice-step p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

/* --- features page --- */
.feature-hero {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 28px;
  align-items: stretch;
  margin-top: 20px;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.feature-hero-media {
  min-width: 0;
  background-color: #EBE7DA;
}

.feature-hero-media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.feature-hero-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 24px 24px 24px 0;
}

.feature-hero-title {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}

.feature-meta {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.feature-card-media {
  min-width: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: #EBE7DA;
}

.feature-card-media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.feature-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  min-width: 0;
}

.feature-card-title {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}

.feature-card-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.topic-type-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.topic-type-item {
  min-width: 0;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.topic-type-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.topic-type-item p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.topic-tag {
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
  padding: 1px 8px;
  border: 1px solid var(--green);
  border-radius: var(--radius-sm);
  font-size: 12px;
  line-height: 1.6;
  color: var(--green);
}

.character-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.character-note {
  min-width: 0;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--green);
  border-radius: var(--radius);
  padding: 20px;
}

.character-note-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.character-note-work {
  font-size: 13px;
  line-height: 1.6;
  color: var(--green);
  margin-bottom: 8px;
}

.character-note p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
}

.activity-item {
  min-width: 0;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.activity-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.activity-time {
  display: inline-block;
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--brick);
  font-variant-numeric: tabular-nums;
}

.activity-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.media-figure {
  min-width: 0;
}

.media-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background-color: var(--card);
}

.media-figure figcaption {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.section-related .related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.related-links li {
  min-width: 0;
}

.related-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--green);
  font-size: 14px;
  background-color: var(--card);
  transition: border-color 0.18s ease, color 0.18s ease;
}

.related-links a:hover {
  border-color: var(--green);
  color: var(--brick);
}

.link-inline {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --- archive page --- */
.archive-jump {
  padding: 32px 0 0;
}

.jump-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.jump-item {
  min-width: 0;
}

.jump-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background-color: var(--card);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.jump-link:hover {
  border-color: var(--green);
  color: var(--green);
}

.archive-rules {
  padding: 32px 0 0;
}

.archive-year {
  padding: 40px 0 0;
  scroll-margin-top: 24px;
}

.year-head {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 24px;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.year-figure {
  min-width: 0;
}

.year-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background-color: var(--card);
}

.year-figure figcaption {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.year-summary {
  min-width: 0;
}

.year-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.year-summary p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
}

.year-meta {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--brick);
  font-variant-numeric: tabular-nums;
}

.month-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.month-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.month-title {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.month-count {
  font-size: 13px;
  line-height: 1.6;
  color: var(--brick);
}

.month-topic,
.month-genres {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.month-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--green);
}

.month-link::after {
  content: "→";
  margin-left: 5px;
}

.archive-coverage {
  padding: 40px 0 0;
}

/* --- reading guide page --- */
.guide-section {
  padding: 36px 0 0;
}

.guide-section h2 {
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.guide-intro-layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 28px;
  align-items: start;
  margin-top: 16px;
}

.guide-intro-text {
  min-width: 0;
}

.guide-intro-text p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 12px;
}

.guide-intro-text p:last-child {
  margin-bottom: 0;
}

.guide-intro-figure {
  min-width: 0;
}

.guide-intro-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background-color: var(--card);
}

.guide-intro-figure figcaption {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.boundary-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
}

.boundary-item {
  min-width: 0;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.boundary-item h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.boundary-item p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.correction-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
}

.correction-step {
  position: relative;
  min-width: 0;
  padding: 18px 20px 18px 68px;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step-index {
  position: absolute;
  left: 20px;
  top: 18px;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--brick);
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
}

.correction-step h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.correction-step p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.guide-tip {
  margin-top: 36px;
  padding: 20px;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  border-radius: var(--radius);
}

.guide-tip > p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.guide-tip-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 10px;
}

.guide-tip-links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: 14px;
  color: var(--green);
}

/* --- 404 --- */
.error-main {
  padding: 64px 0 80px;
}

.error-inner {
  max-width: 720px;
}

.error-code {
  font-family: var(--font-mono);
  font-size: 56px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--brick);
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}

.error-title {
  font-size: 30px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}

.error-desc {
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 8px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.error-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--green);
  border-radius: var(--radius-sm);
  color: var(--green);
  font-size: 15px;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.error-actions a:hover {
  background-color: var(--green);
  color: var(--paper);
}

.error-note {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

/* =========================================================
   responsive
   ========================================================= */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .cover-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-grid,
  .genre-grid,
  .topic-type-list,
  .character-notes,
  .shift-list,
  .overview-grid,
  .month-grid,
  .cross-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-split,
  .layout-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .home-split .main-column {
    order: 1;
  }

  .home-split .side-column {
    order: 2;
  }

  .layout-shell .layout-aside,
  .sidebar-left .layout-aside {
    order: 1;
  }

  .layout-shell .layout-main,
  .sidebar-left .layout-main {
    order: 2;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .footer-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 20px;
  }

  .section-genres .genre-block {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .feature-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature-hero-body {
    padding: 0 20px 22px;
  }

  .guide-intro-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .year-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .advice-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .compare-grid {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .header-inner {
    min-height: 60px;
    padding-top: 8px;
    padding-bottom: 8px;
    align-items: center;
  }

  .brand {
    font-size: 18px;
  }

  .nav-toggle {
    display: inline-flex;
    order: 3;
  }

  .site-nav {
    order: 4;
    flex: 0 0 100%;
    width: 100%;
    display: block;
    position: static;
    background-color: var(--paper);
  }

  .site-nav .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    margin-top: 8px;
    padding: 4px 0 10px;
    border-top: 1px solid var(--line);
  }

  .site-nav .nav-list.is-open {
    display: flex;
  }

  .site-nav .nav-item {
    width: 100%;
  }

  .site-nav .nav-item > a {
    width: 100%;
    min-height: 48px;
    padding: 0 4px;
    border-bottom: 1px solid var(--line);
    border-left: 3px solid transparent;
    font-size: 16px;
  }

  .site-nav .nav-item > a:hover {
    border-bottom-color: var(--line);
    border-left-color: var(--green);
  }

  .site-nav .nav-item.is-current > a,
  .site-nav .nav-item > a.is-current {
    border-bottom-color: var(--line);
    border-left-color: var(--brick);
    font-weight: 600;
  }

  .breadcrumb {
    padding-top: 14px;
    font-size: 13px;
  }

  .page-header {
    padding-top: 14px;
  }

  .page-title {
    font-size: 26px;
  }

  .hero {
    padding-top: 28px;
  }

  .hero-text h1 {
    font-size: 26px;
    margin-bottom: 14px;
  }

  .hero-lead {
    font-size: 16px;
  }

  .hero-actions {
    gap: 10px;
  }

  .hero-actions .btn-outline {
    flex: 1 1 auto;
    min-width: 0;
  }

  .stat-strip {
    margin-top: 32px;
    padding: 16px 0;
  }

  .stat-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .stat-item {
    flex-direction: row;
    align-items: baseline;
    gap: 10px;
  }

  .stat-num {
    font-size: 22px;
  }

  .genre-band,
  .cover-wall,
  .feature-picks {
    padding-top: 40px;
  }

  .section-title,
  .section-head h2 {
    font-size: 20px;
  }

  .genre-grid,
  .cover-grid,
  .feature-grid,
  .topic-type-list,
  .character-notes,
  .shift-list,
  .overview-grid,
  .month-grid,
  .cross-list,
  .caliber-grid,
  .compare-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-split {
    margin-top: 40px;
    gap: 28px;
  }

  .update-item {
    grid-template-columns: 76px 48px minmax(0, 1fr);
    gap: 10px;
  }

  .update-thumb {
    width: 48px;
  }

  .rank-summary {
    padding: 18px;
  }

  .genre-covers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .section {
    padding-top: 32px;
  }

  .section-genres .genre-block {
    margin-top: 24px;
    padding-top: 22px;
  }

  .genre-meta {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .genre-meta dd {
    margin-bottom: 8px;
  }

  .timeline-item {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
  }

  .timeline-cover {
    width: 48px;
  }

  .compare-column {
    padding: 18px;
  }

  .compare-column .rank-item {
    grid-template-columns: 22px 40px minmax(0, 1fr);
    gap: 8px;
  }

  .rank-cover {
    width: 40px;
  }

  .advice-step,
  .correction-step {
    padding-left: 56px;
  }

  .advice-step::before,
  .step-index {
    left: 16px;
  }

  .tip-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .tip-link {
    width: 100%;
    justify-content: center;
  }

  .footer-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 16px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .jump-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
  }

  .jump-item {
    flex: 0 0 auto;
  }

  .error-code {
    font-size: 44px;
  }

  .error-title {
    font-size: 24px;
  }
}

@media (max-width: 400px) {
  :root {
    --gutter: 18px;
  }

  .header-inner {
    padding-left: var(--gutter);
    padding-right: var(--gutter);
  }

  .hero-text h1,
  .page-title {
    font-size: 24px;
  }

  .update-item {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .update-time {
    grid-column: 1 / -1;
    padding-top: 0;
  }

  .update-thumb {
    grid-row: 2;
  }

  .update-body {
    grid-row: 2;
  }

  .genre-covers {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-nav {
    grid-template-columns: minmax(0, 1fr);
  }

  .compare-column .rank-item {
    grid-template-columns: 20px minmax(0, 1fr);
  }

  .rank-cover {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
