*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-weight: 300;
  background: #0a0a14;
  color: #c8c8d4;
  line-height: 1.5;
  min-height: 100vh;
}
img, video { display: block; max-width: 100%; }
ul { list-style: none; }
a { text-decoration: none; color: inherit; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
h1, h2, h3 { font-weight: 700; }
a[data-contract="site-name"] { color: #ff2e88; text-decoration: none; font-weight: 700; letter-spacing: 0.05em; }
a[data-contract="site-name"]:hover { color: #ff6bb3; text-decoration: underline; }
a.runtime-category { color: #ff2e88; text-decoration: none; font-weight: 600; }
a.runtime-category:hover { color: #ff6bb3; text-decoration: underline; }
a[data-runtime="recommendation"] { color: #ff2e88; text-decoration: none; }
a[data-runtime="recommendation"]:hover { color: #ff6bb3; text-decoration: underline; }
a.runtime-friend-link { color: #6b6b8a; text-decoration: none; }
a.runtime-friend-link:hover { color: #ff2e88; text-decoration: underline; }
a[data-contract="footer-home"] { color: #6b6b8a; text-decoration: none; }
a[data-contract="footer-home"]:hover { color: #ff2e88; text-decoration: underline; }
a[data-contract="footer-sitemap"] { color: #6b6b8a; text-decoration: none; }
a[data-contract="footer-sitemap"]:hover { color: #ff2e88; text-decoration: underline; }
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  padding: 12px 20px;
  background: #0e0e1c;
  border-bottom: 1px solid #1c1c30;
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-logo {
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.categories-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 4px;
  flex: 1;
  min-width: 0;
}
.categories-bar .runtime-category {
  padding: 4px 10px;
  border-radius: 14px;
  background: #15152a;
  border: 1px solid #22223a;
  white-space: nowrap;
  font-size: 0.85rem;
  transition: background 0.2s, color 0.2s;
}
.categories-bar .runtime-category:hover {
  background: #ff2e8822;
  border-color: #ff2e88;
}
.main-content {
  max-width: 1440px;
  margin: 0 auto;
  padding: 16px 20px 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.movie-overview-panel {
  background: #0d0d1a;
  border: 1px solid #1c1c30;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 4px 24px rgba(255, 46, 136, 0.06);
}
.poster-player-wrap {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.poster-frame {
  width: 180px;
}
.main-poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #252540;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}
.player-shell {
  min-width: 480px; 
}
.player-shell video {
  border-radius: 10px;
  background: #000;
  border: 1px solid #252540;
}
.player-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  background: #14142a;
  border-radius: 0 0 10px 10px;
  border: 1px solid #252540;
  border-top: none;
  flex-wrap: wrap;
}
.player-controls button {
  padding: 4px 8px;
  border-radius: 6px;
  background: #1c1c34;
  border: 1px solid #2a2a48;
  font-size: 0.9rem;
  transition: background 0.2s;
}
.player-controls button:hover { background: #ff2e8844; }
.player-controls input[type="range"] {
  flex: 1;
  min-width: 100px;
  accent-color: #ff2e88;
  background: #2a2a48;
  border-radius: 6px;
  height: 6px;
}
.title-tagline-block {
  border-top: 1px solid #1c1c30;
  padding-top: 16px;
}
.movie-title {
  font-size: 1.6rem;
  line-height: 1.3;
  color: #fff;
  letter-spacing: 0.02em;
}
.tagline {
  margin-top: 6px;
  color: #ff2e88;
  font-weight: 400;
  font-size: 1rem;
}
.cast-fragment { margin-top: 4px; }
.fragment-heading {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.fragment-heading::before {
  content: "";
  width: 4px;
  height: 1.1em;
  background: linear-gradient(180deg, #ff2e88, #a855f7);
  border-radius: 2px;
}
.actor-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  padding: 6px 14px;
  background: #15152a;
  border: 1px solid #252540;
  border-radius: 20px;
  font-size: 0.9rem;
  color: #d0d0e0;
  font-weight: 400;
}
.synopsis-fragment {
  border-top: 1px solid #1c1c30;
  padding-top: 16px;
}
.synopsis-paragraph {
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: #b8b8c8;
  max-width: 70ch;
}
.synopsis-paragraph:last-child { margin-bottom: 0; }
.episode-status-fragment {
  border-top: 1px solid #1c1c30;
  padding-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.status-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.episode-count {
  font-size: 1rem;
  color: #ff2e88;
  font-weight: 700;
}
.current-episode {
  font-size: 0.9rem;
  color: #b8b8c8;
}
.details-fragment { min-width: 0; }
.detail-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 16px;
}
.detail-list li {
  display: flex;
  gap: 6px;
  font-size: 0.9rem;
  color: #b8b8c8;
}
.detail-label {
  color: #6b6b8a;
  white-space: nowrap;
}
.detail-value {
  color: #d0d0e0;
}
.timeline-fragment {
  padding: 4px 0;
}
.timeline-scroll {
  display: grid;
  grid-auto-columns: max-content;
  grid-auto-flow: column;
  gap: 12px;
  overflow-x: auto;
  padding: 8px 4px 12px;
  scrollbar-width: thin;
  scrollbar-color: #ff2e88 #1c1c30;
}
.timeline-item {
  background: #12122a;
  border: 1px solid #252545;
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 160px;
  position: relative;
}
.timeline-item::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 50%;
  width: 2px;
  height: 12px;
  background: #ff2e88;
}
.timecode {
  color: #ff2e88;
  font-weight: 700;
  font-size: 0.9rem;
}
.timeline-label {
  color: #c8c8d4;
  font-size: 0.95rem;
}
.episodes-fragment { padding: 4px 0; }
.episode-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.episode-card {
  background: #12122a;
  border: 1px solid #1e1e38;
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.episode-number {
  font-size: 1.6rem;
  font-weight: 700;
  color: #ff2e88;
  line-height: 1;
}
.episode-card h3 {
  font-size: 1rem;
  color: #fff;
}
.episode-card p {
  font-size: 0.85rem;
  color: #a0a0b8;
  line-height: 1.4;
}
.cast-detail-grid { padding: 4px 0; }
.cast-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.cast-member {
  background: #12122a;
  border: 1px solid #1e1e38;
  border-radius: 12px;
  padding: 14px;
}
.cast-member h3 {
  color: #ff2e88;
  font-size: 1rem;
  margin-bottom: 6px;
}
.cast-member p {
  color: #b8b8c8;
  font-size: 0.88rem;
  line-height: 1.4;
}
.comments-fragment { padding: 4px 0; }
.comments-waterfall {
  columns: 3;
  column-gap: 12px;
}
.comment-card {
  break-inside: avoid;
  background: #12122a;
  border: 1px solid #1e1e38;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
}
.comment-author {
  display: block;
  color: #ff2e88;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
}
.comment-card p {
  color: #b8b8c8;
  font-size: 0.88rem;
  line-height: 1.4;
}
.recommendation-region { padding: 4px 0; }
.rec-slider {
  display: grid;
  grid-auto-columns: minmax(180px, 1fr);
  grid-auto-flow: column;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: #ff2e88 #1c1c30;
}
a[data-runtime="recommendation"] {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #12122a;
  border: 1px solid #1e1e38;
  border-radius: 12px;
  padding: 10px;
  transition: border-color 0.2s, transform 0.2s;
}
a[data-runtime="recommendation"]:hover {
  border-color: #ff2e88;
  transform: translateY(-2px);
}
a[data-runtime="recommendation"] img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  background: #1a1a30;
}
a[data-runtime="recommendation"] span[data-runtime="name"] {
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
a[data-runtime="recommendation"] span[data-runtime="blurb"] {
  color: #9a9ab0;
  font-size: 0.8rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.info-card {
  background: #0d0d1a;
  border: 1px solid #1c1c30;
  border-radius: 16px;
  padding: 20px;
  margin-top: 8px;
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 24px;
}
.info-grid div {
  padding: 8px 0;
  border-bottom: 1px solid #1c1c30;
}
.info-grid dt {
  color: #6b6b8a;
  font-size: 0.85rem;
  margin-bottom: 2px;
}
.info-grid dd {
  color: #d0d0e0;
  font-size: 0.95rem;
  font-weight: 400;
}
.site-footer {
  background: #0d0d1a;
  border-top: 1px solid #1c1c30;
  padding: 24px 20px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 1440px;
  margin: 0 auto;
}
.friend-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: baseline;
}
.friend-links-label {
  color: #6b6b8a;
  font-size: 0.9rem;
  white-space: nowrap;
}
.runtime-friend-link {
  font-size: 0.88rem;
  padding: 2px 0;
}
.disclaimer {
  color: #6b6b8a;
  font-size: 0.8rem;
  line-height: 1.5;
  max-width: 80ch;
}
.footer-links {
  display: flex;
  gap: 16px;
}
.footer-links a {
  font-size: 0.9rem;
}
.player-shell.theater-mode {
  max-width: 100%;
}
.player-shell.theater-mode video {
  border-radius: 0;
}
body.lights-off .main-content, body.lights-off .site-header, body.lights-off .site-footer {
  opacity: 0.6;
  transition: opacity 0.3s;
}
body.lights-off .player-shell {
  opacity: 1;
  position: relative;
  z-index: 200;
}
.player-controls .play { color: #ff2e88; }
.player-controls .mute { color: #ff2e88; }
.player-controls .volume { color: #ff2e88; }
.player-controls .speed { color: #ff2e88; }
.player-controls .pip { color: #ff2e88; }
.player-controls .fullscreen { color: #ff2e88; }
.player-controls .theater { color: #ff2e88; }
.player-controls .light { color: #ff2e88; }
.player-controls .progress { accent-color: #ff2e88; }
.player-shell .player { border-color: #ff2e88; }
.player-shell .timeupdate { color: #ff2e88; }
.player-shell .input { color: #ff2e88; }
.player-shell .click { color: #ff2e88; }
.player-shell .theater-mode { background: #000; }
.player-shell .fullscreen { background: #000; }
.player-shell .lights-off { background: #000; }
.player-shell .pip { background: #000; }
.player-shell .mute { background: #000; }
.player-shell .play { background: #000; }
.player-shell .progress { background: #000; }
.player-shell .speed { background: #000; }
.player-shell .volume { background: #000; }
.player-shell .theater { background: #000; }
.player-shell .input { background: #000; }
.player-shell .timeupdate { background: #000; }
.player-shell .click { background: #000; }
.player-shell .player { background: #000; }
@media (max-width: 1200px) {.episode-grid { grid-template-columns: repeat(3, 1fr); }
.cast-grid { grid-template-columns: repeat(3, 1fr); }
.comments-waterfall { columns: 2; }
.info-grid { grid-template-columns: repeat(2, 1fr); }}
@media (max-width: 900px) {.poster-player-wrap {
    grid-template-columns: 1fr;
    gap: 16px;
  }
.poster-frame {
    width: 100%;
    max-width: 280px;
  }
.player-shell {
    min-width: 0;
    width: 100%;
  }
.episode-grid { grid-template-columns: repeat(2, 1fr); }
.cast-grid { grid-template-columns: repeat(2, 1fr); }
.episode-status-fragment {
    grid-template-columns: 1fr;
  }
.detail-list { grid-template-columns: 1fr; }
.comments-waterfall { columns: 1; }}
@media (max-width: 600px) {.main-content { padding: 12px 12px 32px; gap: 24px; }
.site-header { padding: 10px 12px; }
.movie-title { font-size: 1.2rem; }
.episode-grid { grid-template-columns: 1fr; }
.cast-grid { grid-template-columns: 1fr; }
.info-grid { grid-template-columns: 1fr; }
.rec-slider { grid-auto-columns: 200px; }
.timeline-scroll { grid-auto-columns: 140px; }
.movie-overview-panel { padding: 14px; }
.player-controls { gap: 4px; }
.player-controls button { padding: 4px 6px; font-size: 0.8rem; }
.footer-links { flex-direction: column; gap: 8px; }}

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}
