*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  background: #3a2b20;
  background-image: repeating-linear-gradient(45deg, rgba(0,0,0,0.06) 0 8px, transparent 8px 16px);
  color: #f2e8d8;
  font-family: "Songti SC", "SimSun", "Noto Serif CJK SC", serif;
  line-height: 1.55;
  min-height: 100vh;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.site-header {
  background: #2b1f16;
  border-bottom: 3px solid #8a6a4f;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  padding: 10px 16px 12px;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
}
.brand-link {
  color: #e8d5b8;
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: 0.06em;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
  white-space: nowrap;
}
.brand-link:hover { color: #fff; text-decoration: none; }
.categories-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  flex: 1;
  min-width: 200px;
  justify-content: flex-end;
}
a.runtime-category {
  background: #4a3624;
  border: 1px solid #6e5740;
  border-radius: 14px;
  color: #e0cdb2;
  font-size: 0.82rem;
  padding: 2px 10px;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
a.runtime-category:hover {
  background: #6e4f2f;
  color: #fff;
  text-decoration: none;
}
.main-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 14px 14px 30px;
}
.panel {
  background: #3f2f22;
  border-radius: 12px;
  border: 1px solid #5c4430;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04), 0 3px 10px rgba(0,0,0,0.4);
  margin-bottom: 18px;
  overflow: hidden;
}
.movie-overview { padding: 0; }
.overview-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 0;
}
.poster-wrapper {
  background: #2a1f16;
  border-right: 2px solid #6e5740;
}
.main-poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  min-height: 100%;
}
.info-column {
  padding: 16px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.title-group { border-bottom: 1px solid #5c4430; padding-bottom: 10px; }
.movie-title {
  font-size: 1.65rem;
  font-weight: 700;
  color: #f4e8d4;
  letter-spacing: 0.03em;
  line-height: 1.3;
}
.movie-tagline {
  color: #c9a77e;
  font-size: 1rem;
  margin-top: 6px;
  font-style: italic;
}
.cast-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.meta-label {
  font-size: 0.9rem;
  color: #b08a63;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.actor-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
}
.actor-item {
  font-size: 0.95rem;
  color: #e8d5b8;
  padding: 0 4px;
  border-left: 2px solid #8a6a4f;
  padding-left: 8px;
}
.actor-item::after { content: "·"; color: #8a6a4f; margin-left: 10px; }
.actor-item:last-child::after { content: ""; }
.synopsis-block { display: flex; flex-direction: column; gap: 6px; }
.section-subtitle {
  font-size: 1.05rem;
  font-weight: 700;
  color: #d4b892;
  border-left: 4px solid #a67a4e;
  padding-left: 10px;
}
.synopsis-paragraph {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #e5d9c8;
  text-align: justify;
}
.episode-status {
  background: #33271c;
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.current-episode, .total-episodes {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f0dbb8;
  background: #4a3624;
  border-radius: 12px;
  padding: 2px 12px;
  border: 1px solid #6e5740;
}
.total-episodes { color: #c0a17a; font-weight: 400; }
.player-wrapper {
  width: 100%;
  min-width: 0;
  position: relative;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 6px;
}
.player-wrapper video {
  display: block;
  width: 100%;
  height: auto;
}
.player-controls {
  display: flex;
  gap: 6px;
  padding: 6px 8px;
  background: rgba(0,0,0,0.55);
  border-top: 1px solid #4a3624;
}
.ctrl-btn {
  background: #3a2b20;
  border: 1px solid #6e5740;
  color: #e8d5b8;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 0.85rem;
  cursor: pointer;
  flex: 0 0 auto;
}
.ctrl-btn:hover { background: #5c4430; color: #fff; }
.player-wrapper.theater-mode {
  position: fixed;
  inset: 0;
  z-index: 1000;
  border-radius: 0;
  background: #000;
  margin: 0;
}
.player-wrapper.theater-mode video { height: 100vh; width: 100%; object-fit: contain; }
.player-wrapper.theater-mode .player-controls { position: absolute; bottom: 0; left: 0; right: 0; }
body.lights-dim::after {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 999;
  pointer-events: none;
}
body.lights-dim .player-wrapper.theater-mode { z-index: 1001; }
body.lights-dim .player-wrapper.theater-mode + * { position: relative; z-index: 1002; }
.details-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px 14px;
  border-top: 1px solid #5c4430;
  padding-top: 12px;
}
.detail-item {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.detail-label {
  font-size: 0.75rem;
  color: #a98a68;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.detail-value {
  font-size: 0.95rem;
  color: #e8d9c5;
}
.timeline-section { padding: 18px 20px; }
.section-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #e0c49a;
  border-bottom: 2px solid #8a6a4f;
  padding-bottom: 8px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title::after {
  content: "◼";
  font-size: 0.7rem;
  color: #a67a4e;
  margin-left: auto;
}
.timeline-list {
  position: relative;
  padding-left: 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.timeline-list::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 4px;
  bottom: 4px;
  width: 3px;
  background: linear-gradient(to bottom, #8a6a4f, #5c4430, #3a2b20);
  border-radius: 3px;
}
.timeline-entry {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px 0;
}
.timeline-node {
  position: absolute;
  left: -33px;
  top: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #2b1f16;
  border: 3px solid #a67a4e;
  box-shadow: inset 0 0 0 2px #2b1f16;
}
.timeline-node::after {
  content: "⚒";
  position: absolute;
  inset: -3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: #d4b892;
}
.timeline-content {
  background: #33271c;
  border-radius: 10px;
  padding: 10px 14px;
  border-left: 3px solid #a67a4e;
}
.timecode {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #c9a77e;
  background: #4a3624;
  border-radius: 10px;
  padding: 1px 10px;
  margin-bottom: 5px;
}
.timeline-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #e5d9c8;
}
.episodes-horizontal { padding: 18px 16px; }
.episode-scroll {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
}
.episode-card {
  background: #33271c;
  border-radius: 10px;
  padding: 12px;
  border: 1px solid #4a3624;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.episode-card:hover {
  border-color: #8a6a4f;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.ep-number {
  font-size: 1.1rem;
  font-weight: 700;
  color: #d4b892;
  background: #4a3624;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #6e5740;
}
.ep-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #f0e0c8;
  margin-top: 4px;
}
.ep-summary {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #cbb89e;
  flex: 1;
}
.ep-duration {
  font-size: 0.8rem;
  color: #a98a68;
  border-top: 1px dashed #4a3624;
  padding-top: 6px;
  margin-top: auto;
}
.cast-grid-section { padding: 18px 20px; }
.cast-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.cast-cell {
  background: #33271c;
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  border: 1px solid #4a3624;
}
.cast-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #2a1f16;
  border-radius: 8px;
  filter: grayscale(1) contrast(1.1);
  border: 2px solid #5c4430;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: #8a6a4f;
}
.cast-photo::after { content: "☍"; }
.cast-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #f0e0c8;
}
.cast-role {
  font-size: 0.85rem;
  color: #b08a63;
}
.comments-section { padding: 18px 20px; }
.comment-masonry {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  align-items: start;
}
.comment-bubble {
  background: #33271c;
  border-radius: 16px 16px 16px 4px;
  padding: 12px 16px;
  position: relative;
  border: 1px solid #4a3624;
}
.comment-bubble:nth-child(even) {
  border-radius: 16px 16px 4px 16px;
}
.comment-bubble::before {
  content: "";
  position: absolute;
  bottom: 6px;
  left: -6px;
  width: 12px;
  height: 12px;
  background: #33271c;
  border-left: 1px solid #4a3624;
  border-bottom: 1px solid #4a3624;
  transform: rotate(45deg);
}
.comment-bubble:nth-child(even)::before {
  left: auto;
  right: -6px;
  transform: rotate(-135deg);
}
.comment-author {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #c9a77e;
  margin-bottom: 6px;
  background: #4a3624;
  border-radius: 10px;
  padding: 1px 10px;
}
.comment-text {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #e5d9c8;
}
.recommend-region {
  margin-bottom: 18px;
}
.recommend-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #e0c49a;
  padding: 0 4px 8px;
  margin: 0 0 10px;
  border-bottom: 2px solid #5c4430;
}
.rec-scroll {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  padding: 0 4px;
}
a.rec-card {
  background: #33271c;
  border-radius: 10px;
  border: 1px solid #4a3624;
  overflow: hidden;
  display: block;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  padding-bottom: 10px;
}
a.rec-card:hover {
  border-color: #a67a4e;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  text-decoration: none;
}
[data-runtime="recommendation"] img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #2a1f16;
  border-bottom: 2px solid #4a3624;
}
[data-runtime="recommendation"] [data-runtime="name"] {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: #f0e0c8;
  padding: 8px 10px 2px;
}
[data-runtime="recommendation"] [data-runtime="blurb"] {
  display: block;
  font-size: 0.8rem;
  color: #b09a7c;
  padding: 0 10px;
  line-height: 1.4;
}
.site-footer {
  background: #2b1f16;
  border-top: 3px solid #8a6a4f;
  padding: 18px 20px 24px;
  margin-top: 10px;
}
.disclaimer {
  font-size: 0.82rem;
  color: #b09a7c;
  line-height: 1.6;
  margin-bottom: 14px;
  border-left: 3px solid #5c4430;
  padding-left: 12px;
}
.footer-links {
  display: flex;
  gap: 18px;
  margin-bottom: 12px;
}
a[data-contract="footer-home"], a[data-contract="footer-sitemap"] {
  color: #d4b892;
  font-size: 0.95rem;
}
a[data-contract="footer-home"]:hover, a[data-contract="footer-sitemap"]:hover {
  color: #fff;
  text-decoration: underline;
}
.friend-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  align-items: center;
}
.friend-label {
  font-size: 0.85rem;
  color: #a98a68;
}
a.runtime-friend-link {
  font-size: 0.85rem;
  color: #c9a77e;
  padding: 2px 6px;
  border-radius: 4px;
}
a.runtime-friend-link:hover {
  color: #fff;
  text-decoration: underline;
  background: #3a2b20;
}
@media (max-width: 1024px) {.overview-grid {
    grid-template-columns: 180px minmax(0, 1fr);
  }
.details-grid {
    grid-template-columns: repeat(3, 1fr);
  }
.episode-scroll {
    grid-template-columns: repeat(3, 1fr);
  }}
@media (max-width: 768px) {.overview-grid {
    grid-template-columns: 1fr;
  }
.poster-wrapper {
    border-right: none;
    border-bottom: 2px solid #6e5740;
  }
.main-poster {
    max-width: 280px;
    margin: 0 auto;
  }
.info-column {
    padding: 14px;
  }
.details-grid {
    grid-template-columns: repeat(2, 1fr);
  }
.episode-scroll {
    grid-template-columns: repeat(2, 1fr);
    overflow-x: visible;
  }
.cast-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
.comment-masonry {
    grid-template-columns: 1fr;
  }
.rec-scroll {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }}
@media (max-width: 480px) {.main-container {
    padding: 8px 8px 20px;
  }
.brand-link {
    font-size: 1.2rem;
  }
.categories-nav {
    justify-content: flex-start;
  }
.movie-title {
    font-size: 1.3rem;
  }
.details-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
.episode-scroll {
    grid-template-columns: 1fr;
    gap: 10px;
  }
.episode-card {
    padding: 10px;
  }
.cast-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
.cast-photo {
    aspect-ratio: 1 / 0.9;
  }
.rec-scroll {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
.player-controls {
    flex-wrap: wrap;
  }
.ctrl-btn {
    flex: 1 1 auto;
    font-size: 0.75rem;
    padding: 2px 6px;
  }
.timeline-list {
    padding-left: 30px;
  }
.timeline-list::before {
    left: 9px;
  }
.timeline-node {
    left: -24px;
    width: 18px;
    height: 18px;
  }
.timeline-node::after {
    font-size: 0.55rem;
    inset: -2px;
  }
.site-footer {
    padding: 14px;
  }}

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}
