/* JSLLC - Podcast player v1.0.0 */

.jsllc-pod {
	--jsllc-accent: #b3261e;
	--jsllc-ink: #1a1a1a;
	--jsllc-muted: #5f6368;
	--jsllc-line: #e3e3e3;
	--jsllc-bg: #ffffff;
	--jsllc-soft: #f6f6f6;
	--jsllc-radius: 12px;

	container-type: inline-size;
	box-sizing: border-box;
	margin: 1.75em 0;
	padding: 0;
	border: 1px solid var(--jsllc-line);
	border-radius: var(--jsllc-radius);
	background: var(--jsllc-bg);
	color: var(--jsllc-ink);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.4;
	overflow: hidden;
	text-align: left;
}

.jsllc-pod *,
.jsllc-pod *::before,
.jsllc-pod *::after {
	box-sizing: border-box;
}

/* ---------- Main episode ---------- */

.jsllc-pod__main {
	display: grid;
	grid-template-columns: 180px minmax(0, 1fr);
	gap: 20px;
	padding: 20px;
	align-items: start;
}

.jsllc-pod__art-wrap {
	position: relative;
	aspect-ratio: 1 / 1;
	width: 100%;
	border-radius: 8px;
	overflow: hidden;
	background: var(--jsllc-soft);
}

.jsllc-pod .jsllc-pod__art {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	object-fit: cover;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.jsllc-pod__art--empty,
.jsllc-pod .jsllc-pod__thumb.jsllc-pod__art--empty {
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--jsllc-muted);
	background: var(--jsllc-soft);
}

.jsllc-pod__art--empty .jsllc-pod__i {
	width: 40%;
	height: 40%;
}

.jsllc-pod__body {
	min-width: 0;
}

.jsllc-pod .jsllc-pod__show {
	margin: 0 0 4px;
	padding: 0;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--jsllc-accent);
}

.jsllc-pod .jsllc-pod__title {
	margin: 0 0 4px;
	padding: 0;
	font-family: inherit;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: normal;
	text-transform: none;
	color: var(--jsllc-ink);
	border: 0;
}

.jsllc-pod .jsllc-pod__meta {
	margin: 0 0 10px;
	padding: 0;
	font-size: 14px;
	color: var(--jsllc-muted);
}

.jsllc-pod .jsllc-pod__caption {
	margin: 0 0 14px;
	padding: 0;
	font-size: 15px;
	line-height: 1.5;
	color: var(--jsllc-ink);
}

.jsllc-pod__caption[hidden],
.jsllc-pod__controls[hidden],
.jsllc-pod__error[hidden] {
	display: none !important;
}

.jsllc-pod__native {
	display: block;
	width: 100%;
	margin-top: 6px;
}

/* ---------- Controls ---------- */

.jsllc-pod__controls {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 4px;
}

.jsllc-pod .jsllc-pod__btn,
.jsllc-pod .jsllc-pod__listen {
	-webkit-appearance: none;
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: transparent;
	box-shadow: none;
	color: var(--jsllc-ink);
	font: inherit;
	line-height: 1;
	letter-spacing: normal;
	text-transform: none;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s, transform 0.1s, opacity 0.15s;
}

.jsllc-pod .jsllc-pod__btn:focus-visible,
.jsllc-pod .jsllc-pod__listen:focus-visible,
.jsllc-pod .jsllc-pod__seek:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--jsllc-accent) 45%, transparent);
	outline-offset: 2px;
}

.jsllc-pod .jsllc-pod__skip {
	width: 40px;
	height: 40px;
}

.jsllc-pod .jsllc-pod__skip:hover {
	background: var(--jsllc-soft);
}

.jsllc-pod .jsllc-pod__play {
	width: 52px;
	height: 52px;
	background: var(--jsllc-accent);
	color: #fff;
}

.jsllc-pod .jsllc-pod__play:hover {
	transform: scale(1.05);
}

.jsllc-pod .jsllc-pod__play:active {
	transform: scale(0.96);
}

.jsllc-pod__i {
	display: block;
	width: 24px;
	height: 24px;
}

.jsllc-pod__play .jsllc-pod__i {
	width: 26px;
	height: 26px;
}

.jsllc-pod__play .jsllc-pod__i--play {
	margin-left: 3px;
}

.jsllc-pod__i--pause,
.jsllc-pod.is-playing .jsllc-pod__i--play {
	display: none;
}

.jsllc-pod.is-playing .jsllc-pod__i--pause {
	display: block;
}

.jsllc-pod__scrub {
	flex: 1 1 auto;
	min-width: 0;
	padding: 0 4px;
}

.jsllc-pod .jsllc-pod__seek {
	--jsllc-pct: 0%;
	-webkit-appearance: none;
	appearance: none;
	display: block;
	width: 100%;
	height: 20px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.jsllc-pod .jsllc-pod__seek::-webkit-slider-runnable-track {
	height: 5px;
	border-radius: 5px;
	background: linear-gradient(to right, var(--jsllc-accent) var(--jsllc-pct), var(--jsllc-line) var(--jsllc-pct));
}

.jsllc-pod .jsllc-pod__seek::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 15px;
	height: 15px;
	margin-top: -5px;
	border: 0;
	border-radius: 50%;
	background: var(--jsllc-accent);
}

.jsllc-pod .jsllc-pod__seek::-moz-range-track {
	height: 5px;
	border-radius: 5px;
	background: var(--jsllc-line);
}

.jsllc-pod .jsllc-pod__seek::-moz-range-progress {
	height: 5px;
	border-radius: 5px;
	background: var(--jsllc-accent);
}

.jsllc-pod .jsllc-pod__seek::-moz-range-thumb {
	width: 15px;
	height: 15px;
	border: 0;
	border-radius: 50%;
	background: var(--jsllc-accent);
}

.jsllc-pod__times {
	display: flex;
	justify-content: space-between;
	font-size: 12px;
	font-variant-numeric: tabular-nums;
	color: var(--jsllc-muted);
}

.jsllc-pod .jsllc-pod__speed {
	min-width: 48px;
	height: 32px;
	padding: 0 10px;
	border: 1px solid var(--jsllc-line);
	font-size: 13px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.jsllc-pod .jsllc-pod__speed:hover {
	background: var(--jsllc-soft);
}

.jsllc-pod .jsllc-pod__error {
	margin: 10px 0 0;
	font-size: 14px;
	color: #b3261e;
}

/* ---------- Previous episodes ---------- */

.jsllc-pod__prev {
	padding: 4px 20px 16px;
	border-top: 1px solid var(--jsllc-line);
	background: var(--jsllc-soft);
}

.jsllc-pod .jsllc-pod__prev-heading {
	margin: 14px 0 6px;
	padding: 0;
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--jsllc-muted);
	border: 0;
}

.jsllc-pod .jsllc-pod__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.jsllc-pod .jsllc-pod__item {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 10px 0;
	border-top: 1px solid var(--jsllc-line);
	list-style: none;
}

.jsllc-pod .jsllc-pod__item:first-child {
	border-top: 0;
}

.jsllc-pod .jsllc-pod__item::before,
.jsllc-pod .jsllc-pod__item::marker {
	content: none;
}

.jsllc-pod .jsllc-pod__thumb {
	flex: none;
	width: 56px;
	height: 56px;
	max-width: none;
	margin: 0;
	object-fit: cover;
	border: 0;
	border-radius: 6px;
	box-shadow: none;
}

.jsllc-pod__item-body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-width: 0;
}

.jsllc-pod__item-title {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--jsllc-ink);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.jsllc-pod__badge {
	display: inline-block;
	margin-right: 6px;
	padding: 1px 6px;
	border-radius: 4px;
	background: var(--jsllc-accent);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	vertical-align: 2px;
}

.jsllc-pod__item-date {
	margin-top: 2px;
	font-size: 13px;
	color: var(--jsllc-muted);
}

.jsllc-pod .jsllc-pod__listen {
	height: 34px;
	padding: 0 16px;
	border: 1.5px solid var(--jsllc-accent);
	color: var(--jsllc-accent);
	background: var(--jsllc-bg);
	font-size: 14px;
	font-weight: 700;
}

.jsllc-pod .jsllc-pod__listen:hover {
	background: var(--jsllc-accent);
	color: #fff;
}

.jsllc-pod .jsllc-pod__listen[disabled] {
	opacity: 0.5;
	cursor: default;
}

/* ---------- Narrow layouts (phones, sidebars) ---------- */

@container (max-width: 520px) {
	.jsllc-pod__main {
		grid-template-columns: 1fr;
		gap: 14px;
		padding: 16px;
	}

	.jsllc-pod__art-wrap {
		max-width: 260px;
	}

	.jsllc-pod .jsllc-pod__title {
		font-size: 20px;
	}

	.jsllc-pod__prev {
		padding: 4px 16px 12px;
	}

	.jsllc-pod .jsllc-pod__thumb {
		width: 48px;
		height: 48px;
	}

	.jsllc-pod .jsllc-pod__listen {
		padding: 0 12px;
	}
}

@container (max-width: 360px) {
	.jsllc-pod .jsllc-pod__skip {
		width: 34px;
		height: 34px;
	}

	.jsllc-pod .jsllc-pod__speed {
		min-width: 40px;
		padding: 0 6px;
	}
}

/* Browsers without container queries fall back to a viewport check. */
@supports not (container-type: inline-size) {
	@media (max-width: 600px) {
		.jsllc-pod__main {
			grid-template-columns: 1fr;
		}

		.jsllc-pod__art-wrap {
			max-width: 260px;
		}
	}
}

@media (prefers-reduced-motion: reduce) {
	.jsllc-pod * {
		transition: none !important;
	}
}

.jsllc-pod-notice {
	padding: 12px 16px;
	border-left: 4px solid #996800;
	background: #fcf9e8;
	font-size: 14px;
}
