:root {
  color-scheme: dark;
  --bg: #08090d;
  --panel: #11131a;
  --panel-soft: #171a22;
  --text: #f6f7fb;
  --muted: #a7adbb;
  --line: rgba(255,255,255,.12);
  --brand: #e52535;
  --brand-2: #28c7b7;
  --gold: #f5c451;
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  animation: page-soft-enter .28s ease-out both;
}

.dashboard-home {
  background:
    linear-gradient(180deg, rgba(229,37,53,.08), transparent 360px),
    radial-gradient(circle at 85% 8%, rgba(40,199,183,.16), transparent 340px),
    var(--bg);
}

.stream-home {
  --bg: #1d2028;
  --panel: #252b35;
  --panel-soft: #2e3542;
  --brand: #1686d9;
  --brand-2: #63c7ff;
  --line: rgba(210,220,235,.13);
  background: #1c1d25;
}

.listing-home {
  padding: 26px clamp(16px, 3vw, 42px) 70px;
  background: #1c1d25;
}

.listing-section {
  margin-bottom: 34px;
}

.listing-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.listing-head h1 {
  font-size: clamp(1.65rem, 3vw, 2.65rem);
  font-weight: 600;
  color: white;
  margin-bottom: 0;
}
.listing-head p {
  max-width: 620px;
  color: #aeb6c2;
  font-size: .92rem;
  line-height: 1.45;
  margin-bottom: 4px;
}

.featured-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(360px, 620px);
  gap: 28px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
}

.wide-movie-card {
  position: relative;
  overflow: visible;
  display: grid;
  gap: 12px;
  padding: 0;
  border-radius: 18px;
  background: transparent;
  scroll-snap-align: start;
  color: white;
}
.wide-card-poster {
  min-height: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.16)),
    linear-gradient(135deg, #224b61, #101822);
  box-shadow: 0 20px 48px rgba(0,0,0,.34);
  transition: transform .28s ease, box-shadow .28s ease;
}
.wide-movie-card:hover .wide-card-poster {
  transform: translateY(-4px);
  box-shadow: 0 24px 58px rgba(0,0,0,.42);
}
.wide-movie-card.alt .wide-card-poster {
  background:
    radial-gradient(circle at 72% 20%, rgba(255,255,255,.16), transparent 150px),
    linear-gradient(135deg, #5b3e26, #17191d);
}
.wide-movie-card.warm .wide-card-poster {
  background:
    radial-gradient(circle at 26% 20%, rgba(255,255,255,.16), transparent 150px),
    linear-gradient(135deg, #6b2437, #202836);
}
.wide-movie-card.alpha-feature .wide-card-poster {
  background:
    linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.08)),
    url("alpha-poster.png") center / cover no-repeat;
}
.wide-movie-card.toxic-feature .wide-card-poster {
  background:
    linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.08)),
    url("toxic-poster.png") center / cover no-repeat;
}
.wide-card-info {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.wide-title {
  color: white;
  font-size: 1.05rem;
  line-height: 1.12;
  font-weight: 500;
}
.wide-movie-card small {
  color: #aeb6c2;
  font-size: .82rem;
  font-weight: 400;
}
.wide-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: #c7ced8;
  font-size: .82rem;
  font-weight: 400;
}
.wide-meta b {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 24px;
  border-radius: 4px;
  background: #f5c451;
  color: #111;
  font-size: .78rem;
}
.wide-meta em {
  font-style: normal;
}
.wide-movie-card > strong {
  width: max-content;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 999px;
  background: #eef2f7;
  color: #151922;
  font-size: .86rem;
  font-weight: 500;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2);
}

.filter-strip {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 8px 0 28px;
}
.filter-strip button {
  min-height: 44px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: white;
  color: #151922;
  font-weight: 500;
  font-size: .9rem;
  white-space: nowrap;
}
.filter-strip button.is-active {
  background: var(--brand);
  color: white;
}

.poster-listing-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(140px, 1fr));
  gap: 26px;
}

.poster-listing-grid .poster-card {
  background: transparent;
  border: 0;
  overflow: visible;
}
.poster-listing-grid .poster-card:hover {
  transform: translateY(-6px);
}
.poster-listing-grid .poster-art {
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(0,0,0,.3);
}
.poster-listing-grid .poster-meta {
  padding: 12px 2px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 10px;
}
.poster-listing-grid .poster-meta strong {
  color: white;
  font-size: .96rem;
  font-weight: 500;
}
.poster-listing-grid .poster-meta span {
  justify-self: end;
  color: #adb4c0;
  font-size: .8rem;
}
.poster-listing-grid .provider-row {
  grid-column: 1 / -1;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.stream-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 86px;
  display: grid;
  grid-template-columns: 58px 250px minmax(280px, 1fr) max-content;
  align-items: center;
  gap: 20px;
  padding: 0 clamp(18px, 3vw, 38px);
  background: #252b35;
  border-bottom: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 2px 0 rgba(0,0,0,.22);
}

.hamburger {
  width: 48px;
  height: 48px;
  display: grid;
  place-content: center;
  gap: 6px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.hamburger span {
  width: 34px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
}

.stream-brand {
  display: grid;
  grid-template-columns: 58px 1fr;
  column-gap: 12px;
  align-items: center;
}
.stream-brand strong {
  grid-column: 2;
  color: #fff;
  font-size: 1.55rem;
  line-height: 1;
}
.stream-brand small {
  grid-column: 2;
  color: #e1e5ec;
  font-weight: 700;
}
.brand-orbit {
  grid-row: 1 / span 2;
  width: 56px;
  height: 56px;
  position: relative;
  border: 3px solid #25a9f2;
  border-radius: 50%;
  transform: rotate(-20deg);
}
.brand-orbit::before,
.brand-orbit::after {
  content: "";
  position: absolute;
  inset: 8px -12px;
  border: 3px solid #25a9f2;
  border-radius: 50%;
}
.brand-orbit::after { transform: rotate(58deg); }
.brand-orbit i {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: #f5c451;
}

.stream-search {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 54px;
  align-items: center;
  max-width: 650px;
  width: 100%;
  justify-self: center;
  border: 1px solid rgba(215,226,245,.22);
  border-radius: 999px;
  background: #303645;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.stream-search input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  padding: 15px 18px 15px 22px;
  font-size: 1rem;
}
.stream-search button {
  width: 48px;
  height: 48px;
  margin-right: 3px;
  border: 0;
  border-radius: 50%;
  overflow: hidden;
  color: transparent;
  background: var(--brand);
  cursor: pointer;
  position: relative;
}
.stream-search button::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid white;
  border-radius: 50%;
  position: absolute;
  left: 15px;
  top: 14px;
}
.stream-search button::after {
  content: "";
  width: 9px;
  height: 2px;
  background: white;
  position: absolute;
  left: 28px;
  top: 29px;
  transform: rotate(45deg);
}
.stream-search .search-results {
  left: 0;
  right: auto;
  top: calc(100% + 10px);
}

.top-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
.top-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  color: #d8deea;
  background: rgba(255,255,255,.07);
  font-weight: 800;
  font-size: .88rem;
}

.stream-layout {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  min-height: calc(100vh - 86px);
}

.stream-sidebar {
  position: sticky;
  top: 86px;
  align-self: start;
  min-height: calc(100vh - 86px);
  padding: 24px 20px;
  background: #252b35;
  border-right: 1px solid rgba(255,255,255,.1);
}
.stream-sidebar hr {
  border: 0;
  height: 1px;
  background: rgba(255,255,255,.16);
  margin: 24px 0;
}
.stream-nav-item {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  min-height: 44px;
  margin-bottom: 10px;
  color: #d9dce5;
  font-weight: 800;
}
.stream-nav-item span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #aeb4c0;
  background: rgba(255,255,255,.08);
  font-size: .78rem;
}
.stream-nav-item.is-active,
.stream-nav-item:hover {
  color: var(--brand-2);
}
.stream-nav-item.is-active span,
.stream-nav-item:hover span {
  color: white;
  background: var(--brand);
}
.stream-nav-item.is-active::after {
  content: "";
  position: absolute;
  right: -20px;
  width: 4px;
  height: 44px;
  border-radius: 999px;
  background: var(--brand);
}
.stream-nav-item.muted {
  margin-top: 40px;
  font-size: .92rem;
}

.stream-content {
  min-width: 0;
  padding: 22px clamp(18px, 2vw, 30px) 44px;
}

.featured-movie {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  display: grid;
  align-items: end;
  padding: clamp(26px, 4vw, 46px);
  border-radius: 26px;
  background:
    linear-gradient(90deg, rgba(16,19,26,.38), rgba(16,19,26,.08) 48%, rgba(16,19,26,.52)),
    linear-gradient(0deg, rgba(18,20,28,.72), rgba(18,20,28,.1) 58%),
    url("hero-cinema.png") center / cover no-repeat;
  box-shadow: 0 24px 80px rgba(0,0,0,.34);
  transform-style: preserve-3d;
}
.featured-backdrop {
  position: absolute;
  inset: -16%;
  background:
    radial-gradient(circle at 68% 22%, rgba(99,199,255,.18), transparent 340px),
    linear-gradient(120deg, rgba(255,255,255,.12), transparent 32%);
  pointer-events: none;
}
.featured-copy {
  position: relative;
  z-index: 1;
  max-width: 720px;
}
.featured-director {
  margin-bottom: 4px;
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  color: #f2f5fb;
  font-weight: 900;
  text-shadow: 0 5px 24px rgba(0,0,0,.55);
}
.featured-movie h1 {
  font-size: clamp(4rem, 8vw, 7.4rem);
  line-height: .85;
  margin-bottom: 18px;
  color: white;
  text-shadow: 0 9px 28px rgba(0,0,0,.42);
}
.genre-pills,
.featured-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.genre-pills span,
.feature-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  border-radius: 999px;
  background: rgba(215,229,233,.55);
  color: white;
  font-size: 1.1rem;
  font-weight: 900;
  backdrop-filter: blur(12px);
}
.featured-actions {
  position: absolute;
  right: 32px;
  bottom: 28px;
  z-index: 5;
  pointer-events: auto;
}
.feature-button {
  background: rgba(36,45,55,.76);
  position: relative;
  z-index: 6;
}
.feature-button.primary {
  background: rgba(22,134,217,.9);
}

.stream-info-grid,
.stream-people-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: 24px;
  margin-top: 30px;
}
.stream-panel {
  min-width: 0;
  padding: 20px 22px;
  border-radius: 14px;
  background: transparent;
}
.stream-panel h2 {
  color: #d6d8df;
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  margin-bottom: 14px;
}
.stream-panel p {
  max-width: 780px;
  color: white;
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.5;
}
.rating-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
  font-size: 1.35rem;
}
.rating-row strong {
  color: #fff;
}
.rating-row span {
  color: var(--brand-2);
  font-weight: 900;
}
.avatar-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.avatar-row a {
  display: grid;
  justify-items: center;
  gap: 8px;
  width: 92px;
  color: #e9edf5;
  font-weight: 800;
  text-align: center;
}
.avatar-row span {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 3px solid rgba(255,255,255,.12);
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,.28), transparent 26px),
    linear-gradient(135deg, #1686d9, #384457);
  color: white;
  font-weight: 950;
}
.avatar-row small {
  color: #cfd5df;
}
.compact-avatars a { width: 116px; }
.stream-rail {
  grid-template-columns: repeat(6, minmax(130px, 1fr));
}
.stream-home .poster-card {
  background: #252b35;
  border-color: rgba(255,255,255,.1);
}
.stream-home .poster-meta span {
  color: #b6bdca;
}

.reveal-on-load {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity .72s ease,
    transform .72s cubic-bezier(.22, 1, .36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal-on-load.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes page-soft-enter {
  from {
    opacity: .01;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 68px;
  padding: 0 clamp(18px, 4vw, 56px);
  background: rgba(37,43,53,.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.brand {
  color: #fff;
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: 0;
}

.nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: .95rem;
  white-space: nowrap;
}

.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }

.header-search {
  margin-left: auto;
  position: relative;
  width: min(360px, 38vw);
}

.header-search input, .hero-search input {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.08);
  color: var(--text);
  border-radius: var(--radius);
  padding: 13px 44px 13px 15px;
  font-size: 1rem;
  outline: none;
}

.header-search input:focus, .hero-search input:focus {
  border-color: rgba(99,199,255,.65);
  box-shadow: 0 0 0 3px rgba(99,199,255,.16);
}

.search-results {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(520px, 92vw);
  max-height: 420px;
  overflow: auto;
  background: #101219;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(0,0,0,.55);
  display: none;
}

.search-results.is-open { display: block; }
.result-item {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 12px;
  padding: 10px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.result-item:hover { background: rgba(255,255,255,.06); }
.result-item strong { display: block; font-size: .96rem; }
.result-item span { color: var(--muted); font-size: .84rem; }

.hero {
  min-height: 74vh;
  display: grid;
  align-items: end;
  padding: 110px clamp(18px, 4vw, 56px) 46px;
  background:
    linear-gradient(90deg, rgba(8,9,13,.96) 0%, rgba(8,9,13,.72) 44%, rgba(8,9,13,.2) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(8,9,13,0) 32%),
    url("hero-cinema.png") center / cover no-repeat;
}

.hero-content { max-width: 760px; }
.kicker { color: var(--brand-2); font-weight: 800; text-transform: uppercase; font-size: .78rem; letter-spacing: .08em; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2.5rem, 6vw, 5.8rem); line-height: .94; margin-bottom: 18px; letter-spacing: 0; }
.hero p { color: #d6d9e2; font-size: clamp(1rem, 1.7vw, 1.25rem); line-height: 1.55; max-width: 650px; }

.hero-search {
  position: relative;
  margin-top: 26px;
  max-width: 670px;
}
.hero-search input { padding: 18px 150px 18px 18px; font-size: 1.08rem; }
.hero-search button {
  position: absolute;
  right: 6px;
  top: 6px;
  bottom: 6px;
  border: 0;
  border-radius: 6px;
  background: var(--brand);
  color: white;
  font-weight: 800;
  padding: 0 24px;
  cursor: pointer;
}

.dashboard-shell {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 22px;
  padding: 24px clamp(18px, 4vw, 56px) 72px;
}

.dashboard-sidebar {
  position: sticky;
  top: 92px;
  align-self: start;
  display: grid;
  gap: 8px;
  padding: 14px;
  min-height: calc(100vh - 130px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17,19,26,.72);
  backdrop-filter: blur(18px);
}

.side-item {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  color: var(--muted);
  border-radius: 6px;
  font-weight: 750;
}

.side-item:hover,
.side-item.is-active {
  color: var(--text);
  background: rgba(255,255,255,.08);
}

.dashboard-stage {
  min-width: 0;
  display: grid;
  gap: 22px;
}

.dashboard-hero {
  position: relative;
  overflow: hidden;
  min-height: 580px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .72fr);
  align-items: center;
  gap: clamp(22px, 4vw, 54px);
  padding: clamp(28px, 5vw, 62px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(8,9,13,.94) 0%, rgba(8,9,13,.72) 48%, rgba(8,9,13,.38) 100%),
    url("hero-cinema.png") center / cover no-repeat;
  box-shadow: 0 24px 90px rgba(0,0,0,.38);
}

.hero-bg-layer {
  position: absolute;
  inset: -12%;
  background:
    radial-gradient(circle at 74% 20%, rgba(245,196,81,.18), transparent 260px),
    radial-gradient(circle at 22% 72%, rgba(40,199,183,.16), transparent 320px);
  pointer-events: none;
}

.dashboard-hero .hero-content {
  position: relative;
  max-width: 760px;
  z-index: 1;
}

.dashboard-hero h1 {
  font-size: clamp(2.7rem, 6.2vw, 6rem);
  max-width: 760px;
}

.dashboard-hero p {
  color: #d6d9e2;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.6;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
  max-width: 650px;
}

.metric-row div {
  min-height: 78px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: var(--radius);
  background: rgba(255,255,255,.08);
}

.metric-row strong {
  display: block;
  font-size: 1.55rem;
}

.metric-row span {
  color: var(--muted);
  font-size: .86rem;
}

.hero-dashboard-card {
  position: relative;
  z-index: 1;
  align-self: stretch;
  min-height: 430px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius);
  background: rgba(12,14,20,.78);
  backdrop-filter: blur(22px);
  box-shadow: 0 30px 80px rgba(0,0,0,.42);
}

.mini-toolbar {
  display: flex;
  gap: 7px;
  margin-bottom: 28px;
}
.mini-toolbar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
}

.watch-status {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 18px;
}
.watch-status strong { font-size: 1.2rem; }
.watch-status small { color: var(--muted); }

.status-list {
  display: grid;
  gap: 10px;
}
.status-list a,
.snapshot-list a {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  background: rgba(255,255,255,.07);
}
.status-list b,
.snapshot-list span {
  color: var(--brand-2);
  font-size: .9rem;
}

.floating-posters {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.floating-posters span {
  aspect-ratio: 2 / 3;
  display: flex;
  align-items: end;
  padding: 10px;
  border-radius: var(--radius);
  font-weight: 900;
  font-size: .9rem;
  background:
    linear-gradient(145deg, rgba(0,0,0,.05), rgba(0,0,0,.68)),
    linear-gradient(135deg, rgba(229,37,53,.9), rgba(40,199,183,.58));
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, .55fr);
  gap: 22px;
}

.dashboard-panel {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17,19,26,.78);
  box-shadow: 0 18px 48px rgba(0,0,0,.22);
}

.panel-wide {
  grid-row: span 2;
}

.section-head.compact {
  align-items: start;
  margin-bottom: 18px;
}

.dashboard-rail {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.snapshot-list {
  display: grid;
  gap: 10px;
}

.people-grid .archive-card {
  min-height: 82px;
}

.main { padding: 28px clamp(18px, 4vw, 56px) 70px; }
.section { margin-top: 34px; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}
.section h2 { font-size: clamp(1.45rem, 2.3vw, 2.15rem); margin-bottom: 4px; }
.section-head p { color: var(--muted); margin: 0; }

.rail {
  display: grid;
  grid-template-columns: repeat(6, minmax(140px, 1fr));
  gap: 16px;
}
.poster-card {
  min-width: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  border: 1px solid rgba(255,255,255,.08);
  transition: transform .18s ease, border-color .18s ease;
}
.poster-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.26); }
.poster-art {
  position: relative;
  aspect-ratio: 2 / 3;
  display: flex;
  align-items: end;
  padding: 12px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(0,0,0,.05), rgba(0,0,0,.6)),
    radial-gradient(circle at 30% 20%, var(--accent-a), transparent 34%),
    linear-gradient(135deg, var(--accent-b), var(--accent-c));
}
.poster-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.poster-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 42%, rgba(0,0,0,.78));
  pointer-events: none;
}
.poster-art span {
  position: relative;
  z-index: 1;
  font-weight: 600;
  text-transform: uppercase;
  line-height: .95;
  font-size: clamp(.9rem, 1.25vw, 1.25rem);
  text-shadow: 0 8px 24px rgba(0,0,0,.8);
}
.poster-meta { padding: 12px; }
.poster-meta strong { display: block; margin-bottom: 6px; font-weight: 500; }
.poster-meta span { color: var(--muted); font-size: .82rem; }

.provider-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.provider {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 6px;
  background: #f4f6fb;
  color: #11131a;
  font-weight: 500;
  font-size: .82rem;
}
.provider.rent { background: #202633; color: var(--text); border: 1px solid var(--line); }

.detail-hero {
  display: grid;
  grid-template-columns: minmax(210px, 300px) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 48px);
  align-items: end;
  padding: 64px clamp(18px, 4vw, 56px) 36px;
  background: linear-gradient(180deg, #161922, var(--bg));
}
.detail-copy h1 { font-size: clamp(2.4rem, 5vw, 4.8rem); }
.meta-line { color: var(--muted); display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.summary { max-width: 760px; color: #d9dce5; line-height: 1.65; }

.watch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  min-height: calc(100vh - 68px);
  background: #1c1d25;
}

.watch-main {
  min-width: 0;
  padding: 0 28px 60px;
}

.watch-hero {
  position: relative;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(220px, 340px) minmax(0, 1fr);
  align-items: center;
  gap: 28px;
  overflow: hidden;
  margin: 0 -28px;
  padding: 30px 42px 36px;
  background:
    radial-gradient(circle at 80% 10%, rgba(210,162,107,.18), transparent 420px),
    linear-gradient(180deg, #111722 0%, #1c1d25 100%);
}

.watch-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 22%, rgba(99,199,255,.13), transparent 380px),
    linear-gradient(110deg, transparent, rgba(255,255,255,.08) 48%, transparent 56%);
  pointer-events: none;
}

.watch-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.watch-poster-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 340px;
  justify-self: start;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.14);
  background: #111722;
  box-shadow: 0 24px 80px rgba(0,0,0,.42);
}
.watch-poster-frame img {
  display: block;
  width: 100%;
  object-fit: cover;
}
.watch-poster-frame .poster-art {
  aspect-ratio: 2 / 3;
}

.watch-hero h1 {
  color: white;
  font-size: clamp(1.65rem, 2.5vw, 2.65rem);
  font-weight: 500;
  line-height: 1.08;
  max-width: 860px;
  margin-bottom: 12px;
  text-shadow: 0 14px 36px rgba(0,0,0,.42);
}

.watch-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: #c9d0da;
  font-size: .9rem;
  font-weight: 400;
  margin-bottom: 14px;
}
.watch-meta .star { color: #f5c451; }
.watch-meta b {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(187,172,98,.82);
  color: white;
  font-size: .78rem;
  font-weight: 500;
}
.watch-meta i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.28);
}

.watch-hero p {
  max-width: 730px;
  color: #dce2ec;
  font-size: .94rem;
  line-height: 1.52;
  font-weight: 400;
}

.episode-strip { margin-top: 28px; }
.episode-strip h2 {
  color: white;
  font-size: 1.12rem;
  font-weight: 500;
  margin-bottom: 12px;
}
.episode-strip small {
  color: #8f96a3;
  font-weight: 400;
}
.option-row,
.video-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(170px, 1fr));
  gap: 14px;
}
.watch-table {
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  background: #0d131e;
}
.watch-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.3fr) minmax(140px, .9fr) minmax(120px, .7fr) minmax(140px, auto);
  align-items: center;
  gap: 14px;
  min-height: 78px;
  padding: 14px 16px;
  color: #e8edf5;
  border-left: 4px solid transparent;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: #101722;
}
.watch-row:nth-child(even) {
  background: #121c29;
}
.watch-row:last-child {
  border-bottom: 0;
}
.watch-row.is-verified {
  border-left-color: #2fd47a;
  box-shadow: inset 0 0 0 1px rgba(47,212,122,.24);
}
.watch-service strong,
.watch-service small,
.watch-quality,
.watch-status,
.watch-row-action {
  display: block;
}
.watch-service strong {
  color: #fff;
  font-size: .95rem;
  font-weight: 500;
  margin-bottom: 4px;
}
.watch-service small,
.watch-quality small {
  color: #9ba8b8;
  font-size: .78rem;
}
.watch-quality {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}
.watch-quality b {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 24px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,.24);
  color: #fff;
  font-size: .68rem;
  font-weight: 500;
}
.watch-quality b:first-child {
  background: #f4c542;
  color: #101722;
  border-color: #f4c542;
}
.watch-status {
  width: max-content;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 14px;
  background: rgba(255,255,255,.09);
  color: #c5cfda;
  font-size: .78rem;
  font-weight: 500;
}
.watch-row.is-verified .watch-status {
  background: rgba(47,212,122,.16);
  color: #70f0a8;
}
.watch-row-action {
  justify-self: end;
  min-width: 136px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #333d4a;
  color: #dce4ee;
  font-size: .88rem;
  font-weight: 500;
}
.watch-row.is-verified .watch-row-action {
  background: #2fd47a;
  color: #06120b;
}
.trailer-embed {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 10px;
  background: #111722;
}
.trailer-embed iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #000;
}
.trailer-embed a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 16px;
  color: #fff;
  font-size: .9rem;
  font-weight: 500;
  border-top: 1px solid rgba(255,255,255,.12);
}
.cast-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.cast-detail-card {
  min-height: 96px;
  display: grid;
  grid-template-columns: 52px 1fr;
  column-gap: 14px;
  align-content: center;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 10px;
  background: #252b35;
}
.cast-detail-card span {
  grid-row: span 2;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  font-weight: 500;
}
.cast-detail-card strong {
  color: #fff;
  font-size: .94rem;
  font-weight: 500;
  align-self: end;
}
.cast-detail-card small {
  color: #b9c2ce;
  font-size: .78rem;
  align-self: start;
}
.option-card,
.video-card {
  min-height: 116px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 10px;
  background: #2a2f39;
  color: white;
}
.option-card span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(22,134,217,.9);
  font-weight: 900;
  margin-bottom: 14px;
}
.option-card strong,
.video-card strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 6px;
}
.option-card small {
  color: #b9c2ce;
}
.video-card {
  overflow: hidden;
  padding: 0;
}
.video-card .poster-art {
  aspect-ratio: 16 / 7;
  border-radius: 0;
}
.video-card strong {
  padding: 12px;
}

.watch-aside {
  min-width: 0;
  padding: 28px 28px 50px;
  background: #6b706c;
  border-left: 1px solid rgba(255,255,255,.18);
}
.studio-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  align-items: center;
}
.studio-logo {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #1686d9;
  color: white;
  font-size: 2rem;
  font-weight: 500;
  border: 2px solid rgba(255,255,255,.5);
}
.studio-card strong {
  display: block;
  color: white;
  font-size: 1.05rem;
  font-weight: 500;
}
.studio-card small {
  color: rgba(255,255,255,.78);
}
.aside-actions {
  display: grid;
  grid-template-columns: 1fr 44px 54px;
  gap: 8px;
  margin: 26px 0;
}
.aside-actions button {
  min-height: 42px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  color: white;
  font-size: .86rem;
  font-weight: 500;
}
.aside-panel {
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,.22);
}
.aside-panel h2 {
  color: #e7e9ed;
  font-size: 1.12rem;
  font-weight: 500;
  margin-bottom: 12px;
}
.popular-list {
  display: grid;
}
.popular-item {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,.18);
}
.popular-item .poster-art {
  aspect-ratio: 2 / 3;
  border-radius: 6px;
  padding: 8px;
}
.popular-item .poster-art span {
  font-size: .72rem;
}
.popular-item strong {
  display: block;
  color: white;
  font-size: .9rem;
  font-weight: 500;
  margin-bottom: 4px;
}
.popular-item small {
  display: block;
  color: rgba(255,255,255,.72);
  font-size: .78rem;
  line-height: 1.35;
}
.popular-item em {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  margin-top: 10px;
  border-radius: 999px;
  background: rgba(98,183,133,.78);
  color: white;
  font-style: normal;
  font-weight: 500;
  font-size: .76rem;
}
.detail-credits a {
  background: rgba(255,255,255,.12);
}

.info-grid {
  display: grid;
  grid-template-columns: 1.4fr .8fr;
  gap: 28px;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.credit-list, .archive-grid {
  display: grid;
  gap: 12px;
}
.credit-list a, .archive-card {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  background: var(--panel-soft);
}
.credit-list small, .archive-card small { color: var(--muted); }

.movie-article {
  max-width: 880px;
  margin-top: 28px;
  display: grid;
  gap: 18px;
}
.movie-article article {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.movie-article h2 {
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  font-weight: 500;
  margin-bottom: 8px;
}
.movie-article p {
  color: #d9dce5;
  font-size: .92rem;
  line-height: 1.58;
  margin-bottom: 0;
}
.availability-note {
  color: var(--muted);
  font-size: .82rem;
}

.archive-hero {
  padding: 70px clamp(18px, 4vw, 56px) 18px;
  background: linear-gradient(180deg, #171922, var(--bg));
}
.archive-hero h1 { font-size: clamp(2.2rem, 4.6vw, 4.6rem); }

.footer {
  padding: 32px clamp(18px, 4vw, 56px);
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: #07080b;
}

@media (max-width: 980px) {
  .site-header { flex-wrap: wrap; height: auto; padding-top: 14px; padding-bottom: 14px; }
  .header-search { order: 3; width: 100%; margin-left: 0; }
  .rail { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .listing-head { display: block; }
  .featured-row { grid-auto-columns: minmax(330px, 86vw); gap: 18px; }
  .poster-listing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .info-grid, .detail-hero { grid-template-columns: 1fr; }
  .detail-hero .poster-art { max-width: 260px; }
  .watch-layout { grid-template-columns: 1fr; }
  .watch-hero {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .watch-poster-frame {
    max-width: min(340px, 100%);
  }
  .watch-aside {
    border-left: 0;
    border-top: 1px solid rgba(255,255,255,.18);
  }
  .option-row,
  .video-row,
  .cast-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stream-topbar {
    grid-template-columns: 48px 1fr;
    min-height: 0;
    padding-top: 14px;
    padding-bottom: 14px;
  }
  .stream-brand { grid-template-columns: 46px 1fr; }
  .brand-orbit { width: 44px; height: 44px; }
  .stream-search {
    grid-column: 1 / -1;
    max-width: none;
    justify-self: stretch;
  }
  .top-actions {
    grid-column: 1 / -1;
    overflow-x: auto;
  }
  .stream-layout { grid-template-columns: 1fr; }
  .stream-sidebar {
    position: static;
    min-height: 0;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 12px 18px;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.1);
  }
  .stream-sidebar hr { display: none; }
  .stream-nav-item {
    min-width: max-content;
    grid-template-columns: 32px max-content;
    margin: 0;
  }
  .stream-nav-item.is-active::after { display: none; }
  .stream-info-grid,
  .stream-people-grid { grid-template-columns: 1fr; }
  .stream-rail { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dashboard-shell { grid-template-columns: 1fr; }
  .dashboard-sidebar {
    position: static;
    min-height: 0;
    grid-template-columns: repeat(5, max-content);
    overflow-x: auto;
  }
  .dashboard-hero,
  .dashboard-grid { grid-template-columns: 1fr; }
  .hero-dashboard-card { min-height: 390px; }
}

@media (max-width: 620px) {
  .nav { width: 100%; overflow-x: auto; padding-bottom: 2px; }
  .hero { min-height: 78vh; padding-top: 82px; }
  .hero-search input { padding-right: 18px; }
  .hero-search button { position: static; width: 100%; min-height: 48px; margin-top: 10px; }
  .rail { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .listing-home { padding-left: 14px; padding-right: 14px; }
  .wide-movie-card > strong {
    min-height: 38px;
    font-size: .86rem;
  }
  .poster-listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .credit-list a, .archive-card { flex-direction: column; gap: 6px; }
  .watch-main { padding-left: 14px; padding-right: 14px; }
  .watch-hero {
    min-height: 0;
    margin-left: -14px;
    margin-right: -14px;
    padding: 22px 20px 34px;
  }
  .watch-hero h1 {
    font-size: clamp(1.45rem, 7vw, 2.25rem);
  }
  .watch-meta { font-size: .95rem; gap: 8px; }
  .option-row,
  .video-row,
  .cast-detail-grid { grid-template-columns: 1fr; }
  .watch-row {
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: start;
  }
  .watch-row-action {
    justify-self: stretch;
  }
  .watch-aside { padding: 22px 18px 42px; }
  .popular-item { grid-template-columns: 70px 1fr; }
  .stream-content { padding-left: 14px; padding-right: 14px; }
  .stream-topbar {
    gap: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .stream-brand strong { font-size: 1.25rem; }
  .stream-brand small { font-size: .78rem; }
  .top-actions a {
    min-height: 32px;
    padding: 0 12px;
    font-size: .78rem;
  }
  .stream-search input {
    padding-top: 11px;
    padding-bottom: 11px;
  }
  .stream-search button {
    width: 40px;
    height: 40px;
  }
  .stream-search button::before {
    left: 12px;
    top: 11px;
  }
  .stream-search button::after {
    left: 25px;
    top: 26px;
  }
  .featured-movie {
    min-height: 520px;
    border-radius: 18px;
    padding: 22px;
  }
  .featured-movie h1 {
    font-size: clamp(3.1rem, 19vw, 5rem);
  }
  .featured-actions {
    position: static;
    margin-top: 18px;
  }
  .genre-pills span,
  .feature-button {
    min-height: 42px;
    padding: 0 18px;
    font-size: .98rem;
  }
  .stream-panel { padding: 16px 4px; }
  .stream-panel p { font-size: .98rem; }
  .rating-row { font-size: 1rem; }
  .avatar-row { gap: 12px; }
  .avatar-row a { width: 76px; }
  .avatar-row span { width: 56px; height: 56px; }
  .stream-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-shell { padding-left: 14px; padding-right: 14px; }
  .dashboard-hero { min-height: 0; padding: 20px; gap: 18px; }
  .dashboard-hero h1 { font-size: clamp(2.25rem, 13vw, 3.4rem); }
  .dashboard-hero p { font-size: 1rem; }
  .metric-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .metric-row div { min-height: 64px; padding: 10px; }
  .metric-row strong { font-size: 1.1rem; }
  .metric-row span { font-size: .72rem; }
  .dashboard-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .floating-posters { display: none; }
  .hero-dashboard-card { min-height: 0; padding: 14px; }
  .status-list a, .snapshot-list a { min-height: 46px; padding: 0 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
  .reveal-on-load {
    opacity: 1;
    transform: none;
  }
}
