*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, p, dl, dd, dt, ol, ul, li { margin: 0; padding: 0; }
ol, ul { list-style: none; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
:root {
  --sand: #d8c39a;
  --sand-deep: #c7ad7e;
  --sand-pale: #ece0c8;
  --slate: #4d5a5c;
  --slate-soft: #77858a;
  --slate-line: #b3bcba;
  --ink: #2b2f2e;
  --umber: #3a2c22;
  --umber-deep: #241a13;
  --paper: #f2ece0;
  --paper-grey: #e7e5dd;
  --note-bg: #e9e6dd;
  --maxw: 1180px;
}
html { background: var(--sand); }
body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(58, 44, 34, 0.18) 0%, rgba(216, 195, 154, 0) 22%),
    repeating-linear-gradient(104deg, rgba(58, 44, 34, 0.05) 0 1px, rgba(216, 195, 154, 0) 1px 9px),
    linear-gradient(180deg, #dcc9a2 0%, #d3bd93 38%, #c9b488 70%, #bda87e 100%);
  background-attachment: fixed;
  line-height: 1.55;
  font-size: 15px;
  letter-spacing: 0.01em;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(180deg, rgba(36, 26, 19, 0.94), rgba(58, 44, 34, 0.9));
  border-bottom: 1px solid rgba(216, 195, 154, 0.35);
  backdrop-filter: blur(6px);
}
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 9px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}
a[data-contract="site-name"] {
  color: var(--sand-pale);
  text-decoration: none;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.16em;
  padding-right: 14px;
  border-right: 1px solid rgba(216, 195, 154, 0.4);
}
a[data-contract="site-name"]:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.categories-shell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  min-width: 0;
}
a.runtime-category {
  display: inline-block;
  white-space: nowrap;
  color: #cbbd9e;
  text-decoration: none;
  font-size: 13px;
  padding: 2px 9px;
  border: 1px solid rgba(216, 195, 154, 0.35);
  background: rgba(216, 195, 154, 0.08);
}
a.runtime-category:hover {
  color: var(--umber-deep);
  background: var(--sand);
  border-color: var(--sand);
}
.page-main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 16px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.section-heading {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--umber);
  text-transform: none;
  padding-left: 9px;
  border-left: 4px solid var(--slate);
  margin-bottom: 9px;
}
.hero-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: linear-gradient(180deg, rgba(242, 236, 224, 0.92), rgba(233, 226, 210, 0.88));
  border: 1px solid rgba(58, 44, 34, 0.28);
  padding: 14px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset;
}
.hero-visual {
  display: grid;
  grid-template-columns: minmax(0, 172px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.poster-shell {
  position: relative;
  align-self: start;
  border: 1px solid var(--umber);
  background: var(--umber-deep);
  box-shadow: 5px 5px 0 rgba(58, 44, 34, 0.22);
}
.poster-shell img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}
.hero-slogan {
  min-width: 0;
  padding-top: 2px;
  border-top: 3px solid var(--slate);
}
.hero-tagline {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--umber-deep);
  margin-bottom: 6px;
  text-decoration: underline;
  text-decoration-color: var(--sand-deep);
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
}
.hero-seo {
  font-size: 13px;
  font-weight: 400;
  color: var(--slate);
  line-height: 1.72;
  max-width: 62ch;
}
.hero-title-block {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
}
.movie-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--umber-deep);
  padding-bottom: 7px;
  border-bottom: 1px solid var(--slate-line);
}
.player-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  width: 100%;
  background: var(--umber-deep);
  border: 1px solid var(--umber);
  padding: 8px;
}
.main-player {
  display: block;
  width: 100%;
  height: auto;
  background: #000;
  border: 1px solid rgba(216, 195, 154, 0.3);
}
.player-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.player-btn {
  appearance: none;
  border: 1px solid rgba(216, 195, 154, 0.42);
  background: rgba(216, 195, 154, 0.1);
  color: var(--sand-pale);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.player-btn:hover { background: var(--sand); color: var(--umber-deep); border-color: var(--sand); }
.player-btn.is-active {
  background: var(--sand-deep);
  color: var(--umber-deep);
  border-color: var(--sand-pale);
  font-weight: 700;
}
.player-range {
  appearance: none;
  -webkit-appearance: none;
  height: 4px;
  background: rgba(216, 195, 154, 0.28);
  border: none;
  cursor: pointer;
  flex: 1 1 90px;
  min-width: 70px;
}
.player-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 11px;
  height: 11px;
  background: var(--sand-pale);
  border: 1px solid var(--umber-deep);
  cursor: pointer;
}
.player-range::-moz-range-thumb {
  width: 10px;
  height: 10px;
  background: var(--sand-pale);
  border: 1px solid var(--umber-deep);
  border-radius: 0;
  cursor: pointer;
}
.player-nav.is-theater {
  box-shadow: 0 0 0 2px var(--sand-deep);
}
.player-nav.is-theater .main-player {
  border-color: var(--sand-pale);
}
.player-nav.is-lights .main-player {
  filter: brightness(0.55) contrast(1.12);
}
.cast-strip { min-width: 0; }
.cast-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  align-items: start;
}
.cast-card {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-height: 74px;
  padding: 9px 8px;
  background: linear-gradient(180deg, #e4d7bb, #d6c39c);
  border: 1px solid rgba(58, 44, 34, 0.34);
  border-top: 3px solid var(--slate);
}
.cast-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--umber-deep);
  letter-spacing: 0.04em;
}
.cast-role {
  font-size: 11px;
  font-weight: 400;
  color: var(--slate);
  letter-spacing: 0.06em;
  padding-top: 3px;
  border-top: 1px dashed rgba(77, 90, 92, 0.4);
}
.synopsis-block { min-width: 0; }
.synopsis-body {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px 18px;
  align-items: start;
}
.synopsis-para {
  font-size: 13px;
  font-weight: 400;
  color: #383f3e;
  line-height: 1.72;
  padding: 5px 0 5px 9px;
  border-left: 2px solid rgba(77, 90, 92, 0.28);
}
.episode-status { min-width: 0; }
.status-line {
  display: inline-block;
  font-size: 13px;
  color: var(--umber-deep);
  background: var(--sand-pale);
  border: 1px solid rgba(58, 44, 34, 0.3);
  padding: 5px 12px;
  letter-spacing: 0.05em;
}
.status-current {
  font-weight: 700;
  font-size: 15px;
  color: var(--umber-deep);
  background: var(--sand-deep);
  padding: 0 6px;
}
.status-total { font-weight: 700; color: var(--slate); }
.details-block { min-width: 0; }
.details-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1px;
  background: rgba(58, 44, 34, 0.22);
  border: 1px solid rgba(58, 44, 34, 0.22);
}
.detail-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 6px 10px;
  background: var(--paper);
}
.detail-key {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
  color: var(--slate);
  letter-spacing: 0.12em;
}
.detail-value {
  min-width: 0;
  font-size: 13px;
  font-weight: 400;
  color: var(--umber-deep);
}
.timeline-section { min-width: 0; }
.timeline-list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 26px;
  padding-left: 14px;
}
.timeline-list::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 3px;
  width: 1px;
  background: var(--slate);
  opacity: 0.55;
}
.timeline-node {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  padding: 7px 0 7px 14px;
  border-bottom: 1px dotted rgba(77, 90, 92, 0.35);
}
.timeline-node::before {
  content: "";
  position: absolute;
  left: -14.5px;
  top: 13px;
  width: 7px;
  height: 7px;
  background: var(--sand-pale);
  border: 1px solid var(--slate);
  transform: rotate(45deg);
}
.timeline-timecode {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--umber-deep);
  background: var(--sand-deep);
  padding: 1px 6px;
}
.timeline-label {
  min-width: 0;
  flex: 1 1 160px;
  font-size: 13px;
  font-weight: 400;
  color: #3a4241;
}
.episodes-section { min-width: 0; }
.episode-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-items: start;
}
.episode-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 9px 10px;
  background: var(--paper);
  border: 1px solid rgba(58, 44, 34, 0.26);
  border-left: 3px solid var(--slate-soft);
  min-width: 0;
}
.episode-card:hover { border-left-color: var(--umber); background: #f7f2e8; }
.episode-number {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--slate-soft);
}
.episode-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--umber-deep);
  letter-spacing: 0.03em;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(77, 90, 92, 0.22);
}
.episode-summary {
  font-size: 12px;
  font-weight: 400;
  color: #414847;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.episode-duration {
  align-self: flex-start;
  margin-top: 2px;
  font-size: 11px;
  color: var(--slate);
  letter-spacing: 0.08em;
  padding: 1px 6px;
  background: rgba(216, 195, 154, 0.55);
}
.comments-section { min-width: 0; }
.comments-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-items: start;
}
.comment-note {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 9px 11px;
  background: var(--note-bg);
  border: 1px solid rgba(77, 90, 92, 0.42);
  border-radius: 0;
  box-shadow: 2px 2px 0 rgba(58, 44, 34, 0.12);
}
.comment-nickname {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--umber-deep);
  border-bottom: 2px solid var(--sand-deep);
  padding-bottom: 2px;
}
.comment-text {
  font-size: 13px;
  font-weight: 400;
  color: #3c4342;
  line-height: 1.65;
}
.rec-region { min-width: 0; }
.rec-heading {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--umber-deep);
  padding: 4px 8px;
  background: var(--sand-deep);
  border-left: 4px solid var(--umber);
  margin-bottom: 7px;
}
.rec-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  align-items: start;
}
a.rec-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  padding: 6px;
  text-decoration: none;
  color: var(--ink);
  background: rgba(242, 236, 224, 0.78);
  border: 1px solid rgba(58, 44, 34, 0.24);
  transition: background 0.15s ease, border-color 0.15s ease;
}
a.rec-item:hover {
  background: var(--sand-pale);
  border-color: var(--slate);
}
a.rec-item img, [data-runtime="recommendation"] img {
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  background: var(--umber-deep);
  border: 1px solid rgba(58, 44, 34, 0.3);
}
.rec-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--umber-deep);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rec-blurb {
  font-size: 11px;
  font-weight: 400;
  color: var(--slate);
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.site-footer {
  background: linear-gradient(180deg, rgba(58, 44, 34, 0.95), rgba(36, 26, 19, 0.98));
  border-top: 2px solid var(--sand-deep);
  padding: 16px;
  color: #c9bda3;
  font-size: 12px;
}
.footer-nav, .friend-links {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
}
.footer-nav {
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(216, 195, 154, 0.25);
}
a[data-contract="footer-home"], a[data-contract="footer-sitemap"] {
  color: var(--sand-pale);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.1em;
}
a[data-contract="footer-home"]:hover, a[data-contract="footer-sitemap"]:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.friend-links-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--sand-deep);
  padding-right: 10px;
  border-right: 1px solid rgba(216, 195, 154, 0.3);
}
a.runtime-friend-link {
  color: #b0a68d;
  text-decoration: none;
  font-size: 12px;
  white-space: nowrap;
  padding-bottom: 1px;
  border-bottom: 1px dotted rgba(216, 195, 154, 0.4);
}
a.runtime-friend-link:hover {
  color: var(--sand-pale);
  border-bottom-color: var(--sand-pale);
}
.footer-disclaimer {
  max-width: var(--maxw);
  margin: 12px auto 0;
  padding-top: 10px;
  border-top: 1px solid rgba(216, 195, 154, 0.2);
  font-size: 11px;
  line-height: 1.7;
  color: #90886f;
}
@media (max-width: 980px) {.page-main { padding: 12px 12px 22px; gap: 14px; }
.hero-visual { grid-template-columns: minmax(0, 150px) minmax(0, 1fr); }
.cast-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.synopsis-body { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.episode-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.movie-title { font-size: 20px; }
.hero-tagline { font-size: 18px; }}
@media (max-width: 720px) {body { font-size: 14px; }
.header-inner { padding: 8px 12px; gap: 6px 12px; }
a[data-contract="site-name"] { font-size: 16px; letter-spacing: 0.1em; }
.hero-section { padding: 11px; gap: 12px; }
.hero-visual {
    grid-template-columns: minmax(0, 118px) minmax(0, 1fr);
    gap: 11px;
  }
.hero-tagline { font-size: 16px; text-decoration-thickness: 2px; }
.hero-seo { font-size: 12px; line-height: 1.66; }
.movie-title { font-size: 18px; }
.player-controls { gap: 5px; }
.player-btn { padding: 3px 8px; font-size: 11px; }
.synopsis-body { grid-template-columns: minmax(0, 1fr); column-gap: 0; }
.timeline-list { grid-template-columns: minmax(0, 1fr); }
.comments-stack { grid-template-columns: minmax(0, 1fr); }
.cast-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cast-card { min-height: 0; }}
@media (max-width: 560px) {.page-main { padding: 10px 10px 20px; gap: 12px; }
.hero-visual { grid-template-columns: minmax(0, 96px) minmax(0, 1fr); }
.episode-grid { grid-template-columns: minmax(0, 1fr); }
.rec-list { grid-template-columns: minmax(0, 1fr); }
.details-list { grid-template-columns: minmax(0, 1fr); }
.section-heading { font-size: 13px; letter-spacing: 0.16em; }
.footer-nav, .friend-links { gap: 5px 10px; }
.friend-links-label { border-right: none; padding-right: 0; }}

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}
