*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: #0A0A0A;
  color: #D8C3A5;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-weight: 300;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { background: none; border: none; color: inherit; font: inherit; cursor: pointer; }
h1, h2, .film-title, .panel-heading, .rec-title, .site-brand {
  font-family: "Songti SC", "SimSun", "STSong", serif;
  font-weight: 600;
  letter-spacing: 0.02em;
}
header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px 24px;
  border-bottom: 1px solid rgba(184, 115, 51, 0.4);
  background: linear-gradient(180deg, #141210 0%, #0A0A0A 100%);
  position: sticky;
  top: 0;
  z-index: 100;
  flex-wrap: wrap;
}
.site-brand {
  color: #D8C3A5;
  font-size: 18px;
  letter-spacing: 0.1em;
  white-space: nowrap;
  border-right: 1px solid rgba(184, 115, 51, 0.3);
  padding-right: 24px;
}
.site-brand:hover { color: #B87333; text-decoration: underline; }
.category-strip {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  flex: 1;
  padding: 2px 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(184,115,51,0.3) transparent;
}
.category-strip::-webkit-scrollbar { height: 3px; }
.category-strip::-webkit-scrollbar-thumb { background: rgba(184,115,51,0.3); border-radius: 2px; }
.runtime-category {
  color: #B87333;
  font-size: 12px;
  padding: 4px 10px;
  border: 1px solid rgba(184, 115, 51, 0.2);
  border-radius: 2px;
  white-space: nowrap;
  background: rgba(184, 115, 51, 0.05);
  transition: background 0.2s, color 0.2s;
}
.runtime-category:hover {
  background: rgba(184, 115, 51, 0.15);
  color: #E6D3B8;
  text-decoration: underline;
}
main {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 16px 40px;
}
.film-archive {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 0;
  background: linear-gradient(180deg, #141210 0%, #0F0D0B 40%, #0A0A0A 100%);
  border: 1px solid rgba(184, 115, 51, 0.25);
  border-radius: 4px;
  margin: 16px 0 24px;
  position: relative;
  overflow: hidden;
}
.film-archive::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent 0px,
    transparent 14px,
    rgba(216,195,165,0.02) 14px,
    rgba(216,195,165,0.02) 16px
  );
  pointer-events: none;
  z-index: 1;
}
.film-archive::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 8px;
  background: repeating-linear-gradient(
    90deg,
    #B87333 0px,
    #B87333 6px,
    #0A0A0A 6px,
    #0A0A0A 12px
  );
  opacity: 0.2;
  pointer-events: none;
  z-index: 2;
}
.poster-sheen {
  position: relative;
  grid-row: 1;
  grid-column: 1;
  min-height: 0;
  overflow: hidden;
  background: #0A0A0A;
}
.poster-sheen::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: 0; width: 18px;
  background: repeating-linear-gradient(
    180deg,
    transparent 0px,
    transparent 8px,
    #0A0A0A 8px,
    #0A0A0A 14px
  );
  z-index: 3;
  pointer-events: none;
  opacity: 0.8;
}
.poster-sheen::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  right: 0; width: 18px;
  background: repeating-linear-gradient(
    180deg,
    transparent 0px,
    transparent 8px,
    #0A0A0A 8px,
    #0A0A0A 14px
  );
  z-index: 3;
  pointer-events: none;
  opacity: 0.8;
}
.main-poster-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 2 / 3;
  filter: sepia(0.35) contrast(1.05) brightness(0.9);
}
.poster-sheen {
  background: linear-gradient(135deg, rgba(184,115,51,0.15) 0%, transparent 40%);
}
.archive-meta {
  grid-column: 2;
  grid-row: 1;
  padding: 24px 20px 20px;
  border-left: 1px solid rgba(184, 115, 51, 0.2);
  background: rgba(10,10,10,0.6);
  backdrop-filter: blur(2px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.film-title {
  font-size: 22px;
  line-height: 1.3;
  color: #E6D3B8;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(184, 115, 51, 0.3);
  padding-bottom: 8px;
}
.film-tagline {
  font-size: 13px;
  color: #B87333;
  font-style: italic;
  letter-spacing: 0.08em;
}
.cast-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  align-items: start;
}
.cast-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8px 4px;
  border: 1px solid rgba(216, 195, 165, 0.1);
  border-radius: 2px;
  background: rgba(216, 195, 165, 0.03);
  transition: border-color 0.2s, background 0.2s;
}
.cast-card:hover {
  border-color: rgba(184, 115, 51, 0.4);
  background: rgba(184, 115, 51, 0.08);
}
.avatar-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #B87333 0%, #8B5E3C 100%);
  color: #0A0A0A;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
  border: 2px solid rgba(10,10,10,0.8);
  box-shadow: 0 0 0 1px rgba(184,115,51,0.3);
}
.role-name {
  font-size: 13px;
  font-weight: 400;
  color: #D8C3A5;
}
.character-label {
  font-size: 11px;
  color: rgba(216, 195, 165, 0.6);
  margin-top: 2px;
}
.synopsis-panel {
  border-top: 1px solid rgba(216, 195, 165, 0.1);
  padding-top: 12px;
}
.panel-heading {
  font-size: 15px;
  color: #B87333;
  letter-spacing: 0.15em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.panel-heading::before {
  content: "";
  width: 3px;
  height: 14px;
  background: #B87333;
  display: inline-block;
}
.synopsis-panel p {
  font-size: 13px;
  color: rgba(216, 195, 165, 0.8);
  margin-bottom: 8px;
  line-height: 1.6;
  text-align: justify;
}
.episode-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #B87333;
  border-top: 1px solid rgba(216, 195, 165, 0.1);
  padding-top: 10px;
  flex-wrap: wrap;
}
.current-episode {
  font-weight: 400;
  color: #E6D3B8;
}
.episode-divider {
  color: rgba(216, 195, 165, 0.4);
}
.total-length {
  color: rgba(216, 195, 165, 0.6);
  font-size: 12px;
}
.film-details {
  border-top: 1px solid rgba(216, 195, 165, 0.1);
  padding-top: 10px;
}
.detail-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px 12px;
}
.detail-list > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 3px 0;
  border-bottom: 1px dotted rgba(216, 195, 165, 0.1);
}
.detail-list dt {
  font-size: 11px;
  color: rgba(184, 115, 51, 0.7);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.detail-list dd {
  font-size: 13px;
  color: #D8C3A5;
}
.player-frame {
  grid-column: 1;
  grid-row: 2;
  padding: 16px;
  min-width: 0;
  border-top: 1px solid rgba(184, 115, 51, 0.2);
  background: rgba(10,10,10,0.4);
}
.player-frame video {
  border: 1px solid rgba(184, 115, 51, 0.3);
  border-radius: 2px;
}
.player-frame video.theater-mode {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: contain;
  background: #000;
  z-index: 200;
}
.control-bar {
  display: flex;
  gap: 4px;
  padding: 8px 4px 0;
  border-top: 1px solid rgba(216, 195, 165, 0.1);
  margin-top: 8px;
}
.ctrl-btn {
  font-size: 12px;
  color: rgba(216, 195, 165, 0.7);
  padding: 4px 8px;
  border: 1px solid rgba(216, 195, 165, 0.15);
  border-radius: 2px;
  transition: all 0.15s;
  min-width: 28px;
  text-align: center;
}
.ctrl-btn:hover {
  color: #B87333;
  border-color: rgba(184, 115, 51, 0.4);
  background: rgba(184, 115, 51, 0.1);
}
body.light-off {
  background: #000;
}
body.light-off .film-archive, body.light-off header, body.light-off .episode-list, body.light-off .timeline-rail, body.light-off .comment-scroll, body.light-off .recommend-block, body.light-off footer {
  filter: brightness(0.35) contrast(1.1);
}
.episode-list {
  margin: 24px 0;
  border: 1px solid rgba(216, 195, 165, 0.15);
  border-radius: 4px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(20,18,16,0.6) 0%, rgba(10,10,10,0.9) 100%);
}
.episode-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 24px;
  margin-top: 8px;
}
.episode-item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  column-gap: 8px;
  align-items: baseline;
  padding: 6px 4px;
  border-bottom: 1px solid rgba(216, 195, 165, 0.08);
  position: relative;
}
.episode-item:hover {
  background: rgba(184, 115, 51, 0.05);
}
.ep-num {
  grid-row: 1 / 3;
  font-size: 16px;
  font-weight: 600;
  color: #B87333;
  font-family: "Songti SC", serif;
  text-align: center;
}
.ep-title {
  font-size: 14px;
  color: #E6D3B8;
  font-weight: 400;
}
.ep-summary {
  grid-column: 2;
  font-size: 12px;
  color: rgba(216, 195, 165, 0.6);
  line-height: 1.4;
  margin-top: 2px;
}
.ep-duration {
  grid-column: 3;
  grid-row: 1 / 3;
  font-size: 11px;
  color: rgba(216, 195, 165, 0.4);
  white-space: nowrap;
  align-self: center;
}
.timeline-rail {
  margin: 24px 0;
  padding: 16px;
  border: 1px solid rgba(216, 195, 165, 0.15);
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(20,18,16,0.6) 0%, rgba(10,10,10,0.9) 100%);
}
.timeline-track {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  margin-top: 16px;
  position: relative;
  padding-top: 8px;
}
.timeline-track::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0; right: 0;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    #B87333 0px,
    #B87333 4px,
    transparent 4px,
    transparent 8px
  );
  opacity: 0.4;
}
.timeline-node {
  position: relative;
  padding: 12px 8px 8px;
  min-width: 0;
}
.timeline-node::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 8px;
  width: 9px;
  height: 9px;
  background: #0A0A0A;
  border: 2px solid #B87333;
  border-radius: 50%;
}
.timecode {
  display: block;
  font-size: 13px;
  color: #B87333;
  font-weight: 600;
  font-family: "Courier New", monospace;
  margin-bottom: 4px;
}
.timeline-label {
  font-size: 12px;
  color: rgba(216, 195, 165, 0.8);
  line-height: 1.4;
}
.comment-scroll {
  margin: 24px 0;
  padding: 16px;
  border: 1px solid rgba(216, 195, 165, 0.15);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(20,18,16,0.6) 0%, rgba(10,10,10,0.9) 100%);
}
.comment-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 12px;
  overflow-x: auto;
}
.comment-card {
  background: rgba(216, 195, 165, 0.03);
  border: 1px solid rgba(216, 195, 165, 0.12);
  border-radius: 3px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100px;
  transition: border-color 0.2s;
}
.comment-card:hover {
  border-color: rgba(184, 115, 51, 0.4);
}
.comment-card blockquote {
  font-size: 12px;
  color: rgba(216, 195, 165, 0.8);
  line-height: 1.5;
  font-style: italic;
  quotes: "“" "”";
}
.comment-card blockquote::before { content: open-quote; color: #B87333; }
.comment-card blockquote::after { content: close-quote; color: #B87333; }
.comment-nick {
  font-size: 11px;
  color: rgba(184, 115, 51, 0.7);
  align-self: flex-end;
  margin-top: 8px;
  letter-spacing: 0.05em;
}
.recommend-block {
  margin: 24px 0;
  padding: 16px;
  border: 1px solid rgba(216, 195, 165, 0.15);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(20,18,16,0.6) 0%, rgba(10,10,10,0.9) 100%);
}
.rec-title {
  font-size: 15px;
  color: #E6D3B8;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(184, 115, 51, 0.2);
  padding-bottom: 8px;
}
.rec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.rec-grid a[data-runtime="recommendation"] {
  display: flex;
  flex-direction: column;
  background: rgba(216, 195, 165, 0.03);
  border: 1px solid rgba(216, 195, 165, 0.1);
  border-radius: 3px;
  padding: 6px;
  transition: border-color 0.2s, background 0.2s;
  min-width: 0;
}
.rec-grid a[data-runtime="recommendation"]:hover {
  border-color: rgba(184, 115, 51, 0.5);
  background: rgba(184, 115, 51, 0.08);
}
.rec-grid a[data-runtime="recommendation"] img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 2px;
  margin-bottom: 6px;
  filter: sepia(0.2) contrast(1.02);
}
.rec-grid a[data-runtime="recommendation"] span[data-runtime="name"] {
  font-size: 13px;
  color: #D8C3A5;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rec-grid a[data-runtime="recommendation"] span[data-runtime="blurb"] {
  font-size: 11px;
  color: rgba(216, 195, 165, 0.6);
  line-height: 1.4;
  margin-top: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rec-grid a[data-runtime="recommendation"] {
  color: #D8C3A5;
  text-decoration: none;
}
.rec-grid a[data-runtime="recommendation"]:hover {
  color: #E6D3B8;
  text-decoration: underline;
  text-decoration-color: rgba(184, 115, 51, 0.5);
}
footer {
  border-top: 1px solid rgba(184, 115, 51, 0.3);
  margin-top: 32px;
  background: linear-gradient(0deg, #141210 0%, #0A0A0A 100%);
}
.footer-meta {
  max-width: 1440px;
  margin: 0 auto;
  padding: 20px 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-meta p {
  font-size: 12px;
  color: rgba(216, 195, 165, 0.5);
  line-height: 1.6;
  max-width: 720px;
}
.footer-meta nav {
  display: flex;
  gap: 16px;
  font-size: 13px;
  align-items: center;
  flex-wrap: wrap;
}
a[data-contract="footer-home"], a[data-contract="footer-sitemap"] {
  color: rgba(216, 195, 165, 0.7);
  text-decoration: none;
  transition: color 0.2s;
}
a[data-contract="footer-home"]:hover, a[data-contract="footer-sitemap"]:hover {
  color: #B87333;
  text-decoration: underline;
}
.friend-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px solid rgba(216, 195, 165, 0.08);
}
.friend-label {
  font-size: 12px;
  color: rgba(184, 115, 51, 0.6);
  letter-spacing: 0.1em;
}
.runtime-friend-link {
  font-size: 12px;
  color: rgba(216, 195, 165, 0.5);
  text-decoration: none;
  padding: 2px 8px;
  border: 1px solid rgba(216, 195, 165, 0.1);
  border-radius: 2px;
  transition: all 0.15s;
}
.runtime-friend-link:hover {
  color: #B87333;
  border-color: rgba(184, 115, 51, 0.5);
  text-decoration: underline;
}
@media (max-width: 1024px) {.film-archive {
    grid-template-columns: 1fr;
  }
.poster-sheen {
    grid-column: 1;
    grid-row: 1;
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
  }
.main-poster-art {
    aspect-ratio: 2 / 3;
  }
.archive-meta {
    grid-column: 1;
    grid-row: 2;
    border-left: none;
    border-top: 1px solid rgba(184, 115, 51, 0.2);
  }
.player-frame {
    grid-column: 1;
    grid-row: 3;
  }
.timeline-track {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 16px;
  }
.comment-track {
    grid-template-columns: repeat(3, 1fr);
  }
.rec-grid {
    grid-template-columns: repeat(2, 1fr);
  }}
@media (max-width: 640px) {header {
    padding: 8px 12px;
    gap: 12px;
  }
.site-brand {
    font-size: 15px;
    padding-right: 12px;
  }
main {
    padding: 0 8px 24px;
  }
.film-archive {
    margin: 8px 0 16px;
  }
.archive-meta {
    padding: 16px 12px;
    gap: 12px;
  }
.film-title {
    font-size: 18px;
  }
.cast-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
  }
.avatar-placeholder {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
.role-name {
    font-size: 12px;
  }
.character-label {
    font-size: 10px;
  }
.detail-list {
    grid-template-columns: 1fr;
  }
.episode-grid {
    grid-template-columns: 1fr;
  }
.episode-item {
    grid-template-columns: 28px minmax(0, 1fr) auto;
  }
.timeline-track {
    grid-template-columns: 1fr;
    gap: 4px;
  }
.timeline-track::before {
    display: none;
  }
.timeline-node {
    padding: 8px;
    border-left: 2px solid rgba(184, 115, 51, 0.4);
    margin-left: 4px;
  }
.timeline-node::before {
    left: -5px;
  }
.comment-track {
    grid-template-columns: 1fr;
    overflow: visible;
  }
.rec-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
.control-bar {
    flex-wrap: wrap;
  }
.player-frame {
    padding: 8px;
  }
.ctrl-btn {
    padding: 4px 6px;
    min-width: 24px;
    font-size: 11px;
  }}

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}
