*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  font-size: 14px;
  scroll-behavior: smooth;
}
body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  background: #1a1e12;
  color: #d9d6c8;
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img, video {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  text-decoration: none;
  color: inherit;
}
button {
  background: none;
  border: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 1.2rem;
  background: #14170e;
  border-bottom: 2px solid #4a5c3a;
  position: sticky;
  top: 0;
  z-index: 100;
  flex-wrap: wrap;
}
a[data-contract="site-name"] {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: #c9b37e;
  text-decoration: none;
  white-space: nowrap;
  text-transform: uppercase;
}
a[data-contract="site-name"]:hover {
  color: #e3d3a5;
}
nav[data-contract="categories"] {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.8rem;
  align-items: center;
}
.runtime-category {
  color: #b8b2a2;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.2rem 0.6rem;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: all 0.2s ease;
  white-space: nowrap;
  letter-spacing: 1px;
}
.runtime-category:hover {
  color: #e3d3a5;
  border-color: #4a5c3a;
  background: rgba(74, 92, 58, 0.3);
}
main {
  max-width: 1440px;
  margin: 0 auto;
  padding: 1.2rem;
}
.hero-cinema {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 1rem;
  align-items: start;
  background: #1e2317;
  border: 1px solid #2e3823;
  border-radius: 6px;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}
.hero-media {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  min-width: 0;
}
.cast-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}
.cast-card {
  background: #242b1d;
  border: 1px solid #38442b;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 0.4rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.cast-card:hover {
  transform: translateY(-2px);
  border-color: #5a7048;
}
.cast-card.cast-lead {
  border-color: #8b1e1e;
  box-shadow: 0 0 0 1px #8b1e1e, 0 0 12px rgba(139, 30, 30, 0.3);
}
.cast-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #2a3121;
}
.cast-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #e3d3a5;
  padding: 0.3rem 0.2rem 0.1rem;
  letter-spacing: 1px;
}
.cast-lead .cast-name {
  color: #f0b3a0;
  font-size: 0.95rem;
  font-weight: 700;
}
.tagline-block {
  background: rgba(8, 12, 5, 0.65);
  border-left: 3px solid #8b1e1e;
  padding: 0.7rem 0.9rem;
  border-radius: 0 4px 4px 0;
}
.movie-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #f0d9a0;
  line-height: 1.3;
  margin-bottom: 0.3rem;
}
.tagline {
  font-size: 0.9rem;
  color: #b8b2a2;
  font-style: italic;
  letter-spacing: 0.5px;
}
.seo-description[hidden] {
  display: none;
}
.poster-wrapper {
  min-width: 0;
  align-self: start;
}
.main-poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 4px;
  border: 2px solid #3a4630;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}
.synopsis-panel {
  background: rgba(20, 24, 14, 0.8);
  padding: 0.8rem;
  border-radius: 4px;
  border: 1px solid #2a331f;
  min-width: 0;
}
.section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #c9b37e;
  border-bottom: 1px solid #3a4630;
  padding-bottom: 0.3rem;
  margin-bottom: 0.6rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.section-title::before {
  content: "";
  width: 4px;
  height: 1.1em;
  background: #8b1e1e;
  display: inline-block;
}
.synopsis-line {
  font-size: 0.82rem;
  color: #b8b2a2;
  margin-bottom: 0.4rem;
  line-height: 1.6;
}
.synopsis-line:last-child {
  margin-bottom: 0;
}
.episode-status {
  background: #1a2013;
  border: 1px solid #2a331f;
  border-radius: 4px;
  padding: 0.6rem 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  min-width: 0;
}
.episode-current {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.episode-label {
  font-size: 0.75rem;
  color: #8a8572;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.episode-number {
  font-size: 1.3rem;
  font-weight: 800;
  color: #f0b3a0;
}
.episode-total {
  font-size: 0.8rem;
  color: #8a8572;
}
.episode-meta {
  font-size: 0.8rem;
  color: #b8b2a2;
}
.details-panel {
  margin-top: 0.6rem;
  min-width: 0;
}
.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.3rem 0.6rem;
}
.detail-item {
  display: flex;
  gap: 0.3rem;
  background: rgba(26, 32, 19, 0.6);
  padding: 0.3rem 0.5rem;
  border-radius: 3px;
  border-left: 2px solid #4a5c3a;
}
.detail-item dt {
  color: #8a8572;
  font-size: 0.75rem;
  white-space: nowrap;
  font-weight: 500;
}
.detail-item dd {
  color: #d9d6c8;
  font-size: 0.8rem;
  font-weight: 600;
}
.player-zone {
  margin: 1.2rem 0;
  background: #14170e;
  border-radius: 6px;
  border: 1px solid #2e3823;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
}
.player-zone video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #0a0c06;
  min-width: 0;
}
.player-zone.theater-mode video {
  aspect-ratio: 21 / 9;
}
.player-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  padding: 0.5rem;
  background: #1e2415;
  border-top: 1px solid #2a331f;
}
.player-controls button {
  font-size: 0.75rem;
  padding: 0.3rem 0.6rem;
  border: 1px solid #3a4630;
  border-radius: 3px;
  color: #b8b2a2;
  background: #242b1d;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.player-controls button:hover {
  background: #3a4630;
  color: #f0d9a0;
}
body.lights-off main {
  filter: brightness(0.7);
}
body.lights-off .player-zone {
  filter: brightness(1.2);
}
.episodes-section {
  margin: 1.2rem 0;
  padding: 0.8rem 0;
}
.episode-scroll {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.6rem;
}
.episode-card {
  background: #1e2317;
  border: 1px solid #2e3823;
  border-radius: 4px;
  padding: 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
  min-width: 0;
}
.episode-card:hover {
  border-color: #4a5c3a;
  transform: translateY(-2px);
}
.episode-num {
  font-size: 2rem;
  font-weight: 800;
  color: #3a4630;
  line-height: 1;
  margin-bottom: 0.2rem;
}
.episode-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #e3d3a5;
}
.episode-summary {
  font-size: 0.78rem;
  color: #8a8572;
  line-height: 1.4;
  flex-grow: 1;
}
.episode-duration {
  font-size: 0.7rem;
  color: #6a6a58;
  border-top: 1px solid #2a331f;
  padding-top: 0.3rem;
  margin-top: 0.2rem;
  text-align: right;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.timeline-section {
  margin: 1.2rem 0;
  padding: 0.8rem;
  background: #1a2013;
  border: 1px solid #2e3823;
  border-radius: 6px;
}
.timeline-vertical {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: 1.2rem;
}
.timeline-vertical::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: #3a4630;
}
.timeline-item {
  display: flex;
  gap: 0.8rem;
  align-items: baseline;
  padding: 0.5rem 0;
  position: relative;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.2rem;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #8b1e1e;
  border: 2px solid #1a2013;
  box-shadow: 0 0 6px rgba(139, 30, 30, 0.6);
}
.timeline-time {
  font-size: 0.8rem;
  font-weight: 700;
  color: #f0b3a0;
  min-width: 3.5rem;
  white-space: nowrap;
}
.timeline-label {
  font-size: 0.85rem;
  color: #b8b2a2;
}
.comments-panel {
  margin: 1.2rem 0;
  padding: 0.8rem;
  background: #1a2013;
  border: 1px solid #2e3823;
  border-radius: 6px;
}
.comment-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.8rem;
}
.comment-bubble {
  background: #242b1d;
  border: 1px solid #38442b;
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.comment-bubble::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 14px;
  width: 10px;
  height: 10px;
  background: #242b1d;
  border-left: 1px solid #38442b;
  border-bottom: 1px solid #38442b;
  transform: rotate(45deg);
}
.comment-author {
  font-size: 0.8rem;
  font-weight: 700;
  color: #c9b37e;
}
.comment-text {
  font-size: 0.82rem;
  color: #b8b2a2;
  line-height: 1.5;
}
.recommend-region {
  margin: 1.2rem 0;
  padding: 0.8rem 0;
}
.recommend-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.8rem;
}
.rec-card {
  display: flex;
  flex-direction: column;
  background: #1e2317;
  border: 1px solid #2e3823;
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
  color: #d9d6c8;
  text-decoration: none;
  min-width: 0;
}
.rec-card:hover {
  transform: translateY(-3px);
  border-color: #8b1e1e;
}
.rec-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: #2a3121;
}
.rec-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #e3d3a5;
  padding: 0.4rem 0.5rem 0.1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rec-blurb {
  font-size: 0.75rem;
  color: #8a8572;
  padding: 0 0.5rem 0.5rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}
footer {
  background: #14170e;
  border-top: 2px solid #2a331f;
  padding: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  align-items: center;
  font-size: 0.8rem;
  color: #8a8572;
  margin-top: 1.5rem;
}
.footer-disclaimer {
  flex-basis: 100%;
  color: #6a6a58;
  font-size: 0.75rem;
  line-height: 1.5;
}
a[data-contract="footer-home"], a[data-contract="footer-sitemap"] {
  color: #b8b2a2;
  text-decoration: none;
  padding: 0.2rem 0.4rem;
  border-radius: 2px;
  transition: color 0.2s ease, background 0.2s ease;
}
a[data-contract="footer-home"]:hover, a[data-contract="footer-sitemap"]:hover {
  color: #f0d9a0;
  background: rgba(74, 92, 58, 0.3);
}
.friend-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.6rem;
  align-items: center;
  flex-basis: 100%;
}
.friend-label {
  color: #6a6a58;
  white-space: nowrap;
}
.runtime-friend-link {
  color: #8a8572;
  text-decoration: none;
  font-size: 0.75rem;
  padding: 0.1rem 0.3rem;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.runtime-friend-link:hover {
  color: #e3d3a5;
  border-color: #3a4630;
}
@media (max-width: 1024px) {.hero-cinema {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  }
.poster-wrapper {
    grid-column: 1 / -1;
    max-width: 320px;
    margin: 0 auto;
  }
.main-poster {
    max-width: 320px;
  }}
@media (max-width: 768px) {html {
    font-size: 13px;
  }
main {
    padding: 0.8rem;
  }
.hero-cinema {
    grid-template-columns: 1fr;
    gap: 0.8rem;
    padding: 0.8rem;
  }
.poster-wrapper {
    grid-column: auto;
    max-width: 260px;
    margin: 0 auto;
  }
.cast-grid {
    grid-template-columns: repeat(2, 1fr);
  }
.details-grid {
    grid-template-columns: 1fr 1fr;
  }
.episode-scroll {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
.recommend-row {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }
.comment-list {
    grid-template-columns: 1fr;
  }
.player-controls button {
    flex-grow: 1;
    text-align: center;
  }}
@media (max-width: 480px) {html {
    font-size: 12px;
  }
header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }
nav[data-contract="categories"] {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.2rem;
  }
.hero-cinema {
    padding: 0.6rem;
  }
.cast-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
  }
.movie-title {
    font-size: 1.2rem;
  }
.details-grid {
    grid-template-columns: 1fr;
  }
.episode-scroll {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.4rem;
  }
.recommend-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.4rem;
  }
.timeline-vertical {
    padding-left: 1rem;
  }
.timeline-item::before {
    left: -1rem;
  }
.player-controls {
    gap: 0.15rem;
  }
.player-controls button {
    font-size: 0.7rem;
    padding: 0.3rem 0.4rem;
    flex: 1 1 auto;
  }
footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
.friend-links {
    gap: 0.2rem 0.4rem;
  }}

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}
