*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Songti SC", "SimSun", serif;
  background: #14181d;
  color: #c8d0d8;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; background: none; border: none; color: inherit; cursor: pointer; }
input[type="range"] { accent-color: #8b1e24; }
video { display: block; }
h1, h2, h3, .movie-title, .section-title, .section-subtitle, .timeline-label, .ep-number, .cast-name, .comment-nick, .total-label, .current-label, .timecode, .tagline {
  font-family: "Heiti SC", "Microsoft YaHei", sans-serif;
}
header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.6rem 1.2rem;
  background: rgba(16,20,24,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #2a333d;
  flex-wrap: wrap; gap: 0.5rem 1rem;
}
a[data-contract="site-name"] {
  font-family: "Heiti SC", sans-serif;
  font-weight: 800; font-size: 1.25rem; letter-spacing: 0.12em;
  color: #e8edf2; text-decoration: none;
}
a[data-contract="site-name"]:hover { color: #b04a50; }
nav[data-contract="categories"] {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
}
a.runtime-category {
  font-family: "Heiti SC", sans-serif;
  font-size: 0.85rem; font-weight: 500;
  color: #9aa8b5; text-decoration: none;
  white-space: nowrap;
  padding: 0.3rem 0.7rem;
  border: 1px solid transparent;
  border-radius: 3px;
  transition: color 0.2s, border-color 0.2s;
}
a.runtime-category:hover {
  color: #e8edf2; border-color: #3a4652;
}
main {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0.75rem 1rem 2rem;
  display: flex; flex-direction: column; gap: 0.75rem;
}
.movie-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  grid-template-areas:
    "poster title"
    "poster details"
    "poster cast"
    "poster synopsis"
    "poster status"
    "player player";
  gap: 0.5rem 1.25rem;
  padding: 1.25rem;
  background: #1a212a;
  border: 1px solid #2b3540;
  border-radius: 6px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.5);
}
.poster-cluster { grid-area: poster; align-self: start; }
.poster-frame {
  width: 240px;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 0 0 1px #2e3945, 0 8px 24px rgba(0,0,0,0.6);
  position: relative;
  background: #0d1116;
}
.poster-frame img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.8) contrast(1.1) brightness(0.9);
}
.title-block { grid-area: title; align-self: end; }
.movie-title {
  font-size: 1.6rem; font-weight: 800;
  color: #e8edf2; letter-spacing: 0.02em;
  line-height: 1.2;
}
.tagline {
  font-family: "Heiti SC", sans-serif;
  font-size: 0.9rem; font-weight: 400;
  color: #8b1e24; letter-spacing: 0.18em;
  margin-top: 0.3rem;
  text-transform: uppercase;
}
.details-panel { grid-area: details; }
.meta-list {
  display: flex; flex-wrap: wrap;
  column-gap: 1.5rem; row-gap: 0.12rem;
}
.meta-row {
  display: flex; gap: 0.35rem;
  font-size: 0.8rem;
  color: #9aa8b5;
}
.meta-row dt { color: #6b7885; font-weight: 600; }
.meta-row dd { color: #c8d0d8; font-family: "Menlo", "Consolas", monospace; }
.cast-cluster { grid-area: cast; }
.cast-cluster .section-subtitle {
  font-size: 0.85rem; font-weight: 700;
  color: #8b1e24; letter-spacing: 0.12em;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}
.cast-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}
.cast-card {
  display: flex; flex-direction: column; gap: 0.1rem;
  padding: 0.4rem;
  background: #1e2630;
  border-radius: 3px;
  border-left: 2px solid #8b1e24;
}
.cast-photo {
  aspect-ratio: 3 / 4;
  background: linear-gradient(145deg, #232d38, #11161c);
  border-radius: 2px;
  margin-bottom: 0.2rem;
}
.cast-name {
  font-size: 0.85rem; font-weight: 700;
  color: #e8edf2;
}
.cast-role {
  font-size: 0.7rem;
  color: #7d8a97;
  font-family: "Songti SC", serif;
}
.synopsis-block { grid-area: synopsis; }
.synopsis-block .section-subtitle {
  font-size: 0.85rem; font-weight: 700;
  color: #8b1e24; letter-spacing: 0.12em;
  margin-bottom: 0.3rem;
}
.synopsis-block p {
  font-size: 0.82rem; color: #b6c2cd;
  margin-bottom: 0.4rem;
  line-height: 1.6;
  max-width: 65ch;
}
.synopsis-block p:last-child { margin-bottom: 0; }
.episode-status {
  grid-area: status;
  display: flex; align-items: center; gap: 0.8rem;
  padding-top: 0.4rem;
  border-top: 1px solid #2b3540;
}
.total-label, .current-label {
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.08em;
  color: #9aa8b5;
}
.current-label {
  color: #8b1e24;
  font-weight: 700;
}
.player-wrapper {
  grid-area: player;
  margin-top: 0.5rem;
  background: #0d1116;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #2b3540;
}
.player-wrapper video {
  display: block;
  width: 100%;
  height: auto;
}
.player-controls {
  grid-area: player;
  display: flex; align-items: center; gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0.5rem 0.75rem;
  background: #11171d;
  border-top: 1px solid #2b3540;
  border-radius: 0 0 4px 4px;
  margin-top: -1px;
}
.player-controls button {
  font-family: "Heiti SC", sans-serif;
  font-size: 0.7rem; font-weight: 500;
  color: #9aa8b5;
  padding: 0.25rem 0.5rem;
  border: 1px solid #2b3540;
  border-radius: 2px;
  background: #1a212a;
  transition: all 0.2s;
}
.player-controls button:hover { color: #e8edf2; border-color: #8b1e24; }
.player-controls input[type="range"] {
  flex: 0 1 120px; min-width: 60px;
  height: 4px;
  background: #2b3540;
  border-radius: 2px;
}
.section-title {
  font-size: 1rem; font-weight: 800;
  color: #e8edf2; letter-spacing: 0.14em;
  padding: 0.5rem 0 0.25rem;
  border-bottom: 2px solid #8b1e24;
  margin-bottom: 0.75rem;
  display: inline-block;
}
.timeline-section { padding: 0; }
.timeline-scroll {
  overflow-x: auto;
  padding-bottom: 0.5rem;
}
.timeline-track {
  display: flex; gap: 0;
  min-width: max-content;
  padding: 0.5rem 0;
  position: relative;
}
.timeline-track::before {
  content: "";
  position: absolute; top: 1.7rem; left: 0; right: 0;
  height: 2px;
  background: #2b3540;
}
.timeline-item {
  display: flex; flex-direction: column;
  align-items: center; gap: 0.3rem;
  padding: 0.5rem 1.25rem;
  position: relative;
  min-width: 130px;
}
.timeline-item::before {
  content: "";
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #3a4652;
  border: 2px solid #14181d;
  z-index: 1;
}
.timeline-item.current-node::before {
  background: #8b1e24;
  box-shadow: 0 0 8px rgba(139,30,36,0.8);
}
.timecode {
  font-family: "Menlo", "Consolas", monospace;
  font-size: 0.7rem; color: #6b7885;
  font-weight: 600;
}
.timeline-label {
  font-size: 0.75rem; color: #9aa8b5;
  text-align: center;
  max-width: 130px;
  line-height: 1.3;
}
.current-node .timecode { color: #8b1e24; font-weight: 700; }
.current-node .timeline-label { color: #c8d0d8; font-weight: 600; }
.episodes-section { padding: 0; }
.episode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}
.episode-card {
  display: grid;
  grid-template-columns: 2rem 1fr;
  grid-template-rows: auto auto auto;
  column-gap: 0.6rem;
  padding: 0.6rem 0.75rem;
  background: #1a212a;
  border: 1px solid #222c36;
  border-radius: 4px;
  transition: border-color 0.2s, background 0.2s;
}
.episode-card:hover { border-color: #8b1e24; background: #1e2731; }
.ep-number {
  grid-row: 1 / 3;
  font-family: "Menlo", "Consolas", monospace;
  font-size: 1.1rem; font-weight: 700;
  color: #8b1e24;
  text-align: center;
  padding-top: 0.2rem;
}
.episode-card h3 {
  font-size: 0.9rem; font-weight: 700;
  color: #d8e0e8;
  margin-bottom: 0.2rem;
}
.episode-card p {
  grid-column: 2;
  font-size: 0.75rem; color: #8b98a5;
  line-height: 1.5;
  margin-bottom: 0.3rem;
}
.ep-duration {
  grid-column: 2;
  font-family: "Menlo", "Consolas", monospace;
  font-size: 0.65rem; color: #6b7885;
  align-self: end;
}
.comments-section { padding: 0; }
.comment-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}
.comment-bubble {
  background: #1a212a;
  border: 1px solid #222c36;
  border-radius: 4px;
  padding: 0.7rem 0.8rem;
  position: relative;
}
.comment-bubble::before {
  content: "";
  position: absolute; top: 0.8rem; left: -4px;
  width: 8px; height: 8px;
  background: #1a212a;
  border-left: 1px solid #222c36;
  border-bottom: 1px solid #222c36;
  transform: rotate(45deg);
}
.comment-nick {
  display: block;
  font-size: 0.8rem; font-weight: 700;
  color: #e8edf2;
  margin-bottom: 0.25rem;
  letter-spacing: 0.04em;
}
.comment-bubble p {
  font-size: 0.78rem; color: #9aa8b5;
  line-height: 1.5;
}
.rec-region { padding: 0; }
.rec-region h2[data-recommendation-title] {
  font-family: "Heiti SC", sans-serif;
  font-size: 0.95rem; font-weight: 800;
  color: #e8edf2;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid #2b3540;
}
.rec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.6rem;
}
a[data-runtime="recommendation"] {
  display: flex; flex-direction: column; gap: 0.2rem;
  background: #1a212a;
  border: 1px solid #222c36;
  border-radius: 4px;
  padding: 0.5rem;
  transition: border-color 0.2s, background 0.2s;
  color: #c8d0d8; text-decoration: none;
}
a[data-runtime="recommendation"]:hover {
  border-color: #8b1e24;
  background: #1e2731;
}
a[data-runtime="recommendation"] img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 2px;
  filter: blur(2px) brightness(0.7);
  transition: filter 0.2s;
}
a[data-runtime="recommendation"]:hover img {
  filter: blur(0) brightness(1);
}
a[data-runtime="recommendation"] span[data-runtime="name"] {
  font-family: "Heiti SC", sans-serif;
  font-size: 0.8rem; font-weight: 700;
  color: #d8e0e8;
}
a[data-runtime="recommendation"] span[data-runtime="blurb"] {
  font-size: 0.7rem; color: #7d8a97;
  line-height: 1.4;
}
footer {
  background: #0d1116;
  border-top: 1px solid #2b3540;
  padding: 1.5rem 1rem 2rem;
}
.footer-contract {
  max-width: 1200px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 1rem;
}
.footer-contract div[data-contract="disclaimer"] {
  font-size: 0.72rem; color: #6b7885;
  line-height: 1.6;
  border-left: 3px solid #8b1e24;
  padding-left: 0.6rem;
}
nav[data-contract="friend-links"] {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.8rem;
}
.friend-label {
  font-family: "Heiti SC", sans-serif;
  font-size: 0.8rem; font-weight: 700;
  color: #9aa8b5;
}
a.runtime-friend-link {
  font-size: 0.75rem;
  color: #7d8a97; text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}
a.runtime-friend-link:hover { color: #e8edf2; }
.footer-links {
  display: flex; gap: 1.5rem;
  border-top: 1px solid #222c36;
  padding-top: 0.8rem;
}
a[data-contract="footer-home"], a[data-contract="footer-sitemap"] {
  font-family: "Heiti SC", sans-serif;
  font-size: 0.8rem; font-weight: 500;
  color: #9aa8b5; text-decoration: none;
  transition: color 0.2s;
}
a[data-contract="footer-home"]:hover, a[data-contract="footer-sitemap"]:hover { color: #8b1e24; }
.player-controls button.theater-active {
  color: #8b1e24; border-color: #8b1e24;
  background: rgba(139,30,36,0.15);
}
.player-controls button.light-on {
  color: #f0d060; border-color: #f0d060;
  background: rgba(240,208,96,0.1);
}
@media (max-width: 1024px) {.movie-shell {
    grid-template-columns: 200px minmax(0, 1fr);
  }
.poster-frame { width: 200px; }
.cast-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.comment-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }}
@media (max-width: 768px) {header { flex-direction: column; align-items: flex-start; }
nav[data-contract="categories"] { justify-content: flex-start; }
.movie-shell {
    grid-template-columns: 1fr;
    grid-template-areas:
      "poster"
      "title"
      "details"
      "synopsis"
      "cast"
      "status"
      "player";
    padding: 0.75rem;
    gap: 0.75rem;
  }
.poster-cluster { justify-self: center; }
.poster-frame { width: 200px; }
.title-block { text-align: center; }
.tagline { text-align: center; }
.episode-grid { grid-template-columns: 1fr; }
.comment-list { grid-template-columns: 1fr; }
.rec-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }}
@media (max-width: 480px) {body { font-size: 14px; }
main { padding: 0.5rem; }
.movie-title { font-size: 1.3rem; }
.cast-list { grid-template-columns: 1fr; }
.player-controls { gap: 0.3rem; }
.player-controls button { font-size: 0.65rem; padding: 0.2rem 0.4rem; }
.footer-links { flex-direction: column; gap: 0.5rem; }}
.player-wrapper {
  min-width: 0;
  width: 100%;
}
.movie-shell {
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
  min-width: 0;
}
@media (max-width: 768px) {.movie-shell { grid-template-columns: minmax(0, 1fr); }}
.poster-cluster { height: max-content; }
.poster-frame { height: max-content; }
.poster-frame img { height: auto; }
.cast-card, .episode-card, .comment-bubble, a[data-runtime="recommendation"] {
  align-self: start;
}
.cast-list, .episode-grid, .comment-list, .rec-grid {
  align-items: start;
}
.meta-row dd:last-child { color: #8b1e24; font-weight: 700; }
.timeline-scroll::-webkit-scrollbar { height: 4px; }
.timeline-scroll::-webkit-scrollbar-track { background: #1a212a; }
.timeline-scroll::-webkit-scrollbar-thumb { background: #3a4652; border-radius: 2px; }
.rec-region h2[data-recommendation-title]::before {
  content: "▍";
  color: #8b1e24;
  margin-right: 0.3rem;
}
a { text-decoration: none; }
a:hover { text-decoration: none; }
.section-title { margin-top: 0.25rem; }
main > section {
  margin-top: 0.5rem;
}
main > section:first-child { margin-top: 0; }
.cast-photo {
  background-image:
    radial-gradient(circle at 30% 20%, rgba(139,30,36,0.15), transparent 60%),
    repeating-linear-gradient(45deg, transparent 0 8px, rgba(139,30,36,0.03) 8px 9px),
    linear-gradient(145deg, #232d38, #11161c);
}
.movie-title {
  font-family: "Heiti SC", "Microsoft YaHei", sans-serif;
  font-weight: 900;
  letter-spacing: -0.01em;
}
.tagline {
  font-weight: 500;
  letter-spacing: 0.28em;
}
.total-label, .current-label, .timecode, .ep-number, .ep-duration, .meta-row dd {
  font-family: "Menlo", "Consolas", "Courier New", monospace;
}
.movie-shell, .episode-card, .comment-bubble, a[data-runtime="recommendation"] {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
}
.current-node::before {
  box-shadow: 0 0 12px rgba(139,30,36,0.9), 0 0 4px rgba(139,30,36,0.9);
}
a.runtime-friend-link + a.runtime-friend-link::before {
  content: "·";
  margin-right: 0.8rem;
  color: #3a4652;
}
nav[data-contract="friend-links"] a.runtime-friend-link {
  display: inline-flex; align-items: center;
}
nav[data-contract="friend-links"] a.runtime-friend-link::before {
  content: "·";
  margin-right: 0.4rem;
  color: #3a4652;
}
nav[data-contract="friend-links"] a.runtime-friend-link:first-of-type::before { display: none; }
a[data-runtime="recommendation"] {
  height: max-content;
}
.player-wrapper video {
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #000;
}
@media (min-width: 1600px) {main { max-width: 1600px; }
.episode-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.comment-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }}
@media (min-width: 769px) and (max-width: 1024px) {.episode-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.comment-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }}
@media (prefers-reduced-motion: reduce) {* { transition: none !important; }
html { scroll-behavior: auto; }}

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}
