.hero {
  position: relative;
  min-height: 640px;
  height: min(74vw, calc(100svh - 100px));
  max-height: 850px;
  background: #0b1822;
  isolation: isolate;
}
.hero.single-hero {
  height: min(54vw, 800px);
  min-height: 640px;
}
.hero-art {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, #0a0e13c9 0%, #0a0e1366 45%, #0a0e1300 80%),
    linear-gradient(0deg, var(--bg) 0%, #0a0e1322 50%, #0a0e1322);
}
.hero-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: end;
  width: 872px;
  max-width: 100%;
  padding: 140px var(--gutter) 86px;
  gap: 18px;
}
.single-hero .hero-content {
  padding-bottom: 64px;
}
.hero-title {
  font-size: clamp(40px, 4.4vw, 64px);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0;
  color: white;
  text-wrap: balance;
}
.hero .meta {
  margin: 4px 0;
}
.meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  color: #d5dce4;
}
.meta .star {
  color: var(--gold);
}
.meta .dot {
  color: #6b7686;
}
.hero-synopsis {
  font-size: 18px;
  line-height: 1.6;
  max-width: 600px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 4px 0;
}
.hero-badge {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  background: #ffffff0d;
  border: 1px solid #ffffff17;
  border-radius: 25px;
  font-size: 13px;
  font-weight: 700;
  padding: 5px 13px;
}
.hero-buttons {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-dots {
  position: absolute;
  bottom: 35px;
  left: 50%;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}
.hero-dots button {
  background: #ffffff55;
  border: 0;
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 10px;
}
.hero-dots button[aria-pressed="true"] {
  width: 30px;
  background: white;
}
.hero .breadcrumb {
  margin-bottom: 0;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.section-heading h2 {
  font-size: 24px;
  margin: 0;
  letter-spacing: -0.02em;
}
.section-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.more-link {
  font-size: 13px;
  color: #94a1b1;
  margin-right: 10px;
  white-space: nowrap;
}
.carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 5 * 16px) / 6);
  gap: 16px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar {
  display: none;
}
.media-card {
  position: relative;
  min-width: 0;
  scroll-snap-align: start;
}
.card-art {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: var(--poster-ratio);
  background: #152131;
  border: 1px solid #ffffff09;
  isolation: isolate;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.card-art > img {
  width: 100%;
  height: 100%;
  transition: transform 0.5s;
}
.media-card:hover .card-art {
  transform: none;
  box-shadow: 0 8px 30px #0006;
}
.media-card:hover img {
  transform: none;
}
.card-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    #080c12f2 0%,
    #080c1266 40%,
    transparent 85%
  );
  z-index: 0;
  pointer-events: none;
}
.card-info {
  position: absolute;
  z-index: 1;
  inset: auto 14px 12px;
}
.card-info h3 {
  font-size: 16px;
  letter-spacing: -0.01em;
  margin: 0 0 7px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-info .meta {
  font-size: 12px;
  gap: 7px;
  font-weight: 400;
}
.card-play {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  background: #ffffff24;
  backdrop-filter: blur(10px);
  border: 1px solid #ffffff55;
  border-radius: 50%;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  opacity: 0;
  transition: opacity 0.2s;
}
.media-card:hover .card-play {
  opacity: 1;
}
.card-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 20px;
  background: #0b1018a8;
  z-index: 1;
}
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px 16px;
}
.catalog-grid.compact-grid {
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 16px 12px;
}

/* Ranked poster rail: source component directly below the home hero. */
.top-ten-section {
  margin-top: 30px;
}
.top-ten-heading {
  align-items: center;
  flex-wrap: wrap;
}
.top-ten-caption {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.top-ten-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.top-ten-filters {
  gap: 6px;
}
.top-ten-filters .pill {
  padding: 6px 12px;
  font-size: 12px;
}
.top-ten-rail {
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 8px 0 12px;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.top-ten-rail::-webkit-scrollbar {
  display: none;
}
.top-ten-card {
  --poster-width: clamp(104px, 7vw, 132px);
  flex: 0 0 calc(var(--poster-width) * 1.9);
  scroll-snap-align: start;
}
.top-ten-card.top-ten-double {
  flex-basis: calc(var(--poster-width) * 2.25);
}
.top-ten-link {
  display: block;
  position: relative;
  height: calc(var(--poster-width) * 1.5);
  border-radius: 10px;
}
.top-ten-number {
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 105%;
  width: 80%;
  overflow: visible;
}
.top-ten-number text {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 222px;
  font-weight: 900;
  fill: var(--bg);
  stroke: #65707d;
  stroke-width: 2.4;
  paint-order: stroke fill;
  letter-spacing: -17px;
}
.top-ten-double .top-ten-number {
  width: 86%;
}
.top-ten-poster {
  position: absolute;
  right: 0;
  top: 0;
  width: var(--poster-width);
  height: 100%;
  border-radius: 9px;
  overflow: hidden;
  background: #14202d;
  box-shadow: 0 5px 18px #0004;
  transition: transform 0.2s;
}
.top-ten-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 38%, #07101adf);
  pointer-events: none;
}
.top-ten-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.top-ten-poster strong {
  position: absolute;
  bottom: 12px;
  left: 10px;
  right: 8px;
  z-index: 1;
  font-size: 13px;
  line-height: 1.25;
  color: white;
  letter-spacing: -0.015em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.top-ten-type {
  position: absolute;
  z-index: 1;
  left: 8px;
  top: 8px;
  border-radius: 4px;
  padding: 2px 5px;
  color: #d8e0ed;
  background: #080d17b3;
  font-size: 9px;
}
.top-ten-play {
  position: absolute;
  z-index: 2;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff22;
  border: 1px solid #ffffff55;
  opacity: 0;
  transition: opacity 0.2s;
}
.top-ten-link:hover .top-ten-play,
.top-ten-link:focus-visible .top-ten-play {
  opacity: 1;
}

.promo {
  padding: 45px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(100deg, #17243a, #10181d);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  overflow: hidden;
  gap: 30px;
  position: relative;
}
.promo h2 {
  font-size: 34px;
  max-width: 540px;
  margin: 15px 0 22px;
}
.promo ul {
  list-style: none;
  padding: 0;
  color: #a7b4c5;
  line-height: 2.2;
  font-size: 14px;
}
.promo ul strong {
  color: #d9e1ed;
}
.promo-art {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  transform: rotate(-10deg) scale(1.3);
  opacity: 0.75;
}
.promo-art img {
  aspect-ratio: 2/3;
  object-fit: cover;
  border-radius: 12px;
}
.catalog-cta {
  padding: 70px 30px;
  text-align: center;
  background: radial-gradient(ellipse at center, #192842 0, transparent 70%);
}
.catalog-cta h2 {
  font-size: 40px;
  max-width: 600px;
  margin: 15px auto 25px;
}
.seo-block {
  max-width: 1100px;
  color: #8694a7;
  font-size: 14px;
}
.seo-block summary {
  cursor: pointer;
  color: #c6d1e1;
}
.seo-block h3 {
  margin-top: 25px;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 14px;
  margin: 28px 0;
}
.filter-field {
  display: grid;
  gap: 6px;
  min-width: 140px;
  font-size: 12px;
  color: #a8b5c6;
}
.filter-field.grow {
  flex: 1;
}
.filters select,
.filters input {
  padding: 10px 14px;
  font-size: 14px;
}
.view-switch {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.view-switch button {
  border-radius: 10px;
}
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 36px 0;
}
.pagination a {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 14px;
}
.pagination .active {
  background: white;
  color: #0a0e13;
}
.category-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 25px 0 40px;
  max-height: 100px;
  overflow: hidden;
}
.category-cloud.expanded {
  max-height: none;
}
.category-cloud a {
  font-size: 13px;
  color: #aab6c5;
  background: #ffffff06;
  border: 1px solid var(--line);
  padding: 7px 13px;
  border-radius: 22px;
}
.category-cloud a:hover {
  background: #ffffff17;
}
.category-count {
  font-size: 12px;
  padding: 4px 9px;
  background: #ffffff08;
  border-radius: 25px;
  color: var(--muted);
  vertical-align: middle;
  margin-left: 8px;
}
.result-heading {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
}
.tabs-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: var(--header-height);
  background: #0a0e13e8;
  backdrop-filter: blur(15px);
  z-index: 45;
  gap: 44px;
  overflow: auto;
  scrollbar-width: none;
}
.tabs-bar a {
  position: relative;
  display: block;
  padding: 23px 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #8b98a9;
  white-space: nowrap;
}
.tabs-bar a.active,
.tabs-bar a:hover {
  color: white;
}
.tabs-bar a.active::after {
  position: absolute;
  content: "";
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--blue);
}
.single-about {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 56px;
  margin-block: 50px;
}
.details-list {
  font-size: 13px;
  margin: 0;
}
.details-list > div {
  display: grid;
  grid-template-columns: 40% 1fr;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  gap: 12px;
}
.details-list dt {
  color: var(--muted);
}
.details-list dd {
  margin: 0;
  color: #e3e9f0;
  font-weight: 600;
}
.synopsis-full {
  max-width: 1000px;
}
.synopsis-full p {
  font-size: 17px;
  line-height: 1.8;
}
.rating-box {
  display: flex;
  gap: 24px;
  margin-top: 35px;
  align-items: center;
  flex-wrap: wrap;
}
.rating-number {
  font-size: 43px;
  color: white;
  font-weight: 700;
  line-height: 1.2;
}
.rating-stars {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 7px;
}
.rating-stars button {
  padding: 3px;
  border: 0;
  background: none;
  color: #475262;
  font-size: 25px;
}
.rating-stars button.active,
.rating-stars button:hover {
  color: var(--gold);
}
.rating-box small {
  font-size: 12px;
  color: var(--muted);
}
.cast-carousel {
  grid-auto-columns: calc((100% - 7 * 20px) / 8);
  gap: 20px;
}
.cast-card img {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
}
.cast-card strong {
  display: block;
  font-size: 14px;
  margin-top: 12px;
  text-align: center;
  color: #e4e9f1;
}
.cast-card small {
  display: block;
  text-align: center;
  color: #8997a9;
  font-size: 12px;
}
.trailer-thumb {
  display: grid;
  place-items: center;
  position: relative;
  width: 500px;
  max-width: 100%;
  aspect-ratio: 16/9;
  background: #101923;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.trailer-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
}
.trailer-thumb .icon-button {
  position: relative;
}
.comment-section {
  max-width: 1100px;
}
.comment-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.comment-head h2 {
  margin: 0;
}
.comment-head select {
  font-size: 12px;
  padding: 9px 13px;
}
.comment {
  display: flex;
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #a4bcf4;
  background: #25354c;
  font-size: 13px;
  font-weight: 700;
}
.comment-body {
  flex: 1;
  min-width: 0;
}
.comment-author {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 14px;
  flex-wrap: wrap;
}
.comment-author small {
  font-size: 12px;
  color: #6f7d8e;
}
.comment p {
  margin: 8px 0 10px;
  color: #bac5d4;
  font-size: 14px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.comment-actions {
  display: flex;
  gap: 18px;
}
.text-button {
  background: none;
  border: 0;
  padding: 0;
  font-size: 12px;
  color: #8c9cb2;
}
.text-button:hover {
  color: white;
}
.comment-replies {
  margin-left: 20px;
  border-left: 1px solid #2c394b;
  padding-left: 15px;
}
.comment-form {
  margin-top: 28px;
  display: grid;
  gap: 12px;
}
.comment-form textarea {
  width: 100%;
}
.comment-form .row {
  justify-content: space-between;
  flex-wrap: wrap;
}
.comment-form small {
  color: var(--muted);
}
.reply-label {
  font-size: 12px;
  color: #91b0f9;
}
.episode-list {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}
.episode-row {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 12px;
  border: 1px solid var(--line);
  background: #ffffff02;
  border-radius: 12px;
}
.episode-row:hover {
  background: #ffffff09;
}
.episode-row img {
  aspect-ratio: 16/9;
  width: 100%;
  border-radius: 8px;
}
.episode-row h3 {
  font-size: 16px;
  margin: 0 0 6px;
}
.episode-row p {
  font-size: 13px;
  color: #8392a6;
  margin: 0;
}
.episode-row small {
  font-size: 12px;
  color: #7f8b9b;
}
.season-card {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff03;
}
.season-card img {
  width: 70px;
  height: 100px;
  border-radius: 7px;
}
.season-card h3 {
  font-size: 19px;
  margin: 0 0 8px;
}
.seasons-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.season-card small {
  font-size: 13px;
  color: #8998ab;
}
.season-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.season-toolbar select {
  min-width: 170px;
}
.discovery-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 40px;
}
.discovery-filters {
  padding: 26px;
  background: #ffffff03;
  border: 1px solid var(--line);
  border-radius: 18px;
  align-self: start;
}
.discovery-filters h3 {
  font-size: 15px;
  margin: 5px 0 15px;
}
.discovery-filters .chips {
  margin-bottom: 28px;
}
.discovery-filters .pill {
  font-size: 12px;
}
.discovery-result {
  min-height: 420px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #101823;
  overflow: hidden;
  position: relative;
}
.discovery-result .result-image {
  position: absolute;
  inset: 0;
  opacity: 0.65;
  width: 100%;
  height: 100%;
}
.discovery-copy {
  position: relative;
  background: linear-gradient(0deg, #0a0e13, transparent);
  height: 100%;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: start;
  padding: 35px;
}
.discovery-copy h2 {
  font-size: 36px;
  max-width: 550px;
  margin: 14px 0;
}
.discovery-copy p {
  font-size: 14px;
  max-width: 600px;
}
.discovery-ready {
  display: grid;
  place-content: center;
  padding: 40px;
  text-align: center;
  min-height: 420px;
}
.discovery-ready .big-shuffle {
  font-size: 70px;
  color: #536ee3;
}
.info-panel {
  padding: 25px;
  background: #ffffff03;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.history-item {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.history-item img {
  width: 64px;
  height: 96px;
  flex: 0 0 64px;
  border-radius: 10px;
}
.history-item h3 {
  font-size: 17px;
  margin: 0;
}
.history-item small {
  font-size: 12px;
  color: var(--muted);
}
.person-hero {
  display: flex;
  gap: 40px;
  align-items: center;
  max-width: 1000px;
}
.person-hero img {
  width: 220px;
  border-radius: 16px;
}
.person-hero h1 {
  margin-bottom: 15px;
}
.legal-copy {
  max-width: 860px;
}
.legal-copy h2 {
  font-size: 23px;
  margin-top: 32px;
}
.legal-copy p {
  color: #9ba9ba;
}
.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.guide-grid a {
  padding: 22px;
  background: #ffffff03;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.guide-grid a:hover {
  background: #ffffff09;
}
.guide-grid strong {
  display: block;
  color: white;
  margin-bottom: 6px;
}
.guide-grid small {
  color: #8c9aab;
}
.not-found {
  text-align: center;
  padding-block: 60px;
}
.not-found strong {
  display: block;
  font-size: 130px;
  letter-spacing: -8px;
  color: #40577d;
}
.not-found h1 {
  font-size: 32px;
}
@media (min-width: 1750px) {
  .carousel:not(.cast-carousel) {
    grid-auto-columns: calc((100% - 7 * 16px) / 8);
  }
  .catalog-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
  .hero {
    height: 760px;
  }
  .hero.single-hero {
    height: 720px;
  }
}
@media (max-width: 1150px) {
  .single-about {
    grid-template-columns: 300px 1fr;
    gap: 35px;
  }
  .carousel:not(.cast-carousel) {
    grid-auto-columns: calc((100% - 4 * 14px) / 5);
    gap: 14px;
  }
  .cast-carousel {
    grid-auto-columns: calc((100% - 5 * 20px) / 6);
  }
  .catalog-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .discovery-layout {
    grid-template-columns: 280px 1fr;
    gap: 25px;
  }
  .promo {
    padding: 32px;
  }
  .hero-title {
    font-size: clamp(40px, 4.4vw, 64px);
  }
}
@media (max-width: 900px) {
  .single-about {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .single-about .synopsis-full {
    grid-row: 1;
  }
  .details-list {
    max-width: 600px;
  }
  .hero-content {
    width: 760px;
    padding-bottom: 70px;
  }
  .hero.single-hero {
    min-height: 600px;
  }
  .carousel:not(.cast-carousel) {
    grid-auto-columns: calc((100% - 3 * 14px) / 4);
  }
  .catalog-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .tabs-bar {
    gap: 28px;
  }
  .tabs-bar a {
    font-size: 12px;
  }
  .promo {
    grid-template-columns: 1.2fr 1fr;
  }
  .promo h2 {
    font-size: 27px;
  }
  .discovery-layout {
    grid-template-columns: 1fr;
  }
  .guide-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cast-carousel {
    grid-auto-columns: calc((100% - 4 * 20px) / 5);
  }
}
@media (max-width: 640px) {
  .hero,
  .hero.single-hero {
    height: 520px;
    min-height: 520px;
  }
  .hero-content {
    padding-top: 190px;
    padding-bottom: 55px;
    gap: 12px;
  }
  .single-hero .hero-content {
    padding-bottom: 26px;
  }
  .hero-title {
    font-size: 29px;
  }
  .hero-art {
    object-position: 62% center;
  }
  .hero::before {
    background: linear-gradient(0deg, var(--bg) 0%, #0a0e1340 80%);
  }
  .hero-synopsis {
    display: none;
  }
  .hero .meta {
    font-size: 13px;
  }
  .hero-badge {
    font-size: 10px;
  }
  .hero-buttons {
    gap: 10px;
    margin-top: 10px;
  }
  .hero-dots {
    bottom: 22px;
  }
  .section-heading {
    margin-bottom: 16px;
    gap: 10px;
  }
  .section-heading h2 {
    font-size: 21px;
  }
  .section-actions .icon-button {
    display: none;
  }
  .more-link {
    font-size: 11px;
    margin: 0;
  }
  .carousel:not(.cast-carousel) {
    grid-auto-columns: 44%;
    gap: 12px;
  }
  .card-info {
    inset: auto 12px 11px;
  }
  .card-info h3 {
    font-size: 15px;
  }
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .catalog-grid .card-info h3 {
    font-size: 13px;
  }
  .catalog-grid .card-info .meta {
    font-size: 10px;
  }
  .tabs-bar {
    justify-content: flex-start;
    gap: 24px;
    padding-inline: 16px;
    top: var(--header-height);
  }
  .tabs-bar a {
    padding-block: 18px;
    font-size: 11px;
  }
  .single-about {
    margin-block: 30px;
  }
  .synopsis-full p {
    font-size: 15px;
  }
  .rating-box {
    gap: 20px;
  }
  .rating-stars button {
    font-size: 23px;
  }
  .cast-carousel {
    grid-auto-columns: 26%;
    overflow: auto;
  }
  .cast-card strong {
    font-size: 12px;
  }
  .cast-card small {
    font-size: 10px;
  }
  .promo {
    grid-template-columns: 1fr;
    padding: 28px 22px;
    min-height: 350px;
    isolation: isolate;
  }
  .promo-art {
    position: absolute;
    inset: 0 0 0 40%;
    z-index: -1;
    opacity: 0.2;
  }
  .promo h2 {
    font-size: 28px;
  }
  .promo ul {
    font-size: 12px;
  }
  .catalog-cta h2 {
    font-size: 30px;
  }
  .filters {
    gap: 10px;
  }
  .filter-field {
    min-width: calc(50% - 5px);
    flex: 1;
  }
  .filter-field.grow {
    min-width: 100%;
  }
  .view-switch {
    display: none;
  }
  .category-cloud {
    max-height: 85px;
    gap: 7px;
  }
  .category-cloud a {
    font-size: 11px;
    padding: 5px 10px;
  }
  .seasons-grid {
    grid-template-columns: 1fr;
  }
  .episode-row {
    grid-template-columns: 95px 1fr auto;
    gap: 12px;
    padding: 10px;
  }
  .episode-row p {
    display: none;
  }
  .episode-row h3 {
    font-size: 14px;
  }
  .episode-row > .icon-button {
    width: 32px;
    height: 32px;
  }
  .discovery-copy {
    padding: 25px;
  }
  .discovery-copy h2 {
    font-size: 29px;
  }
  .discovery-filters {
    padding: 20px;
  }
  .person-hero {
    gap: 22px;
    align-items: start;
  }
  .person-hero img {
    width: 110px;
  }
  .person-hero h1 {
    font-size: 26px;
  }
  .person-hero p {
    font-size: 12px;
  }
  .guide-grid {
    grid-template-columns: 1fr;
  }
  .comment {
    gap: 12px;
  }
  .avatar {
    width: 36px;
    height: 36px;
    font-size: 11px;
  }
  .comment-head h2 {
    font-size: 21px;
  }
  .comment-replies {
    margin-left: 6px;
    padding-left: 10px;
  }
  .comment p {
    font-size: 13px;
  }
  .season-toolbar {
    flex-wrap: wrap;
  }
  .history-item img {
    width: 64px;
  }
}
.hero.home-hero {
  height: clamp(560px, 48vw, 760px);
}
@media (max-width: 640px) {
  .hero.home-hero {
    height: 520px;
  }
}
/* Expanded card lives outside scroll rails, so image and details remain visible. */
.card-preview {
  position: fixed;
  z-index: 60;
  border-radius: 16px;
  background: #161e28;
  box-shadow: 0 18px 55px #0009;
  max-height: calc(100svh - 104px);
  overflow-x: hidden;
  overflow-y: auto;
  animation: card-reveal 0.16s ease-out;
}
.card-preview-art {
  display: block;
  position: relative;
  aspect-ratio: var(--poster-ratio);
  background: #101823;
}
.card-preview-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 35%, #0a0e13c9);
}
.card-preview-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-preview-art h3 {
  position: absolute;
  z-index: 1;
  left: 16px;
  right: 16px;
  bottom: 15px;
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}
.card-preview-body {
  padding: 16px;
}
.card-preview-body .button {
  min-height: 44px;
  padding: 10px 17px;
  font-size: 14px;
}
.card-preview-body .meta {
  margin-top: 12px;
  font-size: 13px;
  gap: 6px;
}
.card-preview-body p {
  color: #aab6c5;
  font-size: 13px;
  line-height: 1.6;
  margin: 12px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@keyframes card-reveal {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
/* Fixed-size cast tiles prevent general media-rail breakpoints enlarging faces. */
.carousel.cast-carousel {
  grid-auto-columns: 132px;
  gap: 20px;
}
.cast-card {
  min-width: 0;
  text-align: center;
}
.cast-card img {
  width: 112px;
  height: 112px;
  margin-inline: auto;
  aspect-ratio: 1;
}
.cast-card strong,
.cast-card small {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
/* Single-title rating panel, with stable SVG stars and a cumulative vote state. */
.rating-box {
  width: 100%;
  max-width: 880px;
  margin-top: 22px;
  padding: 19px 23px;
  gap: 24px;
  background: #111820;
  border: 1px solid #ffffff14;
  border-radius: 18px;
  flex-wrap: nowrap;
}
.rating-summary {
  flex: 0 0 159px;
  border-right: 1px solid #ffffff14;
  padding-right: 24px;
}
.rating-number {
  font-size: 42px;
  line-height: 1.05;
}
.rating-summary small {
  display: block;
  margin-top: 4px;
  white-space: nowrap;
  font-size: 11px;
}
.rating-control {
  min-width: 0;
}
.rating-label {
  display: block;
  color: #e5eaf2;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}
.rating-stars {
  display: flex;
  flex-wrap: nowrap;
  gap: 2px;
  margin-top: 9px;
}
.rating-stars button {
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  padding: 4px;
  color: #39414d;
  line-height: 1;
}
.rating-stars button svg {
  display: block;
  width: 24px;
  height: 24px;
  fill: currentColor;
  stroke: none;
}
.rating-stars button.active {
  color: #b99b44;
}
@media (max-width: 1150px) {
  .rating-box {
    flex-wrap: wrap;
  }
  .rating-summary {
    flex-basis: 145px;
  }
}
@media (max-width: 640px) {
  .carousel.cast-carousel {
    grid-auto-columns: 104px;
    gap: 14px;
  }
  .cast-card img {
    width: 88px;
    height: 88px;
  }
  .rating-box {
    padding: 16px;
    gap: 14px;
    flex-direction: column;
    align-items: stretch;
  }
  .rating-summary {
    flex-basis: auto;
    border-right: 0;
    border-bottom: 1px solid #ffffff14;
    padding: 0 0 13px;
  }
  .rating-control {
    width: 100%;
  }
  .rating-stars {
    gap: 2px;
    justify-content: space-between;
  }
  .rating-stars button {
    flex: 0 1 27px;
    width: 27px;
    height: 30px;
    padding: 3px;
  }
  .rating-stars button svg {
    width: 21px;
    height: 21px;
  }
}
