*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: #fff8f2;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(255, 200, 180, 0.06) 0, transparent 12%),
    radial-gradient(circle at 80% 70%, rgba(255, 190, 160, 0.05) 0, transparent 15%),
    radial-gradient(circle at 50% 50%, rgba(240, 180, 160, 0.04) 0, transparent 20%);
  color: #4a3a32;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; background: none; border: none; color: inherit; }
input, select { font-family: inherit; }
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  background: rgba(255, 248, 242, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(230, 180, 160, 0.25);
  position: sticky;
  top: 0;
  z-index: 100;
  gap: 1rem;
  flex-wrap: wrap;
}
a[data-contract="site-name"] {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #b85c3e;
  text-decoration: none;
  background: linear-gradient(120deg, #e07a5f 0%, #b85c3e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}
a[data-contract="site-name"]:hover {
  color: #d97a5f;
}
nav[data-contract="categories"] {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}
.runtime-category {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  border-radius: 2rem;
  background: #fce8e0;
  color: #b85c3e;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}
.runtime-category:hover {
  background: #b85c3e;
  color: #fff;
  border-color: #b85c3e;
}
.overview-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}
.poster-column {
  grid-column: 1;
  grid-row: 1 / span 2;
}
.poster-wrapper {
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(180, 100, 80, 0.18);
  position: sticky;
  top: 5rem;
}
.main-poster-img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 1.25rem;
}
.overview-content-column {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(230, 180, 160, 0.2);
  border-radius: 1.5rem;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 8px 24px rgba(180, 100, 80, 0.08);
  backdrop-filter: blur(4px);
}
.title-block {
  margin-bottom: 0.25rem;
}
.movie-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #6b3a2a;
  letter-spacing: 0.01em;
  line-height: 1.3;
  margin-bottom: 0.25rem;
  text-shadow: 0 2px 8px rgba(255, 200, 180, 0.3);
}
.tagline {
  font-size: 1.05rem;
  color: #d97a5f;
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.06em;
}
.cast-block {
  padding-top: 0.25rem;
}
.block-heading {
  font-size: 0.95rem;
  font-weight: 700;
  color: #6b3a2a;
  margin-bottom: 0.6rem;
  padding-bottom: 0.3rem;
  border-bottom: 2px solid rgba(230, 180, 160, 0.3);
  display: inline-block;
}
.cast-card-list {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: flex-start;
}
.cast-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.75rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(230, 180, 160, 0.15);
  transition: all 0.2s ease;
}
.cast-card:hover {
  background: #fff;
  box-shadow: 0 6px 16px rgba(230, 180, 160, 0.25);
  transform: translateY(-2px);
}
.cast-avatar {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fce8e0;
}
.actor-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #6b3a2a;
  white-space: nowrap;
}
.synopsis-block {
  padding-top: 0.25rem;
}
.synopsis-paragraph {
  font-size: 0.92rem;
  color: #5a4a40;
  margin-bottom: 0.65rem;
  line-height: 1.7;
  text-align: justify;
}
.synopsis-paragraph:last-child {
  margin-bottom: 0;
}
.details-block {
  padding-top: 0.25rem;
}
.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.4rem 1rem;
  background: rgba(252, 232, 224, 0.3);
  border-radius: 1rem;
  padding: 0.8rem 1rem;
}
.detail-item {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
  font-size: 0.85rem;
}
.detail-item dt {
  color: #c07a5f;
  font-weight: 600;
  white-space: nowrap;
}
.detail-item dd {
  color: #4a3a32;
  font-weight: 500;
}
.episode-status-block {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
  padding: 0.5rem 0;
}
.episode-count, .current-episode, .episode-progress {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.2rem 0.8rem;
  border-radius: 2rem;
  background: #fce8e0;
  color: #b85c3e;
  white-space: nowrap;
}
.current-episode {
  background: #e07a5f;
  color: #fff;
}
.episode-progress {
  background: #dcedd6;
  color: #3f6b4f;
}
.player-wide-wrapper {
  grid-column: 2;
  margin-top: 0;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(180, 100, 80, 0.15);
  background: #2a1a12;
  border: 1px solid rgba(230, 180, 160, 0.2);
}
.player-wide-wrapper video {
  display: block;
  background: #000;
}
.player-controls {
  display: flex;
  gap: 0.4rem;
  padding: 0.5rem 0.75rem;
  background: rgba(42, 26, 18, 0.92);
  align-items: center;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.player-controls button {
  color: #fce8e0;
  font-size: 0.8rem;
  padding: 0.3rem 0.6rem;
  border-radius: 0.4rem;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.2s;
  white-space: nowrap;
}
.player-controls button:hover {
  background: #e07a5f;
  color: #fff;
}
.player-controls input[type="range"] {
  flex: 1;
  min-width: 80px;
  accent-color: #e07a5f;
  height: 4px;
}
.player-controls select {
  background: rgba(255, 255, 255, 0.1);
  color: #fce8e0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.4rem;
  padding: 0.2rem 0.4rem;
  font-size: 0.8rem;
}
.player-controls select option {
  background: #2a1a12;
}
.player-wide-wrapper.theater-mode {
  max-width: 100%;
  border-radius: 0;
  box-shadow: none;
}
body.lights-off {
  background: #1a1008;
}
body.lights-off .overview-shell, body.lights-off .poster-wrapper, body.lights-off .overview-content-column, body.lights-off .player-wide-wrapper {
  box-shadow: none;
}
body.lights-off .movie-title {
  color: #fce8e0;
}
body.lights-off .overview-content-column {
  background: rgba(42, 26, 18, 0.8);
  border-color: rgba(230, 180, 160, 0.1);
}
body.lights-off .block-heading, body.lights-off .actor-name, body.lights-off .detail-item dd, body.lights-off .synopsis-paragraph {
  color: #f0e0d0;
}
body.lights-off .tagline {
  color: #e07a5f;
}
body.lights-off .detail-item dt {
  color: #e8a88a;
}
.timeline-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
}
.timeline-section .block-heading {
  margin-bottom: 1rem;
}
.timeline-scroll {
  overflow-x: auto;
  padding-bottom: 0.75rem;
  scrollbar-width: thin;
  scrollbar-color: #e07a5f transparent;
  -webkit-overflow-scrolling: touch;
}
.timeline-scroll::-webkit-scrollbar {
  height: 6px;
}
.timeline-scroll::-webkit-scrollbar-thumb {
  background: #e07a5f;
  border-radius: 3px;
}
.timeline-track {
  display: flex;
  gap: 2rem;
  min-width: min-content;
  padding: 1rem 0.5rem 0.5rem;
  position: relative;
}
.timeline-track::before {
  content: "";
  position: absolute;
  top: 1.6rem;
  left: 1.5rem;
  right: 1.5rem;
  height: 3px;
  background: linear-gradient(90deg, #f3b8a0, #e07a5f, #b85c3e, #e07a5f, #f3b8a0);
  border-radius: 2px;
  opacity: 0.5;
}
.timeline-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  z-index: 1;
  min-width: 5rem;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.timeline-node:hover {
  transform: translateY(-4px);
}
.node-dot {
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #e07a5f;
  box-shadow: 0 0 0 4px rgba(224, 122, 95, 0.2);
  transition: all 0.2s ease;
  position: relative;
  z-index: 2;
}
.timeline-node:hover .node-dot {
  background: #e07a5f;
  box-shadow: 0 0 0 6px rgba(224, 122, 95, 0.25);
  transform: scale(1.15);
}
.timecode {
  font-size: 0.85rem;
  font-weight: 700;
  color: #6b3a2a;
  white-space: nowrap;
}
.tooltip {
  font-size: 0.75rem;
  color: #8a6a5a;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.4rem 0.8rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(230, 180, 160, 0.3);
  box-shadow: 0 4px 12px rgba(180, 100, 80, 0.12);
  opacity: 0;
  transform: translateY(4px);
  transition: all 0.2s ease;
  position: absolute;
  top: 2.8rem;
  white-space: nowrap;
  pointer-events: none;
  z-index: 5;
}
.timeline-node:hover .tooltip {
  opacity: 1;
  transform: translateY(0);
}
.episodes-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 1.5rem;
}
.episodes-section .block-heading {
  margin-bottom: 0.75rem;
}
.episodes-accordion {
  display: grid;
  gap: 0.4rem;
}
.episode-item {
  border-radius: 0.8rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(230, 180, 160, 0.15);
  transition: all 0.2s ease;
}
.episode-item:hover {
  border-color: rgba(230, 180, 160, 0.4);
  background: #fff;
}
.episode-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  width: 100%;
  text-align: left;
  font-size: 0.9rem;
  font-weight: 600;
  color: #6b3a2a;
  transition: background 0.2s;
}
.episode-header:hover {
  background: rgba(252, 232, 224, 0.5);
}
.episode-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: #fce8e0;
  color: #b85c3e;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.episode-duration {
  margin-left: auto;
  font-size: 0.78rem;
  font-weight: 400;
  color: #a08a78;
  white-space: nowrap;
}
.episode-summary {
  padding: 0.6rem 1rem 0.8rem 3.5rem;
  font-size: 0.85rem;
  color: #5a4a40;
  background: rgba(252, 232, 224, 0.2);
  border-top: 1px dashed rgba(230, 180, 160, 0.3);
  line-height: 1.6;
}
.episode-item .episode-summary[hidden] {
  display: none;
}
.comments-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 1.5rem;
}
.comments-section .block-heading {
  margin-bottom: 0.75rem;
}
.comments-masonry {
  columns: 2;
  column-gap: 1rem;
}
.comment-bubble {
  break-inside: avoid;
  margin-bottom: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: 1.2rem 1.2rem 1.2rem 0.4rem;
  background: #fff;
  border: 1px solid rgba(230, 180, 160, 0.2);
  box-shadow: 0 4px 14px rgba(180, 100, 80, 0.08);
  position: relative;
  transition: all 0.2s ease;
}
.comment-bubble::after {
  content: "";
  position: absolute;
  bottom: -0.5rem;
  left: 1.2rem;
  width: 0.9rem;
  height: 0.9rem;
  background: #fff;
  border-right: 1px solid rgba(230, 180, 160, 0.2);
  border-bottom: 1px solid rgba(230, 180, 160, 0.2);
  transform: rotate(45deg);
}
.comment-bubble:hover {
  box-shadow: 0 8px 20px rgba(180, 100, 80, 0.15);
}
.comment-nick {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #b85c3e;
  margin-bottom: 0.4rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid rgba(252, 232, 224, 0.8);
}
.comment-text {
  font-size: 0.88rem;
  color: #5a4a40;
  line-height: 1.65;
}
.recommend-region {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 1.5rem;
}
.recommend-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #6b3a2a;
  margin-bottom: 0.75rem;
  padding-left: 0.75rem;
  border-left: 4px solid #e07a5f;
  letter-spacing: 0.02em;
}
.recommend-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
}
.recommend-region:nth-child(even) .recommend-row {
  grid-template-columns: repeat(3, 1fr);
}
.recommend-region:nth-child(odd) .recommend-row {
  grid-template-columns: repeat(4, 1fr);
}
.recommend-region:nth-child(3) .recommend-row {
  grid-template-columns: repeat(3, 1fr);
}
a.recommend-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.6rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(230, 180, 160, 0.15);
  transition: all 0.2s ease;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
a.recommend-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(180, 100, 80, 0.18);
  border-color: rgba(230, 180, 160, 0.4);
  background: #fff;
}
[data-runtime="recommendation"] img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 0.6rem;
  margin-bottom: 0.2rem;
}
[data-runtime="recommendation"] [data-runtime="name"] {
  font-size: 0.9rem;
  font-weight: 700;
  color: #6b3a2a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
[data-runtime="recommendation"] [data-runtime="blurb"] {
  font-size: 0.78rem;
  color: #a08a78;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
  border-top: 1px solid rgba(230, 180, 160, 0.2);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #a08a78;
}
footer p {
  width: 100%;
  line-height: 1.6;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
footer nav span {
  font-weight: 600;
  color: #8a6a5a;
}
a[data-contract="footer-home"], a[data-contract="footer-sitemap"] {
  color: #b85c3e;
  font-weight: 600;
  text-decoration: none;
  padding: 0.2rem 0.4rem;
  border-radius: 0.3rem;
  transition: all 0.2s;
}
a[data-contract="footer-home"]:hover, a[data-contract="footer-sitemap"]:hover {
  color: #e07a5f;
  background: rgba(252, 232, 224, 0.5);
}
a.runtime-friend-link {
  color: #8a6a5a;
  text-decoration: none;
  border-bottom: 1px dotted rgba(180, 100, 80, 0.3);
  padding: 0.1rem 0;
  transition: all 0.2s;
  white-space: nowrap;
}
a.runtime-friend-link:hover {
  color: #b85c3e;
  border-bottom-color: #b85c3e;
}
@media (max-width: 900px) {.overview-shell {
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 1rem;
    padding: 1rem;
  }
.overview-content-column {
    padding: 1.25rem;
  }
.movie-title {
    font-size: 1.35rem;
  }
.recommend-row, .recommend-region:nth-child(even) .recommend-row, .recommend-region:nth-child(odd) .recommend-row, .recommend-region:nth-child(3) .recommend-row {
    grid-template-columns: repeat(2, 1fr);
  }
.comments-masonry {
    columns: 1;
  }}
@media (max-width: 640px) {header {
    padding: 0.5rem 0.75rem;
    gap: 0.5rem;
  }
a[data-contract="site-name"] {
    font-size: 1.1rem;
  }
.overview-shell {
    grid-template-columns: 100px minmax(0, 1fr);
    padding: 0.75rem;
    gap: 0.75rem;
  }
.overview-content-column {
    padding: 1rem;
    border-radius: 1rem;
  }
.poster-wrapper {
    border-radius: 0.8rem;
    position: static;
  }
.main-poster-img {
    border-radius: 0.8rem;
  }
.movie-title {
    font-size: 1.1rem;
    line-height: 1.4;
  }
.tagline {
    font-size: 0.9rem;
  }
.cast-card {
    padding: 0.4rem 0.5rem;
  }
.cast-avatar {
    width: 2.8rem;
    height: 2.8rem;
  }
.details-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    padding: 0.7rem;
  }
.episode-status-block {
    gap: 0.4rem;
  }
.episode-count, .current-episode, .episode-progress {
    font-size: 0.75rem;
    padding: 0.15rem 0.6rem;
  }
.player-wide-wrapper {
    grid-column: 1 / -1;
    margin-top: 0;
  }
.player-controls {
    gap: 0.25rem;
    padding: 0.4rem;
  }
.player-controls button {
    font-size: 0.72rem;
    padding: 0.2rem 0.4rem;
  }
.player-controls input[type="range"] {
    min-width: 50px;
  }
.timeline-section, .episodes-section, .comments-section, .recommend-region {
    padding: 0 0.75rem 1rem;
  }
.timeline-track {
    gap: 1.5rem;
  }
.tooltip {
    position: static;
    opacity: 1;
    transform: none;
    white-space: normal;
    font-size: 0.7rem;
    margin-top: 0.2rem;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
  }
.recommend-row, .recommend-region:nth-child(even) .recommend-row, .recommend-region:nth-child(odd) .recommend-row, .recommend-region:nth-child(3) .recommend-row {
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
  }
a.recommend-card {
    padding: 0.4rem;
  }
[data-runtime="recommendation"] img {
    aspect-ratio: 4 / 3;
  }
footer {
    padding: 1rem 0.75rem;
    font-size: 0.75rem;
    gap: 0.5rem;
  }
.episode-header {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    gap: 0.5rem;
  }
.episode-summary {
    padding-left: 2.8rem;
    font-size: 0.8rem;
  }
.episode-number {
    width: 1.5rem;
    height: 1.5rem;
    font-size: 0.75rem;
  }}
@media (max-width: 400px) {.overview-shell {
    grid-template-columns: 1fr;
  }
.poster-column {
    grid-column: 1;
    grid-row: auto;
  }
.poster-wrapper {
    max-width: 180px;
    margin: 0 auto;
  }
.overview-content-column {
    grid-column: 1;
  }
.player-wide-wrapper {
    grid-column: 1;
  }
.recommend-row, .recommend-region:nth-child(even) .recommend-row, .recommend-region:nth-child(odd) .recommend-row, .recommend-region:nth-child(3) .recommend-row {
    grid-template-columns: 1fr;
  }
.cast-card-list {
    justify-content: center;
  }
.details-grid {
    grid-template-columns: 1fr 1fr;
  }
.episode-status-block {
    flex-direction: column;
    align-items: flex-start;
  }}

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}
