.bsmp-video-library,
.bsmp-context-videos {
	box-sizing: border-box;
	clear: both;
	margin: 2rem 0;
	padding: clamp(1rem, 2.4vw, 1.6rem);
	border: 1px solid #d2e4e7;
	border-top: 4px solid #d59a32;
	border-radius: 12px;
	background: linear-gradient(145deg, #f3fafb, #fff);
	color: #102634;
	box-shadow: 0 16px 42px rgba(16, 52, 64, .08);
}

.bsmp-video-library__head,
.bsmp-context-videos > header {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(250px, 380px);
	align-items: end;
	gap: 1rem;
	margin: 0 0 1rem;
}

.bsmp-context-videos > header {
	display: block;
}

.bsmp-video-library__head h2,
.bsmp-context-videos > header h2 {
	margin: .1rem 0 .35rem;
	color: #102f3c;
	font-size: clamp(1.7rem, 3vw, 2.45rem);
	line-height: 1.1;
}

.bsmp-video-library__head p,
.bsmp-context-videos > header > p:last-child {
	max-width: 780px;
	margin: 0;
	color: #5e7280;
	line-height: 1.55;
}

.bsmp-video-library__search label {
	display: block;
	margin: 0 0 .35rem;
	color: #62248b;
	font-size: .78rem;
	font-weight: 850;
	text-transform: uppercase;
}

.bsmp-video-library__search input {
	box-sizing: border-box;
	width: 100%;
	min-height: 46px;
	margin: 0 !important;
	padding: 0 14px !important;
}

.bsmp-video-library__filters {
	display: flex;
	gap: .45rem;
	overflow: auto;
	margin: 0 0 1rem;
	padding: 0 0 .35rem;
	scrollbar-width: thin;
}

.bsmp-video-library__filter {
	flex: 0 0 auto;
	min-height: 40px !important;
	margin: 0 !important;
	padding: .45rem .75rem !important;
	border: 1px solid #c9dde1 !important;
	border-radius: 8px !important;
	background: #fff !important;
	color: #0b6575 !important;
	box-shadow: none !important;
}

.bsmp-video-library__filter[aria-pressed="true"] {
	border-color: #62248b !important;
	background: #62248b !important;
	color: #fff !important;
}

.bsmp-video-library__grid,
.bsmp-context-videos__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
	gap: max(15px, 1rem);
}

.bsmp-video-card,
.bsmp-video-experience {
	box-sizing: border-box;
	min-width: 0;
	overflow: hidden;
	border: 1px solid #d2e4e7;
	border-radius: 11px;
	background: #fff;
	box-shadow: 0 12px 30px rgba(16, 38, 52, .08);
}

.bsmp-video-card {
	display: grid;
	grid-template-rows: auto 1fr;
}

.bsmp-video-card[hidden] {
	display: none !important;
}

.bsmp-video-card__media {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #0d3542;
}

.bsmp-video-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.bsmp-video-card__duration,
.bsmp-video-experience__head > span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 28px;
	padding: .2rem .5rem;
	border-radius: 6px;
	background: rgba(5, 23, 31, .88);
	color: #fff;
	font-size: .74rem;
	font-weight: 850;
}

.bsmp-video-card__duration {
	position: absolute;
	right: .55rem;
	bottom: .55rem;
}

.bsmp-video-card__body {
	display: flex;
	flex-direction: column;
	padding: 1rem;
}

.bsmp-video-card__terms {
	margin: 0 0 .3rem !important;
	color: #6f318f !important;
	font-size: .7rem !important;
	font-weight: 850 !important;
	letter-spacing: .035em;
	text-transform: uppercase;
}

.bsmp-video-card h3 {
	margin: 0 0 .4rem;
	color: #102f3c;
	font-size: 1.12rem;
	line-height: 1.25;
}

.bsmp-video-card__body > p:not(.bsmp-video-card__terms) {
	margin: 0 0 .75rem;
	color: #5e7280;
	font-size: .9rem;
	line-height: 1.5;
}

.bsmp-video-card__actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: .6rem;
	margin-top: auto;
}

.bsmp-video-watch,
.bsmp-video-access {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: .45rem !important;
	min-height: 42px !important;
	margin: 0 !important;
	padding: .5rem .8rem !important;
	border: 1px solid #0b7180 !important;
	border-radius: 8px !important;
	background: linear-gradient(135deg, #0b7180, #249b99) !important;
	color: #fff !important;
	font-size: .85rem !important;
	font-weight: 850 !important;
	line-height: 1.2 !important;
	text-decoration: none !important;
}

.bsmp-video-watch::before {
	content: "";
	width: 0;
	height: 0;
	border-top: 5px solid transparent;
	border-bottom: 5px solid transparent;
	border-left: 8px solid currentColor;
}

.bsmp-video-library__status,
.bsmp-video-library__empty,
.bsmp-video-empty {
	margin: .8rem 0 0;
	color: #5e7280;
	font-size: .86rem;
}

.bsmp-video-library__empty,
.bsmp-video-empty {
	padding: 1rem;
	border: 1px dashed #b9ced4;
	border-radius: 8px;
	background: #fff;
}

.bsmp-video-experience__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 1rem .9rem;
	border-bottom: 1px solid #d8e7ea;
}

.bsmp-video-experience__head h3 {
	margin: .1rem 0 .3rem;
	color: #102f3c;
	font-size: clamp(1.15rem, 2vw, 1.55rem);
	line-height: 1.15;
}

.bsmp-video-experience__head p:last-child {
	margin: 0;
	color: #607681;
	font-size: .92rem;
	line-height: 1.5;
}

.bsmp-custom-video {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: radial-gradient(circle at 50% 42%, #155f6d, #071f2a 70%);
	color: #fff;
}

.bsmp-custom-video video,
.bsmp-custom-video iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	background: #000;
	object-fit: contain;
}

.bsmp-custom-video__embed {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	background-image: linear-gradient(rgba(5, 28, 38, .5), rgba(5, 28, 38, .78)), var(--bsmp-video-poster, linear-gradient(135deg, #0b3544, #1d8e91));
	background-position: center;
	background-size: cover;
}

.bsmp-custom-video__start {
	display: grid !important;
	grid-template-columns: 54px auto;
	grid-template-rows: auto auto;
	align-items: center !important;
	gap: 0 .75rem !important;
	min-width: 190px !important;
	min-height: 76px !important;
	margin: 0 !important;
	padding: .7rem 1rem !important;
	border: 1px solid rgba(255, 255, 255, .62) !important;
	border-radius: 12px !important;
	background: rgba(6, 47, 61, .88) !important;
	color: #fff !important;
	box-shadow: 0 16px 40px rgba(0, 0, 0, .35) !important;
	text-align: left !important;
}

.bsmp-custom-video__start > span {
	grid-row: 1 / 3;
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: #fff;
	color: #0b7180;
	font-size: 1.15rem;
}

.bsmp-custom-video__start strong,
.bsmp-custom-video__start small {
	display: block;
	color: #fff;
}

.bsmp-custom-video__start small {
	opacity: .82;
}

.bsmp-custom-video__controls {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	display: grid;
	grid-template-columns: 44px minmax(80px, 1fr) auto 44px 44px 44px;
	align-items: center;
	gap: .45rem;
	padding: .65rem .75rem;
	background: linear-gradient(transparent, rgba(2, 17, 24, .94));
	transition: opacity .2s ease;
}

.bsmp-custom-video__controls button {
	display: grid !important;
	place-items: center !important;
	width: 42px !important;
	height: 42px !important;
	min-width: 42px !important;
	min-height: 42px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 1px solid rgba(255, 255, 255, .35) !important;
	border-radius: 8px !important;
	background: rgba(4, 48, 61, .86) !important;
	color: #fff !important;
	box-shadow: none !important;
	font-size: 1rem !important;
	line-height: 1 !important;
}

.bsmp-custom-video__timeline {
	width: 100%;
	margin: 0 !important;
	accent-color: #d9a347;
}

.bsmp-custom-video__time {
	min-width: 84px;
	color: #fff;
	font-variant-numeric: tabular-nums;
	font-size: .78rem;
	font-weight: 800;
	text-align: center;
	white-space: nowrap;
}

.bsmp-custom-video__cc[aria-pressed="true"] {
	border-color: #e9bd6d !important;
	background: #d59a32 !important;
	color: #092734 !important;
}

.bsmp-video-transcript {
	margin: 0 !important;
	padding: .75rem 1rem 0;
}

.bsmp-video-transcript a {
	color: #0b7180;
	font-weight: 850;
}

.bsmp-video-related {
	padding: .85rem 1rem 1rem;
}

.bsmp-video-related > strong {
	display: block;
	margin: 0 0 .55rem;
	color: #102f3c;
	font-size: .78rem;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.bsmp-video-related > div {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
}

.bsmp-video-related a {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	min-height: 38px;
	padding: .42rem .65rem;
	border: 1px solid #c8dde0;
	border-radius: 7px;
	background: #f6fbfb;
	color: #0b6575;
	font-size: .8rem;
	font-weight: 800;
	text-decoration: none;
}

.bsmp-video-related a span {
	color: #703393;
	font-size: .66rem;
	letter-spacing: .03em;
	text-transform: uppercase;
}

.bsmp-video-modal[hidden] {
	display: none !important;
}

.bsmp-video-modal {
	position: fixed;
	z-index: 100120;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 20px;
	background: rgba(4, 22, 30, .84);
}

.bsmp-video-modal__dialog {
	width: min(1000px, 100%);
	max-height: calc(100vh - 40px);
	overflow: auto;
	border: 1px solid rgba(255, 255, 255, .2);
	border-radius: 12px;
	background: #0b2d39;
	color: #fff;
	box-shadow: 0 28px 80px rgba(0, 0, 0, .45);
}

.bsmp-video-modal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: .8rem 1rem;
	border-bottom: 1px solid rgba(255, 255, 255, .16);
}

.bsmp-video-modal__header h2 {
	margin: 0 !important;
	color: #fff !important;
	font-size: 1.18rem !important;
}

.bsmp-video-modal__close {
	display: grid !important;
	place-items: center !important;
	width: 42px !important;
	height: 42px !important;
	min-width: 42px !important;
	min-height: 42px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 1px solid rgba(255, 255, 255, .3) !important;
	border-radius: 8px !important;
	background: rgba(255, 255, 255, .08) !important;
	color: #fff !important;
	box-shadow: none !important;
}

.bsmp-video-modal__close svg {
	width: 22px;
	height: 22px;
}

.bsmp-video-modal__player {
	background: #000;
}

.bsmp-video-modal__copy {
	padding: .9rem 1rem;
	color: #dff5ef;
}

.bsmp-video-modal__copy p {
	margin: 0 0 .65rem;
	color: #dff5ef;
	line-height: 1.55;
}

.bsmp-video-modal__copy a {
	color: #fff !important;
	font-weight: 850;
}

.bsmp-video-modal__copy .bsmp-video-related {
	padding: .4rem 0 0;
}

.bsmp-video-modal__copy .bsmp-video-related > strong,
.bsmp-video-modal__copy .bsmp-video-related a,
.bsmp-video-modal__copy .bsmp-video-related a span {
	color: #fff;
}

.bsmp-video-library__sr {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
}

.bsmp-video-modal-open {
	overflow: hidden !important;
}

@media (max-width: 700px) {
	.bsmp-video-library,
	.bsmp-context-videos {
		padding: .85rem;
	}

	.bsmp-video-library__head {
		grid-template-columns: 1fr;
	}

	.bsmp-video-library__grid,
	.bsmp-context-videos__grid {
		grid-template-columns: 1fr;
	}

	.bsmp-video-modal {
		padding: 8px;
	}

	.bsmp-video-modal__dialog {
		max-height: calc(100vh - 16px);
	}

	.bsmp-custom-video__controls {
		grid-template-columns: 42px minmax(60px, 1fr) 42px 42px;
		gap: .3rem;
		padding: .5rem;
	}

	.bsmp-custom-video__time,
	.bsmp-custom-video__cc {
		display: none !important;
	}
}
