*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background-color: #0a0e1a;
  utf8,<svg xmlns="[bad string]

  color: #c8d0e0;
  line-height: 1.6;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1.2rem;
  border-bottom: 1px solid rgba(60, 80, 120, 0.2);
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(8px);
}
.site-logo {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: #e5e9f5;
}
a.site-logo {
  color: #e5e9f5;
  text-decoration: none;
}
a.site-logo:hover { color: #ffffff; }
.categories-nav {
  display: flex;
  gap: 0.3rem;
  overflow-x: auto;
  flex-wrap: nowrap;
}
.runtime-category {
  display: inline-block;
  white-space: nowrap;
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #9aa8c0;
  text-decoration: none;
  background: rgba(50, 70, 110, 0.35);
  transition: background 0.2s, color 0.2s;
}
a.runtime-category {
  color: #9aa8c0;
  text-decoration: none;
}
a.runtime-category:hover {
  color: #ffffff;
  background: rgba(80, 110, 160, 0.5);
}
.main-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.2rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}
.night-ambient {
  position: relative;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -0.2rem -1.2rem 0;
  padding: 2rem 1.2rem;
  background: radial-gradient(ellipse at 50% 0%, rgba(20, 30, 70, 0.8), transparent 70%);
  overflow: hidden;
  border-bottom: 1px solid rgba(40, 60, 100, 0.3);
}
.phone-reflection {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 160px;
  height: 320px;
  background: linear-gradient(180deg, rgba(40, 60, 120, 0.3), rgba(20, 30, 80, 0.5));
  border-radius: 24px;
  border: 2px solid rgba(100, 130, 190, 0.2);
  opacity: 0.5;
  filter: blur(2px);
  box-shadow: 0 0 60px rgba(60, 80, 160, 0.4);
}
.phone-reflection::after {
  content: "";
  position: absolute;
  top: 8px; left: 10px; right: 10px; bottom: 8px;
  background: radial-gradient(circle at 50% 30%, rgba(180, 200, 255, 0.15), transparent 70%);
  border-radius: 18px;
}
.ambient-tagline {
  position: relative;
  z-index: 2;
  font-size: 1rem;
  letter-spacing: 0.25em;
  color: #a0b0d0;
  text-shadow: 0 0 20px rgba(80, 100, 180, 0.6);
  background: rgba(10, 14, 26, 0.5);
  padding: 0.4rem 1.2rem;
  border-radius: 4px;
  border-left: 3px solid rgba(120, 150, 200, 0.5);
}
.movie-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  grid-template-areas:
    "poster title"
    "poster synopsis"
    "poster cast"
    "poster status"
    "poster details";
  gap: 1rem 1.5rem;
  background: #111827;
  border: 1px solid rgba(60, 80, 120, 0.25);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  position: relative;
}
.movie-overview::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30, 50, 90, 0.15), transparent 50%);
  border-radius: 8px;
  pointer-events: none;
}
.poster-wrapper {
  grid-area: poster;
  align-self: start;
  margin: 0;
  width: 100%;
  max-width: 260px;
}
.main-poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}
.title-block {
  grid-area: title;
  align-self: end;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(100, 130, 180, 0.2);
}
.movie-title {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.3;
  color: #e8ecf8;
  letter-spacing: 0.04em;
}
.tagline {
  margin-top: 0.4rem;
  font-size: 0.9rem;
  color: #8a9ab8;
  letter-spacing: 0.1em;
}
.synopsis-panel {
  grid-area: synopsis;
}
.synopsis-panel p {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: #b0bcd0;
}
.synopsis-panel p:last-child { margin-bottom: 0; }
.section-heading {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #7a8aa8;
  margin-bottom: 0.5rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid rgba(80, 100, 150, 0.2);
  display: inline-block;
}
.cast-section {
  grid-area: cast;
}
.actor-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.actor-chip {
  font-size: 0.85rem;
  padding: 0.2rem 0.8rem;
  background: rgba(50, 70, 110, 0.3);
  border-radius: 20px;
  color: #c0ccdf;
  border: 1px solid rgba(80, 110, 160, 0.2);
}
.episode-status {
  grid-area: status;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: baseline;
  padding: 0.5rem 0;
  border-top: 1px solid rgba(60, 80, 120, 0.2);
  border-bottom: 1px solid rgba(60, 80, 120, 0.2);
}
.current-ep {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffd700;
  background: rgba(255, 215, 0, 0.08);
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
}
.total-ep {
  font-size: 0.8rem;
  color: #8a9ab8;
}
.player-wrapper {
  grid-area: status;
  margin-left: 1rem;
  min-width: 0;
  flex: 1 1 220px;
  max-width: 100%;
}
.player-wrapper video {
  border-radius: 4px;
  background: #000;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}
.player-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.4rem;
}
.player-controls button {
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  background: rgba(40, 60, 100, 0.5);
  border-radius: 3px;
  color: #b0c0d8;
  border: 1px solid rgba(80, 110, 160, 0.2);
  transition: background 0.2s;
}
.player-controls button:hover { background: rgba(70, 100, 150, 0.6); }
.player-wrapper.theater-mode video {
  border-radius: 8px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
}
.light-dim {
  background-color: #1a1f2e;
}
.light-dim .movie-overview, .light-dim .timeline-section, .light-dim .episodes-list, .light-dim .comments-section, .light-dim .recommend-region {
  background: #222838;
}
.details-grid {
  grid-area: details;
}
.details-grid .section-heading { margin-bottom: 0.4rem; }
.meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.2rem;
  font-size: 0.85rem;
  color: #a8b4c8;
}
.meta-list li {
  display: flex;
  gap: 0.4rem;
  align-items: baseline;
}
.meta-label {
  color: #7a8aa8;
  font-size: 0.75rem;
  white-space: nowrap;
}
.timeline-section {
  padding: 0 0 0.5rem;
}
.timeline-scroll {
  display: flex;
  gap: 0.8rem;
  overflow-x: auto;
  padding: 0.8rem 0.2rem 1rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(60, 80, 120, 0.5) transparent;
}
.timeline-item {
  flex: 0 0 auto;
  min-width: 140px;
  max-width: 180px;
  background: #151d2f;
  border-radius: 6px;
  padding: 0.8rem;
  border-left: 3px solid #3a5a8a;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.timecode {
  font-size: 0.8rem;
  font-weight: 700;
  color: #ffd700;
}
.timeline-item .label {
  font-size: 0.85rem;
  color: #c0ccdf;
  line-height: 1.4;
}
.episodes-list {
  padding: 0.5rem 0;
}
.episode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.7rem;
}
.episode-card {
  background: #131c2b;
  border-radius: 6px;
  padding: 0.9rem;
  border: 1px solid rgba(60, 80, 120, 0.2);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  transition: border-color 0.2s, background 0.2s;
}
.episode-card:hover {
  border-color: rgba(100, 130, 180, 0.5);
  background: #182238;
}
.ep-number {
  font-size: 0.75rem;
  font-weight: 700;
  color: #5a6a88;
  letter-spacing: 0.08em;
}
.episode-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #d0d8e8;
}
.episode-card p {
  font-size: 0.85rem;
  color: #9aa8c0;
  flex: 1;
}
.ep-duration {
  font-size: 0.75rem;
  color: #6a7a98;
  margin-top: 0.3rem;
}
.comments-section { padding: 0.5rem 0; }
.comments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.7rem;
}
.comment-card {
  background: #141d2e;
  border-radius: 6px;
  padding: 0.9rem;
  border-left: 3px solid #2a4a7a;
  margin: 0;
}
.comment-card cite {
  display: block;
  font-style: normal;
  font-weight: 700;
  font-size: 0.8rem;
  color: #ffd700;
  margin-bottom: 0.4rem;
}
.comment-card p {
  font-size: 0.85rem;
  color: #b0bcd0;
}
.recommend-region { padding: 0.5rem 0; }
.rec-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.8rem;
}
a[data-runtime="recommendation"] {
  display: flex;
  flex-direction: column;
  background: #141d2e;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(60, 80, 120, 0.2);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  color: #c0ccdf;
  text-decoration: none;
}
a[data-runtime="recommendation"]:hover {
  transform: translateY(-2px);
  border-color: rgba(100, 140, 200, 0.5);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}
a[data-runtime="recommendation"] img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #1a2338;
}
a[data-runtime="recommendation"] span[data-runtime="name"] {
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.5rem 0.7rem 0.2rem;
  color: #d8e0f0;
}
a[data-runtime="recommendation"] span[data-runtime="blurb"] {
  font-size: 0.8rem;
  line-height: 1.4;
  padding: 0 0.7rem 0.7rem;
  color: #8898b0;
}
footer {
  border-top: 1px solid rgba(60, 80, 120, 0.2);
  padding: 1.5rem 1.2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: rgba(8, 12, 24, 0.8);
}
.footer-disclaimer p {
  font-size: 0.8rem;
  color: #6a7a98;
  line-height: 1.6;
  max-width: 800px;
}
.footer-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.85rem;
}
a[data-contract="footer-home"], a[data-contract="footer-sitemap"] {
  color: #8a9ab8;
  text-decoration: none;
}
a[data-contract="footer-home"]:hover, a[data-contract="footer-sitemap"]:hover {
  color: #ffffff;
  text-decoration: underline;
}
.friend-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.8rem;
  align-items: center;
  font-size: 0.8rem;
}
.friend-label {
  color: #5a6a88;
}
a.runtime-friend-link {
  color: #7a8aa8;
  text-decoration: none;
}
a.runtime-friend-link:hover {
  color: #b0c0d8;
  text-decoration: underline;
}
@media (max-width: 768px) {.main-container { padding: 0 0.8rem 2rem; gap: 1.5rem; }
.night-ambient { margin: -0.2rem -0.8rem 0; padding: 1.5rem 0.8rem; min-height: 150px; }
.movie-overview {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "poster"
      "synopsis"
      "cast"
      "status"
      "details";
    gap: 1rem;
    padding: 1rem;
  }
.poster-wrapper {
    max-width: 240px;
    margin: 0 auto;
  }
.player-wrapper {
    margin-left: 0;
    width: 100%;
  }
.title-block { align-self: center; text-align: center; }
.episode-status {
    justify-content: center;
  }
.rec-row {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
.episode-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }}
@media (max-width: 480px) {header {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.7rem 0.8rem;
  }
.categories-nav { width: 100%; justify-content: flex-start; }
.movie-title { font-size: 1.3rem; }
.rec-row {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }
.episode-grid {
    grid-template-columns: 1fr 1fr;
  }
.comments-grid {
    grid-template-columns: 1fr;
  }
.player-controls {
    gap: 0.2rem;
  }
.player-controls button {
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
  }}
@media (max-width: 360px) {.episode-grid {
    grid-template-columns: 1fr;
  }
.rec-row {
    grid-template-columns: 1fr 1fr;
  }}

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}
