/* HD Catalog B catalog, search and title-detail presentation. */

.series-hero {
  position: relative;
  height: clamp(360px,50svh,540px);
  overflow: hidden;
  background: #121419;
  isolation: isolate;
}
.series-hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(.94) contrast(1.02);
  transform: scale(1.01);
}
.series-hero-art.is-poster-fallback {
  filter: blur(8px) saturate(.86) contrast(.96);
  transform: scale(1.16);
}
.series-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,#080b10 0%,rgba(8,11,16,.94) 12%,rgba(8,11,16,.69) 39%,rgba(8,11,16,.15) 75%,rgba(8,11,16,.14) 100%),linear-gradient(0deg,#101115 0%,rgba(16,17,21,.57) 21%,rgba(16,17,21,0) 58%);
}
.series-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  gap: 18px;
  width: min(100%,1120px);
  height: 100%;
  padding: 0 46px 26px;
}
.series-hero-poster {
  flex: 0 0 auto;
  width: 116px;
  aspect-ratio: 2/3;
  border-radius: 10px;
  object-fit: cover;
  background: #1a1d25;
  box-shadow: 0 20px 42px rgba(0,0,0,.48);
  border: 1px solid rgba(255,255,255,.22);
}
.series-hero-no-poster {
  flex: 0 0 auto;
  width: 116px;
  aspect-ratio: 2/3;
  border-radius: 10px;
  object-fit: cover;
  background: #1a1d25;
  box-shadow: 0 20px 42px rgba(0,0,0,.48);
  display: grid;
  place-items: center;
  padding: 10px;
  text-align: center;
  color: #aab1bd;
  font-size: 11px;
  font-weight: 800;
  border: 1px dashed rgba(255,255,255,.28);
}
.series-hero-copy {
  max-width: 700px;
  padding-bottom: 1px;
}
.series-kicker {
  margin: 0 0 7px;
  color: var(--pub-accent-green);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .14em;
}
.series-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(29px,3vw,46px);
  line-height: 1.06;
  letter-spacing: -.035em;
}
.series-original {
  margin: 7px 0 0;
  color: #c4c9d2;
  font-size: 12px;
  font-weight: 650;
}
.series-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.series-meta-row span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #e5e9f0;
  background: rgba(23,25,30,.72);
  font-size: 11px;
  font-weight: 760;
}
.series-hero-summary {
  display: -webkit-box;
  max-width: 660px;
  margin: 10px 0 0;
  overflow: hidden;
  color: #d4d8df;
  font-size: 12px;
  line-height: 1.52;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.series-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 14px;
}
.series-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  padding: 9px 14px;
  border: 0;
  border-radius: 8px;
  color: var(--pub-text-on-accent);
  background: var(--pub-accent-gradient);
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 9px 22px rgba(47,245,139,.20);
  transition: transform .18s ease,filter .18s ease,box-shadow .18s ease;
}
.series-action:hover {
  color: var(--pub-text-on-accent);
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 13px 29px rgba(47,245,139,.29);
}
.series-action:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.series-page {
  background: #101115;
  padding-bottom: 48px;
  overflow-x: clip;
}
.series-watch-panel {
  position: relative;
  z-index: 0;
  isolation: isolate;
  scroll-margin-top: 0;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: clip;
  background: #050607;
}
.series-watch-panel[hidden] {
  display: none;
}
.series-sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.series-watch-frame-shell {
  position: relative;
  z-index: 0;
  isolation: isolate;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  overflow: clip;
  background: #050607;
}
.series-watch-frame {
  position: relative;
  z-index: 0;
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: max(720px,100svh);
  min-height: max(720px,100svh);
  border: 0;
  background: #050607;
}
.series-watch-loader {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  color: #dce4ec;
  background: #080a0e;
  font-size: 13px;
  font-weight: 750;
}
.series-watch-loader[hidden] {
  display: none;
}
.series-watch-known-overlay-shield {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 50%;
  width: min(527px,90%);
  height: 150px;
  max-width: 90%;
  pointer-events: auto;
  touch-action: none;
  transform: translateX(-50%);
  background: #050607;
  box-shadow: 0 0 0 1px rgba(255,255,255,.015);
  user-select: none;
}
.series-watch-spinner {
  width: 22px;
  height: 22px;
  border: 3px solid rgba(255,255,255,.18);
  border-top-color: var(--pub-accent-green);
  border-radius: 50%;
  animation: series-watch-spin .85s linear infinite;
}
@keyframes series-watch-spin{to{transform:rotate(360deg)}}
.series-cast-section {
  padding: 0 0 28px;
}
.series-cast-section .series-section-heading {
  margin: 0 0 14px;
}
.series-cast-section .series-cast-shell {
  margin: 0;
}
.series-tab-nav {
  position: sticky;
  z-index: 12;
  top: 0;
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 0 46px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: rgba(16,17,21,.95);
  backdrop-filter: blur(12px);
  scrollbar-width: none;
}
.series-tab-nav::-webkit-scrollbar {
  display: none;
}
.series-tab-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: #9fa5b1;
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}
.series-tab-nav a:hover {
  color: #fff;
}
.series-tab-nav a.is-active {
  color: #fff;
}
.series-tab-nav a.is-active:after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: #f2f5f8;
}
.series-content-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) 330px;
  gap: 34px;
  padding: 28px 42px 0;
}
.series-content-main {
  min-width: 0;
}
.series-panel {
  scroll-margin-top: 60px;
  padding: 0 0 28px;
}
.series-panel[hidden] {
  display: none;
}
.series-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 14px;
}
.series-aside-heading h2 {
  margin: 0;
  color: #fff;
  font-size: 20px;
  letter-spacing: -.025em;
}
.series-section-heading h2 {
  margin: 0;
  color: #fff;
  font-size: 20px;
  letter-spacing: -.025em;
}
.series-network-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.series-network-chips span {
  padding: 6px 10px;
  border-radius: 999px;
  color: #d5dae3;
  background: #27292f;
  font-size: 11px;
  font-weight: 800;
}
.series-empty-state {
  padding: 22px;
  border-radius: 10px;
  background: #1a1b20;
}
.series-empty-state h3 {
  margin: 0;
  color: #f1f3f6;
  font-size: 15px;
}
.series-empty-state p {
  margin: 6px 0 0;
  color: #aab1bd;
  font-size: 12px;
  line-height: 1.55;
}
.series-cast-shell {
  position: relative;
}
.series-cast-rail {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  padding: 1px 2px 10px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.series-cast-rail::-webkit-scrollbar {
  display: none;
}
.series-cast-card {
  flex: 0 0 clamp(150px,16vw,194px);
  min-width: 0;
  scroll-snap-align: start;
  text-align: center;
  color: #f0f2f5;
}
.series-cast-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1/1.25;
  object-fit: cover;
  border-radius: 8px;
  background: #1d2027;
}
.series-cast-avatar {
  width: 100%;
  aspect-ratio: 1/1.25;
  object-fit: cover;
  border-radius: 8px;
  background: #1d2027;
  display: grid;
  place-items: center;
  color: #9aa2ae;
  font-size: 11px;
  font-weight: 800;
}
.series-cast-card h3 {
  margin: 8px 0 0;
  overflow: hidden;
  color: #f4f6f8;
  font-size: 12px;
  line-height: 1.25;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.series-cast-card p {
  margin: 4px 0 0;
  min-height: 31px;
  overflow: hidden;
  color: #b6bdc8;
  font-size: 11px;
  line-height: 1.35;
}
/* Public actor-profile links are emitted only for registry-verified cast profiles. */
.pub-theme .series-cast-card--link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform 160ms ease;
}
.pub-theme .series-cast-card--link:hover {
  transform: translateY(-2px);
}
.pub-theme .series-cast-card--link img,
.pub-theme .series-cast-card--link .series-cast-avatar {
  transition: border-color 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}
.pub-theme .series-cast-card--link:hover img,
.pub-theme .series-cast-card--link:hover .series-cast-avatar {
  box-shadow: 0 0 0 1px rgba(var(--pub-accent-blue-rgb), 0.42), 0 14px 26px rgba(0, 0, 0, 0.26);
  filter: brightness(1.035);
}
.pub-theme .series-cast-card--link:focus-visible {
  outline: 2px solid var(--pub-focus);
  outline-offset: 3px;
  border-radius: var(--pub-radius-md);
}
.series-cast-arrow {
  position: absolute;
  z-index: 3;
  top: 42%;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--pub-text-on-accent);
  background: var(--pub-accent-gradient);
  box-shadow: 0 8px 21px rgba(47,245,139,.24);
  cursor: pointer;
  font: 32px/.8 Georgia,serif;
  transform: translateY(-50%);
  transition: filter .18s ease,transform .18s ease,opacity .18s ease;
}
.series-cast-arrow.previous {
  left: -18px;
}
.series-cast-arrow.next {
  right: -18px;
}
.series-cast-arrow:hover:not(:disabled) {
  filter: brightness(1.08);
  transform: translateY(-50%) scale(1.06);
}
.series-cast-arrow:disabled {
  opacity: 0;
  pointer-events: none;
}
.series-info-grid {
  display: grid;
  grid-template-columns: minmax(0,1.2fr) minmax(270px,.8fr);
  gap: 16px;
}
.series-credits-grid article {
  padding: 16px;
  border-radius: 10px;
  background: #1a1b20;
}
.series-overview {
  padding: 16px;
  border-radius: 10px;
  background: #1a1b20;
}
.series-credits-grid h3 {
  margin: 0;
  color: #f3f5f8;
  font-size: 14px;
}
.series-overview h3 {
  margin: 0;
  color: #f3f5f8;
  font-size: 14px;
}
.series-overview p {
  margin: 9px 0 0;
  color: #c6ccd5;
  font-size: 13px;
  line-height: 1.7;
}
.series-facts {
  padding: 16px;
  border-radius: 10px;
  background: #1a1b20;
  display: grid;
  gap: 0;
  margin: 0;
}
.series-facts div {
  display: grid;
  grid-template-columns: 1fr minmax(110px,1.2fr);
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.series-facts div:first-child {
  padding-top: 0;
}
.series-facts div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.series-facts dt {
  color: #979fab;
  font-size: 11px;
}
.series-facts dd {
  margin: 0;
  color: #edf0f4;
  font-size: 11px;
  font-weight: 760;
  text-align: right;
}
.series-credits-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 12px;
  margin-top: 14px;
}
.series-credits-grid p {
  margin: 7px 0 0;
  color: #b9c0ca;
  font-size: 12px;
  line-height: 1.5;
}
.series-aside {
  min-width: 0;
  align-self: start;
}
.series-side-section {
  position: sticky;
  top: 70px;
}
.series-aside-heading {
  margin: 0 0 12px;
}
.series-related-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 12px;
}
.series-related-card {
  display: block;
  min-width: 0;
  color: #f0f3f6;
}
.series-related-card img {
  display: block;
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  border-radius: 7px;
  background: #1b1e25;
}
.series-related-no-poster {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  border-radius: 7px;
  background: #1b1e25;
  display: grid;
  place-items: center;
  padding: 10px;
  color: #9ea7b6;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}
.series-related-card span {
  display: block;
  margin-top: 6px;
  overflow: hidden;
  color: #e9edf2;
  font-size: 11px;
  font-weight: 760;
  line-height: 1.3;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.series-related-card:hover span {
  color: #fff;
}
.series-aside-empty {
  margin: 0;
  color: #9da5b2;
  font-size: 12px;
  line-height: 1.5;
}
.series-not-found {
  display: grid;
  min-height: 70vh;
  align-content: center;
  justify-items: start;
  gap: 8px;
  padding: 42px;
}
.series-not-found h1 {
  margin: 0;
  color: #fff;
}
.series-not-found p {
  margin: 0;
  color: #abb3c0;
}
.series-watch-action {
  min-width: 190px;
  min-height: 45px;
  padding: 11px 20px;
  border-radius: 7px;
  color: #101114;
  background: var(--pub-accent-gradient);
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 8px 20px rgba(36,204,193,.18);
}
.series-watch-action:hover {
  color: #101114;
  background: var(--pub-accent-gradient);
  box-shadow: 0 11px 24px rgba(36,204,193,.26);
}
.series-watch-action > [aria-hidden="true"] {
  font-size: 18px;
  line-height: 1;
}
/* Catalog browse interface — source-owned Series and Movies listing presentation. */
.pub-theme .pub-catalog-main {
  min-height: 100vh;
  padding: calc(var(--pub-appbar-height) + 24px) clamp(16px, 3vw, 42px) 52px;
  overflow-x: clip;
  background: var(--pub-bg-surface);
}
.pub-theme .pub-catalog-browser {
  width: 100%;
  margin: 0 0 20px;
}
.pub-theme .pub-catalog-filter-rows {
  display: grid;
  gap: 7px;
  width: 100%;
}
.pub-theme .pub-catalog-filter-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  min-width: 0;
  padding: 1px 0;
}
.pub-theme .pub-catalog-filter-row h2 {
  margin: 0;
  padding-top: 6px;
  color: var(--pub-text-secondary);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.3;
}
.pub-theme .pub-catalog-choice-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  min-width: 0;
}
.pub-theme .pub-catalog-choice {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 27px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  color: var(--pub-text-secondary);
  background: transparent;
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background 160ms ease, color 160ms ease, filter 160ms ease;
}
.pub-theme .pub-catalog-choice:hover {
  color: var(--pub-text-primary);
  background: rgba(255,255,255,.055);
}
.pub-theme .pub-catalog-choice.is-active {
  color: var(--pub-text-on-accent);
  background: var(--pub-accent-gradient);
}
.pub-theme .pub-catalog-choice.is-active:hover {
  color: var(--pub-text-on-accent);
  filter: brightness(1.05);
}
.pub-theme .pub-catalog-browser__reset,
.pub-theme .pub-catalog-empty__action,
.pub-theme .pub-catalog-pagination__link,
.pub-theme .pub-catalog-mobile-filter__reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid var(--pub-border-subtle);
  border-radius: 999px;
  color: var(--pub-text-secondary);
  background: transparent;
  font-size: 11px;
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}
.pub-theme .pub-catalog-browser__reset {
  margin: 7px 0 0 88px;
}
.pub-theme .pub-catalog-browser__reset:hover,
.pub-theme .pub-catalog-empty__action:hover,
.pub-theme .pub-catalog-pagination__link:hover,
.pub-theme .pub-catalog-mobile-filter__reset:hover {
  border-color: rgba(var(--pub-accent-blue-rgb), .55);
  color: var(--pub-text-primary);
  background: rgba(var(--pub-accent-blue-rgb), .08);
}
.pub-theme .pub-catalog-mobile-toolbar {
  display: none;
}
.pub-theme [data-public-catalog] {
  position: relative;
}
.pub-theme .pub-catalog-results {
  min-height: 1px;
  transition: opacity 160ms ease;
}
.pub-theme [data-public-catalog].is-loading .pub-catalog-results {
  opacity: .58;
  pointer-events: none;
}
.pub-theme [data-public-catalog].is-loading .pub-catalog-browser {
  cursor: progress;
}
.pub-theme [data-public-catalog].is-loading .pub-catalog-choice,
.pub-theme [data-public-catalog].is-loading .pub-catalog-browser__reset,
.pub-theme [data-public-catalog].is-loading .pub-catalog-mobile-toolbar {
  pointer-events: none;
}
.pub-theme .pub-catalog-results-frame {
  display: grid;
  gap: 13px;
}
.pub-theme .pub-catalog-results-frame__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 24px;
}
.pub-theme .pub-catalog-results-frame__header h1 {
  margin: 0;
  color: var(--pub-text-primary);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.pub-theme .pub-poster-catalog-grid--catalog {
  --pub-poster-catalog-min-width: 154px;
  --pub-poster-tile-gap: 16px;
  --pub-poster-tile-row-gap: 26px;
}
.pub-theme .pub-catalog-empty {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  min-height: 196px;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--pub-border-subtle);
  border-radius: var(--pub-radius-md);
  background: var(--pub-bg-raised);
}
.pub-theme .pub-catalog-empty__mark {
  width: 10px;
  height: 10px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--pub-accent-gradient);
  box-shadow: 0 0 0 5px rgba(var(--pub-accent-blue-rgb), .08);
}
.pub-theme .pub-catalog-empty h1 {
  margin: 0;
  color: var(--pub-text-primary);
  font-size: clamp(20px, 2vw, 25px);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.pub-theme .pub-catalog-empty p {
  max-width: 520px;
  margin: 8px 0 0;
  color: var(--pub-text-muted);
  font-size: 13px;
  line-height: 1.55;
}
.pub-theme .pub-catalog-empty__action {
  margin-top: 16px;
}
.pub-theme .pub-catalog-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--pub-space-4);
  margin: 28px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--pub-border-subtle);
}
.pub-theme .pub-catalog-pagination > p {
  margin: 0;
  color: var(--pub-text-muted);
  font-size: 12px;
}
.pub-theme .pub-catalog-pagination__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pub-theme .pub-catalog-pagination__link--next {
  border-color: transparent;
  color: var(--pub-text-on-accent);
  background: var(--pub-accent-gradient);
}
.pub-theme .pub-catalog-pagination__link--next:hover {
  border-color: transparent;
  color: var(--pub-text-on-accent);
  background: var(--pub-accent-gradient);
  filter: brightness(1.05);
}

.series-cast-card .series-cast-role {
  min-height: 16px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.series-article-body {
  margin: 9px 0 0;
  color: #c6ccd5;
  font-size: 13px;
  line-height: 1.75;
}
.series-article-body p {
  margin: 0 0 12px;
}
.series-article-body ol {
  margin: 0 0 12px;
  padding-left: 20px;
}
.series-article-body ul {
  margin: 0 0 12px;
  padding-left: 20px;
}
.series-article-body h2 {
  margin: 18px 0 8px;
  color: #f3f5f8;
  line-height: 1.3;
  font-size: 18px;
}
.series-article-body h3 {
  margin: 18px 0 8px;
  color: #f3f5f8;
  line-height: 1.3;
  font-size: 16px;
}
.series-article-body h4 {
  margin: 18px 0 8px;
  color: #f3f5f8;
  line-height: 1.3;
  font-size: 14px;
}
.series-article-body blockquote {
  margin: 0 0 12px;
  padding: 9px 12px;
  border-left: 3px solid var(--pub-accent-green);
  background: rgba(255,255,255,.04);
  color: #d6dbe3;
}
.series-article-body a {
  color: var(--pub-accent-green);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.pub-theme .series-watch-action {
  min-height: 44px;
  border: 0;
  border-radius: var(--pub-radius-sm);
  color: var(--pub-text-on-accent) !important;
  background: var(--pub-accent-gradient) !important;
  box-shadow: 0 10px 24px rgba(var(--pub-accent-blue-rgb), 0.17);
  font-weight: 800;
}
.pub-theme .series-watch-action:hover {
  color: var(--pub-text-on-accent) !important;
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(var(--pub-accent-blue-rgb), 0.24);
}
.pub-theme .series-hero {
  background: var(--pub-bg-surface);
}
.pub-theme .series-hero-poster {
  border-radius: var(--pub-radius-md);
  border-color: var(--pub-border-strong);
}
.pub-theme .series-kicker {
  color: var(--pub-accent-green);
}
.pub-theme .series-page {
  background: var(--pub-bg-surface);
  padding-bottom: var(--pub-space-12);
}
.pub-theme .series-hero-content {
  width: min(100%, 1160px);
  gap: 20px;
  padding: 0 clamp(32px, 4vw, 48px) 30px;
}
.pub-theme .series-hero-summary {
  color: var(--pub-text-secondary);
}
.pub-theme .series-original {
  color: var(--pub-text-secondary);
}
.pub-theme .series-meta-row span {
  border-color: var(--pub-border-subtle);
  color: var(--pub-text-secondary);
  background: rgba(12, 14, 18, 0.5);
}
.pub-theme .series-hero-actions {
  gap: 10px;
}
.pub-theme .series-action:not(.series-watch-action) {
  border: 1px solid var(--pub-border-subtle);
  border-radius: var(--pub-radius-sm);
  color: var(--pub-text-secondary);
  background: var(--pub-bg-raised);
  box-shadow: none;
  font-weight: 650;
  min-height: 44px;
}
.pub-theme .series-tab-nav {
  gap: 8px;
  padding: 0 clamp(32px, 4vw, 48px);
  background: rgba(16, 17, 21, 0.96);
  border-bottom-color: var(--pub-border-subtle);
}
.pub-theme .series-tab-nav a {
  min-height: 48px;
  padding: 0 12px;
  color: var(--pub-text-muted);
  font-weight: 650;
}
.pub-theme .series-tab-nav a.is-active {
  color: var(--pub-text-primary);
}
.pub-theme .series-tab-nav a:hover {
  color: var(--pub-text-primary);
}
.pub-theme .series-tab-nav a.is-active::after {
  background: var(--pub-accent-gradient);
}
.pub-theme .series-content-layout {
  gap: 36px;
  padding: 32px clamp(32px, 4vw, 48px) 0;
}
.pub-theme .series-panel {
  padding-bottom: 32px;
}
.pub-theme .series-section-heading {
  margin-bottom: 16px;
}
.pub-theme .series-aside-heading h2 {
  color: var(--pub-text-primary);
  font-weight: 750;
}
.pub-theme .series-section-heading h2 {
  color: var(--pub-text-primary);
  font-weight: 750;
}
.pub-theme .series-credits-grid article {
  border: 1px solid var(--pub-border-subtle);
  border-radius: var(--pub-radius-md);
  background: var(--pub-bg-raised);
}
.pub-theme .series-empty-state {
  border: 1px solid var(--pub-border-subtle);
  border-radius: var(--pub-radius-md);
  background: var(--pub-bg-raised);
}
.pub-theme .series-facts {
  border: 1px solid var(--pub-border-subtle);
  border-radius: var(--pub-radius-md);
  background: var(--pub-bg-raised);
}
.pub-theme .series-not-found {
  border: 1px solid var(--pub-border-subtle);
  border-radius: var(--pub-radius-md);
  background: var(--pub-bg-raised);
}
.pub-theme .series-overview {
  border: 1px solid var(--pub-border-subtle);
  border-radius: var(--pub-radius-md);
  background: var(--pub-bg-raised);
}
.pub-theme .series-cast-avatar {
  border-radius: var(--pub-radius-md);
}
.pub-theme .series-cast-card img {
  border-radius: var(--pub-radius-md);
}
.pub-theme .series-related-card img {
  border-radius: var(--pub-radius-md);
}
.pub-theme .series-related-no-poster {
  border-radius: var(--pub-radius-md);
}
.pub-theme .series-hero-overlay {
  background: linear-gradient(90deg, rgba(8, 11, 16, 0.80) 0%, rgba(8, 11, 16, 0.64) 30%, rgba(8, 11, 16, 0.22) 66%, rgba(8, 11, 16, 0.08) 100%),
    linear-gradient(0deg, rgba(16, 17, 21, 0.82) 0%, rgba(16, 17, 21, 0.50) 21%, rgba(16, 17, 21, 0) 58%);
}


@media (max-width:1100px) {
  .series-content-layout {
    grid-template-columns: minmax(0,1fr) 286px;
    gap: 24px;
    padding: 24px 30px 0;
  }
  .series-hero-content {
    padding: 0 34px 26px;
  }
  .series-cast-section {
    padding: 0 0 24px;
  }
  .series-tab-nav {
    padding: 0 34px;
  }
  .series-cast-arrow.previous {
    left: -13px;
  }
  .series-cast-arrow.next {
    right: -13px;
  }
}

@media (max-width: 980px) {
  .pub-theme .series-hero-content {
    padding-right: 32px;
    padding-left: 32px;
  }
  .pub-theme .series-content-layout {
    gap: 28px;
    padding-right: 30px;
    padding-left: 30px;
  }
}

@media (max-width:900px) {
  .series-content-layout {
    grid-template-columns: 1fr;
  }
  .series-aside {
    order: 2;
  }
  .series-side-section {
    position: static;
  }
  .series-related-grid {
    grid-template-columns: repeat(4,minmax(0,1fr));
  }
  .series-info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width:760px) {
  .series-watch-frame {
    height: max(620px,100svh);
    min-height: max(620px,100svh);
  }
  .series-watch-known-overlay-shield {
    top: 10px;
    width: 90%;
    height: 150px;
  }
  .series-hero {
    height: clamp(350px,52svh,460px);
  }
  .series-hero-content {
    padding: 0 20px 24px;
  }
  .series-hero-no-poster {
    display: none;
  }
  .series-hero-poster {
    display: none;
  }
  .series-hero h1 {
    font-size: clamp(28px,8vw,39px);
  }
  .series-hero-summary {
    font-size: 12px;
    line-height: 1.5;
  }
  .series-cast-section {
    padding: 0 0 22px;
  }
  .series-tab-nav {
    top: 0;
    gap: 18px;
    padding: 0 17px;
  }
  .series-content-layout {
    gap: 24px;
    padding: 22px 16px 0;
  }
  .series-aside-heading h2 {
    font-size: 18px;
  }
  .series-section-heading h2 {
    font-size: 18px;
  }
  .series-cast-card {
    flex-basis: 142px;
  }
  .series-cast-arrow {
    display: none;
  }
  .series-credits-grid {
    grid-template-columns: 1fr;
  }
  .series-related-grid {
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 10px;
  }
  .series-not-found {
    padding: 28px 20px;
  }
}

@media (max-width: 760px) {
  .pub-theme .series-hero-content {
    padding: 0 20px 26px;
  }
  .pub-theme .series-tab-nav {
    gap: 4px;
    padding: 0 12px;
  }
  .pub-theme .series-content-layout {
    display: block;
    padding: 24px 16px 0;
  }
  .pub-theme .series-aside {
    margin-top: 28px;
  }
  .pub-theme .series-info-grid {
    grid-template-columns: 1fr;
  }
  .pub-theme .series-cast-arrow {
    display: none;
  }
}

@media (max-width:430px) {
  .series-related-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .series-hero-actions {
    gap: 7px;
  }
  .series-action {
    padding: 9px 11px;
    font-size: 11px;
  }
  .series-meta-row span {
    font-size: 10px;
  }
  .series-facts div {
    grid-template-columns: 1fr;
  }
  .series-facts dd {
    text-align: left;
  }
  .series-watch-action {
    min-width: 190px;
    min-height: 45px;
    padding: 11px 20px;
    font-size: 16px;
  }
}


@media (max-width: 760px) {
  .pub-theme .pub-catalog-main {
    padding: calc(var(--pub-appbar-height) + 14px) 12px 30px;
  }
  .pub-theme .pub-catalog-browser {
    margin-bottom: 10px;
  }
  .pub-theme .pub-catalog-filter-rows,
  .pub-theme .pub-catalog-browser__reset {
    display: none;
  }
  .pub-theme .pub-catalog-mobile-toolbar {
    position: relative;
    z-index: 18;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
    isolation: isolate;
  }
  /* The toolbar, not an individual compact trigger, owns the mobile option panel.
     This keeps every opened list inside the page gutters on narrow viewports. */
  .pub-theme .pub-catalog-mobile-filter {
    position: static;
    min-width: 0;
  }
  .pub-theme .pub-catalog-mobile-filter > summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    min-height: 31px;
    padding: 0 12px;
    border: 1px solid rgba(255,255,255,.035);
    border-radius: 999px;
    color: var(--pub-text-primary);
    background: #383a3f;
    cursor: pointer;
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
    list-style: none;
    user-select: none;
  }
  .pub-theme .pub-catalog-mobile-filter > summary::-webkit-details-marker {
    display: none;
  }
  .pub-theme .pub-catalog-mobile-filter[open] > summary {
    color: var(--pub-text-on-accent);
    border-color: transparent;
    background: var(--pub-accent-gradient);
  }
  .pub-theme .pub-catalog-mobile-filter__chevron {
    width: 6px;
    height: 6px;
    margin-top: -3px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
  }
  .pub-theme .pub-catalog-mobile-filter--more {
    margin-left: auto;
  }
  .pub-theme .pub-catalog-mobile-filter--more > summary {
    width: 32px;
    padding: 0;
  }
  .pub-theme .pub-catalog-mobile-filter__funnel {
    position: relative;
    width: 13px;
    height: 13px;
    border: 1.5px solid currentColor;
    border-top: 0;
    clip-path: polygon(0 0,100% 0,62% 52%,62% 100%,38% 100%,38% 52%);
  }
  .pub-theme .pub-catalog-mobile-filter__panel {
    position: absolute;
    z-index: 4;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    display: grid;
    gap: 10px;
    box-sizing: border-box;
    width: auto;
    max-height: min(64svh, 430px);
    min-width: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 12px;
    border: 1px solid var(--pub-border-strong);
    border-radius: var(--pub-radius-sm);
    background: #171a20;
    box-shadow: var(--pub-shadow-float);
  }
  .pub-theme .pub-catalog-mobile-filter--more .pub-catalog-mobile-filter__panel {
    right: 0;
    left: 0;
  }
  .pub-theme .pub-catalog-mobile-filter__panel > p,
  .pub-theme .pub-catalog-mobile-filter__group > p {
    margin: 0;
    color: var(--pub-text-muted);
    font-size: 11px;
    font-weight: 400;
  }
  .pub-theme .pub-catalog-mobile-filter__group {
    display: grid;
    gap: 8px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--pub-border-subtle);
  }
  .pub-theme .pub-catalog-mobile-filter__group:last-of-type {
    padding-bottom: 0;
    border-bottom: 0;
  }
  /* Mobile catalog option panels are intentionally vertical selection lists,
     not wrapped chips. This keeps long country/genre/language sets readable
     and gives every touch target one full row. */
  .pub-theme .pub-catalog-mobile-filter__panel .pub-catalog-choice-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 4px;
    width: 100%;
  }
  .pub-theme .pub-catalog-mobile-filter__panel .pub-catalog-choice {
    width: 100%;
    min-height: 38px;
    min-width: 0;
    justify-content: flex-start;
    padding: 8px 12px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--pub-text-secondary);
    background: rgba(255,255,255,.028);
    line-height: 1.3;
    overflow-wrap: anywhere;
    text-align: left;
    white-space: normal;
  }
  .pub-theme .pub-catalog-mobile-filter__panel .pub-catalog-choice:hover {
    color: var(--pub-text-primary);
    border-color: rgba(var(--pub-accent-blue-rgb), .22);
    background: rgba(var(--pub-accent-blue-rgb), .08);
  }
  .pub-theme .pub-catalog-mobile-filter__panel .pub-catalog-choice.is-active,
  .pub-theme .pub-catalog-mobile-filter__panel .pub-catalog-choice.is-active:hover {
    color: var(--pub-text-on-accent);
    border-color: transparent;
    background: var(--pub-accent-gradient);
  }
  .pub-theme .pub-catalog-mobile-filter__reset {
    width: max-content;
  }
  .pub-theme .pub-catalog-results-frame {
    gap: 10px;
  }
  .pub-theme .pub-catalog-results-frame__header {
    min-height: 22px;
  }
  .pub-theme .pub-catalog-results-frame__header h1 {
    font-size: 16px;
    font-weight: 600;
  }
  .pub-theme .pub-poster-catalog-grid--catalog {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px 10px;
  }
  .pub-theme .pub-poster-catalog-grid--catalog .pub-poster-tile__caption {
    gap: 2px;
    padding-top: 6px;
  }
  .pub-theme .pub-poster-catalog-grid--catalog .pub-poster-tile__title {
    display: -webkit-box;
    min-height: 30px;
    overflow: hidden;
    white-space: normal;
    font-size: 12px;
    line-height: 15px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  .pub-theme .pub-poster-catalog-grid--catalog .pub-poster-tile__meta {
    display: none;
  }
  .pub-theme .pub-poster-catalog-grid--catalog .pub-poster-tile__rating {
    right: 6px;
    bottom: 6px;
    font-size: 15px;
  }
  .pub-theme .pub-catalog-empty {
    min-height: 180px;
    padding: 20px;
  }
  .pub-theme .pub-catalog-pagination {
    align-items: stretch;
    flex-direction: column;
  }
  .pub-theme .pub-catalog-pagination__actions {
    width: 100%;
  }
  .pub-theme .pub-catalog-pagination__link {
    flex: 1 1 0;
  }
}

@media (prefers-reduced-motion:reduce) {
  .series-cast-rail {
    scroll-behavior: auto;
  }
  .series-watch-spinner {
    animation: none;
  }
}

