*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, p, dl, dd, ul, ol {
  margin: 0;
  padding: 0;
}
ul, ol { list-style: none; }
img, video {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button, input {
  font: inherit;
  color: inherit;
}
:root {
  --wood-dark: #4a3527;
  --wood: #6b4c33;
  --wood-soft: #8a6a4c;
  --cream: #f6efe3;
  --cream-2: #efe4d2;
  --paper: #fbf6ec;
  --brick: #c05b3f;
  --brick-soft: #d07a5e;
  --brick-deep: #9c452e;
  --grease: #4d4a46;
  --grease-soft: #7a756e;
  --pink: #e8c8c4;
  --pink-soft: #f4e0dc;
  --green: #a9bfa4;
  --green-soft: #dfe8da;
  --line: rgba(74, 53, 39, 0.18);
  --line-strong: rgba(74, 53, 39, 0.32);
  --shadow: 0 2px 6px rgba(74, 53, 39, 0.12);
  --shadow-lift: 0 8px 20px rgba(74, 53, 39, 0.16);
  --radius: 6px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Heiti SC", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
}
body {
  font-family: var(--font);
  font-weight: 300;
  font-size: 14px;
  line-height: 1.5;
  color: var(--wood-dark);
  background-color: var(--cream);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(232, 200, 196, 0.35), transparent 42%),
    radial-gradient(circle at 88% 4%, rgba(223, 232, 218, 0.4), transparent 38%),
    repeating-linear-gradient(0deg, rgba(74, 53, 39, 0.025) 0 1px, transparent 1px 4px);
  background-attachment: fixed;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 239, 227, 0.94);
  border-bottom: 1px solid var(--line-strong);
  backdrop-filter: blur(6px);
}
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 8px 16px;
}
a[data-contract="site-name"] {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--wood-dark);
  text-decoration: none;
  padding-left: 14px;
  position: relative;
}
a[data-contract="site-name"]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--brick);
  box-shadow: 0 0 0 3px rgba(192, 91, 63, 0.18);
}
.category-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}
a.runtime-category {
  display: inline-block;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--wood);
  text-decoration: none;
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
a.runtime-category:hover {
  color: var(--cream);
  background: var(--wood);
  border-color: var(--wood);
}
.movie-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px 36px;
}
.movie-overview {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  grid-template-areas:
    "poster title"
    "poster player"
    "poster status"
    "cast cast"
    "synopsis details";
  gap: 12px 22px;
  align-items: start;
  margin-top: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 120px),
    var(--paper);
  box-shadow: var(--shadow);
}
.overview-poster {
  grid-area: poster;
  align-self: start;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream-2);
  box-shadow: 0 10px 26px rgba(74, 53, 39, 0.28);
}
.overview-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(200deg, rgba(192, 91, 63, 0.18), transparent 42%, rgba(74, 53, 39, 0.28));
  mix-blend-mode: multiply;
}
.overview-poster img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
.overview-title-block {
  grid-area: title;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line-strong);
}
.movie-title {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.02em;
  color: var(--wood-dark);
}
.movie-tagline {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--brick-deep);
}
.movie-tagline::before {
  content: "— ";
  color: var(--brick-soft);
}
.overview-player {
  grid-area: player;
  position: relative;
  border-radius: var(--radius);
  background: #241a13;
  padding: 6px;
  box-shadow: var(--shadow-lift);
}
.overview-player video {
  display: block;
  width: 100%;
  border-radius: 4px;
  background: #000;
}
.player-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 6px 4px 2px;
  border-top: 1px solid rgba(246, 239, 227, 0.18);
}
.player-controls button {
  cursor: pointer;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--cream);
  background: rgba(246, 239, 227, 0.1);
  border: 1px solid rgba(246, 239, 227, 0.22);
  border-radius: 999px;
  padding: 3px 9px;
  line-height: 1.5;
  transition: background 0.16s ease, color 0.16s ease;
}
.player-controls button:hover, .player-controls button:focus-visible {
  background: var(--brick);
  border-color: var(--brick);
  color: #fff;
}
.player-controls > div[data-player-action] {
  flex: 1 1 90px;
  min-width: 0;
  display: flex;
  align-items: center;
}
.player-controls input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: rgba(246, 239, 227, 0.28);
  outline: none;
  cursor: pointer;
}
.player-controls input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brick-soft);
  border: 2px solid var(--cream);
}
.player-controls input[type="range"]::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 2px solid var(--cream);
  border-radius: 50%;
  background: var(--brick-soft);
}
.video.player-theater {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  max-width: none;
  z-index: 90;
  background: #000;
  border-radius: 0;
}
.video.player-theater + .player-controls {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 91;
  margin: 0;
  padding: 8px 12px;
  background: rgba(36, 26, 19, 0.92);
  border-top: 1px solid rgba(246, 239, 227, 0.2);
}
.video.player-lights {
  filter: brightness(0.42) contrast(1.06);
}
.overview-episode-status {
  grid-area: status;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  padding: 8px 12px;
  border-left: 3px solid var(--brick);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: linear-gradient(90deg, rgba(192, 91, 63, 0.12), rgba(192, 91, 63, 0));
}
.status-label {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--grease-soft);
}
.status-current {
  font-size: 17px;
  font-weight: 800;
  color: var(--brick-deep);
  letter-spacing: 0.02em;
}
.status-total {
  font-size: 12px;
  font-weight: 400;
  color: var(--grease);
}
.status-total::before {
  content: "/ ";
  color: var(--line-strong);
}
.overview-cast {
  grid-area: cast;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.cast-heading, .synopsis-heading, .details-heading {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--wood);
  margin-bottom: 8px;
  position: relative;
  padding-left: 12px;
}
.cast-heading::before, .synopsis-heading::before, .details-heading::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 5px;
  height: 5px;
  margin-top: -2.5px;
  border-radius: 1px;
  background: var(--green);
  transform: rotate(45deg);
}
.cast-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: flex-start;
}
.cast-card {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 1 auto;
  padding: 5px 12px 5px 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--cream-2);
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}
.cast-card:hover {
  border-color: var(--brick-soft);
  background: var(--pink-soft);
  transform: translateY(-1px);
}
.cast-avatar {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--cream);
  box-shadow: inset 0 0 0 2px var(--paper), 0 0 0 1px var(--line-strong);
}
.cast-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cast-names {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.cast-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--wood-dark);
}
.cast-role {
  font-size: 11px;
  font-weight: 300;
  color: var(--grease-soft);
}
.overview-synopsis {
  grid-area: synopsis;
  min-width: 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.synopsis-lead {
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.62;
  color: var(--wood-dark);
  padding: 8px 10px;
  margin-bottom: 8px;
  border-left: 3px solid var(--brick-soft);
  background: linear-gradient(90deg, rgba(232, 200, 196, 0.34), rgba(232, 200, 196, 0));
  border-radius: 0 var(--radius) var(--radius) 0;
}
.synopsis-paragraph {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.62;
  color: var(--grease);
  text-indent: 2em;
  margin-bottom: 6px;
}
.synopsis-paragraph:last-child { margin-bottom: 0; }
.overview-details {
  grid-area: details;
  min-width: 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.details-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 4px 14px;
  align-items: start;
}
.detail-item {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 3px 0;
  border-bottom: 1px dotted var(--line);
  min-width: 0;
}
.detail-item dt {
  flex: 0 0 auto;
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--grease-soft);
}
.detail-item dd {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--wood-dark);
  text-align: right;
}
.section-heading {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--wood-dark);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--line-strong);
  position: relative;
}
.section-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 54px;
  height: 2px;
  background: var(--brick);
}
.timeline-section {
  margin-top: 28px;
}
.timeline-list {
  position: relative;
  padding-left: 6px;
}
.timeline-list::before {
  content: "";
  position: absolute;
  left: 58px;
  top: 6px;
  bottom: 6px;
  width: 0;
  border-left: 2px dashed var(--line-strong);
}
.timeline-node {
  position: relative;
  display: grid;
  grid-template-columns: 46px 28px minmax(0, 1fr);
  align-items: baseline;
  gap: 6px;
  padding: 5px 0;
}
.timeline-time {
  grid-column: 1;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--grease);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.timeline-node::before {
  grid-column: 2;
  justify-self: center;
  align-self: center;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  z-index: 1;
}
.timeline-node-gear::before {
  content: "⚙";
  color: var(--grease);
}
.timeline-node-flower::before {
  content: "✿";
  color: var(--brick-soft);
}
.timeline-label {
  grid-column: 3;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--wood-dark);
}
.timeline-node-gear .timeline-label { border-left: 2px solid var(--grease-soft); padding-left: 8px; }
.timeline-node-flower .timeline-label { border-left: 2px solid var(--pink); padding-left: 8px; }
.episodes-section {
  margin-top: 28px;
}
.episode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  align-items: start;
}
.episode-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "num title"
    "sum sum"
    "dur dur";
  gap: 2px 8px;
  align-items: baseline;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--wood-soft);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.episode-card:hover {
  border-color: var(--brick-soft);
  border-left-color: var(--brick);
  background: var(--cream-2);
  box-shadow: var(--shadow-lift);
}
.episode-card-active {
  border-left-color: var(--brick);
  background: linear-gradient(90deg, rgba(192, 91, 63, 0.1), var(--paper) 46%);
}
.episode-number {
  grid-area: num;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--brick-deep);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.episode-title {
  grid-area: title;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--wood-dark);
}
.episode-summary {
  grid-area: sum;
  font-size: 12px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--grease);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: -webkit-line-clamp 0.18s ease;
}
.episode-card:hover .episode-summary, .episode-card:focus-within .episode-summary {
  -webkit-line-clamp: 4;
  overflow: visible;
}
.episode-duration {
  grid-area: dur;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--grease-soft);
}
.episode-duration::before {
  content: "◷ ";
  color: var(--green);
}
.comments-section {
  margin-top: 28px;
}
.comment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
  align-items: start;
}
.comment-note {
  position: relative;
  padding: 10px 14px 12px;
  border-radius: 3px;
  background: var(--paper);
  box-shadow: var(--shadow-lift);
  border: 1px solid rgba(74, 53, 39, 0.1);
}
.comment-note::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -7px;
  width: 54px;
  height: 14px;
  margin-left: -27px;
  background: rgba(192, 91, 63, 0.16);
  border-radius: 2px;
  transform: rotate(-2deg);
}
.comment-nickname {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--brick-deep);
  margin-bottom: 4px;
}
.comment-text {
  font-size: 12.5px;
  font-weight: 300;
  line-height: 1.58;
  color: var(--grease);
}
.comment-note-a { transform: rotate(-1.1deg); background: #fdf7ea; }
.comment-note-b { transform: rotate(0.9deg); background: var(--pink-soft); }
.comment-note-c { transform: rotate(-0.6deg); background: var(--green-soft); }
.comment-note-d { transform: rotate(1.2deg); background: #fdf7ea; }
.comment-note-e { transform: rotate(-1.4deg); background: var(--green-soft); }
.comment-note-f { transform: rotate(0.7deg); background: var(--pink-soft); }
.recommend-region {
  margin-top: 28px;
}
.recommend-heading {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--wood-dark);
  text-align: left;
  margin-bottom: 10px;
  padding-left: 12px;
  border-left: 4px solid var(--brick);
}
.recommend-stack {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  align-items: start;
}
a.recommend-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--wood-dark);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
a.recommend-item:hover {
  transform: translateY(-3px);
  border-color: var(--brick-soft);
  box-shadow: var(--shadow-lift);
}
[data-runtime="recommendation"] img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 4px;
  background: var(--cream-2);
  display: block;
}
.recommend-name {
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--wood-dark);
}
.recommend-blurb {
  font-size: 11px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--grease-soft);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.recommend-region-1 .recommend-stack, .recommend-region-2 .recommend-stack, .recommend-region-3 .recommend-stack {
  position: relative;
}
.recommend-region-2 { padding-left: 18px; }
.recommend-region-3 { padding-left: 36px; }
.recommend-region-1 .recommend-heading { border-left-color: var(--brick); }
.recommend-region-2 .recommend-heading { border-left-color: var(--green); padding-left: 12px; }
.recommend-region-3 .recommend-heading { border-left-color: var(--grease); padding-left: 12px; }
.site-footer {
  margin-top: 34px;
  padding: 18px 16px 26px;
  border-top: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(74, 53, 39, 0.05), rgba(74, 53, 39, 0));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "disclaimer nav"
    "friends friends";
  gap: 10px 18px;
  align-items: start;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}
.footer-disclaimer {
  grid-area: disclaimer;
  font-size: 11.5px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--grease-soft);
  max-width: 62ch;
}
.footer-nav {
  grid-area: nav;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}
a[data-contract="footer-home"], a[data-contract="footer-sitemap"] {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--wood);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 1px;
  transition: color 0.16s ease, border-color 0.16s ease;
}
a[data-contract="footer-home"]:hover, a[data-contract="footer-sitemap"]:hover {
  color: var(--brick-deep);
  border-color: var(--brick);
}
.friend-links {
  grid-area: friends;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}
.friend-links-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--grease-soft);
}
a.runtime-friend-link {
  font-size: 11.5px;
  font-weight: 300;
  color: var(--wood-soft);
  text-decoration: none;
  border-bottom: 1px dotted var(--line-strong);
  transition: color 0.16s ease, border-color 0.16s ease;
}
a.runtime-friend-link:hover {
  color: var(--brick-deep);
  border-color: var(--brick);
}
@media (max-width: 1024px) {.movie-overview {
    grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
    gap: 10px 18px;
    padding: 16px;
  }
.recommend-region-2 { padding-left: 10px; }
.recommend-region-3 { padding-left: 20px; }}
@media (max-width: 860px) {.movie-overview {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "title"
      "poster"
      "player"
      "status"
      "cast"
      "synopsis"
      "details";
    gap: 12px;
  }
.overview-poster {
    max-width: 320px;
  }
.overview-poster img {
    width: 100%;
  }
.movie-title { font-size: 22px; }
.episode-grid { grid-template-columns: minmax(0, 1fr); }
.comment-grid { grid-template-columns: minmax(0, 1fr); }
.comment-note-a, .comment-note-b, .comment-note-c, .comment-note-d, .comment-note-e, .comment-note-f { transform: rotate(0deg); }
.recommend-region-1, .recommend-region-2, .recommend-region-3 { padding-left: 0; }
.recommend-stack {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
.site-footer {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "disclaimer"
      "nav"
      "friends";
  }
.footer-nav { justify-content: flex-start; }}
@media (max-width: 560px) {.header-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 8px 12px;
  }
.category-nav { justify-content: flex-start; }
.movie-page { padding: 0 12px 28px; }
.movie-overview { padding: 12px; }
.movie-title { font-size: 19px; }
.movie-tagline { font-size: 12px; }
.overview-poster { max-width: 240px; }
.timeline-list::before { left: 44px; }
.timeline-node {
    grid-template-columns: 34px 24px minmax(0, 1fr);
    gap: 5px;
  }
.timeline-time { font-size: 11px; }
.timeline-label { font-size: 12.5px; }
.cast-card { flex: 1 1 100%; }
.details-list { grid-template-columns: minmax(0, 1fr); }
.recommend-stack {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
.comment-note { padding: 8px 10px 10px; }}

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}
