/* Pastel Course — front end. All colors / sizes come from CSS variables set in the settings page. */

.pcrs {
	--pc-shadow: 0 10px 30px -18px color-mix(in srgb, var(--pc-primary-dark) 45%, transparent);
	--pc-gap: 28px;
	direction: rtl;
	font-family: var(--pc-font);
	font-size: var(--pc-fs-base);
	line-height: 1.9;
	color: var(--pc-text);
	box-sizing: border-box;
}
.pcrs *, .pcrs *::before, .pcrs *::after { box-sizing: inherit; }
.pcrs img, .pcrs video, .pcrs iframe { max-width: 100%; }

.pcrs-page { background: var(--pc-bg); padding: 32px 0 64px; }
.pcrs-container { width: 100%; max-width: var(--pc-container); margin: 0 auto; padding: 0 16px; }

/* ---------- Typography ---------- */
.pcrs h1, .pcrs h2, .pcrs h3 { font-family: var(--pc-font); color: var(--pc-primary-dark); font-weight: 700; line-height: 1.5; margin: 0; }
.pcrs-title { font-size: var(--pc-fs-h1); }
.pcrs-h2 { font-size: var(--pc-fs-h2); margin-bottom: 8px !important; }
.pcrs-card-title, .pcrs h3 { font-size: var(--pc-fs-h3); }
.pcrs-lead, .pcrs-subtitle { color: var(--pc-muted); margin: 0; }
.pcrs-muted { color: var(--pc-muted); font-size: var(--pc-fs-small); }
.pcrs-eyebrow {
	display: inline-block; font-size: var(--pc-fs-small); color: var(--pc-accent);
	font-weight: 700; letter-spacing: 0; margin-bottom: 6px;
}
.pcrs-chip {
	display: inline-block; background: var(--pc-soft); color: var(--pc-primary-dark);
	border: 1px solid var(--pc-border); border-radius: 999px; padding: 4px 14px;
	font-size: var(--pc-fs-small);
}
.pcrs-i { flex: none; vertical-align: middle; }

/* ---------- Buttons ---------- */
.pcrs-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	background: var(--pc-primary-dark); color: #fff !important; border: 1px solid var(--pc-primary-dark);
	border-radius: calc(var(--pc-radius) * .75); padding: 11px 22px; font-family: inherit;
	font-size: var(--pc-fs-btn); font-weight: 700; line-height: 1.6; text-decoration: none !important;
	cursor: pointer; transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.pcrs-btn:hover { background: var(--pc-primary); border-color: var(--pc-primary); transform: translateY(-1px); box-shadow: var(--pc-shadow); }
.pcrs-btn:focus-visible { outline: 3px solid var(--pc-accent); outline-offset: 2px; }
.pcrs-btn-ghost { background: transparent; color: var(--pc-primary-dark) !important; border-color: var(--pc-border); }
.pcrs-btn-ghost:hover { background: var(--pc-soft); border-color: var(--pc-primary); }
.pcrs-btn-owned { background: var(--pc-soft); color: var(--pc-primary-dark) !important; border-color: var(--pc-primary); }
.pcrs-btn-owned:hover { background: var(--pc-soft); }
.pcrs-btn-sm { padding: 6px 14px; font-size: var(--pc-fs-small); }
.pcrs-btn.is-block { display: flex; width: 100%; }
.pcrs-btn.is-disabled { opacity: .6; cursor: not-allowed; }

/* ---------- Layout ---------- */
.pcrs-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--pc-gap); align-items: start; }
.pcrs-layout.has-sidebar { grid-template-columns: minmax(0, 1fr) 340px; }
.pcrs-main { display: flex; flex-direction: column; gap: var(--pc-gap); min-width: 0; }
.pcrs-aside.is-sticky { position: sticky; top: 24px; }
.admin-bar .pcrs-aside.is-sticky { top: 56px; }

.pcrs-section {
	background: var(--pc-card); border: 1px solid var(--pc-border); border-radius: var(--pc-radius);
	padding: 32px; box-shadow: var(--pc-shadow);
}
.pcrs-head { margin-bottom: 22px; }

/* ---------- Hero ---------- */
.pcrs-hero {
	display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center;
	background: linear-gradient(135deg, var(--pc-soft), var(--pc-card) 70%);
	margin-bottom: var(--pc-gap); padding: 40px;
}
.pcrs-hero.has-media { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.pcrs-hero-text { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.pcrs-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }

.pcrs-media {
	position: relative; margin: 0; border-radius: var(--pc-radius); overflow: hidden;
	background: var(--pc-soft); aspect-ratio: 16 / 9; border: 1px solid var(--pc-border);
}
.pcrs-media.is-image { aspect-ratio: auto; }
.pcrs-media img, .pcrs-media video, .pcrs-media iframe { display: block; width: 100%; height: 100%; object-fit: cover; border: 0; }
.pcrs-media.is-image img { height: auto; }
.pcrs-media video { object-fit: contain; background: #000; }
.pcrs-media > div, .pcrs-media .h_iframe-aparat_embed_frame { position: absolute !important; inset: 0; padding: 0 !important; }
.pcrs-play {
	position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%;
	border: 0; background: color-mix(in srgb, var(--pc-card) 88%, transparent); color: var(--pc-primary-dark);
	display: grid; place-items: center; cursor: pointer; box-shadow: 0 8px 30px rgba(0,0,0,.18);
	transition: transform .2s ease;
}
.pcrs-play::after {
	content: ""; position: absolute; inset: -8px; border-radius: 50%;
	border: 2px solid color-mix(in srgb, var(--pc-card) 70%, transparent); animation: pcrs-pulse 2s infinite;
}
.pcrs-play .pcrs-i { width: 32px; height: 32px; margin-inline-start: 4px; }
.pcrs-play:hover { transform: scale(1.06); }
@keyframes pcrs-pulse { 0% { transform: scale(.9); opacity: 1; } 100% { transform: scale(1.25); opacity: 0; } }

/* ---------- Content ---------- */
.pcrs-entry > *:first-child { margin-top: 0; }
.pcrs-entry > *:last-child { margin-bottom: 0; }
.pcrs-entry h2 { font-size: var(--pc-fs-h2); margin: 1.4em 0 .5em; }
.pcrs-entry h3 { font-size: var(--pc-fs-h3); margin: 1.2em 0 .4em; }
.pcrs-entry img { height: auto; border-radius: var(--pc-radius); }
.pcrs-entry a { color: var(--pc-primary-dark); }

/* ---------- Cards ---------- */
.pcrs-cards { display: grid; grid-template-columns: repeat(var(--pc-cols, 3), minmax(0, 1fr)); gap: 16px; }
.pcrs-card {
	background: var(--pc-bg); border: 1px solid var(--pc-border); border-radius: calc(var(--pc-radius) * .85);
	padding: 22px 18px; text-align: center; transition: transform .2s ease, box-shadow .2s ease;
}
.pcrs-card:hover { transform: translateY(-3px); box-shadow: var(--pc-shadow); }
.pcrs-card-icon {
	display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
	background: var(--pc-soft); font-size: 26px; margin-bottom: 10px; line-height: 1;
}
.pcrs-card-text { color: var(--pc-muted); font-size: var(--pc-fs-small); margin: 6px 0 0; }

/* ---------- Curriculum ---------- */
.pcrs-curr-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: -8px 0 18px; color: var(--pc-muted); font-size: var(--pc-fs-small); }
.pcrs-curr-meta span { display: inline-flex; align-items: center; gap: 6px; }
.pcrs-seasons { display: flex; flex-direction: column; gap: 12px; }
.pcrs-season { border: 1px solid var(--pc-border); border-radius: calc(var(--pc-radius) * .85); background: var(--pc-bg); overflow: hidden; }
.pcrs-season[open] { background: var(--pc-card); box-shadow: var(--pc-shadow); }
.pcrs-season > summary, .pcrs-faq-item > summary {
	list-style: none; display: flex; align-items: center; gap: 12px; padding: 16px 18px; cursor: pointer;
}
.pcrs-season > summary::-webkit-details-marker, .pcrs-faq-item > summary::-webkit-details-marker { display: none; }
.pcrs-season > summary > .pcrs-i-chevron, .pcrs-faq-item > summary > .pcrs-i-chevron { margin-inline-start: auto; transition: transform .2s ease; color: var(--pc-muted); }
.pcrs-season[open] > summary > .pcrs-i-chevron, .pcrs-faq-item[open] > summary > .pcrs-i-chevron { transform: rotate(180deg); }
.pcrs-season-num {
	flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px;
	background: var(--pc-soft); color: var(--pc-primary-dark); font-weight: 700;
}
.pcrs-season-title { display: flex; flex-direction: column; min-width: 0; }
.pcrs-season-title strong { color: var(--pc-primary-dark); font-size: var(--pc-fs-h3); line-height: 1.6; }
.pcrs-season-title small { color: var(--pc-muted); font-size: var(--pc-fs-small); }
.pcrs-season-body { padding: 0 18px 18px; }
.pcrs-season-desc { color: var(--pc-muted); margin: 0 0 12px; }
.pcrs-season-list { margin: 0 0 12px; padding: 0 20px 0 0; color: var(--pc-muted); }
.pcrs-season-list li::marker { color: var(--pc-accent); }

.pcrs-badge {
	flex: none; display: inline-flex; align-items: center; gap: 4px; border-radius: 999px;
	padding: 2px 10px; font-size: var(--pc-fs-small); font-weight: 700; line-height: 1.8;
}
.pcrs-badge .pcrs-i { width: 14px; height: 14px; }
.pcrs-badge.is-free { background: color-mix(in srgb, var(--pc-primary) 16%, var(--pc-card)); color: var(--pc-primary-dark); }
.pcrs-badge.is-locked { background: color-mix(in srgb, var(--pc-accent) 20%, var(--pc-card)); color: color-mix(in srgb, var(--pc-accent) 60%, var(--pc-text)); }
.pcrs-badge.sm { font-size: 11px; padding: 0 8px; }

.pcrs-lessons { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.pcrs-lesson-btn {
	width: 100%; display: flex; align-items: center; gap: 10px; text-align: right;
	background: var(--pc-bg); border: 1px solid transparent; border-radius: calc(var(--pc-radius) * .6);
	padding: 10px 12px; font: inherit; color: var(--pc-text); cursor: pointer; transition: border-color .15s, background-color .15s;
}
.pcrs-lesson-btn:hover { border-color: var(--pc-border); background: var(--pc-soft); }
.pcrs-lesson-btn:focus-visible { outline: 2px solid var(--pc-primary); }
.pcrs-lesson-icon { color: var(--pc-primary); display: inline-flex; }
.pcrs-lesson-title { flex: 1; min-width: 0; }
.pcrs-lesson-time { color: var(--pc-muted); font-size: var(--pc-fs-small); direction: ltr; }
.pcrs-lesson-state {
	display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
	background: var(--pc-primary-dark); color: #fff;
}
.pcrs-lesson-state .pcrs-i { width: 16px; height: 16px; }
.pcrs-lesson.is-locked .pcrs-lesson-btn { color: var(--pc-muted); }
.pcrs-lesson.is-locked .pcrs-lesson-state { background: var(--pc-soft); color: var(--pc-muted); }
.pcrs-season-buy {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
	margin-top: 12px; padding: 10px 14px; border-radius: calc(var(--pc-radius) * .6);
	background: var(--pc-soft); font-size: var(--pc-fs-small);
}

/* ---------- Teacher ---------- */
.pcrs-teacher-card { display: flex; gap: 20px; align-items: flex-start; margin-top: 14px; }
.pcrs-teacher-card p { margin: 8px 0 0; color: var(--pc-muted); }
.pcrs-avatar { flex: none; width: 96px !important; height: 96px !important; border-radius: 50%; object-fit: cover; border: 4px solid var(--pc-soft); }
.pcrs-avatar.is-empty { display: grid; place-items: center; background: var(--pc-soft); color: var(--pc-primary); }

/* ---------- FAQ ---------- */
.pcrs-faq-list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.pcrs-faq-item { border: 1px solid var(--pc-border); border-radius: calc(var(--pc-radius) * .7); background: var(--pc-bg); }
.pcrs-faq-item > summary { font-weight: 700; color: var(--pc-primary-dark); }
.pcrs-faq-a { padding: 0 18px 14px; color: var(--pc-muted); }
.pcrs-faq-a p { margin: 0 0 .6em; }

/* ---------- CTA ---------- */
.pcrs-cta { text-align: center; background: linear-gradient(135deg, var(--pc-soft), var(--pc-card)); }
.pcrs-cta .pcrs-lead { max-width: 640px; margin: 8px auto 0; }
.pcrs-cta-actions { margin-top: 18px; }

/* ---------- Sidebar box ---------- */
.pcrs-box {
	background: var(--pc-card); border: 1px solid var(--pc-border); border-radius: var(--pc-radius);
	padding: 24px; box-shadow: var(--pc-shadow); display: flex; flex-direction: column; gap: 16px;
}
.pcrs-box-head { display: flex; flex-direction: column; gap: 2px; padding-bottom: 14px; border-bottom: 1px dashed var(--pc-border); }
.pcrs-box-title { color: var(--pc-primary-dark); font-size: var(--pc-fs-h3); line-height: 1.6; }
.pcrs-price { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pcrs-price-label { color: var(--pc-muted); font-size: var(--pc-fs-small); }
.pcrs-price-value { color: var(--pc-primary-dark); font-weight: 700; font-size: calc(var(--pc-fs-h3) + 2px); }
.pcrs-price-value del { color: var(--pc-muted); font-size: .75em; font-weight: 500; opacity: .8; margin-inline-end: 6px; }
.pcrs-price-value ins { text-decoration: none; }
.pcrs-price-free { color: var(--pc-primary); }
.pcrs-price-note { margin: -8px 0 0; color: var(--pc-muted); font-size: var(--pc-fs-small); }
.pcrs-box-actions { display: flex; flex-direction: column; gap: 8px; }
.pcrs-meta-list { margin: 0; display: flex; flex-direction: column; background: var(--pc-bg); border-radius: calc(var(--pc-radius) * .7); padding: 4px 14px; }
.pcrs-meta-list > div { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--pc-border); font-size: var(--pc-fs-small); }
.pcrs-meta-list > div:last-child { border-bottom: 0; }
.pcrs-meta-list dt { color: var(--pc-muted); display: inline-flex; align-items: center; gap: 6px; }
.pcrs-meta-list dt .pcrs-i { width: 16px; height: 16px; color: var(--pc-primary); }
.pcrs-meta-list dd { margin: 0; font-weight: 700; color: var(--pc-text); text-align: left; }
.pcrs-features { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: var(--pc-fs-small); }
.pcrs-features li { display: flex; gap: 8px; align-items: flex-start; }
.pcrs-features .pcrs-i { width: 18px; height: 18px; color: var(--pc-primary); margin-top: 3px; }

.pcrs-buy-inline { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

/* ---------- Mobile buy bar ---------- */
.pcrs-mobile-bar { display: none; }

/* ---------- Lesson modal ---------- */
.pcrs-modal { position: fixed; inset: 0; z-index: 99999; display: none; align-items: center; justify-content: center; padding: 16px; }
.pcrs-modal.is-open { display: flex; }
.pcrs-modal-backdrop { position: absolute; inset: 0; background: rgba(20, 30, 25, .55); backdrop-filter: blur(3px); }
.pcrs-modal-dialog {
	position: relative; width: 100%; max-width: 920px; max-height: calc(100vh - 32px); overflow: auto;
	background: var(--pc-card); border-radius: var(--pc-radius); padding: 24px; box-shadow: 0 30px 80px rgba(0,0,0,.3);
}
.pcrs-modal-close {
	position: absolute; top: 12px; left: 12px; width: 36px; height: 36px; border-radius: 50%; border: 0;
	background: var(--pc-soft); color: var(--pc-text); display: grid; place-items: center; cursor: pointer; z-index: 2;
}
.pcrs-player-head { margin-bottom: 14px; padding-left: 40px; }
.pcrs-player-head h3 { font-size: var(--pc-fs-h3); }
.pcrs-player-text { margin-top: 16px; }
.pcrs-player-nav { margin-top: 16px; display: flex; justify-content: flex-start; }
.pcrs-player-nav .pcrs-lesson-btn { width: auto; }
.pcrs-audio { width: 100%; }
.pcrs-locked-msg { text-align: center; padding: 24px 8px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.pcrs-locked-msg > .pcrs-i { width: 48px; height: 48px; color: var(--pc-accent); }
.pcrs-locked-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.pcrs-loading { text-align: center; padding: 40px; color: var(--pc-muted); }
body.pcrs-modal-open { overflow: hidden; }

/* ---------- Grid ---------- */
.pcrs-grid { display: grid; grid-template-columns: repeat(var(--pc-cols, 3), minmax(0, 1fr)); gap: 22px; }
.pcrs-course-card {
	background: var(--pc-card); border: 1px solid var(--pc-border); border-radius: var(--pc-radius);
	overflow: hidden; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease;
}
.pcrs-course-card:hover { transform: translateY(-4px); box-shadow: var(--pc-shadow); }
.pcrs-course-thumb { display: block; aspect-ratio: 16 / 10; background: var(--pc-soft); }
.pcrs-course-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcrs-thumb-empty { display: grid; place-items: center; height: 100%; color: var(--pc-primary); }
.pcrs-course-body { padding: 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pcrs-course-body h3 a { color: inherit; text-decoration: none; }
.pcrs-course-foot { margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--pc-border); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pcrs-course-foot .pcrs-muted { display: inline-flex; gap: 4px; align-items: center; }
.pcrs-course-foot .pcrs-price-value { font-size: var(--pc-fs-base); }
.pcrs-empty { padding: 24px; text-align: center; background: var(--pc-soft); border-radius: var(--pc-radius); }
.pcrs-archive .pcrs-hero { grid-template-columns: 1fr; }
.pcrs-pagination { margin-top: 28px; display: flex; justify-content: center; gap: 6px; }
.pcrs-pagination .page-numbers { padding: 6px 14px; border-radius: 10px; background: var(--pc-card); border: 1px solid var(--pc-border); text-decoration: none; color: var(--pc-text); }
.pcrs-pagination .current { background: var(--pc-primary-dark); color: #fff; }

/* Elementor widgets render sections standalone */
.elementor-widget .pcrs-section { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.pcrs-layout.has-sidebar { grid-template-columns: minmax(0, 1fr) 300px; }
	.pcrs-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.pcrs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
	.pcrs {
		--pc-gap: 18px;
		/* Body text shrinks half as much as headings. */
		font-size: calc(var(--pc-fs-base) * (1 - (1 - var(--pc-scale-m)) / 2));
	}
	.pcrs-title { font-size: calc(var(--pc-fs-h1) * var(--pc-scale-m)); }
	.pcrs-h2, .pcrs-entry h2 { font-size: calc(var(--pc-fs-h2) * var(--pc-scale-m)); }
	.pcrs-card-title, .pcrs h3, .pcrs-season-title strong { font-size: calc(var(--pc-fs-h3) * var(--pc-scale-m)); }
	.pcrs-layout.has-sidebar, .pcrs-hero.has-media { grid-template-columns: minmax(0, 1fr); }
	.pcrs-hero.has-media .pcrs-hero-media { order: -1; }
	.pcrs-aside.is-sticky { position: static; }
	.pcrs-section, .pcrs-hero { padding: 20px; }
	.pcrs-page { padding: 16px 0 90px; }
	.pcrs-mobile-bar {
		display: flex; align-items: center; justify-content: space-between; gap: 12px;
		position: fixed; bottom: 0; left: 0; right: 0; z-index: 999; padding: 10px 16px;
		background: var(--pc-card); border-top: 1px solid var(--pc-border); box-shadow: 0 -8px 24px rgba(0,0,0,.06);
	}
	.pcrs-mobile-bar .pcrs-btn { padding: 9px 16px; }
}
@media (max-width: 560px) {
	.pcrs-cards, .pcrs-grid { grid-template-columns: minmax(0, 1fr); }
	.pcrs-teacher-card { flex-direction: column; align-items: center; text-align: center; }
	.pcrs-hero-actions .pcrs-btn { flex: 1 1 auto; }
	.pcrs-lesson-time { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.pcrs *, .pcrs *::after { animation: none !important; transition: none !important; }
}

/* =====================================================================
   Course cards (pastel gradient), archive, filters, carousel — v1.1
   ===================================================================== */
.akc-grid { display: grid; grid-template-columns: repeat(var(--akc-cols, 3), minmax(0, 1fr)); gap: 28px; }

.akc-card {
	--akc-ink: color-mix(in srgb, var(--pc-text) 80%, #000);
	position: relative; display: flex; flex-direction: column; height: 100%;
	background: linear-gradient(165deg, var(--akc-from) 0%, var(--akc-to) 100%);
	border: 1px solid color-mix(in srgb, #fff 70%, var(--akc-accent));
	border-radius: 28px; padding: 26px 26px 24px; text-align: center; overflow: hidden; isolation: isolate;
	box-shadow: 0 18px 40px -26px color-mix(in srgb, var(--akc-accent) 70%, transparent), inset 0 1px 0 rgba(255,255,255,.8);
	transition: transform .3s ease, box-shadow .3s ease;
}
.akc-card::before {
	content: ""; position: absolute; z-index: -1; width: 220px; height: 220px; border-radius: 50%;
	top: -90px; inset-inline-end: -80px; background: radial-gradient(circle, rgba(255,255,255,.75), transparent 70%);
}
.akc-card:hover { transform: translateY(-6px); box-shadow: 0 28px 50px -28px color-mix(in srgb, var(--akc-accent) 85%, transparent); }

.akc-card-arrow {
	position: absolute; top: 22px; inset-inline-end: 22px; z-index: 2;
	width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
	background: color-mix(in srgb, var(--akc-accent) 16%, #fff); color: var(--akc-accent);
	transition: transform .25s ease, background-color .25s ease, color .25s ease;
}
.akc-card-arrow .pcrs-i { width: 18px; height: 18px; }
.akc-card:hover .akc-card-arrow { background: var(--akc-accent); color: #fff; transform: rotate(-8deg) scale(1.05); }
.akc-card-badge {
	position: absolute; top: 26px; inset-inline-start: 22px; z-index: 2; padding: 3px 12px; border-radius: 999px;
	background: #fff; color: var(--akc-accent); font-size: 12px; font-weight: 700; box-shadow: 0 6px 16px -10px var(--akc-accent);
}

.akc-card-media { position: relative; display: grid; place-items: center; margin: 4px auto 14px; width: min(78%, 300px); aspect-ratio: 1; }
.akc-blob {
	position: absolute; inset: 8%; border-radius: 46% 54% 52% 48% / 52% 44% 56% 48%;
	background: radial-gradient(circle at 35% 30%, #fff 0, color-mix(in srgb, var(--akc-accent) 30%, #fff) 70%);
	border: 2px solid color-mix(in srgb, var(--akc-accent) 35%, #fff);
	transition: border-radius .8s ease, transform .8s ease;
}
.akc-card:hover .akc-blob { border-radius: 54% 46% 44% 56% / 46% 56% 44% 54%; transform: rotate(6deg); }
.akc-card-media img { position: relative; width: 84%; height: 84%; object-fit: cover; border-radius: 50%; border: 6px solid rgba(255,255,255,.85); box-shadow: 0 16px 30px -18px rgba(0,0,0,.35); }
.akc-card-media.is-cutout img { width: 100%; height: 100%; object-fit: contain; border: 0; border-radius: 0; box-shadow: none; filter: drop-shadow(0 18px 18px rgba(0,0,0,.12)); }
.akc-card-noimg { position: relative; color: var(--akc-accent); }
.akc-card-noimg .pcrs-i { width: 56px; height: 56px; }

.akc-card-body { display: flex; flex-direction: column; flex: 1; gap: 10px; }
.akc-card-title { margin: 0; font-size: calc(var(--pc-fs-h3) + 2px); line-height: 1.6; font-weight: 700; }
.akc-card-title a { color: var(--akc-ink); text-decoration: none; }
.akc-card-title a:hover { color: var(--akc-accent); }
.akc-card-excerpt {
	margin: 0; color: var(--pc-muted); font-size: 14px; line-height: 2;
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.akc-card-rating { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--pc-muted); font-size: 13px; }
.akc-card-rating b { color: var(--akc-ink); }
.akc-stars { display: inline-flex; gap: 1px; color: color-mix(in srgb, var(--pc-muted) 40%, #fff); font-style: normal; letter-spacing: 0; }
.akc-stars i { font-style: normal; }
.akc-stars i.on { color: #d9a441; }

.akc-card-meta {
	list-style: none; margin: 6px 0 0; padding: 16px 0 0; border-top: 1px solid color-mix(in srgb, var(--akc-accent) 22%, transparent);
	display: grid; grid-template-columns: repeat(var(--akc-meta, 3), minmax(0, 1fr)); gap: 8px;
}
.akc-card-meta li { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.akc-meta-icon {
	width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 4px;
	background: color-mix(in srgb, var(--akc-accent) 14%, #fff); color: var(--akc-accent);
}
.akc-meta-icon .pcrs-i { width: 20px; height: 20px; }
.akc-card-meta strong { font-size: 14px; color: var(--akc-ink); font-weight: 700; line-height: 1.6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.akc-card-meta strong del { display: none; }
.akc-card-meta strong ins { text-decoration: none; }
.akc-card-meta small { font-size: 12px; color: var(--pc-muted); }

.akc-card-btn {
	margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 10px;
	background: var(--akc-accent); color: #fff !important; border-radius: 20px; padding: 14px 18px;
	font-weight: 700; font-size: var(--pc-fs-btn); text-decoration: none !important;
	box-shadow: 0 14px 26px -16px var(--akc-accent); transition: filter .2s ease, transform .2s ease;
}
.akc-card-meta { margin-bottom: 18px; }
.akc-card-btn .pcrs-i { width: 18px; height: 18px; transition: transform .2s ease; }
.akc-card-btn:hover { filter: brightness(1.06) saturate(1.1); }
.akc-card-btn:hover .pcrs-i { transform: translateX(-4px); }

/* Archive hero */
.pcrs-page.akc-archive-page { background: transparent; }
.akc-archive { position: relative; }
.akc-hero { text-align: center; padding: 18px 0 36px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.akc-pill {
	display: inline-flex; align-items: center; gap: 8px; padding: 8px 22px; border-radius: 999px;
	background: color-mix(in srgb, #fff 80%, transparent); border: 1px solid var(--pc-border); color: var(--pc-muted); font-size: 14px;
	box-shadow: 0 8px 22px -18px rgba(0,0,0,.4);
}
.akc-bfly { color: var(--pc-accent); }
.akc-hero-title { margin: 0; font-size: clamp(26px, 4vw, calc(var(--pc-fs-h1) + 10px)); font-weight: 800; line-height: 1.5; color: var(--akc-hero-ink, color-mix(in srgb, var(--pc-text) 80%, #000)); }
.akc-hero-sub { margin: 0; color: var(--pc-muted); max-width: 640px; }
.akc-ornament { display: flex; align-items: center; gap: 12px; color: var(--pc-accent); }
.akc-ornament i { width: 140px; height: 1px; background: linear-gradient(90deg, transparent, var(--pc-accent)); }
.akc-ornament i:last-child { background: linear-gradient(270deg, transparent, var(--pc-accent)); }

/* Filter box */
.akc-filter {
	background: color-mix(in srgb, #fff 82%, transparent); backdrop-filter: blur(8px);
	border: 1px solid color-mix(in srgb, #fff 60%, var(--pc-border)); border-radius: 28px; padding: 24px 26px;
	box-shadow: 0 24px 50px -36px rgba(0,0,0,.35); margin-bottom: 32px;
}
.akc-filter-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 18px; }
.akc-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.akc-field > span:first-child { color: var(--pc-muted); font-size: 13px; }
.akc-input-wrap { position: relative; display: block; }
.akc-input-wrap .pcrs-i { position: absolute; top: 50%; inset-inline-start: 16px; transform: translateY(-50%); color: var(--pc-muted); pointer-events: none; }
.akc-field input, .akc-field select {
	width: 100%; height: 56px; border-radius: 18px; border: 1px solid var(--pc-border); background: #fff;
	padding: 0 18px; font: inherit; font-size: 15px; color: var(--pc-text); box-shadow: none; outline: none;
	transition: border-color .2s ease, box-shadow .2s ease; appearance: none; -webkit-appearance: none;
}
.akc-input-wrap input { padding-inline-start: 46px; }
.akc-field select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23737d72' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: left 18px center; padding-inline-end: 44px;
}
.akc-field input:focus, .akc-field select:focus { border-color: var(--pc-primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--pc-primary) 18%, transparent); }
.akc-filter-actions { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.akc-filter-actions .pcrs-btn { border-radius: 18px; min-width: 150px; padding: 13px 24px; }
.akc-filter.is-live .akc-apply { display: none; }
.akc-archive.is-loading .akc-results { opacity: .45; pointer-events: none; transition: opacity .2s; }

.akc-results-bar { display: flex; justify-content: space-between; align-items: center; color: var(--pc-muted); margin: 0 4px 18px; font-size: 14px; }
.akc-more { text-align: center; margin-top: 32px; }
.akc-more[hidden] { display: none; }
.akc-empty { grid-column: 1 / -1; text-align: center; padding: 50px 20px; color: var(--pc-muted); background: color-mix(in srgb, #fff 70%, transparent); border-radius: 24px; }
.akc-empty .pcrs-i { width: 40px; height: 40px; color: var(--pc-accent); }

.akc-block-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.akc-more-link { display: inline-flex; align-items: center; gap: 6px; color: var(--pc-primary-dark); text-decoration: none; font-weight: 700; }
.akc-more-link .pcrs-i { width: 18px; height: 18px; }

/* Carousel */
.akc-carousel { position: relative; --akc-gap: 24px; }
.akc-track {
	display: grid; grid-auto-flow: column; gap: var(--akc-gap);
	grid-auto-columns: calc((100% - (var(--akc-cols) - 1) * var(--akc-gap)) / var(--akc-cols));
	overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth;
	padding: 12px 4px 28px; scrollbar-width: none;
}
.akc-track::-webkit-scrollbar { display: none; }
.akc-track:focus-visible { outline: 2px solid var(--pc-primary); outline-offset: 4px; border-radius: 20px; }
.akc-slide { scroll-snap-align: start; min-width: 0; }
.akc-nav {
	position: absolute; top: 42%; z-index: 3; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--pc-border);
	background: #fff; color: var(--pc-primary-dark); display: grid; place-items: center; cursor: pointer;
	box-shadow: 0 12px 26px -16px rgba(0,0,0,.45); transition: transform .2s ease, opacity .2s ease;
}
.akc-nav:hover { transform: scale(1.08); }
.akc-nav[disabled] { opacity: 0; pointer-events: none; }
.akc-prev { right: -14px; }
.akc-next { left: -14px; }
.akc-prev .pcrs-i { transform: rotate(-90deg); }
.akc-next .pcrs-i { transform: rotate(90deg); }
.akc-dots { display: flex; justify-content: center; gap: 8px; }
.akc-dots button { width: 9px; height: 9px; padding: 0; border-radius: 99px; border: 0; background: var(--pc-border); cursor: pointer; transition: width .25s ease, background-color .25s ease; }
.akc-dots button.is-active { width: 26px; background: var(--pc-primary-dark); }

/* Review stars in comment form */
.akc-rate { border: 0; padding: 0; margin: 0 0 14px; }
.akc-rate legend { font-weight: 700; margin-bottom: 4px; }
.akc-rate-stars { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.akc-rate-stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.akc-rate-stars label { font-size: 30px; line-height: 1; color: #d9d6cf; cursor: pointer; transition: color .15s; }
.akc-rate-stars label:hover, .akc-rate-stars label:hover ~ label, .akc-rate-stars input:checked ~ label { color: #d9a441; }
.akc-rate-stars input:focus-visible + label { outline: 2px solid var(--pc-primary); border-radius: 4px; }
.akc-comment-rating { margin-bottom: 4px; }

@media (max-width: 1024px) {
	.akc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.akc-carousel { --akc-cols: 2 !important; }
}
@media (max-width: 760px) {
	.akc-filter-row { grid-template-columns: 1fr; }
	.akc-filter { padding: 18px; border-radius: 22px; }
	.akc-filter-actions .pcrs-btn { flex: 1; min-width: 0; }
}
@media (max-width: 640px) {
	.akc-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.akc-carousel { --akc-cols: 1.15 !important; --akc-gap: 14px; }
	.akc-nav { display: none; }
	.akc-card { padding: 22px 18px 20px; border-radius: 24px; }
	.akc-meta-icon { width: 40px; height: 40px; }
}

/* =====================================================================
   v1.2 — Theme-proof components.
   Themes and Elementor kits style every <button>, <input> and <textarea>
   globally (pink buttons, dark borders, full-width). Everything below is
   prefixed with "html body .pcrs" so the plugin design always wins.
   ===================================================================== */

/* 1. Neutral reset for buttons inside the plugin */
html body .pcrs button {
	-webkit-appearance: none; appearance: none; background: none; background-image: none; border: 0; border-radius: 0;
	box-shadow: none; color: inherit; font: inherit; letter-spacing: normal; line-height: inherit; text-transform: none;
	text-shadow: none; text-decoration: none; width: auto; height: auto; min-width: 0; min-height: 0; max-width: none;
	margin: 0; padding: 0; outline-offset: 2px; transform: none; filter: none;
}

/* 2. Buttons */
html body .pcrs .pcrs-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: auto;
	background: var(--pc-primary-dark); color: #fff !important; border: 1px solid var(--pc-primary-dark);
	border-radius: calc(var(--pc-radius) * .75); padding: 11px 22px; min-height: 46px;
	font-family: var(--pc-font); font-size: var(--pc-fs-btn); font-weight: 700; line-height: 1.6;
	text-decoration: none !important; cursor: pointer; box-shadow: 0 12px 24px -18px var(--pc-primary-dark);
	transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
html body .pcrs .pcrs-btn:hover { background: var(--pc-primary); border-color: var(--pc-primary); color: #fff !important; transform: translateY(-1px); }
html body .pcrs .pcrs-btn .pcrs-i { width: 18px; height: 18px; }
html body .pcrs .pcrs-btn.pcrs-btn-ghost { background: #fff; color: var(--pc-primary-dark) !important; border-color: var(--pc-border); box-shadow: none; }
html body .pcrs .pcrs-btn.pcrs-btn-ghost:hover { background: var(--pc-soft); border-color: var(--pc-primary); color: var(--pc-primary-dark) !important; }
html body .pcrs .pcrs-btn.pcrs-btn-owned { background: var(--pc-soft); color: var(--pc-primary-dark) !important; border-color: var(--pc-primary); box-shadow: none; }
html body .pcrs .pcrs-btn.pcrs-btn-sm { min-height: 36px; padding: 6px 16px; font-size: var(--pc-fs-small); }
html body .pcrs .pcrs-btn.is-block { display: flex; width: 100%; }

/* 3. Intro video play button */
html body .pcrs .pcrs-media.has-cover::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: radial-gradient(circle at center, rgba(0,0,0,.18), transparent 60%);
}
html body .pcrs .pcrs-play {
	position: absolute; inset: 0; margin: auto; z-index: 2; width: 84px; height: 84px; padding: 0;
	border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--pc-primary-dark);
	display: grid; place-items: center; cursor: pointer; box-shadow: 0 14px 36px rgba(0,0,0,.25);
	backdrop-filter: blur(6px); transition: transform .25s ease, background-color .25s ease, color .25s ease;
}
html body .pcrs .pcrs-play::after {
	content: ""; position: absolute; inset: -10px; border-radius: 50%;
	border: 2px solid rgba(255,255,255,.7); animation: pcrs-pulse 2s infinite;
}
html body .pcrs .pcrs-play:hover { transform: scale(1.07); background: var(--pc-primary-dark); color: #fff; }
html body .pcrs .pcrs-play .pcrs-i { width: 34px; height: 34px; margin-inline-start: 5px; }

/* 4. Lesson rows (one consistent frame: number · title + meta · badge · action) */
html body .pcrs .pcrs-lessons { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
html body .pcrs .pcrs-lesson { margin: 0; padding: 0; list-style: none; }
html body .pcrs .pcrs-lesson::before, html body .pcrs .pcrs-lesson::marker { content: none; }
html body .pcrs .pcrs-lesson-btn {
	display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 14px; width: 100%;
	padding: 12px 14px; background: var(--pc-card); border: 1px solid var(--pc-border);
	border-radius: calc(var(--pc-radius) * .75); color: var(--pc-text); text-align: right; cursor: pointer;
	white-space: normal; transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
html body .pcrs .pcrs-lesson-btn:hover,
html body .pcrs .pcrs-lesson-btn:focus-visible {
	background: color-mix(in srgb, var(--pc-soft) 55%, var(--pc-card)); border-color: color-mix(in srgb, var(--pc-primary) 45%, var(--pc-border));
	color: var(--pc-text); box-shadow: 0 10px 24px -20px var(--pc-primary-dark); outline: none;
}
html body .pcrs .pcrs-lesson-num {
	flex: none; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center;
	background: var(--pc-soft); color: var(--pc-primary-dark); font-weight: 700; font-size: var(--pc-fs-small);
}
html body .pcrs .pcrs-lesson-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
html body .pcrs .pcrs-lesson-title { font-weight: 700; color: var(--pc-text); line-height: 1.7; }
html body .pcrs .pcrs-lesson-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--pc-muted); font-size: 12px; }
html body .pcrs .pcrs-lesson-meta > span { display: inline-flex; align-items: center; gap: 4px; }
html body .pcrs .pcrs-lesson-meta .pcrs-i { width: 14px; height: 14px; color: var(--pc-primary); }
html body .pcrs .pcrs-lesson-time { direction: ltr; }
html body .pcrs .pcrs-lesson-state {
	flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
	background: var(--pc-primary-dark); color: #fff; transition: transform .2s ease;
}
html body .pcrs .pcrs-lesson-state .pcrs-i { width: 16px; height: 16px; }
html body .pcrs .pcrs-lesson-state .pcrs-i-play { margin-inline-start: 2px; }
html body .pcrs .pcrs-lesson-btn:hover .pcrs-lesson-state { transform: scale(1.08); }
html body .pcrs .pcrs-lesson.is-locked .pcrs-lesson-btn { background: color-mix(in srgb, var(--pc-bg) 70%, var(--pc-card)); cursor: not-allowed; }
html body .pcrs .pcrs-lesson.is-locked .pcrs-lesson-title { color: var(--pc-muted); }
html body .pcrs .pcrs-lesson.is-locked .pcrs-lesson-num { background: transparent; border: 1px dashed var(--pc-border); color: var(--pc-muted); }
html body .pcrs .pcrs-lesson.is-locked .pcrs-lesson-state { background: var(--pc-soft); color: var(--pc-muted); }
html body .pcrs .pcrs-lesson.is-locked .pcrs-lesson-btn:hover .pcrs-lesson-state { transform: none; }
html body .pcrs .pcrs-badge.is-admin { background: color-mix(in srgb, var(--pc-accent) 18%, #fff); color: color-mix(in srgb, var(--pc-accent) 55%, var(--pc-text)); }
html body .pcrs .pcrs-badge .pcrs-i { width: 13px; height: 13px; }
html body .pcrs .is-shake { animation: pcrs-shake .4s ease; }
@keyframes pcrs-shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
html body .pcrs .pcrs-admin-note {
	display: flex; gap: 8px; align-items: flex-start; margin: -6px 0 16px; padding: 10px 14px; font-size: 12px; line-height: 1.9;
	border-radius: 12px; background: color-mix(in srgb, var(--pc-accent) 12%, #fff); color: color-mix(in srgb, var(--pc-accent) 45%, var(--pc-text));
}
html body .pcrs .pcrs-admin-note .pcrs-i { width: 16px; height: 16px; margin-top: 3px; }

/* Locked lesson prompt */
.pcrs-toast {
	position: fixed; bottom: 24px; left: 50%; z-index: 100000; transform: translate(-50%, 150%); opacity: 0;
	display: flex; align-items: center; gap: 12px; max-width: calc(100vw - 32px);
	background: var(--pc-card); color: var(--pc-text); border: 1px solid var(--pc-border); border-radius: 18px;
	padding: 12px 14px 12px 18px; box-shadow: 0 24px 50px -20px rgba(0,0,0,.35); font-size: 14px;
	transition: transform .3s ease, opacity .3s ease;
}
.pcrs-toast.is-show { transform: translate(-50%, 0); opacity: 1; }
.pcrs-toast > svg { color: var(--pc-accent); flex: none; }

/* 5. Modal close + carousel controls */
html body .pcrs .pcrs-modal-close {
	position: absolute; top: 12px; left: 12px; width: 38px; height: 38px; border-radius: 50%; background: var(--pc-soft);
	color: var(--pc-text); display: grid; place-items: center; cursor: pointer; z-index: 2;
}
html body .pcrs .pcrs-modal-close:hover { background: var(--pc-primary-dark); color: #fff; }
html body .pcrs .akc-nav {
	position: absolute; top: 42%; z-index: 3; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--pc-border);
	background: #fff; color: var(--pc-primary-dark); display: grid; place-items: center; cursor: pointer;
	box-shadow: 0 12px 26px -16px rgba(0,0,0,.45);
}
html body .pcrs .akc-nav:hover { background: var(--pc-primary-dark); color: #fff; border-color: var(--pc-primary-dark); }
html body .pcrs .akc-nav[disabled] { opacity: 0; pointer-events: none; }
html body .pcrs .akc-dots button { width: 9px; height: 9px; border-radius: 99px; background: var(--pc-border); cursor: pointer; }
html body .pcrs .akc-dots button.is-active { width: 26px; background: var(--pc-primary-dark); }

/* 6. Teacher under the course title */
.pcrs-hero-teacher { align-self: flex-end; width: min(100%, 380px); display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.pcrs-hero-teacher-row { display: flex; align-items: center; gap: 12px; }
html body .pcrs .pcrs-hero-avatar {
	flex: none; width: 50px; height: 50px; border-radius: 50%; object-fit: cover; border: 3px solid #fff;
	box-shadow: 0 0 0 2px var(--pc-soft), 0 8px 18px -12px rgba(0,0,0,.4);
}
.pcrs-hero-avatar.is-empty { display: grid; place-items: center; background: var(--pc-soft); color: var(--pc-primary); }
.pcrs-hero-teacher-name { display: flex; flex-direction: column; line-height: 1.6; }
.pcrs-hero-teacher-name small { color: var(--pc-muted); font-size: 11px; }
.pcrs-hero-teacher-name strong { color: var(--pc-primary-dark); }
.pcrs-hero-teacher-name em { font-style: normal; color: var(--pc-muted); font-size: 12px; }
.pcrs-hero-teacher-intro { margin: 0; padding-top: 10px; border-top: 1px solid var(--pc-border); color: var(--pc-muted); font-size: var(--pc-fs-small); line-height: 1.9; }

/* Teacher section */
html body .pcrs .pcrs-teacher-card {
	align-items: center; padding: 20px; border-radius: calc(var(--pc-radius) * .85);
	background: linear-gradient(135deg, var(--pc-soft), var(--pc-card) 75%); border: 1px solid var(--pc-border);
}
html body .pcrs .pcrs-avatar { width: 88px !important; height: 88px !important; border: 4px solid #fff; box-shadow: 0 0 0 2px var(--pc-soft); }
.pcrs-avatar.is-empty .pcrs-i { width: 32px; height: 32px; }

/* 7. Comments — same frame as the rest of the page */
html body .pcrs .pcrs-comments h2,
html body .pcrs .pcrs-comments h3,
html body .pcrs .pcrs-comments .comment-reply-title { font-size: var(--pc-fs-h2); color: var(--pc-primary-dark); margin: 0 0 6px; }
html body .pcrs .pcrs-comments .logged-in-as,
html body .pcrs .pcrs-comments .comment-notes { color: var(--pc-muted); font-size: var(--pc-fs-small); margin: 0 0 6px; }
html body .pcrs .pcrs-comments .logged-in-as a,
html body .pcrs .pcrs-comments .comment-notes a { color: var(--pc-primary-dark); }
html body .pcrs .pcrs-comments .comment-form { display: flex; flex-direction: column; gap: 14px; margin: 0; }
html body .pcrs .pcrs-comments .comment-form p { margin: 0; }
html body .pcrs .pcrs-comments .comment-form label { display: block; margin-bottom: 6px; font-size: var(--pc-fs-small); font-weight: 700; color: var(--pc-text); }
html body .pcrs .pcrs-comments textarea,
html body .pcrs .pcrs-comments input[type="text"],
html body .pcrs .pcrs-comments input[type="email"],
html body .pcrs .pcrs-comments input[type="url"] {
	width: 100%; max-width: 100%; border: 1px solid var(--pc-border); border-radius: calc(var(--pc-radius) * .75);
	background: var(--pc-bg); color: var(--pc-text); font-family: var(--pc-font); font-size: var(--pc-fs-base);
	padding: 12px 16px; min-height: 50px; box-shadow: none; outline: none; transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
html body .pcrs .pcrs-comments textarea { min-height: 150px; resize: vertical; line-height: 1.9; }
html body .pcrs .pcrs-comments textarea:focus,
html body .pcrs .pcrs-comments input:focus {
	border-color: var(--pc-primary); background: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--pc-primary) 16%, transparent);
}
html body .pcrs .pcrs-comments .comment-form-cookies-consent { display: flex; align-items: center; gap: 8px; font-size: var(--pc-fs-small); color: var(--pc-muted); }
html body .pcrs .pcrs-comments .comment-form-cookies-consent label { margin: 0; font-weight: 400; color: var(--pc-muted); }
html body .pcrs .pcrs-comments .form-submit { display: flex; justify-content: flex-end; }
html body .pcrs .pcrs-comments .form-submit .submit,
html body .pcrs .pcrs-comments input#submit {
	-webkit-appearance: none; appearance: none; width: auto; min-height: 48px; padding: 10px 30px; cursor: pointer;
	background: var(--pc-primary-dark); color: #fff; border: 0; border-radius: calc(var(--pc-radius) * .75);
	font-family: var(--pc-font); font-size: var(--pc-fs-btn); font-weight: 700; box-shadow: 0 12px 24px -18px var(--pc-primary-dark);
	transition: background-color .2s ease, transform .2s ease;
}
html body .pcrs .pcrs-comments .form-submit .submit:hover,
html body .pcrs .pcrs-comments input#submit:hover { background: var(--pc-primary); color: #fff; transform: translateY(-1px); }
html body .pcrs .pcrs-comments .akc-rate {
	display: inline-flex; flex-direction: column; gap: 4px; padding: 12px 16px; border-radius: 14px;
	background: var(--pc-bg); border: 1px solid var(--pc-border); margin: 0;
}
html body .pcrs .pcrs-comments .akc-rate legend { float: right; font-size: var(--pc-fs-small); color: var(--pc-text); padding: 0; }
html body .pcrs .pcrs-comments .akc-rate-stars label { font-size: 28px; margin: 0; font-weight: 400; color: #ddd8cf; }
html body .pcrs .pcrs-comments .akc-rate-stars label:hover,
html body .pcrs .pcrs-comments .akc-rate-stars label:hover ~ label,
html body .pcrs .pcrs-comments .akc-rate-stars input:checked ~ label { color: #d9a441; }
html body .pcrs .pcrs-comments .comment-list,
html body .pcrs .pcrs-comments .comment-list .children { list-style: none; margin: 0 0 24px; padding: 0; }
html body .pcrs .pcrs-comments .comment-list .children { margin: 10px 24px 0 0; }
html body .pcrs .pcrs-comments .comment-list li { margin: 0 0 12px; padding: 0; }
html body .pcrs .pcrs-comments .comment-body {
	padding: 18px 20px; border-radius: calc(var(--pc-radius) * .85); background: var(--pc-bg); border: 1px solid var(--pc-border);
}
html body .pcrs .pcrs-comments .comment-author { display: flex; align-items: center; gap: 10px; }
html body .pcrs .pcrs-comments .comment-author .avatar { width: 44px; height: 44px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 2px var(--pc-soft); }
html body .pcrs .pcrs-comments .comment-author .fn,
html body .pcrs .pcrs-comments .comment-author .fn a { font-style: normal; font-weight: 700; color: var(--pc-primary-dark); text-decoration: none; }
html body .pcrs .pcrs-comments .comment-author .says { display: none; }
html body .pcrs .pcrs-comments .comment-metadata,
html body .pcrs .pcrs-comments .comment-meta a { font-size: 12px; color: var(--pc-muted); text-decoration: none; }
html body .pcrs .pcrs-comments .comment-content { margin-top: 8px; color: var(--pc-text); }
html body .pcrs .pcrs-comments .comment-content p { margin: 0 0 .5em; }
html body .pcrs .pcrs-comments .reply a {
	display: inline-flex; padding: 4px 14px; border-radius: 99px; border: 1px solid var(--pc-border);
	font-size: 12px; color: var(--pc-primary-dark); text-decoration: none; background: #fff;
}
html body .pcrs .pcrs-comments .reply a:hover { background: var(--pc-soft); }

/* 8. Archive filter — compact, one line, reset at the left */
html body .pcrs .akc-filter { max-width: 1040px; margin: 0 auto 32px; padding: 18px 20px; border-radius: 24px; }
html body .pcrs .akc-filter-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; }
html body .pcrs .akc-field { flex: 1 1 200px; margin: 0; }
html body .pcrs .akc-field-search { flex: 2 1 280px; }
html body .pcrs .akc-field input,
html body .pcrs .akc-field select {
	height: 50px; min-height: 50px; width: 100%; margin: 0; border: 1px solid var(--pc-border); border-radius: 16px;
	background-color: #fff; color: var(--pc-text); font-family: var(--pc-font); font-size: 14px; line-height: 1.5;
	padding: 0 16px; box-shadow: none; outline: none;
}
html body .pcrs .akc-field select { padding-inline-end: 42px; }
html body .pcrs .akc-input-wrap input { padding-inline-start: 46px; }
html body .pcrs .akc-input-wrap .pcrs-i { width: 18px; height: 18px; z-index: 1; }
html body .pcrs .akc-field input:focus,
html body .pcrs .akc-field select:focus { border-color: var(--pc-primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--pc-primary) 16%, transparent); }
html body .pcrs .akc-filter-actions { display: flex; gap: 10px; margin: 0; margin-inline-start: auto; flex: 0 0 auto; }
html body .pcrs .akc-filter-actions .pcrs-btn { min-width: 0; min-height: 50px; border-radius: 16px; padding: 10px 20px; }
html body .pcrs .akc-filter-actions .pcrs-i { width: 16px; height: 16px; }

@media (max-width: 760px) {
	html body .pcrs .akc-filter-actions { flex: 1 1 100%; margin: 0; }
	html body .pcrs .akc-filter-actions .pcrs-btn { flex: 1; }
	.pcrs-hero-teacher { align-self: stretch; width: 100%; }
	.pcrs-toast { bottom: 84px; }
}
@media (max-width: 560px) {
	html body .pcrs .pcrs-lesson-btn { gap: 10px; padding: 10px; }
	html body .pcrs .pcrs-lesson-num { display: none; }
	html body .pcrs .pcrs-lesson-btn .pcrs-badge { display: none; }
}

/* =====================================================================
   v1.3 — Right-aligned rhythm, no overflow, ordered mobile layout
   ===================================================================== */

/* Nothing may grow wider than its card (themes set content-box / fixed widths on buttons and video). */
html body .pcrs,
html body .pcrs *,
html body .pcrs *::before,
html body .pcrs *::after { box-sizing: border-box; }
html body .pcrs .pcrs-main,
html body .pcrs .pcrs-section,
html body .pcrs .pcrs-season,
html body .pcrs .pcrs-season-body,
html body .pcrs .pcrs-lessons,
html body .pcrs .pcrs-lesson,
html body .pcrs .pcrs-lesson-btn,
html body .pcrs .pcrs-hero-text,
html body .pcrs .pcrs-hero-media { min-width: 0; max-width: 100%; }
html body .pcrs .pcrs-hero-media { width: 100%; }
html body .pcrs .pcrs-media { width: 100%; max-width: 100%; }
html body .pcrs .pcrs-media video,
html body .pcrs .pcrs-media iframe,
html body .pcrs .pcrs-media img { width: 100%; max-width: 100%; height: 100%; margin: 0; }
html body .pcrs .pcrs-media.is-image img { height: auto; }
html body .pcrs .pcrs-season-body { overflow: hidden; }

/* Everything in the hero starts from the same right edge. */
html body .pcrs .pcrs-hero-text { align-items: flex-start; text-align: right; }
html body .pcrs .pcrs-hero-text > * { margin-top: 0; margin-bottom: 0; }
html body .pcrs .pcrs-hero-teacher { align-self: flex-start; width: min(100%, 420px); }
html body .pcrs .pcrs-hero-actions { justify-content: flex-start; }

/* Purchase box: right-aligned, values start on one vertical line. */
html body .pcrs .pcrs-box { text-align: right; gap: 14px; }
html body .pcrs .pcrs-box-head { align-items: flex-start; }
html body .pcrs .pcrs-price { flex-direction: column; align-items: flex-start; gap: 2px; }
html body .pcrs .pcrs-price-value { font-size: calc(var(--pc-fs-h3) + 4px); }
html body .pcrs .pcrs-price-note { margin: 0; }
html body .pcrs .pcrs-meta-list { margin: 0; padding: 4px 14px; }
html body .pcrs .pcrs-meta-list > div {
	display: grid; grid-template-columns: 120px minmax(0, 1fr); align-items: center; gap: 10px; justify-content: start;
}
html body .pcrs .pcrs-meta-list dt,
html body .pcrs .pcrs-meta-list dd {
	margin: 0; padding: 0; text-align: right; text-decoration: none; border: 0; font-style: normal; line-height: 1.7;
}
html body .pcrs .pcrs-meta-list dt { justify-content: flex-start; font-weight: 400; color: var(--pc-muted); }
html body .pcrs .pcrs-meta-list dd { font-weight: 700; color: var(--pc-text); }
html body .pcrs .pcrs-features li { margin: 0; text-align: right; }

/* Mobile: video → purchase box → curriculum → other sections → teacher → comments */
@media (max-width: 860px) {
	html body .pcrs .pcrs-layout { align-items: stretch; }
	html body .pcrs .pcrs-layout > *,
	html body .pcrs .pcrs-main > * { width: 100%; max-width: 100%; align-self: stretch; }
	html body .pcrs.has-mobile-order .pcrs-layout { display: flex; flex-direction: column; gap: var(--pc-gap); }
	html body .pcrs.has-mobile-order .pcrs-main { display: contents; }
	html body .pcrs.has-mobile-order .pcrs-layout > * ,
	html body .pcrs.has-mobile-order .pcrs-main > * { order: 3; }
	html body .pcrs.has-mobile-order .pcrs-main > .pcrs-hero { order: 0; }
	html body .pcrs.has-mobile-order .pcrs-aside { order: 1; position: static; width: 100%; }
	html body .pcrs.has-mobile-order .pcrs-main > .pcrs-curriculum { order: 2; }
	html body .pcrs.has-mobile-order .pcrs-main > .pcrs-teacher { order: 8; }
	html body .pcrs.has-mobile-order .pcrs-main > .pcrs-comments { order: 9; }
	html body .pcrs .pcrs-meta-list > div { grid-template-columns: 110px minmax(0, 1fr); }

	/* Teacher card: photo beside text, right-aligned, full width. */
	html body .pcrs .pcrs-teacher-card { flex-direction: row; align-items: center; text-align: right; gap: 14px; padding: 16px; }
	html body .pcrs .pcrs-avatar { width: 72px !important; height: 72px !important; }
	html body .pcrs .pcrs-teacher-card > div { min-width: 0; flex: 1; }
	/* CTA: comfortable button width on phones. */
	html body .pcrs .pcrs-cta .pcrs-btn { width: 100%; }
}
