/* =========================================================
   映页.影视资源 — 海街日记详情页
   Japanese retro editorial / navy + warm paper
   ========================================================= */

:root {
  --paper: #f5f2ea;
  --paper-deep: #eee9dd;
  --paper-soft: #fbfaf6;
  --white: #ffffff;
  --ink: #1a2b4c;
  --ink-deep: #102039;
  --ink-soft: #435067;
  --muted: #757b84;
  --muted-light: #9a9c9c;
  --line: #e7e2d7;
  --line-soft: #f0ece4;
  --gold: #b58a43;
  --gold-deep: #9b7131;
  --gold-soft: #f3e7c8;
  --red: #c74e44;
  --sage: #7d917f;
  --shadow-sm: 0 1px 2px rgba(20, 34, 56, 0.03), 0 8px 26px rgba(20, 34, 56, 0.045);
  --shadow-md: 0 18px 50px rgba(20, 34, 56, 0.08);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --display: "Cormorant Garamond", "Times New Roman", serif;
  --container: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 1px 1px, rgba(26, 43, 76, 0.072) 1px, transparent 1.25px),
    linear-gradient(180deg, #f8f5ee 0%, #f4f1e9 45%, #f7f4ec 100%);
  background-size: 19px 19px, 100% 100%;
  background-attachment: fixed;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

::selection {
  color: var(--ink-deep);
  background: rgba(200, 165, 94, 0.3);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  font-weight: 600;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container {
  width: min(var(--container), calc(100% - 56px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  padding: 10px 16px;
  color: var(--white);
  background: var(--ink);
  border-radius: 8px;
  font-size: 12px;
  transform: translateY(-150%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* =========================================================
   Header
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(245, 242, 234, 0.82);
  border-bottom: 1px solid rgba(26, 43, 76, 0.08);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  backdrop-filter: blur(16px) saturate(1.1);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(248, 245, 238, 0.95);
  box-shadow: 0 4px 20px rgba(20, 34, 56, 0.055);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--container), calc(100% - 56px));
  height: 76px;
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  color: #f6f2e7;
  background: var(--ink);
  border-radius: 10px;
  place-items: center;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: transform 0.25s ease, background 0.25s ease;
}

.brand-mark::after {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 4px;
  height: 4px;
  content: "";
  background: #d4b06e;
  border-radius: 50%;
}

.brand:hover .brand-mark {
  background: #21375e;
  transform: rotate(-3deg);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand-name {
  color: var(--ink-deep);
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.035em;
  line-height: 1.35;
}

.brand-dot {
  color: var(--gold);
}

.brand-sub {
  color: #979990;
  font-family: var(--display);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.24em;
  line-height: 1;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 29px;
}

.nav-link {
  position: relative;
  padding: 6px 0;
  color: #5f6570;
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav-link::after {
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 3px;
  height: 3px;
  content: "";
  background: var(--gold);
  border-radius: 50%;
  opacity: 0;
  transform: translateX(-50%) scale(0.4);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--ink);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 9px;
  place-items: center;
}

.nav-toggle .icon {
  width: 20px;
  height: 20px;
}

.nav-toggle-close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-close {
  display: block;
}

/* =========================================================
   Hero
   ========================================================= */

.hero {
  position: relative;
  min-height: 518px;
  margin-top: 26px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(26, 43, 76, 0.09);
  border-radius: 28px;
  box-shadow: 0 22px 54px rgba(16, 32, 57, 0.15);
  background: #182537;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 41%;
  filter: saturate(0.92) contrast(1.04);
  transform: scale(1.015);
  animation: heroImageIn 1.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes heroImageIn {
  from {
    opacity: 0.7;
    transform: scale(1.08);
  }
  to {
    opacity: 1;
    transform: scale(1.015);
  }
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(7, 17, 31, 0.88) 0%, rgba(7, 17, 31, 0.56) 40%, rgba(7, 17, 31, 0.11) 74%, rgba(7, 17, 31, 0.22) 100%),
    linear-gradient(0deg, rgba(7, 17, 31, 0.74) 0%, rgba(7, 17, 31, 0.18) 43%, rgba(7, 17, 31, 0.3) 100%);
}

.hero-grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.18;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
}

.hero-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 518px;
  padding: 32px 40px 82px;
  color: #fff;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 11.5px;
  letter-spacing: 0.025em;
}

.breadcrumb a {
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: #fff;
}

.breadcrumb .icon {
  width: 10px;
  height: 10px;
  color: rgba(255, 255, 255, 0.38);
}

.breadcrumb span {
  color: #e5c990;
}

.hero-main {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.hero-copy {
  max-width: 730px;
  animation: heroCopyIn 0.9s 0.18s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes heroCopyIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 12px;
  color: #d9bd85;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.21em;
}

.kicker-line {
  display: inline-block;
  width: 31px;
  height: 1px;
  background: #c9aa6d;
}

.hero-title {
  display: flex;
  align-items: flex-end;
  gap: 17px;
  color: #fcfaf5;
  font-family: var(--serif);
  font-size: clamp(50px, 5vw, 68px);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.08;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.24);
}

.hero-title-jp {
  padding-bottom: 8px;
  color: rgba(255, 255, 255, 0.65);
  font-family: var(--display);
  font-size: 23px;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.055em;
  line-height: 1.2;
}

.hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  letter-spacing: 0.045em;
}

.hero-meta i {
  width: 3px;
  height: 3px;
  background: #d3b06c;
  border-radius: 50%;
}

.hero-aside {
  display: flex;
  align-items: flex-end;
  gap: 26px;
  flex: none;
  padding-bottom: 4px;
}

.vertical-note {
  color: rgba(255, 255, 255, 0.59);
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.32em;
  line-height: 1.9;
  writing-mode: vertical-rl;
}

.hero-seal {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 99px;
  height: 99px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.075);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.035);
}

.seal-star {
  width: 11px;
  height: 11px;
  margin-bottom: 2px;
  color: #d9b878;
}

.hero-seal strong {
  color: #fff;
  font-family: var(--display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1;
}

.hero-seal span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 7.5px;
  letter-spacing: 0.13em;
}

/* =========================================================
   Film info card
   ========================================================= */

.info-card {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 226px minmax(0, 1fr);
  gap: 32px;
  width: calc(100% - 54px);
  margin: -48px auto 0;
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-md);
}

.poster-wrap {
  min-width: 0;
}

.poster-frame {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 15px;
  background: #dfe2df;
  box-shadow: 0 12px 30px rgba(17, 27, 43, 0.16);
}

.poster-frame::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 18, 32, 0.06), transparent 26%, transparent 70%, rgba(8, 18, 32, 0.24));
}

.poster-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.poster-frame:hover img {
  transform: scale(1.035);
}

.poster-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  padding: 4px 8px;
  color: var(--ink);
  background: rgba(250, 248, 241, 0.91);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 5px;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.poster-corner {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  padding: 6px 4px;
  color: #fff8ec;
  background: rgba(157, 60, 53, 0.95);
  border-radius: 2px;
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.22em;
  line-height: 1.1;
  writing-mode: vertical-rl;
  box-shadow: 0 3px 10px rgba(50, 16, 13, 0.24);
}

.poster-caption {
  margin-top: 11px;
  color: #989990;
  font-family: var(--display);
  font-size: 10.5px;
  letter-spacing: 0.065em;
  text-align: center;
}

.info-content {
  min-width: 0;
  padding: 3px 4px 0 0;
}

.info-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 8px;
}

.eyebrow {
  color: #8b8b83;
  font-family: var(--display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.soft-badge {
  flex: none;
  padding: 4px 9px;
  color: var(--gold-deep);
  background: #fbf5e8;
  border: 1px solid #efe3c7;
  border-radius: 20px;
  font-size: 9.5px;
  letter-spacing: 0.05em;
}

.film-title {
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(27px, 2.7vw, 34px);
  font-weight: 600;
  letter-spacing: 0.015em;
  line-height: 1.45;
}

.title-film {
  background: linear-gradient(transparent 67%, rgba(205, 169, 98, 0.22) 0);
  white-space: nowrap;
}

.film-subtitle {
  margin-top: 5px;
  color: #969891;
  font-size: 11px;
  letter-spacing: 0.035em;
}

.film-subtitle em {
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.film-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 16px;
  padding: 10px 0;
  border-top: 1px dashed #e7e1d5;
  border-bottom: 1px dashed #e7e1d5;
}

.film-facts > div {
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding-right: 19px;
  margin-right: 19px;
  border-right: 1px solid #eae5da;
}

.film-facts > div:last-child {
  padding-right: 0;
  margin-right: 0;
  border-right: 0;
}

.film-facts span {
  color: #999b96;
  font-size: 10.5px;
}

.film-facts strong {
  color: #3c485c;
  font-size: 12.5px;
  font-weight: 500;
}

.rating-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 13px;
}

.rating-label {
  color: #777d85;
  font-size: 11px;
}

.stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--gold);
}

.stars .icon {
  width: 12px;
  height: 12px;
  fill: currentColor;
  stroke-width: 1;
}

.stars .star-empty {
  color: #ddd7c8;
}

.rating-score {
  margin-left: 2px;
  color: var(--gold-deep);
  font-family: var(--display);
  font-size: 25px;
  font-weight: 600;
  line-height: 1;
}

.rating-count {
  color: #979892;
  font-size: 10.5px;
}

.rating-divider {
  width: 1px;
  height: 11px;
  margin: 0 2px;
  background: #dfd9cd;
}

.credits {
  display: grid;
  gap: 2px;
  margin-top: 11px;
}

.credits p {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.credits span {
  flex: none;
  color: #999b96;
  font-size: 10.5px;
}

.credits strong {
  overflow: hidden;
  color: #465266;
  font-size: 12px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.synopsis {
  display: -webkit-box;
  overflow: hidden;
  max-width: 790px;
  margin-top: 13px;
  color: #69717c;
  font-size: 12.8px;
  letter-spacing: 0.01em;
  line-height: 1.9;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.info-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 39px;
  padding: 0 17px;
  border-radius: 9px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.button .icon {
  width: 14px;
  height: 14px;
}

.button-primary {
  color: #fdfbf6;
  background: var(--ink);
  border: 1px solid var(--ink);
  box-shadow: 0 7px 16px rgba(26, 43, 76, 0.16);
}

.button-primary:hover {
  background: #253c65;
  border-color: #253c65;
  transform: translateY(-1px);
  box-shadow: 0 9px 20px rgba(26, 43, 76, 0.2);
}

.button-primary .icon {
  transition: transform 0.2s ease;
}

.button-primary:hover .icon {
  transform: translateX(3px);
}

.button-ghost {
  color: #4b5567;
  background: #fff;
  border: 1px solid #ddd8cc;
}

.button-ghost:hover,
.button-ghost.is-active {
  color: var(--ink);
  background: #faf8f2;
  border-color: #b9b1a0;
}

.button-ghost.is-active .icon {
  fill: var(--gold);
  stroke: var(--gold);
}

.button-quiet {
  height: 39px;
  padding: 0 7px;
  color: #8a8e93;
  background: transparent;
  border: 0;
}

.button-quiet:hover {
  color: var(--ink);
}

.data-strip {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 1px;
  overflow: hidden;
  background: #faf8f2;
  border: 1px solid #ede8dd;
  border-radius: 15px;
}

.data-item {
  position: relative;
  padding: 16px 22px 15px;
}

.data-item + .data-item::before {
  position: absolute;
  top: 17px;
  bottom: 17px;
  left: 0;
  width: 1px;
  content: "";
  background: #e6e0d3;
}

.data-label {
  display: block;
  color: #979992;
  font-size: 9.5px;
  letter-spacing: 0.09em;
}

.data-value {
  display: block;
  margin: 3px 0 1px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.data-item small {
  display: block;
  color: #a1a29b;
  font-size: 9.5px;
}

/* =========================================================
   Section shell
   ========================================================= */

.section {
  margin-top: 74px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 22px;
}

.section-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: #92948e;
  font-family: var(--display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.19em;
}

.section-kicker span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 18px;
  color: var(--ink);
  border: 1px solid #d8d0bf;
  border-radius: 4px;
  font-family: var(--display);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.section-title {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.025em;
  line-height: 1.35;
}

.section-lead {
  margin-top: 7px;
  color: #84868a;
  font-size: 12.5px;
  letter-spacing: 0.01em;
}

.section-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: none;
  padding-bottom: 3px;
  color: #92948f;
  font-size: 10.5px;
  white-space: nowrap;
}

.pulse-dot {
  position: relative;
  width: 5px;
  height: 5px;
  background: var(--sage);
  border-radius: 50%;
}

.pulse-dot::after {
  position: absolute;
  inset: -3px;
  content: "";
  border: 1px solid rgba(125, 145, 127, 0.34);
  border-radius: 50%;
}

.section-stamp {
  color: #cbc2b1;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-align: right;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  padding-bottom: 4px;
  color: var(--ink);
  font-size: 11px;
  transition: color 0.2s ease;
}

.text-link .icon {
  width: 12px;
  height: 12px;
  transition: transform 0.2s ease;
}

.text-link:hover {
  color: var(--gold-deep);
}

.text-link:hover .icon {
  transform: translateX(3px);
}

/* =========================================================
   Resource table
   ========================================================= */

.resource-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 21px;
  box-shadow: var(--shadow-sm);
}

.table-scroll {
  overflow-x: auto;
  padding: 2px 22px 0;
  scrollbar-width: thin;
  scrollbar-color: #d2cbbd transparent;
}

.resource-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}

.resource-table th {
  padding: 16px 9px 13px;
  color: #93958f;
  border-bottom: 1px solid #e9e4d9;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.075em;
  text-align: left;
  white-space: nowrap;
}

.resource-table th:first-child {
  padding-left: 3px;
}

.resource-table td {
  padding: 15px 9px;
  color: #5f6774;
  border-bottom: 1px solid #f1ede5;
  font-size: 12.3px;
  vertical-align: middle;
}

.resource-table td:first-child {
  padding-left: 3px;
}

.resource-table tbody tr {
  transition: background 0.2s ease;
}

.resource-table tbody tr:hover {
  background: #fcfbf8;
}

.resource-table tbody tr:last-child td {
  border-bottom: 0;
}

.version-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 205px;
}

.quality-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 37px;
  height: 37px;
  color: #fff;
  background: var(--ink);
  border-radius: 9px;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.quality-mark--blue {
  color: #2d4d74;
  background: #eaf0f7;
}

.quality-mark--sand {
  color: #846a3a;
  background: #f6eedc;
}

.quality-mark--green {
  color: #4f715a;
  background: #ebf2ec;
}

.version-name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  color: var(--ink);
  font-size: 13.2px;
  font-weight: 600;
  letter-spacing: 0.005em;
  line-height: 1.5;
  white-space: nowrap;
}

.version-note {
  margin-top: 1px;
  color: #9c9d97;
  font-size: 10.2px;
  line-height: 1.5;
  white-space: nowrap;
}

.new-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 15px;
  color: #fff;
  background: var(--red);
  border-radius: 3px;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
}

.format-tag {
  display: inline-flex;
  padding: 3px 6px;
  color: #767b83;
  background: #faf9f5;
  border: 1px solid #e9e4d9;
  border-radius: 4px;
  font-family: var(--display);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.055em;
  line-height: 1.3;
}

.sub-line {
  color: #a0a19b;
  font-size: 10px;
}

.resource-table time {
  color: #727983;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.action-group {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.mini-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 27px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 10px;
  line-height: 1;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.mini-btn .icon {
  width: 11px;
  height: 11px;
}

.mini-btn:hover {
  transform: translateY(-1px);
}

.mini-pan {
  color: #526a85;
  background: #f3f7fa;
  border-color: #e3eaf1;
}

.mini-pan:hover {
  background: #e8f0f8;
  border-color: #c9d9e8;
}

.mini-magnet {
  color: #8a713d;
  background: #faf6ed;
  border-color: #ede2c9;
}

.mini-magnet:hover {
  background: #f4ecda;
  border-color: #dfcfaa;
}

.mini-online {
  color: #54705d;
  background: #f2f7f3;
  border-color: #e1ebe3;
}

.mini-online:hover {
  background: #e8f2ea;
  border-color: #c9ddcd;
}

.resource-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 22px;
  padding: 14px 4px 16px;
  border-top: 1px solid #ede8dd;
}

.resource-foot p {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #8d918f;
  font-size: 10.5px;
}

.resource-foot .icon {
  width: 12px;
  height: 12px;
  color: var(--sage);
}

.resource-foot-note {
  color: #adada6 !important;
  text-align: right;
}

/* =========================================================
   Version details
   ========================================================= */

.version-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.version-detail {
  position: relative;
  padding: 23px 26px 22px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--ink);
  border-radius: 0 16px 16px 0;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-left-color 0.25s ease;
}

.version-detail::after {
  position: absolute;
  right: -12px;
  bottom: -34px;
  color: rgba(26, 43, 76, 0.027);
  content: attr(data-watermark);
  font-family: var(--display);
  font-size: 126px;
  line-height: 1;
}

.version-detail:hover {
  border-left-color: var(--gold);
  box-shadow: 0 14px 34px rgba(20, 34, 56, 0.075);
  transform: translateY(-2px);
}

.version-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.version-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 23px;
  height: 23px;
  color: var(--gold-deep);
  background: #fbf6e9;
  border: 1px solid #eee1c4;
  border-radius: 50%;
  font-family: var(--display);
  font-size: 10px;
  font-weight: 600;
}

.version-en {
  color: #b2afa6;
  font-family: var(--display);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.17em;
}

.version-detail h3 {
  margin: 10px 0 7px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.02em;
}

.version-detail p {
  position: relative;
  z-index: 1;
  max-width: 93%;
  color: #6d7380;
  font-size: 12.5px;
  line-height: 1.95;
}

.tag-row {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 14px;
}

.tag-row span {
  padding: 3px 8px;
  color: #85877f;
  background: #faf8f2;
  border: 1px solid #ece7dc;
  border-radius: 20px;
  font-size: 8.5px;
  letter-spacing: 0.02em;
}

/* =========================================================
   Steps
   ========================================================= */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.step-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 22px 23px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 17px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.step-card:hover {
  box-shadow: 0 13px 32px rgba(20, 34, 56, 0.07);
  transform: translateY(-2px);
}

.step-icon {
  display: grid;
  flex: none;
  width: 48px;
  height: 48px;
  color: #5f5438;
  background: #f6eacb;
  border: 1px solid #ecddb9;
  border-radius: 50%;
  place-items: center;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
}

.step-icon .icon {
  width: 20px;
  height: 20px;
  stroke-width: 1.55;
}

.step-copy {
  min-width: 0;
}

.step-en {
  color: #b6a37f;
  font-family: var(--display);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.step-copy h3 {
  margin: 3px 0 4px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: 0.02em;
}

.step-copy p {
  max-width: 94%;
  color: #777c85;
  font-size: 12.2px;
  line-height: 1.85;
}

.step-number {
  position: absolute;
  top: 8px;
  right: 14px;
  color: rgba(26, 43, 76, 0.055);
  font-family: var(--display);
  font-size: 44px;
  font-weight: 500;
  line-height: 1;
}

/* =========================================================
   Story
   ========================================================= */

.story-card {
  position: relative;
  padding: 43px 52px 30px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 23px;
  box-shadow: var(--shadow-sm);
}

.story-card::before {
  position: absolute;
  top: 40px;
  right: 33px;
  color: rgba(26, 43, 76, 0.16);
  content: "海街の四季";
  font-family: var(--serif);
  font-size: 10px;
  letter-spacing: 0.28em;
  line-height: 1.8;
  writing-mode: vertical-rl;
}

.story-card::after {
  position: absolute;
  right: 34px;
  bottom: -74px;
  color: rgba(197, 165, 101, 0.06);
  content: "海";
  font-family: var(--serif);
  font-size: 270px;
  line-height: 1;
  pointer-events: none;
}

.story-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid #efeae0;
}

.story-side {
  flex: none;
  padding-top: 2px;
  color: #b8ab92;
  font-family: var(--display);
  font-size: 16px;
  font-style: italic;
  letter-spacing: 0.04em;
  line-height: 1.45;
  text-align: right;
}

.story-side span {
  color: #a9a79f;
  font-family: var(--sans);
  font-size: 8.5px;
  font-style: normal;
  letter-spacing: 0.14em;
}

.story-body {
  position: relative;
  z-index: 1;
  max-width: 880px;
  padding-top: 23px;
  color: #535d6d;
  font-size: 14.2px;
  letter-spacing: 0.012em;
  line-height: 2.12;
}

.story-body p {
  margin-bottom: 17px;
}

.story-body p:last-child {
  margin-bottom: 0;
}

.story-lead {
  color: #3f4b5f;
  font-size: 14.8px;
}

.story-lead::first-letter {
  float: left;
  margin: 6px 9px 0 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 47px;
  font-weight: 600;
  line-height: 0.9;
}

.story-body blockquote {
  margin: 26px 0 25px;
  padding: 15px 22px;
  color: #3f4b5e;
  background: #faf8f2;
  border-left: 2px solid #c9a55f;
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.025em;
  line-height: 1.9;
}

.story-foot {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 27px;
  margin-top: 26px;
  padding-top: 16px;
  color: #9b9b93;
  border-top: 1px solid #f0ebe1;
  font-size: 9.5px;
  letter-spacing: 0.03em;
}

.story-foot span::before {
  display: inline-block;
  width: 3px;
  height: 3px;
  margin: 0 8px 2px 0;
  content: "";
  background: #c9ab71;
  border-radius: 50%;
}

/* =========================================================
   Comparison
   ========================================================= */

.comparison-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
}

.comparison-table th {
  padding: 16px 24px 13px;
  color: #969991;
  border-bottom: 1px solid #e9e4d9;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-align: left;
}

.comparison-table td {
  padding: 16px 24px;
  color: #646c79;
  border-bottom: 1px solid #f1ede5;
  font-size: 12.2px;
}

.comparison-table tbody tr:last-child td {
  border-bottom: 0;
}

.comparison-table tbody tr {
  transition: background 0.2s ease;
}

.comparison-table tbody tr:hover {
  background: #fcfbf8;
}

.comparison-table tr.is-recommended {
  background: #fcf8ef;
}

.comparison-table tr.is-recommended:hover {
  background: #faf5e9;
}

.compare-version {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}

.compare-version em {
  padding: 2px 6px;
  color: #9c7635;
  background: #f5e8c7;
  border-radius: 3px;
  font-family: var(--sans);
  font-size: 8px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.comparison-table td small {
  display: block;
  margin-top: 1px;
  color: #a4a49d;
  font-size: 9.5px;
}

.comparison-table td:nth-child(2),
.comparison-table td:nth-child(3) {
  font-variant-numeric: tabular-nums;
}

/* =========================================================
   FAQ
   ========================================================= */

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  padding: 20px 23px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 15px;
  box-shadow: 0 1px 1px rgba(20, 34, 56, 0.025);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item:hover {
  border-color: #d9d1c1;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #26374f;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.65;
}

.faq-q {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 21px;
  height: 21px;
  margin-top: 1px;
  color: var(--gold-deep);
  background: #faf5e9;
  border: 1px solid #efe3c9;
  border-radius: 50%;
  font-family: var(--display);
  font-size: 10px;
  font-weight: 600;
}

.faq-answer {
  margin: 7px 0 0 31px;
  color: #85878b;
  font-size: 12.3px;
  line-height: 1.95;
}

/* =========================================================
   Related
   ========================================================= */

.related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}

.related-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 10px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.related-card:hover {
  border-color: #d5cdbe;
  box-shadow: 0 12px 27px rgba(20, 34, 56, 0.085);
  transform: translateY(-3px);
}

.related-card img {
  flex: none;
  width: 62px;
  height: 86px;
  object-fit: cover;
  border-radius: 8px;
  filter: saturate(0.94);
  transition: filter 0.25s ease;
}

.related-card:hover img {
  filter: saturate(1.05);
}

.related-copy {
  min-width: 0;
}

.related-en {
  display: block;
  color: #adada5;
  font-family: var(--display);
  font-size: 7.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.3;
  white-space: nowrap;
}

.related-copy h3 {
  overflow: hidden;
  margin: 4px 0 5px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.02em;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.related-copy p {
  color: #7f8489;
  font-size: 10px;
  line-height: 1.55;
}

.related-copy p span {
  display: block;
  margin-top: 2px;
  color: #a3a49d;
  font-size: 8.5px;
}

.related-arrow {
  position: absolute;
  top: 12px;
  right: 10px;
  width: 11px;
  height: 11px;
  color: #b5b1a6;
  opacity: 0;
  transform: translateX(-3px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.related-card:hover .related-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* =========================================================
   Reviews
   ========================================================= */

.review-summary {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: none;
  padding-bottom: 2px;
}

.review-summary > strong {
  color: var(--ink);
  font-family: var(--display);
  font-size: 37px;
  font-weight: 600;
  line-height: 1;
}

.review-summary > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.review-summary .stars .icon {
  width: 10px;
  height: 10px;
}

.review-summary small {
  color: #999b96;
  font-size: 8.5px;
  letter-spacing: 0.02em;
}

.reviews-grid {
  column-count: 3;
  column-gap: 14px;
}

.review-card {
  display: inline-block;
  width: 100%;
  margin: 0 0 14px;
  padding: 20px 21px 17px;
  break-inside: avoid;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.review-card:hover {
  border-color: #d8d0c1;
  box-shadow: 0 12px 28px rgba(20, 34, 56, 0.065);
}

.review-card--tint {
  background: #fcf9f1;
}

.review-head {
  display: flex;
  align-items: center;
  gap: 9px;
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 32px;
  height: 32px;
  color: #f8f4e9;
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 12px;
}

.avatar--navy {
  background: #243a5e;
}

.avatar--sage {
  background: #7b8f7e;
}

.avatar--gold {
  color: #6f5527;
  background: #e7d2a4;
}

.avatar--blue {
  background: #5a7691;
}

.avatar--rose {
  color: #6e3d3a;
  background: #e6c5bf;
}

.review-head strong {
  display: block;
  color: #38465b;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
}

.review-head time {
  display: block;
  color: #aaa9a2;
  font-size: 8.5px;
  line-height: 1.45;
}

.review-score {
  margin-left: auto;
  color: #c39a53;
  font-size: 8px;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.review-card > p {
  margin: 13px 0 15px;
  color: #656d79;
  font-size: 12.4px;
  line-height: 1.95;
}

.helpful-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  color: #a0a29e;
  background: transparent;
  border: 0;
  font-size: 9.5px;
  line-height: 1.5;
  transition: color 0.2s ease;
}

.helpful-btn .icon {
  width: 12px;
  height: 12px;
}

.helpful-btn:hover,
.helpful-btn.is-active {
  color: var(--gold-deep);
}

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
  position: relative;
  margin-top: 84px;
  overflow: hidden;
  color: #a8b1bd;
  background-color: #14243b;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.045) 1px, transparent 1.2px),
    linear-gradient(120deg, rgba(197, 164, 99, 0.055), transparent 35%);
  background-size: 17px 17px, 100% 100%;
}

.site-footer::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, #c9a55e 0%, #9e8a60 22%, rgba(201, 165, 94, 0.08) 56%, transparent 100%);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) 0.7fr 0.9fr;
  gap: 64px;
  padding-top: 50px;
  padding-bottom: 40px;
}

.brand--footer {
  color: #fff;
}

.brand--footer .brand-mark {
  color: var(--ink);
  background: #e8d7b3;
}

.brand--footer .brand-mark::after {
  background: #1a2b4c;
}

.brand--footer .brand-name {
  color: #f1ede4;
}

.brand--footer .brand-sub {
  color: #778497;
}

.brand--footer:hover .brand-mark {
  background: #f2e6cd;
}

.footer-tagline {
  margin-top: 22px;
  color: #d2cabb;
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.035em;
  line-height: 2;
}

.footer-edition {
  margin-top: 15px;
  color: #6f7d90;
  font-family: var(--display);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
}

.footer-column h2 {
  margin: 4px 0 15px;
  color: #d9d3c6;
  font-family: var(--display);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.footer-column a {
  display: block;
  width: fit-content;
  margin-bottom: 8px;
  color: #8997a9;
  font-size: 10.5px;
  line-height: 1.7;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-column a:hover {
  color: #e3d5b7;
  transform: translateX(2px);
}

.footer-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding-top: 20px;
  padding-bottom: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.085);
}

.footer-disclaimer {
  max-width: 790px;
  color: #69788c;
  font-size: 9.5px;
  letter-spacing: 0.015em;
  line-height: 1.9;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 16px;
  flex: none;
  color: #8d9aab;
  font-size: 9px;
  white-space: nowrap;
}

.footer-legal span:first-child {
  color: #d1c6af;
}

/* =========================================================
   Floating UI
   ========================================================= */

.to-top {
  position: fixed;
  right: 24px;
  bottom: 26px;
  z-index: 60;
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #ddd6c8;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(20, 34, 56, 0.12);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  place-items: center;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease, visibility 0.25s;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.to-top .icon {
  width: 16px;
  height: 16px;
}

.to-top.is-visible {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.to-top:hover {
  background: #fff;
}

.toast {
  position: fixed;
  bottom: 27px;
  left: 50%;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: calc(100vw - 32px);
  padding: 11px 17px 11px 12px;
  color: #f4f1e8;
  background: rgba(20, 36, 59, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 11px;
  box-shadow: 0 14px 36px rgba(14, 24, 40, 0.2);
  font-size: 11px;
  line-height: 1.6;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast-icon {
  display: grid;
  flex: none;
  width: 22px;
  height: 22px;
  color: #20382b;
  background: #d4e2d2;
  border-radius: 50%;
  place-items: center;
}

.toast-icon .icon {
  width: 12px;
  height: 12px;
  stroke-width: 2;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1160px) {
  .primary-nav {
    gap: 21px;
  }

  .info-card {
    grid-template-columns: 205px minmax(0, 1fr);
    gap: 27px;
    width: calc(100% - 38px);
  }

  .resource-table td,
  .resource-table th {
    padding-inline: 6px;
  }

  .mini-btn {
    padding-inline: 5px;
  }

  .version-cell {
    min-width: 188px;
  }

  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .related-copy p span {
    display: inline;
    margin-left: 5px;
  }
}

@media (max-width: 980px) {
  .container {
    width: calc(100% - 40px);
  }

  .header-inner {
    width: calc(100% - 40px);
  }

  .hero,
  .hero-inner {
    min-height: 460px;
  }

  .hero-title {
    font-size: 50px;
  }

  .hero-title-jp {
    font-size: 20px;
  }

  .info-card {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 24px;
    padding: 22px;
  }

  .data-item {
    padding-inline: 17px;
  }

  .reviews-grid {
    column-count: 2;
  }

  .footer-inner {
    gap: 40px;
  }

  .table-scroll {
    padding-inline: 17px;
  }
}

@media (max-width: 880px) {
  .nav-toggle {
    display: grid;
  }

  .primary-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: grid;
    gap: 0;
    padding: 7px 20px 13px;
    background: rgba(248, 245, 238, 0.985);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(20, 34, 56, 0.08);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-7px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }

  .primary-nav.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-link {
    padding: 11px 2px;
    border-bottom: 1px solid #ece7dd;
    font-size: 13px;
  }

  .nav-link:last-child {
    border-bottom: 0;
  }

  .nav-link::after {
    top: 50%;
    right: 5px;
    bottom: auto;
    left: auto;
    width: 4px;
    height: 4px;
    opacity: 0;
    transform: translateY(-50%) scale(0.4);
  }

  .nav-link:hover::after,
  .nav-link.is-active::after {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }

  .hero {
    min-height: 435px;
  }

  .hero-inner {
    min-height: 435px;
    padding: 26px 29px 70px;
  }

  .hero-aside {
    gap: 14px;
  }

  .vertical-note {
    display: none;
  }

  .hero-seal {
    width: 82px;
    height: 82px;
  }

  .hero-seal strong {
    font-size: 24px;
  }

  .info-card {
    margin-top: -38px;
  }

  .film-title {
    font-size: 27px;
  }

  .data-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .data-item:nth-child(3)::before {
    display: none;
  }

  .data-item:nth-child(n + 3) {
    border-top: 1px solid #e6e0d3;
  }

  .version-detail p {
    max-width: 100%;
  }

  .review-score {
    display: none;
  }

  .footer-inner {
    grid-template-columns: 1.4fr 0.7fr 0.9fr;
    gap: 30px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .resource-table thead {
    display: none;
  }

  .resource-table,
  .resource-table tbody,
  .resource-table tr,
  .resource-table td {
    display: block;
    width: 100%;
  }

  .resource-table tbody {
    padding: 4px 0;
  }

  .resource-table tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 18px;
    margin-bottom: 10px;
    padding: 17px 16px;
    background: #fcfbf8;
    border: 1px solid #eee9df;
    border-radius: 13px;
  }

  .resource-table tbody tr:last-child {
    margin-bottom: 2px;
  }

  .resource-table td {
    padding: 0;
    border: 0;
    font-size: 11.8px;
  }

  .resource-table td::before {
    display: block;
    margin-bottom: 3px;
    color: #a1a19a;
    content: attr(data-label);
    font-size: 8.5px;
    letter-spacing: 0.08em;
    line-height: 1.4;
  }

  .resource-table td:first-child {
    grid-column: 1 / -1;
    padding-bottom: 11px;
    border-bottom: 1px dashed #e8e2d6;
  }

  .resource-table td[data-label="获取方式"] {
    grid-column: 1 / -1;
    margin-top: 1px;
    padding-top: 10px;
    border-top: 1px dashed #e8e2d6;
  }

  .resource-table td[data-label="获取方式"]::before {
    margin-bottom: 6px;
  }

  .resource-table tbody tr:hover {
    background: #fcfbf8;
  }

  .version-cell {
    min-width: 0;
  }

  .action-group {
    gap: 6px;
  }

  .mini-btn {
    height: 29px;
    padding-inline: 10px;
    font-size: 10px;
  }

  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-column a {
    font-size: 10px;
  }
}

@media (max-width: 720px) {
  .container,
  .header-inner {
    width: calc(100% - 28px);
  }

  .header-inner {
    height: 66px;
  }

  .brand-mark {
    width: 35px;
    height: 35px;
    border-radius: 9px;
    font-size: 18px;
  }

  .brand-name {
    font-size: 14.5px;
  }

  .brand-sub {
    font-size: 7.5px;
  }

  .hero {
    min-height: 445px;
    margin-top: 16px;
    border-radius: 21px;
  }

  .hero-inner {
    min-height: 445px;
    padding: 21px 21px 54px;
  }

  .hero-main {
    align-items: flex-end;
  }

  .hero-aside {
    display: none;
  }

  .hero-title {
    gap: 8px;
    font-size: 42px;
  }

  .hero-title-jp {
    padding-bottom: 5px;
    font-size: 17px;
  }

  .hero-kicker {
    margin-bottom: 9px;
    font-size: 9.5px;
    letter-spacing: 0.16em;
  }

  .kicker-line {
    width: 21px;
  }

  .hero-meta {
    gap: 7px;
    margin-top: 15px;
    font-size: 10px;
  }

  .breadcrumb {
    font-size: 10px;
  }

  .info-card {
    grid-template-columns: 1fr;
    gap: 23px;
    width: calc(100% - 12px);
    margin-top: -28px;
    padding: 19px;
    border-radius: 19px;
  }

  .poster-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .poster-frame {
    width: min(205px, 62vw);
  }

  .poster-caption {
    margin-top: 8px;
  }

  .info-content {
    padding: 0;
  }

  .film-title {
    font-size: 25px;
    line-height: 1.5;
  }

  .film-subtitle {
    font-size: 10px;
  }

  .film-facts {
    gap: 8px 0;
    margin-top: 14px;
    padding: 9px 0;
  }

  .film-facts > div {
    padding-right: 13px;
    margin-right: 13px;
  }

  .film-facts strong {
    font-size: 11.5px;
  }

  .credits strong {
    white-space: normal;
  }

  .synopsis {
    font-size: 12px;
  }

  .info-actions {
    gap: 7px;
    margin-top: 16px;
  }

  .button {
    height: 37px;
    padding-inline: 14px;
    font-size: 11px;
  }

  .data-item {
    padding: 13px 14px;
  }

  .data-value {
    font-size: 13px;
  }

  .section {
    margin-top: 56px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 11px;
    margin-bottom: 17px;
  }

  .section-title {
    font-size: 24px;
  }

  .section-lead {
    font-size: 11.5px;
  }

  .section-note {
    padding-bottom: 0;
  }

  .text-link {
    padding-bottom: 0;
  }

  .section-stamp {
    display: none;
  }

  .resource-card {
    border-radius: 17px;
  }

  .table-scroll {
    padding-inline: 10px;
  }

  .resource-table tbody tr {
    gap: 11px 12px;
    padding: 15px 13px;
  }

  .resource-foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
    margin-inline: 15px;
    padding-bottom: 14px;
  }

  .resource-foot-note {
    text-align: left;
  }

  .version-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .version-detail {
    padding: 20px 21px;
  }

  .step-card {
    padding: 19px 18px;
  }

  .step-copy p {
    max-width: 100%;
  }

  .story-card {
    padding: 30px 23px 24px;
    border-radius: 19px;
  }

  .story-card::before {
    display: none;
  }

  .story-head {
    padding-bottom: 15px;
  }

  .story-side {
    display: none;
  }

  .story-body {
    padding-top: 19px;
    font-size: 13px;
    line-height: 2.05;
  }

  .story-lead {
    font-size: 13.5px;
  }

  .story-lead::first-letter {
    margin-top: 5px;
    font-size: 42px;
  }

  .story-body blockquote {
    margin: 21px 0;
    padding: 13px 16px;
    font-size: 13.5px;
  }

  .comparison-card {
    padding: 7px 13px;
    border-radius: 16px;
  }

  .comparison-table,
  .comparison-table tbody,
  .comparison-table tr,
  .comparison-table td {
    display: block;
    width: 100%;
  }

  .comparison-table thead {
    display: none;
  }

  .comparison-table tbody tr {
    margin-bottom: 5px;
    padding: 13px 7px 11px;
    border-bottom: 1px dashed #e8e2d6;
  }

  .comparison-table tbody tr:last-child {
    margin-bottom: 0;
    border-bottom: 0;
  }

  .comparison-table tr.is-recommended {
    margin-bottom: 8px;
    padding: 13px 13px 11px;
    border-bottom: 0;
    border-radius: 11px;
  }

  .comparison-table td {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
    padding: 4px 0;
    color: #5f6774;
    border: 0;
    font-size: 11.5px;
    text-align: right;
  }

  .comparison-table td::before {
    flex: none;
    color: #a1a19a;
    content: attr(data-label);
    font-size: 9.5px;
    letter-spacing: 0.05em;
    text-align: left;
  }

  .comparison-table td:first-child {
    display: block;
    margin-bottom: 7px;
    padding: 0 0 9px;
    border-bottom: 1px solid #efeae0;
    text-align: left;
  }

  .comparison-table td:first-child::before {
    display: none;
  }

  .comparison-table td small {
    display: inline;
    margin: 0 0 0 6px;
  }

  .faq-item {
    padding: 17px 17px;
  }

  .faq-answer {
    margin-left: 0;
    font-size: 11.5px;
  }

  .faq-question {
    font-size: 12.8px;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .related-copy p span {
    display: inline;
    margin-left: 5px;
  }

  .related-card img {
    width: 67px;
    height: 92px;
  }

  .reviews-grid {
    column-count: 1;
  }

  .review-card {
    padding: 18px 18px 15px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 30px 28px;
    padding-top: 38px;
    padding-bottom: 28px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-tagline {
    margin-top: 17px;
    font-size: 13px;
  }

  .site-footer {
    margin-top: 60px;
  }

  .footer-bottom {
    padding-bottom: 21px;
  }

  .footer-disclaimer {
    font-size: 8.5px;
  }

  .footer-legal {
    gap: 6px 12px;
    white-space: normal;
  }

  .to-top {
    right: 15px;
    bottom: 17px;
    width: 37px;
    height: 37px;
  }

  .toast {
    bottom: 18px;
  }
}

@media (max-width: 520px) {
  .hero {
    min-height: 430px;
  }

  .hero-inner {
    min-height: 430px;
    padding: 19px 17px 50px;
  }

  .hero-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
    font-size: 39px;
  }

  .hero-title-jp {
    padding-bottom: 0;
    font-size: 16px;
    letter-spacing: 0.08em;
  }

  .hero-meta {
    max-width: 270px;
    line-height: 1.8;
  }

  .hero-meta i {
    display: none;
  }

  .hero-meta span {
    display: inline-block;
    margin-right: 7px;
  }

  .breadcrumb {
    gap: 4px;
    font-size: 9.5px;
  }

  .film-title {
    font-size: 23px;
  }

  .film-facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
  }

  .film-facts > div {
    padding-right: 0;
    margin-right: 0;
    border-right: 0;
  }

  .rating-row {
    gap: 6px;
  }

  .rating-divider,
  .rating-row .rating-count:last-child {
    display: none;
  }

  .data-strip {
    grid-template-columns: 1fr 1fr;
  }

  .data-item {
    padding: 12px 12px;
  }

  .data-item small {
    display: none;
  }

  .info-topline {
    gap: 8px;
  }

  .eyebrow {
    font-size: 8.5px;
    letter-spacing: 0.1em;
    white-space: nowrap;
  }

  .soft-badge {
    padding: 3px 7px;
    font-size: 9px;
  }

  .info-actions .button-primary {
    flex: 1;
  }

  .button-quiet span {
    display: none;
  }

  .button-quiet {
    width: 36px;
    padding: 0;
  }

  .section-title {
    font-size: 22px;
  }

  .resource-table tbody tr {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
    padding: 14px 13px;
  }

  .resource-table td:first-child,
  .resource-table td[data-label="获取方式"] {
    grid-column: 1 / -1;
  }

  .resource-table td[data-label="获取方式"] {
    margin-top: 2px;
  }

  .resource-table td {
    font-size: 11.5px;
  }

  .action-group {
    gap: 5px;
  }

  .mini-btn {
    flex: 1;
    padding-inline: 4px;
  }

  .version-cell {
    gap: 9px;
  }

  .version-name {
    white-space: normal;
  }

  .version-note {
    white-space: normal;
  }

  .story-card {
    padding-inline: 19px;
  }

  .story-body {
    font-size: 12.5px;
  }

  .story-lead {
    font-size: 13px;
  }

  .story-body blockquote {
    padding-inline: 14px;
    font-size: 13px;
  }

  .story-foot {
    gap: 8px 16px;
    font-size: 8.5px;
  }

  .review-summary {
    display: none;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 27px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-column h2 {
    margin-bottom: 10px;
  }

  .footer-column a {
    margin-bottom: 5px;
  }

  .footer-legal {
    font-size: 8.5px;
  }
}

@media (max-width: 380px) {
  .info-actions .button-primary {
    flex: 1 1 100%;
  }

  .button-ghost {
    flex: 1;
  }

  .button-quiet {
    flex: none;
  }

  .section-title {
    font-size: 21px;
  }

  .action-group {
    gap: 4px;
  }

  .mini-btn {
    padding-inline: 3px;
    font-size: 9.5px;
  }
}

/* =========================================================
   Motion preferences & print
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

@media print {
  body {
    background: #fff;
  }

  .site-header,
  .hero-aside,
  .info-actions,
  .action-group,
  .to-top,
  .toast,
  .nav-toggle {
    display: none !important;
  }

  .hero {
    min-height: 300px;
    box-shadow: none;
  }

  .info-card,
  .section,
  .site-footer {
    break-inside: avoid;
  }
}
