*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, p, ul, ol, li, figure, figcaption, dl, dt, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, video { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
a { color: inherit; }
html { -webkit-text-size-adjust: 100%; }
:root {
  --paper: #e9e7e0;
  --paper-2: #dedbd2;
  --ink: #2b2f2c;
  --ink-soft: #565b56;
  --ink-faint: #7c8078;
  --green: #3f5c4c;
  --green-dim: #6d8677;
  --orange: #b5622f;
  --orange-dim: #c98a5c;
  --line: #b9b6ab;
  --line-soft: #cdcac0;
}
html { background: var(--paper); }
body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; }
a:hover { text-decoration: underline; }
img { object-fit: cover; }
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 16px;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}
a[data-contract="site-name"] {
  color: var(--green);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.06em;
  text-decoration: none;
}
a[data-contract="site-name"]:hover { color: var(--orange); text-decoration: none; }
.category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  justify-content: flex-end;
}
a.runtime-category {
  white-space: nowrap;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 12px;
  border: 1px solid var(--line);
  padding: 2px 8px;
  background: #efeee8;
}
a.runtime-category:hover {
  color: #f2f0e9;
  background: var(--green);
  border-color: var(--green);
  text-decoration: none;
}
.page-main {
  display: block;
  padding: 0 16px;
  max-width: 1180px;
  margin: 0 auto;
}
section { border-bottom: 1px solid var(--line-soft); }
.movie-overview {
  background: transparent;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}
.overview-hero {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding-top: 14px;
}
.hero-portrait {
  position: relative;
  border: 1px solid var(--line);
  background: var(--paper-2);
  align-self: start;
  overflow: hidden;
}
.hero-portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  display: block;
  filter: saturate(0.82) contrast(1.02);
}
.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.movie-title {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.02em;
  color: var(--green);
}
.movie-tagline {
  font-size: 12px;
  color: var(--orange);
  border-left: 3px solid var(--orange-dim);
  padding-left: 7px;
  line-height: 1.4;
}
.meta-rating {
  display: flex;
  align-items: baseline;
  gap: 6px;
  border: 1px solid var(--line);
  background: #efeee8;
  padding: 4px 8px;
  align-self: flex-start;
}
.rating-score {
  font-size: 26px;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
  letter-spacing: -0.02em;
}
.rating-label {
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.14em;
}
.detail-table { border-top: 1px solid var(--line); }
.detail-list {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0;
  font-size: 12px;
}
.detail-key {
  color: var(--ink-faint);
  padding: 3px 8px 3px 0;
  border-bottom: 1px dotted var(--line);
  white-space: nowrap;
}
.detail-value {
  color: var(--ink);
  padding: 3px 0;
  border-bottom: 1px dotted var(--line);
  min-width: 0;
  overflow-wrap: anywhere;
}
.episode-status {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.status-chip {
  font-size: 11px;
  color: var(--green);
  border: 1px solid var(--green-dim);
  padding: 2px 7px;
  background: #e4e7e0;
  white-space: nowrap;
}
.overview-player {
  margin-top: 14px;
  border: 1px solid var(--line);
  background: #1d211e;
  width: 100%;
  display: flex;
  flex-direction: column;
}
.overview-player video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}
.player-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  padding: 6px 7px;
  background: var(--paper-2);
  border-top: 1px solid var(--line);
}
.player-controls button {
  font-size: 11px;
  line-height: 1.2;
  padding: 3px 8px;
  background: #efeee8;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  cursor: pointer;
  white-space: nowrap;
}
.player-controls button:hover { color: var(--green); border-color: var(--green-dim); }
.player-controls button.is-active { background: var(--green); color: #f2f0e9; border-color: var(--green); }
.player-controls button.is-playing { background: var(--orange); color: #f6f2ea; border-color: var(--orange); }
.player-controls button.is-muted { background: var(--ink-soft); color: #f2f0e9; border-color: var(--ink-soft); }
.player-controls input[type="range"] {
  flex: 1 1 90px;
  min-width: 70px;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--line);
  border: none;
  cursor: pointer;
}
.player-controls input[type="range"]:nth-of-type(2) { flex: 0 1 70px; }
.player-controls input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 10px; height: 10px;
  background: var(--green);
  border: none;
}
.player-controls input[type="range"]::-moz-range-thumb {
  width: 10px; height: 10px;
  background: var(--green);
  border: none;
  border-radius: 0;
}
body.lights-off { background: #141614; }
body.lights-off .page-main, body.lights-off .site-header, body.lights-off .site-footer { background: var(--paper); }
.movie-overview.is-theater { border-color: var(--orange-dim); }
.cast-panel {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.panel-heading, .section-heading {
  font-size: 14px;
  font-weight: 800;
  color: var(--green);
  letter-spacing: 0.04em;
  padding-bottom: 6px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.panel-heading::before, .section-heading::before {
  content: "";
  display: inline-block;
  width: 4px; height: 12px;
  background: var(--orange);
  margin-right: 7px;
  vertical-align: -1px;
}
.cast-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.cast-card {
  min-width: 0;
  border: 1px solid var(--line);
  background: #efeee8;
}
.cast-figure { display: block; }
.cast-avatar {
  width: 100%;
  aspect-ratio: 1 / 1;
  background:
    repeating-linear-gradient(135deg, #d3d0c5 0 6px, #c9c6ba 6px 12px);
  border-bottom: 1px solid var(--line);
}
.cast-name {
  display: block;
  font-size: 12px;
  color: var(--ink);
  padding: 4px 6px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.synopsis-panel {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.synopsis-paragraph {
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  text-indent: 2em;
  margin-bottom: 7px;
}
.synopsis-paragraph:last-child { margin-bottom: 0; }
.timeline-section, .episodes-section, .comments-section, .recommend-region {
  padding: 14px 0;
}
.timeline-list {
  position: relative;
  padding-left: 16px;
  border-left: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 18px;
}
.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
  font-size: 12px;
  border-bottom: 1px dotted var(--line-soft);
  padding-bottom: 5px;
}
.timeline-node {
  position: absolute;
  left: -21px;
  top: 6px;
  width: 7px; height: 7px;
  background: var(--paper);
  border: 1.5px solid var(--green);
  border-radius: 0;
}
.timeline-timecode {
  color: var(--orange);
  font-weight: 700;
  font-size: 11px;
  white-space: nowrap;
  letter-spacing: 0.04em;
}
.timeline-label {
  color: var(--ink-soft);
  min-width: 0;
  overflow-wrap: anywhere;
}
.episode-rail {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}
.episode-card {
  flex: 0 0 auto;
  width: 152px;
  border: 1px solid var(--line);
  background: #efeee8;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  position: relative;
}
.episode-number {
  font-size: 30px;
  font-weight: 800;
  line-height: 0.9;
  color: var(--green);
  letter-spacing: -0.03em;
}
.episode-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
}
.episode-summary {
  font-size: 11px;
  line-height: 1.5;
  color: var(--ink-faint);
  flex: 1 1 auto;
}
.episode-duration {
  font-size: 10.5px;
  color: var(--orange);
  border-top: 1px solid var(--line-soft);
  padding-top: 4px;
  letter-spacing: 0.06em;
}
.comment-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 10px;
  align-items: start;
}
.comment-note {
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--orange-dim);
  background: #eeece4;
  padding: 6px 8px;
  min-width: 0;
}
.comment-nickname {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 3px;
  letter-spacing: 0.02em;
}
.comment-text {
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}
.region-heading {
  font-size: 13px;
  font-weight: 800;
  color: var(--green);
  letter-spacing: 0.04em;
  margin-bottom: 7px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--line);
}
.recommend-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 7px;
  align-items: start;
}
a.recommend-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid var(--line);
  background: #efeee8;
  padding: 5px;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}
a.recommend-item:hover {
  border-color: var(--green);
  text-decoration: none;
}
a.recommend-item:hover .recommend-name { color: var(--orange); }
[data-runtime="recommendation"] img {
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  object-fit: cover;
  display: block;
  background: var(--paper-2);
  filter: saturate(0.85);
}
.recommend-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.recommend-blurb {
  font-size: 11px;
  color: var(--ink-faint);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.site-footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 16px 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-disclaimer {
  font-size: 11px;
  line-height: 1.6;
  color: var(--ink-faint);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-size: 12px;
}
a[data-contract="footer-home"] {
  color: var(--green);
  text-decoration: none;
  border-bottom: 1px solid var(--green-dim);
}
a[data-contract="footer-home"]:hover { color: var(--orange); border-color: var(--orange); text-decoration: none; }
a[data-contract="footer-sitemap"] {
  color: var(--orange);
  text-decoration: none;
  border-bottom: 1px solid var(--orange-dim);
}
a[data-contract="footer-sitemap"]:hover { color: var(--green); border-color: var(--green); text-decoration: none; }
.friend-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 10px;
  font-size: 11px;
}
.friend-links-label {
  color: var(--ink-faint);
  letter-spacing: 0.08em;
  border-right: 1px solid var(--line);
  padding-right: 10px;
}
a.runtime-friend-link {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px dotted var(--line);
  white-space: nowrap;
}
a.runtime-friend-link:hover { color: var(--green); border-bottom-color: var(--green); text-decoration: none; }
@media (max-width: 900px) {.overview-hero {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  }
.timeline-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }}
@media (max-width: 720px) {.page-main { padding: 0 12px; }
.site-header { padding: 8px 12px; }
.overview-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
.hero-portrait { max-width: 340px; }
.movie-title { font-size: 18px; }
.cast-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.timeline-list { grid-template-columns: minmax(0, 1fr); gap: 6px; }
.comment-board { grid-template-columns: minmax(0, 1fr); }
.recommend-strip { grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); }
.player-controls input[type="range"]:nth-of-type(2) { flex: 1 1 70px; }}
@media (max-width: 480px) {body { font-size: 13px; }
.hero-portrait { max-width: 260px; }
.cast-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.detail-list { font-size: 11.5px; }
.episode-card { width: 140px; }
.recommend-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.player-controls { gap: 4px; padding: 5px; }
.player-controls button { padding: 3px 6px; }}

footer{text-align:center!important}
footer *{justify-content:center!important}
footer :is(div,nav,ul,ol,p,section,address){margin-left:auto!important;margin-right:auto!important}
