*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
:root {
  --orange: #ff9f3c;
  --orange-deep: #f07a1c;
  --orange-soft: #ffe6c7;
  --sky: #6cc4f0;
  --sky-deep: #2f9fd6;
  --sky-soft: #dff2fd;
  --ink: #3a2b1e;
  --ink-soft: #7a6a5a;
  --paper: #fffaf2;
  --card: #ffffff;
  --line: rgba(58, 43, 30, 0.12);
  --gap: 8px;
  --radius: 12px;
  --radius-sm: 8px;
}
body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 480px at 88% -8%, rgba(255, 186, 110, 0.42), transparent 62%),
    radial-gradient(900px 420px at 4% 2%, rgba(140, 210, 245, 0.4), transparent 60%),
    linear-gradient(180deg, #fff8ec 0%, #fdf3e6 42%, #f4f9fd 100%);
  background-attachment: fixed;
  font-weight: 400;
  line-height: 1.55;
  font-size: 15px;
  letter-spacing: 0.01em;
}
h1, h2, h3 { font-weight: 700; line-height: 1.25; letter-spacing: 0.01em; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(90deg, rgba(255, 214, 166, 0.94), rgba(206, 236, 251, 0.94));
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(58, 43, 30, 0.1);
}
.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 8px 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--gap);
}
a[data-contract="site-name"] {
  color: #b85c00;
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 0 0 1px rgba(240, 122, 28, 0.28);
}
a[data-contract="site-name"]:hover { text-decoration: underline; }
.category-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1 1 auto;
  justify-content: flex-end;
}
a.runtime-category {
  color: #1d6f96;
  text-decoration: none;
  white-space: nowrap;
  font-size: 13px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: inset 0 0 0 1px rgba(47, 159, 214, 0.3);
}
a.runtime-category:hover {
  color: #0f5578;
  text-decoration: underline;
  background: #fff;
}
.page-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 12px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.section-heading {
  font-size: 16px;
  margin-bottom: var(--gap);
  padding-left: 10px;
  position: relative;
  color: #a2530a;
}
.section-heading::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 4px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--orange), var(--sky));
}
.movie-overview {
  background: linear-gradient(160deg, #fffdf8 0%, #fff6e9 55%, #eef8fe 100%);
  border: 1px solid rgba(240, 122, 28, 0.22);
  border-radius: var(--radius);
  box-shadow: 0 6px 20px rgba(120, 80, 30, 0.08);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.overview-intro {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.poster-panel {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  align-items: stretch;
  min-width: 0;
}
.poster-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(47, 159, 214, 0.22);
  background: var(--sky-soft);
}
.poster-frame img {
  width: 100%;
  height: auto;
  object-fit: cover;
}
.poster-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.poster-chip {
  font-size: 12px;
  font-weight: 700;
  color: #8a3f00;
  background: linear-gradient(90deg, #ffd9a8, #ffe9c9);
  border: 1px dashed rgba(240, 122, 28, 0.55);
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}
.overview-lead {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}
.movie-title {
  font-size: 22px;
  color: #b85c00;
}
.movie-tagline {
  font-size: 14px;
  color: #256e94;
  background: rgba(223, 242, 253, 0.85);
  border-left: 3px solid var(--sky);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 4px 10px;
}
.player-shell {
  position: relative;
  width: 100%;
  min-width: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #1d1a17;
  box-shadow: 0 6px 18px rgba(47, 159, 214, 0.24);
  display: flex;
  flex-direction: column;
}
.player-shell video {
  display: block;
  width: 100%;
  background: #000;
}
.player-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  background: linear-gradient(90deg, rgba(58, 43, 30, 0.92), rgba(29, 62, 82, 0.92));
}
.player-btn {
  border: none;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
  color: #4a2b00;
  background: linear-gradient(180deg, #ffd9a8, #ffbe74);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  white-space: nowrap;
}
.player-btn:hover { background: linear-gradient(180deg, #ffe7c6, #ffcb8a); }
.player-shell.is-playing .player-btn[data-player-action="play"] {
  background: linear-gradient(180deg, #b6e6ff, #79cdf2);
  color: #0d4a68;
}
.player-shell.is-muted .player-btn[data-player-action="mute"] {
  background: linear-gradient(180deg, #cfd6da, #aab4ba);
  color: #33413f;
}
.player-shell.is-theater { box-shadow: 0 8px 26px rgba(0, 0, 0, 0.45); }
.player-shell.is-lights-off { background: #070605; }
.player-shell.is-lights-off .player-controls { background: rgba(10, 10, 12, 0.95); }
.player-range {
  -webkit-appearance: none;
  appearance: none;
  flex: 1 1 96px;
  min-width: 72px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--orange), var(--sky));
  cursor: pointer;
}
.player-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--sky-deep);
}
.player-range::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border: 2px solid var(--sky-deep);
  border-radius: 50%;
  background: #fff;
}
.player-select {
  border-radius: 999px;
  border: none;
  padding: 4px 8px;
  font-size: 12px;
  background: #fff3e2;
  color: #7a4a12;
  cursor: pointer;
}
.player-shell:fullscreen { border-radius: 0; }
.lead-strip {
  width: 100%;
  border-top: 1px dashed rgba(58, 43, 30, 0.22);
  padding-top: 8px;
}
.lead-actors {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--gap);
}
.strip-heading {
  font-size: 13px;
  color: #a2530a;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--orange-soft);
  white-space: nowrap;
}
.actor-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.actor-chip {
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 999px;
  background: #fff;
  color: #256e94;
  box-shadow: inset 0 0 0 1px rgba(47, 159, 214, 0.35);
  white-space: nowrap;
}
.cast-panel, .synopsis-panel, .details-panel, .timeline-panel, .episodes-panel, .comments-panel, .recommend-region {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px 12px;
}
.cast-columns {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.cast-avatar-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cast-avatar-item { line-height: 1; }
.cast-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 700;
  color: #8a3f00;
  background: linear-gradient(150deg, #ffd9a8, #ffeccf 60%, #d9f0fc);
  box-shadow: inset 0 0 0 1px rgba(240, 122, 28, 0.4);
}
.cast-role-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 6px;
}
.cast-role-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, rgba(255, 230, 199, 0.55), rgba(223, 242, 253, 0.55));
  min-width: 0;
}
.cast-name { font-weight: 700; font-size: 13px; }
.cast-role { font-size: 12px; color: var(--ink-soft); }
.synopsis-body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--gap);
  align-items: start;
}
.synopsis-paragraph {
  font-size: 13.5px;
  color: #4a3a2c;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: linear-gradient(140deg, rgba(255, 244, 228, 0.9), rgba(233, 246, 253, 0.9));
  border-left: 3px solid rgba(255, 159, 60, 0.7);
}
.detail-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 6px 10px;
}
.detail-row {
  display: flex;
  gap: 8px;
  align-items: baseline;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  background: rgba(255, 249, 240, 0.9);
  box-shadow: inset 0 0 0 1px rgba(58, 43, 30, 0.06);
  min-width: 0;
}
.detail-key {
  flex: 0 0 auto;
  font-size: 12px;
  color: #a2530a;
  font-weight: 700;
  white-space: nowrap;
}
.detail-value {
  margin: 0;
  font-size: 13px;
  color: #3f342a;
  min-width: 0;
  overflow-wrap: break-word;
}
.timeline-panel { padding-bottom: 14px; }
.timeline-track {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: var(--gap);
  align-items: start;
  padding-top: 16px;
}
.timeline-track::before {
  content: "";
  position: absolute;
  top: 21px;
  left: 6%;
  right: 6%;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--orange), #ffd08a 45%, var(--sky));
  opacity: 0.85;
}
.timeline-node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 5px;
  padding: 0 2px;
  min-width: 0;
}
.timeline-dot {
  position: relative;
  z-index: 1;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--orange-deep);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9);
}
.timeline-node:nth-child(even) .timeline-dot { border-color: var(--sky-deep); }
.timeline-range {
  font-size: 12px;
  font-weight: 700;
  color: #8a3f00;
  background: var(--orange-soft);
  border-radius: 999px;
  padding: 1px 8px;
  white-space: nowrap;
}
.timeline-label {
  font-size: 12px;
  color: #5a4a3a;
  line-height: 1.4;
  overflow-wrap: break-word;
}
.episode-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  align-items: start;
}
.episode-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: linear-gradient(150deg, #fffdf8, #fff3e2 70%, #eaf6fd);
  border: 1px solid rgba(240, 122, 28, 0.2);
  box-shadow: 0 2px 6px rgba(120, 80, 30, 0.06);
  min-width: 0;
  align-content: flex-start;
}
.episode-number {
  font-size: 11px;
  font-weight: 700;
  color: #256e94;
  background: var(--sky-soft);
  border-radius: 999px;
  padding: 1px 7px;
  white-space: nowrap;
}
.episode-title {
  font-size: 13.5px;
  flex: 1 1 auto;
  min-width: 0;
  color: #3d2e1f;
}
.episode-duration {
  font-size: 11px;
  color: var(--ink-soft);
  white-space: nowrap;
}
.episode-summary {
  flex: 1 1 100%;
  min-width: 0;
  font-size: 12px;
}
.episode-summary-toggle {
  cursor: pointer;
  font-size: 11px;
  color: #1d6f96;
  background: rgba(223, 242, 253, 0.8);
  border-radius: 999px;
  padding: 1px 8px;
  display: inline-block;
  list-style: none;
  white-space: nowrap;
}
.episode-summary-toggle::-webkit-details-marker { display: none; }
.episode-summary-toggle::before { content: "＋ "; }
.episode-summary[open] .episode-summary-toggle::before { content: "－ "; }
.episode-summary-text {
  margin-top: 5px;
  color: #5a4a3a;
  line-height: 1.5;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.85);
  border-left: 3px dashed rgba(255, 159, 60, 0.8);
}
.comment-stack {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: var(--gap);
  align-items: start;
}
.comment-card {
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: linear-gradient(120deg, rgba(255, 244, 228, 0.95), rgba(238, 248, 253, 0.95));
  border: 1px solid rgba(58, 43, 30, 0.08);
  min-width: 0;
}
.comment-nickname {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #8a3f00;
  margin-bottom: 3px;
}
.comment-text {
  font-size: 13px;
  color: #4a3a2c;
  overflow-wrap: break-word;
}
.recommend-grid {
  display: grid;
  gap: var(--gap);
  align-items: start;
}
.recommend-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
a.recommend-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1px solid rgba(47, 159, 214, 0.24);
  color: var(--ink);
  text-decoration: none;
  min-width: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
a.recommend-card:hover, a.recommend-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(47, 159, 214, 0.22);
  border-color: rgba(240, 122, 28, 0.5);
}
[data-runtime="recommendation"] img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 6px;
  background: var(--sky-soft);
}
.recommend-name {
  font-size: 13px;
  font-weight: 700;
  color: #b85c00;
  overflow-wrap: break-word;
}
.recommend-blurb {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.45;
  overflow-wrap: break-word;
}
.site-footer {
  margin-top: 10px;
  padding: 12px;
  background: linear-gradient(90deg, rgba(255, 236, 210, 0.9), rgba(226, 243, 252, 0.9));
  border-top: 1px solid rgba(58, 43, 30, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  justify-content: center;
}
.footer-disclaimer {
  flex: 1 1 100%;
  text-align: center;
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
a[data-contract="footer-home"], a[data-contract="footer-sitemap"] {
  color: #1d6f96;
  text-decoration: none;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: inset 0 0 0 1px rgba(47, 159, 214, 0.3);
  white-space: nowrap;
}
a[data-contract="footer-home"]:hover, a[data-contract="footer-sitemap"]:hover { text-decoration: underline; }
.friend-links {
  flex: 1 1 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  justify-content: center;
}
.friend-links-label {
  font-size: 12px;
  font-weight: 700;
  color: #a2530a;
  white-space: nowrap;
}
a.runtime-friend-link {
  color: #2f6f8f;
  text-decoration: none;
  font-size: 12px;
  white-space: nowrap;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
}
a.runtime-friend-link:hover {
  color: #0f5578;
  text-decoration: underline;
}
@media (max-width: 900px) {.overview-intro { grid-template-columns: minmax(0, 200px) minmax(0, 1fr); }
.episode-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }}
@media (max-width: 720px) {body { font-size: 14px; }
.overview-intro { grid-template-columns: minmax(0, 1fr); }
.poster-panel { max-width: 240px; }
.timeline-track { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.timeline-track::before { display: none; }
.timeline-node { align-items: flex-start; text-align: left; }
.timeline-node::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 16px;
    bottom: -10px;
    width: 2px;
    background: linear-gradient(180deg, var(--orange), var(--sky));
    opacity: 0.5;
  }
.recommend-grid-two { grid-template-columns: minmax(0, 1fr); }
.cast-role-list { grid-template-columns: minmax(0, 1fr); }}
@media (max-width: 560px) {.header-inner { justify-content: space-between; }
.category-bar { justify-content: flex-start; }
.episode-grid { grid-template-columns: minmax(0, 1fr); }
.timeline-track { grid-template-columns: minmax(0, 1fr); }
.comment-stack { grid-template-columns: minmax(0, 1fr); }
.synopsis-body { grid-template-columns: minmax(0, 1fr); }
.movie-title { font-size: 19px; }
.player-btn { padding: 3px 8px; font-size: 11px; }}

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}
