*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  font-family: Georgia, "Times New Roman", "Songti SC", "SimSun", serif;
  background: #0d0b1e;
  color: #d8d4e8;
  line-height: 1.6;
  overflow-x: hidden;
}
img, video {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
ul, ol {
  list-style: none;
}
header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.5rem;
  background: rgba(13, 11, 30, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(180, 60, 80, 0.3);
}
.brand-link {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #e8d5c4;
  text-decoration: none;
  white-space: nowrap;
  text-shadow: 0 0 12px rgba(230, 180, 150, 0.4);
}
.brand-link:hover {
  color: #f0e6d8;
}
nav[data-contract="categories"] {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem 0.8rem;
  overflow-x: auto;
}
.runtime-category {
  display: inline-block;
  white-space: nowrap;
  font-size: 0.85rem;
  color: #a8a2c0;
  text-decoration: none;
  padding: 0.25rem 0.6rem;
  border-radius: 2rem;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}
.runtime-category:hover {
  color: #e8d5c4;
  border-color: rgba(180, 60, 80, 0.5);
  background: rgba(180, 60, 80, 0.15);
}
main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}
.overview-block {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  grid-template-areas:
    "poster title"
    "poster tagline"
    "poster cast"
    "poster synopsis"
    "poster status"
    "poster details"
    "poster player";
  gap: 0 2rem;
  padding: 2rem 1.5rem 2rem 1.5rem;
  margin: 1.5rem 0 2.5rem;
  background: linear-gradient(145deg, rgba(20, 16, 40, 0.95) 0%, rgba(15, 12, 32, 0.98) 100%);
  border: 1px solid rgba(120, 100, 160, 0.25);
  border-radius: 0.5rem;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6), inset 0 0 60px rgba(80, 40, 120, 0.08);
}
.poster-hero {
  grid-area: poster;
  align-self: start;
  position: sticky;
  top: 6rem;
  border-radius: 0.25rem;
  overflow: hidden;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.7);
}
.hero-poster-img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  display: block;
}
.movie-title {
  grid-area: title;
  align-self: end;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  color: #e8d5c4;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 20px rgba(200, 80, 100, 0.3);
  margin-bottom: 0.25rem;
}
.tagline {
  grid-area: tagline;
  font-size: 1.1rem;
  font-style: italic;
  color: #b8a8c0;
  margin-bottom: 1.2rem;
  border-left: 3px solid #b04050;
  padding-left: 0.75rem;
  align-self: start;
}
.cast-group {
  grid-area: cast;
  align-self: start;
  margin-bottom: 1.5rem;
}
.unit-heading {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #8a7a9a;
  border-bottom: 1px solid rgba(180, 60, 80, 0.4);
  padding-bottom: 0.35rem;
  margin-bottom: 0.8rem;
}
.cast-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  align-items: start;
}
.cast-item {
  text-align: center;
  padding: 0.5rem 0.25rem;
  background: rgba(30, 25, 55, 0.4);
  border-radius: 0.25rem;
}
.cast-avatar {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 0.4rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #4a3a6a, #2a203a);
  border: 2px solid rgba(220, 180, 160, 0.4);
  position: relative;
  overflow: hidden;
}
.cast-avatar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(230, 200, 180, 0.3), transparent 60%);
}
.cast-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #d8d0e0;
}
.cast-role {
  font-size: 0.75rem;
  color: #8a7a9a;
  margin-top: 0.1rem;
}
.synopsis-group {
  grid-area: synopsis;
  align-self: start;
  margin-bottom: 1.5rem;
}
.synopsis-para {
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
  color: #c8c0d8;
  text-indent: 1.5em;
}
.episode-status-group {
  grid-area: status;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
  padding: 0.6rem 0.8rem;
  background: rgba(40, 30, 60, 0.5);
  border-left: 3px solid #b04050;
  border-radius: 0.2rem;
}
.status-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #e8d5c4;
}
.current-episode-num {
  color: #ff6b6b;
  font-size: 1.1rem;
  font-weight: 800;
}
.total-episodes {
  font-size: 0.8rem;
  color: #8a7a9a;
}
.episode-entry-link {
  font-size: 0.8rem;
  color: #b8a8c0;
  text-decoration: none;
  border-bottom: 1px dashed rgba(184, 168, 192, 0.5);
  transition: color 0.2s ease;
}
.episode-entry-link:hover {
  color: #e8d5c4;
  border-bottom-color: #e8d5c4;
}
.detail-group {
  grid-area: details;
  align-self: start;
  margin-bottom: 1.2rem;
}
.detail-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.3rem 1.5rem;
}
.detail-row {
  display: flex;
  gap: 0.5rem;
  font-size: 0.85rem;
}
.detail-row dt {
  color: #8a7a9a;
  white-space: nowrap;
}
.detail-row dd {
  color: #d0c8e0;
}
.player-wrapper {
  grid-area: player;
  width: 100%;
  min-width: 0;
  background: #000;
  border-radius: 0.3rem;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}
.player-wrapper video {
  display: block;
}
.player-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.4rem 0.6rem;
  background: rgba(10, 8, 20, 0.9);
  border-top: 1px solid rgba(120, 100, 160, 0.3);
}
.player-controls button {
  background: transparent;
  border: 1px solid rgba(120, 100, 160, 0.4);
  color: #a8a2c0;
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 0.2rem;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
}
.player-controls button:hover {
  background: rgba(180, 60, 80, 0.3);
  border-color: rgba(180, 60, 80, 0.6);
  color: #e8d5c4;
}
.timeline-section {
  margin: 2.5rem 0;
  padding: 0 1.5rem;
}
.timeline-section .unit-heading {
  margin-bottom: 1rem;
}
.timeline-scroll {
  overflow-x: auto;
  padding-bottom: 0.8rem;
  scrollbar-width: thin;
  scrollbar-color: #b04050 rgba(30, 25, 55, 0.5);
}
.timeline-scroll::-webkit-scrollbar {
  height: 6px;
}
.timeline-scroll::-webkit-scrollbar-track {
  background: rgba(30, 25, 55, 0.5);
  border-radius: 3px;
}
.timeline-scroll::-webkit-scrollbar-thumb {
  background: #b04050;
  border-radius: 3px;
}
.timeline-list {
  display: flex;
  gap: 1.5rem;
  min-width: max-content;
  padding: 0.5rem 0;
}
.timeline-item {
  position: relative;
  flex: 0 0 180px;
  padding: 1rem 0.8rem 0.8rem;
  background: rgba(25, 20, 45, 0.7);
  border-radius: 0.25rem;
  border-top: 3px solid #b04050;
  transition: transform 0.2s ease, background 0.2s ease;
}
.timeline-item::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #b04050;
  border: 2px solid #0d0b1e;
  transform: translateX(-50%);
  box-shadow: 0 0 8px rgba(176, 64, 80, 0.6);
}
.timeline-item:hover {
  transform: translateY(-2px);
  background: rgba(35, 28, 60, 0.8);
}
.timecode {
  display: block;
  font-size: 0.75rem;
  font-family: "Courier New", monospace;
  color: #ff6b6b;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}
.timeline-label {
  font-size: 0.85rem;
  color: #c8c0d8;
  line-height: 1.4;
}
.episodes-section {
  margin: 2.5rem 0;
  padding: 0 1.5rem;
}
.episode-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}
.episode-item {
  display: flex;
  gap: 0.8rem;
  padding: 0.8rem;
  background: rgba(25, 20, 45, 0.6);
  border-radius: 0.3rem;
  border: 1px solid rgba(120, 100, 160, 0.15);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.episode-item:hover {
  background: rgba(40, 30, 65, 0.7);
  border-color: rgba(176, 64, 80, 0.4);
}
.episode-number {
  flex: 0 0 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  color: #ff6b6b;
  background: rgba(176, 64, 80, 0.15);
  border-radius: 50%;
  border: 1px solid rgba(176, 64, 80, 0.3);
}
.episode-info {
  flex: 1;
  min-width: 0;
}
.episode-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #e0d8e8;
  margin-bottom: 0.2rem;
}
.episode-summary {
  font-size: 0.8rem;
  color: #a8a2c0;
  line-height: 1.4;
  margin-bottom: 0.3rem;
}
.episode-duration {
  display: inline-block;
  font-size: 0.7rem;
  color: #8a7a9a;
  background: rgba(138, 122, 154, 0.1);
  padding: 0.1rem 0.4rem;
  border-radius: 0.2rem;
}
.comments-section {
  margin: 2.5rem 0;
  padding: 0 1.5rem;
}
.comments-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}
.comment-card {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  grid-template-areas:
    "avatar nickname"
    "avatar text";
  gap: 0.2rem 0.6rem;
  padding: 0.8rem;
  background: rgba(25, 20, 45, 0.6);
  border-radius: 0.3rem;
  border: 1px solid rgba(120, 100, 160, 0.15);
}
.comment-avatar {
  grid-area: avatar;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #4a3a6a, #2a203a);
  border: 1px solid rgba(220, 180, 160, 0.3);
  position: relative;
  overflow: hidden;
}
.comment-avatar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(230, 200, 180, 0.2), transparent 60%);
}
.comment-nickname {
  grid-area: nickname;
  font-size: 0.85rem;
  font-weight: 600;
  color: #d0c8e0;
  align-self: end;
}
.comment-text {
  grid-area: text;
  font-size: 0.8rem;
  color: #a8a2c0;
  line-height: 1.5;
}
.recommendation-region {
  margin: 2.5rem 0;
  padding: 0 1.5rem;
}
.recommendation-title {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #8a7a9a;
  border-bottom: 1px solid rgba(180, 60, 80, 0.4);
  padding-bottom: 0.35rem;
  margin-bottom: 0.8rem;
}
.recommendation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.8rem;
}
a[data-runtime="recommendation"] {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.5rem;
  background: rgba(25, 20, 45, 0.6);
  border-radius: 0.3rem;
  border: 1px solid rgba(120, 100, 160, 0.15);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  align-self: start;
}
a[data-runtime="recommendation"]:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  background: rgba(40, 30, 65, 0.8);
  border-color: rgba(176, 64, 80, 0.4);
}
a[data-runtime="recommendation"] img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0.2rem;
  background: #1a1625;
}
a[data-runtime="recommendation"] span[data-runtime="name"] {
  font-size: 0.85rem;
  font-weight: 600;
  color: #d8d0e0;
  line-height: 1.3;
}
a[data-runtime="recommendation"] span[data-runtime="blurb"] {
  font-size: 0.7rem;
  color: #8a7a9a;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
footer {
  margin-top: 3rem;
  padding: 1.5rem 1.5rem 2rem;
  background: rgba(13, 11, 30, 0.95);
  border-top: 1px solid rgba(180, 60, 80, 0.3);
  font-size: 0.8rem;
  color: #8a7a9a;
}
footer p[data-contract="disclaimer"] {
  margin-bottom: 1rem;
  line-height: 1.5;
}
.footer-links {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
}
a[data-contract="footer-home"], a[data-contract="footer-sitemap"] {
  color: #a8a2c0;
  text-decoration: none;
  transition: color 0.2s ease;
}
a[data-contract="footer-home"]:hover, a[data-contract="footer-sitemap"]:hover {
  color: #e8d5c4;
  text-decoration: underline;
}
.footer-friend-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
}
.friend-label {
  font-weight: 600;
  color: #a8a2c0;
  white-space: nowrap;
}
.runtime-friend-link {
  color: #6a5a7a;
  text-decoration: none;
  transition: color 0.2s ease;
  white-space: nowrap;
}
.runtime-friend-link:hover {
  color: #e8d5c4;
  text-decoration: underline;
}
.video.theater-mode, video.theater-mode {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80vw;
  height: auto;
  z-index: 200;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.9);
  border-radius: 0.5rem;
  background: #000;
}
body.lights-dim {
  background: #050408;
}
body.lights-dim .overview-block, body.lights-dim .timeline-section, body.lights-dim .episodes-section, body.lights-dim .comments-section, body.lights-dim .recommendation-region {
  opacity: 0.6;
  transition: opacity 0.3s ease;
}
body.lights-dim .player-wrapper {
  opacity: 1;
  box-shadow: 0 0 80px rgba(176, 64, 80, 0.2);
}
@media (max-width: 960px) {.overview-block {
    grid-template-columns: minmax(220px, 280px) 1fr;
    gap: 0 1.5rem;
    padding: 1.5rem 1rem;
  }
.episode-list {
    grid-template-columns: 1fr;
  }
.detail-list {
    grid-template-columns: 1fr;
  }
.cast-list {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
.cast-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-align: left;
    padding: 0.4rem 0.6rem;
  }
.cast-avatar {
    margin: 0;
    width: 3rem;
    height: 3rem;
    flex-shrink: 0;
  }
.comments-grid {
    grid-template-columns: 1fr;
  }}
@media (max-width: 720px) {header {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.6rem 1rem;
    gap: 0.4rem;
  }
nav[data-contract="categories"] {
    justify-content: flex-start;
    width: 100%;
    overflow-x: auto;
  }
.overview-block {
    grid-template-columns: 1fr;
    grid-template-areas:
      "poster"
      "title"
      "tagline"
      "cast"
      "synopsis"
      "status"
      "details"
      "player";
    gap: 0.8rem;
    padding: 1rem;
  }
.poster-hero {
    position: static;
    width: 60%;
    margin: 0 auto;
  }
.movie-title {
    font-size: 1.6rem;
    text-align: center;
  }
.tagline {
    text-align: center;
    border-left: none;
    padding-left: 0;
    border-bottom: 1px solid rgba(176, 64, 80, 0.4);
    padding-bottom: 0.5rem;
  }
.cast-list {
    grid-template-columns: repeat(3, 1fr);
  }
.cast-item {
    flex-direction: column;
    text-align: center;
    gap: 0.2rem;
  }
.cast-avatar {
    margin: 0 auto;
  }
.detail-list {
    grid-template-columns: 1fr 1fr;
  }
.timeline-section, .episodes-section, .comments-section, .recommendation-region {
    padding: 0 1rem;
  }
.timeline-item {
    flex: 0 0 150px;
  }
.recommendation-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.6rem;
  }
.player-controls {
    gap: 0.15rem;
  }
.player-controls button {
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
  }}
@media (max-width: 480px) {.overview-block {
    padding: 0.8rem;
  }
.poster-hero {
    width: 70%;
  }
.movie-title {
    font-size: 1.3rem;
  }
.tagline {
    font-size: 0.9rem;
  }
.cast-list {
    grid-template-columns: 1fr;
  }
.cast-item {
    flex-direction: row;
    text-align: left;
    gap: 0.8rem;
  }
.cast-avatar {
    margin: 0;
    width: 2.8rem;
    height: 2.8rem;
  }
.detail-list {
    grid-template-columns: 1fr;
  }
.episode-status-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
.timeline-list {
    gap: 1rem;
  }
.timeline-item {
    flex: 0 0 140px;
  }
.recommendation-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
a[data-runtime="recommendation"] {
    padding: 0.4rem;
  }
a[data-runtime="recommendation"] span[data-runtime="name"] {
    font-size: 0.75rem;
  }
a[data-runtime="recommendation"] span[data-runtime="blurb"] {
    font-size: 0.65rem;
  }
.player-controls {
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
  }
.player-controls button {
    flex-shrink: 0;
  }
.footer-links {
    flex-direction: column;
    gap: 0.4rem;
  }
.footer-friend-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }}

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}
