/* Theme-local foundations and playback components. */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 30px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    14px/1.8 "Microsoft YaHei",
    "PingFang SC",
    sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
img {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  line-height: 1.3;
}
h1 {
  font-size: clamp(32px, 4vw, 64px);
}
h2 {
  font-size: 30px;
}
h3 {
  font-size: 16px;
}
button {
  border: 0;
}
input {
  min-width: 0;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
::selection {
  background: var(--accent);
  color: var(--bg);
}
.sr-only,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.skip-link:focus {
  position: fixed;
  z-index: 100;
  background: var(--bg);
  padding: 12px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent);
}
.muted,
.fact-label {
  color: var(--muted);
}
.menu-toggle {
  display: none;
}
.identity {
  display: flex;
  align-items: center;
  gap: 12px;
}
.identity b {
  display: block;
  font-size: 22px;
  letter-spacing: 1px;
}
.identity small {
  display: block;
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--muted);
}
.identity-symbol {
  font-size: 38px;
  line-height: 1;
}
.edition-bar {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 20px 0;
  font-size: 10px;
  letter-spacing: 2px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.search {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
}
.search input {
  width: 100%;
  background: transparent;
  color: var(--ink);
  border: 0;
  padding: 10px 0;
  outline-offset: 0;
}
.search button {
  flex-shrink: 0;
  background: var(--accent);
  color: var(--button-ink);
  padding: 10px 18px;
  font-weight: 700;
}
.collection {
  margin: 65px 0;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}
.section-head h2 {
  margin: 8px 0 0;
}
.more {
  font-size: 12px;
  white-space: nowrap;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 4px;
}
.film-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.film-card {
  display: block;
  min-width: 0;
}
.cover {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 2/3;
  background: var(--poster);
  display: grid;
  place-items: center;
}
.cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
  z-index: 1;
}
.film-card:hover .cover img {
  transform: scale(1.035);
}
.cover-flower {
  font-size: 90px;
  opacity: 0.2;
}
.tone-1 {
  background: var(--poster2);
}
.tone-2 {
  background: var(--poster3);
}
.tone-3 {
  background: var(--poster4);
}
.cover-tag {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 2;
  font-size: 10px;
  background: #111b;
  color: #fff;
  padding: 3px 9px;
  max-width: calc(100% - 24px);
}
.play-mark {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid #fffa;
  border-radius: 50%;
  color: white;
  background: #0005;
  opacity: 0;
  transition: opacity 0.2s;
}
.film-card:hover .play-mark,
.film-card:focus-visible .play-mark {
  opacity: 1;
}
.card-copy {
  position: relative;
  padding: 14px 22px 0 0;
}
.card-copy h3 {
  margin: 0 0 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 15px;
}
.card-copy p {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}
.card-arrow {
  position: absolute;
  right: 0;
  top: 12px;
  color: var(--accent);
}
.home-ranking {
  padding: 36px 0;
  border-top: 1px solid var(--line);
}
.ranking-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}
.ranking-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  margin-bottom: 18px;
}
.ranking-heading h3 {
  font-size: 18px;
  margin: 0;
}
.ranking-heading a {
  font-size: 11px;
  color: var(--muted);
}
.ranking-feature {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 24px;
  min-width: 0;
}
.ranking-poster {
  width: 66px;
  height: 96px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  background: var(--poster);
  display: grid;
  place-items: center;
}
.ranking-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.ranking-feature-copy {
  min-width: 0;
}
.ranking-feature-copy h4 {
  font-size: 15px;
  margin: 0 0 10px;
}
.ranking-feature-copy p {
  font-size: 10px;
  color: var(--muted);
  margin: 4px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 180px;
}
.ranking-feature-arrow {
  margin-left: auto;
}
.ranking-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: rank;
}
.ranking-list li {
  margin: 0;
}
.ranking-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
}
.ranking-number {
  color: var(--accent);
  font-size: 16px;
  font-family: Georgia, serif;
  width: 20px;
  flex-shrink: 0;
}
.ranking-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.about-box {
  padding: 55px 0;
  border-top: 1px solid var(--line);
  margin-top: 35px;
}
.about-box p,
.prose {
  max-width: 700px;
  color: var(--muted);
  line-height: 2;
}
.about-page {
  min-height: 65vh;
}
.site-footer {
  border-top: 1px solid var(--line);
  padding: 35px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}
.footer-brand {
  font-size: 22px;
  font-weight: 700;
}
.site-footer p {
  margin: 0;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--muted);
}
.site-footer small {
  flex-basis: 100%;
  font-size: 10px;
  color: var(--muted);
}
.site-footer > a:last-of-type {
  margin-left: auto;
  font-size: 12px;
}
.empty {
  padding: 45px 20px;
  border: 1px dashed var(--line);
  text-align: center;
  color: var(--muted);
}
.catalog {
  padding: 45px 0;
}
.catalog-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 30px;
  margin-bottom: 25px;
}
.catalog-title h1 {
  margin: 10px 0;
}
.catalog-tools {
  width: 40%;
  max-width: 450px;
}
.catalog-count {
  font-size: 12px;
  text-align: right;
}
.subcategory-filters,
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}
.subcategory-filters a,
.filters a {
  font-size: 13px;
  border: 1px solid var(--line);
  padding: 6px 16px;
}
.subcategory-filters a.selected,
.filters a.selected {
  background: var(--accent);
  color: var(--button-ink);
  border-color: var(--accent);
}
.pagination {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-top: 45px;
}
.pagination a {
  color: var(--accent);
}
.breadcrumb {
  margin: 30px 0;
  color: var(--muted);
  font-size: 12px;
}
.video-detail {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 35px;
  margin: 35px 0;
}
.video-detail h1 {
  font-size: 36px;
  margin-bottom: 18px;
}
.detail-cover {
  align-self: start;
}
.detail-facts {
  overflow-wrap: anywhere;
}
.detail-facts p {
  margin: 7px 0;
}
.detail-summary {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.detail-description {
  margin: 15px 0;
}
.detail-update {
  color: var(--accent);
}
.button {
  display: inline-block;
  background: var(--accent);
  color: var(--button-ink);
  padding: 10px 22px;
  font-weight: 700;
}
.watch-box {
  padding: 30px 0;
}
.watch-box h3 {
  font-size: 14px;
  margin: 22px 0 12px;
}
.player-stage {
  position: relative;
  background: black;
}
.player-stage video {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  background: black;
}
.player-start {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  background: #fffd;
  border-radius: 50%;
  color: black;
}
.player-start svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
  margin-left: 4px;
}
.player-status {
  font-size: 12px;
  color: var(--muted);
}
.episodes {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.episode-link {
  padding: 8px 18px;
  border: 1px solid var(--line);
  font-size: 13px;
}
.episode-link.selected {
  background: var(--accent);
  color: var(--button-ink);
}
.detail-recommendations {
  margin: 50px 0;
}
.detail-recommendations h2 {
  font-size: 26px;
}
.recommendation-grid {
  display: grid;
  grid-template-columns: repeat(var(--desktop-cols), minmax(0, 1fr));
  gap: 20px;
}
.recommendation-item {
  min-width: 0;
}
.viewer-comments {
  border-top: 1px solid var(--line);
  padding-top: 25px;
  margin-top: 30px;
}
.comments-heading {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 15px;
}
.comments-heading h2 {
  font-size: 26px;
}
.comments-heading small {
  font-size: 10px;
  color: var(--muted);
}
.viewer-comment {
  display: flex;
  gap: 15px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.comment-avatar {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  flex-shrink: 0;
  background: var(--poster);
  color: var(--accent);
}
.comment-body {
  overflow-wrap: anywhere;
  min-width: 0;
}
.comment-body h3 {
  font-size: 13px;
  margin: 0 0 5px;
}
.comment-body p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.prose {
  white-space: normal;
  overflow-wrap: anywhere;
}
@media (min-width: 1001px) {
  .rec-hide-desktop {
    display: none;
  }
}
@media (min-width: 761px) and (max-width: 1000px) {
  .recommendation-grid {
    grid-template-columns: repeat(var(--tablet-cols), minmax(0, 1fr));
  }
  .rec-hide-tablet {
    display: none;
  }
}
@media (max-width: 760px) {
  h2 {
    font-size: 25px;
  }
  .film-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 14px;
  }
  .collection {
    margin: 40px 0;
  }
  .section-head {
    gap: 12px;
  }
  .section-head .muted {
    display: none;
  }
  .ranking-columns {
    grid-template-columns: 1fr;
  }
  .ranking-feature-copy p {
    max-width: 240px;
  }
  .recommendation-grid {
    grid-template-columns: repeat(var(--mobile-cols), minmax(0, 1fr));
    gap: 20px 14px;
  }
  .rec-hide-mobile {
    display: none;
  }
  .catalog-heading {
    display: block;
  }
  .catalog-tools {
    width: 100%;
    max-width: none;
  }
  .video-detail {
    grid-template-columns: 95px minmax(0, 1fr);
    gap: 18px;
  }
  .video-detail h1 {
    font-size: 26px;
  }
  .detail-facts {
    font-size: 12px;
  }
  .detail-summary {
    gap: 5px 12px;
  }
  .detail-description {
    max-height: 170px;
    overflow: auto;
  }
  .edition-bar {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .edition-bar span:last-child {
    max-width: 50%;
    text-align: right;
  }
  .about-box h2 {
    font-size: 28px;
  }
  .card-copy h3 {
    font-size: 14px;
  }
  .site-footer {
    gap: 12px;
  }
  .site-footer p {
    flex-basis: 100%;
  }
  .catalog {
    padding-top: 25px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}

/* PEARL: full-width rose panorama, white navigation and floating channel ribbon. */
:root {
  --bg: #f7fafd;
  --ink: #373c40;
  --muted: #8a7881;
  --accent: #5d92bd;
  --button-ink: #fff;
  --line: #e0e7ec;
  --poster: #d0d9e1;
  --poster2: #d8dfdf;
  --poster3: #e6d8c9;
  --poster4: #d6cfe1;
}
html {
  scroll-padding-top: 100px;
}
body {
  background: var(--bg);
}
.azure-header {
  position: sticky;
  top: 0;
  z-index: 25;
  background: #fffffff5;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(15px);
}
.azure-navigation {
  width: min(1320px, calc(100% - 64px));
  margin: auto;
  display: flex;
  align-items: center;
  gap: 35px;
  min-height: 82px;
}
.identity {
  flex-shrink: 0;
}
.identity-symbol {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, #a3c7e5, #578dba);
  color: white;
  border-radius: 13px;
  font-size: 23px;
  font-weight: 700;
  box-shadow: 0 7px 18px #5d92bd22;
}
.identity b {
  font-size: 23px;
  color: var(--accent);
  letter-spacing: 0;
}
.identity small {
  font-size: 8px;
  letter-spacing: 1.5px;
}
.nav-search {
  width: 215px;
  border: 1px solid #dae5ee;
  border-radius: 25px;
  background: #f6fafd;
  display: flex;
  align-items: center;
}
.nav-search input {
  background: none;
  border: 0;
  width: 100%;
  padding: 10px 15px;
  font-size: 12px;
  color: var(--ink);
}
.nav-search button {
  background: none;
  color: var(--accent);
  font-size: 25px;
  padding: 0 14px 0 4px;
}
#main-menu {
  display: flex;
  justify-content: center;
  gap: 27px;
  flex: 1;
}
#main-menu a {
  padding: 26px 0;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  position: relative;
}
#main-menu a[aria-current],
#main-menu a:hover {
  color: var(--accent);
}
#main-menu a[aria-current]:after {
  content: "";
  width: 18px;
  height: 3px;
  border-radius: 3px;
  background: var(--accent);
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
}
.panorama {
  position: relative;
  background: #435f76;
  color: white;
  overflow: hidden;
}
.panorama-slide {
  position: relative;
  isolation: isolate;
  min-height: 490px;
  background: linear-gradient(100deg, #456885, #7690a5);
}
.panorama-image {
  position: absolute;
  inset: 0 0 0 auto;
  width: 72%;
  height: 100%;
  object-fit: cover;
  object-position: center 37%;
  z-index: -2;
}
.panorama-slide:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    #325068 5%,
    #44647ee8 30%,
    #3d5a7194 58%,
    #32414e15 100%
  );
  z-index: -1;
}
.panorama-inner {
  width: min(1200px, calc(100% - 110px));
  margin: auto;
  display: flex;
  align-items: center;
  min-height: 490px;
  padding: 35px 0 80px;
}
.panorama-copy {
  max-width: 570px;
}
.panorama-kicker {
  font-size: 12px;
  letter-spacing: 2px;
  color: #e0eef9;
}
.panorama h1 {
  font-size: 54px;
  font-weight: 800;
  letter-spacing: 1px;
  margin: 20px 0 15px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.panorama-meta {
  font-size: 13px;
  color: #d6e5f2;
}
.panorama-copy > p {
  font-size: 14px;
  color: #eaf3fb;
  line-height: 1.9;
  max-width: 500px;
  margin: 22px 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.panorama-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.panorama-actions > span {
  font-size: 12px;
  color: #deebf5;
}
.button {
  border-radius: 28px;
  background: var(--accent);
  padding: 11px 25px;
  font-size: 13px;
}
.panorama .button {
  background: #fff;
  color: #477498;
  box-shadow: 0 8px 22px #27364230;
}
.panorama-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
  position: absolute;
  bottom: 42px;
  left: 0;
  right: 0;
}
.panorama-position {
  font-size: 10px;
  letter-spacing: 2px;
  color: #e5f0f9;
  min-width: 52px;
}
.panorama-dots {
  display: flex;
  gap: 4px;
}
.panorama-dots button {
  padding: 9px 5px;
  width: 25px;
  height: 30px;
  background: none;
}
.panorama-dots button:after {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 20px;
  background: #ffffff60;
}
.panorama-dots button[aria-pressed="true"]:after {
  width: 19px;
  background: white;
}
.panorama-controls > button {
  width: 29px;
  height: 29px;
  border: 1px solid #ffffff50;
  border-radius: 50%;
  background: #ffffff12;
  color: white;
}
.panorama-empty {
  width: min(1200px, calc(100% - 60px));
  margin: auto;
  padding: 100px 0 120px;
  min-height: 430px;
}
.panorama-empty .eyebrow {
  color: #e4f0f9;
}
.panorama-empty h1 {
  font-size: 42px;
}
.page-shell,
.site-footer {
  width: min(1260px, calc(100% - 64px));
  margin: auto;
}
.channel-ribbon {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: -25px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 12px 30px #44627b0c;
  padding: 22px 0;
}
.channel-ribbon > a {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 25px;
}
.channel-ribbon > a + a {
  border-left: 1px solid var(--line);
}
.channel-symbol {
  font-size: 30px;
  color: var(--accent);
  width: 45px;
  flex-shrink: 0;
  text-align: center;
}
.channel-ribbon b {
  display: block;
  font-size: 17px;
}
.channel-ribbon small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 2px;
}
.channel-ribbon i {
  margin-left: auto;
  color: var(--accent);
  font-style: normal;
}
.section-head {
  margin-bottom: 22px;
}
.section-head h2 {
  font-size: 28px;
  color: var(--accent);
  font-weight: 750;
}
.section-head p {
  font-size: 12px;
  color: var(--muted);
  margin: 10px 0 0;
}
.section-head > .muted {
  font-size: 12px;
}
.section-caption {
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--muted);
}
.heading-mark {
  display: inline-block;
  font-size: 25px;
  margin-right: 11px;
}
.fresh-picks,
.collection {
  margin: 48px 0;
}
.fresh-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.film-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px #3d546606;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.film-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px #4c6d8815;
}
.cover {
  aspect-ratio: 3/4;
}
.fresh-grid .cover {
  aspect-ratio: 4/5;
}
.cover-flower {
  font-size: 60px;
  color: var(--accent);
  opacity: 0.25;
}
.cover-tag {
  left: 10px;
  bottom: 10px;
  border-radius: 4px;
  background: #f5f9fdef;
  color: #436b8b;
  font-size: 9px;
  font-weight: 600;
}
.card-copy {
  padding: 14px 28px 14px 14px;
}
.card-copy h3 {
  font-size: 15px;
}
.card-copy p {
  font-size: 11px;
}
.card-arrow {
  right: 13px;
  top: 13px;
}
.film-grid {
  gap: 24px;
}
.collection-1 {
  padding: 30px;
  background: linear-gradient(125deg, #edf5fb, #eaf1f6);
  border: 1px solid #dae5ee;
  border-radius: 18px;
}
.collection-2 .film-grid .cover {
  aspect-ratio: 1;
}
.more {
  color: var(--accent);
  border: 0;
  font-size: 12px;
  font-weight: 600;
}
.home-ranking {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  margin: 50px 0;
}
.ranking-columns {
  gap: 35px;
}
.ranking-feature-copy p {
  max-width: 230px;
}
.ranking-number {
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
}
.ranking-list li:first-child .ranking-number {
  color: #659bc8;
}
.ranking-poster {
  border-radius: 6px;
}
.about-box {
  padding: 45px;
  text-align: center;
  border: 1px solid #d9e4ed;
  border-radius: 18px;
  background: linear-gradient(105deg, #f3f8fc, #e6eff7, #f3f8fc);
  margin: 50px 0;
}
.about-box h2 {
  color: var(--accent);
  font-size: 31px;
  margin: 12px 0 20px;
}
.about-box p,
.prose {
  margin: 0 auto 20px;
}
.site-footer {
  padding: 35px 0;
  color: var(--muted);
  gap: 25px;
}
.footer-brand {
  color: var(--accent);
  font-size: 22px;
}
.site-footer > div > p {
  font-size: 11px;
  letter-spacing: 0;
  margin-top: 6px;
}
.site-footer nav {
  display: flex;
  gap: 22px;
  font-size: 12px;
  margin-left: auto;
}
.site-footer small {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  width: 100%;
}
.catalog {
  padding: 35px 0;
}
.catalog-heading {
  align-items: center;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--line);
}
.catalog-title h1 {
  font-size: 39px;
  color: var(--accent);
}
.catalog-tools {
  max-width: 400px;
}
.search {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 25px;
  padding: 5px 6px 5px 16px;
}
.search button {
  border-radius: 20px;
}
.subcategory-filters a,
.filters a {
  border-radius: 20px;
  background: white;
}
.catalog .film-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.catalog .cover {
  aspect-ratio: 3/4;
}
.breadcrumb {
  font-size: 12px;
}
.video-detail {
  background: white;
  border: 1px solid var(--line);
  padding: 28px;
  border-radius: 16px;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 35px;
}
.video-detail h1 {
  font-size: 34px;
  color: var(--accent);
}
.detail-cover {
  border-radius: 10px;
  aspect-ratio: 2/3;
}
.detail-facts {
  font-size: 13px;
}
.watch-box {
  padding: 25px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.watch-box .section-head h2 {
  font-size: 26px;
}
.player-stage {
  border-radius: 10px;
  overflow: hidden;
}
.episode-link {
  background: #f7fafd;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--accent);
}
.episode-link.selected {
  color: white;
}
.viewer-comments {
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: white;
}
.comment-avatar {
  background: #e7f1fa;
  color: var(--accent);
  border-radius: 50%;
}
.comments-heading h2,
.detail-recommendations h2 {
  font-size: 25px;
  color: var(--accent);
}
.recommendation-grid {
  gap: 18px;
}
.recommendation-grid .cover {
  aspect-ratio: 2/3;
}
@media (max-width: 1100px) {
  .azure-navigation {
    gap: 20px;
  }
  #main-menu {
    gap: 18px;
  }
  .identity b {
    font-size: 20px;
  }
  .nav-search {
    width: 180px;
  }
  .channel-ribbon > a {
    gap: 12px;
    padding: 0 18px;
  }
  .channel-symbol {
    width: 30px;
    font-size: 26px;
  }
  .channel-ribbon small {
    font-size: 9px;
  }
  .ranking-columns {
    gap: 20px;
  }
  .ranking-feature-copy p {
    max-width: 155px;
  }
  .collection-1 {
    padding: 24px;
  }
}
@media (max-width: 760px) {
  html {
    scroll-padding-top: 125px;
  }
  .azure-navigation {
    width: calc(100% - 32px);
    min-height: 0;
    flex-wrap: wrap;
    gap: 0;
    padding-top: 12px;
  }
  .identity {
    flex: 1;
    gap: 9px;
  }
  .identity-symbol {
    width: 35px;
    height: 35px;
    font-size: 19px;
    border-radius: 10px;
  }
  .identity b {
    font-size: 18px;
  }
  .identity small {
    font-size: 7px;
    letter-spacing: 1px;
  }
  .nav-search {
    width: 145px;
  }
  .nav-search input {
    padding: 9px 10px;
    font-size: 10px;
  }
  .nav-search button {
    font-size: 23px;
    padding-right: 10px;
  }
  #main-menu {
    order: 3;
    flex-basis: 100%;
    justify-content: space-between;
    gap: 8px;
  }
  #main-menu a {
    font-size: 11px;
    padding: 15px 0 12px;
  }
  #main-menu a[aria-current]:after {
    bottom: 5px;
  }
  .panorama-slide,
  .panorama-inner {
    min-height: 365px;
  }
  .panorama-inner {
    width: calc(100% - 44px);
    padding: 35px 0 80px;
  }
  .panorama-copy {
    max-width: 100%;
  }
  .panorama-image {
    width: 100%;
    opacity: 0.6;
  }
  .panorama-slide:after {
    background: linear-gradient(90deg, #325068ee, #44647ebf 65%, #3d5a7166);
  }
  .panorama h1 {
    font-size: 35px;
    margin: 15px 0;
  }
  .panorama-kicker {
    font-size: 10px;
  }
  .panorama-meta {
    font-size: 11px;
  }
  .panorama-copy > p {
    font-size: 12px;
    margin: 16px 0 22px;
  }
  .panorama-actions > span {
    font-size: 10px;
  }
  .panorama-controls {
    bottom: 33px;
  }
  .page-shell,
  .site-footer {
    width: calc(100% - 28px);
  }
  .channel-ribbon {
    margin-top: -17px;
    padding: 16px 0;
    border-radius: 12px;
  }
  .channel-ribbon > a {
    display: block;
    text-align: center;
    padding: 0 5px;
  }
  .channel-symbol {
    display: block;
    margin: 0 auto 4px;
    font-size: 23px;
  }
  .channel-ribbon b {
    font-size: 13px;
  }
  .channel-ribbon small,
  .channel-ribbon i {
    display: none;
  }
  .fresh-picks,
  .collection {
    margin: 30px 0;
  }
  .section-head h2 {
    font-size: 22px;
  }
  .section-caption {
    font-size: 8px;
    letter-spacing: 1.5px;
  }
  .fresh-grid,
  .film-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px 12px;
  }
  .fresh-grid .cover {
    aspect-ratio: 3/4;
  }
  .film-card {
    border-radius: 10px;
  }
  .card-copy {
    padding: 11px 22px 11px 10px;
  }
  .card-copy h3 {
    font-size: 13px;
  }
  .card-copy p {
    font-size: 10px;
  }
  .cover-tag {
    font-size: 8px;
    left: 7px;
    bottom: 7px;
    padding: 3px 6px;
  }
  .heading-mark {
    font-size: 21px;
    margin-right: 8px;
  }
  .section-head p {
    font-size: 10px;
    margin-top: 6px;
  }
  .collection-1 {
    padding: 20px 12px;
  }
  .home-ranking {
    padding: 22px 16px;
    margin: 30px 0;
  }
  .ranking-columns {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .ranking-feature-copy p {
    max-width: 200px;
  }
  .about-box {
    padding: 30px 20px;
    margin: 30px 0;
  }
  .about-box h2 {
    font-size: 25px;
  }
  .about-box p {
    font-size: 12px;
  }
  .site-footer nav {
    margin-left: 0;
    font-size: 11px;
    gap: 16px;
  }
  .catalog-heading {
    display: block;
    padding-bottom: 12px;
  }
  .catalog-title h1 {
    font-size: 32px;
  }
  .catalog-tools {
    max-width: none;
  }
  .catalog .film-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .video-detail {
    padding: 17px;
    grid-template-columns: 85px minmax(0, 1fr);
    gap: 16px;
  }
  .video-detail h1 {
    font-size: 25px;
  }
  .detail-facts {
    font-size: 11px;
  }
  .watch-box {
    padding: 17px 10px;
  }
  .viewer-comments {
    padding: 20px 16px;
  }
  .panorama-empty {
    min-height: 340px;
    padding: 80px 0;
  }
  .panorama-empty h1 {
    font-size: 30px;
  }
}
@media (max-width: 380px) {
  .nav-search {
    width: 125px;
  }
  .identity b {
    font-size: 16px;
  }
  .identity small {
    letter-spacing: 0.5px;
  }
}

/* Homepage viewing guide: native disclosures also work without JavaScript. */
.viewing-guide,
.home-faq {
  margin: 65px 0;
  scroll-margin-top: 105px;
}
.guide-heading h2 {
  margin: 10px 0 12px;
}
.guide-heading > p {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 25px;
}
.guide-tips {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.guide-tip {
  min-width: 0;
  padding: 24px;
}
.guide-number {
  display: block;
  font-size: 28px;
  line-height: 1;
  margin-bottom: 22px;
  font-family: Georgia, serif;
}
.guide-tip h3 {
  font-size: 16px;
  margin: 0 0 12px;
  line-height: 1.6;
}
.guide-tip p,
.faq-item > p {
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
  margin: 0;
  overflow-wrap: anywhere;
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  cursor: pointer;
  list-style: none;
  padding: 21px 0;
  font-size: 15px;
  line-height: 1.65;
  font-weight: 600;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}
.faq-toggle {
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.faq-toggle::before,
.faq-toggle::after {
  content: "";
  position: absolute;
  inset: 8px 2px auto;
  height: 1px;
  background: currentColor;
}
.faq-toggle::after {
  transform: rotate(90deg);
}
.faq-item[open] .faq-toggle::after {
  transform: rotate(0);
}
.faq-item > p {
  padding: 0 35px 22px 0;
  max-width: 850px;
}
@media (max-width: 1000px) {
  .guide-tips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .viewing-guide,
  .home-faq {
    margin: 40px 0;
  }
  .guide-tips {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .guide-tip {
    padding: 20px;
  }
  .guide-tip h3 {
    font-size: 15px;
  }
  .faq-item summary {
    font-size: 14px;
    padding: 18px 0;
  }
  .guide-heading h2 {
    font-size: 26px;
  }
}

.viewing-guide,
.home-faq {
  margin: 45px 0;
}
.guide-heading h2 {
  color: var(--accent);
  font-size: 27px;
}
.guide-tip {
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
  text-align: center;
  padding: 24px 20px;
}
.guide-number {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 0 auto 18px;
  background: #eef6fc;
  color: var(--accent);
  font: 700 14px/1 sans-serif;
  border-radius: 12px;
}
.guide-tip h3 {
  font-size: 15px;
}
.guide-tip p {
  font-size: 12px;
}
.home-faq {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 35px;
  padding: 30px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.faq-item summary {
  font-size: 14px;
}
.faq-item:first-child {
  border-top: 1px solid var(--line);
}
.faq-toggle,
.faq-item[open] summary {
  color: var(--accent);
}
@media (max-width: 1000px) {
  .home-faq {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
@media (max-width: 600px) {
  .guide-tips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .guide-tip {
    padding: 18px 12px;
  }
  .guide-tip h3 {
    font-size: 13px;
  }
  .guide-tip p {
    font-size: 11px;
  }
  .guide-number {
    margin-bottom: 12px;
  }
  .home-faq {
    padding: 22px 18px;
  }
  .guide-heading h2 {
    font-size: 24px;
  }
}

/* Homepage recommendation rotation. */
.hero-reel {
  min-width: 0;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card, var(--bg));
}
.reel-slide[hidden] {
  display: none !important;
}
.reel-image {
  display: grid;
  place-items: center;
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--poster, #dde4ea);
}
.reel-image > span {
  font-size: 55px;
  color: var(--accent, var(--rose));
  opacity: 0.5;
}
.reel-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.reel-copy {
  padding: 20px 24px;
}
.reel-copy h2 {
  font-size: 25px;
  line-height: 1.4;
  margin: 8px 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.reel-copy p {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 10px;
}
.reel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.reel-controls button {
  border: 1px solid var(--line);
  background: transparent;
  color: inherit;
  border-radius: 6px;
  min-width: 28px;
  height: 30px;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.reel-dots {
  display: flex;
  gap: 5px;
}
.reel-dots button[aria-pressed="true"] {
  background: var(--accent, var(--rose));
  color: white;
  border-color: transparent;
}
.carousel-pause {
  font: inherit;
  font-size: 10px !important;
  white-space: nowrap;
  padding: 4px 9px !important;
  min-width: 68px !important;
  border: 1px solid currentColor;
  border-radius: 5px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.carousel-pause:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
@media (max-width: 760px) {
  .reel-copy {
    padding: 16px 18px;
  }
  .reel-copy h2 {
    font-size: 22px;
  }
  .reel-controls {
    gap: 5px;
    padding: 10px 6px;
  }
  .reel-dots {
    gap: 3px;
  }
  .reel-controls button {
    min-width: 25px;
  }
  .carousel-pause {
    min-width: 62px !important;
  }
}

.panorama-controls {
  gap: 10px;
  flex-wrap: wrap;
}
.panorama-controls > .carousel-pause {
  width: auto;
  border-radius: 5px;
  height: 28px;
  color: white;
}
.panorama-dots button {
  width: 22px;
}
@media (max-width: 760px) {
  .panorama-controls {
    gap: 4px;
    bottom: 32px;
  }
  .panorama-position {
    min-width: 40px;
    font-size: 9px;
  }
  .panorama-dots {
    gap: 1px;
  }
  .panorama-controls > button {
    width: 25px;
    height: 25px;
  }
  .panorama-inner {
    padding-bottom: 100px;
  }
}

/* AZURE — a compact film portal with a dedicated discovery sidebar. */
:root {
  --bg: #f4f7fa;
  --ink: #26384a;
  --accent: #397fc4;
  --muted: #7b8b9b;
  --line: #e3eaf1;
}
body.azure {
  background: #f4f7fa;
  color: #26384a;
}
.azure-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #e3eaf1;
  box-shadow: 0 2px 16px #253a5010;
}
.azure-navigation {
  max-width: 1360px;
  min-height: 72px;
  gap: 24px;
}
.identity-symbol {
  background: #e8f2fc;
  color: #397fc4;
  border-radius: 10px;
}
.identity small {
  color: #8297aa;
}
.azure-navigation .nav-search {
  order: 0;
  background: #f3f6fa;
  border-color: #e1e9f1;
}
.azure-navigation nav {
  margin-left: auto;
}
.azure-navigation nav a[aria-current],
.portal-channels a:hover {
  background: #e7f1fc;
  color: #2877be;
}
.page-shell {
  max-width: 1360px;
  padding: 0 24px;
  margin: 30px auto 60px;
}
.portal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 26px;
  align-items: start;
}
.portal-main {
  min-width: 0;
}
.panorama {
  border-radius: 14px;
  overflow: hidden;
  margin: 0;
  height: 420px;
  background: #233e59;
}
.panorama-slide {
  height: 420px;
  min-height: 0;
}
.panorama-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
}
.panorama-slide:after {
  background:
    linear-gradient(90deg, rgba(9, 28, 48, 0.85), rgba(9, 28, 48, 0.08)),
    linear-gradient(0deg, rgba(9, 28, 48, 0.6), transparent);
}
.panorama-inner {
  padding: 38px;
  height: 100%;
  min-height: 0;
}
.panorama-copy {
  width: 75%;
  max-width: 560px;
}
.panorama h1 {
  font-size: 36px;
  color: white;
}
.panorama-copy p,
.panorama-meta,
.panorama-kicker,
.panorama-actions > span {
  color: #e5edf6;
}
.panorama-copy p {
  -webkit-line-clamp: 2;
}
.panorama .button {
  background: #438ed5;
  color: white;
  border-radius: 7px;
}
.panorama-controls {
  left: 32px;
  right: 24px;
  bottom: 20px;
  width: auto;
  justify-content: flex-end;
  transform: none;
  gap: 9px;
}
.panorama-position {
  margin-right: auto;
}
.panorama-controls > button {
  width: 30px;
  height: 30px;
}
.panorama-controls > .carousel-pause {
  width: auto;
  padding: 0 10px;
}
.panorama-dots button[aria-pressed="true"]:after {
  background: #9fcdf6;
}
.portal-channels {
  display: flex;
  gap: 12px;
  padding: 18px 0;
  flex-wrap: wrap;
}
.portal-channels a {
  padding: 8px 25px;
  background: white;
  border: 1px solid #e0e8f1;
  border-radius: 6px;
  font-weight: 600;
}
.portal-collection {
  background: white;
  border: 1px solid #e5ebf1;
  border-radius: 12px;
  padding: 22px;
  margin-bottom: 24px;
}
.section-head {
  margin-bottom: 18px;
  align-items: center;
}
.section-head h2 {
  font-size: 21px;
  margin: 0;
  padding-left: 11px;
  border-left: 4px solid #438ed5;
}
.film-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px 17px;
}
.film-card {
  border: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 8px;
}
.film-card .cover {
  aspect-ratio: 2/3;
  border-radius: 8px;
}
.card-copy {
  padding: 11px 0 0;
}
.card-copy h3 {
  font-size: 14px;
}
.card-copy p {
  color: #8794a2;
  font-size: 12px;
}
.card-arrow {
  display: none;
}
.cover-tag {
  background: #183650dc;
  color: #fff;
  border-radius: 4px;
}
.tone-0,
.tone-1,
.tone-2,
.tone-3 {
  background: linear-gradient(140deg, #a7bfd4, #426887);
}
.sidebar-panel {
  padding: 22px;
  margin-bottom: 22px;
  background: white;
  border: 1px solid #e5ebf1;
  border-radius: 12px;
}
.sidebar-panel h2 {
  font-size: 21px;
}
.sidebar-panel p {
  font-size: 13px;
  color: #7a8a9a;
}
.library-note {
  display: flex;
  flex-direction: column;
  border-top: 1px solid #e8edf2;
  padding-top: 16px;
}
.library-note strong {
  font-size: 30px;
  color: #397fc4;
}
.library-note span {
  color: #8696a6;
  font-size: 12px;
}
.sidebar-label {
  font-size: 13px;
  color: #397fc4;
  border-bottom: 1px solid #e8edf2;
  padding-bottom: 9px;
  margin: 23px 0 5px;
}
.side-rank {
  list-style: none;
  padding: 0;
  margin: 0;
}
.side-rank a {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  align-items: center;
}
.side-rank a > span {
  background: #eff3f7;
  color: #8191a2;
  width: 22px;
  height: 24px;
  text-align: center;
  border-radius: 4px;
  flex-shrink: 0;
}
.side-rank li:nth-child(-n + 3) a > span {
  background: #e7f1fc;
  color: #317fc6;
}
.side-rank div {
  min-width: 0;
}
.side-rank b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
}
.side-rank small {
  color: #94a1ae;
  font-size: 11px;
}
.watch-note {
  background: #eaf3fc;
}
.watch-note a {
  color: #397fc4;
  font-size: 13px;
}
.viewing-guide,
.home-faq {
  background: white;
  border: 1px solid #e5ebf1;
  border-radius: 12px;
  padding: 30px;
  margin: 26px 0;
}
.guide-heading h2 {
  font-size: 24px;
}
.guide-tips {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.guide-tip {
  background: #f5f8fb;
  border-color: #e4ebf2;
}
.guide-number {
  color: #397fc4;
}
.faq-item {
  background: #f7f9fc;
  border-color: #e4ebf2;
}
.site-footer {
  background: #eaf0f6;
  border-color: #dde6ee;
}
.section-caption,
.eyebrow {
  color: #397fc4;
}
@media (max-width: 1100px) {
  .azure-navigation {
    flex-wrap: wrap;
    gap: 12px;
    padding: 15px 24px;
  }
  .azure-navigation nav {
    order: 3;
    width: 100%;
    justify-content: center;
  }
  .portal-layout {
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 18px;
  }
  .panorama-copy {
    width: 90%;
  }
  .panorama h1 {
    font-size: 29px;
  }
  .guide-tips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 800px) {
  .portal-layout {
    grid-template-columns: 1fr;
  }
  .portal-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  .portal-sidebar #sidebar-discovery {
    grid-column: 1/-1;
    order: 3;
  }
  .sidebar-panel {
    margin: 0;
  }
  .page-shell {
    padding: 0 16px;
    margin-top: 20px;
  }
  .panorama {
    height: 380px;
  }
  .panorama-slide {
    height: 380px;
  }
  .panorama-inner {
    padding: 26px;
  }
  .azure-navigation .nav-search {
    display: flex;
    margin-left: auto;
  }
  .film-grid {
    gap: 20px 12px;
  }
}
@media (max-width: 520px) {
  .azure-navigation {
    padding: 12px 16px;
  }
  .azure-navigation .nav-search {
    width: 100%;
    max-width: none;
  }
  .azure-navigation nav {
    overflow: auto;
    justify-content: flex-start;
    gap: 18px;
  }
  .azure-navigation nav a {
    white-space: nowrap;
    font-size: 13px;
  }
  .panorama,
  .panorama-slide {
    height: 365px;
  }
  .panorama h1 {
    font-size: 27px;
  }
  .panorama-inner {
    padding: 24px 22px;
  }
  .panorama-copy {
    width: 100%;
  }
  .panorama-copy p {
    font-size: 12px;
  }
  .panorama-controls {
    left: 16px;
    right: 16px;
    gap: 5px;
  }
  .panorama-position {
    font-size: 10px;
  }
  .panorama-dots {
    gap: 3px;
  }
  .panorama-dots button {
    width: 17px;
  }
  .panorama-controls > .carousel-pause {
    font-size: 10px;
    padding: 0 6px;
  }
  .portal-channels {
    gap: 7px;
  }
  .portal-channels a {
    padding: 7px 12px;
    font-size: 12px;
  }
  .portal-collection {
    padding: 16px;
  }
  .film-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .section-head h2 {
    font-size: 18px;
  }
  .more {
    font-size: 12px;
  }
  .portal-sidebar {
    grid-template-columns: 1fr;
  }
  .portal-sidebar #sidebar-discovery {
    grid-column: auto;
  }
  .guide-tips {
    grid-template-columns: 1fr;
  }
  .viewing-guide,
  .home-faq {
    padding: 22px;
  }
  .section-caption {
    font-size: 10px;
  }
}

/* Always-visible homepage ranking destination. */
#ranking {
  display: block;
  min-width: 0;
}
.ranking-main {
  margin: 45px 0;
  padding: 28px;
  background: var(--panel, #fff);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.ranking-main h2 {
  font-size: 27px;
}
@media (max-width: 600px) {
  .ranking-main {
    padding: 18px;
  }
  .ranking-main > .section-head {
    display: block;
  }
  .ranking-main h2 {
    font-size: 24px;
  }
}

/* Extended theme-specific site introduction; colors inherit the active theme. */
.site-story-home {
  margin: 32px 0;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(190px, 0.75fr) minmax(0, 1.6fr);
  gap: 38px;
  align-items: start;
}
.site-story-home > header {
  min-width: 0;
}
.site-story-eyebrow {
  display: block;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--accent, var(--rose));
  margin-bottom: 13px;
}
.site-story-home h2 {
  font-size: clamp(23px, 2.3vw, 31px);
  line-height: 1.6;
  margin: 0;
  color: var(--ink, var(--text));
}
.site-story-home-copy {
  min-width: 0;
}
.site-story-home p {
  font-size: 14px;
  line-height: 2.1;
  margin: 0 0 15px;
  color: var(--muted);
}
.site-story-more {
  display: inline-block;
  font-size: 12px;
  color: var(--accent, var(--rose));
  margin-top: 4px;
}
.site-story-footer {
  flex: 1 1 430px;
  min-width: 0;
  max-width: 780px;
}
.site-footer .site-story-footer p {
  font-size: 12px;
  line-height: 2;
  letter-spacing: 0.02em;
  margin: 10px 0;
  color: var(--muted);
  text-align: justify;
}
.site-footer > div:has(> .site-story-footer) {
  flex: 1 1 430px;
  min-width: 0;
  max-width: 850px;
}
.site-footer:has(.site-story-footer) {
  align-items: flex-start;
}
.about-page .prose {
  max-width: 1050px;
  font-size: 15px;
  line-height: 2.15;
}
.about-page .prose p {
  font-size: inherit;
  line-height: inherit;
  margin: 0 0 22px;
  color: var(--muted);
}
.site-story-custom {
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
  white-space: normal;
}
.about-page h1 {
  overflow-wrap: anywhere;
}
.site-story-home,
.site-story-footer,
.about-page .prose {
  overflow-wrap: anywhere;
}
@media (max-width: 800px) {
  .site-story-home {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 28px 0;
    margin: 26px 0;
  }
  .site-story-home h2 {
    font-size: 25px;
  }
  .site-story-home p {
    font-size: 13px;
    line-height: 2;
  }
  .site-footer .site-story-footer p {
    font-size: 12px;
    line-height: 1.95;
  }
  .site-story-footer {
    max-width: none;
  }
  .about-page .prose {
    font-size: 14px;
    line-height: 2.05;
  }
}

.comments-heading > h2 {
  min-width: 0;
  flex: 1;
  overflow-wrap: anywhere;
}
.comments-heading > small {
  margin-left: auto;
  flex-shrink: 0;
}
.comments-heading .viewer-comments-caption {
  font-size: 1.08em;
}

/* The complete film information always precedes the watch area. */
main [data-detail-first] {
  width: 100%;
  max-width: none;
  position: static;
  float: none;
  order: 0;
  margin: 0 0 22px;
  grid-column: 1/-1;
}
.detail-first-summary {
  display: grid;
  grid-template-columns: 155px minmax(0, 1fr);
  align-items: start;
  gap: 25px;
  padding: 23px;
  background: var(--panel, var(--card, var(--paper, var(--bg, #fff))));
  border: 1px solid var(--line, #ddd);
  border-radius: 12px;
}
.detail-first-summary .detail-cover {
  width: 155px;
  max-width: 155px;
  aspect-ratio: 3/4;
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
}
.detail-first-summary .detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.detail-first-summary .detail-info {
  min-width: 0;
}
.detail-first-summary h1 {
  font-size: 29px;
  margin: 6px 0 13px;
  line-height: 1.4;
}
.detail-first-summary .metadata-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 20px;
}
.detail-first-summary .metadata-grid > div {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  padding: 0;
  border: 0;
}
.detail-first-summary dt {
  flex: none;
  min-width: 2em;
  color: var(--muted, #888);
  font-size: 12px;
}
.detail-first-summary dd {
  font-size: 12px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.detail-first-summary .detail-lead {
  display: block;
  max-height: none;
  overflow: visible;
  white-space: normal;
  font-size: 13px;
  line-height: 1.95;
  margin-top: 13px;
  overflow-wrap: anywhere;
}
.detail-first-summary .detail-actions {
  margin-top: 16px;
}
.details-single-column {
  grid-template-columns: minmax(0, 1fr) !important;
}
@media (max-width: 800px) {
  .detail-first-summary {
    grid-template-columns: 115px minmax(0, 1fr);
    gap: 20px;
    padding: 20px;
  }
  .detail-first-summary .detail-cover {
    width: 115px;
    max-width: 115px;
  }
  .detail-first-summary .metadata-grid {
    grid-template-columns: 1fr 1fr;
  }
  .detail-first-summary h1 {
    font-size: 26px;
  }
}
@media (max-width: 520px) {
  main [data-detail-first] {
    margin-bottom: 18px;
    order: 0;
  }
  .detail-first-summary {
    display: block;
    padding: 17px;
  }
  .detail-first-summary .detail-cover {
    float: left;
    width: 85px;
    max-width: 85px;
    margin: 0 15px 12px 0;
  }
  .detail-first-summary .detail-info {
    display: block;
  }
  .detail-first-summary h1 {
    font-size: 24px;
    margin: 4px 0 10px;
  }
  .detail-first-summary .metadata-grid {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .detail-first-summary dt,
  .detail-first-summary dd {
    font-size: 11px;
  }
  .detail-first-summary .detail-lead {
    clear: both;
    padding-top: 8px;
    font-size: 12px;
  }
  .detail-first-summary:after {
    content: "";
    display: block;
    clear: both;
  }
}

/* A short overview links to the complete synopsis below the player. */
[data-detail-first] .detail-intro-text { display: inline; }
[data-detail-first] .synopsis-more {
  display: inline; white-space: nowrap; color: var(--accent, var(--rose, var(--pink, currentColor)));
  font-size: inherit; font-weight: 500; text-decoration: none;
}
[data-detail-first] .synopsis-more:hover { text-decoration: underline; }
[data-detail-first] .synopsis-more:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
[data-full-synopsis] { scroll-margin-top: 24px; overflow-wrap: anywhere; }
[data-full-synopsis] p { display: block; max-height: none; overflow: visible; white-space: normal; -webkit-line-clamp: unset; }
.full-synopsis-panel {
  padding: 22px 24px; margin: 22px 0;
  border: 1px solid var(--line, #e4dfe3); border-radius: 12px;
  background: var(--panel, var(--card, var(--paper, var(--bg, #fff))));
  color: var(--ink, inherit);
}
.full-synopsis-panel h2 { margin: 0 0 12px; font-size: 21px; line-height: 1.5; }
.full-synopsis-panel p { margin: 0; font-size: 14px; line-height: 1.95; }
@media (max-width: 600px) {
  .full-synopsis-panel { padding: 17px; margin: 18px 0; }
  .full-synopsis-panel h2 { font-size: 18px; }
  .full-synopsis-panel p { font-size: 13px; }
}

/* Paused playback always has a clear, accessible central resume control. */
.player-stage .player-start {
  width: 64px;
  height: 64px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: rgba(20, 20, 24, 0.84);
  color: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.22);
  z-index: 3;
}
.player-stage .player-start:hover { background: rgba(35, 35, 40, 0.95); }
.player-stage .player-start svg { width: 28px; height: 28px; margin-left: 3px; fill: currentColor; }
.player-stage .player-start[hidden] { display: none; }
.player-stage .player-start:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
@media (max-width: 600px) {
  .player-stage .player-start { width: 54px; height: 54px; }
  .player-stage .player-start svg { width: 24px; height: 24px; }
}

/* Detail panels follow the reading order on every screen size. */
main .detail-flow { display: flex; flex-direction: column; gap: 18px; width: 100%; min-width: 0; grid-column: 1 / -1; }
main .detail-flow > * { order: 0; width: 100%; min-width: 0; max-width: none; margin: 0; float: none; position: static; }
main .detail-flow > [data-detail-first] { margin: 0; }
.detail-flow .detail-playback { display: block; padding: 12px; border: 1px solid var(--line, #ddd); border-radius: 12px; background: var(--panel, var(--card, var(--paper, var(--bg, #fff)))); }
/* Align the playback panel with the template; bound the stage height as a whole. */
main .detail-flow > .detail-playback {
  width: 100%;
  max-width: none;
  align-self: stretch;
}
.detail-flow .player-stage {
  display: block;
  position: relative;
  width: 100%;
  max-width: none;
  min-width: 0;
  min-height: 0;
  height: auto;
  max-height: 70vh;
  margin-inline: auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
/* Override the legacy #player viewport cap and fill the stage, including native controls. */
.detail-flow .player-stage > video#player {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-width: none;
  max-height: none;
  margin: 0;
  border-radius: 0;
  aspect-ratio: auto;
  object-fit: contain;
}
.detail-flow .player-status { margin: 0; padding: 12px 4px 2px; }
.detail-flow .detail-episodes { display: block; padding: 20px 22px; border: 1px solid var(--line, #ddd); border-radius: 12px; background: var(--panel, var(--card, var(--paper, var(--bg, #fff)))); }
.detail-flow .episode-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 0 0 16px; padding: 0 0 12px; border-bottom: 1px solid var(--line, #ddd); }
.detail-flow .episode-heading h2 { margin: 0; font-size: 21px; line-height: 1.5; }
.detail-flow .episode-sort { flex: none; min-width: 0; padding: 6px 10px; border: 0; border-radius: 6px; background: transparent; color: var(--accent, var(--rose, inherit)); font: inherit; font-size: 13px; cursor: pointer; }
.detail-flow .episode-sort:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.detail-flow .episode-source { margin: 18px 0 10px; font-size: 13px; line-height: 1.6; color: var(--muted, inherit); overflow-wrap: anywhere; }
.detail-flow .detail-episodes .episodes { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; width: 100%; max-height: 332px; margin: 0; padding: 2px 6px 2px 0; overflow-x: hidden; overflow-y: auto; scrollbar-gutter: stable; align-content: start; }
.detail-flow .episodes .episode-link { display: flex; align-items: center; justify-content: center; width: 100%; min-width: 0; height: 40px; min-height: 40px; margin: 0; padding: 0 8px; border: 1px solid var(--line, #ddd); border-radius: 6px; background: var(--soft, var(--panel, var(--card, var(--bg, #f5f5f5)))); color: var(--ink, inherit); font-size: 13px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; }
.detail-flow .episodes .episode-link.selected { background: var(--accent, var(--rose, #555)); color: var(--button-ink, #fff); border-color: transparent; outline: 0; }
.detail-flow .episode-note { margin: 14px 0 0; font-size: 12px; line-height: 1.8; color: var(--muted, inherit); }
.detail-flow [data-full-synopsis] { display: block; padding: 20px 22px; border: 1px solid var(--line, #ddd); border-radius: 12px; background: var(--panel, var(--card, var(--paper, var(--bg, #fff)))); }
.detail-flow [data-full-synopsis] p { margin-bottom: 0; color: var(--ink, inherit); }
@media (max-width: 1100px) { .detail-flow .detail-episodes .episodes { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  main .detail-flow { gap: 14px; }
  .detail-flow .detail-playback { padding: 8px; }
  .detail-flow .detail-episodes, .detail-flow [data-full-synopsis] { padding: 16px; }
  .detail-flow .episode-heading h2 { font-size: 18px; }
  .detail-flow .detail-episodes .episodes { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; max-height: 300px; }
  .detail-flow .episodes .episode-link { height: 38px; min-height: 38px; padding-inline: 3px; font-size: 12px; }
}

/* Text columns must shrink inside ranking grids, including long film names. */
.discovery-grid, .discovery-grid > *, .rank-column, .ranking-columns > *, .ranking-column { min-width: 0; max-width: 100%; }
.rank-column li a, .rank-column li a > span { min-width: 0; max-width: 100%; }
.rank-column li a > span { overflow: hidden; }
.rank-column li b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (min-width: 1101px) {
  .portal-columns, .portal-layout, .home-columns { align-items: start; }
  .portal-columns > aside, .portal-layout > aside, .home-columns > aside { position: sticky; top: 100px; align-self: start; min-width: 0; max-height: calc(100vh - 120px); overflow-x: hidden; overflow-y: auto; scrollbar-width: thin; }
}

.portal-main { min-width: 0; } .portal-main .panorama, .portal-main .panorama-copy { min-width: 0; max-width: 100%; }
@media (max-width: 1100px) { .portal-layout { grid-template-columns: minmax(0, 1fr); } .portal-layout > * { min-width: 0; width: 100%; } }
@media (max-width: 600px) { .portal-sidebar { grid-template-columns: minmax(0, 1fr); } .portal-sidebar > * { min-width: 0; max-width: 100%; } }
