body.sparkles-media-is-open {
	overflow: hidden;
}

.sparkles-media-dialog[hidden] {
	display: none !important;
}

.sparkles-media-dialog {
	position: fixed;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 24px;
	z-index: 1000010;
	opacity: 0;
	transition: opacity 220ms ease;
}

.sparkles-media-dialog.is-visible {
	opacity: 1;
}

.sparkles-media-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(14, 35, 55, .78);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.sparkles-media-panel {
	position: relative;
	z-index: 1;
	width: min(960px, 94vw);
	max-height: calc(100vh - 48px);
	overflow: auto;
	border: 1px solid rgba(255, 255, 255, .55);
	border-radius: 26px;
	background: #fff;
	box-shadow: 0 28px 90px rgba(4, 19, 34, .42);
	transform: translateY(12px) scale(.985);
	transition: transform 220ms ease;
}

.sparkles-media-dialog.is-visible .sparkles-media-panel {
	transform: translateY(0) scale(1);
}

.sparkles-media-close {
	position: absolute !important;
	top: 14px !important;
	right: 14px !important;
	z-index: 3;
	display: grid !important;
	place-items: center;
	width: 42px !important;
	height: 42px !important;
	min-width: 42px !important;
	min-height: 42px !important;
	padding: 0 !important;
	border: 1px solid rgba(255, 255, 255, .5) !important;
	border-radius: 50% !important;
	background: rgba(18, 37, 54, .88) !important;
	box-shadow: 0 4px 16px rgba(0, 0, 0, .25) !important;
	color: #fff !important;
	font: 400 32px/1 Arial, sans-serif !important;
	cursor: pointer;
}

.sparkles-media-close:hover,
.sparkles-media-close:focus-visible {
	background: #b43b72 !important;
	outline: 3px solid #ffd86a !important;
	outline-offset: 2px;
}

.sparkles-media-heading {
	padding: 26px 70px 20px 28px;
}

.sparkles-media-heading h2,
.sparkles-media-heading p {
	margin: 0;
}

.sparkles-media-heading h2 {
	color: #17324d;
	font-size: clamp(26px, 4vw, 38px);
	line-height: 1.15;
}

.sparkles-media-kicker {
	margin-bottom: 6px !important;
	color: #b43b72;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 1.3px;
	text-transform: uppercase;
}

.sparkles-media-panel--video video {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: 0 0 24px 24px;
	background: #071019;
}

.sparkles-media-panel--audio {
	width: min(460px, 92vw);
	padding: 34px 30px 30px;
	overflow: hidden;
	background: linear-gradient(160deg, #fff9e7 0%, #fff 36%, #eefaf8 100%);
	text-align: center;
}

.sparkles-media-panel--audio .sparkles-media-heading {
	padding: 16px 24px 22px;
}

.sparkles-media-panel--audio .sparkles-media-heading > p:last-child {
	margin-top: 5px;
	color: #526577;
	font-size: 17px;
}

.sparkles-media-panel--audio audio {
	display: block;
	width: 100%;
	min-height: 54px;
	border-radius: 999px;
	box-shadow: 0 8px 24px rgba(23, 50, 77, .12);
}

.sparkles-audio-art {
	position: relative;
	width: 118px;
	height: 118px;
	margin: 6px auto 0;
	overflow: hidden;
	border-radius: 50%;
	background: conic-gradient(from 220deg, #ff5d8f, #ffcf33, #45d6c7, #8d6df1, #ff5d8f);
	box-shadow: 0 12px 28px rgba(180, 59, 114, .2);
}

.sparkles-audio-art img {
	position: absolute;
	top: 3px;
	left: 50%;
	display: block;
	width: auto;
	max-width: none;
	height: 112px;
	margin: 0;
	transform: translateX(-50%);
}

.sparkles-library-video-feature {
	box-sizing: border-box;
	padding: 34px 28px;
	background: linear-gradient(115deg, #eaf5ff 0%, #fff7df 52%, #fff0f5 100%);
}

.sparkles-library-video-feature__inner {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 24px;
	width: min(1120px, 100%);
	margin: 0 auto;
	padding: 26px 30px;
	border: 1px solid rgba(23, 50, 77, .1);
	border-radius: 24px;
	background: rgba(255, 255, 255, .86);
	box-shadow: 0 14px 36px rgba(23, 50, 77, .09);
}

.sparkles-library-video-feature__icon {
	display: grid;
	place-items: center;
	width: 72px;
	height: 72px;
	border-radius: 22px;
	background: linear-gradient(145deg, #45d6c7, #2d6591);
	box-shadow: 0 8px 20px rgba(45, 101, 145, .22);
}

.sparkles-library-video-feature__icon span {
	width: 0;
	height: 0;
	margin-left: 5px;
	border-top: 13px solid transparent;
	border-bottom: 13px solid transparent;
	border-left: 20px solid #fff;
}

.sparkles-library-video-feature__copy > * {
	margin: 0;
}

.sparkles-library-video-feature__copy > p {
	margin-bottom: 4px;
	color: #b43b72;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 1.2px;
	text-transform: uppercase;
}

.sparkles-library-video-feature__copy h2 {
	color: #17324d;
	font-size: clamp(24px, 3vw, 32px);
	line-height: 1.16;
}

.sparkles-library-video-feature__copy > span {
	display: block;
	margin-top: 6px;
	color: #526577;
	font-size: 16px;
	line-height: 1.5;
}

.sparkles-library-video-feature__button {
	min-height: 50px;
	padding: 13px 22px !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: #b43b72 !important;
	box-shadow: 0 8px 20px rgba(180, 59, 114, .22) !important;
	color: #fff !important;
	font-size: 16px !important;
	font-weight: 800 !important;
	white-space: nowrap;
	cursor: pointer;
}

.sparkles-library-video-feature__button:hover,
.sparkles-library-video-feature__button:focus-visible {
	background: #8f2858 !important;
	outline: 3px solid #f6b94b !important;
	outline-offset: 3px;
	transform: translateY(-1px);
}

@media (max-width: 820px) {
	.sparkles-library-video-feature__inner {
		grid-template-columns: auto minmax(0, 1fr);
	}

	.sparkles-library-video-feature__button {
		grid-column: 1 / -1;
		justify-self: start;
	}
}

@media (max-width: 560px) {
	.sparkles-media-dialog {
		padding: 12px;
	}

	.sparkles-media-panel {
		width: 96vw;
		max-height: calc(100vh - 24px);
		border-radius: 20px;
	}

	.sparkles-media-heading {
		padding: 20px 58px 16px 18px;
	}

	.sparkles-media-panel--video video {
		border-radius: 0 0 18px 18px;
	}

	.sparkles-media-panel--audio {
		padding: 28px 18px 22px;
	}

	.sparkles-library-video-feature {
		padding: 24px 18px;
	}

	.sparkles-library-video-feature__inner {
		grid-template-columns: 1fr;
		gap: 16px;
		padding: 24px 20px;
		text-align: center;
	}

	.sparkles-library-video-feature__icon,
	.sparkles-library-video-feature__button {
		justify-self: center;
	}

	.sparkles-library-video-feature__button {
		width: 100%;
		white-space: normal;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sparkles-media-dialog,
	.sparkles-media-panel,
	.sparkles-library-video-feature__button {
		transition: none !important;
	}
}
