/**
 * Sermon Manager (mattytap-sermons) theme override.
 * Auto-enqueued by the plugin as wpfc-sm-style-theme when present.
 */

/* ---- Archive filter bar ---- */
.paa-sermon-filters #wpfc_sermon_sorting {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
}

.paa-sermon-filters #wpfc_sermon_sorting > div {
	display: block;
	margin: 0;
	padding: 0;
}

.paa-sermon-filters #wpfc_sermon_sorting form {
	margin: 0;
}

.paa-sermon-filters #wpfc_sermon_sorting > div {
	margin: 0;
}

.paa-sermon-filters select {
	appearance: none;
	border: 1px solid #e2e8f0;
	border-radius: 0.75rem;
	background: #fff
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%230E3A5B' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E")
		no-repeat right 0.9rem center;
	color: #16232d;
	font-size: 0.875rem;
	font-weight: 500;
	padding: 0.65rem 2.5rem 0.65rem 1rem;
	max-width: 100%;
	cursor: pointer;
}

.paa-sermon-filters select:focus {
	outline: none;
	border-color: #2e7d8d;
	box-shadow: 0 0 0 2px rgba(46, 125, 141, 0.25);
}

/* ---- Archive pagination (the_posts_pagination) ---- */
.paa-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
	justify-content: center;
}

.paa-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.75rem;
	padding: 0.65rem 1rem;
	border-radius: 9999px;
	background: #fff;
	border: 1px solid #0e3a5b;
	color: #0e3a5b;
	font-weight: 600;
	font-size: 0.875rem;
}

.paa-pagination .page-numbers.current {
	background: #0e3a5b;
	color: #fff;
}

.paa-pagination a.page-numbers:hover {
	background: #f7f4ef;
}

/* ---- Single sermon ---- */

/* Hero already shows the title; hide the plugin's duplicate. */
.paa-sermon-single .wpfc-sermon-single-title {
	display: none;
}

.paa-sermon-single .wpfc-sermon-single-meta,
.paa-sermon-single .wpfc-sermon-single-description {
	color: #16232d;
}

.paa-sermon-single audio,
.paa-sermon-single video {
	width: 100%;
	border-radius: 0.75rem;
}

/* Responsive sermon video (Plyr embed or native video/iframe). */
.paa-sermon-single .wpfc-sermon-single-media {
	display: grid;
	gap: 1rem;
	margin: 1.5rem 0;
}

.paa-sermon-single .wpfc-sermon-single-video-embed:empty {
	display: none;
}

.paa-sermon-single .plyr__video-embed,
.paa-sermon-single .wpfc-sermon-single-video iframe {
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: 0.75rem;
	overflow: hidden;
}

.paa-sermon-single .wpfc-sermon-single-video iframe {
	height: auto;
	min-height: 100%;
	border: 0;
}

.paa-sermon-single .wpfc-sermon-single-audio {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	background: #f7f4ef;
	border-radius: 0.75rem;
	padding: 0.75rem 1rem;
}

.paa-sermon-single .wpfc-sermon-single-audio audio {
	flex: 1;
}

/* Front-page sermon slot: inline click-to-play embed (built on click). */
.paa-sermon-embed-playing [data-paa-sermon-cover] {
	display: none;
}

#paa-sermon-slot .paa-sermon-inline-frame {
	position: absolute;
	inset: 0;
	background: #0e3a5b;
}

#paa-sermon-slot .paa-sermon-inline-frame iframe,
#paa-sermon-slot .paa-sermon-inline-frame video {
	width: 100%;
	height: 100%;
	min-height: 380px;
	border: 0;
	display: block;
}

.paa-sermon-single .wpfc-sermon-single-image-img {
	border-radius: 1rem;
	max-width: 100%;
	height: auto;
}
