*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.5;
  background: #0a0e14;
  color: #dce3ea;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: none; color: inherit; cursor: pointer; }
video { display: block; }
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px 48px;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  background: #0a0e14;
  border-bottom: 1px solid #1e2a36;
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-brand {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #ff7a45;
  white-space: nowrap;
}
a[data-contract="site-name"] {
  color: #ff7a45;
  text-decoration: none;
}
a[data-contract="site-name"]:hover { color: #ffa06a; }
nav[data-contract="categories"] {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
}
.runtime-category {
  display: inline-block;
  padding: 6px 10px;
  font-size: 0.85rem;
  color: #8fa3b8;
  background: #131a22;
  border: 1px solid #1e2a36;
  border-radius: 4px;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
a.runtime-category {
  color: #8fa3b8;
  text-decoration: none;
}
a.runtime-category:hover {
  color: #ff7a45;
  background: #1a222c;
  border-color: #ff7a45;
}
.hero-overview {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  grid-template-rows: auto;
  gap: 16px;
  padding: 24px 16px;
  background: #10161d;
  border: 1px solid #1e2a36;
  border-radius: 8px;
  margin-top: 20px;
  position: relative;
}
.hero-poster-wrapper {
  grid-column: 1 / 2;
  grid-row: 1 / 8;
  align-self: start;
  max-width: 280px;
}
.hero-poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #1e2a36;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}
.hero-title-group {
  grid-column: 2 / 3;
  align-self: start;
}
.movie-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #f0f4f8;
  line-height: 1.2;
  letter-spacing: 0.02em;
}
.movie-tagline {
  font-size: 1rem;
  color: #ff7a45;
  margin-top: 4px;
  letter-spacing: 0.1em;
}
.synopsis-panel {
  grid-column: 2 / 3;
  align-self: start;
}
.section-subheading {
  font-size: 1rem;
  font-weight: 700;
  color: #ff7a45;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  border-bottom: 1px solid #1e2a36;
  padding-bottom: 4px;
}
.synopsis-paragraph {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #a7b6c8;
  margin-bottom: 8px;
}
.cast-panel {
  grid-column: 2 / 3;
  align-self: start;
}
.cast-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 8px;
}
.cast-card {
  background: #131a22;
  border: 1px solid #1e2a36;
  border-radius: 6px;
  padding: 10px 8px;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}
.cast-card:hover { border-color: #ff7a45; transform: translateY(-2px); }
.cast-name {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: #e6edf3;
}
.cast-role {
  display: block;
  font-size: 0.75rem;
  color: #8fa3b8;
  margin-top: 2px;
}
.episode-status {
  grid-column: 2 / 3;
  align-self: start;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.85rem;
}
.episode-current {
  background: #ff7a45;
  color: #0a0e14;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
}
.episode-total {
  background: #1e2a36;
  color: #a7b6c8;
  padding: 4px 10px;
  border-radius: 4px;
}
.detail-meta {
  grid-column: 2 / 3;
  align-self: start;
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 6px 16px;
  font-size: 0.85rem;
}
.detail-grid li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.detail-label {
  color: #6b7d90;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.detail-value {
  color: #dce3ea;
  font-weight: 500;
}
.player-wrapper {
  grid-column: 2 / 3;
  width: 100%;
  max-width: none;
  margin-top: 8px;
}
.player-wrapper video {
  border-radius: 6px;
  border: 1px solid #1e2a36;
  background: #000;
}
.player-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
}
.player-controls button {
  padding: 4px 10px;
  font-size: 0.75rem;
  background: #1e2a36;
  color: #a7b6c8;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}
.player-controls button:hover {
  background: #ff7a45;
  color: #0a0e14;
}
.player-wrapper.theater-mode video {
  max-height: 70vh;
  width: 100%;
  object-fit: contain;
}
main.light-dim .hero-overview {
  background: rgba(16, 22, 29, 0.85);
}
.timeline-section {
  margin-top: 32px;
  padding: 24px 16px;
  background: #10161d;
  border: 1px solid #1e2a36;
  border-radius: 8px;
}
.section-heading {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ff7a45;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  border-bottom: 2px solid #ff7a45;
  display: inline-block;
  padding-bottom: 4px;
}
.timeline-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: #ff7a45 #1e2a36;
}
.timeline-scroll::-webkit-scrollbar { height: 6px; }
.timeline-scroll::-webkit-scrollbar-track { background: #1e2a36; border-radius: 3px; }
.timeline-scroll::-webkit-scrollbar-thumb { background: #ff7a45; border-radius: 3px; }
.timeline-item {
  flex: 0 0 auto;
  width: 180px;
  background: #131a22;
  border: 1px solid #1e2a36;
  border-radius: 6px;
  padding: 12px;
  position: relative;
  transition: border-color 0.2s;
}
.timeline-item:hover { border-color: #ff7a45; }
.timeline-item::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 12px;
  width: 8px;
  height: 8px;
  background: #ff7a45;
  border-radius: 50%;
}
.timecode {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #ff7a45;
  margin-bottom: 6px;
}
.timeline-label {
  font-size: 0.85rem;
  color: #a7b6c8;
  line-height: 1.4;
}
.episodes-list {
  margin-top: 24px;
  padding: 24px 16px;
  background: #10161d;
  border: 1px solid #1e2a36;
  border-radius: 8px;
}
.episode-ol {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 8px;
}
.episode-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #131a22;
  border: 1px solid #1e2a36;
  border-radius: 6px;
  padding: 12px;
  transition: border-color 0.2s;
}
.episode-item:hover { border-color: #ff7a45; }
.ep-number {
  font-size: 0.7rem;
  font-weight: 700;
  color: #ff7a45;
  background: rgba(255, 122, 69, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
  align-self: flex-start;
}
.ep-title {
  font-size: 1rem;
  font-weight: 700;
  color: #e6edf3;
}
.ep-summary {
  font-size: 0.85rem;
  color: #8fa3b8;
  line-height: 1.4;
}
.ep-duration {
  font-size: 0.7rem;
  color: #6b7d90;
  align-self: flex-end;
}
.comments-grid {
  margin-top: 24px;
  padding: 24px 16px;
  background: #10161d;
  border: 1px solid #1e2a36;
  border-radius: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.comments-grid .section-heading {
  grid-column: 1 / -1;
}
.comment-column {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.comment-card {
  background: #131a22;
  border: 1px solid #1e2a36;
  border-radius: 6px;
  padding: 12px;
  transition: border-color 0.2s;
}
.comment-card:hover { border-color: #ff7a45; }
.comment-author {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #ff7a45;
  margin-bottom: 4px;
}
.comment-text {
  font-size: 0.85rem;
  color: #a7b6c8;
  line-height: 1.5;
}
.recommendation-block {
  margin-top: 24px;
  padding: 24px 16px;
  background: #10161d;
  border: 1px solid #1e2a36;
  border-radius: 8px;
}
.recommendation-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
a[data-runtime="recommendation"] {
  display: flex;
  flex-direction: column;
  background: #131a22;
  border: 1px solid #1e2a36;
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
  color: #dce3ea;
  text-decoration: none;
}
a[data-runtime="recommendation"]:hover {
  border-color: #ff7a45;
  transform: translateY(-2px);
}
a[data-runtime="recommendation"] img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid #1e2a36;
}
a[data-runtime="recommendation"] span[data-runtime="name"] {
  font-size: 0.9rem;
  font-weight: 700;
  padding: 8px 8px 2px;
  color: #e6edf3;
}
a[data-runtime="recommendation"] span[data-runtime="blurb"] {
  font-size: 0.75rem;
  padding: 0 8px 8px;
  color: #8fa3b8;
  line-height: 1.4;
}
footer {
  background: #0a0e14;
  border-top: 1px solid #1e2a36;
  padding: 24px 16px;
  margin-top: 32px;
}
footer > div {
  font-size: 0.75rem;
  color: #6b7d90;
  line-height: 1.5;
  margin-bottom: 12px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.85rem;
}
a[data-contract="footer-home"], a[data-contract="footer-sitemap"] {
  color: #8fa3b8;
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}
a[data-contract="footer-home"]:hover, a[data-contract="footer-sitemap"]:hover {
  color: #ff7a45;
  background: #131a22;
}
.friend-links-label {
  color: #6b7d90;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.runtime-friend-link {
  color: #8fa3b8;
  text-decoration: none;
  padding: 2px 6px;
  border-radius: 3px;
  transition: color 0.2s, background 0.2s;
  font-size: 0.8rem;
}
a.runtime-friend-link {
  color: #8fa3b8;
  text-decoration: none;
}
a.runtime-friend-link:hover {
  color: #ff7a45;
  background: #131a22;
}
@media (max-width: 768px) {.hero-overview {
    grid-template-columns: 1fr;
    gap: 12px;
  }
.hero-poster-wrapper {
    grid-column: 1 / 2;
    grid-row: auto;
    max-width: 220px;
  }
.hero-title-group, .synopsis-panel, .cast-panel, .episode-status, .detail-meta, .player-wrapper {
    grid-column: 1 / 2;
  }
.comments-grid {
    grid-template-columns: 1fr;
  }
.recommendation-row {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
nav[data-contract="categories"] {
    justify-content: flex-start;
  }}
@media (max-width: 480px) {main {
    padding: 0 8px 32px;
  }
.hero-overview, .timeline-section, .episodes-list, .comments-grid, .recommendation-block {
    padding: 16px 12px;
  }
.movie-title {
    font-size: 1.25rem;
  }
.cast-list {
    grid-template-columns: repeat(2, 1fr);
  }
.detail-grid {
    grid-template-columns: repeat(2, 1fr);
  }
.episode-ol {
    grid-template-columns: 1fr;
  }
.timeline-item {
    width: 150px;
  }
.player-wrapper {
    min-width: 0;
  }}
.player-wrapper.theater-mode {
  background: #000;
  border: 1px solid #1e2a36;
  border-radius: 6px;
  padding: 8px;
}
main.light-dim {
  background: rgba(10, 14, 20, 0.6);
}
main.light-dim .hero-overview, main.light-dim .timeline-section, main.light-dim .episodes-list, main.light-dim .comments-grid, main.light-dim .recommendation-block {
  background: rgba(16, 22, 29, 0.7);
}

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}
