/*
Theme Name: Velvet
Description: Lightweight guide theme.
Version: 1.1.0
Requires PHP: 8.0
Text Domain: velvet
*/

@font-face { font-family: "Outfit"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(assets/fonts/outfit.woff2) format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap; src: url(assets/fonts/jakarta.woff2) format("woff2"); }

:root {
	--bg: #f7f6fb;
	--bg-alt: #efedf7;
	--surface: #fff;
	--surface-2: #f8f7fc;
	--ink-panel: #17122b;
	--line: rgba(38, 24, 72, .1);
	--line-strong: rgba(38, 24, 72, .18);
	--text: #16132b;
	--text-muted: #6a6684;
	--text-body: #3a3652;
	--brand: #d4359b;
	--brand-dark: #a82384;
	--brand-2: #7f4bf2;
	--brand-soft: rgba(196, 58, 170, .08);
	--brand-grad: linear-gradient(120deg, #e13a91 0%, #b23fd6 55%, #7f4bf2 100%);
	--hot: #ff7b3a;
	--hot-grad: linear-gradient(135deg, #ff9142, #ff3d5e);
	--lift: 0 1px 0 rgba(38, 24, 72, .04), 0 12px 28px -20px rgba(38, 24, 72, .32);
	--lift-hover: 0 2px 0 rgba(38, 24, 72, .04), 0 22px 40px -22px rgba(127, 75, 242, .45);
	--glow: 0 12px 30px -12px rgba(178, 63, 214, .6);
	--radius: 12px;
	--radius-lg: 26px;
	--header-h: 64px;
	--sidebar-w: 252px;
	--font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-head: "Outfit", "Plus Jakarta Sans", system-ui, sans-serif;
	--gutter: clamp(18px, 3vw, 40px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 44px); }
body { margin: 0; overflow-x: hidden; background: var(--bg); color: var(--text); font: 400 16px/1.72 var(--font); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
em { font-style: normal; color: var(--brand); background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
h1, h2, h3 { margin: 0 0 .5em; font-family: var(--font-head); line-height: 1.08; letter-spacing: -.015em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); font-weight: 800; letter-spacing: -.025em; }
h2 { font-size: clamp(1.5rem, 2.9vw, 2.05rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 3px; border-radius: 6px; }

.ico { flex: none; width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; z-index: 100; top: 8px; left: -999px; padding: 8px 14px; border-radius: 999px; background: var(--brand-2); color: #fff; }
.skip-link:focus { left: 8px; }
.muted { color: var(--text-muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px; color: var(--brand-dark); font: 700 .72rem/1 var(--font); letter-spacing: .16em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: var(--brand-grad); }
.fineprint { margin: 0; color: var(--text-muted); font-size: .8rem; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 14px 24px; border: 1.5px solid transparent; border-radius: 999px; cursor: pointer; font: 700 .94rem/1 var(--font); text-decoration: none; white-space: nowrap; transition: transform .18s, box-shadow .18s, background .18s, border-color .18s, color .18s; }
.btn .ico { width: 1em; height: 1em; }
.btn--primary { background: var(--brand-grad); background-size: 140% 100%; color: #fff; box-shadow: var(--glow), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn--primary:hover { transform: translateY(-2px); background-position: 100% 0; box-shadow: 0 16px 36px -12px rgba(127, 75, 242, .65), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn--ghost { background: var(--surface); border-color: var(--line-strong); color: var(--text); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand-dark); }
.btn--sm { padding: 10px 18px; font-size: .86rem; }
.btn--lg { padding: 17px 32px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 14px; }

/* ---------- Header ---------- */
.topbar { position: sticky; z-index: 50; top: 0; display: flex; align-items: center; gap: 14px; height: var(--header-h); padding: 0 22px; background: rgba(255, 255, 255, .86); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 800 1.5rem/1 var(--font-head); letter-spacing: -.02em; text-decoration: none; }
.logo b { font-weight: 800; background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.topbar-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.age-pill { display: inline-grid; place-items: center; min-width: 38px; height: 30px; padding: 0 9px; border-radius: 999px; background: var(--ink-panel); color: #fff; font: 800 .74rem/1 var(--font-head); letter-spacing: .02em; }
.menu-toggle { display: grid; align-content: center; gap: 5px; width: 42px; height: 42px; padding: 0 11px; background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: 999px; cursor: pointer; }
.menu-toggle span:not(.sr-only) { display: block; height: 2px; border-radius: 2px; background: var(--text); }
.menu-toggle span:not(.sr-only):nth-of-type(3) { width: 70%; }

/* ---------- Layout + sidebar ---------- */
.content { min-width: 0; }
.sidenav { position: fixed; z-index: 60; inset: 0 auto 0 0; width: min(290px, 86vw); display: flex; flex-direction: column; justify-content: space-between; gap: 22px; padding: 22px 14px; overflow-y: auto; background: var(--surface); border-right: 1px solid var(--line); transform: translateX(-102%); transition: transform .22s ease; }
.overlay { position: fixed; z-index: 55; inset: 0; background: rgba(23, 18, 43, .5); opacity: 0; pointer-events: none; transition: opacity .2s; }
.nav-open { overflow: hidden; }
.nav-open .sidenav { transform: none; }
.nav-open .overlay { opacity: 1; pointer-events: auto; }

.nav-primary, .nav-topics { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav-heading { margin: 24px 0 8px 12px; color: var(--text-muted); font: 700 .68rem/1 var(--font); letter-spacing: .16em; text-transform: uppercase; }
.nav-link { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--text-body); font-size: .93rem; font-weight: 600; text-decoration: none; transition: background .15s, color .15s; }
.nav-link:hover { background: var(--surface-2); color: var(--text); }
.nav-link .ico { width: 18px; height: 18px; color: var(--text-muted); }
.nav-link[aria-current] { background: var(--brand-soft); color: var(--brand-dark); }
.nav-link[aria-current]::before { content: ""; position: absolute; top: 9px; bottom: 9px; left: -14px; width: 4px; border-radius: 0 4px 4px 0; background: var(--brand-grad); }
.nav-link[aria-current] .ico { color: var(--brand); }
.count-badge { margin-left: auto; padding: 4px 7px; border-radius: 6px; background: rgba(127, 75, 242, .12); -webkit-background-clip: border-box; background-clip: border-box; color: var(--brand-2); -webkit-text-fill-color: currentColor; font: 800 .72rem/1 var(--font-head); font-style: normal; }
.nav-promo { position: relative; overflow: hidden; padding: 16px 12px 14px; border-radius: 16px; background: radial-gradient(120% 90% at 100% 0, rgba(225, 58, 145, .45), transparent 60%), radial-gradient(90% 80% at 0 100%, rgba(127, 75, 242, .45), transparent 60%), var(--ink-panel); color: #fff; text-align: center; }
.nav-promo p { margin: 0 0 10px; font-size: .8rem; line-height: 1.35; color: rgba(255, 255, 255, .85); }
.nav-promo strong { color: #fff; }
.nav-promo small { display: block; margin-top: 9px; color: rgba(255, 255, 255, .6); font-size: .7rem; }
.nav-promo .btn { gap: 0; padding: 10px 8px; border: 0; color: #fff; font-size: .78rem; white-space: nowrap; box-shadow: none; }
.nav-promo .btn .ico { display: none; }
/* Never squeeze the menu or the promo box: the sidebar scrolls instead */
.sidenav > nav, .nav-promo { flex-shrink: 0; }

/* ---------- Sections ---------- */
.wrap { width: 100%; margin: 0; padding-inline: var(--gutter); }
.section { padding: clamp(30px, 4.2vw, 52px) 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-head h2 { margin-bottom: 6px; }
.section-head p { margin: 0; }
.more-link { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1.5px solid var(--line-strong); border-radius: 999px; color: var(--text); font-size: .84rem; font-weight: 700; text-decoration: none; white-space: nowrap; transition: border-color .15s, color .15s; }
.more-link:hover { border-color: var(--brand); color: var(--brand-dark); }

/* ---------- Home hero ---------- */
.hero { padding: clamp(14px, 2.4vw, 28px) clamp(14px, 2.4vw, 28px) 0; }
.hero-panel { position: relative; display: flex; align-items: center; min-height: 540px; overflow: hidden; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--lift); }
.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255, 255, 255, .97) 0%, rgba(255, 255, 255, .93) 34%, rgba(255, 255, 255, .5) 58%, rgba(255, 255, 255, .05) 84%), linear-gradient(0deg, rgba(247, 246, 251, .8) 0%, rgba(247, 246, 251, 0) 32%); }
.poster-wall { position: absolute; top: 50%; left: 58%; display: grid; grid-template-columns: repeat(7, 1fr); gap: 14px; width: 140%; transform: translate(-50%, -50%) rotate(6deg); }
.wall-tile { display: block; aspect-ratio: 7 / 10; overflow: hidden; border-radius: 14px; background: var(--surface-2); box-shadow: 0 10px 24px -14px rgba(23, 18, 43, .5); }
.wall-tile:nth-child(3n+2) { transform: translateY(-26px); }
.wall-tile:nth-child(3n) { transform: translateY(22px); }
.wall-tile img { width: 100%; height: 100%; object-fit: cover; }
.hero--photo .hero-panel { min-height: 580px; }
.hero--photo .hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 72% 30%); }
.hero--photo .hero-bg::after { background: linear-gradient(90deg, rgba(255, 255, 255, .97) 0%, rgba(255, 255, 255, .9) 32%, rgba(255, 255, 255, .45) 52%, rgba(255, 255, 255, 0) 72%), linear-gradient(0deg, rgba(247, 246, 251, .75) 0%, rgba(247, 246, 251, 0) 26%); }
.hero-content { position: relative; z-index: 2; max-width: 720px; padding: clamp(28px, 5vw, 64px); }
.hero h1 { margin-bottom: 16px; font-size: clamp(2.6rem, 6.2vw, 4.6rem); }
.hero-tagline { margin-bottom: 14px; font: 700 clamp(1.2rem, 2.1vw, 1.55rem)/1.25 var(--font-head); }
.lede { max-width: 38em; color: var(--text-body); font-size: clamp(1rem, 1.4vw, 1.1rem); }

/* ---------- Inner page hero ---------- */
.page-hero { padding: clamp(28px, 4vw, 54px) 0 10px; background: radial-gradient(45% 120% at 90% 0, rgba(127, 75, 242, .13), transparent 70%), radial-gradient(40% 100% at 60% 0, rgba(225, 58, 145, .1), transparent 70%); }
.page-hero h1 { max-width: 16em; font-size: clamp(2rem, 4.4vw, 3.2rem); }
.page-hero .lede { max-width: 34em; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; color: var(--text-muted); font-size: .82rem; font-weight: 500; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--brand-dark); }
.crumbs span { opacity: .5; }
.last-updated { margin: 10px 0 0; color: var(--text-muted); font-size: .8rem; }
.last-updated time { color: var(--text-body); font-weight: 700; }

.page-hero--image { position: relative; display: flex; align-items: flex-end; min-height: 460px; padding: 0; overflow: hidden; isolation: isolate; background: var(--surface); }
.page-hero--image .wrap { position: relative; z-index: 2; padding-top: 150px; padding-bottom: 32px; }
.page-hero--image .lede { max-width: 44em; font-size: clamp(1rem, 1.5vw, 1.12rem); }
.page-hero--image .lede, .page-hero--image .crumbs, .page-hero--image .fineprint { text-shadow: 0 1px 12px rgba(255, 255, 255, .85); }
.page-hero-bg { position: absolute; z-index: 0; inset: 0; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 70% 40%); }
.page-hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(247, 246, 251, .99) 0%, rgba(247, 246, 251, .94) 36%, rgba(247, 246, 251, .58) 62%, rgba(247, 246, 251, .08) 100%); }

/* ---------- Summary box ---------- */
.summary-box { position: relative; max-width: 860px; overflow: hidden; padding: 28px 28px 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--lift); }
.summary-box::before { content: ""; position: absolute; top: 0; right: 0; left: 0; height: 4px; background: var(--brand-grad); }
.summary-box p { font-size: 1.06rem; }
.summary-box p:last-child { margin-bottom: 0; }
.summary-box .summary-extra { color: var(--text-body); font-size: .98rem; }
.summary-label { display: inline-block; margin-bottom: 12px; padding: 6px 10px; border-radius: 6px; background: var(--brand-soft); color: var(--brand-dark); font: 800 .7rem/1 var(--font); letter-spacing: .14em; text-transform: uppercase; }
.summary-box .summary-label { font-size: .7rem; }
.text-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--brand-dark); font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.text-link .ico { width: 1em; height: 1em; }

/* ---------- Prose ---------- */
.prose { max-width: 860px; }
.prose h2 { margin-top: 1.7em; }
.prose h2:first-child { margin-top: 0; }
.prose h2[id] { scroll-margin-top: calc(var(--header-h) + 54px); }
.prose p { color: var(--text-body); }
.prose a { color: var(--brand-dark); text-decoration-color: rgba(168, 35, 132, .35); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: currentColor; }
.prose strong { color: var(--text); }
.prose ul { margin: 0 0 1.2em; padding-left: 0; color: var(--text-body); list-style: none; }
.prose ul li { position: relative; margin-bottom: .45em; padding-left: 1.4em; }
.prose ul li::before { content: ""; position: absolute; top: .68em; left: .2em; width: 7px; height: 7px; border-radius: 2px; background: var(--brand-grad); transform: rotate(45deg); }
.prose ol { margin: 0 0 1.2em; padding-left: 1.4em; color: var(--text-body); }
.prose ol li { margin-bottom: .45em; padding-left: .2em; }
.prose ol li::marker { color: var(--brand); font-weight: 800; }
.callout { max-width: 860px; margin: 22px 0 0; padding: 16px 20px; background: linear-gradient(90deg, rgba(127, 75, 242, .07), transparent 70%), var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--brand-2); border-radius: var(--radius); color: var(--text-body); font-size: .95rem; }
.prose .show-list { display: grid; gap: 10px; padding-left: 0; list-style: none; }
.prose .show-list li { margin: 0; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.prose .show-list li::before { display: none; }
.show-list a { color: var(--text); text-decoration: none; }
.show-list a:hover { color: var(--brand-dark); }

/* ---------- Stats strip ---------- */
.stats { margin: clamp(14px, 3vw, 30px) 0; background: var(--surface); border-block: 1px solid var(--line); }
.page-hero + .stats { margin-top: 0; }
.stats-row { display: grid; grid-template-columns: repeat(2, 1fr); }
.stats-row > div { padding: 26px 20px; border-bottom: 1px solid var(--line); text-align: center; }
.stats-row > div:nth-child(odd) { border-right: 1px solid var(--line); }
.stats b { display: block; margin-bottom: 8px; font: 800 clamp(2rem, 3.8vw, 2.9rem)/1 var(--font-head); letter-spacing: -.02em; background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stats span { color: var(--text-muted); font-size: .86rem; font-weight: 500; }
.stats-row.stats-row--3 { grid-template-columns: repeat(3, 1fr); }
.stats-row.stats-row--3 > div { border-bottom: 0; border-right: 1px solid var(--line); }
.stats-row.stats-row--3 > div:last-child { border-right: 0; }

/* ---------- Guide cards ---------- */
.guide-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.guide-card { display: block; height: 100%; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: transform .2s, border-color .2s, box-shadow .2s; }
.guide-card:hover { transform: translateY(-4px); border-color: rgba(127, 75, 242, .45); box-shadow: var(--lift-hover); }
.guide-cover { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 11; overflow: hidden; color: #fff; }
.guide-cover::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle, rgba(255, 255, 255, .22) 1.2px, transparent 1.7px) 0 0 / 14px 14px; -webkit-mask: linear-gradient(135deg, #000, transparent 75%); mask: linear-gradient(135deg, #000, transparent 75%); }
.guide-cover .ico { position: relative; z-index: 1; box-sizing: content-box; width: 30px; height: 30px; padding: 16px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 18px; background: rgba(255, 255, 255, .16); stroke-width: 1.6; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.guide-body { display: grid; gap: 5px; padding: 15px 16px 18px; }
.guide-body strong { font: 700 1.1rem/1.25 var(--font-head); }
.guide-body span { color: var(--text-muted); font-size: .85rem; line-height: 1.45; }
.hue-0 { background: linear-gradient(140deg, #ff8f6b, #e13a91); }
.hue-1 { background: linear-gradient(140deg, #f05fa8, #9b3fd8); }
.hue-2 { background: linear-gradient(140deg, #c86bf2, #6d45e8); }
.hue-3 { background: linear-gradient(140deg, #e13a91, #8a1f72); }
.hue-4 { background: linear-gradient(140deg, #ff9ccf, #c43aa8); }
.hue-5 { background: linear-gradient(140deg, #8f6cff, #3c2a9e); }
.hue-6 { background: linear-gradient(140deg, #ffad8a, #d4359b); }
.hue-7 { background: linear-gradient(140deg, #b23fd6, #4a1f86); }

/* Badges: dark glass labels on images */
.badge { position: absolute; z-index: 2; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 7px; background: rgba(18, 14, 34, .58); color: #fff; font: 700 .62rem/1.2 var(--font); letter-spacing: .1em; text-transform: uppercase; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #f27ad0; box-shadow: 0 0 8px #f27ad0; }
.badge--hot { left: auto; right: 10px; }
.badge--hot::before { display: none; }
.badge--hot .ico { width: 12px; height: 12px; color: var(--hot); stroke-width: 2.2; }

/* ---------- Poster cards ---------- */
.poster-grid { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 44%); gap: 16px; margin: 0; padding: 0 0 8px; overflow-x: auto; list-style: none; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.poster-grid > li { display: flex; scroll-snap-align: start; }
.poster-grid > li[hidden] { display: none; }
.poster-grid--full { grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); grid-auto-columns: auto; overflow: visible; }
/* Full-bleed poster: title and episode count sit on the image */
.poster-card { position: relative; display: block; width: 100%; overflow: hidden; background: #120e1f; border-radius: 18px; box-shadow: 0 14px 30px -20px rgba(23, 18, 43, .6); color: #fff; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.poster-card:hover { transform: translateY(-4px); box-shadow: 0 24px 44px -22px rgba(127, 75, 242, .7); }
.poster-media { position: relative; display: block; aspect-ratio: 7 / 10; overflow: hidden; background: #1a1430; }
.poster-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 7, 18, .96) 0%, rgba(10, 7, 18, .78) 17%, rgba(10, 7, 18, .32) 36%, rgba(10, 7, 18, 0) 54%); }
.poster-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.poster-card:hover .poster-media img { transform: scale(1.045); }
.poster-caption { position: absolute; z-index: 2; right: 0; bottom: 0; left: 0; display: grid; gap: 4px; padding: 14px 14px 15px; }
.poster-caption strong { color: #fff; font: 800 1.08rem/1.15 var(--font-head); letter-spacing: -.01em; text-shadow: 0 2px 12px rgba(0, 0, 0, .45); }
.poster-meta { display: inline-flex; align-items: center; gap: 5px; color: rgba(255, 255, 255, .74); font-size: .78rem; font-weight: 500; }
.poster-hot { display: inline-flex; }
.poster-hot .ico { width: 13px; height: 13px; color: var(--hot); stroke-width: 2.2; }

/* ---------- Filters ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filter-bar button { display: inline-flex; align-items: center; gap: 7px; padding: 10px 15px; background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: 10px; color: var(--text-body); cursor: pointer; font: 700 .85rem/1 var(--font); transition: border-color .15s, background .15s, color .15s; }
.filter-bar button:hover { border-color: var(--brand); color: var(--brand-dark); }
.filter-bar button[aria-pressed="true"] { background: var(--brand-grad); border-color: transparent; color: #fff; }
.filter-bar .ico { width: 1em; height: 1em; color: var(--hot); }
.filter-bar button[aria-pressed="true"] .ico { color: #fff; }

/* ---------- Split (home twins teaser) ---------- */
.split { display: grid; gap: 30px; align-items: center; max-width: 1100px; }
.split-main p { color: var(--text-body); }
.feature-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.feature-list li { display: flex; align-items: flex-start; gap: 14px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.feature-list .ico { box-sizing: content-box; width: 20px; height: 20px; padding: 9px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); }
.feature-list li > span { color: var(--text-muted); }
.feature-list strong { display: block; margin-bottom: 2px; color: var(--text); font-family: var(--font-head); font-size: 1.05rem; }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; padding: 24px 22px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.step-n { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 16px; border-radius: 12px; background: var(--brand-grad); color: #fff; font: 800 1.05rem var(--font-head); box-shadow: var(--glow); }
.steps p { margin: 0; color: var(--text-muted); }

/* ---------- FAQ ---------- */
.faq { margin: 10px 0; background: var(--bg-alt); border-block: 1px solid var(--line); }
.faq .wrap { max-width: 900px; }
.faq h2 { margin-bottom: 22px; }
.faq-item { margin-bottom: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s; }
.faq-item[open] { border-color: rgba(127, 75, 242, .35); box-shadow: var(--lift); }
.faq-item summary { position: relative; padding: 18px 56px 18px 20px; cursor: pointer; font-weight: 700; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; position: absolute; top: 50%; right: 22px; width: 9px; height: 9px; margin-top: -7px; border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(45deg); transition: transform .2s, margin .2s; }
.faq-item[open] summary::after { margin-top: -2px; transform: rotate(-135deg); }
.faq-item summary h3 { display: inline; margin: 0; color: inherit; font: inherit; letter-spacing: inherit; }
.faq-item p { margin: 0; padding: 0 20px 20px; color: var(--text-body); }

/* ---------- CTA panel ---------- */
.cta-panel { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; overflow: hidden; padding: clamp(26px, 4.2vw, 44px); background: radial-gradient(60% 120% at 100% 100%, rgba(225, 58, 145, .45), transparent 65%), radial-gradient(50% 110% at 0 0, rgba(127, 75, 242, .4), transparent 60%), var(--ink-panel); border-radius: var(--radius-lg); color: #fff; }
.cta-panel h2 { margin-bottom: 6px; color: #fff; }
.cta-panel em { background: linear-gradient(120deg, #ff9fd2, #c7a6ff); -webkit-background-clip: text; background-clip: text; }
.cta-panel p { margin: 0; }
.cta-panel .muted { color: rgba(255, 255, 255, .72); }

/* ---------- Single series ---------- */
.show-layout { display: grid; align-items: start; gap: 28px; }
.show-cover { position: relative; justify-self: start; width: min(280px, 70%); aspect-ratio: 7 / 10; overflow: hidden; border-radius: 18px; box-shadow: 0 30px 60px -28px rgba(127, 75, 242, .6), 0 0 0 1px var(--line); }
.show-cover img { width: 100%; height: 100%; object-fit: cover; }
.show-info h1 { margin-bottom: 14px; font-size: clamp(1.9rem, 4.2vw, 3rem); }
.pill-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.pill-list li { padding: 7px 11px; background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: 8px; color: var(--text-body); font: 700 .78rem/1 var(--font); }
.pill-list a { color: var(--brand-dark); text-decoration: none; }
.pill-list .pill--hot { display: inline-flex; align-items: center; gap: 5px; background: var(--ink-panel); border-color: transparent; color: #fff; }
.pill--hot .ico { width: 12px; height: 12px; color: var(--hot); stroke-width: 2.2; }
.spec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; max-width: 640px; margin: 22px 0 0; overflow: hidden; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); }
.spec-grid > div { padding: 13px 16px; background: var(--surface); }
.spec-grid dt { margin-bottom: 6px; color: var(--text-muted); font: 700 .66rem/1 var(--font); letter-spacing: .14em; text-transform: uppercase; }
.spec-grid dd { margin: 0; font: 700 1rem/1.3 var(--font-head); }
.spec-grid a { color: var(--brand-dark); text-underline-offset: 3px; }
.toc { max-width: 860px; margin-top: 18px; padding: 18px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.toc ol { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 6px 28px; margin: 8px 0 0; padding-left: 20px; }
.toc li::marker { color: var(--brand); font-weight: 800; }
.toc a { color: var(--text-body); font-weight: 500; text-decoration: none; }
.toc a:hover { color: var(--brand-dark); }
.pager { display: grid; gap: 12px; }
.pager a { display: grid; gap: 4px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.pager a:hover { border-color: rgba(127, 75, 242, .45); box-shadow: var(--lift); }
.pager small { color: var(--brand-dark); font: 700 .66rem/1 var(--font); letter-spacing: .14em; text-transform: uppercase; }
.pager strong { font: 700 1.05rem/1.3 var(--font-head); }
.pager-next { text-align: right; }

/* ---------- Twins ---------- */
.twin-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 0; padding: 0; list-style: none; }
.twin-card { position: relative; display: block; aspect-ratio: 3 / 5; overflow: hidden; background: var(--surface-2); border-radius: var(--radius); text-decoration: none; transition: transform .2s, box-shadow .2s; }
a.twin-card:hover { transform: translateY(-4px); box-shadow: var(--lift-hover); }
.twin-card img, .twin-portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.twin-card::after, .twin-portrait::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(23, 12, 40, .96) 0%, rgba(30, 14, 52, .82) 15%, rgba(40, 16, 66, .45) 31%, rgba(40, 16, 66, .1) 47%, rgba(40, 16, 66, 0) 60%); }
.twin-label { position: absolute; z-index: 2; right: 12px; bottom: 14px; left: 12px; display: grid; gap: 3px; }
.twin-name { display: inline-flex; align-items: center; gap: 6px; color: #fff; font: 700 1rem/1.2 var(--font-head); }
.twin-sub { color: rgba(255, 255, 255, .78); font-size: .75rem; font-weight: 500; }
.verified { display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 6px; background: var(--brand-grad); color: #fff; }
.verified .ico { width: 11px; height: 11px; stroke-width: 3; }
.twin-hero-layout { display: grid; align-items: center; gap: 30px; }
.twin-portrait { position: relative; justify-self: start; width: min(300px, 70%); aspect-ratio: 3 / 5; overflow: hidden; border-radius: 18px; box-shadow: 0 30px 60px -28px rgba(127, 75, 242, .6); }
.twin-portrait .twin-label { bottom: 16px; left: 16px; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 34px; padding: 48px var(--gutter) 24px; background: var(--ink-panel); color: rgba(255, 255, 255, .72); }
.site-footer .logo { color: #fff; font-size: 1.35rem; }
.site-footer .muted { color: rgba(255, 255, 255, .6); }
.site-footer .eyebrow { color: #fff; }
.footer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.footer-grid > div:first-child { grid-column: 1 / -1; }
.footer-nav { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.footer-nav a { color: rgba(255, 255, 255, .66); text-decoration: none; }
.footer-nav a:hover { color: #fff; }
.footer-legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .5); font-size: .8rem; }
.footer-legal strong { color: rgba(255, 255, 255, .8); }
.footer-legal p { margin-bottom: 6px; }

/* ---------- Age gate ---------- */
.age-gate { position: fixed; z-index: 70; right: 12px; bottom: 12px; left: 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px 18px; background: rgba(23, 18, 43, .94); border: 1px solid rgba(255, 255, 255, .12); border-radius: 18px; box-shadow: 0 24px 60px rgba(23, 18, 43, .35); color: rgba(255, 255, 255, .85); font-size: .9rem; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.age-gate strong { color: #fff; }
.age-gate[hidden] { display: none; }
.age-gate p { margin: 0; }
.age-gate div { display: flex; gap: 10px; }
.age-gate .btn--ghost { background: transparent; border-color: rgba(255, 255, 255, .3); color: #fff; }

/* ---------- Episode previews ---------- */
.watch-strip { padding-top: clamp(22px, 3vw, 34px); }
.episodes { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 12px; max-width: 920px; margin: 0; padding: 0; list-style: none; }
.episodes.is-collapsed > li:nth-child(n+11) { display: none; }
.episode { position: relative; display: block; aspect-ratio: 9 / 16; overflow: hidden; background: #140f22; border-radius: 12px; box-shadow: 0 12px 26px -18px rgba(23, 18, 43, .6); color: #fff; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.episode:hover { transform: translateY(-3px); box-shadow: 0 20px 36px -20px rgba(127, 75, 242, .7); }
.episode-thumb, .episode-thumb img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.episode-thumb img { object-fit: cover; }
.episode::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 7, 18, .9) 0%, rgba(10, 7, 18, .35) 30%, rgba(10, 7, 18, 0) 50%); }
.episode-play { position: absolute; z-index: 2; top: 50%; left: 50%; display: grid; place-items: center; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: rgba(255, 255, 255, .94); color: var(--text); box-shadow: 0 8px 20px rgba(0, 0, 0, .35); transition: transform .2s; }
.episode-play .ico { width: 18px; height: 18px; margin-left: 3px; }
.episode:hover .episode-play { transform: scale(1.08); }
.episode.is-locked .episode-play { background: rgba(18, 14, 34, .72); color: #fff; box-shadow: none; }
.episode-tag { position: absolute; z-index: 2; top: 8px; left: 8px; display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 7px; background: rgba(18, 14, 34, .66); color: #fff; font: 700 .66rem/1.2 var(--font); letter-spacing: .02em; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.episode-tag .ico { width: 11px; height: 11px; stroke-width: 2.2; }
.episode-tag.is-free { border-color: transparent; background: #16a34a; }
.episode-meta { position: absolute; z-index: 2; right: 0; bottom: 0; left: 0; display: grid; gap: 1px; padding: 10px; }
.episode-meta strong { font: 800 .92rem/1.15 var(--font-head); }
.episode-meta span { color: rgba(255, 255, 255, .74); font-size: .68rem; font-weight: 500; line-height: 1.3; }
.episodes-more { margin: 18px 0 0; }
.prose h3[id] { scroll-margin-top: calc(var(--header-h) + 54px); margin-top: 1.5em; }
.table-scroll { max-width: 100%; margin: 0 0 1.4em; overflow-x: auto; }
.episode-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); font-size: .92rem; }
.episode-table th, .episode-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.episode-table thead th { color: var(--text-muted); font: 700 .68rem/1 var(--font); letter-spacing: .12em; text-transform: uppercase; }
.episode-table th[scope="row"] { font-weight: 700; white-space: nowrap; }
.episode-table tbody tr:last-child > * { border-bottom: 0; }
.episode-table tbody tr:target { background: var(--brand-soft); }

/* ---------- Phone watch bar ---------- */
.sticky-cta { display: none; }

/* ---------- Bigger tap targets ---------- */
.toc a { display: inline-block; padding: 5px 0; }
.footer-nav a { display: inline-block; padding: 4px 0; }
.spec-grid > div:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* ---------- WordPress toolbar ---------- */
.admin-bar .topbar, .admin-bar .sidenav { top: 32px; }

/* ---------- Breakpoints ---------- */
@media (max-width: 1023px) {
	.sticky-cta { position: fixed; z-index: 65; right: 0; bottom: 0; left: 0; display: block; padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)); background: rgba(255, 255, 255, .92); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -18px rgba(23, 18, 43, .4); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transform: translateY(110%); transition: transform .25s ease; }
	.sticky-cta.is-on { transform: none; }
	.nav-open .sticky-cta { transform: translateY(110%); }
	.sticky-cta .btn { padding: 15px 20px; font-size: 1rem; }
	.site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
	.twin-hero-layout { gap: 22px; }
	.twin-portrait { order: -1; justify-self: center; width: min(300px, 78%); max-width: none; }
	.twin-portrait img { object-position: 50% 50%; }
}
@media (max-width: 782px) {
	.admin-bar .topbar, .admin-bar .sidenav { top: 46px; }
}
@media (max-width: 600px) {
	.admin-bar .topbar, .admin-bar .sidenav { top: 0; }
}
@media (max-width: 560px) {
	.topbar-actions .btn { display: none; }
	.btn-row .btn { width: 100%; }
	.hero-panel { align-items: flex-end; }
	.poster-wall { left: 50%; width: 220%; grid-template-columns: repeat(7, 1fr); }
	.hero-bg::after { background: linear-gradient(0deg, rgba(255, 255, 255, .97) 36%, rgba(255, 255, 255, .78) 66%, rgba(255, 255, 255, .45) 100%); }
	.episodes { grid-template-columns: repeat(3, 1fr); gap: 8px; }
	.episode-play { width: 38px; height: 38px; margin: -19px 0 0 -19px; }
	.episode-meta { padding: 8px; }
	.episode-meta span { display: none; }
	.episode-table th, .episode-table td { padding: 9px 10px; }
	.episode-table { font-size: .86rem; }
	.stats-row.stats-row--3 > div { padding: 22px 8px; }
	.stats-row.stats-row--3 b { font-size: clamp(1.2rem, 6.4vw, 1.6rem); white-space: nowrap; }
	.stats-row.stats-row--3 span { display: block; font-size: .76rem; line-height: 1.4; }
	.section-head { flex-direction: column; align-items: flex-start; }
}
@media (min-width: 640px) {
	.poster-wall { grid-template-columns: repeat(9, 1fr); width: 130%; }
	.poster-grid { grid-auto-columns: minmax(170px, 30%); }
	.poster-grid--full { grid-template-columns: repeat(3, 1fr); }
	.guide-grid { grid-template-columns: repeat(3, 1fr); }
	.twin-grid { grid-template-columns: repeat(3, 1fr); }
	.steps { grid-template-columns: repeat(3, 1fr); }
	.footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
	.footer-grid > div:first-child { grid-column: auto; }
	.cta-panel { flex-direction: row; align-items: center; justify-content: space-between; }
	.age-gate { right: auto; left: 50%; flex-direction: row; align-items: center; justify-content: space-between; width: min(720px, calc(100% - 24px)); transform: translateX(-50%); }
}
@media (min-width: 720px) {
	.pager { grid-template-columns: 1fr 1fr; }
}
/* Phones and small tablets: photos sit above the text instead of behind it */
@media (max-width: 899px) {
	.hero--photo .hero-panel { display: block; min-height: 0; }
	.hero--photo .hero-bg { position: relative; height: clamp(240px, 72vw, 360px); }
	.hero--photo .hero-bg::after { background: linear-gradient(0deg, #fff 0%, rgba(255, 255, 255, .6) 22%, rgba(255, 255, 255, 0) 50%); }
	.hero--photo .hero-content { margin-top: -40px; padding: 0 20px 26px; }
	.hero--photo h1 { font-size: clamp(2.2rem, 10vw, 3rem); }

	.page-hero--image { display: block; min-height: 0; background: transparent; }
	.page-hero--image .page-hero-bg { position: relative; height: clamp(190px, 54vw, 300px); }
	.page-hero--image .page-hero-bg::after { background: linear-gradient(0deg, var(--bg) 0%, rgba(247, 246, 251, .55) 26%, rgba(247, 246, 251, 0) 55%); }
	.page-hero--image .wrap { margin-top: -26px; padding-top: 0; padding-bottom: 26px; }
	.page-hero--image .lede, .page-hero--image .crumbs, .page-hero--image .fineprint { text-shadow: none; }

	.show-cover { justify-self: center; width: min(240px, 64%); }
	.page-hero h1 { font-size: clamp(1.85rem, 8.4vw, 2.6rem); }
}
@media (min-width: 900px) {
	.page-hero--image { align-items: center; min-height: 420px; }
	.page-hero--image .wrap { padding-top: 60px; padding-bottom: 60px; }
	.page-hero-bg::after { background: linear-gradient(90deg, rgba(247, 246, 251, .98) 0%, rgba(247, 246, 251, .9) 36%, rgba(247, 246, 251, .38) 66%, rgba(247, 246, 251, .02) 100%), linear-gradient(0deg, rgba(247, 246, 251, .85) 0%, rgba(247, 246, 251, 0) 28%); }
	.split { grid-template-columns: 1.2fr .8fr; gap: 56px; }
	.episodes { grid-template-columns: repeat(5, 1fr); }
	.show-layout { grid-template-columns: 280px 1fr; gap: 44px; }
	.show-cover { justify-self: stretch; width: 100%; }
}
@media (min-width: 1024px) {
	.menu-toggle, .overlay { display: none; }
	.layout { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); }
	.sidenav { position: sticky; z-index: 5; top: var(--header-h); width: auto; height: calc(100vh - var(--header-h)); transform: none; transition: none; }
	.admin-bar .sidenav { top: calc(var(--header-h) + 32px); height: calc(100vh - var(--header-h) - 32px); }
	.sidenav { gap: 16px; padding: 16px 14px; scrollbar-width: thin; }
	.nav-link { padding: 8px 12px; font-size: .9rem; }
	.nav-heading { margin: 18px 0 6px 12px; }
	.poster-grid { grid-auto-flow: row; grid-template-columns: repeat(6, 1fr); overflow: visible; }
	.poster-grid--full { grid-template-columns: repeat(4, 1fr); }
	.guide-grid { grid-template-columns: repeat(4, 1fr); }
	.twin-grid { grid-template-columns: repeat(5, 1fr); }
	.stats-row { grid-template-columns: repeat(4, 1fr); }
	.stats-row > div { border-bottom: 0; border-right: 1px solid var(--line); }
	.stats-row > div:last-child { border-right: 0; }
	.twin-hero-layout { grid-template-columns: 1.4fr .6fr; }
	.twin-portrait { justify-self: end; width: 100%; max-width: 300px; }
}
@media (min-width: 1360px) { .poster-grid--full { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 1700px) { .poster-grid--full, .twin-grid { grid-template-columns: repeat(6, 1fr); } }
@media (min-width: 2000px) { .poster-grid--full { grid-template-columns: repeat(7, 1fr); } }
@media (min-width: 2300px) { .poster-grid--full, .twin-grid { grid-template-columns: repeat(8, 1fr); } }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
