.movie-page-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 0%, rgba(208, 183, 130, 0.09), transparent 34rem),
    #14171a;
}

.movie-page-header {
  grid-template-columns: 220px minmax(0, 960px);
  justify-content: center;
  padding-inline: 0;
}

.movie-page-main {
  width: min(1180px, calc(100% - 32px));
  max-width: 1180px;
  margin: 0 auto;
  padding: 92px 0 48px;
}

.movie-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  color: #9ea8a8;
  font-size: 0.82rem;
}

.movie-breadcrumbs a {
  color: #d8c28f;
}

.movie-page-loading,
.movie-not-found {
  padding: 48px 24px;
  border: 1px solid rgba(208, 183, 130, 0.22);
  border-radius: 8px;
  background: #1d2225;
  text-align: center;
}

.movie-not-found h1 {
  margin-top: 0;
}

.movie-not-found .header-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 10px;
}

.movie-detail-page {
  display: grid;
  gap: 18px;
}

.movie-overview,
.movie-cast-section,
.movie-schedule-section,
.movie-player-section,
.movie-franchise-section,
.movie-related-section,
.movie-page-comments {
  border: 1px solid rgba(235, 231, 222, 0.13);
  border-radius: 8px;
  background: #1d2225;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.2);
}

.movie-overview {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 28px;
  padding: 24px;
}

.movie-page-poster-wrap {
  align-self: start;
  overflow: hidden;
  border: 1px solid rgba(208, 183, 130, 0.32);
  border-radius: 7px;
  background: #101315;
  aspect-ratio: 2 / 3;
}

.movie-page-poster {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.movie-page-summary {
  min-width: 0;
}

.movie-page-summary .eyebrow {
  margin: 2px 0 9px;
}

.movie-page-summary h1 {
  margin: 0 0 18px;
  max-width: none;
  color: #f3eee4;
  font-size: clamp(2rem, 4.2vw, 4rem);
  line-height: 0.98;
  overflow-wrap: normal;
  word-break: normal;
  text-wrap: balance;
}

.movie-page-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 24px;
  margin: 0;
}

.movie-page-meta div {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  gap: 8px;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.movie-page-meta dt {
  color: #d8c28f;
  font-weight: 800;
}

.movie-page-meta dd {
  min-width: 0;
  margin: 0;
  color: #c6cdcd;
}

.movie-page-description {
  margin: 20px 0 0;
  color: #c1c8c8;
  font-size: 1rem;
  line-height: 1.7;
}

.movie-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.movie-back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
}

.movie-cast-section,
.movie-schedule-section,
.movie-player-section,
.movie-franchise-section,
.movie-related-section,
.movie-page-comments {
  padding: 20px;
}

.movie-detail-page > section {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.movie-section-heading {
  margin-bottom: 14px;
}

.movie-section-heading .eyebrow {
  margin: 0 0 4px;
}

.movie-section-heading h2 {
  margin: 0;
  color: #f3eee4;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
}

.movie-cast-section {
  background:
    radial-gradient(circle at 100% 0%, rgba(208, 183, 130, 0.08), transparent 18rem),
    #1d2225;
}

.movie-schedule-section {
  background:
    radial-gradient(circle at 0% 0%, rgba(208, 183, 130, 0.08), transparent 20rem),
    #1d2225;
}

.movie-schedule-note {
  margin: -4px 0 16px;
  color: #aeb7b7;
  line-height: 1.55;
}

.movie-schedule-list {
  display: grid;
  gap: 14px;
}

.schedule-season {
  overflow: hidden;
  border: 1px dashed rgba(235, 231, 222, 0.28);
  border-radius: 12px;
  background: rgba(8, 10, 13, 0.28);
}

.schedule-season h3 {
  margin: 0;
  padding: 12px 16px;
  border-bottom: 1px dashed rgba(235, 231, 222, 0.2);
  color: #f3eee4;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.schedule-episode-list {
  display: grid;
}

.schedule-episode {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px;
  align-items: stretch;
  min-height: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.025);
}

.schedule-episode:nth-child(even) {
  background: rgba(255, 255, 255, 0.055);
}

.schedule-episode:last-child {
  border-bottom: 0;
}

.schedule-check {
  display: grid;
  place-items: center;
  cursor: pointer;
}

.schedule-check input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.schedule-check span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 44px;
  border-left: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 0;
  color: transparent;
  font-weight: 900;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.schedule-check input:checked + span {
  background: rgba(208, 183, 130, 0.08);
  color: #cfd4d4;
  transform: none;
}

.schedule-check-muted {
  cursor: default;
}

.schedule-check-muted span {
  color: #7f898b;
  background: rgba(255, 255, 255, 0.035);
}

.schedule-episode-link {
  display: grid;
  grid-template-columns: minmax(135px, 0.7fr) minmax(0, 1.8fr) minmax(130px, 0.8fr);
  align-items: center;
  gap: 16px;
  padding: 10px 14px;
  color: inherit;
  text-decoration: none;
}

.schedule-episode-link:hover strong,
.schedule-episode-link:focus-visible strong {
  color: #f1d389;
}

.schedule-episode-number {
  color: #f3eee4;
  font-weight: 800;
}

.schedule-episode strong {
  min-width: 0;
  color: #f3eee4;
  transition: color 0.18s ease;
}

.schedule-episode-date {
  color: #d7dddd;
  font-size: 0.92rem;
  text-align: right;
}

.schedule-episode.is-watched {
  background: rgba(208, 183, 130, 0.055);
}

.schedule-episode.is-upcoming {
  opacity: 0.72;
}

.schedule-episode.is-upcoming .schedule-episode-date {
  color: #f1d389;
}

.schedule-episode.is-upcoming .schedule-check span {
  color: #8e9799;
  background: rgba(255, 255, 255, 0.025);
}

.schedule-episode.is-watched strong {
  color: #aeb7b7;
  text-decoration: line-through;
}

.schedule-episode-muted strong {
  color: #c6cdcd;
}

.movie-cast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
}

.movie-cast-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 11px;
  border: 1px solid rgba(208, 183, 130, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.movie-cast-avatar {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid rgba(208, 183, 130, 0.34);
  background:
    radial-gradient(circle at 35% 22%, rgba(241, 211, 137, 0.42), transparent 42%),
    linear-gradient(145deg, #2a3036, #15191d);
  color: #f1d389;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.movie-cast-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.movie-cast-copy {
  min-width: 0;
}

.movie-cast-copy strong,
.movie-cast-copy span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.movie-cast-copy strong {
  color: #fff8e8;
  font-size: 0.94rem;
}

.movie-cast-copy span {
  margin-top: 4px;
  color: #b9c4c6;
  font-size: 0.78rem;
}

.movie-cast-empty {
  margin: 0;
  padding: 14px;
  border: 1px dashed rgba(208, 183, 130, 0.22);
  border-radius: 12px;
  color: #aeb8ba;
  background: rgba(0, 0, 0, 0.12);
}

@media (max-width: 560px) {
  .movie-cast-grid {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .movie-cast-card {
    grid-template-columns: 44px minmax(0, 1fr);
    min-height: 64px;
    padding: 9px;
  }

  .movie-cast-avatar {
    width: 44px;
    height: 44px;
    font-size: 0.82rem;
  }
}

.movie-player-frame {
  position: relative;
  isolation: isolate;
  contain: layout paint;
  overflow: hidden;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  border: 1px solid rgba(208, 183, 130, 0.26);
  border-radius: 7px;
  background: #090b0e;
  /* Old Samsung/LG engines do not support aspect-ratio. Without a real
     height this box collapses because every player child is absolute. */
  height: 56.25vw;
  min-height: 320px;
  max-height: 675px;
  aspect-ratio: 16 / 9;
}

.movie-player-frame .fake-player,
.movie-player-frame .real-player,
.movie-player-frame .embed-player,
.movie-player-frame .vibix-player-host {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  min-width: 0;
  max-width: 100%;
  border: 0;
  overflow: hidden;
}

html.tv-lite .movie-player-frame {
  height: 56.25vw !important;
  min-height: 400px !important;
  max-height: 675px !important;
}

.tv-debug-panel {
  margin: 12px 0 0;
  padding: 14px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  border: 1px solid #d8b86f;
  border-radius: 6px;
  background: #050b14;
  color: #d9efff;
  font: 15px/1.45 monospace;
}

.movie-player-frame .vibix-player-host > ins,
.movie-player-frame .vibix-player-host > div,
.movie-player-frame .vibix-player-host iframe,
.movie-player-frame .vibix-player-host video {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: 100% !important;
  border: 0 !important;
  object-fit: contain;
}

.movie-player-frame .vibix-player-host * {
  max-width: 100%;
}

.movie-player-section .player-error {
  margin-top: 10px;
  border: 1px solid rgba(220, 90, 80, 0.3);
  border-radius: 6px;
}

.tv-player-start {
  position: absolute;
  left: 50%;
  bottom: 22%;
  transform: translateX(-50%);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  padding: 13px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f5d584, #c9983d);
  color: #101010;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.32);
}

html.tv-lite .movie-page-main {
  max-width: 1180px;
}

html.tv-lite .movie-detail-page,
html.tv-lite .movie-overview,
html.tv-lite .movie-player-section,
html.tv-lite .movie-related-section,
html.tv-lite .movie-cast-section {
  box-shadow: none !important;
  backdrop-filter: none !important;
}

html.tv-lite .movie-cast-grid,
html.tv-lite .movie-related-grid {
  content-visibility: auto;
  contain-intrinsic-size: 420px;
}

.movie-player-section .player-help {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(208, 183, 130, 0.34);
  border-radius: 10px;
  background: rgba(8, 18, 38, 0.78);
  color: #e7edf8;
}

.movie-player-section .player-help p {
  margin: 0 0 10px;
  color: #dbe5f6;
  line-height: 1.45;
}

.player-help-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.player-help-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(208, 183, 130, 0.42);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #f7f0df;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.player-help-button-primary {
  background: linear-gradient(135deg, #f2d28a, #c89e4f);
  color: #111827;
  border-color: rgba(255, 225, 150, 0.85);
}

.player-help-button:disabled {
  opacity: 0.58;
  cursor: default;
}

.player-help-button:not(:disabled):hover,
.player-help-button:not(:disabled):focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.24);
}

.player-retry-button {
  margin-left: 8px;
  padding: 6px 10px;
  border: 1px solid rgba(208, 183, 130, 0.45);
  border-radius: 999px;
  background: rgba(208, 183, 130, 0.14);
  color: #f3eee4;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.player-retry-button:hover,
.player-retry-button:focus-visible {
  background: rgba(208, 183, 130, 0.24);
}

.movie-related-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.movie-related-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(235, 231, 222, 0.12);
  border-radius: 7px;
  background: #171b1e;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.movie-related-card:hover,
.movie-related-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(208, 183, 130, 0.65);
  background: #202629;
}

.movie-related-poster {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: #0e1113;
}

.movie-related-copy {
  display: grid;
  gap: 5px;
  padding: 10px;
}

.movie-related-copy strong {
  overflow: hidden;
  color: #f0ece4;
  font-size: 0.84rem;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-related-copy span {
  color: #d8c28f;
  font-size: 0.72rem;
  font-weight: 800;
}

.movie-page-comments .comment-form {
  grid-template-columns: minmax(150px, 0.35fr) minmax(260px, 1fr) auto;
  align-items: end;
}

.movie-page-comments textarea {
  min-height: 44px;
  resize: vertical;
}

.movie-page-footer {
  width: min(1180px, calc(100% - 32px));
  max-width: 1180px;
  margin: 0 auto;
}

@media (max-width: 980px) {
  .movie-page-header {
    position: relative;
    display: flex;
    width: 100%;
    flex-direction: column;
    padding: 0;
  }

  .movie-page-header .brand {
    width: 100%;
    justify-content: center;
    padding: 18px;
  }

  .movie-page-header .main-nav {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(5, minmax(105px, 1fr));
    overflow-x: auto;
  }

  .movie-page-main {
    padding-top: 12px;
  }

  .movie-overview {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 18px;
  }

  .movie-page-meta {
    grid-template-columns: 1fr;
  }

  .movie-related-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .movie-page-comments .comment-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .movie-page-main {
    width: min(100% - 16px, 1180px);
  }

  .movie-overview {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 14px;
  }

  .movie-page-poster-wrap {
    width: 150px;
    justify-self: center;
  }

  .movie-page-summary h1 {
    margin-bottom: 12px;
    font-size: clamp(1.45rem, 8vw, 2.2rem);
  }

  .movie-page-meta div {
    grid-template-columns: 82px minmax(0, 1fr);
    font-size: 0.78rem;
  }

  .movie-page-description {
    margin-top: 14px;
    font-size: 0.88rem;
    line-height: 1.55;
  }

  .movie-page-actions {
    width: 100%;
  }

  .movie-player-section,
  .movie-franchise-section,
  .movie-related-section,
  .movie-page-comments {
    padding: 12px;
  }

  .movie-player-frame {
    width: 100%;
    height: 56.25vw;
    min-height: 210px;
    max-height: 420px;
    aspect-ratio: 16 / 9;
  }

  .movie-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .movie-page-footer {
    width: calc(100% - 16px);
  }
}

@media (max-width: 980px) {
  .movie-page-header .main-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible;
  }

  .movie-page-header .main-nav .header-search {
    grid-column: 1 / -1;
  }
}

.movie-page-header {
  grid-template-columns: 220px minmax(0, 1fr) minmax(220px, 286px);
}

@media (max-width: 980px) {
  .movie-page-header {
    grid-template-columns: 1fr;
  }

  .movie-page-header .main-nav {
    overflow: hidden;
  }
}

/* Movie page header: visible compact top bar with the same large search behavior as the home cover. */
.movie-page-body .movie-page-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 90;
  display: grid !important;
  grid-template-columns: minmax(178px, 220px) minmax(0, 1fr) minmax(340px, 620px);
  min-height: 74px;
  align-items: center;
  gap: 14px;
  padding: 8px clamp(14px, 4vw, 52px);
  background: rgba(18, 21, 24, 0.96);
  border-bottom: 1px solid rgba(208, 183, 130, 0.34);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(12px);
}

.movie-page-body .movie-page-header .brand {
  min-height: 54px;
  align-self: center;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
}

.movie-page-body .movie-page-header .brand:hover,
.movie-page-body .movie-page-header .brand:focus-visible {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.movie-page-body .movie-page-header .main-nav {
  min-width: 0;
  justify-content: center;
  overflow: hidden;
}

.movie-page-body .movie-page-header .main-nav a {
  min-width: auto;
  padding-inline: 11px;
  font-size: 0.76rem;
}

.movie-page-body .movie-page-header .movie-header-search {
  position: relative;
  z-index: 110;
  display: flex !important;
  width: min(620px, 100%);
  min-width: 0;
  align-self: center;
  justify-self: end;
  align-items: center;
  border: 1px solid rgba(235, 231, 222, 0.2);
  border-radius: 999px;
  background: rgba(12, 15, 17, 0.84);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.movie-page-body .movie-page-header .movie-header-search .header-search-input {
  min-height: 52px;
  padding-left: 18px;
  border-radius: 999px 0 0 999px;
  font-size: 1rem;
}

.movie-page-body .movie-page-header .movie-header-search .header-search-button {
  width: 54px;
  min-width: 54px;
  height: 52px;
  border-radius: 999px;
  font-size: 1.25rem;
}

.movie-page-body .movie-page-header .movie-header-search .header-search-suggestions {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  left: 0;
  z-index: 120;
  width: 100%;
  min-width: 0;
  max-height: min(440px, calc(100vh - 110px));
  overflow-y: auto;
  overscroll-behavior: contain;
}

.movie-page-body .movie-page-main {
  padding-top: 104px;
}

@media (max-width: 980px) {
  .movie-page-body .movie-page-header {
    position: relative;
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 8px;
    min-height: 0;
    padding: 0 10px 10px;
  }

  .movie-page-body .movie-page-header .brand {
    width: min(100%, 420px);
    justify-self: center;
    justify-content: center;
    margin: 0;
  }

  .movie-page-body .movie-page-header .main-nav {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(5, minmax(92px, 1fr));
    overflow-x: auto;
  }

  .movie-page-body .movie-page-header .movie-header-search {
    width: min(100%, 680px);
    justify-self: center;
    border-radius: 12px;
  }

  .movie-page-body .movie-page-header .movie-header-search .header-search-input {
    min-height: 48px;
    border-radius: 12px 0 0 12px;
    font-size: 0.95rem;
  }

  .movie-page-body .movie-page-header .movie-header-search .header-search-button {
    height: 48px;
    min-width: 50px;
    border-radius: 0 12px 12px 0;
  }

  .movie-page-body .movie-page-main {
    padding-top: 14px;
  }
}

@media (max-width: 640px) {
  .movie-page-body .movie-page-header .main-nav {
    grid-template-columns: repeat(3, minmax(96px, 1fr));
  }

  .movie-page-body .movie-page-header .movie-header-search .header-search-suggestions {
    max-height: min(430px, 62vh);
  }
}

/* Movie page day/night and preference controls. */
.movie-page-body .movie-page-header {
  grid-template-columns: auto minmax(0, 1fr) minmax(220px, 420px) auto;
}

.movie-page-body .ui-preferences {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: max-content;
}

html[data-theme="light"] .movie-page-body {
  background: radial-gradient(circle at 50% 0%, rgba(229, 184, 94, 0.28), transparent 34rem), #f4ead7;
  color: #172033;
}

html[data-theme="light"] .movie-page-body .movie-page-header,
html[data-theme="light"] .movie-overview,
html[data-theme="light"] .movie-cast-section,
html[data-theme="light"] .movie-player-section,
html[data-theme="light"] .movie-related-section,
html[data-theme="light"] .movie-page-comments,
html[data-theme="light"] .movie-not-found,
html[data-theme="light"] .movie-page-loading,
html[data-theme="light"] .site-footer {
  background: rgba(255, 247, 232, 0.92) !important;
  color: #172033 !important;
  border-color: rgba(119, 86, 34, 0.22) !important;
  box-shadow: 0 18px 48px rgba(71, 47, 18, 0.18);
}

html[data-theme="light"] .movie-page-body .main-nav a,
html[data-theme="light"] .movie-page-body .header-search-input,
html[data-theme="light"] .movie-page-body input,
html[data-theme="light"] .movie-page-body textarea,
html[data-theme="light"] .movie-page-body .ghost-button,
html[data-theme="light"] .movie-page-body .player-help,
html[data-theme="light"] .movie-page-body .search-suggestions,
html[data-theme="light"] .movie-page-body .search-suggestion,
html[data-theme="light"] .movie-page-body .movie-related-card,
html[data-theme="light"] .movie-page-body .movie-cast-card {
  background: rgba(255, 255, 255, 0.86) !important;
  color: #172033 !important;
  border-color: rgba(119, 86, 34, 0.24) !important;
}

html[data-theme="light"] .movie-page-body .header-search-button,
html[data-theme="light"] .movie-page-body .header-action,
html[data-theme="light"] .movie-page-body .player-help-button-primary,
html[data-theme="light"] .movie-page-body .like-button.is-active {
  background: linear-gradient(135deg, #f5d58c, #c9963f) !important;
  color: #172033 !important;
}

.movie-cast-section,
.movie-player-section,
.movie-related-section,
.movie-page-comments {
  content-visibility: auto;
  contain-intrinsic-size: auto 620px;
}

@media (hover: none) and (pointer: coarse) {
  .movie-overview,
  .movie-cast-section,
  .movie-player-section,
  .movie-related-section,
  .movie-page-comments,
  .search-suggestions {
    backdrop-filter: none !important;
  }
}

html[data-theme="light"] .movie-page-body .eyebrow,
html[data-theme="light"] .movie-page-body .movie-breadcrumbs a,
html[data-theme="light"] .movie-page-body .footer-advertise-link {
  color: #9b6818 !important;
}

@media (max-width: 1120px) {
  .movie-page-body .movie-page-header {
    grid-template-columns: auto 1fr auto;
  }

  .movie-page-body .movie-page-header .movie-header-search {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .movie-page-body .ui-preferences {
    width: 100%;
    justify-content: center;
  }

  .schedule-episode {
    grid-template-columns: minmax(0, 1fr) 42px;
  }

  .schedule-episode-link {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 12px;
  }

  .schedule-episode-date {
    text-align: left;
  }
}

/* New full light movie page design. */
html[data-theme="light"] .movie-page-body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 218, 143, 0.42), transparent 32rem),
    radial-gradient(circle at 86% 4%, rgba(76, 159, 170, 0.14), transparent 28rem),
    linear-gradient(180deg, #fbf0d8 0%, #f5e3c4 46%, #efe0c5 100%);
}

html[data-theme="light"] .movie-page-body .movie-page-header {
  background: rgba(255, 250, 240, 0.9) !important;
  box-shadow: 0 16px 42px rgba(111, 76, 27, 0.16) !important;
}

html[data-theme="light"] .movie-overview,
html[data-theme="light"] .movie-cast-section,
html[data-theme="light"] .movie-player-section,
html[data-theme="light"] .movie-related-section,
html[data-theme="light"] .movie-page-comments,
html[data-theme="light"] .movie-not-found,
html[data-theme="light"] .movie-page-loading {
  background: linear-gradient(180deg, rgba(255, 253, 247, 0.96), rgba(251, 241, 222, 0.96)) !important;
  border: 1px solid rgba(133, 92, 35, 0.16) !important;
  border-radius: 24px !important;
  color: #172033 !important;
  box-shadow: 0 20px 52px rgba(111, 76, 27, 0.13) !important;
}

html[data-theme="light"] .movie-page-summary h1,
html[data-theme="light"] .movie-section-heading h2,
html[data-theme="light"] .movie-related-copy strong,
html[data-theme="light"] .movie-cast-copy strong {
  color: #121a2a !important;
}

html[data-theme="light"] .movie-page-description,
html[data-theme="light"] .movie-page-meta dd,
html[data-theme="light"] .movie-related-copy span,
html[data-theme="light"] .movie-cast-copy span,
html[data-theme="light"] .player-help p,
html[data-theme="light"] .related-empty,
html[data-theme="light"] .movie-cast-empty {
  color: #4e5c70 !important;
}

html[data-theme="light"] .movie-page-poster-wrap,
html[data-theme="light"] .movie-related-card,
html[data-theme="light"] .movie-cast-card,
html[data-theme="light"] .player-help,
html[data-theme="light"] .comment-item {
  background: rgba(255, 255, 255, 0.82) !important;
  border: 1px solid rgba(133, 92, 35, 0.17) !important;
  box-shadow: 0 12px 30px rgba(111, 76, 27, 0.1) !important;
}

html[data-theme="light"] .movie-player-frame {
  background: #111827 !important;
  border-color: rgba(133, 92, 35, 0.28) !important;
  box-shadow: 0 16px 40px rgba(54, 35, 12, 0.18) !important;
}

html[data-theme="light"] .movie-page-body .main-nav a,
html[data-theme="light"] .movie-page-body .ui-pref-button,
html[data-theme="light"] .movie-page-body .ghost-button,
html[data-theme="light"] .movie-page-body .like-button {
  background: rgba(255, 253, 247, 0.78) !important;
  border: 1px solid rgba(133, 92, 35, 0.18) !important;
  color: #1d2a3f !important;
}

html[data-theme="light"] .movie-page-body .header-search-button,
html[data-theme="light"] .movie-page-body .header-action,
html[data-theme="light"] .movie-page-body .player-help-button-primary,
html[data-theme="light"] .movie-page-body .like-button.is-active {
  background: linear-gradient(135deg, #ffe5a3 0%, #d79b32 100%) !important;
  color: #121a2a !important;
}
.movie-franchise-section {
  min-width: 0;
}

.movie-franchise-section .movie-section-heading a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(208, 183, 130, 0.5);
  text-underline-offset: 0.18em;
}

.franchise-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(160px, 190px);
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 4px 4px 14px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: rgba(208, 183, 130, 0.65) rgba(255, 255, 255, 0.05);
}

.franchise-card {
  position: relative;
  display: grid;
  align-content: start;
  min-width: 0;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  background: rgba(12, 19, 31, 0.76);
  border: 1px solid rgba(208, 183, 130, 0.2);
  border-radius: 13px;
  scroll-snap-align: start;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.franchise-card:hover,
.franchise-card:focus-visible {
  border-color: rgba(208, 183, 130, 0.72);
  transform: translateY(-2px);
}

.franchise-card.is-current {
  border-color: #d0b782;
  box-shadow: 0 0 0 2px rgba(208, 183, 130, 0.18);
}

.franchise-poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #101722;
}

.franchise-poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.franchise-current-badge {
  position: absolute;
  inset: auto 8px 8px;
  padding: 5px 7px;
  color: #15110b;
  background: #d0b782;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  text-align: center;
}

.franchise-card-copy {
  display: grid;
  gap: 5px;
  padding: 11px;
}

.franchise-card-copy strong {
  line-height: 1.25;
}

.franchise-card-copy small {
  color: #aeb7c4;
}

.franchise-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

.franchise-order-badge {
  position: absolute;
  inset: 8px auto auto 8px;
  display: grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  padding-inline: 7px;
  color: #15110b;
  background: #d0b782;
  border-radius: 999px;
  font-weight: 900;
}

@media (max-width: 720px) {
  .franchise-carousel {
    grid-auto-columns: minmax(142px, 43vw);
    gap: 10px;
    margin-inline: -4px;
    padding-inline: 4px;
    scroll-snap-type: x mandatory;
  }

  .franchise-card {
    min-height: 0;
  }

  .franchise-page-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}
