*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: #1a1714;
  color: #d8cfc0;
  font-family: Georgia, "Times New Roman", Times, serif;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
input[type="range"] { accent-color: #7a8a5a; }
h1, h2 { font-weight: 700; line-height: 1.2; }
.movie-title { font-size: clamp(1.4rem, 3vw, 2.2rem); letter-spacing: 0.02em; }
.section-heading {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  letter-spacing: 0.08em;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.section-heading::before {
  content: "";
  width: 3px; height: 1.2em;
  background: #7a8a5a;
  display: inline-block;
}
.section-subheading {
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a89b8a;
  margin-bottom: 0.8rem;
}
.main-shell {
  max-width: 1440px;
  margin: 0 auto;
  padding: 1rem 1.5rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.site-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem 1.5rem;
  padding: 1rem 1.5rem;
  background: #141210;
  border-bottom: 1px solid #2a2620;
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-name-link {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #c0b3a0;
  text-decoration: none;
  transition: color 0.2s;
}
.site-name-link:hover { color: #e0d6c4; }
.categories-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.runtime-category {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  font-size: 0.85rem;
  color: #a89b8a;
  border: 1px solid #3a342c;
  border-radius: 2px;
  white-space: nowrap;
  transition: all 0.2s;
  text-decoration: none;
}
.runtime-category:hover {
  color: #1a1714;
  background: #a89b8a;
  border-color: #a89b8a;
}
.movie-overview-panel {
  background: #201c18;
  border: 1px solid #2e2a24;
  box-shadow: 0 4px 24px rgba(0,0,0,0.5);
  padding: 1.5rem;
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  grid-template-areas:
    "poster title"
    "poster synopsis"
    "poster details"
    "poster cast"
    "poster status";
  gap: 1.2rem 2rem;
  position: relative;
}
.poster-player-wrap {
  grid-area: poster;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.poster-frame {
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #141210;
  border: 1px solid #3a342c;
  position: relative;
}
.poster-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05);
}
.player-wrapper {
  width: 100%;
  min-width: 0;
  background: #141210;
  border: 1px solid #3a342c;
}
.player-wrapper video {
  display: block;
}
.player-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  padding: 0.4rem 0.5rem;
  background: #1a1714;
  align-items: center;
}
.player-controls button {
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border: 1px solid #3a342c;
  background: #26221c;
  color: #c0b3a0;
  border-radius: 2px;
  transition: background 0.2s;
}
.player-controls button:hover { background: #3a342c; }
.player-controls input[type="range"] {
  flex: 1 1 80px;
  min-width: 60px;
  height: 4px;
}
.title-tagline-group {
  grid-area: title;
  border-bottom: 1px solid #2e2a24;
  padding-bottom: 0.8rem;
}
.tagline {
  font-style: italic;
  color: #8a9a6a;
  margin-top: 0.3rem;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}
.synopsis-block {
  grid-area: synopsis;
}
.synopsis-paragraph {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
  color: #c0b3a0;
}
.synopsis-paragraph:last-child { margin-bottom: 0; }
.details-grid {
  grid-area: details;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.5rem 1rem;
  background: #1a1714;
  padding: 0.8rem;
  border-left: 2px solid #7a8a5a;
}
.detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.detail-label {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: #8a7a68;
  text-transform: uppercase;
}
.detail-value {
  font-size: 0.9rem;
  color: #d8cfc0;
}
.cast-section {
  grid-area: cast;
}
.cast-card-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 0.6rem;
}
.cast-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0.4rem;
  background: #1a1714;
  border: 1px solid #2e2a24;
  text-align: center;
  transition: border-color 0.2s;
}
.cast-card:hover { border-color: #7a8a5a; }
.actor-avatar {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: linear-gradient(145deg, #2e2a24, #1a1714);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #7a8a5a;
  border-radius: 50%;
  overflow: hidden;
}
.actor-name {
  font-size: 0.8rem;
  color: #c0b3a0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.episode-status-panel {
  grid-area: status;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-top: 0.8rem;
  border-top: 1px solid #2e2a24;
  font-size: 0.85rem;
}
.status-label { color: #8a7a68; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.08em; }
.status-number { font-size: 1.2rem; font-weight: 700; color: #d8cfc0; }
.status-separator { color: #7a8a5a; }
.current-episode-label { color: #8a7a68; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; }
.current-episode-number { font-size: 1.2rem; font-weight: 700; color: #7a8a5a; }
.timeline-section {
  border-top: 1px solid #2e2a24;
  padding-top: 1.5rem;
}
.timeline-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(200px, 260px);
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.8rem;
  scrollbar-color: #7a8a5a #1a1714;
}
.timeline-node {
  background: #1a1714;
  border: 1px solid #2e2a24;
  padding: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-height: 100px;
  position: relative;
}
.timeline-node::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, #7a8a5a, transparent);
}
.timecode {
  font-family: "Courier New", monospace;
  font-size: 0.8rem;
  color: #7a8a5a;
  letter-spacing: 0.05em;
}
.event-label {
  font-size: 0.85rem;
  color: #c0b3a0;
  line-height: 1.4;
}
.episodes-section {
  border-top: 1px solid #2e2a24;
  padding-top: 1.5rem;
}
.episode-list {
  display: grid;
  gap: 0.8rem;
}
.episode-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  background: #1a1714;
  border-left: 3px solid #7a8a5a;
  padding: 0.8rem 1rem;
  align-items: start;
}
.episode-number {
  font-size: 2rem;
  font-weight: 700;
  color: #7a8a5a;
  line-height: 1;
  min-width: 2ch;
}
.episode-info {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.episode-title {
  font-size: 1rem;
  font-weight: 700;
  color: #d8cfc0;
}
.episode-summary {
  font-size: 0.85rem;
  color: #a89b8a;
  line-height: 1.5;
}
.episode-duration {
  font-size: 0.75rem;
  color: #8a7a68;
  letter-spacing: 0.05em;
}
.comments-section {
  border-top: 1px solid #2e2a24;
  padding-top: 1.5rem;
}
.comments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  grid-auto-flow: dense;
}
.comment-bubble {
  background: #1a1714;
  border: 1px solid #2e2a24;
  border-radius: 12px 12px 12px 2px;
  padding: 0.8rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  position: relative;
}
.comment-bubble::after {
  content: "";
  position: absolute;
  bottom: -6px; left: 14px;
  width: 10px; height: 10px;
  background: #1a1714;
  border-right: 1px solid #2e2a24;
  border-bottom: 1px solid #2e2a24;
  transform: rotate(45deg);
}
.comment-nickname {
  font-size: 0.8rem;
  font-weight: 700;
  color: #7a8a5a;
  letter-spacing: 0.03em;
}
.comment-text {
  font-size: 0.85rem;
  color: #c0b3a0;
  line-height: 1.5;
}
.comments-grid .comment-bubble:nth-child(2n) {
  border-radius: 12px 12px 2px 12px;
}
.comments-grid .comment-bubble:nth-child(2n)::after {
  left: auto;
  right: 14px;
}
.comments-grid .comment-bubble:nth-child(3n) {
  margin-top: 1.2rem;
}
.recommendation-region {
  border-top: 1px solid #2e2a24;
  padding-top: 1.5rem;
}
.reco-title {
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  color: #d8cfc0;
}
.reco-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}
a[data-runtime="recommendation"] {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: #1a1714;
  padding: 0.6rem;
  border: 1px solid #2e2a24;
  transition: border-color 0.2s, transform 0.2s;
  text-decoration: none;
  color: inherit;
}
a[data-runtime="recommendation"]:hover {
  border-color: #7a8a5a;
  transform: translateY(-2px);
}
a[data-runtime="recommendation"] img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #141210;
}
a[data-runtime="recommendation"] [data-runtime="name"] {
  font-size: 0.9rem;
  font-weight: 700;
  color: #d8cfc0;
  line-height: 1.3;
}
a[data-runtime="recommendation"] [data-runtime="blurb"] {
  font-size: 0.8rem;
  color: #a89b8a;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.site-footer {
  background: #141210;
  border-top: 1px solid #2e2a24;
  padding: 1.5rem;
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.footer-disclaimer {
  font-size: 0.8rem;
  color: #8a7a68;
  max-width: 60ch;
  line-height: 1.5;
}
.footer-links {
  display: flex;
  gap: 1.2rem;
}
a[data-contract="footer-home"], a[data-contract="footer-sitemap"] {
  font-size: 0.85rem;
  color: #a89b8a;
  text-decoration: none;
  transition: color 0.2s;
}
a[data-contract="footer-home"]:hover, a[data-contract="footer-sitemap"]:hover { color: #e0d6c4; }
.friend-links-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
}
.friend-links-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: #8a7a68;
  text-transform: uppercase;
}
a.runtime-friend-link {
  font-size: 0.8rem;
  color: #a89b8a;
  text-decoration: underline;
  text-decoration-color: #3a342c;
  text-underline-offset: 3px;
  transition: color 0.2s, text-decoration-color 0.2s;
}
a.runtime-friend-link:hover {
  color: #e0d6c4;
  text-decoration-color: #7a8a5a;
}
.player-wrapper.theater-mode {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #000;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.theater-mode video {
  max-height: 100vh;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
}
.theater-mode .player-controls {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(20,18,16,0.9);
  border: 1px solid #3a342c;
}
.main-shell.lights-off .movie-overview-panel, .main-shell.lights-off .timeline-section, .main-shell.lights-off .episodes-section, .main-shell.lights-off .comments-section, .main-shell.lights-off .recommendation-region {
  opacity: 0.15;
  transition: opacity 0.3s;
}
.player-controls .playing-state {
  background: #7a8a5a !important;
  color: #141210 !important;
}
.player-controls .muted-state {
  background: #8a4a3a !important;
}
@media (max-width: 900px) {.movie-overview-panel {
    grid-template-columns: 1fr;
    grid-template-areas:
      "poster"
      "title"
      "synopsis"
      "details"
      "cast"
      "status";
    gap: 1.2rem;
  }
.poster-player-wrap {
    flex-direction: column;
  }
.poster-frame {
    max-width: 280px;
    margin: 0 auto;
  }
.player-wrapper {
    width: 100%;
  }
.timeline-track {
    grid-auto-columns: minmax(180px, 220px);
  }}
@media (max-width: 600px) {.main-shell {
    padding: 0.8rem 0.8rem 2rem;
    gap: 2rem;
  }
.site-header {
    padding: 0.8rem;
    flex-direction: column;
    align-items: flex-start;
  }
.movie-overview-panel {
    padding: 1rem;
  }
.details-grid {
    grid-template-columns: 1fr 1fr;
  }
.cast-card-list {
    grid-template-columns: repeat(2, 1fr);
  }
.comments-grid {
    grid-template-columns: 1fr;
  }
.reco-list {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.7rem;
  }
.timeline-track {
    grid-auto-columns: minmax(160px, 200px);
  }
.episode-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
.footer-links {
    flex-wrap: wrap;
  }}
@media (max-width: 480px) {.player-wrapper {
    min-width: 0;
    width: 100%;
  }
.poster-player-wrap {
    min-width: 0;
  }}

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}
