*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  background-color: #0c1117;
  background-image:
    radial-gradient(circle at 18% -6%, rgba(120, 160, 190, 0.16), transparent 42%),
    radial-gradient(circle at 88% 4%, rgba(46, 92, 78, 0.22), transparent 46%),
    linear-gradient(180deg, #0e151d 0%, #0b1016 55%, #090d12 100%);
  color: #c8d2da;
  font-family: "Songti SC", "SimSun", "Noto Serif CJK SC", "Source Han Serif SC", Georgia, serif;
  font-size: 15px;
  line-height: 1.65;
  min-height: 100vh;
}
h1, h2, h3, p, figure, figcaption, dl, dd, ol {
  margin: 0;
  padding: 0;
}
ol { list-style: none; }
img, video {
  display: block;
  max-width: 100%;
}
a {
  color: #8fb6c9;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(180deg, rgba(9, 14, 20, 0.96), rgba(9, 14, 20, 0.82));
  border-bottom: 1px solid rgba(126, 158, 176, 0.22);
  backdrop-filter: blur(8px);
}
.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.site-logo {
  font-family: "Kaiti SC", "STKaiti", "KaiTi", "Songti SC", serif;
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #e9c37a;
  text-decoration: none;
  text-shadow: 0 0 14px rgba(233, 195, 122, 0.28);
  white-space: nowrap;
}
a[data-contract="site-name"] {
  color: #e9c37a;
  text-decoration: none;
}
a[data-contract="site-name"]:hover {
  color: #f6d99b;
  text-decoration: none;
}
.category-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
a.runtime-category {
  display: inline-block;
  white-space: nowrap;
  padding: 3px 11px;
  border: 1px solid rgba(140, 172, 190, 0.32);
  border-radius: 999px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: #b6c8d3;
  text-decoration: none;
  background: rgba(24, 38, 48, 0.55);
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
a.runtime-category:hover {
  color: #f0d49a;
  border-color: rgba(233, 195, 122, 0.6);
  background: rgba(46, 60, 62, 0.7);
  text-decoration: none;
}
.movie-detail-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 16px 40px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.section-title {
  position: relative;
  font-family: "Kaiti SC", "STKaiti", "KaiTi", "Songti SC", serif;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #e4d3ac;
  padding-left: 13px;
  margin-bottom: 12px;
}
.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.28em;
  bottom: 0.28em;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, #e9c37a, rgba(233, 195, 122, 0.15));
}
.hero-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 16px;
  border: 1px solid rgba(126, 158, 176, 0.2);
  border-radius: 14px;
  background:
    linear-gradient(160deg, rgba(30, 46, 58, 0.62), rgba(14, 24, 30, 0.72) 52%, rgba(18, 34, 32, 0.6));
  box-shadow: 0 18px 40px -28px rgba(0, 0, 0, 0.9);
}
.hero-backdrop {
  display: grid;
  grid-template-columns: minmax(0, 168px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.hero-media {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(140, 172, 190, 0.3);
  box-shadow: 0 10px 26px -16px rgba(0, 0, 0, 0.95);
  align-self: start;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 88%, rgba(233, 195, 122, 0.18), transparent 62%),
    linear-gradient(180deg, rgba(10, 16, 22, 0.05), rgba(8, 13, 18, 0.55));
}
.poster-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}
.hero-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.movie-title {
  font-family: "Kaiti SC", "STKaiti", "KaiTi", "Songti SC", serif;
  font-size: clamp(1.3rem, 3.4vw, 1.95rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.3;
  color: #f2e4c4;
  text-shadow: 0 0 22px rgba(233, 195, 122, 0.2);
}
.movie-tagline {
  font-family: "Kaiti SC", "STKaiti", "KaiTi", serif;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  color: #d9b877;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(126, 158, 176, 0.18);
}
.movie-seo-desc {
  font-size: 0.88rem;
  line-height: 1.75;
  color: #a9b8c3;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-actions {
  margin-top: 2px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.btn-play {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  color: #1a1206;
  background: linear-gradient(135deg, #f0cf8b, #d7a24e);
  border: 1px solid rgba(255, 236, 194, 0.55);
  box-shadow: 0 10px 22px -14px rgba(233, 195, 122, 0.9);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}
.btn-play::before {
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 0 5px 9px;
  border-color: transparent transparent transparent #1a1206;
}
.btn-play:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 14px 26px -14px rgba(233, 195, 122, 1);
}
.btn-play.is-active {
  background: linear-gradient(135deg, #cfa964, #a87c34);
  color: #120c03;
}
.player-shell {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(126, 158, 176, 0.26);
  background: #05080b;
  box-shadow: 0 16px 34px -24px rgba(0, 0, 0, 0.95);
}
.movie-player {
  display: block;
  width: 100%;
  background: #05080b;
}
.player-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 10px;
  border-top: 1px solid rgba(126, 158, 176, 0.18);
  background: linear-gradient(180deg, rgba(16, 26, 34, 0.9), rgba(10, 17, 23, 0.95));
}
.ctrl-btn {
  padding: 4px 12px;
  border-radius: 6px;
  border: 1px solid rgba(140, 172, 190, 0.28);
  background: rgba(30, 46, 58, 0.6);
  color: #b8c8d3;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}
.ctrl-btn:hover {
  color: #f0d49a;
  border-color: rgba(233, 195, 122, 0.55);
  background: rgba(48, 62, 66, 0.75);
}
.ctrl-btn.is-active, .ctrl-btn.click {
  color: #1a1206;
  background: linear-gradient(135deg, #eccb89, #cf9c46);
  border-color: rgba(255, 236, 194, 0.6);
}
.ctrl-progress { min-width: 62px; }
.player-shell.theater-mode {
  border-color: rgba(233, 195, 122, 0.5);
  box-shadow: 0 0 0 1px rgba(233, 195, 122, 0.25), 0 22px 44px -26px rgba(0, 0, 0, 1);
}
.player-shell.fullscreen, .player-shell.pip {
  border-radius: 0;
}
.movie-detail-page.lights-off {
  filter: brightness(0.62) saturate(0.85);
  transition: filter 0.3s ease;
}
.movie-detail-page.lights-off .player-shell {
  filter: brightness(1.55) saturate(1.05);
}
.cast-section {
  border-top: 1px solid rgba(126, 158, 176, 0.18);
  padding-top: 14px;
}
.cast-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(96px, 1fr);
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(233, 195, 122, 0.4) transparent;
}
.cast-strip::-webkit-scrollbar { height: 6px; }
.cast-strip::-webkit-scrollbar-thumb {
  background: rgba(233, 195, 122, 0.35);
  border-radius: 3px;
}
.cast-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  padding: 8px 6px;
  border: 1px solid rgba(126, 158, 176, 0.16);
  border-radius: 10px;
  background: rgba(20, 32, 40, 0.45);
  align-self: start;
}
.cast-avatar-wrap {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(150deg, rgba(233, 195, 122, 0.75), rgba(70, 110, 118, 0.5));
  display: flex;
  align-items: center;
  justify-content: center;
}
.cast-avatar {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 34%, rgba(214, 226, 232, 0.85) 0 18%, transparent 19%),
    radial-gradient(circle at 50% 96%, rgba(150, 176, 188, 0.7) 0 42%, transparent 43%),
    linear-gradient(180deg, #223640, #101b22);
}
.cast-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #dfe7ec;
  letter-spacing: 0.04em;
}
.cast-role {
  font-size: 0.72rem;
  color: #d3ae6d;
  letter-spacing: 0.04em;
}
.synopsis-section {
  border-top: 1px solid rgba(126, 158, 176, 0.18);
  padding-top: 14px;
}
.synopsis-body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 8px 22px;
  align-items: start;
}
.synopsis-para {
  font-size: 0.87rem;
  line-height: 1.8;
  color: #a7b6c1;
  text-indent: 2em;
}
.synopsis-para:first-child::first-letter {
  color: #e9c37a;
}
.episode-status-section {
  border-top: 1px solid rgba(126, 158, 176, 0.18);
  padding-top: 14px;
}
.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.status-chip {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  border: 1px solid rgba(126, 158, 176, 0.3);
  color: #b6c8d3;
  background: rgba(22, 36, 44, 0.6);
}
.status-current {
  color: #f0d49a;
  border-color: rgba(233, 195, 122, 0.55);
  background: rgba(64, 52, 24, 0.5);
  box-shadow: inset 0 0 14px -6px rgba(233, 195, 122, 0.7);
}
.details-section {
  border-top: 1px solid rgba(126, 158, 176, 0.18);
  padding-top: 14px;
}
.details-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px;
  background: rgba(126, 158, 176, 0.14);
  border: 1px solid rgba(126, 158, 176, 0.16);
  border-radius: 10px;
  overflow: hidden;
}
.detail-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(16, 26, 33, 0.86);
}
.detail-key {
  flex: 0 0 auto;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: #7f96a3;
}
.detail-key::after {
  content: "";
}
.detail-value {
  margin: 0;
  font-size: 0.83rem;
  color: #dbe4ea;
  letter-spacing: 0.02em;
  min-width: 0;
}
.timeline-section {
  padding: 16px;
  border: 1px solid rgba(126, 158, 176, 0.2);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(18, 30, 38, 0.7), rgba(12, 20, 26, 0.7));
}
.timeline-list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 18px;
}
.timeline-list::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(180deg, rgba(233, 195, 122, 0.75), rgba(233, 195, 122, 0.08));
}
.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(64px, auto) minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.015);
  transition: background 0.16s ease;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 0.85em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e9c37a;
  box-shadow: 0 0 10px rgba(233, 195, 122, 0.85);
}
.timeline-item:hover {
  background: rgba(233, 195, 122, 0.07);
}
.timeline-timecode {
  font-family: "Kaiti SC", "STKaiti", "KaiTi", serif;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: #e0b96f;
  white-space: nowrap;
}
.timeline-label {
  font-size: 0.86rem;
  color: #b9c7d1;
  line-height: 1.6;
}
.episodes-section {
  padding: 16px;
  border: 1px solid rgba(126, 158, 176, 0.2);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(18, 30, 38, 0.55), rgba(12, 20, 26, 0.6));
}
.episode-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-items: start;
}
.episode-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 9px 11px;
  border: 1px solid rgba(126, 158, 176, 0.2);
  border-radius: 10px;
  background: rgba(22, 35, 43, 0.55);
  transition: border-color 0.16s ease, transform 0.16s ease, background 0.16s ease;
}
.episode-card:hover {
  border-color: rgba(233, 195, 122, 0.45);
  background: rgba(30, 44, 50, 0.7);
  transform: translateY(-1px);
}
.episode-title {
  font-family: "Kaiti SC", "STKaiti", "KaiTi", serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: #e6d6b0;
  letter-spacing: 0.05em;
}
.episode-summary {
  font-size: 0.79rem;
  line-height: 1.65;
  color: #9fb0bc;
}
.episode-duration {
  align-self: flex-start;
  margin-top: 2px;
  padding: 1px 9px;
  border-radius: 999px;
  border: 1px solid rgba(126, 158, 176, 0.26);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: #8fa6b3;
}
.comments-section {
  padding: 16px;
  border: 1px solid rgba(126, 158, 176, 0.2);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(18, 30, 38, 0.5), rgba(12, 20, 26, 0.6));
}
.comment-stack {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 8px;
  align-items: start;
}
.comment-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 9px 11px;
  border: 1px solid rgba(126, 158, 176, 0.18);
  border-left: 2px solid rgba(233, 195, 122, 0.55);
  border-radius: 4px 10px 10px 4px;
  background: rgba(21, 34, 42, 0.6);
  box-shadow: 0 10px 22px -20px rgba(0, 0, 0, 0.95);
}
.comment-card:nth-child(even) {
  background: rgba(26, 40, 44, 0.6);
  border-left-color: rgba(140, 180, 170, 0.6);
}
.comment-nickname {
  font-family: "Kaiti SC", "STKaiti", "KaiTi", serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #e0b96f;
}
.comment-text {
  font-size: 0.82rem;
  line-height: 1.72;
  color: #aab9c4;
}
.recommend-region {
  padding: 16px;
  border: 1px solid rgba(126, 158, 176, 0.2);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(18, 30, 38, 0.5), rgba(12, 20, 26, 0.6));
}
.region-classic {
  border-top: 2px solid rgba(233, 195, 122, 0.45);
}
.region-jinyong {
  border-top: 2px solid rgba(120, 180, 168, 0.45);
}
.region-romance {
  border-top: 2px solid rgba(180, 140, 190, 0.45);
}
.recommend-column {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
  gap: 8px;
  align-items: start;
}
a.recommend-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border: 1px solid rgba(126, 158, 176, 0.18);
  border-radius: 10px;
  background: rgba(22, 35, 43, 0.55);
  color: #c8d2da;
  text-decoration: none;
  transition: border-color 0.16s ease, transform 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}
a.recommend-card:hover {
  border-color: rgba(233, 195, 122, 0.55);
  background: rgba(30, 44, 50, 0.75);
  transform: translateY(-2px);
  box-shadow: 0 14px 26px -20px rgba(0, 0, 0, 1);
  text-decoration: none;
}
[data-runtime="recommendation"] img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 7px;
  border: 1px solid rgba(126, 158, 176, 0.16);
  background: #0d151b;
}
.recommend-pic {
  display: block;
}
.recommend-name {
  font-family: "Kaiti SC", "STKaiti", "KaiTi", serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #e2d3ae;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.recommend-blurb {
  font-size: 0.75rem;
  line-height: 1.6;
  color: #93a5b1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.site-footer {
  border-top: 1px solid rgba(126, 158, 176, 0.2);
  background: linear-gradient(180deg, rgba(10, 16, 22, 0.8), rgba(7, 11, 15, 0.95));
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}
a[data-contract="footer-home"], a[data-contract="footer-sitemap"] {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: #a9bcc7;
  text-decoration: none;
  border-bottom: 1px solid rgba(140, 172, 190, 0.3);
  padding-bottom: 1px;
  transition: color 0.16s ease, border-color 0.16s ease;
}
a[data-contract="footer-home"]:hover, a[data-contract="footer-sitemap"]:hover {
  color: #f0d49a;
  border-color: rgba(233, 195, 122, 0.7);
  text-decoration: none;
}
.friend-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  font-size: 0.76rem;
  line-height: 1.9;
}
.friend-links-label {
  color: #7f96a3;
  letter-spacing: 0.08em;
}
a.runtime-friend-link {
  color: #93a9b6;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.16s ease;
}
a.runtime-friend-link:hover {
  color: #e9c37a;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-disclaimer {
  font-size: 0.73rem;
  line-height: 1.7;
  color: #6d7f8b;
  border-top: 1px dashed rgba(126, 158, 176, 0.16);
  padding-top: 9px;
  max-width: 78ch;
}
@media (max-width: 900px) {.episode-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }}
@media (max-width: 720px) {.hero-backdrop {
    grid-template-columns: minmax(0, 132px) minmax(0, 1fr);
    gap: 12px;
  }
.movie-seo-desc {
    -webkit-line-clamp: 6;
  }
.synopsis-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
.details-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
.timeline-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }}
@media (max-width: 560px) {body {
    font-size: 14px;
  }
.movie-detail-page {
    padding: 14px 12px 32px;
    gap: 20px;
  }
.hero-panel, .timeline-section, .episodes-section, .comments-section, .recommend-region {
    padding: 12px;
  }
.hero-backdrop {
    grid-template-columns: minmax(0, 104px) minmax(0, 1fr);
    gap: 10px;
  }
.movie-seo-desc {
    -webkit-line-clamp: 4;
    font-size: 0.82rem;
  }
.episode-grid {
    grid-template-columns: minmax(0, 1fr);
  }
.details-list {
    grid-template-columns: minmax(0, 1fr);
  }
.comment-stack, .recommend-column {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
.cast-strip {
    grid-auto-columns: minmax(84px, 1fr);
  }
.ctrl-btn {
    padding: 4px 9px;
    font-size: 0.72rem;
  }}
@media (max-width: 380px) {.comment-stack, .recommend-column {
    grid-template-columns: 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}
