*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: #0b1a2e;
  color: #cfd8e3;
  line-height: 1.5;
  font-size: 14px;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: rgba(7, 14, 26, 0.92);
  border-bottom: 1px solid rgba(176, 196, 222, 0.12);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(6px);
}
.site-logo {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 2px;
  color: #e8d9b0;
  text-shadow: 0 0 18px rgba(232, 217, 176, 0.35);
  white-space: nowrap;
}
.site-logo:hover { color: #f5ead0; text-decoration: none; }
.category-nav {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
  overflow-x: auto;
  max-width: 70%;
}
.runtime-category {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(176, 196, 222, 0.08);
  border: 1px solid rgba(176, 196, 222, 0.15);
  color: #b8c6d8;
  font-size: 13px;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.runtime-category:hover {
  background: rgba(232, 217, 176, 0.14);
  border-color: rgba(232, 217, 176, 0.4);
  color: #e8d9b0;
}
.moonlit-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 0 32px;
  padding: 48px clamp(20px, 4vw, 56px) 32px;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(140, 180, 220, 0.10) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 90%, rgba(232, 217, 176, 0.06) 0%, transparent 40%),
    linear-gradient(180deg, #0d1f36 0%, #091828 60%, #0b1a2e 100%);
  position: relative;
}
.poster-shadow-wrapper {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  justify-self: center;
  width: 100%;
  max-width: 320px;
  filter: drop-shadow(0 0 24px rgba(180, 200, 230, 0.18));
  border-radius: 12px;
}
.hero-poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(176, 196, 222, 0.18);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}
.title-block {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  padding-bottom: 8px;
}
.film-title {
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 600;
  letter-spacing: 2px;
  color: #e8d9b0;
  text-shadow: 0 0 28px rgba(232, 217, 176, 0.25);
  line-height: 1.3;
}
.tagline {
  margin-top: 8px;
  color: #96a8bd;
  font-style: italic;
  letter-spacing: 1px;
  font-size: 14px;
}
.cast-ribbon {
  grid-column: 2;
  grid-row: 2;
  margin-top: 24px;
}
.section-subhead {
  font-size: 13px;
  font-weight: 500;
  color: #a5b6ca;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
  border-left: 2px solid rgba(232, 217, 176, 0.5);
  padding-left: 10px;
}
.actor-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.actor-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(176, 196, 222, 0.08);
  border-radius: 999px;
  padding: 4px 14px 4px 4px;
  border: 1px solid rgba(176, 196, 222, 0.12);
  transition: border-color 0.2s;
}
.actor-chip:hover { border-color: rgba(232, 217, 176, 0.4); }
.actor-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3a5068, #1d2f44);
  color: #e8d9b0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(232, 217, 176, 0.3);
}
.actor-name { font-size: 13px; color: #c7d3e0; white-space: nowrap; }
.synopsis-panel {
  grid-column: 2;
  grid-row: 3;
  margin-top: 28px;
  background: rgba(176, 196, 222, 0.04);
  border-radius: 12px;
  padding: 18px 20px;
  border: 1px solid rgba(176, 196, 222, 0.08);
}
.synopsis-line {
  font-size: 14px;
  line-height: 1.7;
  color: #b8c6d8;
  margin-bottom: 8px;
}
.synopsis-line:last-child { margin-bottom: 0; }
.episode-progress-info {
  grid-column: 2;
  grid-row: 4;
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.total-badge, .current-badge {
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 1px;
}
.total-badge {
  background: rgba(176, 196, 222, 0.1);
  color: #a5b6ca;
  border: 1px solid rgba(176, 196, 222, 0.15);
}
.current-badge {
  background: rgba(232, 217, 176, 0.12);
  color: #e8d9b0;
  border: 1px solid rgba(232, 217, 176, 0.3);
}
.detail-grid {
  grid-column: 2;
  grid-row: 5;
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 4px 16px;
  background: rgba(176, 196, 222, 0.04);
  border-radius: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(176, 196, 222, 0.08);
}
.detail-item {
  display: flex;
  flex-direction: column;
  padding: 4px 0;
}
.detail-label {
  font-size: 11px;
  color: #7e90a6;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.detail-value {
  font-size: 13px;
  color: #d0dbe7;
}
.accent-star {
  color: #e8d9b0 !important;
  font-weight: 600;
}
.player-wide-wrapper {
  grid-column: 1 / -1;
  grid-row: 6;
  margin-top: 32px;
  background: #0a1626;
  border-radius: 14px;
  border: 1px solid rgba(176, 196, 222, 0.12);
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}
.player-wide-wrapper video {
  display: block;
  width: 100%;
  background: #050c16;
}
.player-wide-wrapper.theater-mode {
  position: fixed;
  inset: 10vh 4vw;
  width: 92vw;
  max-width: none;
  z-index: 200;
  background: #050c16;
  border-radius: 10px;
  padding-bottom: 0;
}
.player-control-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px 12px;
  background: rgba(7, 14, 26, 0.9);
  border-top: 1px solid rgba(176, 196, 222, 0.08);
}
.player-control-bar button {
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  color: #a5b6ca;
  background: rgba(176, 196, 222, 0.06);
  border: 1px solid transparent;
  transition: all 0.15s;
  white-space: nowrap;
}
.player-control-bar button:hover { color: #e8d9b0; background: rgba(232, 217, 176, 0.1); }
.player-control-bar button.active-control {
  color: #e8d9b0;
  border-color: rgba(232, 217, 176, 0.4);
  background: rgba(232, 217, 176, 0.12);
}
body.lights-dim {
  background: #050a12;
}
body.lights-dim .moonlit-hero { background: linear-gradient(180deg, #060e1c 0%, #050a12 100%); }
body.lights-dim .player-wide-wrapper { border-color: rgba(176, 196, 222, 0.04); }
.timeline-section {
  padding: 32px clamp(20px, 4vw, 56px);
  background: #0b1a2e;
}
.section-title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 2px;
  color: #e8d9b0;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(232, 217, 176, 0.15);
  position: relative;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, #e8d9b0, transparent);
}
.timeline-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(232, 217, 176, 0.3) rgba(176, 196, 222, 0.05);
  position: relative;
}
.timeline-scroll::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(232, 217, 176, 0.6), rgba(232, 217, 176, 0.1));
}
.timeline-node {
  flex: 0 0 auto;
  width: 180px;
  padding-top: 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.timeline-node::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #e8d9b0;
  box-shadow: 0 0 12px rgba(232, 217, 176, 0.6);
  border: 2px solid #0b1a2e;
}
.timecode {
  font-size: 13px;
  font-weight: 600;
  color: #e8d9b0;
  letter-spacing: 1px;
}
.timeline-label {
  font-size: 13px;
  color: #9fb1c4;
  line-height: 1.5;
}
.episode-grid-section {
  padding: 24px clamp(20px, 4vw, 56px) 32px;
  background: linear-gradient(180deg, #0b1a2e, #0d1f36);
}
.episode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.episode-card {
  background: rgba(176, 196, 222, 0.06);
  border: 1px solid rgba(176, 196, 222, 0.1);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.2s ease;
  cursor: pointer;
}
.episode-card:hover {
  background: rgba(232, 217, 176, 0.1);
  border-color: rgba(232, 217, 176, 0.35);
  transform: translateY(-2px);
}
.ep-number {
  font-size: 13px;
  color: #e8d9b0;
  font-weight: 500;
  letter-spacing: 1px;
}
.ep-title {
  font-size: 14px;
  color: #d0dbe7;
}
.recommend-block {
  padding: 28px clamp(20px, 4vw, 56px);
  background: #0b1a2e;
}
.recommend-block.alternate-bg {
  background: linear-gradient(180deg, #0b1a2e, #0e2238);
}
.recommend-block.third-bg {
  background: linear-gradient(180deg, #0e2238, #0b1a2e);
}
.recommend-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 16px;
}
.recommend-row a[data-runtime="recommendation"] {
  display: flex;
  flex-direction: column;
  background: rgba(176, 196, 222, 0.05);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(176, 196, 222, 0.08);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: #c7d3e0;
  height: auto;
  align-self: start;
}
.recommend-row a[data-runtime="recommendation"]:hover {
  transform: translateY(-3px);
  border-color: rgba(232, 217, 176, 0.3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.recommend-row a[data-runtime="recommendation"] img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #1d2f44;
}
.recommend-row a[data-runtime="recommendation"] span[data-runtime="name"] {
  padding: 10px 12px 2px;
  font-size: 14px;
  font-weight: 500;
  color: #e0e8f0;
}
.recommend-row a[data-runtime="recommendation"] span[data-runtime="blurb"] {
  padding: 2px 12px 10px;
  font-size: 12px;
  color: #8fa1b5;
  line-height: 1.4;
}
.comments-masonry {
  padding: 32px clamp(20px, 4vw, 56px);
  background: #0d1f36;
}
.comment-grid {
  columns: 3;
  column-gap: 16px;
}
.comment-card {
  break-inside: avoid;
  background: rgba(176, 196, 222, 0.07);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 16px;
  border: 1px solid rgba(176, 196, 222, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.comment-author {
  font-size: 13px;
  font-weight: 600;
  color: #e8d9b0;
  letter-spacing: 0.5px;
}
.comment-text {
  font-size: 14px;
  color: #b8c6d8;
  line-height: 1.6;
}
footer {
  background: #070e1a;
  border-top: 1px solid rgba(176, 196, 222, 0.1);
  padding: 28px clamp(20px, 4vw, 56px) 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.footer-contract {
  display: flex;
  gap: 20px;
}
.footer-contract a {
  font-size: 14px;
  color: #a5b6ca;
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}
.footer-contract a:hover { color: #e8d9b0; text-decoration: underline; }
.friend-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
}
.friend-label {
  font-size: 13px;
  color: #7e90a6;
  letter-spacing: 1px;
  margin-right: 4px;
}
.runtime-friend-link {
  font-size: 13px;
  color: #8fa1b5;
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}
.runtime-friend-link:hover { color: #e8d9b0; text-decoration: underline; }
.disclaimer {
  font-size: 12px;
  color: #5c6f84;
  line-height: 1.6;
  padding-top: 12px;
  border-top: 1px solid rgba(176, 196, 222, 0.08);
}
@media (max-width: 900px) {.moonlit-hero {
    grid-template-columns: 1fr;
    gap: 20px 0;
  }
.poster-shadow-wrapper {
    grid-column: 1;
    grid-row: 1;
    max-width: 260px;
    justify-self: center;
  }
.title-block {
    grid-column: 1;
    grid-row: 2;
    text-align: center;
  }
.cast-ribbon {
    grid-column: 1;
    grid-row: 3;
    text-align: center;
  }
.actor-row { justify-content: center; }
.section-subhead { border-left: none; padding-left: 0; }
.synopsis-panel {
    grid-column: 1;
    grid-row: 4;
  }
.episode-progress-info {
    grid-column: 1;
    grid-row: 5;
    justify-content: center;
  }
.detail-grid {
    grid-column: 1;
    grid-row: 6;
  }
.player-wide-wrapper {
    grid-column: 1;
    grid-row: 7;
  }
.comment-grid {
    columns: 2;
  }}
@media (max-width: 600px) {header {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 16px;
  }
.category-nav { max-width: 100%; width: 100%; }
.moonlit-hero { padding: 24px 16px 20px; }
.poster-shadow-wrapper { max-width: 200px; }
.film-title { font-size: 20px; }
.tagline { font-size: 12px; }
.actor-row { gap: 6px; }
.actor-chip { padding: 3px 10px 3px 3px; }
.actor-avatar { width: 24px; height: 24px; font-size: 12px; }
.detail-grid { grid-template-columns: repeat(2, 1fr); }
.comment-grid { columns: 1; }
.episode-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.timeline-node { width: 150px; }
.player-control-bar { gap: 2px; }
.player-control-bar button { padding: 4px 8px; font-size: 11px; }}
@media (max-width: 400px) {.episode-grid { grid-template-columns: repeat(2, 1fr); }
.recommend-row { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.detail-grid { grid-template-columns: 1fr 1fr; }
.footer-contract { gap: 14px; }}

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}
