*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Songti SC", "SimSun", "Noto Serif CJK SC", serif;
  background: #e9e4d8; 
  color: #3a3a34;
  line-height: 1.65;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(255, 250, 240, 0.4) 0%, transparent 60%),
    radial-gradient(circle at 80% 70%, rgba(160, 140, 110, 0.08) 0%, transparent 50%);
  background-attachment: fixed;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.05;
  
}
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(233, 228, 216, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(90, 80, 70, 0.12);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
a[data-contract="site-name"] {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #5a6b52; 
  font-family: "Kaiti SC", "STKaiti", "KaiTi", serif;
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}
a[data-contract="site-name"]:hover { color: #3f4d38; }
nav[data-contract="categories"] {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.runtime-category {
  display: inline-block;
  padding: 4px 16px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid #5a6b52;
  color: #5a6b52;
  font-size: 13px;
  line-height: 1.6;
  white-space: nowrap;
  transition: all 0.2s ease;
  text-decoration: none;
}
.runtime-category:hover {
  background: #5a6b52;
  color: #f5f2ea;
}
.player-section {
  padding: 18px 24px 8px;
  max-width: 1200px;
  margin: 0 auto;
}
.player-wrapper {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #1a1a17;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  width: 100%;
  min-width: 0;
  
}
.player-wrapper video {
  display: block;
  width: 100%;
  height: auto;
  background: #000;
}
.player-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  opacity: 0;
  transition: opacity 0.3s;
  flex-wrap: wrap;
}
.player-wrapper:hover .player-controls, .player-wrapper:focus-within .player-controls { opacity: 1; }
.player-controls button {
  background: rgba(255,255,255,0.15);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  color: #f0ede4;
  border: 1px solid rgba(255,255,255,0.2);
  transition: background 0.2s;
  white-space: nowrap;
}
.player-controls button:hover { background: rgba(255,255,255,0.3); }
.progress-bar {
  flex: 1 1 auto;
  min-width: 60px;
  height: 6px;
  background: rgba(255,255,255,0.25);
  border-radius: 3px;
  position: relative;
  cursor: pointer;
  margin: 0 8px;
}
.progress-bar::after {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 35%;
  height: 100%;
  background: #c2b49a;
  border-radius: 3px;
}
.player-wrapper.theater-mode {
  border-radius: 0;
  box-shadow: none;
}
.player-wrapper.lights-off video {
  filter: brightness(0.6) saturate(0.9);
}
.movie-overview-section {
  padding: 12px 24px 4px;
  max-width: 1200px;
  margin: 0 auto;
}
.movie-info-panel {
  display: flex;
  gap: 22px;
  background: #f2efe7;
  border-radius: 20px;
  padding: 22px 22px 26px;
  box-shadow: 0 4px 18px rgba(90, 80, 60, 0.12);
  border: 1px solid rgba(120, 110, 90, 0.1);
  align-items: flex-start;
  flex-wrap: wrap;
}
.poster-wrapper {
  flex: 0 0 220px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(60, 50, 30, 0.2);
  background: #e0dbce;
  
  aspect-ratio: 2 / 3;
  align-self: flex-start;
}
.poster-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.movie-info-content {
  flex: 1 1 380px;
  min-width: 260px;
}
.hero-title {
  font-family: "Kaiti SC", "STKaiti", "KaiTi", serif;
  font-size: 24px;
  font-weight: 600;
  color: #3f4d38;
  letter-spacing: 1px;
  margin-bottom: 4px;
  line-height: 1.4;
}
.hero-tagline {
  font-size: 14px;
  color: #7a7769;
  font-style: italic;
  margin-bottom: 16px;
  border-left: 3px solid #a3b18a;
  padding-left: 12px;
  font-family: "Kaiti SC", "STKaiti", serif;
}
.section-title {
  font-family: "Kaiti SC", "STKaiti", "KaiTi", serif;
  font-size: 18px;
  font-weight: 600;
  color: #5a6b52;
  margin: 18px 0 8px;
  letter-spacing: 2px;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 60%;
  height: 2px;
  background: #a3b18a;
  border-radius: 1px;
}
.synopsis-block { margin-top: 4px; }
.synopsis-paragraph {
  font-size: 14px;
  color: #4a4a42;
  margin-bottom: 8px;
  text-indent: 2em;
  line-height: 1.8;
}
.cast-block { margin-top: 4px; }
.cast-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 8px;
}
.cast-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 6px 6px;
  border-radius: 14px;
  background: rgba(255, 250, 240, 0.6);
  border: 1px solid rgba(140, 130, 110, 0.12);
}
.cast-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  overflow: hidden;
  background: #d8d2c2;
  border: 2px solid #c2b49a;
}
.cast-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cast-name {
  font-size: 13px;
  color: #4a4a42;
  text-align: center;
  font-weight: 500;
}
.episode-status-block { margin-top: 4px; }
.episode-status-grid {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.status-item {
  background: #e3ded2;
  border-radius: 999px;
  padding: 3px 14px;
  font-size: 13px;
  color: #5a5a4e;
  border: 1px solid rgba(120, 110, 90, 0.15);
}
.details-block { margin-top: 4px; }
.details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 20px;
  margin-top: 8px;
}
.detail-item {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed rgba(120, 110, 90, 0.2);
  padding: 4px 0;
  font-size: 14px;
}
.detail-label { color: #8a8577; flex-shrink: 0; margin-right: 12px; }
.detail-value { color: #3f3f38; text-align: right; }
.timeline-section {
  padding: 8px 24px;
  max-width: 1000px;
  margin: 0 auto;
}
.timeline-section .section-title { display: block; margin-left: 8px; }
.timeline-container {
  position: relative;
  padding: 12px 0;
  margin-top: 8px;
}
.timeline-line {
  position: absolute;
  left: 80px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #a3b18a, #c2b49a);
  border-radius: 2px;
  opacity: 0.6;
}
.timeline-item {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 8px 0;
  margin-left: 20px;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: 52px;
  top: 18px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #5a6b52;
  border: 2px solid #f2efe7;
  box-shadow: 0 0 0 2px #a3b18a;
  z-index: 1;
}
.timeline-timecode {
  flex: 0 0 48px;
  text-align: right;
  font-size: 13px;
  font-weight: 600;
  color: #5a6b52;
  font-family: "Kaiti SC", serif;
}
.timeline-label {
  font-size: 14px;
  color: #4a4a42;
  line-height: 1.5;
  padding-left: 24px;
  border-left: 1px solid rgba(120, 110, 90, 0.2);
}
.episodes-section {
  padding: 8px 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.episodes-section .section-title { display: block; }
.episodes-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 14px 4px 18px;
  scrollbar-width: thin;
  scrollbar-color: #b5a88e transparent;
}
.episodes-scroll::-webkit-scrollbar { height: 6px; }
.episodes-scroll::-webkit-scrollbar-thumb { background: #b5a88e; border-radius: 3px; }
.episode-card {
  flex: 0 0 210px;
  background: #f2efe7;
  border-radius: 16px;
  padding: 14px;
  border: 1px solid rgba(120, 110, 90, 0.14);
  box-shadow: 0 2px 8px rgba(60, 50, 30, 0.08);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.episode-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(60, 50, 30, 0.14);
}
.episode-number {
  font-size: 12px;
  color: #5a6b52;
  font-weight: 700;
  background: #e3ded2;
  border-radius: 999px;
  padding: 2px 10px;
  align-self: flex-start;
  font-family: "Kaiti SC", serif;
}
.episode-title {
  font-size: 16px;
  color: #3f4d38;
  font-weight: 600;
  font-family: "Kaiti SC", "STKaiti", serif;
}
.episode-summary {
  font-size: 13px;
  color: #6a6a5e;
  line-height: 1.5;
  flex: 1;
}
.episode-duration {
  font-size: 12px;
  color: #8a8577;
  border-top: 1px dashed rgba(120, 110, 90, 0.2);
  padding-top: 4px;
  margin-top: 4px;
}
.comments-section {
  padding: 8px 24px;
  max-width: 1000px;
  margin: 0 auto;
}
.comments-section .section-title { display: block; }
.comments-masonry {
  column-count: 2;
  column-gap: 16px;
  margin-top: 10px;
}
.comment-card {
  break-inside: avoid;
  margin-bottom: 14px;
  background: #f7f4ec;
  border-radius: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(140, 130, 110, 0.18);
  transform: rotate(-0.6deg);
  box-shadow: 2px 3px 8px rgba(60, 50, 30, 0.1);
  transition: transform 0.2s;
}
.comment-card:nth-child(even) { transform: rotate(0.8deg); }
.comment-card:hover { transform: rotate(0deg) translateY(-2px); }
.comment-nickname {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #5a6b52;
  margin-bottom: 6px;
  font-family: "Kaiti SC", serif;
}
.comment-text {
  font-size: 14px;
  color: #4a4a42;
  line-height: 1.6;
}
.recommendation-section {
  padding: 8px 24px 4px;
  max-width: 1200px;
  margin: 0 auto;
}
.recommendation-title {
  font-family: "Kaiti SC", "STKaiti", serif;
  font-size: 18px;
  color: #5a6b52;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 6px;
  display: block;
}
.recommendation-row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 12px 4px 16px;
  scrollbar-width: thin;
  scrollbar-color: #b5a88e transparent;
}
.recommendation-row::-webkit-scrollbar { height: 6px; }
.recommendation-row::-webkit-scrollbar-thumb { background: #b5a88e; border-radius: 3px; }
a[data-runtime="recommendation"] {
  flex: 0 0 200px;
  background: #f2efe7;
  border-radius: 16px;
  padding: 10px;
  border: 1px solid rgba(120, 110, 90, 0.14);
  box-shadow: 0 2px 10px rgba(60, 50, 30, 0.06);
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #3f3f38;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  font-size: 14px;
}
a[data-runtime="recommendation"]:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(60, 50, 30, 0.14);
}
a[data-runtime="recommendation"] img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 10px;
  background: #d8d2c2;
}
a[data-runtime="recommendation"] span[data-runtime="name"] {
  font-weight: 600;
  color: #3f4d38;
  font-family: "Kaiti SC", serif;
}
a[data-runtime="recommendation"] span[data-runtime="blurb"] {
  font-size: 13px;
  color: #6a6a5e;
  line-height: 1.4;
  flex: 1;
}
footer {
  background: #e3ded2;
  border-top: 1px solid rgba(90, 80, 70, 0.15);
  margin-top: 20px;
  padding: 20px 24px 30px;
}
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-content p {
  font-size: 12px;
  color: #7a7769;
  line-height: 1.5;
}
.footer-nav {
  display: flex;
  gap: 20px;
  font-size: 14px;
  flex-wrap: wrap;
}
a[data-contract="footer-home"], a[data-contract="footer-sitemap"] {
  color: #5a6b52;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
  border-bottom: 1px solid transparent;
}
a[data-contract="footer-home"]:hover, a[data-contract="footer-sitemap"]:hover {
  color: #3f4d38;
  border-bottom-color: #5a6b52;
}
nav[data-contract="friend-links"] {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
  border-top: 1px solid rgba(90, 80, 70, 0.1);
  padding-top: 12px;
}
.friend-links-label {
  font-size: 13px;
  color: #8a8577;
  margin-right: 4px;
  white-space: nowrap;
}
a.runtime-friend-link {
  font-size: 13px;
  color: #5a6b52;
  text-decoration: none;
  border-bottom: 1px dotted #a3b18a;
  transition: color 0.2s;
  white-space: nowrap;
}
a.runtime-friend-link:hover {
  color: #3f4d38;
  border-bottom-color: #3f4d38;
}
@media (max-width: 900px) {.movie-info-panel { flex-direction: column; }
.poster-wrapper { flex: 0 0 auto; width: 180px; aspect-ratio: 2/3; }
.cast-grid { grid-template-columns: repeat(3, 1fr); }
.details-grid { grid-template-columns: 1fr; }
.timeline-line { left: 60px; }
.timeline-item { margin-left: 10px; }
.timeline-item::before { left: 40px; }
.timeline-timecode { flex-basis: 36px; }}
@media (max-width: 600px) {body { font-size: 14px; }
header { padding: 8px 14px; }
.player-section, .movie-overview-section, .timeline-section, .episodes-section, .comments-section, .recommendation-section { padding-left: 12px; padding-right: 12px; }
.movie-info-panel { padding: 14px; }
.hero-title { font-size: 20px; }
.cast-grid { grid-template-columns: repeat(2, 1fr); }
.cast-avatar { width: 60px; height: 60px; }
.comments-masonry { column-count: 1; }
.timeline-line { left: 40px; }
.timeline-item { display: block; padding-left: 40px; margin-left: 0; position: relative; }
.timeline-item::before { left: 2px; top: 16px; }
.timeline-timecode { display: block; text-align: left; margin-bottom: 2px; }
.timeline-label { display: block; padding-left: 0; border-left: none; line-height: 1.4; }
.player-controls { flex-wrap: wrap; opacity: 1; background: rgba(0,0,0,0.5); }
.player-controls button { font-size: 11px; padding: 3px 8px; }
.progress-bar { min-width: 50px; }
.episode-card { flex-basis: 160px; }
a[data-runtime="recommendation"] { flex-basis: 150px; }
a[data-runtime="recommendation"] img { height: 100px; }
.footer-content { padding: 0 4px; }}
.player-section, .player-wrapper { min-width: 0; }
.player-wrapper { width: 100%; }
@media (max-width: 480px) {.player-wrapper { min-width: 0; width: 100%; }}

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}
