*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, p, ul, ol, li, dl, dt, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, video { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
a { color: inherit; }
:root {
  --ink: #1b1f24;
  --ink-soft: #454c55;
  --ink-faint: #6d757e;
  --paper: #e8e9e6;
  --paper-2: #dfe1dd;
  --panel: #f2f3f0;
  --board: #2c3330;
  --board-deep: #232a28;
  --chalk: #eef1ec;
  --line: #c3c7c1;
  --line-soft: #d3d6d1;
  --coffee: #a8623a;
  --edamame: #6f9e4a;
  --shadow: 0 1px 0 rgba(255, 255, 255, .6), 0 1px 3px rgba(20, 25, 22, .12);
  --font-body: "Hiragino Sans", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Heiti SC", system-ui, sans-serif;
  --font-head: "Hiragino Kaku Gothic ProN", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.45;
  font-size: 15px;
  letter-spacing: .01em;
  background-image: linear-gradient(180deg, #e9eae7 0%, #e2e4e0 100%);
}
.page-main {
  display: block;
  padding: 10px 14px 18px;
  max-width: 1280px;
  margin: 0 auto;
}
h1, h2, h3 { font-family: var(--font-head); font-weight: 800; line-height: 1.2; }
section { margin: 0 0 14px; }
h2 { font-size: 15px; letter-spacing: .06em; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(232, 233, 230, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(4px);
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  flex-wrap: wrap;
}
.site-brand {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: .04em;
  text-decoration: none;
  color: var(--ink);
  padding-right: 10px;
  border-right: 1px solid var(--line);
}
a[data-contract="site-name"] { color: var(--ink); text-decoration: none; }
.site-brand:hover { color: #000; }
.category-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
a.runtime-category {
  display: inline-block;
  white-space: nowrap;
  font-size: 13px;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--panel);
  color: var(--ink-soft);
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
a.runtime-category:hover { background: var(--board); color: var(--chalk); border-color: var(--board); }
.hero-classroom { margin-bottom: 14px; }
.blackboard-stage {
  position: relative;
  background: linear-gradient(160deg, var(--board) 0%, var(--board-deep) 100%);
  border: 1px solid #171d1b;
  border-radius: 3px;
  padding: 20px 18px 46px;
  overflow: hidden;
  box-shadow: inset 0 0 60px rgba(0, 0, 0, .45), var(--shadow);
}
.chalk-grammar {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  line-height: 2.1;
  color: var(--chalk);
  text-shadow: 0 0 3px rgba(238, 241, 236, .5);
  letter-spacing: .04em;
  max-width: 68ch;
  opacity: .92;
}
.hero-hand {
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 116px;
  height: 74px;
  transform: translateX(-40%) rotate(-6deg);
  background: linear-gradient(150deg, #d8c3b0 0%, #c2a894 70%);
  border-radius: 44px 52px 10px 10px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .45);
  opacity: .95;
}
.hero-hand::after {
  content: "";
  position: absolute;
  top: 14px;
  left: 24px;
  width: 42px;
  height: 13px;
  background: #e6d6c6;
  border-radius: 7px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .25);
}
.hero-warm-accents {
  position: absolute;
  right: 14px;
  bottom: 10px;
  display: flex;
  gap: 8px;
  align-items: flex-end;
}
.accent-coffee, .accent-edamame {
  font-size: 10px;
  letter-spacing: .08em;
  padding: 3px 7px;
  border-radius: 2px;
  color: #fff;
  white-space: nowrap;
}
.accent-coffee { background: var(--coffee); }
.accent-edamame { background: var(--edamame); }
.movie-info-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 2.4fr);
  gap: 14px;
  align-items: start;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 12px;
  margin-top: 12px;
  box-shadow: var(--shadow);
}
.poster-column { min-width: 0; }
.poster-wrapper.media-frame {
  border: 1px solid var(--line);
  background: #cfd2cd;
  width: 100%;
  max-width: 260px;
}
.poster-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
.info-column { min-width: 0; }
.movie-title {
  font-size: 23px;
  letter-spacing: .03em;
  margin-bottom: 4px;
}
.movie-tagline {
  font-size: 13px;
  color: var(--ink-soft);
  border-left: 3px solid var(--edamame);
  padding-left: 8px;
  margin-bottom: 10px;
}
.cast-section { margin-bottom: 12px; }
.cast-heading, .synopsis-heading, .episode-status-heading, .details-heading, .episodes-heading, .comments-heading, .timeline-heading, .player-heading {
  font-size: 13px;
  letter-spacing: .14em;
  color: var(--ink-faint);
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 3px;
  margin-bottom: 7px;
}
.cast-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: stretch;
}
.cast-card {
  flex: 1 1 74px;
  min-width: 74px;
  max-width: 108px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  padding: 8px 4px 7px;
  background: #e9ebe7;
  border: 1px solid var(--line-soft);
  border-radius: 2px;
}
.cast-name {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .1em;
  line-height: 1;
}
.cast-role {
  font-size: 9px;
  line-height: 1.3;
  color: var(--ink-faint);
  text-align: center;
  letter-spacing: 0;
}
.synopsis-section { margin-bottom: 12px; }
.synopsis-paragraph {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.synopsis-paragraph:last-child { margin-bottom: 0; }
.episode-status-section { margin-bottom: 12px; }
.episode-status-line {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  background: #e6e8e3;
  border-left: 3px solid var(--coffee);
  padding: 5px 9px;
}
.details-section { margin-bottom: 0; }
.details-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 0 14px;
}
.detail-row {
  display: flex;
  gap: 8px;
  align-items: baseline;
  padding: 3px 0;
  border-bottom: 1px dotted var(--line-soft);
  font-size: 12.5px;
}
.detail-row dt {
  flex: 0 0 62px;
  color: var(--ink-faint);
  font-weight: 600;
}
.detail-row dd { flex: 1 1 auto; color: var(--ink); min-width: 0; }
.player-section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 11px 12px;
  box-shadow: var(--shadow);
}
.player-wrapper { width: 100%; background: #000; border: 1px solid #14181a; }
.player-wrapper video { width: 100%; display: block; }
.player-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 9px;
}
.player-controls button {
  font-size: 12px;
  padding: 5px 10px;
  background: #e4e6e1;
  border: 1px solid var(--line);
  border-radius: 2px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.player-controls button:hover { background: var(--board); color: var(--chalk); border-color: var(--board); }
.player-controls button.play { background: var(--board); color: var(--chalk); }
.player-controls button.pause { background: var(--coffee); color: #fff; border-color: var(--coffee); }
.player-controls button.is-active { background: var(--edamame); color: #fff; border-color: var(--edamame); }
.player-controls button.is-playing { background: var(--coffee); color: #fff; border-color: var(--coffee); }
.player-controls input[type="range"] {
  flex: 1 1 120px;
  min-width: 90px;
  accent-color: var(--edamame);
  height: 20px;
}
.player-controls input.progress { flex: 2 1 200px; }
.player-controls input.volume { flex: 1 1 90px; }
.player-controls input.input { accent-color: var(--coffee); }
.player-controls select {
  font-size: 12px;
  padding: 4px 6px;
  background: #e4e6e1;
  border: 1px solid var(--line);
  border-radius: 2px;
}
.player-controls select.speed { font-weight: 700; }
.timeline-section {
  background: #e4e6e1;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 11px 12px;
  box-shadow: var(--shadow);
}
.timeline-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 8px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.timeline-track {
  display: flex;
  gap: 8px;
  min-width: max-content;
  align-items: stretch;
}
.timeline-block {
  scroll-snap-align: start;
  flex: 0 0 150px;
  width: 150px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 9px 10px;
  background: var(--board);
  color: var(--chalk);
  border-radius: 2px;
  box-shadow: inset 0 0 22px rgba(0, 0, 0, .4);
  transition: opacity .3s ease, transform .3s ease;
}
.timeline-block:hover { opacity: .55; transform: translateY(1px); }
.timeline-timecode {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .06em;
  color: #fff;
  border-bottom: 1px dashed rgba(238, 241, 236, .4);
  padding-bottom: 3px;
}
.timeline-label {
  font-size: 12px;
  line-height: 1.4;
  opacity: .92;
}
.episodes-section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 11px 12px;
  box-shadow: var(--shadow);
}
.episode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.episode-cell {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "num title"
    "sum sum"
    "dur dur";
  column-gap: 8px;
  row-gap: 4px;
  align-items: start;
  padding: 8px 9px;
  background: #e9ebe7;
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--board);
  border-radius: 2px;
}
.episode-number {
  grid-area: num;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--chalk);
  background: var(--board);
  padding: 2px 6px;
  border-radius: 2px;
  white-space: nowrap;
}
.episode-title {
  grid-area: title;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: .02em;
  align-self: center;
}
.episode-summary {
  grid-area: sum;
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink-soft);
}
.episode-duration {
  grid-area: dur;
  font-size: 10.5px;
  color: var(--ink-faint);
  letter-spacing: .08em;
}
.comments-section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 11px 12px;
  box-shadow: var(--shadow);
}
.comment-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
  align-items: start;
}
.comment-note {
  position: relative;
  padding: 10px 11px 12px;
  background: #f4f2ea;
  border: 1px solid #d8d4c6;
  border-radius: 1px;
  box-shadow: 0 2px 5px rgba(20, 25, 22, .14);
}
.comment-note:nth-child(odd) { transform: rotate(-.7deg); background: #f2f4ec; }
.comment-note:nth-child(even) { transform: rotate(.8deg); }
.comment-note:nth-child(3n) { transform: rotate(-.3deg) translateY(2px); }
.comment-nickname {
  display: block;
  font-family: "Kaiti SC", "KaiTi", "STKaiti", var(--font-head);
  font-weight: 700;
  font-size: 12.5px;
  color: var(--coffee);
  margin-bottom: 4px;
  letter-spacing: .04em;
}
.comment-text {
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.rec-region {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 10px 12px 12px;
  box-shadow: var(--shadow);
}
.rec-title {
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--ink-faint);
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 3px;
  margin-bottom: 8px;
}
.rec-column {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
a.rec-item {
  display: grid;
  grid-template-columns: 62px 1fr;
  grid-template-areas:
    "thumb name"
    "thumb blurb";
  column-gap: 8px;
  row-gap: 3px;
  align-items: start;
  padding: 6px;
  background: #e9ebe7;
  border: 1px solid var(--line-soft);
  border-radius: 2px;
  text-decoration: none;
  color: var(--ink);
  transition: background .15s ease, border-color .15s ease;
}
a.rec-item:hover { background: #dfe3db; border-color: var(--edamame); }
[data-runtime="recommendation"] .rec-thumb { grid-area: thumb; }
[data-runtime="recommendation"] img.rec-thumb {
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #cfd2cd;
}
.rec-name {
  grid-area: name;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 13px;
  line-height: 1.3;
}
.rec-blurb {
  grid-area: blurb;
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--ink-faint);
}
.site-footer {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 14px 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer-nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
}
a[data-contract="footer-home"] {
  color: var(--ink-soft);
  text-decoration: underline;
}
a[data-contract="footer-home"]:hover { color: var(--coffee); }
a[data-contract="footer-sitemap"] {
  color: var(--ink-faint);
  text-decoration: none;
}
a[data-contract="footer-sitemap"]:hover { color: var(--edamame); text-decoration: underline; }
.friend-links {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 8px;
  align-items: center;
  font-size: 12px;
}
.friend-links-label {
  font-weight: 700;
  color: var(--ink-faint);
  letter-spacing: .08em;
}
a.runtime-friend-link {
  color: #5c635f;
  text-decoration: none;
  border-bottom: 1px dotted var(--line);
  padding-bottom: 1px;
}
a.runtime-friend-link:hover { color: var(--coffee); border-bottom-color: var(--coffee); }
.footer-disclaimer {
  font-size: 11px;
  line-height: 1.5;
  color: var(--ink-faint);
}
body.theater-mode .player-section { background: #101413; }
body.theater-mode .player-wrapper { border-color: #000; }
body.lights-off { background: #14171a; color: #d9dcd6; }
body.lights-off .site-header { background: rgba(20, 23, 26, .96); border-bottom-color: #2a2f33; }
body.lights-off .movie-info-panel, body.lights-off .player-section, body.lights-off .timeline-section, body.lights-off .episodes-section, body.lights-off .comments-section, body.lights-off .rec-region { background: #1c2024; border-color: #2c3237; }
body.lights-off .site-brand, body.lights-off a[data-contract="site-name"] { color: #eef1ec; }
body.lights-off .synopsis-paragraph, body.lights-off .episode-summary, body.lights-off .comment-text, body.lights-off .rec-blurb { color: #aeb4b0; }
@media (max-width: 860px) {.movie-info-panel {
    grid-template-columns: minmax(0, 1fr);
  }
.poster-wrapper.media-frame { max-width: 190px; }
.details-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }}
@media (max-width: 700px) {.episode-grid { grid-template-columns: minmax(0, 1fr); }
.comment-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.movie-title { font-size: 20px; }}
@media (max-width: 520px) {.page-main { padding: 8px 10px 14px; }
.header-inner { padding: 6px 10px; gap: 8px; }
.blackboard-stage { padding: 14px 12px 40px; }
.chalk-grammar { font-size: 13px; line-height: 1.95; }
.hero-hand { width: 92px; height: 60px; }
.hero-warm-accents { right: 8px; bottom: 7px; }
.details-list { grid-template-columns: minmax(0, 1fr); }
.comment-wall { grid-template-columns: minmax(0, 1fr); }
.player-controls button, .player-controls select { font-size: 11px; padding: 4px 8px; }
.poster-wrapper.media-frame { max-width: 150px; }
.cast-card { max-width: 92px; }}
@media (min-width: 1080px) {.comment-wall { grid-template-columns: repeat(4, minmax(0, 1fr)); }}
@media (min-width: 1000px) {.page-main > .rec-region {
    display: inline-block;
    vertical-align: top;
    width: calc((100% - 16px) / 3);
    margin-right: 7px;
  }
.page-main > .rec-region:nth-of-type(3n) { margin-right: 0; }
.page-main > .rec-region + .rec-region { border-left: 1px solid var(--line); }}
@media (min-width: 1000px) {.page-main { display: block; }
.page-main > .rec-region { margin-bottom: 12px; }}
@media (max-width: 999px) {.page-main > .rec-region { margin-bottom: 12px; }
.page-main > .rec-region + .rec-region { border-top: 1px solid var(--line-soft); }}
@media (prefers-reduced-motion: reduce) {* { transition: none !important; animation: none !important; }
.comment-note, .comment-note:nth-child(odd), .comment-note:nth-child(even), .comment-note:nth-child(3n) { transform: none; }}

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}
