*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; scroll-behavior: smooth; }
body {
  font-family: "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #1c1917; color: #d6cfc7; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
h1, h2, h3 { font-weight: 700; }
.site-header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: 2rem;
  padding: 0.9rem 2rem;
  background: rgba(28,25,23,0.92); backdrop-filter: blur(6px);
  border-bottom: 1px solid #3d2b2b;
}
.site-logo {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem; font-weight: 700; letter-spacing: 0.08em;
  color: #c9a86a; text-transform: uppercase;
}
.site-logo:hover { color: #e0c38c; }
.main-categories { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.runtime-category {
  display: inline-block; white-space: nowrap;
  font-size: 0.82rem; color: #b8ada1;
  padding: 0.25rem 0.55rem; border-radius: 2px;
  border: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.runtime-category:hover { color: #c9a86a; border-color: #4a3a2a; }
.page-main { max-width: 1400px; margin: 0 auto; padding: 0 2rem; }
.movie-overview-block {
  margin: 1.5rem 0 2rem;
  background: #211e1c; border: 1px solid #3a2e2a;
  border-radius: 4px; padding: 1.5rem 1.5rem 2rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.poster-hero-wrap { display: flex; gap: 2rem; align-items: flex-start; margin-bottom: 2rem; }
.poster-column { flex: 0 0 auto; }
.poster-frame {
  width: 280px; border-radius: 3px; overflow: hidden;
  border: 1px solid #3d2b2b; box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}
.main-poster-img { width: 100%; aspect-ratio: 2/3; object-fit: cover; }
.hero-content-column { flex: 1; padding-top: 0.5rem; }
.movie-title {
  font-family: Georgia, serif; font-size: 2.2rem; line-height: 1.2;
  color: #e8ddcf; margin-bottom: 0.6rem;
  border-left: 4px solid #a12b2b; padding-left: 1rem;
}
.movie-tagline {
  font-size: 1.05rem; color: #b8ada1; font-style: italic;
  margin-bottom: 1.2rem; padding-left: 1.3rem;
}
.title-meta-row { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; padding-left: 1.3rem; }
.meta-rating { color: #d4a94e; font-weight: 700; font-size: 1.1rem; }
.meta-year, .meta-region, .meta-duration { color: #9a8e82; font-size: 0.92rem; }
.meta-rating::before { content: "★ "; font-size: 0.85rem; }
.overview-split-layout {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.5rem;
  border-top: 1px solid #3a2e2a; padding-top: 1.8rem; margin-bottom: 1.8rem;
}
.synopsis-panel .section-heading { margin-bottom: 1rem; }
.synopsis-paragraph { margin-bottom: 0.8rem; font-size: 0.95rem; color: #cbc2b8; }
.synopsis-paragraph:last-child { margin-bottom: 0; }
.visual-side { align-self: start; }
.visual-media-wrap { border-radius: 3px; overflow: hidden; border: 1px solid #3d2b2b; }
.side-visual-img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.section-heading {
  font-family: Georgia, serif; font-size: 1.3rem; color: #e0d4c5;
  border-bottom: 1px solid #3a2e2a; padding-bottom: 0.5rem; margin-bottom: 1rem;
  letter-spacing: 0.03em; position: relative;
}
.section-heading::after {
  content: ""; position: absolute; bottom: -1px; left: 0;
  width: 3.5rem; height: 2px; background: #a12b2b;
}
.player-wrap { margin-bottom: 2rem; }
.feature-player { border-radius: 3px; background: #000; }
.player-control-bar {
  display: flex; flex-wrap: wrap; gap: 0.3rem;
  background: #2a2623; padding: 0.5rem; margin-top: 0.4rem;
  border: 1px solid #3d2b2b; border-radius: 2px;
}
.player-btn {
  font-size: 0.8rem; padding: 0.3rem 0.7rem; border-radius: 2px;
  border: 1px solid #4a3a2a; color: #cbc2b8; background: #332d2a;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.player-btn:hover { background: #4a3a2a; color: #e8ddcf; }
.player-btn.active-state { background: #a12b2b; border-color: #a12b2b; color: #fff; }
.player-progress-wrap, .player-volume-wrap { display: inline-flex; gap: 0.3rem; }
.player-wrap.theater-mode { max-width: 1200px; margin-left: auto; margin-right: auto; }
.player-wrap.theater-mode .feature-player { width: 100%; }
body.lights-off .page-main { filter: brightness(0.6); transition: filter 0.3s; }
.details-cast-wrap {
  display: grid; grid-template-columns: 1.2fr 0.8fr 0.7fr; gap: 1rem;
  border-top: 1px solid #3a2e2a; padding-top: 1.5rem;
}
.details-panel, .cast-panel, .episode-status-panel { align-self: start; }
.details-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem 1rem; }
.detail-item { display: flex; gap: 0.5rem; font-size: 0.88rem; }
.detail-item dt { color: #8a7e72; font-weight: 400; flex: 0 0 auto; }
.detail-item dd { color: #d6cfc7; }
.cast-panel .actor-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0.35rem; }
.actor-item { font-size: 0.95rem; color: #d6cfc7; padding: 0.25rem 0.5rem; border-left: 2px solid #a12b2b; background: #2a2623; border-radius: 0 2px 2px 0; }
.episode-status-panel { font-size: 0.95rem; }
.episode-count-text, .current-episode-text { margin-bottom: 0.5rem; color: #cbc2b8; }
.total-episodes-num, .current-episode-num {
  font-family: "SF Mono", "Cascadia Mono", Consolas, monospace;
  font-size: 1.2rem; color: #d4a94e; font-weight: 600;
}
.timeline-section { margin: 2rem 0; }
.timeline-container {
  position: relative; padding: 1rem 0 0.5rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 3rem;
}
.timeline-container::before {
  content: ""; position: absolute; top: 0.8rem; bottom: 0.8rem; left: 50%;
  width: 1px; background: #a12b2b; transform: translateX(-50%);
}
.timeline-entry { position: relative; padding: 0.8rem 1rem; background: #211e1c; border: 1px solid #3a2e2a; border-radius: 3px; }
.timeline-entry::before {
  content: ""; position: absolute; top: 1.2rem; width: 8px; height: 8px;
  background: #d4a94e; border-radius: 50%; border: 1px solid #8a6d2a;
}
.timeline-entry:nth-child(odd)::before { right: -4px; transform: translateX(4px); }
.timeline-entry:nth-child(even)::before { left: -4px; transform: translateX(-4px); }
.timeline-entry:nth-child(odd) { margin-right: 2rem; }
.timeline-entry:nth-child(even) { margin-left: 2rem; }
.timeline-time {
  display: block; font-family: "SF Mono", "Cascadia Mono", Consolas, monospace;
  font-size: 0.9rem; color: #d4a94e; margin-bottom: 0.25rem;
}
.timeline-label { font-size: 0.9rem; color: #d6cfc7; line-height: 1.4; }
.episodes-section { margin: 2rem 0; }
.episodes-scroll-wrap {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem;
}
.episode-card {
  background: #211e1c; border: 1px solid #3a2e2a; border-radius: 3px;
  padding: 0.9rem; transition: border-color 0.2s, background 0.2s;
  position: relative;
}
.episode-card:hover { border-color: #a12b2b; background: #2a2623; }
.episode-number {
  font-family: "SF Mono", "Cascadia Mono", Consolas, monospace;
  font-size: 1.4rem; font-weight: 700; color: #a12b2b; display: block; margin-bottom: 0.3rem;
}
.episode-title { font-size: 1rem; color: #e8ddcf; margin-bottom: 0.3rem; }
.episode-summary {
  font-size: 0.8rem; color: #9a8e82; line-height: 1.4;
  max-height: 0; overflow: hidden; transition: max-height 0.25s ease;
}
.episode-card:hover .episode-summary { max-height: 6rem; }
.episode-duration {
  display: block; font-size: 0.75rem; color: #8a7e72; margin-top: 0.4rem;
  font-family: "SF Mono", "Cascadia Mono", Consolas, monospace;
}
.comments-section { margin: 2rem 0; }
.comments-grid-layout {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
.comment-bubble-item { display: flex; gap: 0.6rem; align-items: flex-start; }
.avatar-circle {
  flex: 0 0 auto; width: 2.2rem; height: 2.2rem; border-radius: 50%;
  background: #a12b2b; color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.comment-bubble {
  background: #211e1c; border: 1px solid #3a2e2a; border-radius: 3px 3px 3px 0;
  padding: 0.6rem 0.8rem; position: relative; flex: 1;
}
.comment-bubble::before {
  content: ""; position: absolute; left: -5px; top: 8px;
  border: 5px solid transparent; border-right-color: #3a2e2a;
}
.comment-nickname { font-size: 0.85rem; color: #d4a94e; font-weight: 600; margin-bottom: 0.3rem; }
.comment-text { font-size: 0.85rem; color: #cbc2b8; line-height: 1.5; }
.recommendation-region { margin: 2rem 0; }
.recommendation-heading { font-family: Georgia, serif; font-size: 1.2rem; color: #e0d4c5; margin-bottom: 1rem; }
.rec-scroll-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem;
}
.rec-card {
  display: flex; flex-direction: column; gap: 0.3rem;
  background: #211e1c; border: 1px solid #3a2e2a; border-radius: 3px;
  padding: 0.6rem; transition: border-color 0.2s, transform 0.1s;
  align-self: start;
}
.rec-card:hover { border-color: #a12b2b; transform: translateY(-2px); }
.rec-img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 2px; }
.rec-name { font-size: 0.9rem; color: #e8ddcf; font-weight: 600; line-height: 1.3; }
.rec-blurb { font-size: 0.8rem; color: #9a8e82; line-height: 1.4; }
.site-footer {
  border-top: 1px solid #3d2b2b; padding: 1.5rem 2rem 2rem;
  background: #1c1917; margin-top: 2rem;
}
.footer-disclaimer { font-size: 0.8rem; color: #8a7e72; margin-bottom: 1rem; max-width: 900px; }
.footer-links-row { display: flex; gap: 1rem; margin-bottom: 1rem; }
.footer-link { font-size: 0.9rem; color: #b8ada1; transition: color 0.15s; }
.footer-link:hover { color: #c9a86a; }
.footer-friend-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; align-items: baseline; }
.friend-links-label { color: #8a7e72; font-size: 0.85rem; }
.runtime-friend-link { font-size: 0.85rem; color: #9a8e82; transition: color 0.15s; }
.runtime-friend-link:hover { color: #c9a86a; }
@media (max-width: 1100px) {.episodes-scroll-wrap { grid-template-columns: repeat(3, 1fr); }
.comments-grid-layout { grid-template-columns: repeat(2, 1fr); }
.rec-scroll-row { grid-template-columns: repeat(2, 1fr); }}
@media (max-width: 900px) {.page-main { padding: 0 1rem; }
.poster-hero-wrap { flex-direction: column; }
.poster-frame { width: 220px; }
.overview-split-layout { grid-template-columns: 1fr; }
.visual-side { order: -1; }
.details-cast-wrap { grid-template-columns: 1fr 1fr; }
.episode-status-panel { grid-column: 1 / -1; }
.timeline-container { grid-template-columns: 1fr; }
.timeline-container::before { left: 8px; transform: none; }
.timeline-entry:nth-child(odd), .timeline-entry:nth-child(even) { margin: 0 0 0 2rem; }
.timeline-entry::before, .timeline-entry:nth-child(odd)::before, .timeline-entry:nth-child(even)::before { left: -1.3rem; right: auto; transform: none; }}
@media (max-width: 700px) {.site-header { flex-direction: column; align-items: flex-start; gap: 0.5rem; padding: 0.7rem 1rem; }
.main-categories { gap: 0.3rem; }
.movie-title { font-size: 1.6rem; }
.details-cast-wrap { grid-template-columns: 1fr; }
.episode-status-panel { grid-column: auto; }
.episodes-scroll-wrap { grid-template-columns: repeat(2, 1fr); }
.comments-grid-layout { grid-template-columns: 1fr; }
.rec-scroll-row { grid-template-columns: 1fr; }
.details-list { grid-template-columns: 1fr; }
.poster-frame { width: 180px; }
.player-control-bar { gap: 0.2rem; }
.player-btn { padding: 0.25rem 0.5rem; font-size: 0.75rem; }}
@media (max-width: 480px) {html { font-size: 14px; }
.page-main { padding: 0 0.5rem; }
.episodes-scroll-wrap { grid-template-columns: 1fr; }
.movie-overview-block { padding: 1rem; }
.poster-frame { width: 100%; max-width: 220px; }
.player-wrap { min-width: 0; }
.feature-player { width: 100%; }
.site-footer { padding: 1rem; }}

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}
