*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; scroll-behavior: smooth; }
body {
  background: #0a0e1a;
  color: #c8cce0;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  line-height: 1.5;
  font-weight: 500;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
video { display: block; }
input[type="range"] { cursor: pointer; }
header {
  background: linear-gradient(180deg, #0a0e1a 0%, #0d1224 100%);
  border-bottom: 1px solid #1e2450;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  gap: 1rem;
}
.site-logo {
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #f0e68c;
  text-shadow: 0 0 12px rgba(240, 230, 140, 0.4);
  white-space: nowrap;
  transition: opacity 0.2s;
}
.site-logo:hover { opacity: 0.85; }
.categories-nav {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.categories-nav::-webkit-scrollbar { display: none; }
.runtime-category {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #9aa0c3;
  background: rgba(30, 36, 80, 0.5);
  border: 1px solid #2a3160;
  border-radius: 2rem;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.runtime-category:hover {
  color: #f0e68c;
  border-color: #f0e68c;
  background: rgba(30, 36, 80, 0.8);
  box-shadow: 0 0 10px rgba(240, 230, 140, 0.2);
}
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem 2rem;
}
.movie-shell {
  background: linear-gradient(145deg, #10162e 0%, #0b0f1f 60%, #0d1224 100%);
  border: 1px solid #2a3160;
  border-radius: 12px;
  margin: 1.25rem 0 2rem;
  box-shadow: 0 0 30px rgba(80, 60, 180, 0.15), 0 8px 30px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}
.movie-shell::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #f0e68c, #8a2be2, transparent);
  opacity: 0.7;
}
.overview-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.5rem;
  padding: 1.5rem;
}
.poster-column { display: flex; flex-direction: column; }
.poster-wrapper {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 0 1px #2a3160;
}
.poster-wrapper::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(10, 14, 26, 0.6) 100%);
  pointer-events: none;
}
.poster-wrapper img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  width: 100%;
  display: block;
}
.info-column {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.movie-title {
  font-size: 1.9rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.02em;
  line-height: 1.3;
  text-shadow: 0 0 20px rgba(138, 43, 226, 0.5);
  margin-bottom: 0.5rem;
}
.movie-tagline {
  font-size: 1rem;
  color: #8a2be2;
  font-style: italic;
  letter-spacing: 0.05em;
  margin-bottom: 1.2rem;
  padding-left: 0.8rem;
  border-left: 3px solid #8a2be2;
}
.meta-chip-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin-bottom: 1.2rem;
}
.meta-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #f0e68c;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: rgba(240, 230, 140, 0.08);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}
.actor-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.actor-chip {
  font-size: 0.85rem;
  font-weight: 600;
  color: #c8cce0;
  background: rgba(138, 43, 226, 0.15);
  border: 1px solid rgba(138, 43, 226, 0.3);
  padding: 0.2rem 0.8rem;
  border-radius: 2rem;
  transition: all 0.2s;
}
.actor-chip:hover {
  color: #fff;
  background: rgba(138, 43, 226, 0.3);
  border-color: #8a2be2;
}
.lead-quote {
  margin-bottom: 1.2rem;
  padding: 0.8rem 1rem;
  background: rgba(10, 14, 26, 0.5);
  border-left: 3px solid #f0e68c;
  border-radius: 0 6px 6px 0;
}
.lead-quote p {
  font-size: 0.9rem;
  color: #9aa0c3;
  line-height: 1.6;
}
.episode-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
  font-size: 0.95rem;
}
.status-current {
  color: #f0e68c;
  font-weight: 700;
}
.status-separator {
  color: #4a5080;
  font-weight: 300;
}
.status-total {
  color: #9aa0c3;
}
.details-panel {
  border-top: 1px solid #2a3160;
  padding-top: 1rem;
}
.details-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem 1rem;
}
.detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.detail-item dt {
  font-size: 0.68rem;
  font-weight: 600;
  color: #4a5080;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.detail-item dd {
  font-size: 0.9rem;
  font-weight: 600;
  color: #c8cce0;
}
.gold-highlight {
  color: #f0e68c !important;
  text-shadow: 0 0 10px rgba(240, 230, 140, 0.3);
}
.player-wrapper {
  padding: 0 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-width: 0;
}
.player-wrapper video {
  border-radius: 8px;
  border: 1px solid #2a3160;
  background: #000;
  object-fit: contain;
}
.player-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.75rem;
  background: rgba(10, 14, 26, 0.7);
  border: 1px solid #2a3160;
  border-radius: 8px;
}
.player-controls button, .player-controls input[type="range"] {
  min-height: 28px;
}
.player-controls button {
  font-size: 0.75rem;
  font-weight: 600;
  color: #9aa0c3;
  padding: 0.2rem 0.6rem;
  border: 1px solid #2a3160;
  border-radius: 4px;
  background: rgba(30, 36, 80, 0.4);
  transition: all 0.2s;
  white-space: nowrap;
}
.player-controls button:hover {
  color: #f0e68c;
  border-color: #f0e68c;
  background: rgba(240, 230, 140, 0.1);
}
.player-controls input[type="range"] {
  flex: 1;
  min-width: 80px;
  accent-color: #8a2be2;
}
.player-controls button.is-muted {
  color: #f0e68c;
  border-color: #f0e68c;
}
body.lights-off {
  background: #000;
}
body.lights-off .header-inner, body.lights-off main, body.lights-off footer {
  filter: brightness(0.3);
}
body.lights-off .movie-shell {
  border-color: #8a2be2;
  box-shadow: 0 0 40px rgba(138, 43, 226, 0.3);
}
.synopsis-panel {
  padding: 0.5rem 1.5rem 1.5rem;
  border-top: 1px solid rgba(42, 49, 96, 0.5);
}
.section-heading {
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.5rem;
}
.section-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, #8a2be2, #f0e68c);
  border-radius: 2px;
}
.synopsis-paragraphs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
.synopsis-paragraphs p {
  font-size: 0.9rem;
  color: #9aa0c3;
  line-height: 1.7;
  padding-left: 0.75rem;
  border-left: 2px solid rgba(138, 43, 226, 0.3);
}
.timeline-section {
  padding: 2rem 0;
  border-bottom: 1px solid #2a3160;
}
.timeline-section .section-heading {
  margin-left: 0.25rem;
}
.timeline-track-wrapper {
  overflow-x: auto;
  padding: 1rem 0.25rem 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: #8a2be2 #0a0e1a;
}
.timeline-track-wrapper::-webkit-scrollbar {
  height: 4px;
}
.timeline-track-wrapper::-webkit-scrollbar-thumb {
  background: #8a2be2;
  border-radius: 4px;
}
.timeline-track {
  display: flex;
  gap: 1.5rem;
  min-width: max-content;
  padding: 0 0.5rem;
}
.timeline-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.4rem;
  position: relative;
  width: 160px;
  flex-shrink: 0;
  padding-top: 0.75rem;
}
.timeline-node::before {
  content: "";
  position: absolute;
  top: 1.05rem;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #2a3160, #8a2be2);
  z-index: 0;
}
.timeline-node:first-child::before {
  left: 50%;
}
.timeline-node:last-child::before {
  right: 50%;
}
.node-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #0a0e1a;
  border: 3px solid #8a2be2;
  box-shadow: 0 0 12px rgba(138, 43, 226, 0.6);
  position: relative;
  z-index: 1;
  transition: all 0.25s;
}
.timeline-node:hover .node-dot {
  background: #f0e68c;
  border-color: #f0e68c;
  box-shadow: 0 0 20px rgba(240, 230, 140, 0.6);
  transform: scale(1.3);
}
.node-time {
  font-size: 0.8rem;
  font-weight: 800;
  color: #f0e68c;
  letter-spacing: 0.05em;
  margin-top: 0.4rem;
}
.node-label {
  font-size: 0.75rem;
  color: #9aa0c3;
  line-height: 1.4;
  max-width: 150px;
}
.episodes-section {
  padding: 2rem 0;
  border-bottom: 1px solid #2a3160;
}
.episode-cards-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.5rem 0.25rem 1rem;
  scrollbar-width: thin;
  scrollbar-color: #8a2be2 #0a0e1a;
}
.episode-cards-track::-webkit-scrollbar {
  height: 4px;
}
.episode-cards-track::-webkit-scrollbar-thumb {
  background: #8a2be2;
  border-radius: 4px;
}
.episode-card {
  flex: 0 0 280px;
  background: #10162e;
  border: 1px solid #2a3160;
  border-radius: 10px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: all 0.25s;
}
.episode-card:hover {
  border-color: #8a2be2;
  box-shadow: 0 0 20px rgba(138, 43, 226, 0.2);
  transform: translateY(-2px);
}
.episode-number {
  font-size: 0.7rem;
  font-weight: 800;
  color: #f0e68c;
  background: rgba(240, 230, 140, 0.1);
  border: 1px solid rgba(240, 230, 140, 0.2);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.episode-title {
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.02em;
}
.episode-summary {
  font-size: 0.8rem;
  color: #9aa0c3;
  line-height: 1.6;
  flex: 1;
}
.episode-duration {
  font-size: 0.7rem;
  color: #4a5080;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.cast-section {
  padding: 2rem 0;
  border-bottom: 1px solid #2a3160;
}
.cast-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.cast-card {
  background: #10162e;
  border: 1px solid #2a3160;
  border-radius: 10px;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  transition: all 0.25s;
}
.cast-card:hover {
  border-color: #8a2be2;
  box-shadow: 0 0 20px rgba(138, 43, 226, 0.15);
}
.cast-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8a2be2, #4a1a8a);
  border: 3px solid #f0e68c;
  box-shadow: 0 0 20px rgba(138, 43, 226, 0.4);
  position: relative;
}
.cast-avatar::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.4), transparent 60%);
}
.cast-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.1em;
}
.cast-brief {
  font-size: 0.8rem;
  color: #9aa0c3;
  line-height: 1.6;
}
.comments-section {
  padding: 2rem 0;
  border-bottom: 1px solid #2a3160;
}
.comments-masonry {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
.comment-bubble {
  background: #10162e;
  border: 1px solid #2a3160;
  border-radius: 16px 16px 4px 16px;
  padding: 0.8rem 1rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: all 0.2s;
}
.comment-bubble:nth-child(even) {
  border-radius: 16px 16px 16px 4px;
  background: #0d1224;
}
.comment-bubble:hover {
  border-color: #f0e68c;
  box-shadow: 0 0 12px rgba(240, 230, 140, 0.1);
}
.comment-nickname {
  font-size: 0.8rem;
  font-weight: 800;
  color: #f0e68c;
  letter-spacing: 0.05em;
}
.comment-text {
  font-size: 0.85rem;
  color: #c8cce0;
  line-height: 1.6;
}
.recommendation-region {
  padding: 2rem 0;
  border-bottom: 1px solid #2a3160;
}
.recommendation-region:last-of-type {
  border-bottom: none;
}
.recommendation-blocks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.recommendation-region[data-recommendation-region="1"] .recommendation-blocks {
  grid-template-columns: repeat(4, 1fr);
}
.recommendation-item {
  background: #10162e;
  border: 1px solid #2a3160;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  transition: all 0.25s;
  min-width: 0;
}
.recommendation-item:hover {
  border-color: #8a2be2;
  box-shadow: 0 0 20px rgba(138, 43, 226, 0.2);
  transform: translateY(-3px);
}
.recommendation-item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid #2a3160;
}
.recommendation-item span {
  padding: 0.5rem 0.75rem 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.4;
}
.recommendation-item span:last-child {
  font-size: 0.75rem;
  font-weight: 500;
  color: #9aa0c3;
  padding-bottom: 0.75rem;
}
footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1rem 2rem;
  border-top: 1px solid #2a3160;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: linear-gradient(0deg, #0a0e1a 0%, #0b0f1f 100%);
}
.footer-disclaimer {
  font-size: 0.75rem;
  color: #4a5080;
  line-height: 1.6;
  max-width: 800px;
}
.footer-links {
  display: flex;
  gap: 1.5rem;
}
.footer-links a {
  font-size: 0.85rem;
  font-weight: 600;
  color: #9aa0c3;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: #f0e68c;
}
.friend-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.75rem;
}
.friend-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #f0e68c;
  letter-spacing: 0.08em;
  background: rgba(240, 230, 140, 0.08);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}
.runtime-friend-link {
  font-size: 0.8rem;
  color: #9aa0c3;
  padding: 0.2rem 0.5rem;
  border: 1px solid transparent;
  border-radius: 4px;
  transition: all 0.2s;
  white-space: nowrap;
}
.runtime-friend-link:hover {
  color: #f0e68c;
  border-color: rgba(240, 230, 140, 0.2);
  background: rgba(240, 230, 140, 0.05);
}
@media (max-width: 900px) {.overview-layout {
    grid-template-columns: 200px 1fr;
    gap: 1rem;
    padding: 1rem;
  }
.movie-title {
    font-size: 1.5rem;
  }
.details-grid {
    grid-template-columns: repeat(3, 1fr);
  }
.cast-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
.recommendation-blocks, .recommendation-region[data-recommendation-region="1"] .recommendation-blocks {
    grid-template-columns: repeat(2, 1fr);
  }
.recommendation-item img {
    aspect-ratio: 16 / 9;
  }
.player-wrapper {
    padding: 0 1rem 1rem;
  }}
@media (max-width: 600px) {html { font-size: 13px; }
.header-inner {
    padding: 0.5rem 0.75rem;
    flex-wrap: wrap;
  }
.site-logo {
    font-size: 1.2rem;
  }
.categories-nav {
    width: 100%;
    padding-bottom: 0.25rem;
  }
.overview-layout {
    grid-template-columns: 1fr;
    padding: 1rem;
    gap: 1rem;
  }
.poster-column {
    align-items: center;
  }
.poster-wrapper {
    width: 200px;
  }
.poster-wrapper img {
    aspect-ratio: 2 / 3;
  }
.info-column {
    padding: 0;
  }
.movie-title {
    font-size: 1.4rem;
  }
.details-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }
.player-wrapper {
    padding: 0 1rem 1rem;
  }
.player-controls {
    gap: 0.3rem;
  }
.player-controls button {
    padding: 0.15rem 0.4rem;
    font-size: 0.7rem;
  }
.synopsis-panel {
    padding: 0.5rem 1rem 1rem;
  }
.timeline-section, .episodes-section, .cast-section, .comments-section, .recommendation-region {
    padding: 1.5rem 0;
  }
.episode-card {
    flex-basis: 240px;
  }
.comments-masonry {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
.comment-bubble {
    border-radius: 12px 12px 4px 12px;
  }
.comment-bubble:nth-child(even) {
    border-radius: 12px 12px 12px 4px;
  }
.cast-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
  }
.cast-avatar {
    width: 70px;
    height: 70px;
  }
.recommendation-blocks, .recommendation-region[data-recommendation-region="1"] .recommendation-blocks {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
.recommendation-item img {
    aspect-ratio: 16 / 9;
  }
footer {
    padding: 1rem 0.75rem 1.5rem;
  }
.friend-links {
    gap: 0.3rem 0.5rem;
  }}
@media (max-width: 380px) {.cast-grid {
    grid-template-columns: 1fr;
  }
.details-grid {
    grid-template-columns: 1fr 1fr;
  }
.cast-avatar {
    width: 80px;
    height: 80px;
  }}
video.theater-mode {
  border: 2px solid #f0e68c;
  box-shadow: 0 0 30px rgba(240, 230, 140, 0.2);
}
video:focus {
  outline: 2px solid #8a2be2;
  outline-offset: 2px;
}

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}
