*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}
body {
  background: #1a0f08;
  background-image: 
    repeating-linear-gradient(45deg, rgba(60, 35, 15, 0.15) 0, rgba(60, 35, 15, 0.15) 2px, transparent 2px, transparent 8px),
    radial-gradient(circle at 20% 30%, #2d1b0e 0%, #1a0f08 70%);
  color: #d9b98a;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  line-height: 1.5;
  min-height: 100vh;
}
img, video {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button, input {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
}
header {
  background: #241409;
  border-bottom: 2px solid #5a3a1a;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1.2rem;
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-name-link {
  color: #f0c674;
  font-family: "Songti SC", "SimSun", "Noto Serif CJK SC", serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: color 0.2s;
}
.site-name-link:hover {
  color: #ffdf9e;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.header-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
  align-items: center;
}
.runtime-category {
  color: #c89b6c;
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.6rem;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}
.runtime-category:hover {
  color: #f7d9a0;
  background: rgba(200, 150, 80, 0.15);
  border-radius: 3px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 640px) {header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    padding: 0.6rem;
  }
.header-categories {
    justify-content: flex-start;
    width: 100%;
  }}
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.2rem 2rem;
}
.movie-overview-panel {
  background: #2b1a0e;
  background-image: linear-gradient(135deg, #2b1a0e 0%, #3a2414 60%, #2e1b0d 100%);
  border: 1px solid #6b4a24;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(240, 200, 120, 0.05);
  display: grid;
  grid-template-columns: minmax(220px, 260px) 1fr;
  gap: 1.2rem;
  padding: 1.2rem;
  margin-bottom: 1.2rem;
}
.overview-poster-wrapper {
  align-self: start;
}
.main-poster-img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 4px;
  border: 2px solid #4a2c0e;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}
.overview-content-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}
.title-block {
  border-bottom: 1px solid rgba(200, 150, 80, 0.3);
  padding-bottom: 0.6rem;
}
.movie-title {
  color: #f0c674;
  font-family: "Songti SC", "SimSun", "Noto Serif CJK SC", serif;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
}
.movie-tagline {
  color: #c89b6c;
  font-size: 0.9rem;
  font-style: italic;
  margin-top: 0.2rem;
  letter-spacing: 0.08em;
}
.section-heading {
  color: #e8c488;
  font-family: "Songti SC", "SimSun", "Noto Serif CJK SC", serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  border-left: 3px solid #c89240;
  padding-left: 0.5rem;
  margin-bottom: 0.5rem;
}
.synopsis-panel {
  background: rgba(20, 10, 5, 0.3);
  border-radius: 4px;
  padding: 0.7rem 0.8rem;
}
.synopsis-paragraphs {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.synopsis-item {
  color: #d0b090;
  font-size: 0.9rem;
  line-height: 1.5;
}
.cast-panel {
  padding: 0 0.2rem;
}
.cast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.5rem;
}
.cast-card {
  background: rgba(20, 10, 5, 0.4);
  border: 1px solid rgba(160, 100, 40, 0.2);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  padding: 0.6rem 0.7rem;
}
.cast-name {
  color: #f0d4a0;
  font-family: "Songti SC", "SimSun", serif;
  font-size: 1rem;
  font-weight: 600;
}
.cast-role {
  color: #a08060;
  font-size: 0.8rem;
  margin-top: 0.1rem;
}
.episode-status-panel {
  background: rgba(20, 10, 5, 0.3);
  border-radius: 4px;
  padding: 0.7rem 0.8rem;
}
.progress-info-row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: #c8a878;
  margin-bottom: 0.5rem;
}
.total-episodes {
  font-weight: 500;
}
.current-episode {
  color: #e8b458;
}
.episode-status-bar {
  background: #1a0d05;
  border-radius: 999px;
  height: 10px;
  border: 1px solid #5a3a1a;
  padding: 1px;
}
.status-label {
  display: block;
  height: 100%;
  width: 50%;
  background: linear-gradient(90deg, #a87030, #e0b060);
  border-radius: 999px;
  font-size: 0.6rem;
  color: transparent;
  user-select: none;
  position: relative;
  overflow: hidden;
}
.status-label::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 8px, rgba(0,0,0,0.15) 8px 10px);
}
.details-panel {
  padding: 0 0.2rem;
}
.details-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.3rem 0.8rem;
}
.detail-row {
  display: flex;
  gap: 0.4rem;
  font-size: 0.85rem;
  border-bottom: 1px dotted rgba(160, 100, 40, 0.2);
  padding: 0.2rem 0;
}
.detail-term {
  color: #a08060;
  white-space: nowrap;
  min-width: 3.5em;
}
.detail-value {
  color: #d0b090;
  margin-left: 0.2rem;
}
.player-wrapper {
  grid-column: 1 / -1;
  margin-top: 0.4rem;
  background: #150b05;
  border-radius: 6px;
  padding: 0.6rem;
  border: 1px solid #4a2c0e;
  min-width: 0;
}
.player-wrapper video {
  border-radius: 4px;
  background: #000;
}
.player-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin-top: 0.5rem;
}
.ctrl-btn {
  background: #1f1208;
  border: 1px solid #4a2c0e;
  border-radius: 3px;
  color: #c8a878;
  cursor: pointer;
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  transition: background 0.2s, color 0.2s;
}
.ctrl-btn:hover {
  background: #3a2414;
  color: #f0d4a0;
}
.ctrl-btn.active {
  background: #5a3a1a;
  color: #ffe8b0;
  border-color: #c89240;
}
.ctrl-progress {
  flex: 1 1 120px;
  min-width: 80px;
  height: 5px;
  accent-color: #c89240;
}
.ctrl-volume {
  width: 70px;
  height: 5px;
  accent-color: #c89240;
}
.player-wrapper.theater-mode {
  background: #0a0502;
  border-color: #c89240;
  padding: 0;
}
.player-wrapper.theater-mode video {
  border-radius: 0;
}
.player-wrapper.lights-off {
  background: #000;
  border-color: #000;
}
.player-wrapper.lights-off video {
  opacity: 0.9;
}
.timeline-panel {
  margin-bottom: 1.4rem;
}
.timeline-scroll-container {
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #5a3a1a #1a0f08;
  padding: 0.6rem 0;
}
.timeline-track {
  display: flex;
  gap: 0.6rem;
  width: max-content;
  padding: 0.2rem 0.2rem 0.6rem;
}
.timeline-item {
  background: #2b1a0e;
  border: 1px solid #4a2c0e;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.8rem;
  min-width: 140px;
  max-width: 180px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  position: relative;
}
.timeline-item::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 20%;
  width: 60%;
  height: 2px;
  background: #5a3a1a;
}
.timeline-timecode {
  color: #e0a050;
  font-family: "Songti SC", "SimSun", serif;
  font-size: 0.95rem;
  font-weight: 600;
}
.timeline-label {
  color: #c8a878;
  font-size: 0.8rem;
  line-height: 1.4;
}
.episodes-panel {
  margin-bottom: 1.4rem;
}
.episodes-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 0.7rem;
}
.episode-card {
  background: #2b1a0e;
  border: 1px solid #4a2c0e;
  border-radius: 6px;
  display: flex;
  gap: 0.6rem;
  padding: 0.7rem;
  transition: border-color 0.2s, transform 0.2s;
}
.episode-card:hover {
  border-color: #c89240;
  transform: translateY(-2px);
}
.episode-number {
  background: #1a0d05;
  color: #e0b060;
  font-family: "Songti SC", "SimSun", serif;
  font-size: 1.2rem;
  font-weight: 700;
  border-radius: 4px;
  min-width: 2.2em;
  height: 2.2em;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #5a3a1a;
}
.episode-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.episode-title {
  color: #f0c674;
  font-family: "Songti SC", "SimSun", serif;
  font-size: 1rem;
  font-weight: 600;
}
.episode-summary {
  color: #b09070;
  font-size: 0.8rem;
  line-height: 1.4;
}
.episode-duration {
  color: #806040;
  font-size: 0.75rem;
  font-style: italic;
}
.comments-panel {
  margin-bottom: 1.4rem;
}
.comments-scroll-container {
  overflow-x: auto;
  scrollbar-width: thin;
  padding: 0.4rem 0 0.8rem;
}
.comments-track {
  display: flex;
  gap: 0.8rem;
  width: max-content;
}
.comment-card {
  background: #2b1a0e;
  border: 1px solid #4a2c0e;
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
  min-width: 200px;
  max-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  position: relative;
}
.comment-card::before {
  content: "“";
  position: absolute;
  top: 0.2rem;
  left: 0.3rem;
  font-size: 1.8rem;
  color: #5a3a1a;
  font-family: serif;
}
.comment-nickname {
  color: #e0b060;
  font-size: 0.85rem;
  font-weight: 600;
  padding-left: 0.8rem;
}
.comment-text {
  color: #c0a080;
  font-size: 0.85rem;
  line-height: 1.5;
  padding-left: 0.8rem;
}
.recommendation-region {
  margin-bottom: 1.4rem;
}
.recommendation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 0.8rem;
}
.recommendation-item {
  background: #2b1a0e;
  border: 1px solid #4a2c0e;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.5rem;
  transition: border-color 0.2s, transform 0.2s;
  align-self: start;
  color: inherit;
  text-decoration: none;
}
.recommendation-item:hover {
  border-color: #c89240;
  transform: translateY(-2px);
  text-decoration: none;
}
.recommendation-item[data-runtime="recommendation"] img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 4px;
  background: #1a0d05;
}
.reco-name {
  color: #f0c674;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
}
.reco-blurb {
  color: #a08060;
  font-size: 0.75rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
footer {
  background: #241409;
  border-top: 2px solid #5a3a1a;
  padding: 1.2rem 1.2rem 1.5rem;
  margin-top: 1rem;
}
.footer-disclaimer {
  color: #806040;
  font-size: 0.75rem;
  line-height: 1.5;
  max-width: 900px;
  margin-bottom: 0.8rem;
}
.footer-links {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.8rem;
}
.footer-link {
  color: #c89b6c;
  font-size: 0.85rem;
  text-decoration: none;
}
.footer-link:hover {
  color: #f0c674;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.friend-links-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.8rem;
  align-items: center;
  font-size: 0.8rem;
}
.friend-links-label {
  color: #806040;
  white-space: nowrap;
}
.runtime-friend-link {
  color: #b09878;
  font-size: 0.8rem;
  text-decoration: none;
}
.runtime-friend-link:hover {
  color: #e8c488;
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 900px) {.movie-overview-panel {
    grid-template-columns: 180px 1fr;
    gap: 0.8rem;
    padding: 0.8rem;
  }}
@media (max-width: 700px) {main {
    padding: 0.6rem;
  }
.movie-overview-panel {
    grid-template-columns: 1fr;
    gap: 0.8rem;
    padding: 0.8rem;
  }
.overview-poster-wrapper {
    max-width: 220px;
    margin: 0 auto;
  }
.player-wrapper {
    grid-column: 1;
  }
.progress-info-row {
    flex-direction: column;
    gap: 0.2rem;
  }
.episodes-list {
    grid-template-columns: 1fr;
  }
.recommendation-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
.cast-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
.details-list {
    grid-template-columns: 1fr 1fr;
  }}
@media (max-width: 480px) {html {
    font-size: 14px;
  }
.movie-title {
    font-size: 1.3rem;
  }
.header-categories {
    gap: 0.2rem;
  }
.runtime-category {
    font-size: 0.7rem;
    padding: 0.1rem 0.4rem;
  }
.player-controls {
    gap: 0.3rem;
  }
.ctrl-btn {
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
  }
.ctrl-progress {
    flex-basis: 100%;
    min-width: 100%;
  }
.timeline-item {
    min-width: 120px;
    padding: 0.6rem;
  }
.comment-card {
    min-width: 170px;
  }
.recommendation-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
.details-list {
    grid-template-columns: 1fr;
  }}
.player-wrapper.theater-mode {
  max-width: none;
  width: 100%;
}
.player-wrapper.lights-off {
  background: #000;
}
.player-wrapper.lights-off video {
  opacity: 0.85;
}
.player-wrapper.lights-off .player-controls {
  opacity: 0.5;
}
.player-wrapper.lights-off .player-controls:hover {
  opacity: 1;
}
@media (max-width: 480px) {.player-wrapper {
    min-width: 480px;
    max-width: none;
  }
.movie-overview-panel {
    min-width: 480px;
  }}

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}
