/* Care Course Trailer – lite YouTube player. Uses the Kadence global palette. */
.cl-course-trailer {
	margin: 2rem 0;
	max-width: 100%;
}

.cl-course-trailer--top {
	margin-top: 0;
}

.cl-course-trailer__heading {
	margin: 0 0 0.75rem;
	font-size: 1.375rem;
	line-height: 1.3;
}

.cl-course-trailer__player {
	position: relative;
	aspect-ratio: 16 / 9;
	width: 100%;
	overflow: hidden;
	border-radius: 16px;
	background: #000;
}

.cl-course-trailer__play {
	position: absolute;
	inset: 0;
	display: block;
	cursor: pointer;
	color: inherit;
	text-decoration: none;
}

.cl-course-trailer__thumb {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	margin: 0;
	border-radius: 0;
}

.cl-course-trailer__button {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 68px;
	height: 48px;
	transform: translate(-50%, -50%);
	pointer-events: none;
}

.cl-course-trailer__button svg {
	display: block;
	width: 100%;
	height: 100%;
}

.cl-course-trailer__button-bg {
	fill: #212121;
	fill-opacity: 0.85;
	transition: fill 0.15s ease, fill-opacity 0.15s ease;
}

.cl-course-trailer__play:hover .cl-course-trailer__button-bg,
.cl-course-trailer__play:focus-visible .cl-course-trailer__button-bg {
	fill: #f00;
	fill-opacity: 1;
}

.cl-course-trailer__play:focus-visible {
	outline: 3px solid var(--global-palette1, #2b6cb0);
	outline-offset: -3px;
}

.cl-course-trailer__duration {
	position: absolute;
	right: 0.75rem;
	bottom: 0.75rem;
	padding: 0.125rem 0.5rem;
	border-radius: 4px;
	background: rgba(0, 0, 0, 0.8);
	color: #fff;
	font-size: 0.875rem;
	line-height: 1.5;
}

.cl-course-trailer__iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.cl-course-trailer__note {
	margin: 0.5rem 0 0;
	font-size: 0.875rem;
	color: var(--global-palette5, #4a5568);
}

.cl-course-trailer__transcript {
	margin-top: 0.75rem;
}

.cl-course-trailer__transcript summary {
	cursor: pointer;
	font-weight: 600;
}

.cl-course-trailer__transcript p {
	margin: 0.5rem 0 0;
}

@media (prefers-reduced-motion: reduce) {
	.cl-course-trailer__button-bg {
		transition: none;
	}
}
