:root {
  --bg: #101214;
  --surface: #191c20;
  --ink: #eeeef1;
  --muted: #a6a9b0;
  --line: #30343a;
  --accent: #ff5c46;
  --max: 1280px;
  color-scheme: dark;
  font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--accent);
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
  background: transparent;
  border: 1px solid var(--line);
  padding: 0.55rem 0.9rem;
}
button:hover {
  border-color: var(--accent);
}
[hidden] {
  display: none !important;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
.wrap {
  width: min(var(--max), calc(100% - 64px));
  margin: auto;
}
.skip {
  position: absolute;
  left: -10000px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  background: #fff;
  color: #000;
  padding: 1rem;
  z-index: 20;
}
header {
  border-bottom: 1px solid var(--line);
}
.topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 96px;
  gap: 2rem;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  white-space: nowrap;
}
.brand strong {
  font-size: 2.5rem;
  letter-spacing: -0.1rem;
  font-weight: 900;
}
.brand strong i {
  font-style: normal;
  color: var(--accent);
}
.brand span {
  font-size: 0.875rem;
  color: var(--muted);
}
#nav {
  display: flex;
  gap: 1.8rem;
  font-size: 0.95rem;
}
#nav a {
  padding: 1.7rem 0;
  border-bottom: 2px solid transparent;
}
#nav a[aria-current="page"] {
  border-color: var(--accent);
  color: #fff;
}
.menu {
  display: none;
}
.mast-strip {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.8rem;
  padding: 1rem 0;
  text-transform: uppercase;
  letter-spacing: 0.08rem;
}
.carousel {
  position: relative;
  border: 1px solid var(--line);
  margin: 0 0 3rem;
}
.carousel-stage {
  position: relative;
}
.carousel-slide {
  position: relative;
  min-height: 335px;
}
.carousel-slide > img {
  width: 100%;
  aspect-ratio: 1920/500;
  object-fit: cover;
  min-height: 335px;
}
.carousel-slide:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.86),
    rgba(0, 0, 0, 0.15) 75%
  );
  pointer-events: none;
}
.slide-copy {
  position: absolute;
  left: 4%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  max-width: 65%;
  padding: 1rem;
}
.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.06rem;
  color: var(--accent);
  margin: 0 0 0.8rem;
}
.slide-title {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.2;
  font-weight: 800;
  margin: 0.8rem 0;
}
.slide-copy p:not(.eyebrow):not(.slide-title) {
  line-height: 1.8;
  color: #d0d2d5;
}
.button {
  display: inline-block;
  background: var(--accent);
  color: #101214;
  font-weight: 700;
  padding: 0.8rem 1.2rem;
  margin-top: 0.5rem;
}
.button:hover {
  background: #ff8171;
  color: #101214;
}
.carousel-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.2rem;
  background: #15171a;
}
.carousel-controls button[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #101214;
}
.carousel-count {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.875rem;
}
.carousel-note {
  padding: 0.5rem 1.2rem;
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  border-top: 1px solid var(--line);
}
.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
  gap: 3rem;
}
.primary-content,
.sidebar {
  min-width: 0;
}
.intro {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}
h1 {
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  letter-spacing: -0.035em;
  line-height: 1.3;
  margin: 0.5rem 0 1.5rem;
}
h2 {
  font-size: 1.5rem;
  line-height: 1.45;
  margin: 0 0 1.2rem;
}
h3 {
  font-size: 1.2rem;
  line-height: 1.5;
  margin: 0.4rem 0 0.8rem;
}
p {
  line-height: 1.95;
}
.intro-content {
  display: flow-root;
  color: #c0c3c9;
}
.intro-content p {
  margin: 0;
}
.intro-image {
  float: right;
  width: 170px;
  margin: 0 0 1rem 1.5rem;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.section {
  margin: 2.8rem 0;
}
.sectiontitle {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.5rem;
}
.sectiontitle h2 {
  margin-bottom: 1rem;
}
.sectiontitle > a {
  font-size: 0.875rem;
  color: var(--muted);
}
.film-row {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) 5rem;
  gap: 1.2rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
}
.film-no {
  font:
    italic 1.7rem Georgia,
    serif;
  color: #727780;
  padding-top: 0.2rem;
}
.film-row p {
  color: var(--muted);
  margin: 0.5rem 0;
}
.film-row .kicker {
  font-size: 0.8rem;
  color: var(--accent);
  margin: 0;
  line-height: 1.6;
}
.film-row h3 {
  font-size: 1.45rem;
}
.film-row .film-year {
  text-align: right;
  font-size: 0.85rem;
  color: var(--muted);
}
.film-credit {
  font-size: 0.8rem !important;
}
.ai-feature {
  background: var(--surface);
  border-left: 3px solid var(--accent);
  padding: 2rem;
  margin: 3rem 0;
}
.ai-feature p {
  color: #c0c3c9;
}
.ai-feature .pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.topic-row {
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
}
.topic-row p {
  margin: 0.4rem 0;
  color: var(--muted);
}
.date {
  font-size: 0.8rem;
  color: var(--muted);
}
.sidebox {
  border-top: 2px solid #9097a2;
  padding: 1.5rem 0 2rem;
  margin-bottom: 1.5rem;
}
.sidebox h2 {
  font-size: 1.15rem;
}
.sidebox a {
  display: block;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  line-height: 1.6;
}
.sidebox a small {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.35rem;
}
.sidebox p {
  color: var(--muted);
  font-size: 0.95rem;
}
.sidebox.feature {
  border-color: var(--accent);
}
.side-number {
  color: var(--accent);
  font-family: Georgia, serif;
  margin-right: 0.7rem;
}
.breadcrumbs {
  font-size: 0.8rem;
  color: var(--muted);
  padding: 2rem 0 1rem;
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.breadcrumbs li + li:before {
  content: "/";
  margin-right: 0.55rem;
  color: #555;
}
.pagehead {
  padding: 1.5rem 0 2rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2rem;
}
.pagehead > p:last-child {
  color: var(--muted);
  max-width: 45rem;
}
.fact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 2.5rem;
  padding: 1.5rem;
  background: var(--surface);
}
dt {
  color: var(--muted);
  font-size: 0.875rem;
}
dd {
  margin: 0.5rem 0 0;
  line-height: 1.8;
}
.prose section {
  margin: 2.5rem 0;
}
.prose p {
  color: #c9ccd1;
}
.prose h2 {
  padding-top: 0.5rem;
}
.prose a {
  color: #ff897a;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.prose li {
  line-height: 1.95;
  margin: 0.75rem 0;
  color: #c9ccd1;
}
.character-list > div {
  padding: 1rem 0;
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
}
.character-list dt {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
}
.character-list dd {
  margin: 0;
}
.source-note {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}
.source-note p {
  font-size: 0.875rem;
  overflow-wrap: anywhere;
}
.spoiler {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1.2rem;
}
.spoiler summary {
  cursor: pointer;
  line-height: 1.7;
  font-weight: 600;
}
.spoiler[open] summary {
  margin-bottom: 1rem;
}
.table-scroll {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.95rem;
}
caption {
  text-align: left;
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}
th,
td {
  text-align: left;
  vertical-align: top;
  padding: 1rem;
  border: 1px solid var(--line);
  line-height: 1.75;
}
thead {
  background: var(--surface);
}
.catalog-tools {
  padding: 1.5rem;
  background: var(--surface);
  margin-bottom: 2rem;
}
.catalog-tools label {
  display: block;
}
input {
  width: 100%;
  background: #101214;
  border: 1px solid #4b5058;
  padding: 0.85rem;
  color: var(--ink);
  margin: 0.6rem 0 1rem;
}
.filter-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.filter-buttons button[aria-pressed="true"] {
  background: var(--accent);
  color: #101214;
  border-color: var(--accent);
}
#filter-status,
#filter-empty {
  color: var(--muted);
}
footer {
  margin-top: 5rem;
  border-top: 1px solid var(--line);
  background: #0b0d0f;
  padding: 2.5rem 0 1.5rem;
}
.footrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
  color: #babec5;
}
.footer-desc {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 1.6rem 0;
}
.footbase {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.8;
}
.copyright-refresh {
  display: block;
}
#domain {
  overflow-wrap: anywhere;
}
.notice {
  font-size: 0.85rem;
  color: var(--muted);
}
.page-article .sidebar {
  padding-top: 2rem;
}
@media (max-width: 900px) {
  .wrap {
    width: calc(100% - 40px);
  }
  .content-layout {
    gap: 2rem;
    grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
  }
  .brand span {
    display: none;
  }
  #nav {
    gap: 1rem;
  }
  .film-row {
    grid-template-columns: 2rem 1fr 3rem;
    gap: 0.7rem;
  }
  .sidebox p {
    font-size: 0.875rem;
  }
  .slide-copy {
    max-width: 85%;
  }
  .fact-grid {
    grid-template-columns: 1fr;
  }
  .fact-grid > div {
    display: grid;
    grid-template-columns: 5rem 1fr;
    gap: 1rem;
  }
  .fact-grid dd {
    margin: 0;
  }
}
@media (max-width: 700px) {
  .wrap {
    width: calc(100% - 32px);
  }
  .topline {
    min-height: 78px;
    flex-wrap: wrap;
    padding: 0.8rem 0;
    gap: 0;
  }
  .brand strong {
    font-size: 2rem;
  }
  .menu {
    display: block;
  }
  #nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 0 1.3rem;
    padding: 0.5rem 0;
  }
  .js #nav:not(.open) {
    display: none;
  }
  #nav a {
    padding: 0.8rem 0;
  }
  .content-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .mast-strip {
    font-size: 0.75rem;
    gap: 1rem;
  }
  .mast-strip span:last-child {
    display: none;
  }
  .carousel {
    margin-bottom: 2rem;
  }
  .carousel-slide,
  .carousel-slide > img {
    min-height: 335px;
  }
  .slide-copy {
    left: 2%;
    max-width: 96%;
    padding: 1rem;
  }
  .slide-title {
    font-size: 2rem;
  }
  .carousel-controls {
    padding: 0.7rem;
    gap: 0.4rem;
  }
  .carousel-controls button {
    padding: 0.5rem 0.6rem;
    font-size: 0.875rem;
  }
  .intro-image {
    width: 120px;
    margin-left: 1rem;
  }
  h1 {
    font-size: 2.1rem;
  }
  .film-row {
    grid-template-columns: 1.6rem 1fr 2.7rem;
    padding: 1.3rem 0;
  }
  .film-row h3 {
    font-size: 1.3rem;
  }
  .film-no {
    font-size: 1.3rem;
  }
  .sectiontitle {
    align-items: center;
  }
  .sectiontitle h2 {
    font-size: 1.3rem;
  }
  .sectiontitle > a {
    font-size: 0.8rem;
  }
  .ai-feature {
    padding: 1.4rem;
  }
  .ai-feature .pair {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
  .sidebox {
    margin-bottom: 0;
  }
  .character-list > div {
    grid-template-columns: 5rem 1fr;
  }
  .footrow {
    align-items: flex-start;
  }
  .footbase {
    display: block;
  }
  .pagehead {
    padding-top: 0.5rem;
  }
  .pagehead h1 {
    font-size: 2rem;
  }
  .prose p {
    line-height: 1.95;
  }
  .sidebox h2 {
    font-size: 1rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}

.film-figure {
  margin: 0 0 2rem;
}
.film-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}
.film-figure figcaption {
  font-size: 0.8rem;
  line-height: 1.8;
  color: var(--muted);
  margin-top: 0.65rem;
}
.film-figure figcaption a {
  margin-left: 0.5em;
}
.table-scroll {
  max-width: 100%;
  overflow-x: auto;
}
.table-scroll table {
  width: 100%;
  border-collapse: collapse;
}
.table-scroll th,
.table-scroll td {
  padding: 0.8rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #363638;
}
.table-scroll caption {
  text-align: left;
  font-weight: 700;
  padding: 0.7rem 0;
}

/* Article-led homepage and category reading lists. */
.cover-story {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 1.5rem;
  align-items: center;
  margin: 1.8rem 0 2rem;
}
.cover-story img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}
.cover-story h3 {
  font-size: 1.6rem;
  line-height: 1.4;
  margin: 0.5rem 0;
}
.cover-story p,
.story-pair p {
  color: var(--muted);
  line-height: 1.9;
}
.text-link {
  color: var(--accent);
}
.story-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.story-pair article {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}
.story-pair h3 {
  font-size: 1.2rem;
  line-height: 1.6;
}
.scene-list a {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 0.5rem 1rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
}
.scene-list span {
  color: var(--accent);
  font-size: 0.82rem;
}
.scene-list small {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}
.reading-note {
  color: var(--muted);
  font-size: 0.85rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1rem;
}
.sectiontitle > span {
  font-size: 0.8rem;
  color: var(--muted);
}
@media (max-width: 650px) {
  .cover-story,
  .story-pair {
    grid-template-columns: 1fr;
  }
  .cover-story {
    gap: 0.8rem;
  }
  .cover-story h3 {
    font-size: 1.4rem;
  }
  .scene-list a {
    grid-template-columns: 1fr;
  }
  .scene-list small {
    grid-column: 1;
  }
  .story-pair {
    gap: 1rem;
  }
  .sectiontitle > span {
    display: none;
  }
}
