:root {
  color-scheme: dark;
  --bg: #090d18;
  --bg-soft: #0f1423;
  --surface: #151b2c;
  --surface-2: #1b2236;
  --line: rgba(255, 255, 255, .1);
  --text: #f7f8fc;
  --muted: #aeb7cd;
  --faint: #727d96;
  --accent: #8b7cff;
  --accent-soft: #c8c1ff;
  --mint: #5de1c4;
  --ep: #d7a9f5;
  --shadow: 0 28px 70px rgba(0, 0, 0, .36);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 4%, rgba(116, 85, 255, .16), transparent 28rem),
    radial-gradient(circle at 88% 34%, rgba(53, 211, 178, .08), transparent 26rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  opacity: .28;
  background-image: linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; }
.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255,255,255,.075);
  background: rgba(9, 13, 24, .82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 34px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--text); font-size: 18px; font-weight: 800; letter-spacing: -.025em; text-decoration: none; }
.brand img { border-radius: 12px; box-shadow: 0 9px 26px rgba(112, 91, 242, .34); }
.menu-toggle { width: 44px; height: 44px; padding: 11px; display: none; place-content: center; gap: 5px; color: var(--text); border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.045); cursor: pointer; }
.menu-toggle span { width: 20px; height: 2px; display: block; border-radius: 2px; background: currentColor; transition: transform .18s ease, opacity .18s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.main-nav { display: flex; align-items: center; gap: 25px; }
.main-nav-heading { display: none; }
.main-nav a, .footer-links a { color: var(--muted); font-size: 14px; text-decoration: none; transition: color .18s ease; }
.main-nav a:hover, .footer-links a:hover { color: var(--text); }
.menu-backdrop { position: fixed; inset: 64px 0 0; z-index: 19; background: rgba(4, 6, 12, .68); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.menu-backdrop[hidden] { display: none; }

.home-hero { position: relative; z-index: 1; padding: 68px 0 52px; overflow: visible; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.14fr) minmax(320px, .62fr); align-items: center; gap: clamp(48px, 7vw, 100px); }
.eyebrow, .section-kicker { color: var(--accent-soft); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; }
.eyebrow::before { width: 8px; height: 8px; border-radius: 50%; content: ""; background: var(--mint); box-shadow: 0 0 16px var(--mint); }
.hero-copy h1 { max-width: 780px; margin: 22px 0 0; font-size: clamp(49px, 6.4vw, 82px); line-height: .99; letter-spacing: -.06em; }
.hero-copy h1 span { color: transparent; background: linear-gradient(110deg, #c8c1ff, #8b7cff 52%, #5de1c4); background-clip: text; -webkit-background-clip: text; }
.hero-copy > p { max-width: 680px; margin: 25px 0 0; color: var(--muted); font-size: clamp(18px, 2vw, 21px); line-height: 1.55; }

.hero-search { max-width: 650px; margin-top: 31px; padding: 6px; display: flex; border: 1px solid var(--line); border-radius: 17px; background: rgba(255,255,255,.06); box-shadow: 0 18px 40px rgba(0,0,0,.22); }
.hero-search input { min-width: 0; flex: 1; padding: 0 16px; color: var(--text); border: 0; outline: 0; background: transparent; }
.hero-search input::placeholder { color: #778199; }
.hero-search button { min-height: 48px; padding: 0 22px; color: #10131f; border: 0; border-radius: 12px; font-weight: 800; background: var(--text); cursor: pointer; }
.hero-actions { margin-top: 17px; display: flex; flex-wrap: wrap; gap: 10px; }
.button { min-height: 48px; padding: 0 19px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 13px; font-size: 14px; font-weight: 800; text-decoration: none; cursor: pointer; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { color: #111522; background: var(--text); }
.button.primary:hover { background: #e3e4ee; }
.button.secondary { color: var(--text); border-color: var(--line); background: rgba(255,255,255,.045); }
.button.secondary:hover { border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.08); }

.catalog-stats { margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 26px; }
.catalog-stats div { display: grid; gap: 2px; }
.catalog-stats dt { font-size: 21px; font-weight: 850; letter-spacing: -.025em; }
.catalog-stats dd { margin: 0; color: var(--faint); font-size: 12px; }

.featured-card { position: relative; width: min(100%, 390px); aspect-ratio: .69; justify-self: end; overflow: hidden; border: 1px solid var(--line); border-radius: 29px; text-decoration: none; background: var(--surface); box-shadow: var(--shadow); transform: rotate(2deg); transition: transform .24s ease; }
.featured-card:hover { transform: rotate(0) translateY(-4px); }
.featured-card > img { width: 100%; height: 100%; object-fit: cover; }
.featured-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(5,7,13,.96), rgba(5,7,13,0) 62%); }
.featured-content { position: absolute; inset: auto 27px 27px; display: grid; gap: 7px; }
.featured-kicker { color: var(--mint); font-size: 11px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.featured-content strong { font-size: 29px; line-height: 1.05; letter-spacing: -.035em; }
.featured-content > span:last-child { color: #c2c8d8; font-size: 13px; }

.section { padding-top: 62px; padding-bottom: 24px; }
.section-heading { margin-bottom: 24px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.section-heading h2 { margin: 6px 0 0; font-size: clamp(29px, 4vw, 42px); letter-spacing: -.045em; }
.section-heading > a { color: var(--muted); font-size: 14px; text-decoration: none; }
.section-heading > a:hover { color: var(--text); }

.show-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 25px 16px; }
.show-card { min-width: 0; }
.poster-link { position: relative; display: block; aspect-ratio: 2 / 3; overflow: hidden; border: 1px solid rgba(255,255,255,.08); border-radius: 16px; background: var(--surface); box-shadow: 0 14px 35px rgba(0,0,0,.25); }
.poster { width: 100%; height: 100%; object-fit: cover; transition: transform .28s ease, filter .28s ease; }
.show-card:hover .poster { transform: scale(1.035); filter: brightness(1.08); }
.card-year { position: absolute; top: 10px; right: 10px; padding: 5px 8px; border: 1px solid rgba(255,255,255,.12); border-radius: 8px; color: #e9eaf2; font-size: 11px; font-weight: 800; background: rgba(8,11,20,.78); backdrop-filter: blur(8px); }
.card-body { padding: 12px 3px 0; }
.card-body h3 { margin: 0; font-size: 15px; line-height: 1.25; letter-spacing: -.015em; }
.card-body h3 a { text-decoration: none; }
.card-meta { margin-top: 8px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; color: var(--faint); font-size: 11px; }
.rating { padding: 4px 7px; border-radius: 7px; color: #17121d; font-size: 11px; font-weight: 850; line-height: 1; }
.rating-ep { background: var(--ep); }

.upcoming-section { padding-bottom: 80px; }
.premiere-list { border: 1px solid var(--line); border-radius: 21px; overflow: hidden; background: rgba(19,25,43,.64); }
.premiere-row { min-height: 68px; padding: 14px 20px; display: grid; grid-template-columns: 44px minmax(0,1fr) 175px 20px; align-items: center; gap: 18px; border-top: 1px solid var(--line); text-decoration: none; transition: background .18s ease; }
.premiere-row:first-child { border-top: 0; }
.premiere-row:hover { background: rgba(255,255,255,.045); }
.premiere-date { color: var(--accent-soft); font-size: 13px; text-align: right; }
.premiere-poster { width: 44px; height: 66px; display: block; object-fit: cover; border-radius: 6px; background: var(--line); }
.premiere-row i { color: var(--faint); font-style: normal; }

.page-hero { padding-top: 65px; }
.page-hero.compact { padding-bottom: 32px; }
.page-hero h1 { margin: 17px 0 0; font-size: clamp(43px, 6vw, 68px); line-height: 1; letter-spacing: -.055em; }
.page-hero p { margin: 17px 0 0; color: var(--muted); font-size: 18px; }
.catalog-layout { padding-bottom: 80px; }
.filters { padding: 15px; display: grid; gap: 12px; border: 1px solid var(--line); border-radius: 19px; background: rgba(20,27,47,.72); }
.filter-main { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px; }
.filter-refinements { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(120px, .58fr) minmax(150px, .72fr) minmax(210px, .9fr) auto; align-items: end; gap: 10px; }
.filters label { display: grid; gap: 7px; }
.filters label > span { padding-left: 3px; color: var(--faint); font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .07em; }
.filters input, .filters select { width: 100%; height: 47px; padding: 0 13px; color: var(--text); border: 1px solid var(--line); border-radius: 12px; outline: none; background: #0e1423; }
.filters input:focus, .filters select:focus { border-color: rgba(139,124,255,.75); box-shadow: 0 0 0 3px rgba(139,124,255,.12); }
.filter-button { min-width: 126px; height: 47px; }
.filters .filter-checkbox { height: 47px; padding: 0 14px; display: inline-flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 12px; background: #0e1423; cursor: pointer; }
.filters .filter-checkbox input { width: 18px; height: 18px; margin: 0; padding: 0; accent-color: var(--accent); }
.filters .filter-checkbox > span { padding: 0; color: var(--text); font-size: 13px; font-weight: 650; letter-spacing: 0; text-transform: none; }
.reset-link { min-height: 47px; display: inline-flex; align-items: center; color: var(--muted); font-size: 13px; text-decoration: none; }
.catalog-summary { margin: 28px 0 18px; display: flex; align-items: baseline; gap: 7px; color: var(--faint); font-size: 13px; }
.catalog-summary strong { color: var(--text); font-size: 21px; }
.catalog-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.pagination { margin-top: 48px; display: flex; justify-content: center; gap: 8px; }
.pagination a, .pagination span { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 11px; font-size: 13px; text-decoration: none; background: rgba(255,255,255,.035); }
.pagination span { color: #111522; border-color: var(--text); font-weight: 850; background: var(--text); }

.empty-state { min-height: 150px; padding: 30px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; border: 1px dashed rgba(255,255,255,.16); border-radius: 20px; color: var(--muted); text-align: center; background: rgba(255,255,255,.025); }
.empty-state strong { color: var(--text); font-size: 19px; }
.catalog-empty { min-height: 290px; }

.detail-hero { position: relative; min-height: 630px; overflow: clip; border-bottom: 1px solid var(--line); }
.detail-backdrop { position: absolute; inset: -18%; background-position: center 25%; background-size: cover; filter: blur(28px) saturate(.8); opacity: .34; transform: scale(1.08); }
.detail-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9,13,24,.98) 12%, rgba(9,13,24,.83) 55%, rgba(9,13,24,.7)), linear-gradient(to top, var(--bg), transparent 48%); }
.detail-grid { position: relative; padding-top: 65px; padding-bottom: 66px; display: grid; grid-template-columns: minmax(240px, 330px) minmax(0, 1fr); align-items: start; gap: clamp(42px, 7vw, 90px); }
.detail-poster { position: sticky; top: 96px; width: 100%; aspect-ratio: 2 / 3; align-self: start; object-fit: cover; border: 1px solid rgba(255,255,255,.16); border-radius: 23px; box-shadow: var(--shadow); }
.back-link { display: block; width: max-content; margin-bottom: 26px; color: var(--muted); font-size: 13px; text-decoration: none; }
.status-pill { display: inline-flex; padding: 7px 10px; border: 1px solid rgba(93,225,196,.25); border-radius: 9px; color: #8aecd8; font-size: 11px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; background: rgba(93,225,196,.08); }
.detail-copy h1 { margin: 17px 0 0; font-size: clamp(48px, 6.5vw, 78px); line-height: .98; letter-spacing: -.06em; }
.original-title { margin: 10px 0 0; color: var(--faint); font-size: 15px; }
.detail-meta { margin-top: 19px; display: grid; gap: 8px; color: #c8cede; font-size: 14px; }
.detail-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fact-separator { color: var(--faint); }
.detail-genres { width: 100%; color: var(--muted); }
.detail-ratings { margin-top: 22px; display: flex; gap: 8px; }
.detail-ratings .rating { padding: 8px 11px; font-size: 13px; }
.detail-hero-actions { margin-top: 13px; display: flex; align-items: center; gap: 10px; }
.detail-hero-actions small { color: var(--faint); font-size: 12px; }
.detail-trailer-button { min-height: 30px; padding: 0; display: inline-flex; align-items: center; gap: 8px; color: var(--accent-soft); border: 0; border-radius: 0; font-size: 17px; font-weight: 750; background: transparent; cursor: pointer; transition: color .18s ease, opacity .18s ease; }
.detail-trailer-button:hover { color: var(--text); }
.detail-trailer-button:focus-visible { outline: 2px solid rgba(139,124,255,.58); outline-offset: 4px; }
.play-icon { width: 21px; height: 21px; display: grid; place-items: center; padding-left: 1px; color: var(--accent-soft); border: 1px solid rgba(200,193,255,.38); border-radius: 50%; font-size: 7px; background: rgba(139,124,255,.08); }
.detail-description { max-width: 770px; margin: 23px 0 0; color: #c1c7d7; font-size: 17px; line-height: 1.68; }
.detail-follow { max-width: 770px; margin-top: 20px; padding: 14px 15px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 13px; border: 1px solid rgba(139,124,255,.22); border-radius: 15px; background: rgba(139,124,255,.07); }
.detail-follow-icon { width: 38px; height: 38px; display: grid; place-items: center; color: var(--accent-soft); border-radius: 11px; background: rgba(139,124,255,.14); }
.detail-follow-copy { min-width: 0; display: grid; gap: 3px; }
.detail-follow-copy strong { font-size: 14px; line-height: 1.3; }
.detail-follow-copy small { color: var(--muted); font-size: 12px; line-height: 1.45; }
.detail-follow-action { min-height: 40px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; color: #111522; border-radius: 10px; font-size: 12px; font-weight: 850; text-decoration: none; white-space: nowrap; background: var(--text); transition: transform .18s ease, background .18s ease; }
.detail-follow-action:hover { background: #e3e4ee; transform: translateY(-1px); }
.detail-follow-action:focus-visible { outline: 3px solid rgba(139,124,255,.55); outline-offset: 2px; }
.detail-people { max-width: 770px; margin-top: 31px; display: grid; gap: 13px; text-align: left; }
.people-section-head { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.people-section-head h2 { margin: 0; font-size: 17px; letter-spacing: -.02em; }
.cast-head { margin-top: 10px; }
.people-actions { display: flex; align-items: center; gap: 6px; }
.people-arrow, .people-all, .dialog-close { color: var(--text); border: 1px solid var(--line); background: rgba(255,255,255,.045); cursor: pointer; transition: border-color .18s ease, background .18s ease, opacity .18s ease; }
.people-arrow { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; }
.people-arrow:hover:not(:disabled), .people-all:hover, .dialog-close:hover { border-color: rgba(255,255,255,.24); background: rgba(255,255,255,.09); }
.people-arrow:disabled { opacity: .27; cursor: default; }
.people-all { min-height: 31px; margin-left: 3px; padding: 0 10px; border-radius: 9px; color: var(--accent-soft); font-size: 12px; font-weight: 750; }
.people-strip { display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: none; scroll-snap-type: x proximity; }
.people-strip::-webkit-scrollbar { display: none; }
.creators-strip { padding-bottom: 5px; }
.cast-strip { padding: 2px 2px 10px; }
.person-card { width: 86px; min-width: 86px; padding: 0; display: grid; justify-items: center; align-content: start; gap: 7px; color: var(--text); border: 0; text-align: center; background: transparent; scroll-snap-align: start; cursor: pointer; }
.person-card:disabled { opacity: 1; cursor: default; }
.person-avatar { position: relative; width: 72px; height: 72px; display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; background: linear-gradient(145deg, #262d44, #161b2b); box-shadow: 0 10px 24px rgba(0,0,0,.22); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.person-avatar-fallback { color: var(--accent-soft); font-size: 23px; font-weight: 800; }
.person-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.person-avatar img.is-broken { display: none; }
.person-card:not(:disabled):hover .person-avatar { border-color: rgba(200,193,255,.56); box-shadow: 0 12px 30px rgba(0,0,0,.3); transform: translateY(-2px); }
.person-card:focus-visible { outline: 0; }
.person-card:focus-visible .person-avatar { outline: 3px solid rgba(139,124,255,.6); outline-offset: 3px; }
.person-card strong { width: 100%; font-size: 12px; line-height: 1.25; font-weight: 700; overflow-wrap: anywhere; }
.person-card small { margin-top: -3px; color: var(--faint); font-size: 10px; line-height: 1.2; }
body.dialog-open { overflow: hidden; }
.people-dialog, .person-photo-dialog { padding: 0; color: var(--text); border: 1px solid rgba(255,255,255,.15); background: #111727; box-shadow: 0 35px 100px rgba(0,0,0,.62); }
.people-dialog::backdrop, .person-photo-dialog::backdrop { background: rgba(3,5,10,.78); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.people-dialog { width: min(900px, calc(100% - 32px)); max-height: min(82vh, 780px); border-radius: 23px; }
.people-dialog-panel { padding: 25px; }
.people-dialog header { margin-bottom: 23px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.people-dialog header span { color: var(--faint); font-size: 12px; }
.people-dialog h2 { margin: 4px 0 0; font-size: 27px; letter-spacing: -.035em; }
.dialog-close { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; border-radius: 11px; font-size: 25px; line-height: 1; }
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); align-items: start; gap: 24px 13px; }
.people-grid .person-card { width: 100%; min-width: 0; }
.person-photo-dialog { width: min(440px, calc(100% - 32px)); overflow: visible; border-radius: 23px; }
.person-photo-dialog .dialog-close { position: absolute; z-index: 2; top: 12px; right: 12px; color: white; background: rgba(5,7,13,.72); }
.person-photo-dialog img { width: 100%; max-height: min(68vh, 620px); object-fit: cover; border-radius: 22px 22px 0 0; background: var(--surface); }
.person-photo-dialog > strong { padding: 17px 20px 19px; display: block; font-size: 17px; }
.detail-media { margin-bottom: 53px; }
.media-heading { align-items: end; }
.media-heading > span { color: var(--faint); font-size: 12px; }
.media-strip { margin-inline: -5px; padding: 5px 5px 17px; display: flex; align-items: stretch; gap: 14px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x proximity; scrollbar-color: rgba(255,255,255,.17) transparent; scrollbar-width: thin; }
.media-card { position: relative; flex: 0 0 auto; padding: 0; overflow: hidden; color: var(--text); border: 1px solid rgba(255,255,255,.12); border-radius: 17px; text-align: left; background: var(--surface); box-shadow: 0 14px 34px rgba(0,0,0,.22); scroll-snap-align: start; cursor: pointer; transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.media-card:hover { border-color: rgba(200,193,255,.48); box-shadow: 0 18px 42px rgba(0,0,0,.3); transform: translateY(-2px); }
.media-card:focus-visible { outline: 3px solid rgba(139,124,255,.58); outline-offset: 3px; }
.media-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .28s ease, filter .28s ease; }
.media-card:hover img { filter: brightness(1.08); transform: scale(1.025); }
.media-trailer-card, .media-still-card { width: min(320px, 78vw); aspect-ratio: 16 / 9; }
.media-trailer-preview { width: 100%; height: 100%; display: block; border: 0; pointer-events: none; }
.media-trailer-open { position: absolute; inset: 0; z-index: 3; width: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; }
.media-trailer-open:focus-visible { outline: 3px solid rgba(139,124,255,.58); outline-offset: -4px; }
.media-poster-card { width: 123px; aspect-ratio: 2 / 3; }
.media-poster-card img { object-fit: contain; background: #0e1321; }
.media-card-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(5,7,13,.94), rgba(5,7,13,.08) 72%); }
.media-card-copy { position: absolute; right: 15px; bottom: 14px; left: 15px; display: grid; gap: 3px; }
.media-card-copy small { color: var(--mint); font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.media-card-copy strong { overflow: hidden; font-size: 15px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.media-type-badge { position: absolute; left: 10px; bottom: 10px; padding: 5px 8px; border: 1px solid rgba(255,255,255,.13); border-radius: 8px; color: #eef0f8; font-size: 10px; font-weight: 800; background: rgba(7,10,18,.78); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.media-video-dialog, .media-image-dialog { padding: 0; color: var(--text); border: 1px solid rgba(255,255,255,.16); background: #090d18; box-shadow: 0 35px 100px rgba(0,0,0,.68); }
.media-video-dialog::backdrop, .media-image-dialog::backdrop { background: rgba(3,5,10,.86); backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px); }
.media-video-dialog { width: min(980px, calc(100% - 30px)); border-radius: 21px; }
.media-dialog-head { min-height: 72px; padding: 13px 15px 13px 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.media-dialog-head span { color: var(--faint); font-size: 11px; }
.media-dialog-head h2 { margin: 3px 0 0; font-size: 19px; letter-spacing: -.02em; }
.media-video-frame { aspect-ratio: 16 / 9; overflow: hidden; border-top: 1px solid var(--line); border-radius: 0 0 20px 20px; background: black; }
.media-video-frame iframe { width: 100%; height: 100%; display: block; border: 0; background: black; }
.media-image-dialog { width: min(1180px, calc(100% - 30px)); max-height: calc(100vh - 30px); overflow: hidden; border-radius: 21px; }
.media-image-dialog[open] { display: grid; grid-template-columns: 58px minmax(0,1fr) 58px; align-items: center; }
.media-image-dialog > .dialog-close { position: absolute; z-index: 3; top: 13px; right: 13px; color: white; background: rgba(5,7,13,.76); }
.media-image-dialog figure { min-width: 0; margin: 0; display: grid; justify-items: center; }
.media-image-dialog figure img { width: 100%; height: min(78vh, 790px); object-fit: contain; background: #05070c; }
.media-image-dialog figcaption { width: 100%; min-height: 54px; padding: 12px 6px 13px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #d9ddea; font-size: 13px; }
.media-image-dialog figcaption small { color: var(--faint); white-space: nowrap; }
.media-dialog-arrow { width: 42px; height: 42px; margin-inline: auto; display: grid; place-items: center; color: var(--text); border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.055); cursor: pointer; }
.media-dialog-arrow:hover:not(:disabled) { border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.1); }
.media-dialog-arrow:disabled { opacity: .24; cursor: default; }
.detail-watch { margin-top: 27px; }
.detail-watch h2 { margin: 0 0 12px; font-size: 17px; }
.watch-links { display: flex; flex-wrap: wrap; gap: 14px 22px; }
.watch-card { min-height: 40px; padding: 0; display: inline-flex; align-items: center; gap: 9px; color: var(--text); font-size: 13px; font-weight: 650; text-decoration: none; background: transparent; transition: opacity .18s ease; }
.watch-card:hover { opacity: .76; }
.watch-card img, .watch-icon { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 9px; }
.watch-card img { object-fit: contain; filter: grayscale(1); opacity: .78; transition: opacity .18s ease; }
.watch-card:hover img { opacity: 1; }
.watch-icon { display: grid; place-items: center; color: #111522; font-size: 15px; font-weight: 850; background: var(--text); }
.detail-content { padding-top: 55px; padding-bottom: 90px; }
.detail-heading { margin-bottom: 19px; }
.season-list { display: grid; gap: 10px; }
.season { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: rgba(20,27,47,.62); }
.season summary { min-height: 68px; padding: 15px 18px; display: flex; align-items: center; justify-content: space-between; gap: 18px; cursor: pointer; list-style: none; }
.season summary::-webkit-details-marker { display: none; }
.season summary > span:first-child { display: grid; gap: 3px; }
.season summary small, .season summary > span:last-child { color: var(--faint); font-size: 12px; font-weight: 500; }
.episode-list { margin: 0; padding: 0 18px 11px; list-style: none; border-top: 1px solid var(--line); }
.episode-list li { min-height: 59px; display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 10px; border-top: 1px solid rgba(255,255,255,.065); }
.episode-list li:first-child { border-top: 0; }
.episode-number { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; color: var(--accent-soft); font-size: 11px; font-weight: 800; background: rgba(139,124,255,.12); }
.episode-list li > span:last-child { display: grid; gap: 3px; }
.episode-list strong { font-size: 13px; }
.episode-list small { color: var(--faint); font-size: 11px; }
.season-empty { padding: 0 18px 17px; color: var(--faint); font-size: 13px; }

.calendar-page { padding-bottom: 90px; }
.calendar-groups { display: grid; gap: 24px; }
.calendar-day { display: grid; grid-template-columns: 92px minmax(0,1fr); align-items: start; gap: 22px; }
.calendar-day > time { position: sticky; top: 94px; padding: 12px; display: grid; gap: 1px; border: 1px solid var(--line); border-radius: 14px; text-align: center; background: var(--surface); }
.calendar-day > time strong { font-size: 29px; line-height: 1; }
.calendar-day > time span { display: grid; gap: 2px; color: var(--faint); font-size: 11px; }
.calendar-day > time small { color: #68748d; font-size: 10px; }
.calendar-releases { border: 1px solid var(--line); border-radius: 17px; overflow: hidden; background: rgba(20,27,47,.6); }
.calendar-release { border-top: 1px solid var(--line); }
.calendar-release:first-child { border-top: 0; }
.calendar-release-row { width: 100%; min-height: 78px; padding: 9px 16px 9px 10px; display: grid; grid-template-columns: 42px minmax(0,1fr) 20px; align-items: center; gap: 14px; color: inherit; border: 0; text-align: left; text-decoration: none; background: transparent; }
button.calendar-release-row { cursor: pointer; }
.calendar-release-row:hover { background: rgba(255,255,255,.035); }
.calendar-release-row img { width: 42px; height: 58px; object-fit: cover; border-radius: 7px; }
.calendar-release-row > span { display: grid; gap: 4px; }
.calendar-release-row strong { font-size: 14px; }
.calendar-release-row small { color: var(--faint); font-size: 12px; }
.calendar-release-row i { color: var(--faint); font-style: normal; transition: transform .18s ease; }
.calendar-release.is-expanded > .calendar-release-row i { transform: rotate(180deg); }
.calendar-episode-list { padding: 0 16px 8px 66px; border-top: 1px solid var(--line); }
.calendar-episode-list a { min-height: 48px; display: grid; grid-template-columns: 28px minmax(0,1fr) 20px; align-items: center; gap: 10px; color: inherit; border-top: 1px solid rgba(255,255,255,.065); text-decoration: none; }
.calendar-episode-list a:first-child { border-top: 0; }
.calendar-episode-list a:hover { color: var(--accent-soft); }
.calendar-episode-list b { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 7px; color: var(--accent-soft); font-size: 11px; background: rgba(139,124,255,.12); }
.calendar-episode-list span { font-size: 12px; }
.calendar-episode-list i { color: var(--faint); font-style: normal; }
.calendar-empty { min-height: 360px; }

.site-footer { border-top: 1px solid var(--line); background: rgba(7,10,18,.58); }
.footer-inner { min-height: 190px; padding-top: 38px; padding-bottom: 38px; display: grid; grid-template-columns: 1.35fr 1fr .8fr .8fr; align-items: start; gap: 36px; }
.footer-brand { font-size: 16px; }
.footer-inner p { max-width: 280px; margin: 15px 0 0; color: var(--faint); font-size: 13px; line-height: 1.55; }
.footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.footer-bottom { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-socials { margin-top: 20px; display: flex; align-items: center; gap: 8px; }
.footer-socials a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--faint); border-radius: 50%; color: var(--faint); text-decoration: none; transition: color .18s ease, border-color .18s ease, background .18s ease; }
.footer-socials a:hover { color: var(--text); border-color: var(--text); background: rgba(255,255,255,.06); }
.footer-socials a:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 4px; }
.footer-socials svg { display: block; width: 19px; height: 19px; }
.copyright { align-self: end; color: #5f6980; font-size: 12px; }

.cookie-notice { position: fixed; right: 24px; bottom: 24px; z-index: 40; width: min(calc(100vw - 32px), 390px); padding: 15px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; border: 1px solid rgba(255,255,255,.14); border-radius: 16px; background: rgba(17,23,39,.96); box-shadow: 0 20px 60px rgba(0,0,0,.48); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.cookie-notice[hidden] { display: none; }
.cookie-notice p { margin: 0; color: #c7cddd; font-size: 12px; line-height: 1.5; }
.cookie-notice button { min-height: 38px; padding: 0 14px; color: #111522; border: 0; border-radius: 10px; font-size: 12px; font-weight: 850; background: var(--text); cursor: pointer; }
.cookie-notice button:hover { background: #e3e4ee; }
.cookie-notice button:focus-visible { outline: 3px solid rgba(139,124,255,.55); outline-offset: 2px; }

@media (max-width: 1040px) {
  .show-grid, .catalog-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .filter-refinements { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 800px) {
  .shell { width: min(100% - 30px, 680px); }
  .header-inner { min-height: 64px; position: relative; }
  .menu-toggle { display: grid; }
  .main-nav { width: min(calc(100vw - 30px), 420px); padding: 10px; position: absolute; top: calc(100% + 10px); right: 0; align-items: stretch; flex-direction: column; gap: 3px; visibility: hidden; opacity: 0; border: 1px solid rgba(255,255,255,.13); border-radius: 20px; background: #111727; box-shadow: 0 28px 70px rgba(0,0,0,.54); transform: translateY(-8px) scale(.985); transform-origin: top right; pointer-events: none; transition: opacity .18s ease, transform .18s ease, visibility .18s ease; }
  .main-nav.is-open { visibility: visible; opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
  .main-nav-heading { min-height: 72px; padding: 12px 14px 15px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); }
  .main-nav-heading span { font-size: 22px; font-weight: 850; letter-spacing: -.03em; }
  .main-nav-heading small { color: var(--faint); font-size: 11px; }
  .main-nav a { min-height: 57px; padding: 0 14px; display: flex; align-items: center; border-radius: 12px; color: var(--text); font-size: 17px; font-weight: 700; }
  .main-nav a + a { border-top: 1px solid rgba(255,255,255,.055); }
  .main-nav a:hover, .main-nav a:focus-visible { outline: 0; background: rgba(255,255,255,.065); }
  body.menu-open { overflow: hidden; }
  .home-hero { padding-top: 48px; }
  .hero-grid { grid-template-columns: 1fr; }
  .featured-card { width: min(76vw, 370px); justify-self: center; transform: none; }
  .show-grid, .catalog-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .detail-grid { grid-template-columns: 190px minmax(0,1fr); gap: 28px; }
  .detail-poster { top: 84px; }
  .detail-copy h1 { font-size: clamp(39px, 8vw, 58px); }
  .detail-description { font-size: 15px; }
  .detail-trailer-button { font-size: 15px; }
  .media-trailer-card, .media-still-card { width: min(300px, 72vw); }
}

@media (max-width: 590px) {
  .hero-copy h1 { font-size: clamp(45px, 13.5vw, 65px); }
  .hero-search { display: grid; gap: 6px; }
  .hero-search input { min-height: 46px; }
  .hero-search button { width: 100%; }
  .catalog-stats { gap: 18px; }
  .featured-card { width: min(84vw, 355px); }
  .section { padding-top: 48px; }
  .section-heading { align-items: flex-start; }
  .section-heading > a { padding-top: 9px; }
  .show-grid, .catalog-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px 12px; }
  .premiere-row { grid-template-columns: 44px minmax(0,1fr) 20px; gap: 5px 12px; }
  .premiere-poster { grid-column: 1; grid-row: 1 / 3; }
  .premiere-date { grid-column: 2; grid-row: 2; text-align: left; }
  .premiere-row strong { grid-column: 2; grid-row: 1; overflow-wrap: anywhere; }
  .premiere-row i { grid-column: 3; grid-row: 1 / 3; }
  .filter-main { grid-template-columns: 1fr; }
  .filter-button { width: 100%; }
  .filter-refinements { grid-template-columns: 1fr 1fr; }
  .filter-checkbox, .reset-link { grid-column: 1 / -1; }
  .reset-link { min-height: 30px; justify-content: center; }
  .detail-hero { min-height: 0; }
  .detail-grid { padding-top: 35px; grid-template-columns: 1fr; }
  .detail-poster { position: static; width: min(56vw, 240px); margin-inline: auto; }
  .detail-copy { text-align: center; }
  .back-link { margin-inline: auto; }
  .detail-facts, .detail-ratings { justify-content: center; }
  .detail-hero-actions { justify-content: center; }
  .detail-genres { text-align: center; }
  .detail-follow { grid-template-columns: auto minmax(0, 1fr); text-align: left; }
  .detail-follow-action { grid-column: 1 / -1; width: 100%; }
  .detail-people { width: calc(100vw - 40px); margin-inline: calc((100% - (100vw - 40px)) / 2); }
  .people-section-head { padding-inline: 2px; }
  .people-strip { margin-inline: -2px; padding-inline: 2px; }
  .people-arrow { display: none; }
  .person-card { width: 80px; min-width: 80px; }
  .person-avatar { width: 68px; height: 68px; }
  .people-dialog { width: calc(100% - 20px); max-height: 88vh; border-radius: 20px; }
  .people-dialog-panel { padding: 20px 14px 24px; }
  .people-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 23px 8px; }
  .detail-media { margin-bottom: 42px; }
  .media-heading { align-items: flex-end; }
  .media-heading h2 { font-size: 32px; }
  .media-trailer-card, .media-still-card { width: min(294px, 82vw); }
  .media-image-dialog[open] { grid-template-columns: 1fr; }
  .media-image-dialog figure { grid-row: 1; grid-column: 1; }
  .media-image-dialog figure img { height: min(78vh, 720px); }
  .media-image-dialog figcaption { padding-inline: 14px; }
  .media-dialog-arrow { position: absolute; z-index: 2; top: 50%; color: white; background: rgba(5,7,13,.72); transform: translateY(-50%); }
  .media-dialog-arrow.previous { left: 10px; }
  .media-dialog-arrow.next { right: 10px; }
  .season summary { align-items: flex-start; flex-direction: column; gap: 7px; }
  .calendar-day { grid-template-columns: 1fr; gap: 10px; }
  .calendar-day > time { position: static; width: max-content; padding: 8px 12px; display: flex; align-items: baseline; gap: 7px; }
  .calendar-day > time span { display: flex; gap: 5px; }
  .calendar-day > time strong { font-size: 21px; }
  .calendar-episode-list { padding-left: 20px; }
  .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
  .footer-inner > div:first-child { grid-column: 1 / -1; }
  .footer-links { justify-content: flex-start; }
  .cookie-notice { right: 15px; bottom: 15px; left: 15px; width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

.search-autocomplete { position: relative; min-width: 0; flex: 1; }
.search-autocomplete input { width: 100%; box-sizing: border-box; }
.hero-search .search-autocomplete { display: flex; }
.search-suggestions { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 30; max-height: 320px; overflow-y: auto; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: #141b2b; box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.search-suggestions [role="option"] { padding: 12px; border-radius: 8px; color: var(--text); font-size: 14px; cursor: pointer; }
.search-suggestions [role="option"]:hover, .search-suggestions [aria-selected="true"] { background: rgba(255,255,255,.1); }

.search-suggestions [role="option"] { display: flex; align-items: center; gap: 12px; }
.search-suggestions img { width: 40px; height: 60px; flex: 0 0 40px; object-fit: cover; border-radius: 5px; background: #090d18; }
.search-suggestions [role="option"] > span { min-width: 0; overflow-wrap: anywhere; }

.agreement-page { max-width: 820px; padding-block: 56px 80px; line-height: 1.75; }
.agreement-page h1 { margin: 20px 0 12px; font-size: clamp(30px, 6vw, 48px); line-height: 1.15; overflow-wrap: anywhere; }
.agreement-page h2 { font-size: clamp(21px, 4vw, 27px); line-height: 1.3; }
.agreement-page p { color: var(--muted); }
.agreement-page .agreement-date { color: var(--faint); font-size: 14px; }
.agreement-contents { display: grid; gap: 7px; margin-block: 30px 40px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.agreement-page a { color: var(--accent-soft); text-underline-offset: 4px; }
.agreement-page section { margin-top: 36px; scroll-margin-top: 95px; }

@media (max-width: 380px) {
  .footer-inner { grid-template-columns: 1fr; }
}

.header-inner { justify-content: flex-start; gap: 28px; }
.header-inner > .brand { flex-shrink: 0; }
.header-search { margin-left: auto; width: 270px; min-width: 0; display: flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-soft); }
.header-search input { width: 100%; min-width: 0; height: 42px; padding: 0 10px 0 14px; border: 0; outline: 0; border-radius: 12px; color: var(--text); background: transparent; }
.header-search:focus-within { border-color: var(--accent-soft); }
.header-search button { width: 40px; height: 42px; flex-shrink: 0; display: grid; place-items: center; padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; }
.header-search button:hover { color: var(--text); }
.header-search button:focus-visible { outline: 2px solid var(--accent-soft); }
.header-search .search-suggestions { left: auto; right: -40px; width: min(360px, calc(100vw - 30px)); max-height: min(400px, 65vh); }
@media (min-width: 801px) and (max-width: 1040px) {
  .header-inner { gap: 16px; }
  .main-nav { gap: 14px; }
  .main-nav a { font-size: 13px; }
  .header-search { width: 200px; }
}
@media (max-width: 800px) {
  .header-inner { gap: 12px; }
  .header-inner .menu-toggle { order: -1; flex-shrink: 0; }
  .header-search { flex: 1; width: auto; max-width: 320px; }
  .main-nav { left: 0; right: auto; transform-origin: top left; }
}
@media (max-width: 590px) {
  .header-inner > .brand span { display: none; }
}

.season-description { margin: 0; padding: 0 18px 18px; color: #c1c7d7; font-size: 15px; line-height: 1.7; white-space: pre-line; overflow-wrap: anywhere; }
