/* What both sites share: resets and the mechanics (ticker, swipe row, posters, tags). Identity - colour, type,
   layout and motion - lives in the site's own file. Mobile first. */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  min-height: 100vh; display: flex; flex-direction: column;
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); line-height: 1.6; overflow-wrap: break-word; overflow-x: clip;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; margin: 0 0 0.5em; text-wrap: balance; }
h1:lang(hi), h2:lang(hi), h3:lang(hi), h4:lang(hi), [lang="hi"] h1 { line-height: 1.38; letter-spacing: 0; }
p, ul, ol, dl, dd, figure { margin: 0 0 1em; }
p { text-wrap: pretty; }
a { color: var(--link); text-underline-offset: 0.18em; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }
code { font-family: var(--font-mono, ui-monospace, Menlo, Consolas, monospace); font-size: 0.9em; }
.wrap { width: 100%; max-width: 82rem; margin: 0 auto; padding-left: max(18px, env(safe-area-inset-left, 0px));
  padding-right: max(18px, env(safe-area-inset-right, 0px)); }
main { flex: 1 0 auto; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; z-index: 50; }
.skip:focus { left: 0.5rem; top: 0.5rem; background: var(--surface); color: var(--ink); padding: 0.6rem 1rem; }
.draft { margin: 0; padding: 0.35rem 1rem; background: var(--warn-bg); color: var(--ink); font-size: 0.78rem;
  line-height: 1.4; text-align: center; }

nav ul, .cards, .chips, .reels, .ticker ul, .tags, .watch, .follow, .stack, .lead, .feature ul, .crumbs ol,
.series-more, .rail ul, .river ul { list-style: none; margin: 0; padding: 0; }
.stretch::after { content: ""; position: absolute; inset: 0; z-index: 1; }

/* breadcrumbs */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.2rem 0.5rem; font-size: 0.82rem; color: var(--muted);
  padding: 1rem 0 0.75rem; }
.crumbs li { min-width: 0; }
.crumbs li + li::before { content: "/"; margin-right: 0.5rem; opacity: 0.6; }
.crumbs a { color: var(--muted); }
.crumbs li[aria-current] { max-width: 32ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* moving headlines */
.ticker { position: relative; }
.ticker .wrap { display: flex; align-items: center; gap: 0.9rem; min-height: 3.25rem; }
.ticker-label { flex: none; margin: 0; display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 800;
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; }
.ticker-label.live::before { content: ""; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: currentColor;
  animation: pulse 1.6s ease-in-out infinite; }
.ticker-view { flex: 1; min-width: 0; overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 2rem, #000 calc(100% - 3rem), transparent); }
.ticker-run { display: flex; width: max-content; animation: ticker 70s linear infinite; }
.ticker ul { display: flex; flex: none; }
.ticker li { display: inline-flex; align-items: center; gap: 0.55rem; padding: 0 1.4rem; white-space: nowrap;
  font-size: 0.9rem; }
.ticker li a { color: var(--ink); text-decoration: none; font-weight: 600; }
.ticker li a:hover { text-decoration: underline; }
.ticker .tag { font-size: 0.64rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.ticker:hover .ticker-run, .ticker:focus-within .ticker-run, .ticker.paused .ticker-run { animation-play-state: paused; }
.ticker-pause { flex: none; display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; }
.ticker-pause[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes pulse { 50% { opacity: 0.25; } }

/* swipe row of 9:16 posters */
.row { position: relative; }
.row .reels { display: grid; grid-auto-flow: column; grid-auto-columns: min(68%, 16.5rem); gap: 1rem; overflow-x: auto;
  scroll-snap-type: x mandatory; padding: 0.25rem 0.15rem 1.1rem; scrollbar-width: thin; }
.row .reels > li { scroll-snap-align: start; }
.row-nav { display: flex; justify-content: flex-end; gap: 0.5rem; }
.row-nav button { display: inline-grid; place-items: center; width: 2.9rem; height: 2.9rem; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; font-size: 1rem; }
.row-nav button:hover { background: var(--accent); color: var(--on-accent); }

/* posters */
.reels.grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14.5rem), 1fr));
  padding: 0; }
.reels.solo { display: grid; grid-template-columns: min(100%, 17rem); }
.video { position: relative; min-width: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.poster { position: relative; aspect-ratio: 9 / 16; max-width: 100%; overflow: hidden; border-radius: var(--radius);
  background: #0d0b16; color: #fff; isolation: isolate; }
.poster > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.poster::after { content: ""; position: absolute; inset: 35% 0 0; z-index: -1;
  background: linear-gradient(transparent, rgba(5, 4, 12, 0.72) 45%, rgba(5, 4, 12, 0.95)); }
.video:hover .poster > img { transform: scale(1.06); }
.play { position: absolute; left: 50%; top: 38%; translate: -50% -50%; display: grid; place-items: center; width: 4rem;
  height: 4rem; border-radius: 50%; background: rgba(10, 8, 20, 0.55); border: 1.5px solid rgba(255, 255, 255, 0.75);
  color: #fff; backdrop-filter: blur(6px); transition: scale 0.25s, background 0.25s; }
.play .icon { width: 2.1rem; height: 2.1rem; }
.video:hover .play { scale: 1.1; background: var(--accent); color: var(--on-accent); }
.poster-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 1rem; }
.poster-text .meta { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: #e6e2ff; margin: 0 0 0.35rem; }
.poster-text h2, .poster-text h3, .poster-text h4 { font-size: 1.05rem; margin: 0; color: #fff; line-height: 1.3; }
.has-cover .poster-text h2, .has-cover .poster-text h3 { position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); }
.video .about { font-size: 0.86rem; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; }
.watch { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.watch a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 0.9rem; border-radius: 99px;
  border: 1px solid var(--line); font-size: 0.8rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.watch a:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.9rem; font-size: 0.8rem; color: var(--muted); }
.badge { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 700; }
.badge .icon { width: 1.05rem; height: 1.05rem; }
.host { color: var(--muted); font-size: 0.82rem; }
.tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .ticker-view { overflow-x: auto; mask-image: none; }
  .ticker .again { display: none; }
  .ticker-pause { display: none; }
}
