*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
:root {
  --ink: #0a0607;
  --ink-2: #140a0c;
  --crimson: #5c0f14;
  --crimson-deep: #3d0a0e;
  --crimson-soft: #7a1a20;
  --gold: #b8934a;
  --gold-dim: #8a6d34;
  --gold-bright: #d9b96a;
  --bone: #e6dcc8;
  --bone-dim: #b3a68c;
  --silk: #c9a24c;
}
html {
  background: var(--ink);
  -webkit-text-size-adjust: 100%;
}
body {
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(92, 15, 20, 0.55), transparent 60%),
    radial-gradient(90% 60% at 100% 100%, rgba(61, 10, 14, 0.6), transparent 55%),
    var(--ink);
  color: var(--bone);
  font-family: "Songti SC", "SimSun", "STSong", "Noto Serif CJK SC", serif;
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}
h1, h2, h3, .section-heading, .movie-title, .recommend-title, .episode-title {
  font-family: "FangSong", "STFangsong", "FangSong_GB2312", "Noto Serif CJK SC", serif;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.timeline-time, .status-num, .episode-number, .episode-duration {
  font-family: "Courier New", "SFMono-Regular", Consolas, monospace;
  font-variant-numeric: tabular-nums;
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: var(--gold);
  text-decoration: none;
}
a:hover {
  color: var(--gold-bright);
}
ul, ol {
  list-style: none;
}
button, input {
  font: inherit;
  color: inherit;
}
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.55rem clamp(0.75rem, 3vw, 2rem);
  background: linear-gradient(180deg, rgba(10, 6, 7, 0.95), rgba(20, 10, 12, 0.7));
  border-bottom: 1px solid rgba(184, 147, 74, 0.28);
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(3px);
}
a[data-contract="site-name"] {
  color: var(--gold-bright);
  text-decoration: none;
  font-family: "FangSong", "STFangsong", serif;
  font-size: 1.15rem;
  letter-spacing: 0.22em;
  text-shadow: 0 0 10px rgba(184, 147, 74, 0.4);
}
a[data-contract="site-name"]:hover {
  color: var(--bone);
}
.categories-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.4rem;
  justify-content: flex-end;
  max-width: 100%;
}
a.runtime-category {
  color: var(--bone-dim);
  text-decoration: none;
  white-space: nowrap;
  font-size: 0.78rem;
  padding: 0.18rem 0.55rem;
  border: 1px solid rgba(184, 147, 74, 0.28);
  border-radius: 1px;
  letter-spacing: 0.14em;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
a.runtime-category:hover {
  color: var(--gold-bright);
  border-color: var(--gold);
  background: rgba(92, 15, 20, 0.4);
}
.site-main {
  display: block;
  padding: clamp(0.75rem, 2.5vw, 1.75rem) clamp(0.75rem, 3vw, 2rem) clamp(1.25rem, 3vw, 2.25rem);
}
.section-heading {
  font-size: 0.95rem;
  color: var(--gold);
  letter-spacing: 0.3em;
  padding-left: 0.6rem;
  border-left: 3px solid var(--crimson-soft);
  margin-bottom: 0.5rem;
  text-shadow: 0 0 12px rgba(122, 26, 32, 0.6);
}
.movie-overview {
  display: grid;
  grid-template-columns: minmax(0, 210px) minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas:
    "poster info player"
    "poster info info";
  gap: 1rem 1.25rem;
  align-items: start;
  background:
    linear-gradient(180deg, rgba(20, 10, 12, 0.85), rgba(10, 6, 7, 0.92));
  border: 1px solid rgba(184, 147, 74, 0.22);
  padding: clamp(0.75rem, 2vw, 1.25rem);
  margin-bottom: clamp(1.5rem, 5vw, 3.5rem);
  position: relative;
  overflow: hidden;
}
.movie-overview::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      45deg,
      rgba(184, 147, 74, 0.05) 0 2px,
      transparent 2px 9px
    );
  pointer-events: none;
  opacity: 0.7;
}
.poster-shell {
  grid-area: poster;
  align-self: start;
  width: 100%;
  border: 1px solid rgba(184, 147, 74, 0.4);
  box-shadow: 0 0 0 1px rgba(10, 6, 7, 0.8), 0 12px 30px rgba(0, 0, 0, 0.7);
  position: relative;
  z-index: 1;
}
.poster-shell img {
  width: 100%;
  height: auto;
  display: block;
}
.overview-info {
  grid-area: info;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  position: relative;
  z-index: 1;
}
.movie-title {
  font-size: clamp(1.35rem, 3.4vw, 2.1rem);
  color: var(--bone);
  letter-spacing: 0.16em;
  line-height: 1.15;
  position: relative;
  padding-bottom: 0.35rem;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.6), 0 0 24px rgba(122, 26, 32, 0.55);
}
.movie-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 3.5rem;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.movie-tagline {
  font-size: 0.82rem;
  color: var(--bone-dim);
  letter-spacing: 0.1em;
  border-left: 2px solid var(--crimson-soft);
  padding-left: 0.55rem;
  position: relative;
  z-index: 2;
}
.detail-panel {
  border-top: 1px solid rgba(184, 147, 74, 0.2);
  border-bottom: 1px solid rgba(184, 147, 74, 0.2);
  padding: 0.5rem 0;
}
.detail-list {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) max-content minmax(0, 1fr);
  gap: 0.22rem 0.7rem;
  font-size: 0.82rem;
}
.detail-key {
  color: var(--gold-dim);
  letter-spacing: 0.14em;
  white-space: nowrap;
}
.detail-value {
  color: var(--bone);
  min-width: 0;
}
.episode-status {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  font-size: 0.82rem;
  padding: 0.4rem 0.6rem;
  background: rgba(92, 15, 20, 0.35);
  border-left: 3px solid var(--gold-dim);
}
.status-line {
  color: var(--bone-dim);
  letter-spacing: 0.1em;
}
.status-num {
  color: var(--gold-bright);
  font-size: 1rem;
  padding: 0 0.1em;
}
.cast-strip {
  min-width: 0;
}
.cast-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: flex-start;
}
.cast-card {
  flex: 0 0 auto;
  border: 1px solid rgba(184, 147, 74, 0.35);
  background: linear-gradient(180deg, rgba(61, 10, 14, 0.7), rgba(20, 10, 12, 0.9));
  padding: 0.28rem 0.7rem;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.cast-card:hover {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(122, 26, 32, 0.8), rgba(61, 10, 14, 0.9));
  transform: translateY(-1px);
}
.cast-name {
  font-size: 0.8rem;
  color: var(--bone);
  letter-spacing: 0.16em;
  white-space: nowrap;
}
.cast-extra {
  display: none;
}
.cast-list:hover .cast-extra, .cast-list:focus-within .cast-extra {
  display: block;
}
.synopsis-panel {
  border-top: 1px solid rgba(184, 147, 74, 0.2);
  padding-top: 0.5rem;
}
.synopsis-para {
  font-size: 0.82rem;
  line-height: 1.72;
  color: var(--bone-dim);
  text-indent: 2em;
  margin-bottom: 0.35rem;
}
.synopsis-para:last-child {
  margin-bottom: 0;
}
.player-shell {
  grid-area: player;
  width: 100%;
  min-width: 0;
  align-self: start;
  background: #000;
  border: 1px solid rgba(184, 147, 74, 0.35);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.75);
  position: relative;
  z-index: 1;
}
.player-shell video {
  display: block;
  width: 100%;
  height: auto;
  background: #000;
}
.player-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.4rem;
  padding: 0.4rem 0.5rem;
  background: linear-gradient(180deg, rgba(20, 10, 12, 0.95), rgba(10, 6, 7, 0.98));
  border-top: 1px solid rgba(184, 147, 74, 0.2);
}
.player-controls button {
  background: transparent;
  border: 1px solid rgba(184, 147, 74, 0.3);
  color: var(--bone-dim);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  padding: 0.22rem 0.5rem;
  cursor: pointer;
  white-space: nowrap;
  border-radius: 1px;
  transition: color 0.18s, border-color 0.18s, background 0.18s;
}
.player-controls button:hover {
  color: var(--gold-bright);
  border-color: var(--gold);
  background: rgba(92, 15, 20, 0.45);
}
.player-controls input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: rgba(184, 147, 74, 0.25);
  border-radius: 2px;
  cursor: pointer;
  flex: 1 1 80px;
  min-width: 60px;
}
.player-controls input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--gold-bright);
  border: 1px solid var(--crimson-deep);
}
.player-controls input[type="range"]::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border: 1px solid var(--crimson-deep);
  border-radius: 50%;
  background: var(--gold-bright);
}
.player-controls button.play.is-active, .player-controls button.is-active {
  color: var(--crimson-deep);
  background: var(--gold-bright);
  border-color: var(--gold-bright);
}
.player-shell.is-theater {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(184, 147, 74, 0.5), 0 14px 40px rgba(0, 0, 0, 0.9);
}
body.lights-off {
  background: #000;
}
body.lights-off .site-main, body.lights-off .site-header, body.lights-off .site-footer {
  opacity: 0.25;
  transition: opacity 0.4s;
}
body.lights-off .player-shell {
  opacity: 1;
  box-shadow: 0 0 40px rgba(184, 147, 74, 0.35);
}
.fullscreen {
  width: 100%;
  height: 100%;
}
.player-shell:fullscreen {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #000;
}
.player-shell:fullscreen video {
  max-height: calc(100vh - 60px);
}
.mute.is-active, .pip.is-active, .speed.is-active, .fullscreen.is-active, .theater.is-active, .light.is-active {
  color: var(--gold-bright);
}
.timeline-section {
  margin-bottom: clamp(0.9rem, 2.4vw, 1.5rem);
}
.timeline-track {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.9rem 0.4rem 0.7rem;
  border-top: 1px solid rgba(184, 147, 74, 0.18);
  border-bottom: 1px solid rgba(184, 147, 74, 0.18);
  background:
    linear-gradient(90deg, rgba(92, 15, 20, 0.22), rgba(10, 6, 7, 0) 30%, rgba(92, 15, 20, 0.22));
  scrollbar-width: thin;
  scrollbar-color: var(--gold-dim) transparent;
}
.timeline-track::-webkit-scrollbar {
  height: 6px;
}
.timeline-track::-webkit-scrollbar-thumb {
  background: var(--gold-dim);
  border-radius: 3px;
}
.timeline-list {
  display: flex;
  align-items: flex-start;
  gap: 0;
  min-width: max-content;
  position: relative;
}
.timeline-list::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 1.35rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim) 6%, var(--gold) 50%, var(--gold-dim) 94%, transparent);
  box-shadow: 0 0 8px rgba(184, 147, 74, 0.5);
}
.timeline-node {
  flex: 0 0 auto;
  width: 150px;
  padding: 0 0.75rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}
.timeline-time {
  font-size: 0.72rem;
  color: var(--gold-bright);
  letter-spacing: 0.08em;
  padding: 0.1rem 0.35rem;
  border: 1px solid rgba(184, 147, 74, 0.45);
  background: var(--ink-2);
  align-self: flex-start;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 10px rgba(184, 147, 74, 0.2);
}
.timeline-label {
  font-size: 0.78rem;
  color: var(--bone-dim);
  line-height: 1.5;
  letter-spacing: 0.04em;
  transition: color 0.25s;
}
.timeline-node:hover .timeline-label {
  color: var(--bone);
}
.timeline-node::before {
  content: "";
  position: absolute;
  left: 0.75rem;
  top: 0.62rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(184, 147, 74, 0.8);
  z-index: 3;
}
.episodes-section {
  margin-bottom: clamp(0.9rem, 2.4vw, 1.5rem);
}
.episode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  align-items: start;
}
.episode-card {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  grid-template-areas:
    "num title"
    "num summary"
    "num dur";
  gap: 0.15rem 0.6rem;
  align-items: start;
  padding: 0.5rem 0.6rem;
  background: linear-gradient(120deg, rgba(61, 10, 14, 0.55), rgba(10, 6, 7, 0.85));
  border: 1px solid rgba(184, 147, 74, 0.2);
  border-left: 2px solid var(--crimson-soft);
  transition: border-color 0.2s, background 0.2s;
}
.episode-card:hover {
  border-color: rgba(184, 147, 74, 0.55);
  background: linear-gradient(120deg, rgba(92, 15, 20, 0.7), rgba(10, 6, 7, 0.9));
}
.episode-number {
  grid-area: num;
  writing-mode: vertical-rl;
  text-orientation: upright;
  letter-spacing: 0.2em;
  font-size: 0.68rem;
  color: var(--gold);
  border-right: 1px solid rgba(184, 147, 74, 0.25);
  padding-right: 0.4rem;
  align-self: stretch;
}
.episode-title {
  grid-area: title;
  writing-mode: vertical-rl;
  text-orientation: upright;
  letter-spacing: 0.24em;
  font-size: 0.82rem;
  color: var(--bone);
  justify-self: start;
  line-height: 1;
  padding: 0.15rem 0.2rem;
}
.episode-summary {
  grid-area: summary;
  font-size: 0.76rem;
  line-height: 1.55;
  color: var(--bone-dim);
  border-top: 1px solid rgba(184, 147, 74, 0.15);
  padding-top: 0.25rem;
}
.episode-duration {
  grid-area: dur;
  font-size: 0.68rem;
  color: var(--gold-dim);
  letter-spacing: 0.1em;
}
.comments-section {
  margin-bottom: clamp(0.9rem, 2.4vw, 1.5rem);
}
.comments-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.4rem;
}
.comment-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;
  align-items: start;
}
.comment-item {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 0.55rem;
  padding: 0.45rem 0.55rem;
  background: rgba(20, 10, 12, 0.7);
  border: 1px solid rgba(184, 147, 74, 0.16);
  border-top: 2px solid var(--crimson-soft);
}
.comment-nickname {
  writing-mode: vertical-rl;
  text-orientation: upright;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--gold);
  align-self: start;
  padding-bottom: 0.2rem;
  border-left: 1px solid rgba(184, 147, 74, 0.25);
  padding-left: 0.35rem;
}
.comment-text {
  font-size: 0.78rem;
  line-height: 1.62;
  color: var(--bone-dim);
}
.recommend-region {
  margin-bottom: clamp(0.9rem, 2.4vw, 1.5rem);
  padding-top: 0.5rem;
  border-top: 1px solid rgba(184, 147, 74, 0.18);
}
.recommend-title {
  writing-mode: vertical-rl;
  text-orientation: upright;
  letter-spacing: 0.3em;
  font-size: 0.85rem;
  color: var(--gold);
  float: left;
  margin-right: 0.65rem;
  height: 6.5rem;
  border-right: 1px solid rgba(184, 147, 74, 0.25);
  padding-right: 0.35rem;
  text-shadow: 0 0 10px rgba(122, 26, 32, 0.6);
}
.recommend-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  align-items: start;
  overflow: hidden;
}
a.recommend-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 0.1rem 0.5rem;
  align-items: start;
  padding: 0.35rem;
  background: rgba(20, 10, 12, 0.75);
  border: 1px solid rgba(184, 147, 74, 0.18);
  color: var(--bone);
  text-decoration: none;
  min-width: 0;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
a.recommend-card:hover {
  border-color: var(--gold);
  background: rgba(61, 10, 14, 0.7);
  transform: translateY(-1px);
}
[data-runtime="recommendation"] img {
  grid-row: 1 / span 2;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border: 1px solid rgba(184, 147, 74, 0.3);
}
[data-runtime="recommendation"] [data-runtime="name"] {
  font-size: 0.78rem;
  color: var(--bone);
  letter-spacing: 0.06em;
  line-height: 1.3;
  overflow: hidden;
}
a.recommend-card:hover [data-runtime="name"] {
  color: var(--gold-bright);
}
[data-runtime="recommendation"] [data-runtime="blurb"] {
  font-size: 0.68rem;
  line-height: 1.45;
  color: var(--bone-dim);
  overflow: hidden;
}
.site-footer {
  padding: 1rem clamp(0.75rem, 3vw, 2rem) 1.5rem;
  border-top: 1px solid rgba(184, 147, 74, 0.25);
  background: linear-gradient(0deg, rgba(61, 10, 14, 0.4), rgba(10, 6, 7, 0.9));
  font-size: 0.75rem;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-bottom: 0.6rem;
}
a[data-contract="footer-home"], a[data-contract="footer-sitemap"] {
  color: var(--bone-dim);
  text-decoration: none;
  letter-spacing: 0.16em;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
a[data-contract="footer-home"]:hover, a[data-contract="footer-sitemap"]:hover {
  color: var(--gold-bright);
  border-bottom-color: var(--gold);
}
.friend-links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3rem 0.75rem;
  margin-bottom: 0.7rem;
  padding: 0.4rem 0;
  border-top: 1px dashed rgba(184, 147, 74, 0.2);
  border-bottom: 1px dashed rgba(184, 147, 74, 0.2);
}
.friend-links-label {
  color: var(--gold-dim);
  letter-spacing: 0.2em;
  white-space: nowrap;
}
a.runtime-friend-link {
  color: var(--bone-dim);
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: color 0.2s;
}
a.runtime-friend-link:hover {
  color: var(--gold-bright);
  text-decoration: underline;
  text-decoration-color: rgba(184, 147, 74, 0.6);
}
.footer-disclaimer {
  color: rgba(179, 166, 140, 0.7);
  line-height: 1.7;
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  max-width: 70ch;
}
@media (max-width: 980px) {.movie-overview {
    grid-template-columns: minmax(0, 180px) minmax(0, 1fr);
    grid-template-areas:
      "poster info"
      "player player";
    gap: 0.9rem 1rem;
  }
.comment-list {
    grid-template-columns: minmax(0, 1fr);
  }}
@media (max-width: 720px) {body {
    font-size: 14px;
  }
.movie-overview {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "poster"
      "info"
      "player";
    gap: 0.85rem;
  }
.poster-shell {
    max-width: 200px;
    margin: 0 auto;
  }
.detail-list {
    grid-template-columns: max-content minmax(0, 1fr);
  }
.episode-grid {
    grid-template-columns: minmax(0, 1fr);
  }
.recommend-column {
    grid-template-columns: minmax(0, 1fr);
  }
.recommend-title {
    float: none;
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    height: auto;
    border-right: none;
    border-bottom: 1px solid rgba(184, 147, 74, 0.25);
    padding: 0 0 0.3rem;
    margin: 0 0 0.45rem;
    letter-spacing: 0.24em;
  }
.timeline-node {
    width: 130px;
  }}
@media (max-width: 480px) {.episode-title, .episode-number {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
  }
.episode-card {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "num"
      "title"
      "summary"
      "dur";
    gap: 0.2rem;
  }
.episode-number {
    border-right: none;
    border-bottom: 1px solid rgba(184, 147, 74, 0.25);
    padding: 0 0 0.2rem;
    letter-spacing: 0.14em;
  }
.comment-nickname {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    border-left: none;
    border-bottom: 1px solid rgba(184, 147, 74, 0.25);
    padding: 0 0 0.2rem;
    letter-spacing: 0.12em;
  }
.comment-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.3rem;
  }
a.recommend-card {
    grid-template-columns: 50px minmax(0, 1fr);
  }}
@media (min-width: 1200px) {.episode-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }}

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}
