/* ============================================================
   MoviesSavvy — custom.css
   Single CSS file for the entire FRONTEND.
   Self-contained: no Tailwind, no CDN, no build pipeline.
   Aesthetic: Modern, clean editorial (ScreenRant-style).
   ============================================================ */

/* ---------- Root tokens ---------- */
:root {
    --c-bg: #ffffff;
    --c-surface: #f7f7f8;
    --c-surface-2: #efeff1;
    --c-text: #0f172a;          /* slate-900 */
    --c-text-soft: #334155;     /* slate-700 */
    --c-text-muted: #64748b;    /* slate-500 */
    --c-border: #e5e7eb;        /* gray-200 */
    --c-border-soft: #f1f5f9;   /* slate-100 */
    --c-brand: #e11d48;         /* rose-600 */
    --c-brand-dark: #be123c;    /* rose-700 */
    --c-brand-soft: #ffe4e6;    /* rose-100 */
    --c-ink: #0f172a;

    --font-sans: 'Manrope', ui-sans-serif, system-ui, sans-serif;
    --font-display: 'Outfit', 'Manrope', ui-sans-serif, system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;

    --radius: 14px;
    --radius-sm: 10px;
    --radius-lg: 20px;
    --radius-card: 14px;

    --shadow-card: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px -12px rgba(15, 23, 42, 0.08);
    --shadow-hover: 0 2px 4px rgba(15, 23, 42, 0.06), 0 20px 40px -15px rgba(15, 23, 42, 0.2);
}

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote, dl, dd, form { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
input, select, textarea, button { font: inherit; color: inherit; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

html { scroll-behavior: smooth; }
body {
    font-family: var(--font-sans);
    background: var(--c-bg);
    color: var(--c-text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "ss01", "kern";
}
::selection { background: var(--c-brand); color: #fff; }

h1, h2, h3, h4, h5, h6 { font-weight: inherit; font-size: inherit; }

/* ---------- Color palette aliases ---------- */
.bg-bg        { background-color: var(--c-bg); }
.bg-surface   { background-color: var(--c-surface); }
.bg-surface-2 { background-color: var(--c-surface-2); }
.bg-ink       { background-color: var(--c-ink); }
.bg-brand     { background-color: var(--c-brand); }
.bg-brand-dark{ background-color: var(--c-brand-dark); }
.bg-brand-soft{ background-color: var(--c-brand-soft); }
.bg-white     { background-color: #ffffff; }
.bg-transparent { background-color: transparent; }
.bg-line      { background-color: var(--c-border); }

.bg-surface\/60 { background-color: rgba(247, 247, 248, 0.6); }
.bg-white\/10 { background-color: rgba(255, 255, 255, 0.10); }
.bg-white\/15 { background-color: rgba(255, 255, 255, 0.15); }
.bg-white\/40 { background-color: rgba(255, 255, 255, 0.40); }
.bg-white\/95 { background-color: rgba(255, 255, 255, 0.95); }
.bg-muted\/40 { background-color: rgba(100, 116, 139, 0.40); }
.bg-muted\/50 { background-color: rgba(100, 116, 139, 0.50); }

.text-ink        { color: var(--c-text); }
.text-soft       { color: var(--c-text-soft); }
.text-muted      { color: var(--c-text-muted); }
.text-brand      { color: var(--c-brand); }
.text-brand-dark { color: var(--c-brand-dark); }
.text-white      { color: #ffffff; }
.text-line       { color: var(--c-border); }

.text-white\/40 { color: rgba(255, 255, 255, 0.40); }
.text-white\/50 { color: rgba(255, 255, 255, 0.50); }
.text-white\/60 { color: rgba(255, 255, 255, 0.60); }
.text-white\/70 { color: rgba(255, 255, 255, 0.70); }
.text-white\/85 { color: rgba(255, 255, 255, 0.85); }
.text-white\/90 { color: rgba(255, 255, 255, 0.90); }
.text-muted\/70 { color: rgba(100, 116, 139, 0.70); }

.placeholder\:text-white\/40::placeholder { color: rgba(255, 255, 255, 0.40); }

.border-line      { border-color: var(--c-border); }
.border-line-soft { border-color: var(--c-border-soft); }
.border-brand     { border-color: var(--c-brand); }
.border-transparent { border-color: transparent; }
.border-dashed    { border-style: dashed; }
.border-white\/10 { border-color: rgba(255, 255, 255, 0.10); }
.border-white\/15 { border-color: rgba(255, 255, 255, 0.15); }

/* hover/focus state colors */
.hover\:bg-brand:hover       { background-color: var(--c-brand); }
.hover\:bg-brand-dark:hover  { background-color: var(--c-brand-dark); }
.hover\:bg-surface:hover     { background-color: var(--c-surface); }
.hover\:bg-ink:hover         { background-color: var(--c-ink); }
.hover\:text-brand:hover     { color: var(--c-brand); }
.hover\:text-brand-dark:hover{ color: var(--c-brand-dark); }
.hover\:text-white:hover     { color: #ffffff; }
.hover\:border-brand:hover   { border-color: var(--c-brand); }
.hover\:border-ink:hover     { border-color: var(--c-ink); }

.focus\:bg-white\/15:focus      { background-color: rgba(255, 255, 255, 0.15); }
.focus\:border-brand:focus      { border-color: var(--c-brand); }
.focus\:border-white\/30:focus  { border-color: rgba(255, 255, 255, 0.30); }
.focus\:outline-none:focus      { outline: none; }
.focus-within\:bg-white\/15:focus-within { background-color: rgba(255, 255, 255, 0.15); }

.ring-brand { box-shadow: 0 0 0 2px var(--c-brand); }

/* legacy aliases */
.bg-brand-bg       { background-color: var(--c-bg); }
.text-brand-text   { color: var(--c-text); }
.bg-brand-primary  { background-color: var(--c-brand); }
.bg-brand-cta      { background-color: var(--c-brand); }
.text-brand-primary{ color: var(--c-brand); }
.text-brand-cta    { color: var(--c-brand); }
.shadow-premium    { box-shadow: var(--shadow-card); }
.hover\:shadow-premium-hover:hover { box-shadow: var(--shadow-hover); }
.shadow-card       { box-shadow: var(--shadow-card); }

/* ---------- Typography helpers ---------- */
.font-sans    { font-family: var(--font-sans); }
.font-display { font-family: var(--font-display); letter-spacing: -0.02em; }
.font-mono    { font-family: var(--font-mono); }

.font-normal    { font-weight: 400; }
.font-medium    { font-weight: 500; }
.font-semibold  { font-weight: 600; }
.font-bold      { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-black     { font-weight: 900; }

.italic       { font-style: italic; }
.uppercase    { text-transform: uppercase; }
.lowercase    { text-transform: lowercase; }
.normal-case  { text-transform: none; }

.text-left    { text-align: left; }
.text-center  { text-align: center; }
.text-right   { text-align: right; }

.tracking-tight   { letter-spacing: -0.025em; }
.tracking-normal  { letter-spacing: 0; }
.tracking-wide    { letter-spacing: 0.025em; }
.tracking-wider   { letter-spacing: 0.05em; }
.tracking-widest  { letter-spacing: 0.1em; }
.tracking-\[0\.14em\] { letter-spacing: 0.14em; }
.tracking-\[0\.18em\] { letter-spacing: 0.18em; }

.leading-none     { line-height: 1; }
.leading-tight    { line-height: 1.25; }
.leading-normal   { line-height: 1.5; }
.leading-relaxed  { line-height: 1.625; }
.leading-\[1\.05\] { line-height: 1.05; }
.leading-\[1\.1\]  { line-height: 1.1; }
.leading-\[1\.2\]  { line-height: 1.2; }
.leading-\[1\.22\] { line-height: 1.22; }
.leading-\[20px\]  { line-height: 20px; }

.text-sm  { font-size: 14px; }
.text-xs  { font-size: 12px; }

/* arbitrary text sizes used in templates */
.text-\[10px\]    { font-size: 10px; }
.text-\[10\.5px\] { font-size: 10.5px; }
.text-\[11px\]    { font-size: 11px; }
.text-\[11\.5px\] { font-size: 11.5px; }
.text-\[12px\]    { font-size: 12px; }
.text-\[12\.5px\] { font-size: 12.5px; }
.text-\[13px\]    { font-size: 13px; }
.text-\[13\.5px\] { font-size: 13.5px; }
.text-\[14px\]    { font-size: 14px; }
.text-\[14\.5px\] { font-size: 14.5px; }
.text-\[15px\]    { font-size: 15px; }
.text-\[15\.5px\] { font-size: 15.5px; }
.text-\[16px\]    { font-size: 16px; }
.text-\[16\.5px\] { font-size: 16.5px; }
.text-\[17px\]    { font-size: 17px; }
.text-\[17\.5px\] { font-size: 17.5px; }
.text-\[18px\]    { font-size: 18px; }
.text-\[19px\]    { font-size: 19px; }
.text-\[20px\]    { font-size: 20px; }
.text-\[22px\]    { font-size: 22px; }
.text-\[24px\]    { font-size: 24px; }
.text-\[26px\]    { font-size: 26px; }
.text-\[28px\]    { font-size: 28px; }
.text-\[30px\]    { font-size: 30px; }
.text-\[34px\]    { font-size: 34px; }
.text-\[40px\]    { font-size: 40px; }
.text-\[42px\]    { font-size: 42px; }
.text-\[52px\]    { font-size: 52px; }
.text-\[58px\]    { font-size: 58px; }
.text-\[64px\]    { font-size: 64px; }

.underline           { text-decoration: underline; }
.underline-offset-4  { text-underline-offset: 4px; }
.truncate            { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Display ---------- */
.block        { display: block; }
.inline-block { display: inline-block; }
.inline       { display: inline; }
.flex         { display: flex; }
.inline-flex  { display: inline-flex; }
.grid         { display: grid; }
.table        { display: table; }
.hidden       { display: none; }

/* ---------- Position / sizing ---------- */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed    { position: fixed; }
.sticky   { position: sticky; }
.static   { position: static; }

.inset-0    { top: 0; right: 0; bottom: 0; left: 0; }
.inset-x-0  { left: 0; right: 0; }
.top-0      { top: 0; }
.top-1\/2   { top: 50%; }
.top-5      { top: 1.25rem; }
.top-7      { top: 1.75rem; }
.top-28     { top: 7rem; }
.bottom-0   { bottom: 0; }
.left-0     { left: 0; }
.left-5     { left: 1.25rem; }
.left-7     { left: 1.75rem; }
.right-0    { right: 0; }
.right-3    { right: 0.75rem; }

.z-50    { z-index: 50; }
.z-\[60\]{ z-index: 60; }

.overflow-hidden  { overflow: hidden; }
.overflow-x-auto  { overflow-x: auto; }
.overflow-y-auto  { overflow-y: auto; }

.-translate-y-1\/2 { transform: translateY(-50%); }
.origin-left { transform-origin: left center; }

/* ---------- Sizing ---------- */
.w-px        { width: 1px; }
.w-1         { width: 0.25rem; }
.w-1\.5      { width: 0.375rem; }
.w-2         { width: 0.5rem; }
.w-2\.5      { width: 0.625rem; }
.w-3         { width: 0.75rem; }
.w-3\.5      { width: 0.875rem; }
.w-4         { width: 1rem; }
.w-5         { width: 1.25rem; }
.w-6         { width: 1.5rem; }
.w-7         { width: 1.75rem; }
.w-8         { width: 2rem; }
.w-9         { width: 2.25rem; }
.w-10        { width: 2.5rem; }
.w-14        { width: 3.5rem; }
.w-\[82px\]  { width: 82px; }
.w-\[200px\] { width: 200px; }
.w-\[220px\] { width: 220px; }
.w-full      { width: 100%; }
.w-auto      { width: auto; }

.h-px        { height: 1px; }
.h-1         { height: 0.25rem; }
.h-1\.5      { height: 0.375rem; }
.h-2         { height: 0.5rem; }
.h-2\.5      { height: 0.625rem; }
.h-3         { height: 0.75rem; }
.h-3\.5      { height: 0.875rem; }
.h-6         { height: 1.5rem; }
.h-8         { height: 2rem; }
.h-9         { height: 2.25rem; }
.h-10        { height: 2.5rem; }
.h-14        { height: 3.5rem; }
.h-\[2px\]   { height: 2px; }
.h-\[3px\]   { height: 3px; }
.h-\[70px\]  { height: 70px; }
.h-\[82px\]  { height: 82px; }
.h-full      { height: 100%; }

.min-w-0           { min-width: 0; }
.min-h-screen      { min-height: 100vh; }
.min-h-\[200px\]   { min-height: 200px; }

.max-w-md         { max-width: 28rem; }
.max-w-2xl        { max-width: 42rem; }
.max-w-3xl        { max-width: 48rem; }
.max-w-4xl        { max-width: 56rem; }
.max-w-none       { max-width: none; }
.max-w-\[1280px\] { max-width: 1280px; }
.max-w-\[820px\]  { max-width: 820px; }
.max-w-\[720px\]  { max-width: 720px; }
.max-w-\[20ch\]   { max-width: 20ch; }
.max-w-\[22ch\]   { max-width: 22ch; }
.max-w-\[60ch\]   { max-width: 60ch; }

/* ---------- Spacing scale: gap / padding / margin ---------- */
/* gap */
.gap-0   { gap: 0; }
.gap-1   { gap: 0.25rem; }
.gap-1\.5{ gap: 0.375rem; }
.gap-2   { gap: 0.5rem; }
.gap-2\.5{ gap: 0.625rem; }
.gap-3   { gap: 0.75rem; }
.gap-4   { gap: 1rem; }
.gap-5   { gap: 1.25rem; }
.gap-6   { gap: 1.5rem; }
.gap-7   { gap: 1.75rem; }
.gap-8   { gap: 2rem; }
.gap-10  { gap: 2.5rem; }

/* padding all sides */
.p-0  { padding: 0; }
.p-3  { padding: 0.75rem; }
.p-4  { padding: 1rem; }
.p-5  { padding: 1.25rem; }
.p-6  { padding: 1.5rem; }
.p-7  { padding: 1.75rem; }
.p-8  { padding: 2rem; }
.p-9  { padding: 2.25rem; }
.p-10 { padding: 2.5rem; }
.p-14 { padding: 3.5rem; }

.px-0   { padding-left: 0; padding-right: 0; }
.px-3   { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-3\.5{ padding-left: 0.875rem; padding-right: 0.875rem; }
.px-4   { padding-left: 1rem; padding-right: 1rem; }
.px-5   { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-8   { padding-left: 2rem; padding-right: 2rem; }

.py-1   { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5{ padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2   { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5{ padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3   { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4   { padding-top: 1rem; padding-bottom: 1rem; }
.py-5   { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-6   { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-7   { padding-top: 1.75rem; padding-bottom: 1.75rem; }
.py-12  { padding-top: 3rem; padding-bottom: 3rem; }
.py-14  { padding-top: 3.5rem; padding-bottom: 3.5rem; }

.pt-0  { padding-top: 0; }
.pt-0\.5{ padding-top: 0.125rem; }
.pt-3  { padding-top: 0.75rem; }
.pt-4  { padding-top: 1rem; }
.pt-5  { padding-top: 1.25rem; }
.pt-6  { padding-top: 1.5rem; }
.pt-7  { padding-top: 1.75rem; }
.pt-8  { padding-top: 2rem; }
.pt-10 { padding-top: 2.5rem; }
.pt-12 { padding-top: 3rem; }
.pt-14 { padding-top: 3.5rem; }
.pt-16 { padding-top: 4rem; }

.pb-0  { padding-bottom: 0; }
.pb-0\.5{ padding-bottom: 0.125rem; }
.pb-2  { padding-bottom: 0.5rem; }
.pb-3  { padding-bottom: 0.75rem; }
.pb-4  { padding-bottom: 1rem; }
.pb-5  { padding-bottom: 1.25rem; }
.pb-8  { padding-bottom: 2rem; }
.pb-10 { padding-bottom: 2.5rem; }
.pb-12 { padding-bottom: 3rem; }
.pb-16 { padding-bottom: 4rem; }

.pl-4  { padding-left: 1rem; }
.pl-6  { padding-left: 1.5rem; }
.pr-10 { padding-right: 2.5rem; }

.first\:pt-0:first-child { padding-top: 0; }

.m-0    { margin: 0; }
.mx-auto{ margin-left: auto; margin-right: auto; }

.mt-0   { margin-top: 0; }
.mt-1   { margin-top: 0.25rem; }
.mt-1\.5{ margin-top: 0.375rem; }
.mt-2   { margin-top: 0.5rem; }
.mt-3   { margin-top: 0.75rem; }
.mt-4   { margin-top: 1rem; }
.mt-5   { margin-top: 1.25rem; }
.mt-6   { margin-top: 1.5rem; }
.mt-7   { margin-top: 1.75rem; }
.mt-8   { margin-top: 2rem; }
.mt-10  { margin-top: 2.5rem; }
.mt-12  { margin-top: 3rem; }
.mt-14  { margin-top: 3.5rem; }
.mt-16  { margin-top: 4rem; }
.mt-20  { margin-top: 5rem; }

.mb-0   { margin-bottom: 0; }
.mb-1   { margin-bottom: 0.25rem; }
.mb-1\.5{ margin-bottom: 0.375rem; }
.mb-2   { margin-bottom: 0.5rem; }
.mb-3   { margin-bottom: 0.75rem; }
.mb-4   { margin-bottom: 1rem; }
.mb-5   { margin-bottom: 1.25rem; }
.mb-6   { margin-bottom: 1.5rem; }
.mb-8   { margin-bottom: 2rem; }
.mb-10  { margin-bottom: 2.5rem; }
.mb-12  { margin-bottom: 3rem; }

.ml-0   { margin-left: 0; }
.ml-1   { margin-left: 0.25rem; }
.ml-1\.5{ margin-left: 0.375rem; }
.-ml-\[68px\] { margin-left: -68px; }

.mr-1   { margin-right: 0.25rem; }
.mr-2   { margin-right: 0.5rem; }
.mr-6   { margin-right: 1.5rem; }

/* ---------- Flex / grid ---------- */
.flex-1            { flex: 1 1 0%; }
.flex-col          { flex-direction: column; }
.flex-row          { flex-direction: row; }
.flex-col-reverse  { flex-direction: column-reverse; }
.flex-wrap         { flex-wrap: wrap; }
.shrink-0          { flex-shrink: 0; }
.grow              { flex-grow: 1; }
.float-left        { float: left; }

.items-center      { align-items: center; }
.items-start       { align-items: flex-start; }
.items-end         { align-items: flex-end; }
.items-baseline    { align-items: baseline; }

.justify-center    { justify-content: center; }
.justify-between   { justify-content: space-between; }
.justify-end       { justify-content: flex-end; }
.justify-start     { justify-content: flex-start; }

.grid-cols-1  { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2  { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3  { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4  { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-cols-6  { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }

.col-span-1  { grid-column: span 1 / span 1; }
.col-span-2  { grid-column: span 2 / span 2; }
.col-span-3  { grid-column: span 3 / span 3; }
.col-span-4  { grid-column: span 4 / span 4; }
.col-span-5  { grid-column: span 5 / span 5; }
.col-span-6  { grid-column: span 6 / span 6; }
.col-span-7  { grid-column: span 7 / span 7; }
.col-span-8  { grid-column: span 8 / span 8; }
.col-span-9  { grid-column: span 9 / span 9; }
.col-span-10 { grid-column: span 10 / span 10; }
.col-span-11 { grid-column: span 11 / span 11; }
.col-span-12 { grid-column: span 12 / span 12; }

.gap-x-3  { column-gap: 0.75rem; }
.gap-x-4  { column-gap: 1rem; }
.gap-x-10 { column-gap: 2.5rem; }
.gap-y-1\.5 { row-gap: 0.375rem; }
.gap-y-3  { row-gap: 0.75rem; }
.gap-y-7  { row-gap: 1.75rem; }

.space-y-2  > * + * { margin-top: 0.5rem; }
.space-y-3  > * + * { margin-top: 0.75rem; }
.space-y-5  > * + * { margin-top: 1.25rem; }
.space-y-12 > * + * { margin-top: 3rem; }
.space-x-1  > * + * { margin-left: 0.25rem; }

/* ---------- Borders / radius ---------- */
.border    { border-width: 1px; border-style: solid; border-color: var(--c-border); }
.border-0  { border-width: 0; }
.border-t  { border-top-width: 1px; border-top-style: solid; border-top-color: var(--c-border); }
.border-b  { border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: var(--c-border); }
.border-l  { border-left-width: 1px; border-left-style: solid; border-left-color: var(--c-border); }
.border-r  { border-right-width: 1px; border-right-style: solid; border-right-color: var(--c-border); }

.rounded-full   { border-radius: 9999px; }
.rounded-card   { border-radius: var(--radius-card); }
.rounded-sm     { border-radius: 4px; }
.rounded-md     { border-radius: 6px; }
.rounded-lg     { border-radius: var(--radius-sm); }
.rounded-xl     { border-radius: 12px; }
.rounded-\[10px\] { border-radius: 10px; }

/* ---------- Effects ---------- */
.opacity-0    { opacity: 0; }
.opacity-40   { opacity: 0.4; }
.opacity-100  { opacity: 1; }

.transition-colors    { transition: background-color 0.2s, border-color 0.2s, color 0.2s, fill 0.2s, stroke 0.2s; }
.transition-transform { transition: transform 0.2s; }
.transition-all       { transition: all 0.2s; }
.transition-opacity   { transition: opacity 0.2s; }
.duration-300         { transition-duration: 0.3s; }
.duration-750         { transition-duration: 0.75s; }
.delay-300            { transition-delay: 0.3s; }

/* group hover variants */
.group:hover .group-hover\:bg-brand        { background-color: var(--c-brand); }
.group:hover .group-hover\:border-brand    { border-color: var(--c-brand); }
.group:hover .group-hover\:text-brand      { color: var(--c-brand); }
.group:hover .group-hover\:text-white\/60  { color: rgba(255, 255, 255, 0.60); }
.group:hover .group-hover\:translate-x-0\.5 { transform: translateX(0.125rem); }

/* ---------- Misc ---------- */
.cursor-pointer       { cursor: pointer; }
.cursor-not-allowed   { cursor: not-allowed; }
.pointer-events-none  { pointer-events: none; }
.appearance-none      { appearance: none; -webkit-appearance: none; -moz-appearance: none; }
.antialiased          { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.scroll-smooth        { scroll-behavior: smooth; }
.align-middle         { vertical-align: middle; }

/* sr-only accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* aspect ratios */
.aspect-\[16\/10\] { aspect-ratio: 16 / 10; }
.aspect-\[16\/9\]  { aspect-ratio: 16 / 9; }
.aspect-\[4\/5\]   { aspect-ratio: 4 / 5; }
.aspect-\[3\/2\]   { aspect-ratio: 3 / 2; }
.aspect-\[4\/3\]   { aspect-ratio: 4 / 3; }
.aspect-auto       { aspect-ratio: auto; }
.aspect-16-10      { aspect-ratio: 16 / 10; }
.aspect-3-2        { aspect-ratio: 3 / 2; }
.aspect-4-3        { aspect-ratio: 4 / 3; }
.aspect-1-1        { aspect-ratio: 1 / 1; }

/* animate-pulse keyframes */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.5; }
}
.animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }

/* ============================================================
   Components (theme)
   ============================================================ */

/* ---------- Headlines ---------- */
.headline-1 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.025em; line-height: 1.02; }
.headline-2 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.08; }
.headline-3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.015em; line-height: 1.15; }
.eyebrow    { font-family: var(--font-sans); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; font-size: 11px; }
.meta       { font-family: var(--font-sans); font-size: 12.5px; color: var(--c-text-muted); letter-spacing: 0.01em; }
.byline     { font-family: var(--font-sans); font-weight: 600; font-size: 12px; letter-spacing: 0.02em; }

/* ---------- Cards / media ---------- */
.card {
    background: var(--c-bg);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }

.media {
    position: relative;
    overflow: hidden;
    background: var(--c-surface-2);
}
.media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.card:hover .media img,
.group:hover .media img { transform: scale(1.05); }

/* ---------- Category pill ---------- */
.cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-sans);
    font-weight: 800;
    font-size: 10.5px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--c-brand);
}
.cat-pill::before {
    content: "";
    width: 12px;
    height: 2px;
    background: var(--c-brand);
    display: inline-block;
}

.tag-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 12px;
    color: var(--c-text-soft);
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: 999px;
    transition: all 0.25s ease;
}
.tag-chip:hover {
    color: #fff;
    background: var(--c-ink);
    border-color: var(--c-ink);
}

/* ---------- Title-link underline animation ---------- */
.title-link {
    background-image: linear-gradient(var(--c-brand), var(--c-brand));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0% 2px;
    transition: background-size 0.45s cubic-bezier(0.22, 1, 0.36, 1), color 0.3s ease;
}
.title-link:hover { background-size: 100% 2px; color: var(--c-brand); }

/* ---------- Top breaking ticker ---------- */
@keyframes breakingMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.breaking-track {
    display: flex;
    gap: 3rem;
    white-space: nowrap;
    animation: breakingMarquee 55s linear infinite;
    width: max-content;
}

/* ---------- Page-load reveals ---------- */
@keyframes riseIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}
.rise   { opacity: 0; animation: riseIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.rise-1 { animation-delay: 0.02s; }
.rise-2 { animation-delay: 0.10s; }
.rise-3 { animation-delay: 0.18s; }
.rise-4 { animation-delay: 0.26s; }
.rise-5 { animation-delay: 0.34s; }
.rise-6 { animation-delay: 0.42s; }
.rise-7 { animation-delay: 0.50s; }

/* ---------- Nav link ---------- */
.nav-link {
    position: relative;
    padding: 8px 2px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 13.5px;
    color: var(--c-text);
    transition: color 0.25s ease;
}
.nav-link::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    background: var(--c-brand);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-link:hover { color: var(--c-brand); }
.nav-link:hover::after,
.nav-link.is-active::after { transform: scaleX(1); }
.nav-link.is-active { color: var(--c-brand); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.01em;
    transition: all 0.25s ease;
    cursor: pointer;
    border: 1px solid transparent;
}
.btn-primary {
    background: var(--c-brand);
    color: #fff;
}
.btn-primary:hover { background: var(--c-brand-dark); }
.btn-ghost {
    background: transparent;
    color: var(--c-text);
    border-color: var(--c-border);
}
.btn-ghost:hover { border-color: var(--c-ink); color: var(--c-ink); background: var(--c-surface); }
.btn-ink {
    background: var(--c-ink);
    color: #fff;
}
.btn-ink:hover { background: #1e293b; }

/* ---------- Section heading ---------- */
.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 14px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--c-border);
}
.section-head h2 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 22px;
    letter-spacing: -0.02em;
    color: var(--c-ink);
    position: relative;
    padding-left: 16px;
}
.section-head h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    background: var(--c-brand);
    border-radius: 2px;
}
.section-head .view-all,
.section-head a.view-all {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 12.5px;
    color: var(--c-text-muted);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}
.section-head .view-all:hover { color: var(--c-brand); }
.section-head .view-all svg { transition: transform 0.25s ease; }
.section-head .view-all:hover svg { transform: translateX(3px); }

/* ---------- Trending rank number ---------- */
.rank-num {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 40px;
    line-height: 0.9;
    color: var(--c-border);
    transition: color 0.3s ease;
}
.group:hover .rank-num { color: var(--c-brand); }

/* ---------- Line clamps ---------- */
.clamp-1 { display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden; }
.clamp-2 { display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden; }
.clamp-3 { display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden; }

/* ---------- Hero scrim ---------- */
.scrim {
    background: linear-gradient(to top, rgba(15,23,42,0.88) 0%, rgba(15,23,42,0.35) 45%, rgba(15,23,42,0) 80%);
}

/* ---------- Divider ---------- */
.divide-line > * + * { border-top: 1px solid var(--c-border); }

/* ---------- No-scrollbar ---------- */
.no-scrollbar { scrollbar-width: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }

/* ---------- Subtle grid background ---------- */
.bg-grid {
    background-image:
        linear-gradient(rgba(15,23,42,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15,23,42,0.04) 1px, transparent 1px);
    background-size: 32px 32px;
}

/* ---------- Image-missing placeholder card ----------
   Used by category / tag list cards when an article has no real
   featured_image on disk. Shows the article-title initial in a
   subtle brand-tinted gradient so the row doesn't read as broken. */
.thumb-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(120% 120% at 0% 0%, rgba(225, 29, 72, 0.18), transparent 60%),
        linear-gradient(135deg, #f7f7f8 0%, #efeff1 100%);
    color: var(--c-ink);
    overflow: hidden;
}
.thumb-placeholder::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.6;
    pointer-events: none;
}
.thumb-placeholder__letter {
    position: relative;
    z-index: 1;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(28px, 6vw, 56px);
    line-height: 1;
    letter-spacing: -0.04em;
    color: rgba(15, 23, 42, 0.75);
}
.thumb-placeholder--hero {
    background:
        radial-gradient(80% 80% at 100% 0%, rgba(225, 29, 72, 0.35), transparent 60%),
        linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}
.thumb-placeholder--hero .thumb-placeholder__letter {
    font-size: clamp(60px, 10vw, 140px);
    color: rgba(255, 255, 255, 0.92);
}
.thumb-placeholder--hero::before {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.4;
}

/* ============================================================
   Responsive variants — sm: ≥640px  md: ≥768px  lg: ≥1024px
   ============================================================ */
@media (min-width: 640px) {
    .sm\:inline         { display: inline; }
    .sm\:inline-block   { display: inline-block; }
    .sm\:block          { display: block; }
    .sm\:flex           { display: flex; }
    .sm\:flex-row       { flex-direction: row; }
    .sm\:grid-cols-2    { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sm\:col-span-4     { grid-column: span 4 / span 4; }
    .sm\:col-span-8     { grid-column: span 8 / span 8; }
    .sm\:gap-5          { gap: 1.25rem; }
    .sm\:aspect-\[3\/2\] { aspect-ratio: 3 / 2; }
    .sm\:text-\[19px\]   { font-size: 19px; }
    .sm\:text-\[34px\]   { font-size: 34px; }
    .sm\:text-\[40px\]   { font-size: 40px; }
    .sm\:text-\[52px\]   { font-size: 52px; }
}

@media (min-width: 768px) {
    .md\:inline         { display: inline; }
    .md\:inline-block   { display: inline-block; }
    .md\:inline-flex    { display: inline-flex; }
    .md\:block          { display: block; }
    .md\:flex           { display: flex; }
    .md\:grid           { display: grid; }
    .md\:hidden         { display: none; }
    .md\:flex-row       { flex-direction: row; }
    .md\:items-start    { align-items: flex-start; }
    .md\:items-end      { align-items: flex-end; }
    .md\:justify-between{ justify-content: space-between; }
    .md\:grid-cols-3    { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:grid-cols-4    { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .md\:grid-cols-12   { grid-template-columns: repeat(12, minmax(0, 1fr)); }
    .md\:col-span-2     { grid-column: span 2 / span 2; }
    .md\:col-span-3     { grid-column: span 3 / span 3; }
    .md\:col-span-4     { grid-column: span 4 / span 4; }
    .md\:col-span-5     { grid-column: span 5 / span 5; }
    .md\:col-span-7     { grid-column: span 7 / span 7; }
    .md\:col-span-8     { grid-column: span 8 / span 8; }
    .md\:col-span-9     { grid-column: span 9 / span 9; }
    .md\:border-l       { border-left-width: 1px; border-left-style: solid; border-left-color: var(--c-border); }

    .md\:gap-5  { gap: 1.25rem; }
    .md\:gap-6  { gap: 1.5rem; }
    .md\:gap-7  { gap: 1.75rem; }
    .md\:gap-8  { gap: 2rem; }

    .md\:px-8   { padding-left: 2rem; padding-right: 2rem; }
    .md\:p-6    { padding: 1.5rem; }
    .md\:p-8    { padding: 2rem; }
    .md\:p-9    { padding: 2.25rem; }
    .md\:p-10   { padding: 2.5rem; }
    .md\:p-14   { padding: 3.5rem; }
    .md\:py-7   { padding-top: 1.75rem; padding-bottom: 1.75rem; }
    .md\:py-16  { padding-top: 4rem; padding-bottom: 4rem; }
    .md\:py-20  { padding-top: 5rem; padding-bottom: 5rem; }
    .md\:pt-7   { padding-top: 1.75rem; }
    .md\:pt-10  { padding-top: 2.5rem; }
    .md\:pt-12  { padding-top: 3rem; }
    .md\:pt-14  { padding-top: 3.5rem; }
    .md\:pb-4   { padding-bottom: 1rem; }
    .md\:pb-5   { padding-bottom: 1.25rem; }
    .md\:pb-10  { padding-bottom: 2.5rem; }
    .md\:pl-6   { padding-left: 1.5rem; }
    .md\:mb-16  { margin-bottom: 4rem; }
    .md\:mt-4   { margin-top: 1rem; }
    .md\:mt-9   { margin-top: 2.25rem; }
    .md\:mt-10  { margin-top: 2.5rem; }
    .md\:mt-20  { margin-top: 5rem; }
    .md\:mt-24  { margin-top: 6rem; }
    .md\:left-7 { left: 1.75rem; }
    .md\:top-7  { top: 1.75rem; }
    .md\:h-12   { height: 3rem; }
    .md\:w-\[220px\] { width: 220px; }
    .md\:rounded-card{ border-radius: var(--radius-card); }

    .md\:text-\[14px\]    { font-size: 14px; }
    .md\:text-\[15\.5px\] { font-size: 15.5px; }
    .md\:text-\[16px\]    { font-size: 16px; }
    .md\:text-\[16\.5px\] { font-size: 16.5px; }
    .md\:text-\[19px\]    { font-size: 19px; }
    .md\:text-\[20px\]    { font-size: 20px; }
    .md\:text-\[22px\]    { font-size: 22px; }
    .md\:text-\[24px\]    { font-size: 24px; }
    .md\:text-\[26px\]    { font-size: 26px; }
    .md\:text-\[28px\]    { font-size: 28px; }
    .md\:text-\[30px\]    { font-size: 30px; }
    .md\:text-\[42px\]    { font-size: 42px; }
    .md\:text-\[52px\]    { font-size: 52px; }
    .md\:text-\[64px\]    { font-size: 64px; }
}

@media (min-width: 1024px) {
    .lg\:flex           { display: flex; }
    .lg\:hidden         { display: none; }
    .lg\:block          { display: block; }
    .lg\:inline-block   { display: inline-block; }
    .lg\:sticky         { position: sticky; }
    .lg\:top-28         { top: 7rem; }
    .lg\:h-full         { height: 100%; }

    .lg\:grid-cols-6    { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .lg\:grid-cols-12   { grid-template-columns: repeat(12, minmax(0, 1fr)); }
    .lg\:col-span-4     { grid-column: span 4 / span 4; }
    .lg\:col-span-8     { grid-column: span 8 / span 8; }

    .lg\:gap-8  { gap: 2rem; }
    .lg\:gap-14 { gap: 3.5rem; }
    .lg\:gap-16 { gap: 4rem; }

    .lg\:aspect-\[16\/10\] { aspect-ratio: 16 / 10; }
    .lg\:aspect-\[16\/9\]  { aspect-ratio: 16 / 9; }
    .lg\:aspect-auto       { aspect-ratio: auto; }

    .lg\:text-\[58px\] { font-size: 58px; }
    .lg\:text-\[62px\] { font-size: 62px; }
}

/* ---------- Print-friendly overrides ---------- */
@media (max-width: 768px) {
    .section-head h2 { font-size: 18px; }
}

/* ============================================================
   Article (long-form) typography
   ============================================================ */
.article-content {
    font-family: var(--font-sans);
    color: var(--c-text);
    font-size: 17.5px;
    line-height: 1.78;
    font-weight: 400;
}
.article-content > *:first-child { margin-top: 0; }
.article-content > *:last-child { margin-bottom: 0; }

.article-content p {
    margin: 0 0 1.5em;
    color: #1f2937;
}

.article-content p > strong,
.article-content b { color: var(--c-ink); font-weight: 700; }

.article-content em,
.article-content i { font-style: italic; }

.article-content a {
    color: var(--c-brand);
    font-weight: 600;
    border-bottom: 1px solid rgba(225, 29, 72, 0.3);
    transition: border-color 0.2s ease, color 0.2s ease;
}
.article-content a:hover { color: var(--c-brand-dark); border-bottom-color: var(--c-brand-dark); }

.article-content > p:first-of-type::first-letter {
    font-family: var(--font-display);
    font-weight: 800;
    float: left;
    font-size: 4.6em;
    line-height: 0.88;
    padding: 0.08em 0.12em 0 0;
    color: var(--c-ink);
}

.article-content h2 {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -0.02em;
    font-size: 1.85em;
    line-height: 1.15;
    color: var(--c-ink);
    margin: 2.4em 0 0.7em;
    position: relative;
    padding-left: 18px;
}
.article-content h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 5px;
    background: var(--c-brand);
    border-radius: 3px;
}

.article-content h3 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.015em;
    font-size: 1.45em;
    line-height: 1.2;
    color: var(--c-ink);
    margin: 2em 0 0.6em;
}

.article-content h4 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15em;
    color: var(--c-ink);
    margin: 1.8em 0 0.5em;
}

.article-content ul,
.article-content ol {
    margin: 0 0 1.5em;
    padding-left: 1.4em;
}
.article-content ul { list-style: none; }
.article-content ul > li {
    position: relative;
    padding-left: 1.2em;
    margin-bottom: 0.6em;
}
.article-content ul > li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 0.55em;
    height: 2px;
    background: var(--c-brand);
    border-radius: 2px;
}
.article-content ol { list-style: decimal; }
.article-content ol > li { margin-bottom: 0.6em; }
.article-content ol > li::marker { color: var(--c-brand); font-weight: 700; }

.article-content blockquote {
    margin: 2em 0;
    padding: 1.2em 1.5em 1.2em 1.8em;
    border-left: 4px solid var(--c-brand);
    background: var(--c-surface);
    border-radius: 0 12px 12px 0;
    font-family: var(--font-display);
    font-weight: 600;
    font-style: italic;
    font-size: 1.3em;
    line-height: 1.45;
    color: var(--c-ink);
}
.article-content blockquote p { margin: 0; }
.article-content blockquote cite {
    display: block;
    font-style: normal;
    font-family: var(--font-sans);
    font-size: 0.65em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--c-text-muted);
    margin-top: 0.8em;
}

.article-content img,
.article-content figure {
    margin: 2.2em 0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}
.article-content figure img { border-radius: 0; box-shadow: none; margin: 0; }
.article-content figure figcaption {
    padding: 0.8em 1.2em 1.1em;
    font-size: 0.8em;
    color: var(--c-text-muted);
    font-style: italic;
    background: var(--c-bg);
    border-top: 1px solid var(--c-border);
}

.article-content hr {
    border: 0;
    height: 1px;
    background: var(--c-border);
    margin: 2.5em 0;
}

.article-content pre {
    background: var(--c-ink);
    color: #f1f5f9;
    padding: 1.2em 1.4em;
    border-radius: 12px;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 0.85em;
    line-height: 1.55;
    margin: 1.8em 0;
}
.article-content code {
    font-family: var(--font-mono);
    font-size: 0.85em;
    background: var(--c-surface);
    padding: 0.15em 0.45em;
    border-radius: 6px;
    color: var(--c-ink);
}
.article-content pre code { background: transparent; padding: 0; color: inherit; }

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2em 0;
    font-size: 0.93em;
}
.article-content th,
.article-content td {
    padding: 0.75em 1em;
    text-align: left;
    border-bottom: 1px solid var(--c-border);
}
.article-content th {
    font-family: var(--font-display);
    font-weight: 700;
    background: var(--c-surface);
}

.article-content iframe,
.article-content video {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    margin: 2em 0;
    border: 0;
}

@media (max-width: 640px) {
    .article-content { font-size: 16.5px; line-height: 1.72; }
    .article-content h2 { font-size: 1.55em; }
    .article-content h3 { font-size: 1.25em; }
    .article-content blockquote { font-size: 1.1em; }
    .article-content > p:first-of-type::first-letter { font-size: 3.8em; }
}

/* =====================================================================
   Pagination — used by Laravel paginator via vendor/pagination/moviessavvy
   ===================================================================== */
.sn-pagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    margin: 2.5rem 0 0.5rem;
}
.sn-pagination-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    justify-content: center;
}
.sn-pagination-list li { display: inline-flex; }
.sn-pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.4rem;
    height: 2.4rem;
    padding: 0 0.55rem;
    border-radius: 9999px;
    border: 1px solid var(--c-border);
    background: #fff;
    color: var(--c-ink);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 13.5px;
    line-height: 1;
    text-decoration: none;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
    user-select: none;
}
.sn-pagination-link:hover {
    border-color: var(--c-ink);
    background: var(--c-surface);
    color: var(--c-ink);
}
.sn-pagination-link:active { transform: translateY(1px); }
.sn-pagination-link.is-active {
    background: var(--c-ink);
    border-color: var(--c-ink);
    color: #fff;
    cursor: default;
    pointer-events: none;
}
.sn-pagination-link.is-disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
    color: var(--c-muted, #64748b);
}
.sn-pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.8rem;
    height: 2.4rem;
    color: var(--c-muted, #64748b);
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.05em;
    user-select: none;
}
.sn-pagination-meta {
    margin: 0;
    color: var(--c-muted, #64748b);
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.sn-pagination-meta strong {
    color: var(--c-ink);
    font-weight: 700;
    font-family: var(--font-display);
    text-transform: none;
    letter-spacing: 0;
    font-size: 12.5px;
}

@media (max-width: 480px) {
    .sn-pagination-link { min-width: 2.2rem; height: 2.2rem; font-size: 12.5px; }
    .sn-pagination-list { gap: 0.3rem; }
}

/* =====================================================================
   Hero card — single content block, switches between "stacked below image"
   on mobile and "overlaid on image with scrim" on desktop. Avoids
   duplicating headlines/excerpts in the source HTML.
   ===================================================================== */
.hero-card { position: relative; }
.hero-card__media { position: relative; }
.hero-card__badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    background: var(--c-brand);
    color: #fff;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.hero-card__badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 9999px;
    background: #fff;
    animation: pulse 2s infinite;
}

/* Mobile: content below image, light theme. */
.hero-card__content {
    margin-top: 1rem;
    color: var(--c-ink);
}
.hero-card__title {
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--c-ink);
    line-height: 1.18;
    transition: color 0.25s ease;
    /* clamp 3 lines */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hero-card--main .hero-card__title { font-size: 22px; }
.hero-card--side .hero-card__title { font-size: 16px; }
/* Mobile / stacked layout: title flips to brand on hover. The desktop
   overlay overrides this below since brand-red on the dark scrim is
   poor contrast — instead we keep white and just rely on the underline. */
.hero-card .group:hover .hero-card__title,
.group:hover .hero-card__title { color: var(--c-brand); }
.hero-card__excerpt {
    margin-top: 0.5rem;
    color: var(--c-text-soft);
    font-size: 14px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hero-card__meta {
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    color: var(--c-text-muted);
    font-size: 11.5px;
}
.hero-card__meta .byline { color: var(--c-ink); font-weight: 700; }
.hero-card__dot {
    width: 4px;
    height: 4px;
    border-radius: 9999px;
    background: rgba(100, 116, 139, 0.5);
    flex-shrink: 0;
}

/* Desktop: overlay the same content block on top of the image, dark theme. */
@media (min-width: 768px) {
    .hero-card__media::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(to top, rgba(15,23,42,0.88) 0%, rgba(15,23,42,0.35) 45%, rgba(15,23,42,0) 80%);
        border-radius: inherit;
        pointer-events: none;
    }
    .hero-card__content {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        margin: 0;
        /* Cap the content panel to ~50% of the image height so the artwork
           stays the dominant element and the headline doesn't crowd it. */
        max-height: 50%;
        padding: 1.25rem 1.5rem;
        color: #fff;
        overflow: hidden;
    }
    .hero-card__title {
        color: #fff;
        line-height: 1.15;
        /* Tighter clamp on desktop so a long headline doesn't bleed past
           the 40% panel cap. Mobile keeps the 3-line clamp from the base
           rule above. */
        -webkit-line-clamp: 2;
    }
    /* Override the global brand-on-hover rule for the desktop overlay.
       Brand-red on the dark scrim reads poorly; keep the title white and
       let the .card:hover transform/shadow signal interactivity. */
    .group:hover .hero-card__title,
    .hero-card .group:hover .hero-card__title { color: #fff; }
    .hero-card--main .hero-card__title { font-size: 26px; max-width: 26ch; }
    .hero-card--side .hero-card__title { font-size: 16px; }
    .hero-card__excerpt {
        color: rgba(255,255,255,0.85);
        font-size: 13px;
        max-width: 56ch;
        -webkit-line-clamp: 1;
    }
    .hero-card__meta { color: rgba(255,255,255,0.7); font-size: 11.5px; }
    .hero-card__meta .byline { color: rgba(255,255,255,0.85); }
    .hero-card__dot { background: rgba(255,255,255,0.4); }
    /* Restyle the category from a pill to a white eyebrow on desktop, with
       a small brand tick before the name (matches the original design). */
    .hero-card__category {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        margin-bottom: 0.75rem;
        padding: 0;
        background: transparent;
        border: 0;
        color: rgba(255,255,255,0.9);
        font-family: var(--font-display);
        font-weight: 800;
        font-size: 10.5px;
        letter-spacing: 0.18em;
        text-transform: uppercase;
    }
    .hero-card__category::before {
        content: "";
        display: inline-block;
        width: 12px;
        height: 2px;
        background: var(--c-brand);
    }
    .hero-card__badge { top: 1.5rem; left: 1.5rem; }
}
@media (min-width: 1024px) {
    .hero-card__content { padding: 1.5rem 2rem; }
    .hero-card--main .hero-card__title { font-size: 30px; }
    .hero-card--side .hero-card__title { font-size: 17px; }
    .hero-card__excerpt { font-size: 13.5px; -webkit-line-clamp: 2; }
}
@media (min-width: 1280px) {
    .hero-card--main .hero-card__title { font-size: 32px; }
}

/* Trending rank chip — small ink-tinted pill overlaid on the thumbnail.
   Replaces the old big rank-num beside the title so on narrow viewports the
   headline gets full card width. */
.rank-chip {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 24px;
    padding: 0 0.5rem;
    border-radius: 9999px;
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.02em;
    line-height: 1;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.25);
}

/* ---------- Popular Posts widget (Daily / Weekly / Monthly tabs) ---------- */
/* Tab switching is driven by hidden radio inputs + sibling selectors, so the
   widget needs no JS. The three radios are siblings of the tab bar and panels. */
.popular-widget .popular-tabs { position: relative; }

.popular-tab-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

.popular-tab-bar {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    margin-bottom: 18px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: 999px;
}

.popular-tab {
    cursor: pointer;
    padding: 7px 14px;
    border-radius: 999px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.02em;
    color: var(--c-muted);
    transition: color 0.2s ease, background 0.2s ease;
    user-select: none;
}
.popular-tab:hover { color: var(--c-ink); }

/* Active-tab styling: each radio activates its matching label by index. */
.popular-tab-input--daily:checked   ~ .popular-tab-bar .popular-tab:nth-child(1),
.popular-tab-input--weekly:checked  ~ .popular-tab-bar .popular-tab:nth-child(2),
.popular-tab-input--monthly:checked ~ .popular-tab-bar .popular-tab:nth-child(3) {
    background: var(--c-ink);
    color: #fff;
}

/* Panels: hidden by default, only the matching one is shown. */
.popular-tab-panel { display: none; }
.popular-tab-input--daily:checked   ~ .popular-tab-panel--daily,
.popular-tab-input--weekly:checked  ~ .popular-tab-panel--weekly,
.popular-tab-input--monthly:checked ~ .popular-tab-panel--monthly {
    display: block;
}

/* Keyboard focus ring lives on the label since the input is visually hidden. */
.popular-tab-input--daily:focus-visible   ~ .popular-tab-bar .popular-tab:nth-child(1),
.popular-tab-input--weekly:focus-visible  ~ .popular-tab-bar .popular-tab:nth-child(2),
.popular-tab-input--monthly:focus-visible ~ .popular-tab-bar .popular-tab:nth-child(3) {
    outline: 2px solid var(--c-brand);
    outline-offset: 2px;
}

/* ============================================================
   PROSE-LEGAL — typography for long-form static pages
   (/about, /privacy, /terms, /cookies, error pages).
   Scoped under .prose-legal so it doesn't leak into article body.
   ============================================================ */
.prose-legal {
    color: var(--c-text-soft);
    font-size: 15px;
    line-height: 1.75;
}
.prose-legal h2 {
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--c-text);
    font-size: 22px;
    line-height: 1.2;
    letter-spacing: -0.015em;
    margin-top: 2.25rem;
    margin-bottom: 0.75rem;
}
.prose-legal h2:first-child { margin-top: 0; }
.prose-legal h3 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--c-text);
    font-size: 17px;
    line-height: 1.3;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}
.prose-legal p { margin-bottom: 1rem; }
.prose-legal ul,
.prose-legal ol { margin: 0 0 1rem 1.25rem; }
.prose-legal ul { list-style: disc; }
.prose-legal ol { list-style: decimal; }
.prose-legal ul li,
.prose-legal ol li { margin-bottom: 0.4rem; padding-left: 0.25rem; }
.prose-legal a {
    color: var(--c-brand);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
}
.prose-legal a:hover { color: var(--c-brand-dark); }
.prose-legal strong { color: var(--c-text); font-weight: 700; }
.prose-legal em { font-style: italic; }
.prose-legal code {
    font-family: var(--font-mono);
    font-size: 0.875em;
    background: var(--c-surface-2);
    padding: 0.1em 0.4em;
    border-radius: 4px;
    color: var(--c-text);
}
.prose-legal button {
    border: 0;
    background: none;
    padding: 0;
    cursor: pointer;
    font: inherit;
}

/* ============================================================
   COOKIE CONSENT BANNER
   Slides up from the bottom on first visit, hidden once a choice
   is recorded. Sits below the sticky header in stacking, but above
   most page content. Pure CSS; behaviour lives in custom.js.
   ============================================================ */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    background: #ffffff;
    border-top: 1px solid var(--c-border);
    box-shadow: 0 -8px 24px -12px rgba(15, 23, 42, 0.18);
    transform: translateY(0);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
}
.cookie-banner.is-hidden {
    transform: translateY(110%);
    opacity: 0;
    pointer-events: none;
}
.cookie-banner__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: stretch;
}
.cookie-banner__title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 15px;
    color: var(--c-text);
    margin-bottom: 4px;
}
.cookie-banner__desc {
    font-size: 13px;
    line-height: 1.55;
    color: var(--c-text-soft);
    margin: 0;
    max-width: 640px;
}
.cookie-banner__link {
    color: var(--c-brand);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.cookie-banner__link:hover { color: var(--c-brand-dark); }
.cookie-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.cookie-banner__btn {
    flex: 1 1 auto;
    justify-content: center;
    min-height: 40px;
    font-size: 13px;
}

@media (min-width: 768px) {
    .cookie-banner__inner {
        flex-direction: row;
        align-items: center;
        gap: 28px;
        padding: 18px 32px;
    }
    .cookie-banner__copy { flex: 1 1 auto; }
    .cookie-banner__actions {
        flex: 0 0 auto;
        flex-wrap: nowrap;
    }
    .cookie-banner__btn { flex: 0 0 auto; }
}

/* ============================================================
   PRESS / BRAND-KIT PAGE
   Logo download cards, color swatches.
   ============================================================ */
.press-logo-preview {
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    border-bottom: 1px solid var(--c-border-soft);
}
.press-logo-preview--light { background: #ffffff; }
.press-logo-preview--dark  { background: var(--c-ink); }
.press-logo-preview img {
    max-width: 80%;
    max-height: 64px;
    width: auto;
    height: auto;
    display: block;
}

.press-swatch {
    aspect-ratio: 16 / 10;
    width: 100%;
    border-bottom: 1px solid var(--c-border-soft);
}
.press-swatch[data-needs-border="1"] {
    box-shadow: inset 0 0 0 1px var(--c-border);
}

/* ============================================================
   ERROR PAGE LAYOUT (404 / 500 / 503)
   Centred, generous whitespace, hero-style code badge.
   ============================================================ */
.error-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 1.25rem;
}
.error-page__inner {
    max-width: 640px;
    text-align: center;
}
.error-page__code {
    display: inline-block;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(72px, 14vw, 140px);
    line-height: 0.95;
    letter-spacing: -0.04em;
    color: var(--c-brand);
    margin-bottom: 0.5rem;
}
.error-page__title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(24px, 4vw, 32px);
    color: var(--c-text);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}
.error-page__desc {
    font-size: 15px;
    color: var(--c-text-soft);
    line-height: 1.65;
    margin-bottom: 1.75rem;
}
.error-page__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

/* =====================================================================
   Tag-page entity facts panel — AI-generated structured data display.
   Used in resources/views/frontend/tag.blade.php.
===================================================================== */
.entity-facts {
    border: 1px solid var(--c-border);
    border-radius: 12px;
    padding: 20px 22px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
/* When the panel sits inside a grid cell that should stretch (e.g. the
   tag-page combined section), let the panel's background fill the column's
   full height — but keep rows packed at the top instead of stretching them
   apart, which would happen if the list were given flex-grow. */
.entity-facts--full {
    height: 100%;
}
.entity-facts__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--c-border-soft);
}
.entity-facts__type {
    font-family: var(--font-sans);
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--c-brand);
    background: var(--c-brand-soft);
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
}
.entity-facts__list {
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}
.entity-facts__row {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 14px;
    align-items: baseline;
    padding: 6px 0;
    border-bottom: 1px dashed var(--c-border-soft);
}
.entity-facts__row:last-child { border-bottom: 0; }
.entity-facts__label {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--c-text-muted);
    margin: 0;
}
.entity-facts__value {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    color: var(--c-text);
    line-height: 1.5;
    margin: 0;
    word-wrap: break-word;
}
.entity-facts__sep { color: var(--c-text-muted); }

/* New layout: full-width responsive grid of fact cards. Replaces the
   side-by-side panel for the Quick Facts section so there's no dead
   space when the bio is short and the facts list is long. */
.entity-facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin: 0;
}
.entity-fact-card {
    background: #ffffff;
    border: 1px solid var(--c-border);
    border-radius: 10px;
    padding: 14px 16px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.entity-fact-card:hover {
    border-color: var(--c-text-soft);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.entity-fact-card--wide { grid-column: span 2; }
.entity-fact-card__label {
    font-family: var(--font-sans);
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--c-text-muted);
    margin: 0 0 8px;
}
.entity-fact-card__value {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    color: var(--c-text);
    line-height: 1.5;
    margin: 0;
    word-wrap: break-word;
}
.entity-fact-card__sep { color: var(--c-text-muted); }
@media (max-width: 768px) {
    .entity-fact-card--wide { grid-column: span 1; }
}
@media (max-width: 640px) {
    .entity-facts { padding: 16px 18px; }
    .entity-facts__row { grid-template-columns: 1fr; gap: 2px; padding: 8px 0; }
    .entity-facts__label { font-size: 10.5px; }
    .entity-facts__value { font-size: 13.5px; }
}

/* Tag-page poster image — sits at the top of the left column above the
   description. The image is downloaded by GenerateTagDetailsJob and stored
   under public/assets/images/tags/{slug}/0.webp. */
.tag-poster {
    overflow: hidden;
    border-radius: 14px;
    background: var(--c-surface);
}
.tag-poster img {
    display: block;
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    object-position: center top;
}
