/* Filmy L2: tokens, page shell (header, masthead, chips, drawer, footer) and shared bits.
   Front page + list: list.css. Article, pages, 404 + form styles: article.css. */
:root {
    --bg: #071A1C; --surface: #0F2A2D; --line: #1D3D40; --green: #12494D; --brand: #0B2427;
    --accent: #FFB23F; --text: #EEF2EC; --muted: #9DB3AE; --soft: #D6E0DC;
    --head: "Eczar", Georgia, serif; --body: "Martel Sans", system-ui, sans-serif;
    --w: 1240px; --hd: 56px;
    /* old names, still used by the form styles */
    --nwt-bg: var(--bg); --nwt-surface: var(--surface); --nwt-line: var(--line); --nwt-text: var(--text);
    --nwt-muted: var(--muted); --nwt-primary: var(--accent); --f-head: var(--head); --f-body: var(--body);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.7 var(--body); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
body.nav-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
img { max-width: 100%; height: auto; }
svg { display: block; }
.ic { flex: none; }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.18; margin: 0; font-weight: 700; }
:lang(hi) h1, :lang(hi) h2, :lang(hi) h3, :lang(hi) h4 { line-height: 1.4; }
:lang(hi) p { line-height: 1.85; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; } /* the attribute wins over .btn etc. (Load more, drawer, copy button) */
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 24px; } }
.sr, .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; padding: 0; border: 0; }
.skip:focus { position: fixed !important; left: 12px; top: 12px; width: auto; height: auto; clip: auto; z-index: 200; background: var(--accent); color: var(--bg); padding: 10px 16px; border-radius: 8px; font-weight: 700; }
a.hl:hover, a:hover .hl { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
mark { background: rgba(255, 178, 63, .22); color: var(--text); border-bottom: 2px solid var(--accent); padding: 0 2px; border-radius: 2px; }

/* header bar (sticky everywhere) */
.hd { position: sticky; top: 0; z-index: 40; background: rgba(7, 26, 28, .97); border-bottom: 1px solid var(--line); }
.admin-bar .hd { top: 32px; }
@media (max-width: 782px) { .admin-bar .hd { top: 0; } }
.hd-in { display: flex; align-items: center; gap: 6px; height: var(--hd); }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; color: var(--text); cursor: pointer; flex: none; background: none; border: 0; padding: 0; }
.icon-btn:hover { background: var(--surface); }
.burger { margin-left: -8px; }
.logo { display: flex; align-items: center; height: 44px; flex: none; }
.logo svg { height: 34px; width: auto; }
.filmy-logo { display: inline-flex; align-items: center; line-height: 0; }
.filmy-logo__svg { display: block; }
.hd-nav { display: none; }
.hd-r { margin-left: auto; display: flex; align-items: center; gap: 4px; }
@media (min-width: 1024px) {
    .burger { display: none; }
    .hd-nav { display: flex; align-items: stretch; height: 100%; margin-left: 18px; }
    .hd-nav a { display: flex; align-items: center; padding: 0 12px; font: 600 15px/1 var(--body); color: var(--soft); border-bottom: 3px solid transparent; border-top: 3px solid transparent; white-space: nowrap; }
    .hd-nav a:hover { color: var(--text); }
    .hd-nav a[aria-current] { color: var(--accent); border-bottom-color: var(--accent); }
    .hd-nav .wk { color: var(--accent); }
    .is-home .hd .logo { display: none; }
    .is-home .hd-nav { margin-left: -12px; }
}
:lang(hi) .hd-nav a { font-size: 16px; }

/* masthead: desktop front page only */
.plate { display: none; }
@media (min-width: 1024px) {
    .plate { display: block; border-bottom: 1px solid var(--line); }
    .plate-in { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 26px 0 18px; }
    .plate .big svg { height: 78px; width: auto; }
    .plate .tag { margin: 0; font: 400 15px/1.3 var(--body); color: var(--muted); }
}

/* EN | हिं switch */
.nwt-lang { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; background: var(--surface); }
.nwt-lang a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 10px; border-radius: 999px; font: 700 14px/1 var(--body); color: var(--muted); }
.nwt-lang a[lang=hi] { font-size: 15px; }
.nwt-lang a:hover { color: var(--text); }
.nwt-lang a.on { background: var(--accent); color: var(--bg); }

/* chip row (phones / tablets) + chips everywhere */
.chips { border-bottom: 1px solid var(--line); }
.chips-in { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 8px 16px; max-width: var(--w); margin: 0 auto; }
.chips-in::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; font: 600 15px/1 var(--body); white-space: nowrap; color: var(--soft); flex: none; background: transparent; cursor: pointer; }
.chip:hover { border-color: var(--muted); }
.chip[aria-current], .chip.on { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.chip b { font-weight: 400; font-size: 13px; opacity: .8; }
@media (min-width: 1024px) { .chips.mob { display: none; } }

/* drawer */
.drawer { position: fixed; inset: 0 auto 0 0; z-index: 60; width: min(88vw, 360px); background: var(--bg); border-right: 1px solid var(--line); transform: translateX(-102%); transition: transform .22s ease; overflow-y: auto; padding: 0 16px 32px; }
.drawer.open { transform: none; }
.scrim { position: fixed; inset: 0; z-index: 55; background: rgba(0, 0, 0, .6); opacity: 0; transition: opacity .2s; }
.scrim.open { opacity: 1; }
.dr-top { display: flex; align-items: center; justify-content: space-between; height: var(--hd); border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.dr-top .logo svg { height: 30px; }
.dr-h { font: 700 12px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 18px 0 6px; }
.dr-list a { display: flex; align-items: center; justify-content: space-between; min-height: 48px; border-bottom: 1px solid var(--line); font: 600 17px/1.2 var(--head); }
.dr-list a span { font: 400 13px var(--body); color: var(--muted); }
.dr-list a[aria-current] { color: var(--accent); }
.dr-small { display: flex; flex-wrap: wrap; gap: 0 18px; margin-top: 18px; }
.dr-small a { min-height: 44px; display: inline-flex; align-items: center; color: var(--muted); font-size: 15px; }

/* search box */
.sbox { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 0 6px 0 12px; min-height: 48px; margin-bottom: 14px; color: var(--muted); }
.sbox input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text); font: 400 16px var(--body); height: 46px; }
.sbox input::placeholder { color: var(--muted); }
.sbox:focus-within { border-color: var(--muted); }
.sbox--big { border-color: var(--muted); max-width: 640px; }
.sbox--big input { font-size: 18px; height: 52px; }
.sbox .btn { min-height: 44px; padding: 0 18px; }

/* shared bits */
.kick { display: inline-block; font: 700 12px/1.3 var(--body); letter-spacing: .11em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
:lang(hi) .kick { font-size: 13px; text-transform: none; }
.meta { color: var(--muted); font-size: 14px; line-height: 1.5; }
.dot::before { content: "·"; margin: 0 6px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; background: var(--accent); color: var(--bg); font: 700 15px/1 var(--body); border: 0; cursor: pointer; text-align: center; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn:hover { filter: brightness(1.06); }
.btn[disabled] { opacity: .6; cursor: progress; }
.il { flex: none; width: 18px; height: 26px; }
.sec-h { display: flex; align-items: center; gap: 10px; border-top: 2px solid var(--text); border-bottom: 1px solid var(--line); padding: 6px 0; margin: 40px 0 20px; }
.sec-h h2 { font-size: 26px; font-weight: 700; }
.sec-h .more { margin-left: auto; display: inline-flex; align-items: center; gap: 2px; min-height: 44px; color: var(--accent); font: 600 15px/1 var(--body); white-space: nowrap; }

/* image frames: 16:9; portrait posters whole over a blurred, darkened copy of themselves (nwt_poster_attr) */
.fr { position: relative; aspect-ratio: 16 / 9; width: 100%; border-radius: 6px; overflow: hidden; background: linear-gradient(135deg, #12494D, #0B2427 60%, #3a2a0c); }
.fr img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.is-poster { background: #0B2427; }
.is-poster::before { content: ""; position: absolute; inset: -30px; background: var(--bg) center / cover no-repeat; filter: blur(24px) brightness(.45) saturate(1.2); transform: scale(1.1); }
.is-poster > img { object-fit: contain; }

/* "Most read" list (front page + list sidebar) */
.most h2 { font: 700 13px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; padding: 12px 0; border-top: 2px solid var(--text); border-bottom: 1px solid var(--line); }
:lang(hi) .most h2 { font-size: 16px; text-transform: none; }
.most ol { list-style: none; margin: 0; padding: 0; counter-reset: m; }
.most li a { display: grid; grid-template-columns: 40px 1fr; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line); min-height: 44px; counter-increment: m; }
.most li a::before { content: counter(m); font: 800 32px/1 var(--head); color: var(--accent); }
.most .t { font: 600 17px/1.3 var(--head); display: block; margin-bottom: 4px; }

/* tables (articles + the front page's "This week" box): scroll sideways inside the box; first column stays put */
.nwt-table { margin: 1.6em 0 1.8em; border: 1px solid var(--line); border-radius: 10px; overflow-x: auto; -webkit-overflow-scrolling: touch; background: var(--surface); }
.nwt-table table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; line-height: 1.45; margin: 0; }
.nwt-table th, .nwt-table td { font-family: var(--body); padding: 10px 14px; text-align: left; vertical-align: top; }
.nwt-table th { background: #12383B; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; border-bottom: 1px solid var(--line); }
:lang(hi) .nwt-table th { font-size: 14px; text-transform: none; }
.nwt-table td { color: rgba(238, 242, 236, .9); border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; min-width: 7.5em; }
.nwt-table tbody tr:first-child td { border-top: 0; }
.nwt-table td:first-child { color: var(--text); font-weight: 600; }
.nwt-table:has(tr > :nth-child(3)) th:first-child,
.nwt-table:has(tr > :nth-child(3)) td:first-child { position: sticky; left: 0; z-index: 1; background: var(--surface); box-shadow: 1px 0 0 var(--line); min-width: 8.5em; max-width: 44vw; }
.nwt-table:has(tr > :nth-child(3)) th:first-child { background: #12383B; }
@media (min-width: 768px) { .nwt-table:has(tr > :nth-child(3)) td:first-child { max-width: 260px; } }

/* ad slots (only rendered while ads are on): the space is reserved so nothing jumps when they fill */
.ad-slot { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; margin: 28px auto; width: 100%; }
.ad-lbl { font: 600 11px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.ad-mrec { min-height: 276px; max-width: 336px; }
.ad-banner { min-height: 276px; }
.ad-wide { min-height: 276px; }
@media (min-width: 768px) { .ad-banner, .ad-wide { min-height: 116px; } }

/* footer */
.ft { margin-top: 56px; border-top: 2px solid var(--text); padding: 28px 0 40px; color: var(--muted); font-size: 15px; }
.ft-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ft-brand { grid-column: 1 / -1; }
.ft-brand svg { margin-bottom: 8px; }
.ft-brand p { max-width: 380px; }
.ft h3 { font: 700 12px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--text); margin: 0 0 6px; }
:lang(hi) .ft h3 { font-size: 15px; text-transform: none; }
.ft ul { list-style: none; margin: 0; padding: 0; }
.ft li a { display: flex; align-items: center; min-height: 44px; color: var(--soft); }
.ft li a:hover { color: var(--accent); }
.ft-contact li { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.ft-contact li a { color: var(--accent); }
.ft-bottom { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 16px; font-size: 13px; display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; }
@media (min-width: 900px) { .ft-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } .ft-brand { grid-column: auto; } }

/* "read this in Hindi" bar for visitors whose phone/browser is set to Hindi (site.js, only once) */
.nwt-langbar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 120; max-width: 520px; margin: 0 auto; display: flex; align-items: center; gap: 12px; background: var(--green); border: 1px solid #1D5E62; color: #fff; border-radius: 14px; padding: 10px 12px; box-shadow: 0 10px 30px rgba(0,0,0,.35); font: 600 16px var(--body); }
.nwt-langbar a { margin-left: auto; background: var(--accent); color: var(--bg); border-radius: 999px; padding: 0 16px; min-height: 44px; display: inline-flex; align-items: center; white-space: nowrap; }
.nwt-langbar button { background: none; border: 0; color: #cfe0dc; font-size: 22px; width: 44px; height: 44px; cursor: pointer; }

.nwt-main { min-height: 60vh; }

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

/* letter-spacing breaks Devanagari conjuncts (kickers, headings, pills): none on Hindi pages */
html[lang="hi-IN"] * { letter-spacing: normal !important; }
