/* ==========================================================================
   Derashah — styles modelled on the Elevation Church sermons layout.
   Everything is scoped under .derashah so nothing else on the site changes.
   Change colours / sizes here in the tokens.
   ========================================================================== */

.derashah {
	--derashah-bg: #0a0a0a;
	--derashah-bg-single: #171717;
	--derashah-band: #262626;
	--derashah-surface: #232323;
	--derashah-surface-hover: #1c1c1c;
	--derashah-grey: #424242;
	--derashah-grey-text: #ffffff;
	--derashah-grey-hover: #616161;
	--derashah-text: #ffffff;
	--derashah-btn: #ffffff;
	--derashah-btn-text: #000000;
	--derashah-btn-hover: #e6e6e6;
	--derashah-popup: #242424;
	--derashah-popup-menu: #2b2b2b;
	--derashah-popup-share: #212121;
	--derashah-popup-hover: rgba(255, 255, 255, .08);
	--derashah-outline-hover: rgba(255, 255, 255, .08);
	--derashah-ghost-hover: rgba(255, 255, 255, .16);
	--derashah-card-hover: #232323;
	--derashah-card-hover-slider: rgba(255, 255, 255, .06);
	--derashah-panel-hover: #2c2c2c;
	--derashah-page-hover: #232323;
	--derashah-person-hover: #232323;
	--derashah-link-hover: var(--derashah-text);
	--derashah-muted: rgba(255, 255, 255, 0.7);
	--derashah-faint: rgba(255, 255, 255, 0.56);
	--derashah-line: rgba(255, 255, 255, 0.5);
	--derashah-line-soft: rgba(255, 255, 255, 0.12);
	--derashah-skeleton: #262626;
	--derashah-radius: 16px;
	--derashah-radius-sm: 12px;
	--derashah-width: 1152px;
	--derashah-gutter: 16px;
	--derashah-font: "DM Sans", "Helvetica Neue", Arial, sans-serif;

	background: var(--derashah-bg);
	color: var(--derashah-text);
	font-family: var(--derashah-font);
	font-size: 16px;
	line-height: 1.5;
	letter-spacing: 0.15px;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: clip;
}
.derashah.derashah-portal { background: transparent; overflow: visible; }

/* ---------- Reset theme styles inside our area (Hello Elementor styles buttons/links in pink) ---------- */
.derashah *,
.derashah *::before,
.derashah *::after { box-sizing: border-box; }

.derashah h1, .derashah h2, .derashah h3, .derashah p {
	margin: 0; padding: 0; color: inherit; font-family: inherit; letter-spacing: inherit;
}
.derashah a,
.derashah a:hover,
.derashah a:focus,
.derashah a:visited { color: inherit; text-decoration: none; }

.derashah button {
	appearance: none; -webkit-appearance: none;
	display: inline-flex; align-items: center; justify-content: center;
	background: none; border: 0; border-radius: 0; box-shadow: none;
	color: inherit; font: inherit; letter-spacing: inherit; line-height: inherit;
	margin: 0; padding: 0; text-transform: none; text-align: inherit; white-space: normal;
	user-select: none; cursor: pointer; transition: background-color .25s cubic-bezier(.4, 0, .2, 1), color .2s, border-color .25s;
}
/* The theme paints buttons pink on hover/focus. Only undo the colours here — never the size — so buttons never shrink. */
.derashah button:hover,
.derashah button:focus,
.derashah button:active { background-color: transparent; color: inherit; text-decoration: none; }
.derashah img { max-width: 100%; height: auto; border: 0; display: block; }
/* Keep each coloured button's own colours when it is focused or pressed. */
.derashah .derashah-btn--white:focus, .derashah .derashah-btn--white:active { background-color: var(--derashah-btn); color: var(--derashah-btn-text); }
.derashah .derashah-btn--grey:focus, .derashah .derashah-btn--grey:active { background-color: var(--derashah-grey); color: var(--derashah-grey-text); }
.derashah .derashah-btn--outline:focus, .derashah .derashah-btn--outline:active { background-color: transparent; color: var(--derashah-text); }
.derashah .derashah-filter-btn:focus, .derashah .derashah-filter-btn:active { background-color: var(--derashah-grey); color: var(--derashah-grey-text); }
.derashah .derashah-slider__arrow:focus, .derashah .derashah-slider__arrow:active { background-color: #111; color: #fff; }
.derashah .derashah-video__play:focus, .derashah .derashah-video__play:active { background-color: rgba(0, 0, 0, .55); color: #fff; }
.derashah .derashah-share__copy:focus, .derashah .derashah-share__copy:active { background-color: var(--derashah-btn); color: var(--derashah-btn-text); }
.derashah .derashah-card__more:focus { color: var(--derashah-faint); }
.derashah .derashah-pagination a.is-current:focus, .derashah .derashah-pagination a.is-current:visited { color: var(--derashah-btn-text); }

.derashah [hidden] { display: none !important; }
.derashah :focus-visible { outline: 2px solid var(--derashah-text); outline-offset: 2px; }

.derashah-icon { display: inline-flex; width: 24px; height: 24px; flex: 0 0 auto; }
.derashah-icon svg { width: 100%; height: 100%; fill: currentColor; }
.derashah-icon--filter svg, .derashah-icon--notes svg { fill: none; }

.derashah-container {
	width: 100%;
	max-width: calc(var(--derashah-width) + 2 * var(--derashah-gutter));
	margin: 0 auto;
	padding: 0 var(--derashah-gutter);
}

/* ---------- Buttons ---------- */
.derashah .derashah-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 40px; padding: 8px 24px;
	border-radius: var(--derashah-radius); border: 1px solid transparent;
	font-size: 16px; font-weight: 700; line-height: 24px; letter-spacing: 0.4px;
	white-space: nowrap; transition: background-color .15s, border-color .15s, color .15s;
}
.derashah .derashah-btn--white,
.derashah .derashah-btn--white:visited { background: var(--derashah-btn); color: var(--derashah-btn-text); }
.derashah .derashah-btn--white:hover { background: var(--derashah-btn-hover); color: var(--derashah-btn-text); }
.derashah .derashah-btn--grey,
.derashah .derashah-btn--grey:visited { background: var(--derashah-grey); color: var(--derashah-grey-text); }
.derashah .derashah-btn--grey:hover { background: var(--derashah-grey-hover); color: var(--derashah-grey-text); }
.derashah .derashah-btn--outline,
.derashah .derashah-btn--outline:visited { background: transparent; border-color: var(--derashah-line); color: var(--derashah-text); }
.derashah .derashah-btn--outline:hover { background: var(--derashah-outline-hover); border-color: var(--derashah-text); color: var(--derashah-text); }
.derashah .derashah-btn--sm { min-height: 42px; padding: 8px 16px; font-size: 14px; }
.derashah .derashah-btn--sm .derashah-icon { width: 20px; height: 20px; }
.derashah .derashah-btn--block { width: 100%; }

.derashah .derashah-icon-btn {
	display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; border-radius: 50%; color: var(--derashah-text);
}
.derashah .derashah-icon-btn:hover { background: rgba(255, 255, 255, .08); }

/* ==========================================================================
   Sermons page
   ========================================================================== */

/* Hero: the latest sermon's artwork shown whole (never cropped).
   On computers it fills the whole screen below the site header; the sides are filled
   with a blurred copy of the artwork, and the bottom fades into the page. */
.derashah-hero {
	position: relative; overflow: hidden; background: var(--derashah-bg);
	width: 100%; height: 56.25vw; min-height: 220px;
}
@media (min-width: 601px) and (min-aspect-ratio: 1/1) {
	.derashah-hero {
		height: calc(100vh - var(--derashah-hero-offset, 0px));
		height: calc(100svh - var(--derashah-hero-offset, 0px));
		min-height: 420px;
	}
}
.derashah .derashah-hero__link { position: absolute; inset: 0; display: block; overflow: hidden; }
.derashah .derashah-hero__bg {
	position: absolute; inset: -60px; width: calc(100% + 120px); height: calc(100% + 120px); max-width: none;
	object-fit: cover; filter: blur(40px) brightness(.45); transform: scale(1.05);
}
.derashah .derashah-hero__img {
	position: absolute; inset: 0; width: 100%; height: 100%;
	object-fit: contain; object-position: center;
}
.derashah-hero__shade {
	position: absolute; left: 0; right: 0; bottom: -1px; height: 40%; z-index: 1; pointer-events: none;
	background: linear-gradient(180deg, rgba(10, 10, 10, 0) 0%, rgba(10, 10, 10, .45) 38%, rgba(10, 10, 10, .9) 70%, var(--derashah-bg) 90%, var(--derashah-bg) 100%);
	background: linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--derashah-bg) 45%, transparent) 38%, color-mix(in srgb, var(--derashah-bg) 90%, transparent) 70%, var(--derashah-bg) 90%, var(--derashah-bg) 100%);
}
.derashah-hero__actions {
	position: absolute; left: 0; right: 0; bottom: 32px; z-index: 2;
	display: flex; justify-content: flex-end; gap: 12px; flex-wrap: wrap;
	pointer-events: none;
}
.derashah-hero__actions .derashah-btn { pointer-events: auto; box-shadow: 0 4px 18px rgba(0, 0, 0, .35); }

/* Heading + toolbar */
.derashah-archive__body { padding-top: 40px; padding-bottom: 80px; }
.derashah-archive__title { font-size: 34px; font-weight: 700; line-height: 42px; letter-spacing: .25px; }
.derashah-archive__intro { margin-top: 8px !important; color: var(--derashah-text); font-size: 16px; max-width: 760px; }

.derashah-toolbar { display: flex; align-items: center; gap: 8px; margin: 28px 0 0; }
.derashah-search {
	position: relative; display: flex; align-items: center;
	width: 100%; max-width: 416px; height: 42px;
	border: 1px solid var(--derashah-text); border-radius: 999px;
	padding: 0 12px; color: var(--derashah-faint);
}
.derashah-search:focus-within { border-color: var(--derashah-text); box-shadow: 0 0 0 1px var(--derashah-text); }
.derashah-search .derashah-icon { width: 22px; height: 22px; color: var(--derashah-faint); }
.derashah .derashah-search input[type="search"] {
	flex: 1; min-width: 0; height: 100%;
	background: transparent; border: 0; outline: 0; box-shadow: none; border-radius: 0;
	padding: 0 8px; margin: 0;
	color: var(--derashah-text); font: inherit; font-size: 16px; line-height: 16px;
}
.derashah .derashah-search input[type="search"]::placeholder { color: var(--derashah-faint); opacity: 1; }
.derashah .derashah-search input[type="search"]::-webkit-search-cancel-button { display: none; }
.derashah .derashah-search__clear { display: inline-flex; width: 22px; height: 22px; color: var(--derashah-text); }
.derashah-search__clear .derashah-icon { width: 18px; height: 18px; color: var(--derashah-text); }

.derashah .derashah-filter-btn {
	position: relative; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	height: 40px; padding: 8px 24px; white-space: nowrap;
	background: var(--derashah-grey); border-radius: var(--derashah-radius);
	font-size: 16px; font-weight: 700; line-height: 24px; letter-spacing: .4px; color: var(--derashah-grey-text);
}
.derashah .derashah-filter-btn:hover { background-color: var(--derashah-grey-hover); color: var(--derashah-grey-text); }
.derashah-filter-btn .derashah-icon { width: 22px; height: 22px; }
.derashah-filter-btn__badge {
	position: absolute; top: -6px; right: -6px;
	min-width: 20px; height: 20px; padding: 0 5px;
	border-radius: 999px; background: #fff; color: #000;
	font-size: 12px; font-weight: 700; line-height: 20px; text-align: center;
}

.derashah-results-line { margin-top: 6px !important; font-size: 12px; color: var(--derashah-text); }

/* Grid of cards */
.derashah-grid {
	display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px; margin: 24px calc(-1 * var(--derashah-gutter)) 0;
}
.derashah-card {
	position: relative; padding: 18px; border-radius: var(--derashah-radius);
	transition: background-color .15s;
}
.derashah-card:hover, .derashah-card:focus-within { background: var(--derashah-card-hover); }
.derashah-card__media {
	display: block; aspect-ratio: 16 / 9; overflow: hidden;
	border-radius: var(--derashah-radius-sm); background: var(--derashah-skeleton);
}
.derashah .derashah-card__media img { width: 100%; height: 100%; object-fit: cover; }
.derashah-card__body { display: flex; align-items: flex-start; gap: 8px; margin-top: 16px; }
.derashah-card__text { flex: 1; min-width: 0; }
.derashah-card__title { font-size: 16px; font-weight: 700; line-height: 21px; }
.derashah-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--derashah-radius); } /* whole card clickable */
.derashah-card__speaker { margin-top: 2px !important; font-size: 14px; line-height: 20px; color: var(--derashah-muted); }
.derashah .derashah-card__more {
	position: relative; z-index: 2;
	display: inline-flex; align-items: center; justify-content: center;
	width: 32px; height: 32px; margin: -4px -6px 0 0; border-radius: 50%;
	color: var(--derashah-faint);
}
.derashah .derashah-card__more:hover { background: rgba(255, 255, 255, .1); color: var(--derashah-text); }
.derashah-card__more .derashah-icon { width: 18px; height: 18px; }

/* Loading placeholders */
.derashah-card--skeleton .derashah-card__media,
.derashah-card--skeleton .derashah-sk-line { background: var(--derashah-skeleton); animation: derashah-pulse 1.4s ease-in-out infinite; }
.derashah-sk-line { height: 14px; border-radius: 6px; margin-top: 16px; width: 70%; }
.derashah-sk-line--short { width: 40%; margin-top: 8px; }
@keyframes derashah-pulse { 50% { opacity: .5; } }

.derashah-loader { display: flex; justify-content: center; padding: 32px 0 8px; }
.derashah-loader span {
	width: 36px; height: 36px; border-radius: 50%;
	border: 3px solid rgba(255, 255, 255, .15); border-top-color: #fff;
	animation: derashah-spin .8s linear infinite;
}
@keyframes derashah-spin { to { transform: rotate(360deg); } }
.derashah-sentinel { height: 1px; }

.derashah-empty { text-align: center; padding: 64px 16px; }
.derashah-empty h2 { font-size: 24px; font-weight: 700; }
.derashah-empty p { color: var(--derashah-muted); margin: 8px 0 20px !important; }

/* Pagination */
.derashah-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 48px; }
.derashah-pagination:empty { display: none; }
.derashah .derashah-pagination a {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 42px; height: 42px; padding: 0 14px;
	border-radius: var(--derashah-radius); border: 1px solid var(--derashah-line-soft);
	font-size: 15px; font-weight: 700; color: var(--derashah-text);
}
.derashah .derashah-pagination a:hover { background: var(--derashah-page-hover); }
.derashah .derashah-pagination a.is-current { background: var(--derashah-btn); color: var(--derashah-btn-text); border-color: var(--derashah-btn); }
.derashah-pagination.is-waiting { display: none; }

/* Filter drawer (matches Elevation: 42px rows, live filtering, chips with a small × only) */
.derashah-drawer { position: fixed; inset: 0; z-index: 99999; }
.derashah-drawer__overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); opacity: 0; transition: opacity .25s; }
.derashah-drawer__panel {
	position: absolute; top: 0; left: 0; bottom: 0;
	width: 400px; max-width: 100%;
	display: flex; flex-direction: column;
	background: var(--derashah-popup); color: var(--derashah-text);
	transform: translateX(-100%); transition: transform .28s cubic-bezier(.4, 0, .2, 1);
	box-shadow: 8px 0 32px rgba(0, 0, 0, .45);
}
body.admin-bar .derashah-drawer__panel { top: 32px; }
@media (max-width: 782px) { body.admin-bar .derashah-drawer__panel { top: 46px; } }
.derashah-drawer.is-open .derashah-drawer__overlay { opacity: 1; }
.derashah-drawer.is-open .derashah-drawer__panel { transform: none; }
.derashah-drawer__view { display: none; flex: 1; min-height: 0; flex-direction: column; }
.derashah-drawer__view.is-active { display: flex; }
.derashah-drawer__head { display: flex; align-items: center; gap: 8px; padding: 16px 8px 8px 16px; }
.derashah-drawer__heading { flex: 1; min-width: 0; }
.derashah-drawer__heading h2 { font-size: 20px; font-weight: 700; line-height: 28px; }
.derashah-drawer__sub, .derashah-drawer__count { font-size: 13px; line-height: 18px; color: var(--derashah-muted); }
.derashah-drawer__chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 16px 8px; }
.derashah-drawer__chips:empty { display: none; }
.derashah-chip {
	display: inline-flex; align-items: center; gap: 2px;
	height: 32px; padding: 0 4px 0 12px; border-radius: 16px;
	background: rgba(255, 255, 255, .16); font-size: 13px; line-height: 18px; color: #fff;
	cursor: default; user-select: none;
}
.derashah .derashah-chip__remove {
	display: inline-flex; align-items: center; justify-content: center;
	width: 24px; height: 24px; border-radius: 50%; color: rgba(255, 255, 255, .3);
}
.derashah .derashah-chip__remove:hover, .derashah .derashah-chip__remove:focus-visible { color: rgba(255, 255, 255, .75); background-color: transparent; }
.derashah-chip__remove .derashah-icon { width: 20px; height: 20px; }
.derashah-drawer__groups { list-style: none; margin: 0; padding: 12px 0 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.derashah-drawer__groups li { margin: 0; padding: 0; list-style: none; }
.derashah .derashah-drawer__group {
	display: flex; align-items: center; justify-content: space-between; width: 100%;
	min-height: 42px; padding: 8px 16px; font-size: 16px; font-weight: 400; line-height: 24px; color: var(--derashah-text); text-align: left;
	border-radius: 0;
}
.derashah .derashah-drawer__group:hover { background-color: var(--derashah-popup-hover); color: var(--derashah-text); }
.derashah-drawer__group .derashah-icon { width: 22px; height: 22px; color: rgba(255, 255, 255, .7); }
.derashah-drawer__options { flex: 1; overflow-y: auto; padding: 16px 0; overscroll-behavior: contain; }
.derashah-check {
	display: flex; align-items: center; gap: 16px;
	min-height: 42px; padding: 0 16px; cursor: pointer; font-size: 16px; line-height: 24px;
}
.derashah-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.derashah-check__box {
	position: relative; width: 18px; height: 18px; flex: 0 0 18px; border-radius: 2px;
	border: 2px solid rgba(255, 255, 255, .7); transition: background-color .15s, border-color .15s;
}
.derashah-check__box::before {
	content: ""; position: absolute; inset: -11px; border-radius: 50%;
	background: rgba(255, 255, 255, 0); transition: background-color .15s;
}
.derashah-check:hover .derashah-check__box::before { background: rgba(255, 255, 255, .08); }
.derashah-check input:checked + .derashah-check__box { background: #fff; border-color: #fff; }
.derashah-check input:checked + .derashah-check__box::after {
	content: ""; position: absolute; left: 4px; top: 0; width: 6px; height: 11px;
	border: solid #000; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.derashah-check input:focus-visible + .derashah-check__box { outline: 2px solid #fff; outline-offset: 3px; }
.derashah-drawer__foot {
	display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: center;
	padding: 24px 16px; margin-top: auto; background: var(--derashah-popup);
}
.derashah .derashah-btn--ghost { background-color: rgba(255, 255, 255, .08); border-color: var(--derashah-text); color: var(--derashah-text); min-height: 42px; }
.derashah .derashah-btn--ghost:hover { background-color: var(--derashah-ghost-hover); color: var(--derashah-text); }
.derashah .derashah-btn--ghost:focus, .derashah .derashah-btn--ghost:active { background-color: rgba(255, 255, 255, .08); color: var(--derashah-text); }
body.derashah-no-scroll { overflow: hidden; }
/* Dark page behind the sermons area so no white strip shows above the footer. */
body.derashah-page { background-color: var(--derashah-bg, #0a0a0a); }

/* Card ⋮ menu */
.derashah-menu {
	position: absolute; z-index: 100000; min-width: 160px; padding: 8px 0;
	background: var(--derashah-popup-menu); border-radius: 8px;
	box-shadow: 0 8px 28px rgba(0, 0, 0, .5); font-family: var(--derashah-font);
}
.derashah .derashah-menu button {
	display: flex; align-items: center; justify-content: flex-start; gap: 12px; width: 100%;
	padding: 8px 16px; font-size: 14px; line-height: 20px; color: var(--derashah-text); text-align: left;
}
.derashah .derashah-menu button:hover { background-color: var(--derashah-popup-hover); color: var(--derashah-text); }
.derashah-menu .derashah-icon { width: 20px; height: 20px; }

/* Share pop-up (like YouTube's) */
.derashah-share { position: fixed; inset: 0; z-index: 100002; display: flex; align-items: center; justify-content: center; padding: 16px; }
.derashah-share__overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); }
.derashah-share__box {
	position: relative; width: 100%; max-width: 500px;
	background: var(--derashah-popup-share); color: var(--derashah-text); border-radius: 16px; padding: 20px 24px 24px;
	box-shadow: 0 16px 48px rgba(0, 0, 0, .6);
}
.derashah-share__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.derashah-share__head h2 { font-size: 18px; font-weight: 700; line-height: 24px; }
.derashah-share__apps { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 24px; scrollbar-width: none; }
.derashah-share__apps::-webkit-scrollbar { display: none; }
.derashah .derashah-share__app {
	display: flex; flex-direction: column; align-items: center; gap: 8px;
	flex: 0 0 64px; font-size: 12px; line-height: 16px; color: var(--derashah-text); text-align: center;
}
.derashah-share__app-icon {
	display: flex; align-items: center; justify-content: center;
	width: 60px; height: 60px; border-radius: 50%; transition: transform .15s, filter .15s;
}
.derashah-share__app-icon svg { width: 30px; height: 30px; fill: #fff; }
.derashah .derashah-share__app:hover .derashah-share__app-icon { transform: scale(1.06); filter: brightness(1.1); }
.derashah-share__link {
	display: flex; align-items: center; gap: 8px;
	background: #121212; border: 1px solid rgba(255, 255, 255, .2); border-radius: 12px; padding: 8px 8px 8px 16px;
}
.derashah .derashah-share__url {
	flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; box-shadow: none; padding: 0; margin: 0;
	color: var(--derashah-text); font: inherit; font-size: 14px; line-height: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.derashah .derashah-share__copy {
	flex: 0 0 auto; height: 36px; padding: 0 18px; border-radius: 18px;
	background: var(--derashah-btn); color: var(--derashah-btn-text); font-size: 14px; font-weight: 700;
}
.derashah .derashah-share__copy:hover { background-color: var(--derashah-btn-hover); color: var(--derashah-btn-text); }
.derashah-share__copied { margin-top: 10px !important; font-size: 13px; color: #8bd98b; min-height: 18px; }

.derashah-toast {
	position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 100003;
	background: #fff; color: #000; padding: 10px 18px; border-radius: 999px;
	font-size: 14px; font-weight: 700; box-shadow: 0 6px 24px rgba(0, 0, 0, .35);
}

/* ==========================================================================
   Single sermon
   ========================================================================== */
.derashah-single { background: var(--derashah-bg-single); padding-top: 28px; }
.derashah-single > .derashah-live-banner { margin-top: -28px; margin-bottom: 28px; }

.derashah-video {
	position: relative; aspect-ratio: 16 / 9; overflow: hidden;
	border-radius: var(--derashah-radius); background: #000;
}
.derashah .derashah-video__poster,
.derashah-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.derashah .derashah-video__play {
	position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
	width: 76px; height: 76px; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	background: rgba(0, 0, 0, .55); color: #fff;
	border: 2px solid rgba(255, 255, 255, .9);
	backdrop-filter: blur(4px); transition: transform .15s, background-color .15s;
}
.derashah .derashah-video__play:hover { background: rgba(0, 0, 0, .75); transform: translate(-50%, -50%) scale(1.06); }
.derashah-video__play .derashah-icon { width: 38px; height: 38px; margin-left: 4px; }
.derashah .derashah-video__yt {
	position: absolute; right: 16px; bottom: 16px;
	padding: 8px 14px; border-radius: 999px;
	background: rgba(0, 0, 0, .7); font-size: 13px; font-weight: 700; color: #fff;
}
.derashah-video.is-playing .derashah-video__play,
.derashah-video.is-playing .derashah-video__yt,
.derashah-video.is-playing .derashah-video__poster { display: none; }

.derashah-single__grid {
	display: grid; grid-template-columns: minmax(0, 1fr) 415px;
	gap: 48px; align-items: start; padding: 32px 0 72px;
}
.derashah-single__grid--full { grid-template-columns: minmax(0, 1fr); }
.derashah-single__grid--full .derashah-single__details { max-width: 760px; }
.derashah .derashah-single__series {
	display: inline-block; margin-bottom: 10px; padding: 3px 10px;
	border-radius: 999px; background: var(--derashah-grey);
	font-size: 12px; font-weight: 700; letter-spacing: .4px; color: var(--derashah-grey-text);
}
.derashah .derashah-single__series:hover { background: var(--derashah-grey-hover); }
.derashah-single__title { font-size: 24px; font-weight: 700; line-height: 32px; }
.derashah-single__speaker { margin-top: 12px !important; font-size: 14px; font-weight: 500; line-height: 22px; }
.derashah-single__date { display: flex; align-items: center; gap: 6px; margin-top: 6px !important; font-size: 12px; font-weight: 500; color: var(--derashah-muted); }
.derashah-single__date .derashah-icon { width: 18px; height: 18px; }
.derashah-single__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.derashah-single__desc { margin-top: 28px; font-size: 16px; line-height: 24px; }
.derashah-single__desc p + p { margin-top: 16px !important; }
.derashah .derashah-single__desc a { text-decoration: underline; }

.derashah-notes {
	background: var(--derashah-surface); border-radius: var(--derashah-radius);
	padding: 48px 24px; text-align: center;
	display: flex; flex-direction: column; align-items: center;
}
.derashah-notes__icon { color: var(--derashah-text); }
.derashah-notes__icon .derashah-icon { width: 48px; height: 48px; }
.derashah-notes__title { margin-top: 20px !important; font-size: 20px; font-weight: 700; line-height: 28px; }
.derashah-notes__text { margin: 4px 0 24px !important; font-size: 14px; line-height: 20px; color: var(--derashah-muted); max-width: 340px; }

/* More sermons band + slider */
.derashah-more { background: var(--derashah-band); padding: 44px 0 56px; }
.derashah-section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.derashah-section-head__title { font-size: 24px; font-weight: 700; line-height: 32px; }
.derashah .derashah-section-head__link { font-size: 16px; font-weight: 500; color: var(--derashah-text); }
.derashah .derashah-section-head__link:hover { color: var(--derashah-link-hover); }
.derashah .derashah-section-head__link:hover { text-decoration: underline; }

.derashah-slider { position: relative; }
.derashah-slider__track {
	display: grid; grid-auto-flow: column;
	grid-auto-columns: calc((100% - 3 * 8px) / 3.6);
	gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
	margin: 0 calc(-1 * var(--derashah-gutter)); padding: 0; scrollbar-width: none;
}
.derashah-slider__track::-webkit-scrollbar { display: none; }
.derashah-slider__track .derashah-card { scroll-snap-align: start; }
.derashah-slider__track .derashah-card:hover { background: var(--derashah-card-hover-slider); }
.derashah .derashah-slider__arrow {
	position: absolute; top: calc(50% - 40px); z-index: 3;
	width: 44px; height: 44px; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	background: #111; color: #fff; box-shadow: 0 4px 16px rgba(0, 0, 0, .5);
}
.derashah .derashah-slider__arrow:hover { background: #000; }
.derashah-slider__arrow--prev { left: -22px; }
.derashah-slider__arrow--next { right: -22px; }

/* ==========================================================================
   Shortcodes (homepage)
   ========================================================================== */
.derashah-embed { border-radius: var(--derashah-radius); padding: 24px; }
.derashah-embed__title { font-size: 24px; font-weight: 700; margin-bottom: 16px !important; }
.derashah-embed__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 20px; }
.derashah-embed__eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--derashah-muted); }
.derashah-embed__name { font-size: 24px; font-weight: 700; line-height: 32px; margin-top: 4px !important; }
.derashah-embed__meta { font-size: 14px; color: var(--derashah-muted); margin-top: 4px !important; }
.derashah-embed__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.derashah-embed--card { max-width: 420px; padding: 8px; }
/* Homepage "This Week's Sermon": sits straight in the section, same width as the old YouTube video. */
.derashah.derashah-embed--latest { padding: 0; background: transparent; border-radius: 0; }
/* Ambient glow may spread past the video on all four sides inside homepage blocks (1.4.1). */
.derashah.derashah-embed { overflow: visible; }
.derashah-embed .derashah-ambient__stage { z-index: 0; }
.derashah-embed--latest .derashah-embed__row { margin-top: 24px; align-items: center; }
.derashah-embed--grid .derashah-grid { margin-top: 0; }

/* ==========================================================================
   Series pages + part navigation (1.2.0)
   ========================================================================== */
.derashah .derashah-toolbar__link { margin-left: 8px; font-size: 15px; font-weight: 700; color: var(--derashah-text); white-space: nowrap; }
.derashah .derashah-toolbar__link:hover { color: var(--derashah-link-hover); }
.derashah .derashah-toolbar__link:hover { text-decoration: underline; }
.derashah-card__label { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--derashah-muted); margin-bottom: 4px !important; }
.derashah-card__media { position: relative; }
.derashah-card__badge {
	position: absolute; right: 10px; bottom: 10px; padding: 4px 10px; border-radius: 999px;
	background: rgba(0, 0, 0, .75); color: #fff; font-size: 12px; font-weight: 700;
}
.derashah .derashah-hero--series { height: min(56.25vw, 62vh); min-height: 240px; }
.derashah-crumbs { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--derashah-muted); margin-bottom: 16px; }
.derashah .derashah-crumbs a { color: var(--derashah-muted); }
.derashah .derashah-crumbs a:hover { color: var(--derashah-link-hover); text-decoration: underline; }
.derashah-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--derashah-muted); margin-bottom: 6px !important; }
.derashah-series-page__body { padding-top: 8px; padding-bottom: 80px; }
.derashah-series-page__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 8px; }
.derashah-series-page__meta { margin-top: 8px !important; font-size: 14px; color: var(--derashah-muted); }
.derashah-series-page__desc { margin-top: 16px; max-width: 760px; font-size: 16px; line-height: 24px; }
.derashah-series-page__desc p + p { margin-top: 12px !important; }
.derashah-series-page__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.derashah-series-page__more { text-align: center; margin-top: 48px !important; }
.derashah-series-index .derashah-card__title { font-size: 18px; line-height: 24px; }

.derashah-single__part { margin-left: 8px; padding-left: 8px; border-left: 1px solid rgba(255, 255, 255, .35); font-weight: 500; }
.derashah-partnav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 32px; }
.derashah .derashah-partnav__link {
	display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: var(--derashah-radius);
	background: var(--derashah-surface); color: var(--derashah-text); transition: background-color .15s;
}
.derashah .derashah-partnav__link:hover { background: var(--derashah-panel-hover); color: var(--derashah-text); }
.derashah-partnav__link span:not(.derashah-icon) { display: flex; flex-direction: column; min-width: 0; font-size: 15px; font-weight: 700; line-height: 20px; }
.derashah-partnav__link small { font-size: 12px; font-weight: 500; color: var(--derashah-muted); margin-bottom: 2px; }
.derashah-partnav__link--next { justify-content: flex-end; text-align: right; }
.derashah-partnav__link--next span:not(.derashah-icon) { align-items: flex-end; }
.derashah-partnav__link .derashah-icon { width: 22px; height: 22px; color: var(--derashah-muted); }
.derashah-partnav__all { margin-top: 12px !important; font-size: 14px; }
.derashah .derashah-partnav__all a { color: var(--derashah-text); text-decoration: underline; }
.derashah .derashah-partnav__all a:hover { color: var(--derashah-link-hover); }

/* ==========================================================================
   Scripture, speakers, ambient mode (1.3.0)
   ========================================================================== */
.derashah-single__scripture { display: flex; align-items: flex-start; gap: 6px; margin-top: 6px !important; font-size: 13px; font-weight: 500; color: var(--derashah-muted); }
.derashah-single__scripture .derashah-icon { width: 18px; height: 18px; flex: 0 0 18px; }
.derashah .derashah-single__scripture a { color: var(--derashah-text); text-decoration: underline; text-underline-offset: 3px; }
.derashah .derashah-single__scripture a:hover { color: var(--derashah-link-hover); opacity: .8; }
.derashah-sep { margin: 0 8px; opacity: .5; }
.derashah .derashah-single__speaker a { color: var(--derashah-text); }
.derashah .derashah-single__speaker a:hover { color: var(--derashah-link-hover); }
.derashah .derashah-single__speaker a:hover { text-decoration: underline; }

.derashah .derashah-card__speaker-link { position: relative; z-index: 2; color: var(--derashah-muted); }
.derashah .derashah-card__speaker-link:hover { color: var(--derashah-link-hover); text-decoration: underline; }

.derashah-avatar { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; border-radius: 50%; overflow: hidden; background: #2d2d2d; color: #fff; font-weight: 700; }
.derashah .derashah-avatar img { width: 100%; height: 100%; object-fit: cover; }
.derashah-avatar--md { width: 56px; height: 56px; font-size: 18px; }
.derashah-avatar--lg { width: 120px; height: 120px; font-size: 34px; }
.derashah-avatar--xl { width: 160px; height: 160px; font-size: 46px; }
.derashah-avatar--initials { background: linear-gradient(135deg, #3a3a3a, #1f1f1f); letter-spacing: 1px; }

.derashah-speaker-head { display: flex; align-items: center; gap: 32px; margin: 8px 0 48px; }
.derashah-speaker-head__text { flex: 1; min-width: 0; }
.derashah-speaker-series { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; font-size: 14px; color: var(--derashah-muted); }
.derashah .derashah-pill { display: inline-flex; padding: 4px 12px; border-radius: 999px; background: var(--derashah-grey); color: var(--derashah-grey-text); font-size: 13px; font-weight: 700; }
.derashah .derashah-pill:hover { background: var(--derashah-grey-hover); color: var(--derashah-grey-text); }
.derashah-speaker-page__list-head { margin-top: 8px; }

.derashah-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin-top: 32px; }
.derashah .derashah-person {
	display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
	padding: 24px 12px; border-radius: var(--derashah-radius); color: var(--derashah-text); transition: background-color .15s;
}
.derashah .derashah-person:hover { background: var(--derashah-person-hover); color: var(--derashah-text); }
.derashah-person__name { font-size: 16px; font-weight: 700; line-height: 21px; }
.derashah-person__meta { font-size: 13px; color: var(--derashah-muted); margin-top: -6px; }

/* Ambient mode: colour glow behind the video */
.derashah-ambient { position: relative; }
.derashah-ambient__stage { position: relative; isolation: isolate; }
.derashah .derashah-ambient__glow {
	position: absolute; left: -3%; top: -5%; width: 106%; height: 110%; max-width: none; z-index: -1;
	object-fit: cover; filter: blur(64px) saturate(1.6) brightness(1.05); opacity: .6;
	transform: scale(1.04); transition: opacity .5s ease; pointer-events: none;
}
.derashah-ambient.is-off .derashah-ambient__glow { opacity: 0; }
.derashah-ambient__bar { display: flex; justify-content: flex-end; margin-top: 10px; }
.derashah .derashah-ambient__toggle { display: inline-flex; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 8px; font-size: 13px; font-weight: 500; color: var(--derashah-muted); }
.derashah .derashah-ambient__toggle:hover { color: var(--derashah-link-hover); }
.derashah-ambient__switch { position: relative; width: 30px; height: 16px; border-radius: 999px; background: #fff; transition: background-color .2s; }
.derashah-ambient__switch::after { content: ""; position: absolute; top: 2px; left: 16px; width: 12px; height: 12px; border-radius: 50%; background: #000; transition: left .2s, background-color .2s; }
.derashah-ambient.is-off .derashah-ambient__switch { background: #555; }
.derashah-ambient.is-off .derashah-ambient__switch::after { left: 2px; background: #bbb; }
.derashah-single .derashah-single__grid { padding-top: 22px; }


/* ---------- Sort (1.4.0; own menu instead of the browser dropdown in 2.1.0) ---------- */
.derashah-sort { position: relative; flex: 0 0 auto; display: inline-flex; align-items: center; margin: 0; }
.derashah .derashah-sort__btn {
	display: inline-flex; align-items: center; justify-content: space-between; gap: 10px;
	height: 40px; padding: 8px 14px 8px 18px; white-space: nowrap;
	background: var(--derashah-grey); color: var(--derashah-grey-text); border-radius: var(--derashah-radius);
	font-size: 16px; font-weight: 700; line-height: 24px; letter-spacing: .4px;
}
.derashah .derashah-sort__btn:hover, .derashah .derashah-sort.is-open .derashah-sort__btn { background-color: var(--derashah-grey-hover); color: var(--derashah-grey-text); }
.derashah .derashah-sort__btn:focus, .derashah .derashah-sort__btn:active { color: var(--derashah-grey-text); }
.derashah .derashah-sort__btn:not(:hover):focus { background-color: var(--derashah-grey); }
.derashah-sort__btn .derashah-icon { width: 18px; height: 18px; transform: rotate(90deg); transition: transform .2s; }
.derashah-sort.is-open .derashah-sort__btn .derashah-icon { transform: rotate(-90deg); }
.derashah .derashah-sort__list {
	position: absolute; top: calc(100% + 6px); right: 0; z-index: 50;
	min-width: 100%; width: max-content; margin: 0; padding: 8px 0; list-style: none;
	background: var(--derashah-popup-menu); border-radius: 8px;
	box-shadow: 0 8px 28px rgba(0, 0, 0, .5); font-family: var(--derashah-font);
}
.derashah .derashah-sort__option {
	display: flex; align-items: center; gap: 12px; margin: 0; padding: 8px 16px 8px 12px;
	font-size: 14px; line-height: 20px; color: var(--derashah-text); cursor: pointer; white-space: nowrap; outline: 0;
}
.derashah .derashah-sort__option:hover, .derashah .derashah-sort__option:focus { background-color: var(--derashah-popup-hover); }
.derashah .derashah-sort__option:focus-visible { box-shadow: inset 0 0 0 2px var(--derashah-text); }
.derashah-sort__check { display: inline-flex; width: 20px; height: 20px; visibility: hidden; }
.derashah-sort__check .derashah-icon { width: 20px; height: 20px; }
.derashah-sort__option[aria-selected="true"] { font-weight: 700; }
.derashah-sort__option[aria-selected="true"] .derashah-sort__check { visibility: visible; }
.derashah .screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
	clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Browse series / Speakers links (2.1.0: kept on phones as two buttons under the toolbar) */
.derashah-toolbar__links { display: flex; align-items: center; flex: 0 0 auto; }

/* Sermon card hover in the thumbnail's own colour (2.1.0), like YouTube.
   --derashah-card-tint is set on each card from its thumbnail; cards without one use the "Sermon card hover" colour. */
.derashah .derashah-card[style*="--derashah-card-tint"]:hover,
.derashah .derashah-card[style*="--derashah-card-tint"]:focus-within,
.derashah .derashah-slider__track .derashah-card[style*="--derashah-card-tint"]:hover { background: var(--derashah-card-tint); }
.derashah .derashah-card { transition: background-color .25s ease; }

/* ---------- Most watched this month (1.4.0) ---------- */
.derashah-popular { padding: 40px 0 0; }
.derashah-popular + .derashah-archive__body { padding-top: 32px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
	.derashah-single__grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; }
}
@media (max-width: 900px) {
	.derashah-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.derashah-slider__track { grid-auto-columns: calc((100% - 8px) / 2.3); }
	.derashah-slider__arrow { display: none !important; }
	.derashah-single__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-bottom: 48px; }
}
@media (max-width: 600px) {
	.derashah { --derashah-gutter: 16px; }
	.derashah-grid { grid-template-columns: minmax(0, 1fr); margin-left: -12px; margin-right: -12px; }
	.derashah-card { padding: 12px; }
	.derashah-slider__track { grid-auto-columns: 82%; margin: 0 -12px; }
	.derashah-archive__title { font-size: 28px; line-height: 36px; }
	.derashah-toolbar { gap: 8px; }
	.derashah-search { max-width: none; }
	.derashah .derashah-filter-btn { padding: 8px 14px; }
	.derashah-drawer__panel { width: 100%; }
	.derashah-hero { height: auto; min-height: 0; overflow: visible; }
	.derashah .derashah-hero__link { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
	.derashah-hero__shade { height: 30%; }
	.derashah-hero__actions { position: relative; bottom: auto; padding-top: 8px; padding-bottom: 4px; background: var(--derashah-bg); }
	.derashah-hero__actions .derashah-btn { flex: 1; box-shadow: none; }
	.derashah-archive__body { padding-top: 32px; }
	.derashah-single { padding-top: 0; }
	.derashah-single > .derashah-live-banner { margin-top: 0; margin-bottom: 0; }
	.derashah-single > .derashah-container:first-child { padding: 0; }
	.derashah-single .derashah-video { border-radius: 0; }
	.derashah-single__grid { padding: 24px var(--derashah-gutter) 40px; }
	.derashah-notes { padding: 36px 20px; }
	.derashah-embed { padding: 16px; }
	.derashah.derashah-embed { overflow-x: clip; }
	.derashah-embed__actions .derashah-btn { flex: 1; }
	.derashah-partnav { grid-template-columns: 1fr; }
	.derashah-speaker-head { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 32px; }
	.derashah-avatar--xl { width: 112px; height: 112px; font-size: 34px; }
	.derashah-people { grid-template-columns: repeat(2, 1fr); }
	.derashah-avatar--lg { width: 96px; height: 96px; font-size: 28px; }
	.derashah-single .derashah-ambient__bar { padding: 0 var(--derashah-gutter); }
	.derashah-toolbar { flex-wrap: wrap; }
	.derashah-search { flex: 0 0 100%; }
	.derashah .derashah-filter-btn, .derashah-sort { flex: 1 1 0; min-width: 0; }
	.derashah .derashah-sort__btn { width: 100%; }
	.derashah .derashah-sort__list { left: 0; right: 0; width: auto; }
	.derashah-toolbar__links { flex: 0 0 100%; gap: 8px; }
	.derashah .derashah-toolbar__link {
		flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center;
		height: 40px; margin: 0; padding: 8px 12px; border: 1px solid var(--derashah-line-soft); border-radius: var(--derashah-radius);
		font-size: 15px;
	}
	.derashah .derashah-toolbar__link:hover { background: var(--derashah-outline-hover); text-decoration: none; }
	.derashah-popular { padding-top: 28px; }
	.derashah-series-page__actions { width: 100%; }
	.derashah-series-page__actions .derashah-btn { flex: 1; }
	.derashah .derashah-hero--series { height: auto; }
}
@media (prefers-reduced-motion: reduce) {
	.derashah *, .derashah-drawer__panel, .derashah-drawer__overlay { transition: none !important; animation: none !important; }
	.derashah-slider__track { scroll-behavior: auto; }
}
