* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  background: #3e2b24;
  color: #f5ead0;
  font-family: "Source Han Serif SC", "Noto Serif CJK SC", "Songti SC", SimSun, serif;
  line-height: 1.45;
  min-height: 100vh;
  overflow-x: hidden;
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: #e8b64c;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
h1, h2, h3 {
  font-weight: 700;
  line-height: 1.2;
}
p {
  margin-bottom: 0.5rem;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 0.75rem 1.5rem;
  background: #2e1f1a;
  border-bottom: 2px solid #6b4a3a;
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-brand {
  font-size: 1.4rem;
  font-weight: 700;
  color: #e8b64c;
  letter-spacing: 0.08em;
  text-decoration: none;
}
.site-brand:hover {
  color: #f5ead0;
  text-decoration: none;
}
.categories-nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  padding: 0.25rem 0;
}
.runtime-category {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  background: #4a3529;
  border: 1px solid #6b4a3a;
  border-radius: 1.5rem;
  font-size: 0.85rem;
  color: #e8b64c;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.runtime-category:hover {
  background: #6b4a3a;
  color: #f5ead0;
  text-decoration: none;
}
main {
  padding: 0 1rem 2rem;
  max-width: 1440px;
  margin: 0 auto;
}
.synopsis-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1.5rem 0 0.5rem;
  align-items: start;
}
.info-panel-left, .info-panel-right {
  min-width: 0;
}
.hero-poster-group {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}
.hero-poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 12px;
  background: #2e1f1a;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}
.hero-title-block {
  padding: 0.5rem 0.25rem;
}
.hero-title {
  font-size: 2rem;
  line-height: 1.25;
  color: #f5ead0;
  margin-bottom: 0.3rem;
  letter-spacing: 0.02em;
}
.hero-tagline {
  font-size: 1rem;
  color: #c9a878;
  font-weight: 400;
  font-style: italic;
}
.synopsis-block {
  margin-bottom: 1.5rem;
  padding: 0 0.25rem;
}
.section-title {
  font-size: 1.3rem;
  color: #e8b64c;
  border-left: 4px solid #e8b64c;
  padding-left: 0.6rem;
  margin-bottom: 0.8rem;
  letter-spacing: 0.03em;
}
.synopsis-block p {
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
  color: #eadfc8;
}
.timeline-block {
  margin-bottom: 1.8rem;
  padding: 0 0.25rem;
}
.timeline-list {
  list-style: none;
  position: relative;
  margin-left: 0.6rem;
  padding-left: 1.2rem;
  border-left: 3px solid #6b4a3a;
}
.timeline-item {
  position: relative;
  padding: 0.4rem 0 0.8rem;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.62rem;
  top: 0.7rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: #e8b64c;
  border: 2px solid #3e2b24;
}
.timeline-timecode {
  display: block;
  font-weight: 700;
  color: #e8b64c;
  font-size: 0.9rem;
  margin-bottom: 0.15rem;
}
.timeline-label {
  font-size: 0.9rem;
  color: #eadfc8;
}
.cast-block {
  padding: 0 0.25rem;
}
.cast-scroll-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.8rem;
}
.cast-card {
  background: #4a3529;
  border-radius: 10px;
  padding: 0.8rem 0.6rem;
  text-align: center;
  font-weight: 600;
  font-size: 1rem;
  color: #f5ead0;
  border: 1px solid #6b4a3a;
}
.cast-card:hover {
  background: #6b4a3a;
}
.info-panel-right {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.detail-meta {
  background: #2e1f1a;
  border-radius: 12px;
  padding: 1rem 1rem 0.8rem;
  border: 1px solid #4a3529;
}
.detail-meta .section-title {
  margin-bottom: 0.6rem;
}
.meta-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.3rem;
}
.meta-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.25rem 0;
  border-bottom: 1px dashed #4a3529;
}
.meta-item dt {
  font-weight: 600;
  color: #c9a878;
  font-size: 0.85rem;
}
.meta-item dd {
  margin: 0;
  font-size: 0.9rem;
  color: #f5ead0;
}
.rating-highlight {
  color: #e8b64c;
  font-weight: 700;
}
.rating-highlight dd {
  color: #e8b64c;
  font-weight: 700;
  font-size: 1.2rem;
}
.episode-status {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  padding: 0.5rem 0.25rem;
}
.status-total, .status-current {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  border-radius: 2rem;
  font-size: 0.85rem;
  font-weight: 600;
}
.status-total {
  background: #4a3529;
  color: #e8b64c;
  border: 1px solid #6b4a3a;
}
.status-current {
  background: #6b4a3a;
  color: #f5ead0;
  border: 1px solid #a07a5f;
}
.player-shell {
  background: #241813;
  border-radius: 12px;
  padding: 0.3rem;
  border: 1px solid #4a3529;
  transition: all 0.3s ease;
  min-width: 0;
}
.player-shell video {
  display: block;
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: 8px;
  background: #000;
}
.player-shell.theater-mode {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000;
  background: #000;
  padding: 0;
  border-radius: 0;
  border: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.theater-mode video {
  width: 100%;
  height: auto;
  max-height: 80vh;
  border-radius: 0;
}
.player-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.6rem 0.5rem 0.3rem;
  align-items: center;
}
.player-controls button {
  background: #4a3529;
  border: 1px solid #6b4a3a;
  color: #e8b64c;
  font-size: 0.8rem;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}
.player-controls button:hover {
  background: #6b4a3a;
  color: #f5ead0;
}
.player-controls progress {
  flex: 1;
  min-width: 80px;
  height: 0.6rem;
  accent-color: #e8b64c;
}
body.lights-dim {
  background: #1a1210;
}
body.lights-dim main, body.lights-dim header, body.lights-dim footer {
  opacity: 0.25;
  transition: opacity 0.4s;
}
.episode-section {
  padding: 1.5rem 0 0.5rem;
}
.episode-card-rail {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.episode-card {
  background: #2e1f1a;
  border-radius: 12px;
  padding: 0.9rem;
  border: 1px solid #4a3529;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.episode-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}
.episode-number {
  font-size: 0.8rem;
  font-weight: 700;
  color: #e8b64c;
  letter-spacing: 0.05em;
}
.episode-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #f5ead0;
  margin-bottom: 0.2rem;
}
.episode-summary {
  font-size: 0.85rem;
  color: #c9a878;
  line-height: 1.4;
  flex-grow: 1;
}
.episode-duration {
  font-size: 0.8rem;
  color: #a07a5f;
  margin-top: 0.3rem;
  font-weight: 600;
}
.comments-section {
  padding: 1.5rem 0 0.5rem;
}
.comments-masonry {
  columns: 3;
  column-gap: 1rem;
}
.comment-card {
  break-inside: avoid;
  background: #2e1f1a;
  border-radius: 12px;
  padding: 0.9rem;
  margin-bottom: 1rem;
  border: 1px solid #4a3529;
  transition: background 0.2s;
}
.comment-card:hover {
  background: #3a2a21;
}
.comment-card p:first-child {
  font-weight: 700;
  color: #e8b64c;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}
.comment-card p:last-child {
  font-size: 0.88rem;
  color: #eadfc8;
  line-height: 1.5;
}
.recommend-region {
  padding: 1rem 0 0.5rem;
}
.rec-scroll-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.8rem;
  margin-bottom: 0.5rem;
}
a[data-runtime="recommendation"] {
  display: flex;
  flex-direction: column;
  background: #2e1f1a;
  border-radius: 10px;
  border: 1px solid #4a3529;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  height: auto;
  padding: 0;
}
a[data-runtime="recommendation"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
  text-decoration: none;
}
a[data-runtime="recommendation"] img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #1a1210;
}
a[data-runtime="recommendation"] span[data-runtime="name"] {
  font-weight: 700;
  color: #f5ead0;
  font-size: 0.9rem;
  padding: 0.5rem 0.6rem 0.1rem;
}
a[data-runtime="recommendation"] span[data-runtime="blurb"] {
  font-size: 0.78rem;
  color: #c9a878;
  padding: 0 0.6rem 0.6rem;
  line-height: 1.35;
  flex-grow: 1;
}
footer {
  background: #2e1f1a;
  padding: 1.5rem 1.5rem 2rem;
  border-top: 2px solid #6b4a3a;
  margin-top: 2rem;
}
.disclaimer {
  font-size: 0.8rem;
  color: #a07a5f;
  line-height: 1.5;
  max-width: 800px;
  margin-bottom: 1.2rem;
}
.footer-links {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
}
.footer-link {
  font-size: 0.9rem;
  color: #e8b64c;
  text-decoration: none;
}
.footer-link:hover {
  color: #f5ead0;
  text-decoration: underline;
}
.friend-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.8rem;
  align-items: center;
  padding-top: 0.8rem;
  border-top: 1px solid #4a3529;
}
.friend-links-label {
  font-weight: 700;
  color: #c9a878;
  font-size: 0.85rem;
  white-space: nowrap;
}
.runtime-friend-link {
  font-size: 0.85rem;
  color: #a07a5f;
  text-decoration: none;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
}
.runtime-friend-link:hover {
  color: #e8b64c;
  text-decoration: underline;
  background: #4a3529;
}
@media (max-width: 1024px) {.synopsis-layout {
    grid-template-columns: 1fr;
  }
.info-panel-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
.player-shell {
    grid-column: 1 / -1;
  }
.comments-masonry {
    columns: 2;
  }}
@media (max-width: 768px) {header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
.categories-nav {
    justify-content: flex-start;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.3rem;
  }
.hero-title {
    font-size: 1.5rem;
  }
.hero-poster {
    max-width: 300px;
    margin: 0 auto;
  }
.hero-poster-group {
    align-items: center;
    text-align: center;
  }
.info-panel-right {
    grid-template-columns: 1fr;
  }
.episode-card-rail {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.7rem;
  }
.comments-masonry {
    columns: 1;
  }
.rec-scroll-row {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.6rem;
  }}
@media (max-width: 480px) {main {
    padding: 0 0.6rem 1rem;
  }
.synopsis-layout {
    gap: 1rem;
  }
.hero-title {
    font-size: 1.3rem;
  }
.section-title {
    font-size: 1.1rem;
  }
.cast-scroll-list {
    grid-template-columns: repeat(2, 1fr);
  }
.episode-card-rail {
    grid-template-columns: 1fr;
  }
.rec-scroll-row {
    grid-template-columns: repeat(2, 1fr);
  }
.player-controls {
    gap: 0.25rem;
  }
.player-controls button {
    font-size: 0.72rem;
    padding: 0.25rem 0.4rem;
  }
.player-controls progress {
    width: 100%;
    flex-basis: 100%;
    order: -1;
  }
.friend-links {
    gap: 0.3rem 0.5rem;
  }}
.player-controls .click {
  background: #6b4a3a;
  color: #f5ead0;
}
.player-shell:fullscreen {
  background: #000;
  padding: 0;
}
.player-shell:fullscreen video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.player-shell .player-controls {
  position: static;
}

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}
