/*
Theme Name: ApniStory
Theme URI: https://apnistory.in
Author: ApniStory
Description: Hindi story theme for ApniStory.in: mood and audience filters, read/listen time, audio player, video scripts with clear use permissions, Video Creators page, reader story submissions with consent, fiction/true-story labels, ShortStory schema, dark mode and one-click setup. Pairs with the ApniStory Auto Publisher plugin.
Version: 1.0.1
Requires at least: 6.3
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: apnistory
*/

/* ---------- Tokens ---------- */
:root {
	--bg: #FBF8F3;
	--surface: #FFFFFF;
	--soft: #F3EEE6;
	--ink: #1E1533;
	--ink-2: #3B3150;
	--muted: #6B5F80;
	--line: #E8E0D4;
	--brand: #6D28D9;
	--brand-2: #5B21B6;
	--accent: #D97706;
	--grad: linear-gradient(135deg, #4C1D95, #7C3AED);
	--story-size: 20px;
	--ok: #16A34A;
	--warn: #D97706;
	--bad: #DC2626;
	--radius: 14px;
	--shadow: 0 1px 2px rgba(22, 19, 31, .05), 0 8px 24px -12px rgba(22, 19, 31, .18);
	--head: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--body: "Mukta", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--wrap: 1200px;
	color-scheme: light;
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--bg: #120E1A; --surface: #1B1625; --soft: #241D31; --ink: #F4F0FB; --ink-2: #DAD2EA; --muted: #A99DC0; --line: #2F2740;
		--shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 28px -14px rgba(0,0,0,.6); color-scheme: dark;
	}
}
:root[data-theme="dark"] {
	--bg: #120E1A; --surface: #1B1625; --soft: #241D31; --ink: #F4F0FB; --ink-2: #DAD2EA; --muted: #A99DC0; --line: #2F2740;
	--shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 28px -14px rgba(0,0,0,.6); color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 18px/1.7 var(--body); overflow-x: hidden; }
body.ap-locked { overflow: hidden; }
img, svg, video, iframe { max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.35; letter-spacing: -.015em; margin: 0 0 .5em; color: var(--ink); }
button, input, select, textarea { font: inherit; color: inherit; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.ap-skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.ap-skip:focus { left: 8px; }
:focus-visible { outline: 2.5px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.ap-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.ap-center { text-align: center; }
[hidden] { display: none !important; }

/* ---------- Buttons ---------- */
.ap-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; background: var(--grad); color: #fff; font: 600 15px/1 var(--head); padding: 13px 20px; border-radius: 999px; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.ap-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -8px rgba(109, 40, 217, .55); }
.ap-btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.ap-btn-ghost:hover { border-color: var(--brand); box-shadow: none; }
.ap-btn-whatsapp { background: #1FAF54; }
.ap-btn-telegram { background: #2A9FD8; }
.ap-icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.ap-icon-btn:hover { background: var(--soft); }

/* ---------- Header ---------- */
.ap-progress { position: fixed; inset: 0 0 auto 0; height: 3px; background: var(--grad); transform: scaleX(0); transform-origin: 0 50%; z-index: 60; }
.ap-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.admin-bar .ap-header { top: 46px; }
@media (min-width: 783px) { .admin-bar .ap-header { top: 32px; } }
.ap-header-in { display: flex; align-items: center; gap: 8px; height: 64px; }
.ap-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.ap-logo-img { height: 40px; width: auto; display: block; }
:root[data-theme="dark"] .ap-logo-img { background: #fff; border-radius: 10px; padding: 3px 8px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ap-logo-img { background: #fff; border-radius: 10px; padding: 3px 8px; } }
.ap-word { display: flex; flex-direction: column; line-height: 1; }
.ap-word b, .ap-word i { font: 700 23px/1 var(--head); letter-spacing: -.03em; font-style: normal; }
.ap-word b { color: var(--ink); }
.ap-word i { color: var(--brand); }
.ap-word > b + i { margin-left: 0; }
.ap-word { flex-direction: row; flex-wrap: wrap; align-items: baseline; }
.ap-word small { flex-basis: 100%; margin-top: 5px; font: 600 9.5px/1 var(--head); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.ap-nav { display: none; margin-left: auto; }
.ap-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.ap-menu a { display: block; padding: 8px 11px; border-radius: 10px; text-decoration: none; font: 600 14.5px/1.2 var(--head); color: var(--ink-2); }
.ap-menu a:hover, .ap-menu .current-menu-item > a, .ap-menu .current-post-ancestor > a { background: var(--soft); color: var(--brand); }
.ap-actions { margin-left: auto; display: flex; gap: 2px; }
.ap-nav + .ap-actions { margin-left: 6px; }
.ap-sun { display: none; }
:root[data-theme="dark"] .ap-sun { display: block; }
:root[data-theme="dark"] .ap-moon { display: none; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .ap-sun { display: block; }
	:root:not([data-theme="light"]) .ap-moon { display: none; }
}
.ap-search-panel { border-top: 1px solid var(--line); padding: 12px 0; background: var(--surface); }
@media (min-width: 1080px) {
	.ap-nav { display: block; }
	.ap-menu-btn { display: none; }
}

/* Drawer */
.ap-drawer { position: fixed; inset: 0; z-index: 70; background: rgba(10, 8, 16, .45); }
.ap-drawer-in { width: min(330px, 86vw); height: 100%; overflow-y: auto; background: var(--surface); padding: 22px 18px 40px; box-shadow: var(--shadow); animation: ap-slide .22s ease; }
@keyframes ap-slide { from { transform: translateX(-30px); opacity: 0; } to { transform: none; opacity: 1; } }
.ap-drawer-h { font: 700 12px/1 var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.ap-drawer ul { list-style: none; margin: 0; padding: 0; }
.ap-drawer-in > ul a { display: flex; align-items: center; gap: 12px; padding: 12px 10px; border-radius: 12px; text-decoration: none; font: 600 16px/1.2 var(--head); }
.ap-drawer-in > ul a i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; }
.ap-drawer-in > ul a:hover { background: var(--soft); }
.ap-drawer-pages { margin-top: 18px !important; padding-top: 14px !important; border-top: 1px solid var(--line); }
.ap-drawer-pages a { display: block; padding: 8px 10px; color: var(--muted); text-decoration: none; font-size: 15px; }

/* Search form */
.ap-searchform { display: flex; gap: 8px; }
.ap-search-label { flex: 1; }
.ap-searchform input { width: 100%; height: 48px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--bg); }
.ap-searchform input:focus { border-color: var(--brand); outline: none; }

/* ---------- Ads ---------- */
.ap-ad { margin: 22px auto; text-align: center; min-height: 90px; }
.ap-ad-label { display: block; font: 600 10px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.ap-content .ap-ad { margin: 28px 0; }

/* ---------- Chips & meta ---------- */
.ap-chip { display: inline-flex; align-items: center; gap: 6px; font: 700 11.5px/1 var(--head); letter-spacing: .06em; text-transform: uppercase; color: var(--c, var(--brand)); text-decoration: none; }
.ap-chip::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--c, var(--brand)); transform: rotate(45deg); }
.ap-hot { font: 700 11px/1 var(--head); color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, transparent); padding: 5px 8px; border-radius: 999px; }
.ap-card-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }

/* ---------- Cards ---------- */
.ap-card { position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ap-card-media { text-decoration: none; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; background: var(--soft); }
.ap-img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.ap-card:hover .ap-img { transform: scale(1.035); }
.ap-ph { display: grid; place-items: center; background: radial-gradient(120% 120% at 0% 0%, color-mix(in srgb, var(--c) 92%, #fff) 0%, var(--c) 45%, color-mix(in srgb, var(--c) 70%, #000) 100%); }
.ap-ph span { display: flex; flex-direction: column; align-items: center; gap: 8px; color: #fff; font: 700 13px/1.2 var(--head); letter-spacing: .04em; text-align: center; padding: 10px; }
.ap-ph em { font-style: normal; opacity: .92; }
.ap-card-title { font-size: 18px; margin: 0; }
.ap-card-title a { text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 0 1.5px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .25s ease; }
.ap-card:hover .ap-card-title a { background-size: 100% 1.5px; }
.ap-card-title a::after { content: ""; position: absolute; inset: 0; }
.ap-card-ex { margin: 8px 0 0; color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.ap-card-meta { margin-top: 8px; font-size: 13px; color: var(--muted); }
.ap-card-top a, .ap-card-top .ap-chip { position: relative; z-index: 1; }

.ap-card--hero .ap-card-media { aspect-ratio: 16 / 9; border-radius: 18px; }
.ap-card--hero .ap-card-title { font-size: clamp(24px, 4.4vw, 38px); font-weight: 800; letter-spacing: -.025em; }
.ap-card--row .ap-card-title { font-size: clamp(20px, 2.6vw, 24px); }
.ap-card--mini { flex-direction: row; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.ap-card--mini:first-child { border-top: 0; padding-top: 0; }
.ap-card--mini .ap-card-media { flex: none; width: 96px; aspect-ratio: 1; border-radius: 12px; }
.ap-card--mini .ap-card-title { font-size: 16px; }
.ap-card--mini .ap-ph svg { width: 28px; height: 28px; }
.ap-card--mini .ap-ph em { display: none; }
.ap-card--mini .ap-card-meta { margin-top: 4px; }

/* ---------- Ticker ---------- */
.ap-ticker { border-bottom: 1px solid var(--line); background: var(--surface); }
.ap-ticker-in { display: flex; align-items: center; gap: 12px; height: 44px; }
.ap-ticker-label { flex: none; font: 700 12px/1 var(--head); letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--grad); padding: 7px 10px; border-radius: 8px; }
.ap-ticker-track { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 92%, transparent); }
.ap-ticker-move { display: inline-flex; gap: 36px; white-space: nowrap; animation: ap-tick 60s linear infinite; }
.ap-ticker-move a { text-decoration: none; font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.ap-ticker-move a::before { content: "●"; color: var(--brand); font-size: 9px; margin-right: 10px; vertical-align: 2px; }
.ap-ticker-track:hover .ap-ticker-move { animation-play-state: paused; }
@keyframes ap-tick { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ap-ticker-move { animation: none; } .ap-ticker-track { overflow-x: auto; } }

/* ---------- Home ---------- */
.ap-lead { display: grid; gap: 28px; padding-top: 24px; padding-bottom: 12px; }
.ap-lead-side { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ap-lead-side .ap-card-title { font-size: 16px; }
.ap-lead-side .ap-card-meta { display: none; }
@media (min-width: 960px) {
	.ap-lead { grid-template-columns: 1.45fr 1fr; align-items: start; padding-top: 32px; }
	.ap-lead-side { gap: 22px 20px; }
}
.ap-section { padding-top: 34px; padding-bottom: 14px; }
.ap-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-bottom: 2px solid var(--ink); margin-bottom: 20px; padding-bottom: 10px; position: relative; }
.ap-sec-head::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 72px; height: 4px; background: var(--c); border-radius: 4px 4px 0 0; }
.ap-sec-head h2 { margin: 0; font-size: clamp(21px, 3vw, 26px); font-weight: 800; }
.ap-sec-head h2 a { text-decoration: none; }
.ap-sec-head h2 span { margin-right: 4px; }
.ap-more { flex: none; font: 600 14px/1 var(--head); color: var(--c); text-decoration: none; }
.ap-more:hover { text-decoration: underline; }

.ap-rank { list-style: none; counter-reset: r; margin: 0; padding: 0; display: grid; gap: 0 32px; }
@media (min-width: 720px) { .ap-rank { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .ap-rank { grid-template-columns: repeat(3, 1fr); } }
.ap-rank li { counter-increment: r; border-top: 1px solid var(--line); }
.ap-rank a { display: grid; grid-template-columns: 52px 1fr; grid-template-rows: auto auto; column-gap: 8px; padding: 16px 0; text-decoration: none; }
.ap-rank a::before { content: counter(r, decimal-leading-zero); grid-row: 1 / 3; font: 800 34px/1 var(--head); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ap-rank-t { font: 700 16.5px/1.35 var(--head); }
.ap-rank a:hover .ap-rank-t { color: var(--brand); }
.ap-rank-m { margin-top: 6px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

.ap-cat-grid { display: grid; gap: 24px; }
@media (min-width: 860px) {
	.ap-cat-grid { grid-template-columns: 1.15fr 1fr; gap: 36px; }
	.ap-flip .ap-cat-lead { order: 2; }
}
.ap-grid { display: grid; gap: 26px 22px; }
.ap-grid-3, .ap-grid-4 { grid-template-columns: 1fr; }
@media (min-width: 600px) { .ap-grid-3, .ap-grid-4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .ap-grid-3 { grid-template-columns: repeat(3, 1fr); } .ap-grid-4 { grid-template-columns: repeat(4, 1fr); } }
.ap-grid-span { grid-column: 1 / -1; }

.ap-alert-band { margin: 38px 0 10px; padding: 34px 0 40px; background: #12101A; color: #F3F1FA; }
.ap-alert-band .ap-sec-head { border-color: rgba(255,255,255,.25); }
.ap-alert-band .ap-sec-head h2, .ap-alert-band .ap-card-title, .ap-alert-band .ap-card-title a { color: #fff; }
.ap-alert-band .ap-card-meta { color: #A39EBA; }
.ap-alert-band .ap-chip { --c: #4ADE80 !important; }

.ap-empty { text-align: center; padding: 60px 16px; }
.ap-empty .ap-searchform { max-width: 520px; margin: 20px auto 0; }

/* Join channels */
.ap-join { margin-top: 40px; background: var(--grad); color: #fff; }
.ap-join-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding-top: 26px; padding-bottom: 26px; }
.ap-join-h { margin: 0; font: 800 22px/1.2 var(--head); }
.ap-join-p { margin: 4px 0 0; opacity: .92; }
.ap-join-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.ap-join .ap-btn { background: #fff; color: var(--ink); }

/* ---------- Archive ---------- */
.ap-archive-head { padding: 28px 0 22px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.ap-archive-head h1 { font-size: clamp(28px, 5vw, 44px); font-weight: 800; margin: 6px 0 8px; position: relative; padding-left: 18px; }
.ap-archive-head h1::before { content: ""; position: absolute; left: 0; top: .2em; bottom: .2em; width: 6px; border-radius: 6px; background: var(--c); }
.ap-archive-desc { color: var(--muted); max-width: 720px; }
.ap-archive-desc p { margin: 0; }
.ap-archive-search { margin-top: 16px; max-width: 560px; }
.ap-archive-grid .ap-card--row { grid-column: 1 / -1; }
@media (min-width: 860px) {
	.ap-archive-grid .ap-card--row { flex-direction: row; align-items: center; gap: 28px; }
	.ap-archive-grid .ap-card--row .ap-card-media { flex: 0 0 56%; }
}
.ap-pagination { margin: 36px 0 10px; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; }
.ap-pagination .page-numbers { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); text-decoration: none; font-weight: 600; }
.ap-pagination .current { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ---------- Crumbs ---------- */
.ap-crumbs ol { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); }
.ap-crumbs li + li::before { content: "›"; margin-right: 6px; }
.ap-crumbs a { text-decoration: none; }
.ap-crumbs a:hover { color: var(--brand); }

/* ---------- Single ---------- */
.ap-single { display: grid; gap: 40px; padding-top: 24px; }
@media (min-width: 1080px) { .ap-single { grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; } }
.ap-article { min-width: 0; max-width: 760px; }
.ap-page .ap-article { margin: 0 auto; padding-top: 24px; }
.ap-title { font-size: clamp(28px, 5.2vw, 44px); font-weight: 800; letter-spacing: -.03em; margin: 4px 0 14px; }
.ap-dek { font-size: clamp(17px, 2.2vw, 19.5px); line-height: 1.55; color: var(--ink-2); margin: 0 0 18px; }
.ap-byline { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; font-size: 14px; color: var(--muted); }
.ap-byline .ap-av { border-radius: 50%; margin-right: 4px; }
.ap-byline a { color: var(--ink); font-weight: 600; text-decoration: none; }
.ap-dot { opacity: .6; }
.ap-feature { margin: 22px 0 8px; }
.ap-feature img { border-radius: 18px; aspect-ratio: 16 / 9; height: auto; }
.ap-feature figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
.ap-disclosure { font-size: 13.5px; color: var(--muted); background: var(--soft); border-radius: 10px; padding: 10px 14px; margin: 18px 0 0; }

/* Content typography */
.ap-content { margin-top: 22px; font-size: 18px; line-height: 1.75; color: var(--ink-2); }
.ap-content > * { margin-top: 0; margin-bottom: 1.15em; }
.ap-content h2 { font-size: clamp(23px, 3.2vw, 28px); font-weight: 800; margin: 1.8em 0 .6em; color: var(--ink); }
.ap-content h3 { font-size: clamp(19px, 2.6vw, 22px); font-weight: 700; margin: 1.5em 0 .5em; color: var(--ink); }
.ap-content a { color: var(--brand); font-weight: 500; }
.ap-content strong { color: var(--ink); }
.ap-content ul, .ap-content ol { padding-left: 1.3em; }
.ap-content li { margin-bottom: .45em; }
.ap-content li::marker { color: var(--c, var(--brand)); font-weight: 700; }
.ap-content blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--c, var(--brand)); font-style: italic; color: var(--ink); }
.ap-content img { border-radius: 12px; }
.ap-content hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.ap-table-wrap { overflow-x: auto; margin: 1.5em 0; border: 1px solid var(--line); border-radius: 12px; }
.ap-content table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.5; margin: 0; }
.ap-content th, .ap-content td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.ap-content th { background: var(--soft); font-family: var(--head); font-weight: 700; color: var(--ink); white-space: nowrap; }
.ap-content tr:last-child td { border-bottom: 0; }

/* AEO blocks produced by the Auto Publisher */
.ap-quick-answer { position: relative; background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--c, var(--brand)); border-radius: 14px; padding: 18px 20px 16px; box-shadow: var(--shadow); }
.ap-quick-answer .ap-qa-label { display: block; font: 700 12px/1 var(--head); letter-spacing: .12em; text-transform: uppercase; color: var(--c, var(--brand)); margin-bottom: 8px; }
.ap-quick-answer p { margin: 0; color: var(--ink); font-size: 17.5px; }
.ap-takeaways { background: var(--soft); border-radius: 14px; padding: 18px 20px 8px; }
.ap-takeaways h2, .ap-takeaways .ap-box-h { font: 700 16px/1.3 var(--head) !important; margin: 0 0 10px !important; letter-spacing: 0; }
.ap-takeaways ul { margin: 0 0 10px; }
.ap-verdict { border-radius: 14px; padding: 18px 20px; background: color-mix(in srgb, var(--c, var(--brand)) 9%, var(--surface)); border: 1px solid color-mix(in srgb, var(--c, var(--brand)) 30%, transparent); }
.ap-verdict .ap-box-h { display: block; font: 700 13px/1 var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--c, var(--brand)); margin-bottom: 8px; }
.ap-verdict p:last-child { margin-bottom: 0; }

.ap-factcheck { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.ap-fc-claim { padding: 16px 20px; }
.ap-fc-claim span { display: block; font: 700 12px/1 var(--head); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.ap-fc-claim p { margin: 0; font-weight: 600; color: var(--ink); }
.ap-fc-rating { display: flex; align-items: center; gap: 12px; padding: 14px 20px; color: #fff; font: 800 20px/1 var(--head); letter-spacing: .02em; }
.ap-fc-rating small { font: 600 13px/1.4 var(--body); opacity: .95; }
.ap-fc-false { background: var(--bad); }
.ap-fc-true { background: var(--ok); }
.ap-fc-misleading { background: var(--warn); }
.ap-fc-unverified { background: #6B6780; }
.ap-scam-steps { border: 2px dashed color-mix(in srgb, var(--bad) 55%, transparent); border-radius: 14px; padding: 16px 20px 6px; }

.ap-products { display: grid; gap: 14px; }
.ap-product { display: grid; grid-template-columns: 1fr; gap: 10px; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; background: var(--surface); }
@media (min-width: 640px) { .ap-product { grid-template-columns: 1fr auto; align-items: center; } }
.ap-product h3 { margin: 0 0 4px !important; font-size: 18px !important; }
.ap-product p { margin: 0; font-size: 15px; line-height: 1.5; }
.ap-product .ap-price { display: inline-block; margin-top: 6px; font-size: 13.5px; font-weight: 700; color: var(--ink); background: var(--soft); padding: 4px 9px; border-radius: 999px; }
.ap-product .ap-btn { color: #fff !important; white-space: nowrap; font-size: 14px; padding: 12px 18px; text-decoration: none; }
.ap-aff-note { font-size: 12.5px; color: var(--muted); }

.ap-also { border-left: 3px solid var(--c, var(--brand)); background: var(--soft); padding: 12px 16px; border-radius: 0 12px 12px 0; font-size: 16px; }
.ap-also a { font-weight: 700; text-decoration: none; }

.ap-faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); margin-bottom: 10px; }
.ap-faq summary { cursor: pointer; list-style: none; padding: 14px 44px 14px 16px; position: relative; font: 700 16.5px/1.4 var(--head); color: var(--ink); }
.ap-faq summary::-webkit-details-marker { display: none; }
.ap-faq summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--c, var(--brand)); }
.ap-faq details[open] summary::after { content: "–"; }
.ap-faq details > div, .ap-faq details > p { padding: 0 16px 14px; margin: 0; font-size: 16.5px; }
.ap-sources { font-size: 14.5px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; }
.ap-sources h2 { font-size: 16px !important; margin: 0 0 8px !important; }
.ap-sources ol { padding-left: 1.2em; margin: 0; }
.ap-sources a { color: var(--muted); word-break: break-word; }

/* TOC */
.ap-toc { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0; margin: 1.6em 0; }
.ap-toc summary { cursor: pointer; padding: 14px 18px; font: 700 15px/1 var(--head); color: var(--ink); }
.ap-toc ol { margin: 0; padding: 0 18px 14px 38px; font-size: 15.5px; line-height: 1.5; }
.ap-toc li { margin-bottom: 6px; }
.ap-toc a { color: var(--ink-2) !important; text-decoration: none; font-weight: 500 !important; }
.ap-toc a:hover { color: var(--brand) !important; }
.ap-toc-l3 { margin-left: 14px; list-style: circle; font-size: 14.5px; }

/* Tags, share, author */
.ap-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; }
.ap-tags a { font-size: 13.5px; padding: 6px 12px; border-radius: 999px; background: var(--soft); text-decoration: none; color: var(--ink-2); }
.ap-tags a:hover { color: var(--brand); }
.ap-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 22px 0; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ap-share > span { font: 700 13px/1 var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.ap-sh { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px; font: 600 13.5px/1 var(--head); text-decoration: none; color: #fff; border: 0; cursor: pointer; }
.ap-sh-whatsapp { background: #1FAF54; }
.ap-sh-telegram { background: #2A9FD8; }
.ap-sh-x { background: #111; }
.ap-sh-facebook { background: #1877F2; }
.ap-sh-copy { background: var(--soft); color: var(--ink); }
.ap-author { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; margin-top: 10px; }
.ap-author-av { border-radius: 50%; flex: none; }
.ap-author-name { margin: 0; font: 700 17px/1.3 var(--head); }
.ap-author-name a { text-decoration: none; }
.ap-author-bio { margin: 4px 0 6px; font-size: 15px; color: var(--muted); line-height: 1.55; }
.ap-author-links { margin: 0; font-size: 13.5px; }
.ap-author-links a { color: var(--brand); }

/* Sidebar */
.ap-sidebar { display: none; }
@media (min-width: 1080px) { .ap-sidebar { display: block; } }
.ap-side-sticky { position: sticky; top: 96px; display: grid; gap: 20px; }
.ap-side-box { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.ap-side-h { margin: 0 0 10px; font: 800 16px/1.2 var(--head); }
.ap-side-list { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.ap-side-list li { counter-increment: s; display: grid; grid-template-columns: 28px 1fr; padding: 10px 0; border-top: 1px solid var(--line); font: 600 14.5px/1.4 var(--head); }
.ap-side-list li:first-child { border-top: 0; }
.ap-side-list li::before { content: counter(s); font-weight: 800; color: var(--brand); }
.ap-side-list a { text-decoration: none; }
.ap-side-list a:hover { color: var(--brand); }

/* Comments */
.ap-comments-wrap { max-width: var(--wrap); }
.ap-comments { max-width: 760px; }
.ap-comments { margin-top: 34px; }
.ap-comment-list { list-style: none; padding: 0; }
.ap-comment-list .comment-body { padding: 14px 0; border-top: 1px solid var(--line); font-size: 16px; }
.ap-comment-list .avatar { border-radius: 50%; float: left; margin-right: 10px; }
.ap-comment-list .children { list-style: none; padding-left: 26px; }
.comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url], .comment-form textarea,
.ap-form input, .ap-form select, .ap-form textarea { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); }
.comment-form label, .ap-form label { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 14px; }
.ap-form label input, .ap-form label select, .ap-form label textarea { margin-top: 6px; }
.ap-row2 { display: grid; gap: 0 14px; }
@media (min-width: 600px) { .ap-row2 { grid-template-columns: 1fr 1fr; } }
.ap-hp { position: absolute; left: -9999px; }
.ap-alert { padding: 12px 16px; border-radius: 12px; font-weight: 600; }
.ap-alert-ok { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.ap-alert-err { background: color-mix(in srgb, var(--bad) 12%, transparent); color: var(--bad); }
.ap-form-note { font-size: 14.5px; color: var(--muted); }

/* 404 */
.ap-404 { text-align: center; padding-top: 50px; }
.ap-404-num { font: 800 clamp(80px, 18vw, 150px)/1 var(--head); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin: 0; }
.ap-404 .ap-searchform { max-width: 520px; margin: 22px auto 36px; }
.ap-404-grid { text-align: left; }

/* ---------- Footer ---------- */
.ap-footer { margin-top: 0; background: #160F24; color: #D3C9E6; padding: 44px 0 22px; }
.ap-join + .ap-footer { margin-top: 0; }
main + .ap-footer, .ap-ad + .ap-footer { margin-top: 50px; }
.ap-footer a { color: #E9E6F5; text-decoration: none; }
.ap-footer a:hover { color: #fff; text-decoration: underline; }
.ap-footer .ap-word b { color: #fff; }
.ap-footer .ap-word small { color: #A39EBA; }
.ap-footer-logo img { height: 42px; width: auto; display: block; }
.ap-footer-grid { display: grid; gap: 30px; }
@media (min-width: 860px) { .ap-footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 50px; } }
.ap-footer-brand p { font-size: 15px; line-height: 1.65; max-width: 420px; margin: 16px 0; }
.ap-footer-h { font: 700 12px/1 var(--head); letter-spacing: .14em; text-transform: uppercase; color: #8C87A3; margin: 6px 0 14px; }
.ap-footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 15px; }
.ap-social { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ap-social a { display: inline-block; padding: 7px 12px; border: 1px solid #2E2A3C; border-radius: 999px; font-size: 13.5px; }
.ap-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; margin-top: 34px; padding-top: 18px; border-top: 1px solid #2B2738; font-size: 13.5px; color: #8C87A3; }
.ap-footer-bottom p { margin: 0; }
.ap-footer-safety a { color: #FCD34D !important; }

/* WP core */
.alignwide { max-width: 1000px; }
.aligncenter { margin-left: auto; margin-right: auto; display: block; }
.wp-caption-text, .wp-element-caption { font-size: 13px; color: var(--muted); }
.sticky, .bypostauthor, .gallery-caption { }

/* ================= ApniStory ================= */
.ap-btn-sm { padding: 9px 14px; font-size: 14px; }
.ap-head-cta { display: none; margin-right: 6px; }
@media (min-width: 720px) { .ap-head-cta { display: inline-flex; } }
.ap-btn-light { background: #fff; color: var(--brand-2); }

/* Dropdown menu */
.ap-menu > li { position: relative; }
.ap-menu > .menu-item-has-children > a { display: inline-flex; align-items: center; gap: 6px; }
.ap-menu > .menu-item-has-children > a::after { content: ""; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); opacity: .55; }
.ap-menu a { padding: 8px 9px; font-size: 15.5px; }
.ap-menu .sub-menu { list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 50%; min-width: 200px; transform: translate(-50%, 8px); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px -18px rgba(30, 21, 51, .35); opacity: 0; visibility: hidden; transition: opacity .15s ease, transform .15s ease, visibility .15s; z-index: 60; }
.ap-menu .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.ap-menu > li:hover > .sub-menu, .ap-menu > li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translate(-50%, 4px); }
.ap-menu .sub-menu a { display: block; padding: 9px 12px; border-radius: 10px; font: 600 15px/1.3 var(--head); color: var(--ink-2); white-space: nowrap; }
.ap-menu .sub-menu a:hover { background: var(--soft); color: var(--brand); }
.ap-menu > li:nth-last-child(-n+2) > .sub-menu { left: auto; right: 0; transform: translate(0, 8px); }
.ap-menu > li:nth-last-child(-n+2):hover > .sub-menu, .ap-menu > li:nth-last-child(-n+2):focus-within > .sub-menu { transform: translate(0, 4px); }
.ap-nav { display: none !important; }
@media (min-width: 1180px) { .ap-nav { display: block !important; } .ap-menu-btn { display: none; } }
@media (max-width: 1179px) { .ap-menu-btn { display: inline-grid !important; } }

/* Drawer accordion */
.ap-drawer-cats > li { border-bottom: 1px solid var(--line); }
.ap-drawer-cats summary, .ap-drawer-pop { display: flex !important; align-items: center; gap: 12px; padding: 13px 10px !important; cursor: pointer; list-style: none; font: 600 17px/1.2 var(--head); text-decoration: none; color: var(--ink); }
.ap-drawer-cats summary::-webkit-details-marker { display: none; }
.ap-drawer-cats summary::after { content: "+"; margin-left: auto; font-size: 20px; color: var(--muted); }
.ap-drawer-cats details[open] summary::after { content: "–"; }
.ap-drawer-cats i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; }
.ap-drawer-cats details ul { padding: 0 0 10px 32px !important; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 8px; }
.ap-drawer-cats details a { display: block !important; padding: 7px 0 !important; font-size: 15.5px !important; color: var(--ink-2); text-decoration: none; }
.ap-drawer-cats .ap-drawer-all { color: var(--brand) !important; font-weight: 700 !important; }

/* Hero */
.ap-hero { background: radial-gradient(80% 120% at 0% 0%, color-mix(in srgb, var(--brand) 13%, var(--bg)) 0%, var(--bg) 62%); border-bottom: 1px solid var(--line); }
.ap-hero-in { display: grid; gap: 30px; padding-top: 34px; padding-bottom: 38px; align-items: center; }
@media (min-width: 960px) { .ap-hero-in { grid-template-columns: 1.05fr 1fr; gap: 50px; padding-top: 50px; padding-bottom: 56px; } }
.ap-eyebrow { margin: 0 0 10px; font: 700 13.5px/1.3 var(--head); color: var(--accent); }
.ap-hero-h { margin: 0 0 12px; font: 800 clamp(34px, 6vw, 56px)/1.15 var(--head); letter-spacing: -.02em; color: var(--ink); }
.ap-hero-h span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ap-hero-p { margin: 0 0 20px; font-size: clamp(17.5px, 2vw, 20px); color: var(--ink-2); max-width: 560px; }
.ap-moods { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-wrap: wrap; gap: 10px; }
.ap-moods a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--line); text-decoration: none; font: 600 16px/1 var(--head); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.04); transition: transform .15s ease, border-color .15s ease; }
.ap-moods a:hover { border-color: var(--brand); transform: translateY(-2px); }
.ap-moods a span { font-size: 19px; }
.ap-hero-search .ap-searchform input { background: var(--surface); }
.ap-hero-card { background: var(--surface); border-radius: 22px; padding: 14px 14px 20px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.ap-hero-label { margin: 2px 4px 10px; font: 700 14px/1 var(--head); color: var(--accent); }
.ap-hero-card .ap-card-title { font-size: clamp(22px, 2.8vw, 28px) !important; }

/* Category tiles */
.ap-tiles { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
@media (min-width: 760px) { .ap-tiles { grid-template-columns: repeat(4, 1fr); } }
.ap-tile { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; overflow: hidden; transition: transform .18s ease, border-color .18s ease; }
.ap-tile::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: color-mix(in srgb, var(--c) 12%, transparent); }
.ap-tile:hover { transform: translateY(-3px); border-color: var(--c); }
.ap-tile-ic { font-size: 30px; line-height: 1; position: relative; z-index: 1; }
.ap-tile b { font: 700 17px/1.35 var(--head); color: var(--ink); position: relative; z-index: 1; }
.ap-tile small { font-size: 14px; color: var(--muted); line-height: 1.4; }

/* Bands */
.ap-band { margin: 40px 0 6px; background: var(--grad); color: #fff; }
.ap-band-in { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; padding-top: 30px; padding-bottom: 30px; }
.ap-band-k { margin: 0; font: 700 13px/1 var(--head); letter-spacing: .1em; text-transform: uppercase; color: #FCD34D; }
.ap-band-h { margin: 6px 0; font: 800 clamp(22px, 3vw, 28px)/1.3 var(--head); }
.ap-band-p { margin: 0; opacity: .9; max-width: 640px; }
.ap-submit-band { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding: 24px 26px; border-radius: 20px; background: color-mix(in srgb, var(--accent) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.ap-submit-band .ap-band-h { color: var(--ink); }
.ap-submit-band p { margin: 0; color: var(--ink-2); max-width: 680px; }

/* Cards */
.ap-card-media { position: relative; }
.ap-badges { position: absolute; left: 10px; bottom: 10px; display: flex; gap: 6px; }
.ap-badge { font: 700 12px/1 var(--head); padding: 6px 9px; border-radius: 999px; background: rgba(20, 12, 35, .78); color: #fff; backdrop-filter: blur(4px); }
.ap-mood { font: 600 12.5px/1 var(--head); padding: 5px 9px; border-radius: 999px; background: var(--soft); color: var(--ink-2); }
.ap-card-title { font-size: 19px; line-height: 1.4; }
.ap-card--mini .ap-badges { display: none; }
.ap-chip { font-size: 12.5px; letter-spacing: .02em; text-transform: none; }

/* Archive */
.ap-subnav { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ap-subnav a { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; font: 600 15px/1.2 var(--head); }
.ap-subnav a:hover { border-color: var(--c); color: var(--c); }
.ap-filters { margin-top: 18px; display: grid; gap: 10px; }
.ap-frow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ap-frow > span:first-child { font: 700 13px/1 var(--head); color: var(--muted); min-width: 74px; }
.ap-fsep { width: 1px; height: 22px; background: var(--line); margin: 0 4px; }
.ap-fchip { padding: 7px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; font: 600 14px/1.2 var(--head); color: var(--ink-2); }
.ap-fchip:hover { border-color: var(--brand); }
.ap-fchip.is-on { background: var(--brand); border-color: var(--brand); color: #fff; }
.ap-fclear { font-size: 14px; color: var(--accent); text-decoration: none; font-weight: 700; }

/* Story page */
.ap-sub { font: 600 13px/1 var(--head); padding: 6px 10px; border-radius: 999px; background: var(--soft); color: var(--ink-2); text-decoration: none; }
.ap-title { font-size: clamp(30px, 5.4vw, 46px); line-height: 1.25; letter-spacing: -.01em; }
.ap-labels { list-style: none; padding: 0; margin: 4px 0 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.ap-labels li { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 14.5px; color: var(--ink-2); }
.ap-labels b { font-weight: 700; color: var(--ink); }
.ap-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 15px; color: var(--muted); }
.ap-byline a { color: var(--ink); font-weight: 600; text-decoration: none; }
.ap-reader-tools { margin-left: auto; display: inline-flex; flex-wrap: wrap; gap: 6px; }
.ap-jump, .ap-font { display: inline-flex; align-items: center; height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font: 600 14px/1 var(--head); color: var(--ink-2); text-decoration: none; cursor: pointer; }
.ap-jump:hover, .ap-font:hover { border-color: var(--brand); color: var(--brand); }
.ap-type { margin: 18px 0 0; padding: 12px 16px; border-radius: 12px; font-size: 15.5px; line-height: 1.6; background: var(--soft); color: var(--ink-2); border-left: 4px solid var(--muted); }
.ap-type-kalpanik, .ap-type-prerit, .ap-type-aitihasik-kalpanik { border-left-color: #8B5CF6; }
.ap-type-sachchi, .ap-type-tathya { border-left-color: #16A34A; }
.ap-type-pauranik { border-left-color: var(--accent); }
.ap-reader { display: inline-block; margin-left: 6px; font-weight: 700; color: var(--accent); }
.ap-audio { margin: 18px 0 0; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.ap-audio-h { margin: 0 0 8px; font: 700 16px/1 var(--head); }
.ap-audio-h small { font-weight: 500; color: var(--muted); }
.ap-audio audio { width: 100%; }
.ap-story-text { font-size: var(--story-size); line-height: 1.95; color: var(--ink); }
.ap-story-text p { margin-bottom: 1.1em; }
.ap-story-text > p:first-of-type { font-size: 1.08em; color: var(--ink); }
.ap-story-text h2 { font-size: clamp(22px, 3vw, 26px); text-align: center; margin: 1.6em 0 .8em; }
.ap-story-text h2::before, .ap-story-text h2::after { content: "✦"; color: var(--accent); font-size: .6em; margin: 0 .6em; vertical-align: middle; }
.ap-story-text blockquote { border-left-color: var(--accent); font-style: normal; }
.ap-moral { margin: 26px 0 0; padding: 18px 20px; border-radius: 16px; background: color-mix(in srgb, #16A34A 9%, var(--surface)); border: 1px solid color-mix(in srgb, #16A34A 30%, transparent); }
.ap-moral span { font: 700 14px/1 var(--head); color: #15803D; }
.ap-moral p { margin: 8px 0 0; font-size: 19px; font-weight: 500; color: var(--ink); }
.ap-source { margin-top: 16px; font-size: 15px; color: var(--muted); }

/* Video script */
.ap-script { margin: 30px 0 0; padding: 20px 22px; border-radius: 18px; background: var(--surface); border: 1.5px solid color-mix(in srgb, var(--brand) 35%, var(--line)); }
.ap-script-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.ap-script-head h2 { margin: 0; font-size: 22px; }
.ap-pill { font: 700 13.5px/1 var(--head); padding: 7px 11px; border-radius: 999px; background: var(--soft); color: var(--ink-2); }
.ap-hook { margin: 16px 0; padding: 12px 16px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.ap-hook b { font: 700 13px/1 var(--head); color: var(--accent); }
.ap-hook p { margin: 6px 0 0; font-size: 17.5px; font-weight: 500; }
.ap-script details { border-top: 1px solid var(--line); padding: 10px 0; }
.ap-script summary { cursor: pointer; font: 700 16px/1.4 var(--head); color: var(--brand); }
.ap-script-body { margin: 12px 0; padding: 14px 16px; border-radius: 12px; background: var(--soft); font-size: 17px; line-height: 1.9; max-height: 480px; overflow: auto; }
.ap-scenes ol { margin: 10px 0 0; padding-left: 1.3em; font-size: 16px; }
.ap-perm-box { margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.ap-perm-box > b { font: 700 16px/1 var(--head); }
.ap-perms { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 6px; font-size: 15.5px; }
@media (min-width: 640px) { .ap-perms { grid-template-columns: 1fr 1fr; } }
.ap-credit { font-size: 14px; color: var(--muted); }
.ap-credit code { font-family: var(--body); display: inline-block; margin-top: 4px; padding: 4px 8px; border-radius: 6px; background: var(--soft); font-size: 13.5px; white-space: normal; }
.ap-small { font-size: 14px; color: var(--muted); margin: 6px 0 0; }

.ap-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 20px; padding: 18px 20px; border-radius: 16px; background: var(--soft); }
.ap-cta b { font: 700 18px/1.3 var(--head); }
.ap-cta p { margin: 4px 0 0; font-size: 15.5px; color: var(--muted); }

/* Creators */
.ap-vc-steps { display: grid; gap: 12px; margin: 10px 0 22px; }
@media (min-width: 760px) { .ap-vc-steps { grid-template-columns: repeat(3, 1fr); } }
.ap-vc-steps > div { padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.ap-vc-steps b { font: 700 16.5px/1.3 var(--head); }
.ap-vc-steps p { margin: 6px 0 0; font-size: 15px; color: var(--muted); line-height: 1.5; }
.ap-vc-filter { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; padding: 16px; border-radius: 16px; background: var(--soft); margin-bottom: 22px; }
.ap-vc-filter label { display: grid; gap: 4px; font: 600 14px/1.2 var(--head); }
.ap-vc-filter select { min-width: 160px; height: 42px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); }
.ap-check-inline { display: flex !important; align-items: center; gap: 8px; height: 42px; }
.ap-vc-list { display: grid; gap: 16px; }
@media (min-width: 760px) { .ap-vc-list { grid-template-columns: 1fr 1fr; } }
.ap-vc-card { padding: 18px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.ap-vc-card h3 { margin: 8px 0 6px; font-size: 20px; }
.ap-vc-card h3 a { text-decoration: none; }
.ap-vc-hook { margin: 0 0 10px; font-size: 16px; color: var(--ink-2); }
.ap-vc-meta { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; color: var(--muted); }

/* Forms */
.ap-form fieldset { border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px 6px; margin: 0 0 18px; background: var(--surface); }
.ap-form legend { padding: 0 8px; font: 700 17px/1 var(--head); }
.ap-form small { color: var(--muted); font-weight: 400; }
.ap-check, .ap-radio { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; font-size: 15.5px !important; line-height: 1.55; margin-bottom: 12px !important; }
.ap-check input, .ap-radio input { width: 18px !important; height: 18px; margin-top: 4px !important; flex: none; accent-color: var(--brand); }
.ap-form-note { font-size: 14px; color: var(--muted); }
.ap-form .ap-btn { font-size: 17px; padding: 14px 26px; }
.ap-empty-note { padding: 20px; border-radius: 14px; background: var(--soft); }
.ap-dek { font-size: clamp(18px, 2.2vw, 20px); }
.ap-content { font-size: 19px; }
