/* Sermon archive — loaded only on /sermons/. Rebuilt UI (cfc-sx). */

body.cfc-page-sermons .cfc-main > .page-width {
	max-width: 76rem;
	margin-inline: auto;
}

body.cfc-page-sermons .cfc-page__header {
	margin: 0 auto 1rem;
	max-width: 76rem;
	text-align: center;
}

body.cfc-page-sermons .cfc-page__title {
	font-size: clamp(2rem, 4vw, 2.75rem);
}

body.cfc-page-sermons .cfc-page__title a {
	color: inherit;
	text-decoration: none;
}

body.cfc-page-sermons .cfc-page__title a:hover,
body.cfc-page-sermons .cfc-page__title a:focus-visible {
	color: var(--cfc-accent);
}

body.cfc-page-sermons .cfc-page__body {
	grid-template-columns: minmax(0, 1fr);
	max-width: none;
	justify-items: center;
}

body.cfc-page-sermons .cfc-page .entry-content {
	width: 100%;
	max-width: 76rem;
}

body.cfc-page-sermons .cfc-page .entry-content > p:first-child {
	display: none;
}

/* Make room for the persistent player. */
body.cfc-sx-has-player {
	padding-bottom: 6.5rem;
}

.cfc-sx {
	--sx-radius: 0.85rem;
	--sx-radius-sm: 0.55rem;
	--sx-gap: 1rem;
	--sx-card-w: 15.5rem;
	--sx-surface: #fff;
	--sx-line: rgba(0, 0, 0, 0.08);
	--sx-line-strong: rgba(0, 0, 0, 0.14);
	--sx-muted: var(--cfc-text-subtle, #666);
	--sx-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 8px 24px rgba(0, 0, 0, 0.06);
	width: 100%;
	max-width: 76rem;
	margin-inline: auto;
	color: var(--cfc-text-body);
	font-family: var(--cfc-font-body);
}

/* Theme .entry-content a styles — keep sermon UI clean (no underlines / forced accent). */
body.cfc-page-sermons .entry-content .cfc-sx a {
	text-decoration: none;
}

body.cfc-page-sermons .entry-content .cfc-sx a:hover,
body.cfc-page-sermons .entry-content .cfc-sx a:focus-visible {
	text-decoration: none;
}

body.cfc-page-sermons .entry-content .cfc-sx a.cfc-sx__all-link,
body.cfc-page-sermons .entry-content .cfc-sx a.cfc-sx__all-link:hover,
body.cfc-page-sermons .entry-content .cfc-sx a.cfc-sx__all-link:focus-visible {
	text-decoration: none;
}

body.cfc-page-sermons .entry-content .cfc-sx a.cfc-sx__all-link .cfc-sx__all-link-label {
	text-decoration: underline;
}

body.cfc-page-sermons .entry-content .cfc-sx a.cfc-sx__card-body,
body.cfc-page-sermons .entry-content .cfc-sx a.cfc-sx__series-card,
body.cfc-page-sermons .entry-content .cfc-sx a.cfc-sx__book,
body.cfc-page-sermons .entry-content .cfc-sx a.cfc-sx__back,
body.cfc-page-sermons .entry-content .cfc-sx a.cfc-sx__suggest-item,
body.cfc-page-sermons .entry-content .cfc-sx a.cfc-sx__nav-link,
body.cfc-page-sermons .entry-content .cfc-sx a.cfc-sx__page-btn,
body.cfc-page-sermons .entry-content .cfc-sx a.cfc-sx__link,
body.cfc-page-sermons .entry-content .cfc-sx a.cfc-sx__detail-series,
body.cfc-page-sermons .entry-content .cfc-sx a.cfc-sx__active-clear,
body.cfc-page-sermons .entry-content .cfc-sx a.cfc-sx__facet,
body.cfc-page-sermons .entry-content .cfc-sx a.cfc-sx__edit,
body.cfc-page-sermons .entry-content .cfc-sx .cfc-sx__rail-title a {
	color: inherit;
}

body.cfc-page-sermons .entry-content .cfc-sx a.cfc-sx__row-title {
	color: var(--cfc-text-heading);
}

body.cfc-page-sermons .entry-content .cfc-sx a.cfc-sx__row-title:hover,
body.cfc-page-sermons .entry-content .cfc-sx a.cfc-sx__back:hover,
body.cfc-page-sermons .entry-content .cfc-sx a.cfc-sx__link:hover,
body.cfc-page-sermons .entry-content .cfc-sx a.cfc-sx__active-clear:hover,
body.cfc-page-sermons .entry-content .cfc-sx a.cfc-sx__facet:hover {
	color: var(--cfc-accent);
}

.cfc-sx *,
.cfc-sx *::before,
.cfc-sx *::after {
	box-sizing: border-box;
}

/* ---------- Search bar ---------- */

.cfc-sx__topbar {
	position: sticky;
	top: var(--cfc-header-height, 0);
	z-index: 30;
	padding: 0.5rem 0 1.25rem;
	background: linear-gradient(var(--cfc-bg, #f8f8f8) 78%, rgba(248, 248, 248, 0));
}

.cfc-sx__ai-note {
	margin: 0 0 0.65rem;
	max-width: 44rem;
	font-size: 0.88rem;
	line-height: 1.45;
	color: var(--sx-muted);
}

.cfc-sx__ai-note strong {
	color: var(--cfc-text);
	font-weight: 700;
}

.cfc-sx__search-tips {
	margin: 0 0 0.85rem;
	font-size: 0.9rem;
	color: var(--sx-muted);
}

.cfc-sx__search-tips summary {
	cursor: pointer;
	list-style: none;
	display: inline-block;
	padding: 0.2rem 0.55rem;
	border-radius: 0.35rem;
	background: rgba(0, 0, 0, 0.045);
	color: var(--cfc-text-body, var(--cfc-text));
	font-style: italic;
	text-decoration: underline;
	text-decoration-color: rgba(0, 0, 0, 0.28);
	text-underline-offset: 0.18em;
}

.cfc-sx__search-tips summary:hover,
.cfc-sx__search-tips summary:focus-visible {
	color: var(--cfc-accent);
	background: rgba(204, 85, 0, 0.08);
	text-decoration-color: var(--cfc-accent);
	outline: none;
}

.cfc-sx__search-tips summary::-webkit-details-marker {
	display: none;
}

.cfc-sx__search-tips[open] summary {
	color: var(--cfc-accent);
	background: rgba(204, 85, 0, 0.1);
	text-decoration-color: var(--cfc-accent);
}

.cfc-sx__search-tips p {
	margin: 0.45rem 0 0;
	max-width: 40rem;
	line-height: 1.45;
	color: var(--sx-muted);
}

.cfc-sx__search-tips code {
	display: inline-block;
	margin-top: 0.15rem;
	padding: 0.15rem 0.4rem;
	border-radius: 0.3rem;
	background: rgba(0, 0, 0, 0.05);
	font-size: 0.86em;
	color: var(--cfc-text-body, var(--cfc-text));
	word-break: break-word;
}

.cfc-sx__searchbar {
	position: relative;
	display: flex;
	align-items: center;
	gap: 0.75rem;
	background: var(--sx-surface);
	border: 1px solid var(--sx-line-strong);
	border-radius: 999px;
	padding: 0.85rem 1.25rem;
	box-shadow: var(--sx-shadow);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.cfc-sx__searchbar:focus-within {
	border-color: var(--cfc-accent);
	box-shadow: 0 0 0 3px rgba(204, 85, 0, 0.15);
}

.cfc-sx__search-icon {
	width: 1.35rem;
	height: 1.35rem;
	flex: none;
	background: var(--sx-muted);
	-webkit-mask: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M21 20l-5.6-5.6a7 7 0 10-1.4 1.4L20 21zM5 10a5 5 0 1110 0 5 5 0 01-10 0z'/%3E%3C/svg%3E");
	mask: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M21 20l-5.6-5.6a7 7 0 10-1.4 1.4L20 21zM5 10a5 5 0 1110 0 5 5 0 01-10 0z'/%3E%3C/svg%3E");
}

.cfc-sx__search-input {
	flex: 1;
	border: none;
	outline: none;
	background: transparent;
	font-size: clamp(1.05rem, 2.2vw, 1.2rem);
	color: var(--cfc-text);
	min-width: 0;
}

.cfc-sx__search-clear {
	border: none;
	background: var(--sx-line);
	color: var(--cfc-text);
	width: 1.6rem;
	height: 1.6rem;
	border-radius: 50%;
	font-size: 1.1rem;
	line-height: 1;
	cursor: pointer;
	flex: none;
}

.cfc-sx__search-clear:hover {
	background: var(--sx-line-strong);
}

.cfc-sx__suggest {
	position: absolute;
	top: calc(100% + 0.5rem);
	left: 0;
	right: 0;
	background: var(--sx-surface);
	border: 1px solid var(--sx-line-strong);
	border-radius: var(--sx-radius);
	box-shadow: var(--sx-shadow);
	overflow: hidden;
	z-index: 40;
}

.cfc-sx__suggest-item {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	padding: 0.65rem 1rem;
	text-decoration: none;
	color: var(--cfc-text);
	border-bottom: 1px solid var(--sx-line);
	width: 100%;
	text-align: left;
	background: transparent;
	border-left: none;
	border-right: none;
	border-top: none;
	font: inherit;
	cursor: pointer;
}

.cfc-sx__suggest-item:last-child {
	border-bottom: none;
}

.cfc-sx__suggest-item:hover {
	background: rgba(204, 85, 0, 0.06);
}

.cfc-sx__suggest-title {
	font-weight: 600;
}

.cfc-sx__suggest-meta {
	font-size: var(--cfc-text-xs);
	color: var(--sx-muted);
}

/* ---------- View / loading ---------- */

.cfc-sx__view {
	outline: none;
	min-height: 40vh;
}

.cfc-sx__booting {
	display: flex;
	justify-content: center;
	padding: 4rem 0;
}

.cfc-sx__spinner {
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 50%;
	border: 3px solid var(--sx-line-strong);
	border-top-color: var(--cfc-accent);
	animation: cfc-sx-spin 0.8s linear infinite;
}

@keyframes cfc-sx-spin {
	to {
		transform: rotate(360deg);
	}
}

.cfc-sx__dot {
	margin: 0 0.4rem;
	opacity: 0.5;
}

/* ---------- Home ---------- */

.cfc-sx__home {
	padding-top: 0.25rem;
}

.cfc-sx__all-wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.85rem;
	margin: 0.5rem 0 2rem;
	max-width: none;
	width: 100%;
	text-align: center;
}

body.cfc-page-sermons .entry-content .cfc-sx .cfc-sx__all-wrap {
	max-width: none;
}

.cfc-sx__all-link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--cfc-font-heading);
	font-weight: 700;
	font-size: clamp(1.25rem, 2.8vw, 1.55rem);
	letter-spacing: var(--cfc-tracking-heading);
	color: var(--cfc-accent);
	text-decoration: none;
}

.cfc-sx__all-link-label {
	text-decoration: underline;
	text-underline-offset: 0.18em;
}

.cfc-sx__all-link-arrow {
	text-decoration: none;
}

.cfc-sx__all-link:hover,
.cfc-sx__all-link:focus-visible {
	text-decoration: none;
	outline: none;
}

.cfc-sx__all-link:hover .cfc-sx__all-link-label,
.cfc-sx__all-link:focus-visible .cfc-sx__all-link-label {
	text-decoration: underline;
}

.cfc-sx__browse {
	padding-top: 0.25rem;
}

.cfc-sx__browse .cfc-sx__back {
	display: inline-block;
	margin-bottom: 1rem;
}

/* ---------- Rails ---------- */

.cfc-sx__rail {
	margin-bottom: 2.25rem;
}

.cfc-sx__rail-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 0.85rem;
}

.cfc-sx__rail-title,
.cfc-sx__page-title,
.cfc-sx__section-title {
	font-family: var(--cfc-font-heading);
	font-weight: 700;
	color: var(--cfc-text-heading);
	letter-spacing: var(--cfc-tracking-heading);
	margin: 0;
}

.cfc-sx__rail-title {
	font-size: clamp(1.15rem, 2.5vw, 1.45rem);
}

.cfc-sx__rail-title a {
	color: inherit;
	text-decoration: none;
}

.cfc-sx__rail-title a:hover,
.cfc-sx__rail-title a:focus-visible {
	color: var(--cfc-accent);
}

.cfc-sx__page-title {
	font-size: clamp(1.6rem, 4vw, 2.25rem);
	margin: 0.5rem 0 1.5rem;
}

.cfc-sx__rail-more {
	font-size: var(--cfc-text-sm);
	color: var(--cfc-accent);
	text-decoration: none;
	font-weight: 600;
	white-space: nowrap;
}

.cfc-sx__rail-more:hover {
	color: var(--cfc-accent-hover, var(--cfc-accent));
	opacity: 0.85;
}

.cfc-sx__rail-track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: var(--sx-card-w);
	gap: var(--sx-gap);
	overflow-x: auto;
	scroll-snap-type: x proximity;
	padding-bottom: 0.5rem;
	scrollbar-width: thin;
}

.cfc-sx__rail-track > * {
	scroll-snap-align: start;
}

/* ---------- Cards ---------- */

.cfc-sx__card {
	position: relative;
	background: var(--sx-surface);
	border: 1px solid var(--sx-line);
	border-radius: var(--sx-radius);
	padding: 1rem;
	box-shadow: var(--sx-shadow);
	transition: transform 0.12s ease, box-shadow 0.12s ease;
	display: flex;
	flex-direction: column;
	min-height: 7.5rem;
}

.cfc-sx__card:hover {
	transform: translateY(-2px);
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.07), 0 14px 30px rgba(0, 0, 0, 0.09);
}

.cfc-sx__card-body {
	text-decoration: none;
	color: inherit;
	display: block;
}

.cfc-sx__card-series {
	display: block;
	font-size: var(--cfc-text-xs);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--cfc-accent);
	margin-bottom: 0.35rem;
}

.cfc-sx__card-title {
	font-size: var(--cfc-text-lg);
	font-weight: 650;
	line-height: var(--cfc-leading-snug);
	color: var(--cfc-text-heading);
	margin: 0 0 0.5rem;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.cfc-sx__card-meta {
	font-size: var(--cfc-text-xs);
	color: var(--sx-muted);
	margin: auto 0 0;
}

.cfc-sx__card-play,
.cfc-sx__row-play {
	position: absolute;
	border: none;
	cursor: pointer;
	background: var(--cfc-accent);
	border-radius: 50%;
	display: grid;
	place-items: center;
	box-shadow: 0 4px 10px rgba(204, 85, 0, 0.35);
	transition: transform 0.12s ease, background 0.12s ease;
}

.cfc-sx__card-play {
	top: 0.75rem;
	right: 0.75rem;
	width: 2.1rem;
	height: 2.1rem;
	opacity: 0;
}

.cfc-sx__card:hover .cfc-sx__card-play,
.cfc-sx__card-play:focus-visible {
	opacity: 1;
}

.cfc-sx__card-play::before,
.cfc-sx__row-play::before,
.cfc-sx__listen-icon::before {
	content: "";
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 0.42rem 0 0.42rem 0.7rem;
	border-color: transparent transparent transparent #fff;
	margin-left: 0.12rem;
}

.cfc-sx__card-play:hover,
.cfc-sx__row-play:hover {
	background: var(--cfc-accent-hover);
	transform: scale(1.05);
}

.cfc-sx__continue {
	position: relative;
}

.cfc-sx__progress {
	display: block;
	height: 4px;
	border-radius: 2px;
	background: var(--sx-line);
	margin-top: 0.4rem;
	overflow: hidden;
}

.cfc-sx__progress > span {
	display: block;
	height: 100%;
	background: var(--cfc-accent);
}

/* ---------- Series cards / chips / books ---------- */

.cfc-sx__series-card {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
	background: var(--sx-surface);
	border: 1px solid var(--sx-line);
	border-radius: var(--sx-radius);
	overflow: hidden;
	box-shadow: var(--sx-shadow);
	transition: transform 0.12s ease;
}

.cfc-sx__series-card:hover {
	transform: translateY(-2px);
}

.cfc-sx__series-art {
	display: block;
	aspect-ratio: 16 / 9;
	background: linear-gradient(135deg, var(--cfc-accent), #7a3300);
	background-size: cover;
	background-position: center;
}

.cfc-sx__series-name {
	font-weight: 650;
	color: var(--cfc-text-heading);
	padding: 0.7rem 0.8rem 0.15rem;
}

.cfc-sx__series-count {
	font-size: var(--cfc-text-xs);
	color: var(--sx-muted);
	padding: 0 0.8rem 0.8rem;
}

.cfc-sx__series-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
	gap: var(--sx-gap);
}

.cfc-sx__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.cfc-sx__chip {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.4rem 0.85rem;
	border-radius: 999px;
	border: 1px solid var(--sx-line-strong);
	background: var(--sx-surface);
	color: var(--cfc-text-body);
	text-decoration: none;
	font-size: var(--cfc-text-sm);
	font-weight: 500;
	transition: all 0.12s ease;
}

.cfc-sx__chip:hover {
	border-color: var(--cfc-accent);
	color: var(--cfc-accent);
}

.cfc-sx__chip--active {
	background: var(--cfc-accent);
	border-color: var(--cfc-accent);
	color: #fff;
}

.cfc-sx__chip-count {
	font-size: var(--cfc-text-xs);
	opacity: 0.7;
}

.cfc-sx__books {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
	gap: 0.6rem;
}

.cfc-sx__book {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.6rem 0.85rem;
	border: 1px solid var(--sx-line);
	border-radius: var(--sx-radius-sm);
	background: var(--sx-surface);
	text-decoration: none;
	color: var(--cfc-text-body);
	font-size: var(--cfc-text-sm);
	font-weight: 500;
	transition: all 0.12s ease;
}

.cfc-sx__book:hover {
	border-color: var(--cfc-accent);
	color: var(--cfc-accent);
}

.cfc-sx__book-count {
	font-size: var(--cfc-text-xs);
	color: var(--sx-muted);
}

/* ---------- Back link ---------- */

.cfc-sx__back {
	display: inline-block;
	margin-bottom: 1rem;
	color: var(--sx-muted);
	text-decoration: none;
	font-size: var(--cfc-text-sm);
	font-weight: 600;
}

.cfc-sx__back:hover {
	color: var(--cfc-accent);
}

/* ---------- Results ---------- */

.cfc-sx__results-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin: 0.5rem 0 1.25rem;
}

.cfc-sx__count {
	margin: 0;
	font-weight: 650;
	color: var(--cfc-text-heading);
}

.cfc-sx__sort select {
	padding: 0.45rem 0.7rem;
	border-radius: var(--sx-radius-sm);
	border: 1px solid var(--sx-line-strong);
	background: var(--sx-surface);
	font: inherit;
	color: var(--cfc-text);
}

.cfc-sx__active {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
	margin-bottom: 0.5rem;
}

.cfc-sx__active-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.3rem 0.7rem;
	border-radius: 999px;
	background: rgba(204, 85, 0, 0.1);
	color: var(--cfc-accent);
	text-decoration: none;
	font-size: var(--cfc-text-sm);
	font-weight: 600;
}

.cfc-sx__active-chip:hover {
	background: rgba(204, 85, 0, 0.2);
}

.cfc-sx__active-clear {
	font-size: var(--cfc-text-sm);
	color: var(--sx-muted);
	text-decoration: none;
}

.cfc-sx__active-clear:hover {
	color: var(--cfc-accent);
}

.cfc-sx__results-body {
	display: grid;
	grid-template-columns: 16rem minmax(0, 1fr);
	gap: 2rem;
	align-items: start;
}

.cfc-sx__facet-toggle {
	display: none;
}

.cfc-sx__sidebar {
	position: sticky;
	top: calc(var(--cfc-header-height, 0px) + 5rem);
	max-height: calc(100dvh - var(--cfc-header-height, 0px) - 6.5rem);
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-gutter: stable;
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	padding-right: 0.25rem;
}

.cfc-sx__facet-group {
	min-width: 0;
}

.cfc-sx__facet-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	width: 100%;
	margin: 0 0 0.5rem;
	padding: 0.2rem 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	font-size: var(--cfc-text-xs);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--sx-muted);
	font-family: var(--cfc-font-heading);
	text-align: left;
}

.cfc-sx__facet-title:hover {
	color: var(--cfc-text-body);
}

.cfc-sx__facet-chevron {
	flex-shrink: 0;
	width: 0.45rem;
	height: 0.45rem;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg);
	transition: transform 0.15s ease;
	opacity: 0.7;
}

.cfc-sx__facet-group.is-collapsed .cfc-sx__facet-title {
	margin-bottom: 0;
}

.cfc-sx__facet-group.is-collapsed .cfc-sx__facet-chevron {
	transform: rotate(-45deg);
}

.cfc-sx__facet-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
}

.cfc-sx__facet-list[hidden] {
	display: none;
}

.cfc-sx__facet {
	display: flex;
	justify-content: space-between;
	gap: 0.5rem;
	padding: 0.35rem 0.55rem;
	border-radius: var(--sx-radius-sm);
	text-decoration: none;
	color: var(--cfc-text-body);
	font-size: var(--cfc-text-sm);
}

.cfc-sx__facet:hover {
	background: rgba(0, 0, 0, 0.04);
}

.cfc-sx__facet--active {
	background: rgba(204, 85, 0, 0.1);
	color: var(--cfc-accent);
	font-weight: 600;
}

.cfc-sx__facet-count {
	color: var(--sx-muted);
	font-variant-numeric: tabular-nums;
}

.cfc-sx__facet--active .cfc-sx__facet-count {
	color: inherit;
}

.cfc-sx__list {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

/* ---------- Row ---------- */

.cfc-sx__row {
	position: relative;
	display: flex;
	gap: 0.85rem;
	align-items: flex-start;
	background: var(--sx-surface);
	border: 1px solid var(--sx-line);
	border-radius: var(--sx-radius);
	padding: 0.9rem 1rem;
	transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.cfc-sx__row:hover {
	border-color: var(--sx-line-strong);
	box-shadow: var(--sx-shadow);
}

.cfc-sx__row-play {
	position: static;
	flex: none;
	width: 2.5rem;
	height: 2.5rem;
	margin-top: 0.1rem;
}

.cfc-sx__row-main {
	min-width: 0;
	flex: 1;
}

.cfc-sx__row-title {
	display: inline-block;
	font-size: var(--cfc-text-lg);
	font-weight: 650;
	color: var(--cfc-text-heading);
	text-decoration: none;
	line-height: var(--cfc-leading-snug);
}

.cfc-sx__row-title:hover {
	color: var(--cfc-accent);
}

.cfc-sx__row-meta {
	margin: 0.2rem 0 0.4rem;
	font-size: var(--cfc-text-xs);
	color: var(--sx-muted);
}

.cfc-sx__row-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.cfc-sx__tag {
	display: inline-block;
	padding: 0.15rem 0.55rem;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.05);
	color: var(--sx-muted);
	font-size: var(--cfc-text-xs);
	text-decoration: none;
}

a.cfc-sx__tag:hover {
	color: var(--cfc-accent);
	background: rgba(204, 85, 0, 0.1);
}

.cfc-sx__tag--scripture {
	background: rgba(204, 85, 0, 0.1);
	color: var(--cfc-accent);
	font-weight: 600;
}

.cfc-sx__row-snippet {
	margin: 0.5rem 0 0;
	font-size: var(--cfc-text-sm);
	color: var(--cfc-text-body);
	line-height: var(--cfc-leading-snug);
}

.cfc-sx__row-snippet mark,
.cfc-sx__seg-text mark {
	background: rgba(204, 85, 0, 0.22);
	color: inherit;
	padding: 0 0.1em;
	border-radius: 3px;
}

/* ---------- Empty / pager ---------- */

.cfc-sx__empty {
	text-align: center;
	padding: 3rem 1rem;
	border: 1px dashed var(--sx-line-strong);
	border-radius: var(--sx-radius);
}

.cfc-sx__empty-title {
	font-weight: 650;
	font-size: var(--cfc-text-lg);
	color: var(--cfc-text-heading);
	margin: 0 0 0.4rem;
}

.cfc-sx__empty-hint {
	margin: 0;
	color: var(--sx-muted);
}

.cfc-sx__pager {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	margin-top: 1.5rem;
}

.cfc-sx__page-btn {
	padding: 0.5rem 1rem;
	border-radius: var(--sx-radius-sm);
	border: 1px solid var(--sx-line-strong);
	text-decoration: none;
	color: var(--cfc-text);
	font-weight: 600;
	font-size: var(--cfc-text-sm);
}

.cfc-sx__page-btn:hover {
	border-color: var(--cfc-accent);
	color: var(--cfc-accent);
}

.cfc-sx__page-btn.is-disabled {
	opacity: 0.4;
	pointer-events: none;
}

.cfc-sx__page-status {
	font-size: var(--cfc-text-sm);
	color: var(--sx-muted);
}

/* ---------- Detail ---------- */

.cfc-sx__detail-hero {
	background: var(--sx-surface);
	border: 1px solid var(--sx-line);
	border-radius: var(--sx-radius);
	padding: clamp(1.25rem, 4vw, 2.25rem);
	box-shadow: var(--sx-shadow);
	margin-bottom: 1.75rem;
}

.cfc-sx__detail-series {
	display: inline-block;
	font-size: var(--cfc-text-xs);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--cfc-accent);
	text-decoration: none;
	margin-bottom: 0.5rem;
}

.cfc-sx__detail-title {
	font-family: var(--cfc-font-heading);
	font-size: clamp(1.7rem, 4.5vw, 2.6rem);
	font-weight: 750;
	line-height: var(--cfc-leading-heading);
	color: var(--cfc-text-heading);
	margin: 0 0 0.6rem;
}

.cfc-sx__detail-meta {
	color: var(--sx-muted);
	margin: 0 0 1.25rem;
}

.cfc-sx__link {
	color: var(--cfc-text-body);
	text-decoration: none;
	font-weight: 600;
}

.cfc-sx__link:hover {
	color: var(--cfc-accent);
}

.cfc-sx__detail-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.7rem;
	align-items: center;
}

.cfc-sx__listen {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.7rem 1.4rem;
	border: none;
	border-radius: 999px;
	background: var(--cfc-accent);
	color: #fff;
	font-weight: 650;
	font-size: var(--cfc-text-base);
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(204, 85, 0, 0.3);
}

.cfc-sx__listen:hover {
	background: var(--cfc-accent-hover);
}

.cfc-sx__listen-icon::before {
	margin: 0;
}

.cfc-sx__share,
.cfc-sx__yt,
.cfc-sx__edit {
	display: inline-flex;
	align-items: center;
	padding: 0.65rem 1.1rem;
	border-radius: 999px;
	border: 1px solid var(--sx-line-strong);
	background: var(--sx-surface);
	color: var(--cfc-text-body);
	font-weight: 600;
	font-size: var(--cfc-text-sm);
	cursor: pointer;
	text-decoration: none;
}

.cfc-sx__share:hover,
.cfc-sx__yt:hover,
.cfc-sx__edit:hover {
	border-color: var(--cfc-accent);
	color: var(--cfc-accent);
}

.cfc-sx__detail-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	margin-top: 1.25rem;
}

.cfc-sx__detail-summary {
	margin: 1.25rem 0 0;
	font-size: var(--cfc-text-lg);
	line-height: var(--cfc-leading-body);
	color: var(--cfc-text-body);
}

.cfc-sx__seriesnav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
	margin-bottom: 1.75rem;
}

.cfc-sx__nav-link {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	padding: 0.85rem 1rem;
	border: 1px solid var(--sx-line);
	border-radius: var(--sx-radius);
	background: var(--sx-surface);
	text-decoration: none;
	color: var(--cfc-text-body);
}

.cfc-sx__nav-link:hover {
	border-color: var(--cfc-accent);
}

.cfc-sx__nav-link--next {
	text-align: right;
}

.cfc-sx__nav-dir {
	font-size: var(--cfc-text-xs);
	color: var(--cfc-accent);
	font-weight: 600;
}

.cfc-sx__nav-title {
	font-weight: 600;
	color: var(--cfc-text-heading);
}

.cfc-sx__section-title {
	font-size: clamp(1.1rem, 2.5vw, 1.35rem);
	margin-bottom: 0.85rem;
}

/* ---------- Transcript ---------- */

.cfc-sx__transcript {
	background: var(--sx-surface);
	border: 1px solid var(--sx-line);
	border-radius: var(--sx-radius);
	padding: clamp(1rem, 3vw, 1.75rem);
	margin-top: 1.75rem;
}

.cfc-sx__transcript-head {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1rem;
}

.cfc-sx__transcript-title {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.45rem 0.65rem;
	min-width: 0;
}

.cfc-sx__transcript-title .cfc-sx__section-title {
	margin: 0;
}

.cfc-sx__transcript-ai {
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--cfc-accent);
	line-height: 1.2;
}

.cfc-sx__tsearch {
	flex: 1;
	min-width: 12rem;
	max-width: 22rem;
	padding: 0.5rem 0.9rem;
	border: 1px solid var(--sx-line-strong);
	border-radius: 999px;
	font: inherit;
}

.cfc-sx__tsearch:focus {
	outline: none;
	border-color: var(--cfc-accent);
}

.cfc-sx__tmatches {
	margin-bottom: 1rem;
	padding: 0.75rem;
	border-radius: var(--sx-radius-sm);
	background: rgba(0, 0, 0, 0.03);
	max-height: 16rem;
	overflow-y: auto;
}

.cfc-sx__tmatches-count {
	margin: 0 0 0.5rem;
	font-size: var(--cfc-text-xs);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--cfc-accent);
}

.cfc-sx__tmatches-empty {
	margin: 0;
	color: var(--sx-muted);
	font-size: var(--cfc-text-sm);
}

.cfc-sx__segments {
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
	max-height: 32rem;
	overflow-y: auto;
}

.cfc-sx__seg,
.cfc-sx__tmatch {
	display: flex;
	gap: 0.75rem;
	width: 100%;
	text-align: left;
	border: none;
	background: transparent;
	padding: 0.4rem 0.5rem;
	border-radius: var(--sx-radius-sm);
	cursor: pointer;
	color: var(--cfc-text-body);
	font: inherit;
	line-height: var(--cfc-leading-snug);
}

.cfc-sx__seg:hover,
.cfc-sx__tmatch:hover {
	background: rgba(204, 85, 0, 0.07);
}

.cfc-sx__seg.is-active {
	background: rgba(204, 85, 0, 0.12);
}

.cfc-sx__seg.is-active .cfc-sx__seg-text {
	color: var(--cfc-text-heading);
	font-weight: 500;
}

.cfc-sx__seg-time {
	flex: none;
	width: 3.25rem;
	color: var(--cfc-accent);
	font-variant-numeric: tabular-nums;
	font-size: var(--cfc-text-xs);
	padding-top: 0.15rem;
}

/* ---------- Persistent player ---------- */

.cfc-sx__player {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 60;
	background: rgba(26, 22, 19, 0.97);
	backdrop-filter: blur(8px);
	color: #fff;
	box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.25);
}

.cfc-sx__player[hidden] {
	display: none;
}

.cfc-sx__player-track {
	padding: 0 0.5rem;
}

.cfc-sx__player-scrub {
	width: 100%;
	height: 4px;
	-webkit-appearance: none;
	appearance: none;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 2px;
	margin: 0;
	cursor: pointer;
}

.cfc-sx__player-scrub::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--cfc-accent);
	border: 2px solid #fff;
	margin-top: -1px;
}

.cfc-sx__player-scrub::-moz-range-thumb {
	width: 14px;
	height: 14px;
	border: 2px solid #fff;
	border-radius: 50%;
	background: var(--cfc-accent);
}

.cfc-sx__player-body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	align-items: center;
	gap: 1rem;
	padding: 0.6rem clamp(0.75rem, 3vw, 1.5rem) 0.75rem;
}

.cfc-sx__player-now {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	min-width: 0;
}

.cfc-sx__player-art {
	flex: none;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 0.5rem;
	border: none;
	background: linear-gradient(135deg, var(--cfc-accent), #7a3300);
	cursor: pointer;
	display: grid;
	place-items: center;
}

.cfc-sx__player-art-icon {
	width: 1.1rem;
	height: 1.1rem;
	background: rgba(255, 255, 255, 0.9);
	-webkit-mask: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 3v10.55A4 4 0 1014 17V7h4V3z'/%3E%3C/svg%3E");
	mask: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 3v10.55A4 4 0 1014 17V7h4V3z'/%3E%3C/svg%3E");
}

.cfc-sx__player-meta {
	min-width: 0;
}

.cfc-sx__player-title {
	margin: 0;
	font-weight: 650;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	cursor: pointer;
}

.cfc-sx__player-title:hover {
	color: var(--cfc-accent);
}

.cfc-sx__player-sub {
	margin: 0.1rem 0 0;
	font-size: var(--cfc-text-xs);
	color: rgba(255, 255, 255, 0.65);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.cfc-sx__player-controls {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.cfc-sx__pbtn {
	border: none;
	background: transparent;
	color: #fff;
	cursor: pointer;
	display: grid;
	place-items: center;
	border-radius: 50%;
}

.cfc-sx__pbtn--play {
	width: 3rem;
	height: 3rem;
	background: #fff;
}

.cfc-sx__pbtn--play::before {
	content: "";
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 0.55rem 0 0.55rem 0.85rem;
	border-color: transparent transparent transparent var(--cfc-text);
	margin-left: 0.18rem;
}

.cfc-sx__player[data-playing="1"] .cfc-sx__pbtn--play::before {
	width: 0.85rem;
	height: 0.95rem;
	border: none;
	margin: 0;
	background: var(--cfc-text);
	-webkit-mask: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M6 4h4v16H6zM14 4h4v16h-4z'/%3E%3C/svg%3E");
	mask: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M6 4h4v16H6zM14 4h4v16h-4z'/%3E%3C/svg%3E");
}

.cfc-sx__pbtn--back,
.cfc-sx__pbtn--fwd {
	width: 2.4rem;
	height: 2.4rem;
	font-size: 0.65rem;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.85);
	position: relative;
}

.cfc-sx__pbtn--back::after {
	content: "15";
	position: absolute;
}

.cfc-sx__pbtn--fwd::after {
	content: "15";
	position: absolute;
}

.cfc-sx__pbtn--back::before,
.cfc-sx__pbtn--fwd::before {
	content: "";
	position: absolute;
	inset: 0.3rem;
	background: rgba(255, 255, 255, 0.85);
	-webkit-mask: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 5V1L7 6l5 5V7a6 6 0 11-6 6H4a8 8 0 108-8z'/%3E%3C/svg%3E");
	mask: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 5V1L7 6l5 5V7a6 6 0 11-6 6H4a8 8 0 108-8z'/%3E%3C/svg%3E");
}

.cfc-sx__pbtn--fwd::before {
	transform: scaleX(-1);
}

.cfc-sx__pbtn--back:hover,
.cfc-sx__pbtn--fwd:hover {
	background: rgba(255, 255, 255, 0.1);
}

.cfc-sx__player-extra {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.85rem;
}

.cfc-sx__player-time {
	font-size: var(--cfc-text-xs);
	color: rgba(255, 255, 255, 0.7);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.cfc-sx__player-speed select {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 0.4rem;
	padding: 0.2rem 0.4rem;
	font-size: var(--cfc-text-xs);
}

.cfc-sx__pbtn--close {
	width: 2rem;
	height: 2rem;
	font-size: 1.3rem;
	color: rgba(255, 255, 255, 0.7);
	line-height: 1;
}

.cfc-sx__pbtn--close::before {
	content: "\00d7";
}

.cfc-sx__pbtn--close:hover {
	color: #fff;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
	.cfc-sx__results-body {
		grid-template-columns: minmax(0, 1fr);
	}

	.cfc-sx__facet-toggle {
		display: inline-block;
		margin-bottom: 1rem;
		padding: 0.5rem 1rem;
		border-radius: 999px;
		border: 1px solid var(--sx-line-strong);
		background: var(--sx-surface);
		font-weight: 600;
		cursor: pointer;
	}

	.cfc-sx__sidebar {
		position: static;
		display: none;
		max-height: min(50vh, 24rem);
		margin-bottom: 1.5rem;
	}

	.cfc-sx__sidebar.is-open {
		display: flex;
	}
}

@media (max-width: 680px) {
	.cfc-sx__player-body {
		grid-template-columns: minmax(0, 1fr) auto;
		grid-template-areas:
			"now controls"
			"extra extra";
		gap: 0.5rem;
		row-gap: 0.4rem;
	}

	.cfc-sx__player-now {
		grid-area: now;
	}

	.cfc-sx__player-controls {
		grid-area: controls;
	}

	.cfc-sx__player-extra {
		grid-area: extra;
		justify-content: space-between;
	}

	.cfc-sx__seriesnav {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cfc-sx__spinner {
		animation-duration: 2s;
	}

	.cfc-sx__card,
	.cfc-sx__series-card {
		transition: none;
	}

	html {
		scroll-behavior: auto;
	}
}
