
.bb-library {
	--bb-accent: #93248e;
	font-family: Barlow, system-ui, -apple-system, "Segoe UI", sans-serif;
	color: #1a1c1d;
	background: var(--bb-bg);
}

.bb-library * {
	box-sizing: border-box;
}

.bb-library__header, .bb-library__filters, .bb-library__status, .bb-library__series-heading, .bb-library__grid, .bb-library__empty {
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
}

.bb-library__header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
}

.bb-library__header h2 {
	font-size: 26px;
	font-weight: 500;
	line-height: 1.25;
	margin: 0 0 6px;
}

.bb-library__header p {
	font-size: 15px;
	color: #52424d;
	margin: 0;
}

.bb-library__search {
	display: grid;
	gap: 6px;
	flex: 0 1 340px;
}

.bb-library__search span, .bb-library__filter-row > span {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: #52424d;
}

.bb-library__search input {
	width: 100%;
	min-height: 44px;
	border: 1px solid #d7c0ce;
	border-radius: 2px;
	background: #fff;
	padding: 0 13px;
	font: inherit;
	font-size: 14px;
}

.bb-library__filters {
	display: grid;
	gap: 12px;
	margin-top: 18px;
	padding: 15px 0;
	border-block: 1px solid #e2e2e4;
}

.bb-library__filter-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 7px;
}

.bb-library__filter-row > span {
	width: 68px;
}

.bb-library__filter-row button {
	min-height: 38px;
	padding: 0 13px;
	border: 1px solid #d7c0ce;
	border-radius: 999px;
	background: #fff;
	color: #1a1c1d;
	font: 500 13px inherit;
	cursor: pointer;
}

.bb-library__filter-row button.is-active {
	border-color: var(--bb-accent);
	background: var(--bb-accent);
	color: #fff;
}

.bb-library__filter-row[data-filter-group="series"] button {
	min-height: 44px;
	padding: 0 16px;
	border-radius: 2px;
	font-weight: 600;
}

.bb-library__status {
	font-size: 12px;
	color: #52424d;
	padding: 14px 0 18px;
}

.bb-library__series-heading {
	display: flex;
	align-items: baseline;
	gap: 12px;
	margin-bottom: 18px;
	padding-bottom: 9px;
	border-bottom: 2px solid #1a1c1d;
}

.bb-library__series-heading h3 {
	margin: 0;
	font-size: 22px;
	font-weight: 500;
	line-height: 1.3;
}

.bb-library__series-heading > span {
	font-size: 12px;
	color: #52424d;
}

.bb-library__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
	gap: 24px;
}

.bb-session {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: #fff;
	border-radius: 2px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}

.bb-session[hidden] {
	display: none;
}

.bb-session__media {
	position: relative;
	display: block;
	aspect-ratio: 16/9;
	background: radial-gradient(circle at 85% 15%, color-mix(in srgb, var(--bb-accent) 60%, transparent), transparent 60%), #1a1c1d;
	background-position: center;
	background-size: cover;
	color: #fff;
	text-decoration: none;
}

.bb-session__format {
	position: absolute;
	left: 15px;
	top: 15px;
	padding: 4px 8px;
	border-radius: 2px;
	background: var(--bb-accent);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .08em;
}

.bb-session__brand {
	position: absolute;
	left: 15px;
	bottom: 12px;
	font-size: 11px;
	letter-spacing: .1em;
	color: rgba(255, 255, 255, .55);
}

.bb-session__play {
	position: absolute;
	left: 50%;
	top: 50%;
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	transform: translate(-50%, -50%);
	border-radius: 50%;
	background: #fff;
	color: var(--bb-accent);
	font-size: 18px;
	padding-left: 3px;
}

.bb-session__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 12px;
	padding: 20px;
}

.bb-session__meta {
	font-size: 11px;
	letter-spacing: .1em;
	color: #52424d;
}

.bb-session h3 {
	font-size: 19px;
	font-weight: 600;
	line-height: 1.3;
	margin: 0;
}

.bb-session p {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	color: #52424d;
	font-size: 14px;
	line-height: 1.55;
	margin: 0;
}

.bb-session__description {
	position: relative;
}

.bb-session__description p.is-expanded {
	display: inline;
	overflow: visible;
	-webkit-line-clamp: unset;
}

.bb-session__description button {
	position: absolute;
	right: 0;
	bottom: 0;
	display: inline-block;
	margin: 0;
	padding: 0 0 0 24px;
	border: 0;
	background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff 20px);
	color: var(--bb-accent);
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.55;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.bb-session__description button[aria-expanded="true"] {
	position: static;
	margin-left: 4px;
	padding: 0;
	background: transparent;
}

.bb-session__description button[hidden] {
	display: none;
}

.bb-session__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.bb-session__tags span {
	padding: 4px 10px;
	border-radius: 999px;
	background: #f3f3f5;
	color: #52424d;
	font-size: 12px;
	font-weight: 500;
}

.bb-session__people {
	display: grid;
	gap: 9px;
	padding-top: 12px;
	border-top: 1px solid #e2e2e4;
	margin-top: auto;
	font-size: 13px;
	line-height: 1.45;
}

.bb-session__people div {
	display: block;
}

.bb-session__people b {
	display: block;
	margin-bottom: 3px;
	font-size: 10px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: #52424d;
}

.bb-session__people .bio-modal-trigger {
	display: inline;
	min-height: 0;
	background: linear-gradient(279.41deg, #ef71bc -20.93%, #db51f2 43.63%, #2a3ffc 105.3%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	position: relative;
	transition: all .5s ease;
	cursor: pointer;
	font: inherit;
	text-decoration: none;
}

.bb-session__people .bio-modal-trigger:hover {
	filter: brightness(.78);
}

.bb-session__people a {
	min-height: 36px;
	display: flex;
	align-items: center;
	color: var(--bb-accent);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

.bb-library__empty {
	padding: 48px 24px;
	background: #fff;
	border: 1px solid #e2e2e4;
	text-align: center;
}

.bb-library__empty[hidden] {
	display: none;
}

.bb-modal-open {
	overflow: hidden;
}

.bb-video-modal {
	position: fixed;
	z-index: 999999;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 24px;
}

.bb-video-modal[hidden] {
	display: none;
}

.bb-video-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(5, 4, 10, .88);
	backdrop-filter: blur(4px);
}

.bb-video-modal__dialog {
	position: relative;
	z-index: 1;
	width: min(1100px, 100%);
	overflow: hidden;
	border-radius: 4px;
	background: #111;
	box-shadow: 0 24px 80px rgba(0, 0, 0, .55);
}

.bb-video-modal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	min-height: 56px;
	padding: 10px 12px 10px 20px;
	background: #fff;
	color: #fff;
}

.bb-video-modal__header h3 {
	overflow: hidden;
	margin: 0;
	color: #1a1c1d;
	font-size: 17px;
	font-weight: 500;
	line-height: 1.3;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.bb-video-modal__actions {
	display: flex;
	align-items: center;
	gap: 4px;
	flex: none;
}

.bb-video-modal__header button {
	border: 0;
	background: transparent;
	color: #000;
	cursor: pointer;
}

.bb-video-modal__share {
	display: flex;
	align-items: center;
	gap: 7px;
	min-height: 40px;
	padding: 0 10px;
	font: 600 13px/1 Barlow, system-ui, sans-serif;
}

.bb-video-modal__share svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
}

.bb-video-modal__close {
	flex: none;
	width: 40px;
	height: 40px;
	padding: 0;
	font: 300 34px/1 Arial, sans-serif;
}

.bb-video-modal__player {
	position: relative;
	aspect-ratio: 16/9;
	background: #000;
}

.bb-video-modal__player iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

@media (max-width:767px) {
	.bb-library {
		padding: 36px 16px 52px;
	}
	
	.bb-library__header {
		align-items: stretch;
		flex-direction: column;
	}
	
	.bb-library__search {
		flex-basis: auto;
	}
	
	.bb-library__filter-row > span {
		width: 100%;
		margin-bottom: 2px;
	}
	
	.bb-video-modal {
		padding: 12px;
	}
	
	.bb-video-modal__header {
		min-height: 50px;
		padding-left: 14px;
	}
	
	.bb-video-modal__header h3 {
		font-size: 14px;
	}
}
