/*
Theme Name: Best Candy Shorts AI
Theme URI: https://bestcandyshortsai.com/
Author: Best Candy Shorts AI
Description: Light, sidebar-driven guide theme for listing Candy AI Shorts series: poster grid with filters and search, one SEO-ready page per series, digital-twin pages, straight-answer pages. Original artwork and palette.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bcs
*/

/* ===================================================================
   1. Tokens
   =================================================================== */
:root {
	color-scheme: light;

	--bg: #fff6f9;
	--bg-soft: #ffeaf1;
	--surface: #ffffff;
	--ink: #2a1722;
	--ink-2: #4a3441;
	--muted: #7a5f6e;
	--line: #f1dce5;
	--line-2: #e8c7d5;

	--brand: #d82f73;
	--brand-2: #f0679a;
	--brand-ink: #a8174f;
	--brand-soft: #ffe9f1;
	--teal: #16a36f;
	--teal-ink: #0b7a50;
	--teal-soft: #dff7ec;
	--coral: #d9381e;
	--coral-soft: #ffe8e2;

	--grad: linear-gradient(135deg, #d82f73 0%, #bd1d63 100%);
	--grad-soft: linear-gradient(135deg, #ffe9f1 0%, #fff0e6 100%);

	--radius: 18px;
	--radius-m: 14px;
	--radius-s: 10px;
	--shadow-s: 0 1px 2px rgba(42, 23, 34, .06), 0 2px 10px rgba(42, 23, 34, .04);
	--shadow-m: 0 10px 30px rgba(189, 29, 99, .15);
	--shadow-l: 0 18px 48px rgba(42, 23, 34, .20);

	--font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
	--font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;

	--sidebar: 268px;
	--wrap: 1380px;
	--head-h: 68px;
}

/* ===================================================================
   2. Base
   =================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	min-height: 100vh;
	background-color: var(--bg);
	background-image:
		radial-gradient(900px 460px at 6% -90px, rgba(240, 103, 154, .14), transparent 70%),
		radial-gradient(760px 420px at 100% -40px, rgba(255, 160, 120, .12), transparent 70%);
	background-repeat: no-repeat;
	color: var(--ink);
	font: 400 16px/1.6 var(--font);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
	margin: 0;
	font-family: var(--font-display);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -.02em;
	color: var(--ink);
}

p { margin: 0 0 1em; }

a { color: var(--brand-ink); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--brand); }

[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }

.visually-hidden {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0; border: 0;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 300; }
.skip-link:focus {
	left: 12px;
	background: var(--surface);
	color: var(--ink);
	padding: 10px 16px;
	border-radius: var(--radius-s);
	box-shadow: var(--shadow-l);
}

.ic { flex: none; vertical-align: middle; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }

.grad-text {
	background: var(--grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	-webkit-text-fill-color: transparent;
}

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

/* ===================================================================
   3. Header
   =================================================================== */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 120; pointer-events: none; }
.progress__bar { display: block; height: 100%; width: 0; background: var(--grad); }

.site-head {
	position: sticky; top: 0; z-index: 80;
	height: var(--head-h);
	background: rgba(255, 255, 255, .82);
	-webkit-backdrop-filter: saturate(1.4) blur(14px);
	backdrop-filter: saturate(1.4) blur(14px);
	border-bottom: 1px solid var(--line);
	transition: box-shadow .2s;
}
.site-head.is-scrolled { box-shadow: 0 6px 24px rgba(42, 23, 34, .07); }
.site-head__inner { display: flex; align-items: center; gap: 20px; height: 100%; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__mark {
	display: grid; place-items: center;
	width: 40px; height: 40px; border-radius: 50%;
	background: var(--grad);
	color: #fff;
	box-shadow: 0 6px 16px rgba(216, 47, 115, .30);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font: 800 18px/1.1 var(--font-display); letter-spacing: -.02em; }
.brand__name span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.brand__tag { font-size: 11.5px; font-weight: 600; letter-spacing: .02em; color: var(--muted); margin-top: 3px; }

.topnav { display: flex; align-items: center; gap: 4px; margin-inline: auto; }
.topnav a {
	padding: 8px 14px; border-radius: 999px;
	font-weight: 600; font-size: 14.5px; color: var(--ink-2); text-decoration: none;
	transition: background .15s, color .15s;
}
.topnav a:hover { background: var(--brand-soft); color: var(--brand-ink); }
.topnav a.is-current { background: var(--brand-soft); color: var(--brand-ink); }

.nav-toggle {
	display: none; place-items: center;
	width: 42px; height: 42px; margin-left: -8px;
	background: transparent; border: 0; border-radius: 12px; color: var(--ink); cursor: pointer;
}
.nav-toggle:hover { background: var(--brand-soft); }

/* ===================================================================
   4. Buttons, chips, badges
   =================================================================== */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 12px 20px; border: 1px solid transparent; border-radius: 999px;
	font: 700 15px/1.2 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
	transition: transform .15s, box-shadow .15s, background .15s, border-color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 8px 22px rgba(189, 29, 99, .28); }
.btn--primary:hover { color: #fff; box-shadow: 0 12px 28px rgba(189, 29, 99, .36); }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { color: var(--brand-ink); border-color: var(--brand); background: var(--brand-soft); }
.btn--light { background: #fff; color: var(--brand-ink); box-shadow: 0 8px 22px rgba(42, 23, 34, .18); }
.btn--light:hover { color: var(--brand); }
.btn--sm { padding: 9px 16px; font-size: 14px; }
.btn--lg { padding: 15px 26px; font-size: 16px; }
.btn--block { display: flex; width: 100%; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.chip {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 8px 14px; border-radius: 999px;
	background: var(--surface); border: 1px solid var(--line-2);
	font: 600 14px/1 var(--font); color: var(--ink-2); text-decoration: none; cursor: pointer;
	transition: background .15s, border-color .15s, color .15s;
}
.chip:hover { border-color: var(--brand); color: var(--brand-ink); }
.chip.is-active, .chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip__n { font-size: 12px; font-weight: 700; opacity: .7; }
.chips--themes .chip { padding: 6px 12px; font-size: 13px; background: transparent; }
.chips--themes .chip.is-active { background: var(--teal-ink); border-color: var(--teal-ink); }

.badge {
	display: inline-flex; align-items: center; gap: 4px;
	padding: 6px 9px; border-radius: 999px;
	font: 800 10.5px/1 var(--font); letter-spacing: .04em; text-transform: uppercase;
	white-space: nowrap;
}
.badge--new {
	background: rgba(216, 47, 115, .85); color: #fff; text-shadow: 0 1px 2px rgba(80, 10, 40, .35);
	-webkit-backdrop-filter: blur(8px) saturate(1.4); backdrop-filter: blur(8px) saturate(1.4);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28), 0 2px 10px rgba(120, 20, 60, .28);
}
.badge--spicy {
	margin-left: auto; background: rgba(255, 255, 255, .84); color: var(--coral);
	-webkit-backdrop-filter: blur(8px) saturate(1.2); backdrop-filter: blur(8px) saturate(1.2);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6), 0 2px 10px rgba(42, 23, 34, .22);
}

.eyebrow {
	display: inline-flex; align-items: center; gap: 8px;
	margin: 0 0 14px;
	font: 700 12px/1 var(--font); letter-spacing: .09em; text-transform: uppercase; color: var(--brand-ink);
}
.microcopy { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); }
.lede { font-size: 18px; line-height: 1.6; color: var(--ink-2); max-width: 62ch; }

/* ===================================================================
   5. Layout and sidebar
   =================================================================== */
.layout { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); gap: 0 44px; align-items: start; }
.main { min-width: 0; padding: 34px 0 90px; }

.sidebar {
	position: sticky; top: var(--head-h);
	height: calc(100vh - var(--head-h)); overflow-y: auto; overscroll-behavior: contain;
	padding: 24px 0 28px;
	scrollbar-width: thin; scrollbar-color: var(--line-2) transparent;
}
.sidebar__top { display: none; }

.sb-group { margin-bottom: 20px; }
.sb-label {
	display: flex; align-items: center; justify-content: space-between;
	margin: 0 0 8px; padding: 0 12px;
	font: 800 11px/1 var(--font); letter-spacing: .11em; text-transform: uppercase; color: var(--muted);
}
.sb-group--fold > summary { cursor: pointer; list-style: none; }
.sb-group--fold > summary::-webkit-details-marker { display: none; }
.sb-group--fold > summary .ic { transition: transform .2s; }
.sb-group--fold[open] > summary .ic { transform: rotate(180deg); }

.sb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.sb-link {
	display: flex; align-items: center; gap: 12px;
	padding: 10px 12px; border-radius: 12px;
	font-weight: 600; font-size: 15px; color: var(--ink-2); text-decoration: none;
	transition: background .15s, color .15s;
}
.sb-link .ic { color: var(--muted); transition: color .15s; }
.sb-link:hover { background: var(--surface); color: var(--ink); }
.sb-link:hover .ic { color: var(--brand); }
.sb-link.is-active { background: var(--surface); color: var(--brand-ink); box-shadow: var(--shadow-s), inset 3px 0 0 var(--brand); }
.sb-link.is-active .ic { color: var(--brand); }
.sb-link__text { flex: 1; }
.sb-count { font-size: 12px; font-weight: 700; color: var(--muted); background: var(--bg-soft); padding: 3px 8px; border-radius: 999px; }

.sb-series, .sb-twin {
	display: flex; align-items: center; gap: 10px;
	padding: 6px 10px; border-radius: 12px;
	color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 600; line-height: 1.25;
}
.sb-series:hover, .sb-twin:hover { background: var(--surface); color: var(--ink); }
.sb-series.is-active, .sb-twin.is-active { background: var(--surface); color: var(--brand-ink); box-shadow: var(--shadow-s); }
.sb-series__title { flex: 1; min-width: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sb-thumb {
	position: relative; flex: none; width: 36px; height: 52px; overflow: hidden;
	border-radius: 7px; background: var(--grad); border: 1px solid var(--line);
}
.sb-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sb-ep { flex: none; font-size: 12px; font-weight: 700; color: var(--muted); }
.sb-ep.is-new { color: var(--brand); }
.sb-ep.is-new::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); vertical-align: 1px; }
.sb-more { display: flex; align-items: center; gap: 6px; padding: 8px 12px; font-size: 13.5px; font-weight: 700; text-decoration: none; }

.avatar {
	position: relative; overflow: hidden;
	display: inline-grid; place-items: center; flex: none;
	width: 44px; height: 44px; border-radius: 50%;
	background: var(--grad); color: #fff;
	font: 800 15px/1 var(--font-display); letter-spacing: .02em;
	box-shadow: 0 6px 16px rgba(216, 47, 115, .25);
}
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.avatar--sm { width: 32px; height: 32px; font-size: 12px; box-shadow: none; }
.avatar--lg { width: 88px; height: 88px; font-size: 28px; }

.sb-cta { margin-top: 8px; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-s); }
.sb-cta__text { margin: 0 0 12px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.sb-cta .microcopy { text-align: center; }

.scrim { position: fixed; inset: 0; z-index: 85; background: rgba(42, 23, 34, .45); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }

/* ===================================================================
   6. Poster cards and grids
   =================================================================== */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 26px 18px; margin-top: 8px; }
.grid--related { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }

.card { display: block; color: inherit; text-decoration: none; }
.card:hover { color: inherit; }
.card__poster {
	position: relative; display: block; overflow: hidden; container-type: inline-size;
	aspect-ratio: 9 / 13; border-radius: 22px;
	background: var(--grad);
	box-shadow: 0 8px 22px rgba(42, 23, 34, .14);
	transition: transform .25s, box-shadow .25s;
}
.card:hover .card__poster { transform: translateY(-5px); box-shadow: 0 16px 34px rgba(189, 29, 99, .26); }
.card__poster img, .series-hero__poster img, .mini__thumb img {
	position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
}
.poster-img.is-broken { display: none; }
.card--twin .card__poster img { object-position: center 20%; }
.card__fallback {
	position: absolute; inset: 0; display: grid; place-items: center; padding: 14px;
	background: linear-gradient(160deg, #f0679a 0%, #d82f73 58%, #ff8a6b 100%);
	color: #fff; text-align: center; font: 800 16px/1.2 var(--font-display); letter-spacing: -.01em;
}
.card__badges { position: absolute; top: 8px; left: 8px; right: 8px; z-index: 3; display: flex; justify-content: space-between; gap: 6px; pointer-events: none; }
.card__shade {
	position: absolute; inset: 0; z-index: 1; pointer-events: none;
	background: linear-gradient(180deg, rgba(20, 8, 14, 0) 42%, rgba(20, 8, 14, .55) 66%, rgba(20, 8, 14, .9) 100%);
}
.card__info {
	position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
	display: flex; flex-direction: column; gap: 3px;
	padding: 12px 13px 13px; padding: clamp(10px, 6cqw, 20px);
	color: #fff;
}
.card__title {
	display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
	font: 800 16px/1.15 var(--font-display); font-size: clamp(14px, 8.4cqw, 24px); letter-spacing: -.015em;
	color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .5);
}
.card__meta { font-size: 12.5px; font-size: clamp(11.5px, 6.2cqw, 15px); font-weight: 600; color: rgba(255, 255, 255, .82); }

.poster-note {
	position: absolute; left: 12px; bottom: 12px; z-index: 3;
	display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px;
	background: rgba(255, 255, 255, .84); color: var(--coral);
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
	font: 800 12px/1 var(--font); letter-spacing: .04em; text-transform: uppercase;
	box-shadow: 0 2px 10px rgba(42, 23, 34, .22);
}

/* ===================================================================
   7. Home
   =================================================================== */
/* Hero with a photo background (home and straight-answer pages) */
.hero-photo {
	position: relative; isolation: isolate; overflow: hidden;
	display: flex; align-items: center; min-height: 440px;
	margin-bottom: 40px; border-radius: 28px;
	background: linear-gradient(135deg, #3a1226 0%, #1a0f16 60%, #2a1022 100%);
	color: #fff; box-shadow: var(--shadow-l);
}
.hero-photo--page { min-height: 360px; }
.hero-photo__bg { position: absolute; inset: 0; z-index: -2; }
.hero-photo__bg .banner__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.hero-photo__bg .banner__slide.is-active { opacity: 1; }
.hero-photo__bg img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 62% 30%; }
.hero-photo__shade {
	position: absolute; inset: 0; z-index: -1;
	background:
		linear-gradient(90deg, rgba(20, 8, 14, .93) 0%, rgba(20, 8, 14, .80) 36%, rgba(20, 8, 14, .42) 68%, rgba(20, 8, 14, .58) 100%),
		radial-gradient(760px 360px at 8% 110%, rgba(216, 47, 115, .34), transparent 70%);
}
.hero-photo__inner { position: relative; width: 100%; max-width: 780px; padding: 54px clamp(22px, 5vw, 60px) 50px; }
.hero-photo .eyebrow { color: #ffc2da; }
.hero-photo__title { margin: 0 0 14px; color: #fff; font-size: clamp(36px, 5.2vw, 64px); line-height: 1.04; letter-spacing: -.035em; }
.hero-photo--page .hero-photo__title { font-size: clamp(32px, 4.4vw, 52px); max-width: 20ch; }
.hero-photo .grad-text { background: linear-gradient(90deg, #ff5c9a 0%, #ff9f7a 100%); -webkit-background-clip: text; background-clip: text; }
.hero-photo__tagline { margin: 0 0 12px; font: 800 clamp(18px, 2vw, 24px)/1.3 var(--font-display); letter-spacing: -.01em; color: #fff; }
.hero-photo__lede { margin: 0 0 26px; max-width: 58ch; font-size: 17px; line-height: 1.65; color: rgba(255, 255, 255, .84); }
.hero-photo__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-photo__note { margin: 16px 0 0; font-size: 13px; color: rgba(255, 255, 255, .72); }
.btn--glass {
	background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .24);
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.btn--glass:hover { background: rgba(255, 255, 255, .22); border-color: #fff; color: #fff; }

.home-intro { display: grid; gap: 14px; margin-top: 28px; }
.stats--glance { margin: 0; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }

.newbox {
	margin-top: 40px; padding: 22px 24px 18px;
	background: linear-gradient(180deg, #ffffff 0%, #fff0f5 100%);
	border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow-s);
}
.newbox__head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 16px; }
.newbox__title { font-size: 20px; }
.newbox__desc { margin: 0; font-size: 14px; color: var(--muted); }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(216, 47, 115, .45); } 70% { box-shadow: 0 0 0 9px rgba(216, 47, 115, 0); } 100% { box-shadow: 0 0 0 0 rgba(216, 47, 115, 0); } }
.newbox__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; margin-bottom: 14px; }

.mini {
	position: relative; display: flex; align-items: center; gap: 14px;
	padding: 12px 14px; border-radius: var(--radius-m);
	background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: inherit;
	transition: border-color .15s, box-shadow .15s, transform .15s;
}
.mini:hover { border-color: var(--brand); box-shadow: var(--shadow-m); transform: translateY(-2px); color: inherit; }
.mini__thumb { position: relative; flex: none; width: 60px; height: 86px; overflow: hidden; border-radius: 10px; background: var(--grad); }
.mini__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.mini__kicker { font: 800 10.5px/1 var(--font); letter-spacing: .09em; text-transform: uppercase; color: var(--brand); }
.mini__title { font-weight: 700; font-size: 15px; line-height: 1.25; color: var(--ink); }
.mini__meta { font-size: 12.5px; color: var(--muted); }
.mini__arrow { flex: none; color: var(--muted); }
.mini:hover .mini__arrow { color: var(--brand); }

.more-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14.5px; text-decoration: none; }
.more-link:hover .ic { transform: translateX(3px); }
.more-link .ic { transition: transform .15s; }

.section { margin-top: 64px; }
.section--tight { margin-top: 36px; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; margin-bottom: 20px; }
.section__title { font-size: clamp(26px, 3vw, 34px); }
.section__desc { margin: 8px 0 0; max-width: 60ch; color: var(--muted); }
.section__foot { margin-top: 28px; text-align: center; }

.twins { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 24px 18px; }
.twins--lg { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 28px 22px; }

.cards3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.acard {
	position: relative; display: block; padding: 22px 22px 20px; text-decoration: none; color: inherit;
	border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
	transition: transform .2s, box-shadow .2s, border-color .2s;
}
.acard:hover { transform: translateY(-3px); box-shadow: var(--shadow-m); border-color: var(--brand); color: inherit; }
.acard__kicker { font: 800 11px/1 var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--teal-ink); }
.acard__arrow { position: absolute; top: 20px; right: 20px; color: var(--muted); }
.acard:hover .acard__arrow { color: var(--brand); }
.acard__title { margin: 12px 0 8px; font-size: 19px; line-height: 1.25; padding-right: 28px; }
.acard__text { margin: 0; font-size: 14.5px; color: var(--muted); }

.ctaband {
	display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px 32px;
	margin-top: 72px; padding: 34px 36px; border-radius: 24px;
	background: var(--grad); color: #fff; box-shadow: var(--shadow-m);
}
.ctaband h2 { color: #fff; font-size: clamp(24px, 3vw, 32px); margin-bottom: 8px; }
.ctaband p { margin: 0; max-width: 52ch; color: rgba(255, 255, 255, .9); }

/* ===================================================================
   8. Page heads, filters, breadcrumbs
   =================================================================== */
.crumbs { margin-bottom: 18px; font-size: 13.5px; color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-2); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand-ink); text-decoration: underline; }

.page-head { margin-bottom: 30px; }
.page-title { font-size: clamp(32px, 4.2vw, 48px); line-height: 1.08; letter-spacing: -.03em; margin-bottom: 14px; max-width: 24ch; }
.page-head__cta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin-top: 20px; }
.page-head--twin { display: flex; align-items: center; gap: 28px; }
.page-head--twin .page-title { max-width: none; }
.byline { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 16px 0 0; font-size: 13.5px; color: var(--muted); }
.byline .ic { margin-right: 4px; vertical-align: -3px; }

.filters { margin-bottom: 22px; }
.searchbox {
	display: flex; align-items: center; gap: 10px; max-width: 520px; margin-bottom: 16px;
	padding: 0 16px; height: 50px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2);
	color: var(--muted); transition: border-color .15s, box-shadow .15s;
}
.searchbox:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(216, 47, 115, .16); }
.searchbox input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font: 500 16px/1 var(--font); color: var(--ink); }
.searchbox--page { margin-top: 18px; }
.filters__count { margin: 6px 0 0; min-height: 1.2em; font-size: 13.5px; color: var(--muted); }
.filters__empty { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px dashed var(--line-2); color: var(--muted); text-align: center; }

/* ===================================================================
   9. Series page
   =================================================================== */
.series-hero { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: 38px; align-items: start; margin-bottom: 44px; }
.series-hero__poster {
	position: relative; overflow: hidden; aspect-ratio: 9 / 13; border-radius: 20px;
	background: var(--grad); border: 1px solid var(--line); box-shadow: var(--shadow-m);
}
.series-title { font-size: clamp(30px, 4vw, 46px); line-height: 1.08; letter-spacing: -.03em; margin-bottom: 14px; }
.series-title__sub { display: block; margin-top: 6px; font-size: .5em; font-weight: 700; letter-spacing: -.01em; color: var(--muted); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 22px 0 24px; }
.stat { margin: 0; padding: 12px 16px; border-radius: var(--radius-m); background: var(--surface); border: 1px solid var(--line); }
.stat--wide { grid-column: span 2; }
.stat dt { font: 800 10.5px/1 var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.stat dd { margin: 7px 0 0; font: 700 17px/1.3 var(--font); color: var(--ink); }
.stat dd a { text-decoration: none; }
.pips { display: flex; gap: 4px; margin-top: 8px; }
.pips i { width: 14px; height: 6px; border-radius: 3px; border: 1.5px solid var(--line-2); }
.pips i.is-free { background: var(--teal); border-color: var(--teal); }
.taglist { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
	padding: 5px 11px; border-radius: 999px; background: var(--brand-soft);
	font: 700 13px/1.1 var(--font); color: var(--brand-ink); text-decoration: none;
}
.tag:hover { background: var(--brand); color: #fff; }
.series-hero__cta { margin-top: 4px; }

.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 48px; align-items: start; }
.page .article-grid { margin-top: 8px; }

.quick {
	margin: 0 0 8px; padding: 20px 24px;
	background: linear-gradient(180deg, #ffffff 0%, #fff0f5 100%);
	border: 1px solid var(--line-2); border-left: 5px solid var(--brand); border-radius: var(--radius-m);
}
.quick p { margin: 0; font-size: 17px; line-height: 1.65; color: var(--ink); }
.quick .quick__label { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; font: 800 11px/1 var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--brand-ink); }

.prose { max-width: 720px; font-size: 17px; line-height: 1.75; color: var(--ink-2); }
.prose--wide { max-width: 860px; margin-top: 40px; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 52px 0 14px; font-size: clamp(24px, 2.6vw, 30px); scroll-margin-top: calc(var(--head-h) + 22px); }
.prose h3 { margin: 32px 0 10px; font-size: 21px; }
.prose p { margin: 0 0 1.1em; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose strong { color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: 15.5px; }
.prose th, .prose td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.prose th { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.prose .grid { margin-top: 18px; }
.inline-cta { margin: 22px 0 0; }
.editor-notes { padding: 4px 22px; border-radius: var(--radius-m); background: var(--surface); border: 1px solid var(--line); }

.eps { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; list-style: none; margin: 18px 0 0; padding: 0; }
.ep {
	display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 10px 12px; border-radius: var(--radius-s);
	background: var(--surface); border: 1px solid var(--line); line-height: 1.2;
}
.ep__n { font: 800 18px/1 var(--font-display); color: var(--ink); }
.ep__state { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; }
.ep--free { background: var(--teal-soft); border-color: #b6e6cf; }
.ep--free .ep__state { color: var(--teal-ink); }
.ep--lock .ep__state { color: var(--muted); }

.toc { position: sticky; top: calc(var(--head-h) + 28px); }
.toc__label { margin: 0 0 12px; font: 800 11px/1 var(--font); letter-spacing: .11em; text-transform: uppercase; color: var(--muted); }
.toc__list { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc__list a {
	display: block; margin-left: -2px; padding: 7px 0 7px 14px; border-left: 2px solid transparent;
	font-size: 13.5px; line-height: 1.35; font-weight: 600; color: var(--muted); text-decoration: none;
}
.toc__list a:hover { color: var(--ink); }
.toc__list a.is-active { color: var(--brand-ink); border-left-color: var(--brand); }

.faq-list { display: grid; gap: 10px; }
.faq { border-radius: var(--radius-m); background: var(--surface); border: 1px solid var(--line); }
.faq[open] { border-color: var(--line-2); box-shadow: var(--shadow-s); }
.faq summary {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	padding: 16px 20px; cursor: pointer; list-style: none;
	font: 700 16px/1.35 var(--font); color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { color: var(--muted); transition: transform .2s; }
.faq[open] summary .ic { transform: rotate(180deg); color: var(--brand); }
.faq p { margin: 0; padding: 0 20px 18px; font-size: 16px; line-height: 1.7; color: var(--ink-2); }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 64px; }
.pager__link {
	display: flex; flex-direction: column; gap: 4px; padding: 16px 20px; border-radius: var(--radius-m);
	background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: inherit;
	transition: border-color .15s, box-shadow .15s;
}
.pager__link:hover { border-color: var(--brand); box-shadow: var(--shadow-m); color: inherit; }
.pager__link--next { grid-column: 2; text-align: right; }
.pager__link--prev { grid-column: 1; }
.pager__label { font: 800 11px/1 var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pager__title { font-weight: 700; font-size: 16px; color: var(--ink); }

.linklist { margin: 0; padding-left: 1.2em; }
.postlist { display: grid; gap: 18px; max-width: 760px; }
.postlist__item { padding: 20px 22px; border-radius: var(--radius-m); background: var(--surface); border: 1px solid var(--line); }
.postlist__title { font-size: 22px; margin-bottom: 4px; }
.postlist__title a { color: var(--ink); text-decoration: none; }
.postlist__meta { font-size: 13px; color: var(--muted); margin-bottom: 8px; }

/* ===================================================================
   10. Footer and notices
   =================================================================== */
.site-foot { margin-top: 24px; background: var(--surface); border-top: 1px solid var(--line); }
.foot__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; padding-block: 44px 28px; }
.foot__note { max-width: 56ch; margin: 16px 0 0; font-size: 13.5px; line-height: 1.65; color: var(--muted); }
.foot__title { margin-bottom: 14px; font: 800 11px/1 var(--font); letter-spacing: .11em; text-transform: uppercase; color: var(--muted); }
.foot__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot__col a { font-size: 14.5px; font-weight: 600; color: var(--ink-2); text-decoration: none; }
.foot__col a:hover { color: var(--brand-ink); text-decoration: underline; }
.foot__bar { padding-block: 18px 28px; border-top: 1px solid var(--line); }
.foot__bar p { margin: 0; font-size: 13px; color: var(--muted); }

.age-notice {
	position: fixed; left: 50%; bottom: 16px; z-index: 130; transform: translateX(-50%);
	display: flex; align-items: center; gap: 14px 18px; flex-wrap: wrap; justify-content: center;
	width: max-content; max-width: min(720px, calc(100vw - 24px));
	padding: 12px 16px 12px 20px; border-radius: 18px;
	background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-l);
}
.age-notice p { margin: 0; font-size: 14px; color: var(--ink-2); }

/* ===================================================================
   11. Responsive
   =================================================================== */
@media (max-width: 1240px) {
	.article-grid { grid-template-columns: minmax(0, 1fr); }
	.toc { display: none; }
	.prose { max-width: 760px; }
}

@media (max-width: 1100px) {
	.layout { grid-template-columns: minmax(0, 1fr); }
	.nav-toggle { display: grid; }
	.topnav { display: none; }
	.site-head__inner { gap: 12px; }
	.site-head__cta { margin-left: auto; }

	.sidebar {
		position: fixed; inset: 0 auto 0 0; z-index: 90; width: min(330px, 88vw); height: 100%;
		padding: 16px 16px 24px; background: var(--bg);
		border-right: 1px solid var(--line); box-shadow: var(--shadow-l);
		transform: translateX(-104%); transition: transform .28s cubic-bezier(.2, .8, .2, 1);
		visibility: hidden;
	}
	.nav-open .sidebar { transform: none; visibility: visible; }
	.nav-open { overflow: hidden; }
	.sidebar__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
	.sidebar__close { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 12px; background: var(--surface); color: var(--ink); cursor: pointer; }
	.main { padding-top: 26px; }
}

@media (max-width: 900px) {
	.hero-photo { min-height: 0; border-radius: 22px; }
	.hero-photo__inner { padding: 36px 22px 32px; }
	.hero-photo__shade { background: linear-gradient(180deg, rgba(20, 8, 14, .72) 0%, rgba(20, 8, 14, .9) 100%); }

	.series-hero { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.series-hero__poster { max-width: 260px; }
	.foot__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.foot__about { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
	.wrap { padding-inline: 16px; }
	.brand__tag { display: none; }
	.site-head__cta > span:not(.visually-hidden) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.site-head__cta { padding: 9px 12px; }
	.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
	.grid--related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.twins, .twins--lg { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
	.newbox { padding: 18px 16px 14px; }
	.newbox__grid { grid-template-columns: minmax(0, 1fr); }
	.stat--wide { grid-column: auto; }
	.page-head--twin { flex-direction: column; align-items: flex-start; gap: 16px; }
	.ctaband { padding: 26px 22px; }
	.pager { grid-template-columns: minmax(0, 1fr); }
	.pager__link--next { grid-column: 1; text-align: left; }
	.foot__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.age-notice { bottom: 10px; padding: 12px 14px; }
}

@media print {
	.site-head, .sidebar, .site-foot, .age-notice, .progress, .ctaband { display: none !important; }
	.layout { display: block; }
}
