/*
Theme Name: CS Episodes
Theme URI: https://candyaishortsepisodes.com/
Description: Independent guide theme for Candy Shorts series and episodes, with affiliate go-links, series catalogue, SEO meta and editable settings.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: csepisodes
License: GPL-2.0-or-later
*/

/* ---------- Tokens ---------- */
:root {
	--bg: #0c0a11;
	--surface: #15111d;
	--surface-2: #1e1829;
	--surface-3: #281f37;
	--line: rgba(255, 255, 255, .09);
	--text: #f5f2fa;
	--muted: #aca3bd;
	--soft: #d9d2e6;
	--pink: #ff3d8b;
	--pink-2: #ff6fae;
	--violet: #8b5cf6;
	--gold: #ffc65c;
	--green: #3ddc97;
	--grad: linear-gradient(135deg, #ff3d8b 0%, #c13cf0 55%, #8b5cf6 100%);
	--radius: 14px;
	--radius-sm: 9px;
	--shadow: 0 10px 30px rgba(0, 0, 0, .35);
	--wrap: 1180px;
	--font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}
body.cse-locked { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pink-2); text-decoration: none; }
a:hover { color: #fff; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1.1em; }
strong { color: #fff; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 10px; left: 10px; z-index: 1000; width: auto; height: auto; clip: auto; padding: 10px 16px; background: #fff; color: #000; border-radius: 8px; }
.cse-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.cse-muted { color: var(--muted); }
:focus-visible { outline: 2px solid var(--pink-2); outline-offset: 2px; }

/* ---------- Topbar & header ---------- */
.cse-topbar {
	background: #07060a;
	border-bottom: 1px solid var(--line);
	color: var(--muted);
	font-size: 13px;
	text-align: center;
	padding: 6px 12px;
}
.cse-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(12, 10, 17, .86);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--line);
}
.cse-header__in { display: flex; align-items: center; gap: 18px; min-height: 66px; }
.cse-logo { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 1.08rem; letter-spacing: -.01em; }
.cse-logo:hover { color: #fff; }
.cse-logo__mark { width: 34px; height: 34px; border-radius: 10px; background: var(--grad); display: grid; place-items: center; font-size: 16px; box-shadow: 0 6px 18px rgba(255, 61, 139, .35); }
.cse-logo__tag { display: block; font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.cse-nav { margin-left: auto; }
.cse-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.cse-nav a { display: block; padding: 8px 12px; border-radius: 9px; color: var(--soft); font-size: 15px; font-weight: 600; }
.cse-nav a:hover, .cse-nav .current-menu-item > a, .cse-nav .current_page_item > a { background: var(--surface-2); color: #fff; }
.cse-header .cse-btn { padding: 10px 16px; font-size: 15px; }
.cse-burger { display: none; margin-left: auto; background: var(--surface-2); color: #fff; border: 1px solid var(--line); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; font-size: 20px; }

@media (max-width: 960px) {
	.cse-burger { display: block; }
	.cse-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); padding: 10px 20px 18px; }
	.cse-nav.is-open { display: block; }
	.cse-nav ul { flex-direction: column; }
	.cse-nav a { padding: 12px 10px; }
	.cse-header .cse-btn { padding: 9px 13px; font-size: 14px; }
	.cse-header .cse-btn svg { display: none; }
}
@media (max-width: 480px) {
	.cse-header__in { gap: 10px; }
	.cse-logo { font-size: .95rem; }
	.cse-logo__tag { display: none; }
	.cse-logo__mark { width: 30px; height: 30px; }
	.cse-wrap { padding: 0 16px; }
}

/* ---------- Buttons ---------- */
.cse-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 14px 24px; border-radius: 999px; border: 0; cursor: pointer;
	font-weight: 800; font-size: 16px; line-height: 1.1; text-align: center;
	color: #fff; background: var(--grad);
	box-shadow: 0 8px 24px rgba(255, 61, 139, .32);
	transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.cse-btn:hover { color: #fff; transform: translateY(-1px); filter: brightness(1.08); box-shadow: 0 12px 30px rgba(255, 61, 139, .42); }
.cse-btn svg { width: 16px; height: 16px; flex: none; }
.cse-btn--ghost { background: var(--surface-2); box-shadow: none; border: 1px solid var(--line); }
.cse-btn--ghost:hover { background: var(--surface-3); box-shadow: none; }
.cse-btn--lg { padding: 17px 30px; font-size: 18px; }
.cse-btn--block { display: flex; width: 100%; }
.cse-cta-wrap { margin: 1.6em 0; }
.cse-cta-wrap--center { text-align: center; }
.cse-cta-note { display: block; margin-top: 8px; font-size: 12.5px; color: var(--muted); }

/* ---------- Hero ---------- */
.cse-hero { position: relative; overflow: hidden; padding: 64px 0 40px; }
.cse-hero::before {
	content: ""; position: absolute; inset: -40% -10% auto; height: 120%;
	background: radial-gradient(closest-side, rgba(255, 61, 139, .28), transparent 70%), radial-gradient(closest-side at 80% 30%, rgba(139, 92, 246, .25), transparent 70%);
	pointer-events: none;
}
.cse-hero > * { position: relative; }
.cse-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 61, 139, .12); border: 1px solid rgba(255, 61, 139, .3); color: var(--pink-2); font-size: 13px; font-weight: 700; margin-bottom: 18px; }
.cse-hero h1 { max-width: 880px; }
.cse-hero__lead { font-size: 1.18rem; color: var(--soft); max-width: 760px; }
.cse-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 10px; }

.cse-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 34px 0 0; }
.cse-stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.cse-stat b { display: block; font-size: 1.6rem; line-height: 1.1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cse-stat span { font-size: 14px; color: var(--muted); }
@media (max-width: 720px) { .cse-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Sections ---------- */
.cse-section { padding: 36px 0; }
.cse-section__head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.cse-section__head h2 { margin: 0; }
.cse-section__head a { font-weight: 700; white-space: nowrap; }

/* ---------- Series grid & cards ---------- */
.cse-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 18px; }
.cse-card { position: relative; display: flex; flex-direction: column; gap: 9px; color: var(--text); }
.cse-card:hover { color: #fff; }
.cse-poster { position: relative; aspect-ratio: 7 / 10; border-radius: 12px; overflow: hidden; background: var(--surface-2); box-shadow: var(--shadow); }
.cse-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.cse-card:hover .cse-poster img { transform: scale(1.04); }
.cse-poster--ph {
	display: flex; flex-direction: column; justify-content: flex-end; padding: 14px;
	background: radial-gradient(120% 80% at 20% 0%, hsla(var(--h, 330), 90%, 60%, .55), transparent 60%), radial-gradient(100% 70% at 100% 100%, hsla(calc(var(--h, 330) + 50), 85%, 55%, .45), transparent 65%), #19121f;
}
.cse-poster--ph strong { font-size: 1.02rem; line-height: 1.2; text-shadow: 0 2px 12px rgba(0, 0, 0, .5); }
.cse-poster--ph em { font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .75); margin-bottom: 6px; }
.cse-poster__play { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity .2s; background: rgba(0, 0, 0, .25); }
.cse-poster__play span { width: 52px; height: 52px; border-radius: 50%; background: rgba(255, 255, 255, .92); display: grid; place-items: center; color: #111; font-size: 20px; padding-left: 4px; }
.cse-card:hover .cse-poster__play { opacity: 1; }
.cse-card__title { font-weight: 700; font-size: 15px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cse-card__meta { font-size: 13px; color: var(--muted); margin-top: -4px; }
.cse-badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; background: var(--surface-3); color: var(--soft); }
.cse-badge--new { background: var(--pink); color: #fff; }
.cse-badge--creator { background: var(--gold); color: #1a1205; }
.cse-badge--free { background: rgba(61, 220, 151, .15); color: var(--green); }
.cse-poster .cse-badge { position: absolute; top: 9px; left: 9px; z-index: 2; }

/* ---------- Chips ---------- */
.cse-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.cse-chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--soft); font-size: 14px; font-weight: 600; }
.cse-chip:hover, .cse-chip.is-active { background: var(--surface-3); color: #fff; border-color: rgba(255, 61, 139, .45); }
.cse-chip small { color: var(--muted); font-weight: 600; }

/* ---------- Page layout ---------- */
.cse-page { padding: 34px 0 50px; }
.cse-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
@media (max-width: 960px) { .cse-layout { grid-template-columns: 1fr; } }
.cse-aside { position: sticky; top: 90px; }
.cse-aside-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.cse-aside-card h3 { margin-bottom: .4em; }
.cse-aside-card p { color: var(--muted); font-size: 15px; }
.cse-aside-links { list-style: none; padding: 0; margin: 16px 0 0; border-top: 1px solid var(--line); }
.cse-aside-links li { border-bottom: 1px solid var(--line); }
.cse-aside-links a { display: flex; justify-content: space-between; padding: 11px 2px; color: var(--soft); font-weight: 600; font-size: 15px; }
.cse-aside-links a:hover { color: #fff; }
.cse-page-head { margin-bottom: 22px; }
.cse-page-head .cse-lead { font-size: 1.12rem; color: var(--soft); }
.cse-meta-line { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13.5px; color: var(--muted); margin-top: 10px; }

.cse-crumbs { font-size: 13.5px; color: var(--muted); margin-bottom: 16px; }
.cse-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.cse-crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--muted); }
.cse-crumbs a { color: var(--soft); }

/* ---------- Content (Gutenberg) ---------- */
.cse-content > * { max-width: 100%; }
.cse-content h2 { margin-top: 1.7em; }
.cse-content h3 { margin-top: 1.4em; }
.cse-content ul, .cse-content ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.cse-content li { margin-bottom: .4em; }
.cse-content li::marker { color: var(--pink); }
.cse-content a:not(.cse-btn) { text-decoration: underline; text-decoration-color: rgba(255, 111, 174, .45); text-underline-offset: 3px; }
.cse-content .wp-block-table { margin: 1.4em 0; overflow-x: auto; }
.cse-content table { width: 100%; border-collapse: collapse; font-size: 15.5px; background: var(--surface); border-radius: var(--radius-sm); overflow: hidden; }
.cse-content th, .cse-content td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.cse-content thead th { background: var(--surface-3); color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .03em; }
.cse-content .has-fixed-layout { table-layout: auto; }
.cse-content blockquote, .cse-callout {
	margin: 1.5em 0; padding: 16px 20px; border-radius: var(--radius-sm);
	background: linear-gradient(135deg, rgba(255, 61, 139, .1), rgba(139, 92, 246, .1));
	border: 1px solid rgba(255, 61, 139, .25); color: var(--soft);
}
.cse-content details, .wp-block-details {
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
	padding: 0; margin: 0 0 10px;
}
.cse-content details summary {
	cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; font-weight: 700; color: #fff; position: relative;
}
.cse-content details summary::-webkit-details-marker { display: none; }
.cse-content details summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--pink); }
.cse-content details[open] summary::after { content: "–"; }
.cse-content details > :not(summary) { padding: 0 18px; color: var(--soft); }
.cse-content details > :last-child { padding-bottom: 6px; }

/* ---------- Series single ---------- */
.cse-series-hero { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 36px; align-items: start; padding: 10px 0 20px; }
@media (max-width: 760px) { .cse-series-hero { grid-template-columns: 1fr; } .cse-series-hero .cse-poster { max-width: 260px; } }
.cse-series-hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
.cse-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 18px; padding: 0; list-style: none; }
.cse-facts li { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-size: 14px; color: var(--soft); }
.cse-facts b { color: #fff; }
.cse-episodes { list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: 8px; }
.cse-episodes a { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; color: var(--text); }
.cse-episodes a:hover { border-color: rgba(255, 61, 139, .5); background: var(--surface-2); color: #fff; }
.cse-episodes .cse-ep-num { width: 34px; height: 34px; border-radius: 50%; background: var(--surface-3); display: grid; place-items: center; font-weight: 800; font-size: 14px; flex: none; }
.cse-episodes .cse-ep-title { font-weight: 700; }
.cse-episodes .cse-ep-tag { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.cse-episodes .is-free .cse-ep-num { background: var(--grad); }
.cse-episodes .is-free .cse-ep-tag { color: var(--green); }
.cse-char-box { display: flex; gap: 18px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 1.6em 0; }
.cse-char-box__avatar { width: 64px; height: 64px; border-radius: 50%; flex: none; background: var(--grad); display: grid; place-items: center; font-weight: 800; font-size: 22px; }
.cse-char-box p { margin: 4px 0 12px; color: var(--muted); font-size: 15px; }
@media (max-width: 560px) { .cse-char-box { flex-direction: column; align-items: flex-start; } }

/* ---------- CTA band ---------- */
.cse-band { margin: 30px 0 0; padding: 44px 0; background: radial-gradient(80% 140% at 10% 0%, rgba(255, 61, 139, .22), transparent 60%), radial-gradient(80% 140% at 90% 100%, rgba(139, 92, 246, .22), transparent 60%), var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cse-band__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cse-band h2 { margin: 0 0 6px; }
.cse-band p { margin: 0; color: var(--soft); }

/* ---------- Character grid ---------- */
.cse-chars { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.cse-char { display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; color: var(--text); }
.cse-char:hover { border-color: rgba(255, 61, 139, .5); color: #fff; }
.cse-char .cse-char-box__avatar { width: 46px; height: 46px; font-size: 16px; }
.cse-char small { display: block; color: var(--muted); }

/* ---------- Pagination ---------- */
.cse-pagination { margin: 30px 0 0; }
.cse-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.cse-pagination .page-numbers { min-width: 42px; padding: 9px 13px; text-align: center; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); color: var(--soft); font-weight: 700; }
.cse-pagination .page-numbers.current, .cse-pagination .page-numbers:hover { background: var(--grad); color: #fff; border-color: transparent; }

/* ---------- Footer ---------- */
.cse-footer { padding: 44px 0 30px; border-top: 1px solid var(--line); background: #08070c; color: var(--muted); font-size: 15px; }
.cse-footer__cols { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 30px; }
@media (max-width: 860px) { .cse-footer__cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .cse-footer__cols { grid-template-columns: 1fr; } }
.cse-footer h4 { color: #fff; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 12px; }
.cse-footer ul { list-style: none; padding: 0; margin: 0; }
.cse-footer li { margin-bottom: 8px; }
.cse-footer a { color: var(--soft); }
.cse-footer a:hover { color: #fff; }
.cse-footer__legal { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13.5px; }

/* ---------- Sticky mobile CTA ---------- */
.cse-sticky { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; display: none; transform: translateY(140%); transition: transform .25s ease; }
.cse-sticky .cse-btn { width: 100%; }
.cse-sticky.is-visible { transform: none; }
@media (max-width: 760px) { .cse-sticky { display: block; } body { padding-bottom: 76px; } }

/* ---------- Age gate ---------- */
.cse-agegate { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 20px; background: rgba(6, 5, 9, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.cse-agegate[hidden] { display: none; }
.cse-agegate__box { max-width: 460px; width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 30px 26px; text-align: center; box-shadow: var(--shadow); }
.cse-agegate__icon { width: 58px; height: 58px; margin: 0 auto 14px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-weight: 900; font-size: 18px; }
.cse-agegate__box p { color: var(--soft); font-size: 15.5px; }
.cse-agegate__actions { display: grid; gap: 10px; margin-top: 18px; }
.cse-agegate__leave { color: var(--muted); font-size: 14px; }

/* ---------- Misc ---------- */
.cse-empty { padding: 40px; text-align: center; background: var(--surface); border-radius: var(--radius); color: var(--muted); }
.cse-disclosure { font-size: 13.5px; color: var(--muted); border-left: 3px solid var(--pink); padding: 4px 0 4px 12px; margin: 1.4em 0; }
.cse-search { display: flex; gap: 8px; max-width: 520px; }
.cse-search input { flex: 1; padding: 13px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: #fff; font-size: 16px; }
.cse-posts { display: grid; gap: 16px; }
.cse-post-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.cse-post-item h2 { font-size: 1.3rem; margin-bottom: .3em; }
.cse-post-item h2 a { color: #fff; }
.alignwide, .alignfull { max-width: 100%; }

/* ---------- Images: episodes, characters, page shots, tool cards ---------- */
.cse-poster img { object-position: top; }
.cse-episodes--cards { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 14px; }
.cse-episodes--cards a { flex-direction: column; align-items: stretch; gap: 8px; padding: 0 0 12px; overflow: hidden; position: relative; }
.cse-episodes--cards .cse-ep-still { position: relative; display: block; aspect-ratio: 9 / 16; background: var(--surface-2); overflow: hidden; }
.cse-episodes--cards .cse-ep-still img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.cse-episodes--cards a:hover .cse-ep-still img { transform: scale(1.05); }
.cse-episodes--cards a:hover .cse-poster__play { opacity: 1; }
/* Locked stills are stored already blurred and darkened (see uploads/cse-episodes). */
.cse-episodes--cards .is-locked .cse-ep-still img { filter: none; }
.cse-episodes--cards .is-locked .cse-ep-still::after { content: "🔒"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 26px; text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.cse-episodes--cards .is-locked a:hover .cse-poster__play { opacity: 0; }
.cse-episodes--cards .cse-ep-num { position: absolute; top: 8px; left: 8px; width: 30px; height: 30px; font-size: 13px; z-index: 2; box-shadow: 0 2px 8px rgba(0,0,0,.4); }
.cse-episodes--cards .cse-ep-title { padding: 0 12px; font-size: 15px; }
.cse-episodes--cards .cse-ep-tag { margin: 0; padding: 0 12px; white-space: normal; font-size: 12.5px; }
img.cse-avatar-img { object-fit: cover; object-position: top; padding: 0; background: var(--surface-3); }
.cse-char-box__avatar.cse-avatar-img { width: 72px; height: 72px; border-radius: 50%; }
.cse-char .cse-avatar-img { width: 52px; height: 52px; border-radius: 50%; flex: none; }
.cse-char-head { display: flex; gap: 24px; align-items: flex-start; }
.cse-char-head__img { width: 170px; height: 240px; border-radius: 14px; object-fit: cover; object-position: top; flex: none; box-shadow: var(--shadow); }
span.cse-char-head__img { display: grid; place-items: center; background: var(--grad); font-size: 42px; font-weight: 800; }
@media (max-width: 600px) { .cse-char-head { flex-direction: column; } .cse-char-head__img { width: 140px; height: 200px; } }
.cse-page-shot { margin: 0 0 28px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.cse-page-shot img { width: 100%; height: auto; }
.cse-page-shot figcaption { padding: 10px 14px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }
.cse-content .wp-block-image { margin: 1.6em 0; }
.cse-content .wp-block-image img { border-radius: var(--radius-sm); border: 1px solid var(--line); }
.cse-content .wp-block-image figcaption { font-size: 13px; color: var(--muted); text-align: center; margin-top: 8px; }
.cse-page-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; margin: 1.6em 0; }
.cse-page-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.cse-page-card__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.cse-page-card__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .3s ease; }
.cse-page-card:hover .cse-page-card__img img { transform: scale(1.03); }
.cse-page-card__body { padding: 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.cse-page-card__body h3 { margin: 0 0 4px; font-size: 1.12rem; }
.cse-page-card__body h3 a { color: #fff; text-decoration: none !important; }
.cse-page-card__body p { color: var(--muted); font-size: 15px; margin-bottom: 14px; flex: 1; }
.cse-page-card__body .cse-btn { align-self: flex-start; padding: 11px 18px; font-size: 15px; }
.cse-page-card__more { font-size: 14px; font-weight: 700; margin-top: 10px; }

/* ---------- Phone overrides (kept last so they win over the base rules) ---------- */
.cse-header .cse-btn { white-space: nowrap; }
@media (max-width: 560px) {
	.cse-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
	.cse-episodes--cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cse-hero { padding-top: 40px; }
	.cse-hero__ctas .cse-btn { width: 100%; }
}
@media (max-width: 380px) {
	.cse-logo > span:last-child { font-size: .88rem; }
	.cse-header .cse-btn { padding: 8px 11px; font-size: 13px; }
}
