*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: #fdfaf3;
  color: #3d3a34;
  line-height: 1.55;
  letter-spacing: 0.01em;
}
img, video { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
table { border-collapse: collapse; width: 100%; }
header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding: 0.9rem 1.5rem 0.7rem;
  border-bottom: 2px solid #d9cfb8;
  background: #fbf7ee;
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-logo {
  font-family: Georgia, "Songti SC", "SimSun", serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #4a3f2f;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}
.site-logo:hover { border-bottom-color: #a89878; }
nav[data-contract="categories"] {
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem 0.2rem;
  max-width: 100%;
}
.runtime-category {
  display: inline-block;
  white-space: nowrap;
  font-size: 0.82rem;
  padding: 0.22rem 0.55rem;
  margin: 0.1rem 0;
  border-radius: 2px;
  color: #5a5244;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.runtime-category:hover {
  background: #efe7d8;
  border-color: #c9bda3;
  color: #2e2a24;
}
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.2rem 2rem;
}
.hero-panel {
  background: #faf6ec;
  border-bottom: 1px solid #e0d6c2;
  padding: 2.2rem 1.5rem 1.8rem;
  margin: 1rem -0.5rem 0.8rem;
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  box-shadow: inset 0 0 40px rgba(180, 160, 120, 0.08);
}
.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, transparent 0 24px, rgba(170, 150, 110, 0.12) 24px 25px),
    repeating-linear-gradient(0deg, transparent 0 24px, rgba(170, 150, 110, 0.06) 24px 25px);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.movie-title {
  font-family: Georgia, "Songti SC", "SimSun", serif;
  font-size: clamp(1.4rem, 3.2vw, 2.4rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #3a3128;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  text-shadow: 1px 1px 0 rgba(255,255,255,0.7);
}
.tagline {
  font-size: 0.95rem;
  color: #6b6255;
  letter-spacing: 0.15em;
  margin-bottom: 1.2rem;
  font-style: italic;
  border-top: 1px solid #d8cdb8;
  border-bottom: 1px solid #d8cdb8;
  display: inline-block;
  padding: 0.4rem 1.2rem;
}
.handscroll-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem 1.8rem;
  font-size: 0.8rem;
  color: #6f6758;
  letter-spacing: 0.08em;
  margin-top: 0.8rem;
}
.ink-dash {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border-bottom: 1px dashed #b8ab92;
  padding-bottom: 2px;
}
.ink-dash::before {
  content: "～";
  font-size: 0.9rem;
  color: #8a7c62;
}
.poster-player-wrap {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
  gap: 1rem 1.2rem;
  margin: 1rem 0 1.5rem;
  align-items: start;
}
.poster-frame {
  width: 100%;
}
.main-poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 2px 8px rgba(90, 75, 50, 0.12), 0 0 0 1px #e2d8c5;
  background: #e8dfcc;
}
.player-frame {
  min-width: 0;
  background: #1a1712;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(60, 45, 25, 0.15);
}
.player-frame video {
  display: block;
}
.player-controls {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.6rem;
  padding: 0.55rem 0.6rem;
  background: #f1eadb;
  border: 1px solid #ddd3bf;
  border-radius: 3px;
  margin-top: 0.2rem;
}
.player-controls button {
  font-size: 0.78rem;
  padding: 0.2rem 0.5rem;
  border: 1px solid #b8ad95;
  border-radius: 2px;
  background: #faf7f0;
  color: #4a4032;
  transition: background 0.15s;
}
.player-controls button:hover { background: #e9e0cf; }
.player-controls input[type="range"] {
  width: 100px;
  height: 4px;
  accent-color: #6b5d43;
}
.player-controls input[type="range"]:first-of-type { width: 160px; }
.player-controls input[type="range"] + input[type="range"] { width: 70px; }
.section-subhead {
  font-family: Georgia, "Songti SC", "SimSun", serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: #4a4032;
  margin: 1.3em 0 0.6em;
  padding-left: 0.7rem;
  border-left: 3px solid #a89878;
  line-height: 1.2;
}
.synopsis-block {
  background: #fbf8f1;
  border: 1px solid #e5dcc9;
  padding: 1rem 1.2rem 1.2rem;
  margin: 1.2rem 0 0.8rem;
  border-radius: 3px;
}
.synopsis-columns {
  column-count: 2;
  column-gap: 2rem;
  column-rule: 1px solid #e0d6c2;
}
.synopsis-para {
  font-size: 0.88rem;
  line-height: 1.75;
  color: #4a4032;
  text-align: justify;
  margin-bottom: 0.8rem;
  break-inside: avoid;
  text-indent: 2em;
}
.details-card {
  background: #f5efe2;
  border: 1px solid #ddd2bc;
  padding: 0.9rem 1.2rem 1rem;
  margin: 0.8rem 0;
  border-radius: 3px;
  max-width: 480px;
}
.detail-table {
  font-size: 0.85rem;
}
.detail-table th {
  text-align: left;
  font-weight: 500;
  color: #6b6255;
  padding: 0.3rem 0.8rem 0.3rem 0;
  width: 6em;
  border-bottom: 1px dotted #cfc3ab;
  vertical-align: top;
}
.detail-table td {
  padding: 0.3rem 0;
  color: #3a3128;
  border-bottom: 1px dotted #cfc3ab;
  font-weight: 500;
}
.detail-table tr:last-child th, .detail-table tr:last-child td { border-bottom: none; }
.ep-status {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 0.88rem;
  background: #f7f2e7;
  border: 1px solid #e2d8c5;
  padding: 0.5rem 1rem;
  margin: 0.8rem 0;
  border-radius: 3px;
}
.ep-total {
  color: #6b6255;
  letter-spacing: 0.05em;
}
.ep-total::before { content: "📋 "; }
.ep-current {
  color: #4a4032;
  font-weight: 500;
}
.ep-current::before { content: "▶ "; color: #8a7c62; }
.cast-block {
  margin: 1rem 0 0.5rem;
  background: #fbf8f1;
  border: 1px solid #e5dcc9;
  padding: 0.8rem 1rem 1rem;
  border-radius: 3px;
}
.cast-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 0.6rem;
}
.cast-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.6rem 0.3rem;
  border: 1px solid #d8cdb8;
  background: #fdfaf3;
  border-radius: 3px;
}
.avatar-symbol {
  font-size: 1.8rem;
  line-height: 1;
  margin-bottom: 0.3rem;
  filter: grayscale(0.4);
}
.actor-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #3a3128;
}
.role-name {
  font-size: 0.72rem;
  color: #7a6f5d;
  margin-top: 0.1rem;
}
.movie-shell {
  background: #fcf9f2;
  border: 1px solid #ddd2bc;
  border-radius: 4px;
  padding: 0.5rem 1rem 1.2rem;
  margin: 0.8rem 0 1.5rem;
  box-shadow: 0 1px 4px rgba(80, 65, 40, 0.05);
}
.movie-shell > *:not(.hero-panel) {
  margin-left: 0;
  margin-right: 0;
}
.timeline-section {
  margin: 1.5rem 0 1rem;
  padding: 0.6rem 0 0.8rem;
  border-top: 1px solid #d8cdb8;
  border-bottom: 1px solid #d8cdb8;
}
.timeline-section .section-subhead { margin-top: 0.3em; }
.timeline-scroll {
  display: flex;
  overflow-x: auto;
  gap: 0;
  padding: 0.8rem 0 0.6rem;
  scrollbar-width: thin;
  scrollbar-color: #b8ab92 #eee5d4;
}
.timeline-scroll::-webkit-scrollbar { height: 4px; }
.timeline-scroll::-webkit-scrollbar-thumb { background: #b8ab92; border-radius: 2px; }
.timeline-item {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  min-width: 110px;
  padding: 0.3rem 0.8rem;
  border-left: 1px solid #a89878;
  position: relative;
  margin-left: 0.4rem;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -3px;
  top: 0.4rem;
  width: 5px;
  height: 5px;
  background: #a89878;
  border-radius: 50%;
}
.timecode {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b6255;
  white-space: nowrap;
}
.timeline-label {
  font-size: 0.75rem;
  color: #4a4032;
  line-height: 1.4;
  margin-top: 0.2rem;
}
.episodes-grid {
  margin: 1.5rem 0 1rem;
}
.episode-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 0.6rem;
}
.ep-card {
  background: #f2ead8;
  border: 1px solid #ddd0b8;
  border-radius: 3px;
  padding: 0.5rem 0.6rem 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  box-shadow: 0 1px 3px rgba(80, 60, 30, 0.05);
}
.ep-number {
  font-size: 0.72rem;
  color: #8a7c62;
  letter-spacing: 0.05em;
}
.ep-title {
  font-family: Georgia, "Songti SC", "SimSun", serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #3a3128;
  margin-bottom: 0.1rem;
}
.ep-summary {
  font-size: 0.75rem;
  line-height: 1.5;
  color: #6b6255;
  flex: 1;
}
.ep-duration {
  font-size: 0.7rem;
  color: #8a7c62;
  border-top: 1px dotted #cfc3ab;
  padding-top: 0.2rem;
  margin-top: 0.2rem;
}
.comments-section {
  margin: 1.5rem 0 1rem;
}
.comments-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem 1rem;
}
.comment-bubble {
  background: #f6f1e6;
  border: 1px solid #ddd2bc;
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
  position: relative;
}
.comment-bubble::after {
  content: "";
  position: absolute;
  left: 1rem;
  bottom: -5px;
  width: 8px;
  height: 8px;
  background: #f6f1e6;
  border-right: 1px solid #ddd2bc;
  border-bottom: 1px solid #ddd2bc;
  transform: rotate(45deg);
}
.comment-nick {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #6b6255;
  margin-bottom: 0.2rem;
}
.comment-text {
  font-size: 0.82rem;
  line-height: 1.55;
  color: #3a3128;
}
.recommend-region {
  margin: 1.8rem 0 1rem;
  border-top: 1px solid #d8cdb8;
  padding-top: 0.8rem;
}
.rec-heading {
  font-family: Georgia, "Songti SC", "SimSun", serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #4a4032;
  margin-bottom: 0.6rem;
}
.rec-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 0.7rem;
}
a[data-runtime="recommendation"] {
  display: flex;
  flex-direction: column;
  background: #faf6ec;
  border: 1px solid #e0d6c2;
  border-radius: 3px;
  padding: 0.5rem;
  transition: box-shadow 0.15s, transform 0.15s;
  color: #3a3128;
  align-self: start;
}
a[data-runtime="recommendation"]:hover {
  box-shadow: 0 2px 6px rgba(80, 60, 30, 0.1);
  transform: translateY(-1px);
}
a[data-runtime="recommendation"] img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 2px;
  background: #e8dfcc;
  margin-bottom: 0.4rem;
}
a[data-runtime="recommendation"] span[data-runtime="name"] {
  font-size: 0.83rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.15rem;
}
a[data-runtime="recommendation"] span[data-runtime="blurb"] {
  font-size: 0.72rem;
  color: #6b6255;
  line-height: 1.4;
}
footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.2rem 1.5rem 1.8rem;
  border-top: 2px solid #d8cdb8;
  background: #fbf7ee;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.2rem;
  font-size: 0.78rem;
}
.footer-disclaimer {
  width: 100%;
  font-size: 0.72rem;
  color: #8a7c62;
  line-height: 1.5;
  margin-bottom: 0.3rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px dotted #cfc3ab;
}
a[data-contract="footer-home"], a[data-contract="footer-sitemap"] {
  color: #5a5244;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: border-color 0.15s, color 0.15s;
}
a[data-contract="footer-home"]:hover, a[data-contract="footer-sitemap"]:hover {
  color: #2e2a24;
  border-bottom-color: #a89878;
}
.friend-links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3rem 0.8rem;
  width: 100%;
  margin-top: 0.4rem;
}
.friend-label {
  font-weight: 600;
  color: #6b6255;
  margin-right: 0.3rem;
}
.runtime-friend-link {
  color: #6b6255;
  border-bottom: 1px dotted #b8ab92;
  padding-bottom: 1px;
  transition: color 0.15s, border-color 0.15s;
}
.runtime-friend-link:hover {
  color: #2e2a24;
  border-bottom-color: #5a5244;
}
.theater-mode .player-frame {
  position: fixed;
  inset: 0;
  z-index: 1000;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}
.theater-mode .player-frame video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
body.lights-off main, body.lights-off header, body.lights-off footer {
  filter: brightness(0.35) contrast(1.1);
}
.is-playing { color: #2e5e4e !important; border-color: #2e5e4e !important; }
.is-muted { color: #8c3a2a !important; border-color: #8c3a2a !important; }
.is-theater { color: #3a5a3a !important; border-color: #3a5a3a !important; }
.is-off { color: #6b6255 !important; }
@media (max-width: 720px) {header { flex-direction: column; gap: 0.3rem; padding: 0.6rem 0.8rem; }
.site-logo { font-size: 1.1rem; }
main { padding: 0 0.6rem 1.5rem; }
.hero-panel { margin: 0.5rem 0 0.6rem; padding: 1.5rem 0.8rem 1.2rem; }
.poster-player-wrap { grid-template-columns: 1fr; }
.poster-frame { max-width: 260px; margin: 0 auto; }
.player-frame { width: 100%; }
.player-controls { grid-column: 1; }
.synopsis-columns { column-count: 1; }
.comments-grid { grid-template-columns: 1fr; }
.episode-cards { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.rec-list { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.details-card { max-width: none; }
.timeline-item { min-width: 100px; }}
@media (max-width: 480px) {html { font-size: 14px; }
.movie-title { font-size: 1.2rem; }
.tagline { font-size: 0.8rem; }
.cast-list { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); }
.player-controls input[type="range"]:first-of-type { width: 100px; }
.episode-cards { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.rec-list { grid-template-columns: 1fr 1fr; }
.handscroll-meta { gap: 0.5rem 0.8rem; }
.ep-status { flex-direction: column; gap: 0.2rem; }}
@media (min-width: 721px) and (max-width: 900px) {.poster-player-wrap { grid-template-columns: minmax(160px, 180px) minmax(0, 1fr); }}
.cast-card, .ep-card, .comment-bubble, a[data-runtime="recommendation"], .timeline-item {
  align-self: start;
}
.movie-shell .section-subhead:first-of-type { margin-top: 0.8em; }

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}
