:root {
  --bg: #000;
  --bg-2: #0b0b0d;
  --card: #161618;
  --text: #f5f5f7;
  --muted: #a1a1a6;
  --dim: #6e6e73;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #2997ff;
  --radius: 14px;
  --gutter: clamp(16px, 4vw, 56px);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); color-scheme: dark; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  line-height: 1.45;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---------- Top bar (frosted glass) ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: 56px;
  display: flex; align-items: center; gap: 28px;
  padding: 0 var(--gutter);
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.logo { display: flex; align-items: baseline; gap: 2px; font-weight: 700; font-size: 19px; letter-spacing: -0.02em; white-space: nowrap; }
.logo .ai { font-weight: 800; }
.logo .plus {
  font-weight: 800; font-size: 22px; margin-left: 1px;
  background: linear-gradient(135deg, #7dd3fc, #a78bfa 55%, #f472b6);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nav ul { display: flex; gap: 22px; list-style: none; font-size: 14px; color: var(--muted); }
.nav ul a:hover, .nav ul a.on { color: var(--text); }
.nav .search {
  margin-left: auto; display: flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, 0.08); border: 1px solid var(--line);
  border-radius: 10px; padding: 6px 12px; width: 220px; color: var(--muted); font-size: 14px;
}
.nav .search input { all: unset; width: 100%; color: var(--text); }
.nav .search svg { width: 15px; height: 15px; flex: none; }

/* ---------- Hero ---------- */
.hero { position: relative; height: min(82vh, 760px); min-height: 520px; overflow: hidden; }
.slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 900ms ease;
  display: flex; align-items: flex-end;
}
.slide.on { opacity: 1; z-index: 1; }
.slide img.bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.04); transition: transform 7s ease-out;
}
.slide.on img.bg { transform: scale(1); }
.slide::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, var(--bg) 0%, rgba(0,0,0,0.55) 35%, rgba(0,0,0,0) 65%),
    linear-gradient(to right, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0) 60%);
}
.slide .info { position: relative; z-index: 2; padding: 0 var(--gutter) 88px; max-width: 640px; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.slide h1 { font-size: clamp(36px, 6vw, 68px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 800; margin-bottom: 14px; }
.slide p { font-size: clamp(15px, 1.6vw, 18px); color: #d2d2d7; margin-bottom: 22px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.meta span + span::before { content: "·"; margin-right: 8px; }
.btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 22px; border-radius: 12px;
  font-size: 15px; font-weight: 600; transition: transform 150ms ease, background 150ms ease;
}
.btn:active { transform: scale(0.97); }
.btn.primary { background: var(--text); color: #000; }
.btn.primary:hover { background: #fff; }
.btn.ghost { background: rgba(255, 255, 255, 0.14); color: var(--text); backdrop-filter: blur(10px); }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.22); }
.btn svg { width: 16px; height: 16px; }
.dots { position: absolute; z-index: 3; bottom: 36px; right: var(--gutter); display: flex; gap: 8px; }
.dots button { width: 8px; height: 8px; border-radius: 99px; border: 0; background: rgba(255,255,255,0.35); cursor: pointer; transition: width 300ms ease, background 300ms ease; }
.dots button.on { width: 26px; background: var(--text); }

/* ---------- Rows ---------- */
main { padding-bottom: 40px; }
.row { margin-top: 34px; }
.row-head { display: flex; align-items: baseline; justify-content: space-between; padding: 0 var(--gutter); margin-bottom: 12px; }
.row h2 { font-size: 21px; font-weight: 700; letter-spacing: -0.015em; }
.row .see { font-size: 14px; color: var(--accent); }
.shelf {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(220px, 24vw, 320px);
  gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 6px var(--gutter) 14px; scroll-padding: 0 var(--gutter);
  scrollbar-width: none;
}
.shelf::-webkit-scrollbar { display: none; }
.card { scroll-snap-align: start; }
.thumb {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  background: var(--card); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  transition: transform 250ms ease, box-shadow 250ms ease;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.card:hover .thumb { transform: scale(1.04); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.7); }
.badge {
  position: absolute; top: 10px; left: 10px; font-size: 11px; font-weight: 700;
  padding: 3px 8px; border-radius: 6px; background: rgba(0,0,0,0.6); backdrop-filter: blur(8px); letter-spacing: 0.02em;
}
.card h3 { font-size: 15px; font-weight: 600; margin-top: 10px; letter-spacing: -0.01em; }
.card .sub { font-size: 13px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Big poster row ("Top picks") */
.shelf.tall { grid-auto-columns: clamp(170px, 17vw, 230px); }
.shelf.tall .thumb { aspect-ratio: 2 / 3; }
.rank { position: absolute; bottom: 6px; left: 12px; font-size: 64px; font-weight: 800; line-height: 1; color: rgba(255,255,255,0.92); text-shadow: 0 4px 18px rgba(0,0,0,0.8); letter-spacing: -0.05em; }

/* ---------- Banner (creators) ---------- */
.banner {
  margin: 48px var(--gutter) 0; border-radius: 22px; padding: clamp(28px, 5vw, 56px);
  background: radial-gradient(120% 140% at 0% 0%, #1e3a8a 0%, #312e81 35%, #0b0b0d 75%);
  border: 1px solid var(--line);
  display: grid; gap: 14px; max-width: 100%;
}
.banner h2 { font-size: clamp(26px, 3.6vw, 40px); letter-spacing: -0.03em; line-height: 1.05; max-width: 620px; }
.banner p { color: #c7c7cc; max-width: 560px; }

/* ---------- Title page ---------- */
.detail { position: relative; min-height: 78vh; display: flex; align-items: flex-end; }
.detail img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.detail::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, var(--bg) 5%, rgba(0,0,0,0.6) 45%, rgba(0,0,0,0.15) 100%),
              linear-gradient(to right, rgba(0,0,0,0.8), rgba(0,0,0,0) 65%);
}
.detail .info { position: relative; z-index: 2; padding: 120px var(--gutter) 40px; max-width: 720px; }
.detail h1 { font-size: clamp(38px, 6vw, 72px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; margin-bottom: 14px; }
.detail .logline { font-size: 18px; color: #d2d2d7; margin-bottom: 20px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; padding: 8px var(--gutter) 0; max-width: 980px; }
.facts div { border-top: 1px solid var(--line); padding-top: 12px; }
.facts dt { font-size: 12px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.facts dd { font-size: 15px; margin-top: 4px; }
.note { padding: 22px var(--gutter) 0; color: var(--dim); font-size: 13px; max-width: 760px; }

/* ---------- Simple pages ---------- */
.page { padding: 120px var(--gutter) 40px; max-width: 820px; }
.page h1 { font-size: clamp(34px, 5vw, 56px); letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 14px; }
.page p { color: var(--muted); font-size: 17px; margin-bottom: 14px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px 16px; padding: 10px var(--gutter) 0; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 var(--gutter) 18px; }
.chip { padding: 7px 14px; border-radius: 99px; background: rgba(255,255,255,0.08); border: 1px solid var(--line); font-size: 14px; color: var(--muted); cursor: pointer; }
.chip.on { background: var(--text); color: #000; border-color: var(--text); }

/* ---------- Footer ---------- */
footer { margin-top: 64px; padding: 28px var(--gutter) 40px; border-top: 1px solid var(--line); color: var(--dim); font-size: 13px; display: grid; gap: 12px; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer a:hover { color: var(--text); }

@media (max-width: 860px) {
  .nav ul { display: none; }
  .nav .search { width: 150px; }
  .slide .info { padding-bottom: 72px; }
  .dots { bottom: 28px; }
}
@media (max-width: 480px) {
  .nav { gap: 12px; }
  .nav .search { width: 120px; }
  .shelf { grid-auto-columns: 72vw; }
  .shelf.tall { grid-auto-columns: 44vw; }
}
@media (prefers-reduced-motion: reduce) {
  .slide, .slide img.bg, .thumb { transition: none; }
}

/* ---------- Length badge, episodes, upcoming ---------- */
.dur {
  position: absolute; right: 8px; bottom: 8px; font-size: 12px; font-weight: 600;
  padding: 2px 7px; border-radius: 6px; background: rgba(0,0,0,0.72); backdrop-filter: blur(6px);
}
.eps { display: grid; gap: 14px; padding: 6px var(--gutter) 0; max-width: 1100px; }
.ep { display: grid; grid-template-columns: clamp(160px, 26vw, 300px) 1fr; gap: 18px; align-items: center;
  padding: 10px; border-radius: calc(var(--radius) + 6px); transition: background 200ms ease; }
.ep:hover { background: rgba(255,255,255,0.05); }
.ep-n { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.ep h3 { font-size: 17px; font-weight: 600; margin: 4px 0; letter-spacing: -0.01em; }
.ep .sub { font-size: 13px; color: var(--muted); }
.ep.upcoming { opacity: 0.85; }
.thumb.soon { display: grid; place-items: center; box-shadow: none;
  background: linear-gradient(135deg, #1e1b4b, #0f172a 60%, #111); border: 1px dashed rgba(255,255,255,0.18); }
.thumb.soon div { display: grid; justify-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 600; }
.thumb.soon svg { width: 28px; height: 28px; }
@media (max-width: 560px) { .ep { grid-template-columns: 1fr; } }

/* ---------- Browse filters ---------- */
.filters {
  position: sticky; top: 56px; z-index: 20;
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px;
  padding: 14px var(--gutter); margin-bottom: 8px;
  background: rgba(0,0,0,0.72); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.seg { display: inline-flex; padding: 3px; border-radius: 11px; background: rgba(255,255,255,0.08); border: 1px solid var(--line); }
.seg button { all: unset; cursor: pointer; padding: 7px 14px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--muted); }
.seg button.on { background: var(--text); color: #000; }
.sel { display: grid; gap: 4px; }
.sel span { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); }
.sel select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background: rgba(255,255,255,0.08) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a1a1a6' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center;
  border: 1px solid var(--line); border-radius: 10px; color: var(--text);
  font: 500 14px var(--font); padding: 8px 32px 8px 12px; min-width: 150px;
}
.sel select option { background: #1c1c1e; color: var(--text); }
.reset { all: unset; cursor: pointer; font-size: 14px; color: var(--accent); padding: 8px 4px; }
.result-count { padding: 4px var(--gutter) 0; color: var(--muted); font-size: 14px; }
.empty { padding: 30px var(--gutter); color: var(--muted); }
.lang {
  position: absolute; left: 8px; bottom: 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.02em;
  padding: 2px 7px; border-radius: 6px; background: rgba(41,151,255,0.85);
}
.quick .chips { padding-bottom: 6px; }
.quick .chip { text-decoration: none; }
.quick .chip:hover { background: rgba(255,255,255,0.16); color: var(--text); }
@media (max-width: 640px) {
  .filters { position: static; }
  .sel { flex: 1 1 140px; }
  .sel select { min-width: 0; width: 100%; }
}

/* ---------- Watch page: in-site player ---------- */
.watch { position: relative; padding: 76px var(--gutter) 8px; overflow: hidden; }
.watch-bg { position: absolute; inset: -40px; background-size: cover; background-position: center; filter: blur(60px) saturate(140%); opacity: 0.45; transform: scale(1.1); }
.watch::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.2), var(--bg) 96%); }
.stage { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; }
.player {
  position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #000;
  box-shadow: 0 30px 80px rgba(0,0,0,0.65), 0 0 0 1px rgba(255,255,255,0.06);
}
.player .poster { width: 100%; height: 100%; object-fit: cover; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play-big {
  position: absolute; inset: 0; margin: auto; width: 88px; height: 88px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; color: #000; background: rgba(255,255,255,0.92);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5); transition: transform 180ms ease, background 180ms ease;
}
.play-big svg { width: 36px; height: 36px; margin-left: 4px; }
.player:hover .play-big { transform: scale(1.08); background: #fff; }
.player.blocked .overlay {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 16px; text-align: center; padding: 20px;
  background: rgba(0,0,0,0.62); backdrop-filter: blur(4px);
}
.player.blocked .overlay p { color: #d2d2d7; max-width: 420px; }
.watch-info { padding: 18px var(--gutter) 6px; max-width: 900px; }
.watch-info h1 { font-size: clamp(30px, 4.6vw, 52px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; margin: 6px 0 10px; }
.watch-info .logline { font-size: 17px; color: #d2d2d7; margin-bottom: 14px; }
.watch-info .meta { margin-bottom: 16px; }
button.ep { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: clamp(160px, 26vw, 300px) 1fr; gap: 18px; align-items: center; padding: 10px; border-radius: calc(var(--radius) + 6px); }
button.ep:hover { background: rgba(255,255,255,0.05); }
button.ep:focus-visible { outline: 2px solid var(--accent); }
.ep .now { display: none; position: absolute; left: 8px; top: 8px; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: var(--accent); }
.ep.on { background: rgba(41,151,255,0.10); box-shadow: inset 0 0 0 1px rgba(41,151,255,0.35); }
.ep.on .now { display: block; }
@media (max-width: 560px) { button.ep { grid-template-columns: 1fr; } .play-big { width: 68px; height: 68px; } .watch { padding-top: 64px; } }
.player { scroll-margin-top: 76px; }
.watch { padding-bottom: 24px; }
.watch::after { background: linear-gradient(to bottom, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.65) 70%, var(--bg) 100%); }

/* ---------- Legal pages and player note ---------- */
.legal { max-width: 760px; }
.legal .updated { font-size: 14px; color: var(--dim); margin-bottom: 18px; }
.legal h2 { font-size: 21px; letter-spacing: -0.015em; margin: 34px 0 10px; color: var(--text); }
.legal p, .legal li { color: #c7c7cc; font-size: 16px; line-height: 1.65; }
.legal ul { padding-left: 20px; margin-bottom: 14px; display: grid; gap: 8px; }
.legal a { color: var(--accent); }
.legal a:hover { text-decoration: underline; }
.legal strong { color: var(--text); }
.legal code { font-size: 14px; background: rgba(255,255,255,0.08); padding: 1px 6px; border-radius: 5px; }
.fill { background: rgba(255, 196, 0, 0.18); color: #ffd60a; padding: 0 4px; border-radius: 4px; }
.yt-note { text-align: center; font-size: 12px; color: var(--dim); margin-top: 10px; }
.yt-note a { color: var(--muted); text-decoration: underline; }

/* Legal pages: smaller text, more space between lines (Ranjan, 2026-11-17) */
.legal { max-width: 700px; }
.legal h1 { font-size: clamp(30px, 4vw, 40px); margin-bottom: 8px; }
.legal p, .legal li { font-size: 15px; line-height: 1.9; margin-bottom: 16px; }
.legal ul { gap: 4px; margin-bottom: 18px; }
.legal li { margin-bottom: 6px; }
.legal h2 { font-size: 18px; margin: 40px 0 12px; }
.legal .updated { font-size: 13px; margin-bottom: 24px; }
