.fbm {
	--_pink: var(--fb-pink, #ff1f7a);
	--_red: var(--fb-red, #e8000d);
	--_flash: var(--fb-flash, #ffe600);
	--_text: var(--fb-text, #0a0a0a);
	--_muted: var(--fb-muted, #5d5a60);
	--_line: var(--fb-line, #ebe5e8);
	--_bg: var(--fb-bg, #fff);
	--_surface: var(--fb-surface, #fff);
	--_blush: var(--fb-blush, #fff0f6);
	--_mark: var(--fb-mark, #ffe600);
	--_display: var(--fb-display, "Anton", Impact, "Arial Narrow Bold", sans-serif);
	--_body: var(--fb-body, system-ui, sans-serif);
	--_radius: var(--fb-radius, 16px);
	--_radius-sm: var(--fb-radius-sm, 10px);
	--_ph: radial-gradient(circle at 72% 22%, rgba(255, 230, 0, .55), transparent 42%), linear-gradient(150deg, var(--_pink), #6b00ff);
}
.fbm-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.fbm-slider {
	--h: clamp(460px, 72vh, 780px);
	position: relative;
	overflow: hidden;
	border-radius: calc(var(--_radius) + 6px);
	background: #000;
	color: #fff;
	isolation: isolate;
	container-type: inline-size;
}
.fbm-slider--medium { --h: clamp(380px, 56vh, 620px); }
.fbm-slider--short { --h: clamp(300px, 40vh, 440px); }

.fbm-slider__track { position: relative; height: var(--h); }
.fbm-slide__media { position: absolute; inset: 0; overflow: hidden; }
.fbm-slide__media img { width: 100%; height: 100%; object-fit: cover; }
.fbm-slide__ph { position: absolute; inset: 0; background: var(--_ph); }

/* fade modes (cinema + split) */
[data-mode="fade"] .fbm-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity .7s ease, visibility 0s linear .7s;
}
[data-mode="fade"] .fbm-slide.is-active {
	opacity: 1;
	visibility: visible;
	z-index: 1;
	transition: opacity .7s ease;
}
.fbm-slider--kenburns .fbm-slide.is-active .fbm-slide__media img { animation: fbm-kenburns 14s ease-out both; }
@keyframes fbm-kenburns { from { transform: scale(1); } to { transform: scale(1.12) translate(-1.5%, -1%); } }

/* ---- cinema ---- */
.fbm-slider--cinema .fbm-slide__body {
	position: absolute;
	inset: auto 0 0 0;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
	max-height: 100%;
	overflow: hidden;
	padding: clamp(60px, 10cqi, 140px) clamp(20px, 5cqi, 64px) clamp(76px, 9cqi, 96px);
	background: linear-gradient(transparent, rgba(0, 0, 0, .55) 35%, rgba(0, 0, 0, .9));
}
.fbm-slide__labels { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fbm-slide__label {
	padding: 5px 13px;
	border-radius: 999px;
	background: var(--_pink);
	color: #fff;
	font-weight: 800;
	font-size: .875rem;
}
.fbm-slide__badge {
	padding: 5px 13px;
	border-radius: 999px;
	background: var(--_flash);
	color: #000;
	font-weight: 800;
	font-size: .875rem;
	box-shadow: 3px 3px 0 #000;
	transform: rotate(-3deg);
}
.fbm-slide__title {
	margin: 0;
	font-family: var(--_display);
	font-weight: 400;
	font-size: clamp(1.7rem, 6.2cqi, 4.8rem);
	line-height: 1.06;
	max-width: 19ch;
}
.fbm-slide__title a { color: inherit; text-decoration: none; }
.fbm-slide__title span {
	background: var(--_flash);
	color: #000;
	padding: 0 .14em;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}
.fbm-slide__title a:hover span { background: #fff; }
.fbm-slide__text { margin: 0; max-width: 58ch; color: rgba(255, 255, 255, .85); font-size: clamp(1rem, 1.4vw, 1.15rem); }
.fbm-slide__btn {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	padding: 0 26px;
	border-radius: 999px;
	background: #fff;
	color: #000;
	font-weight: 800;
	text-decoration: none;
}
.fbm-slide__btn:hover { background: var(--_pink); color: #fff; }

/* ---- split ---- */
.fbm-slider--split .fbm-slide { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
.fbm-slider--split .fbm-slide__media { position: relative; inset: auto; }
.fbm-slider--split .fbm-slide__body {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	gap: 16px;
	padding: clamp(28px, 4vw, 56px) clamp(24px, 4vw, 56px) clamp(86px, 9vw, 110px);
	overflow: hidden;
	background: #000;
}
.fbm-slider--split .fbm-slide__body::before {
	content: "";
	position: absolute;
	right: -30%; top: -30%;
	width: 90%;
	aspect-ratio: 1;
	background: radial-gradient(circle, rgba(255, 31, 122, .55), transparent 62%);
	pointer-events: none;
}
.fbm-slider--split .fbm-slide__body > * { position: relative; }
.fbm-slider--split .fbm-slide__title { font-size: clamp(1.6rem, 4.2cqi, 3.6rem); }
.fbm-slider--split .fbm-slide__title span { background: none; color: #fff; padding: 0; }
.fbm-slider--split .fbm-slide__title a:hover span { color: var(--_flash); background: none; }

/* ---- cards (scroll-snap carousel) ---- */
.fbm-slider--cards { background: none; color: var(--_text); border-radius: 0; overflow: visible; }
.fbm-slider--cards .fbm-slider__track {
	display: flex;
	gap: clamp(14px, 2vw, 22px);
	height: auto;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	padding-bottom: 4px;
}
.fbm-slider--cards .fbm-slider__track::-webkit-scrollbar { display: none; }
.fbm-slider--cards .fbm-slide {
	position: relative;
	flex: 0 0 clamp(250px, 31%, 400px);
	aspect-ratio: 3 / 4;
	overflow: hidden;
	border-radius: var(--_radius);
	scroll-snap-align: start;
	background: #000;
	color: #fff;
}
.fbm-slider--cards .fbm-slide__body {
	position: absolute;
	inset: auto 0 0 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	padding: 90px 20px 20px;
	background: linear-gradient(transparent, rgba(0, 0, 0, .88));
}
.fbm-slider--cards .fbm-slide__title { font-size: clamp(1.5rem, 2.2vw, 2rem); }
.fbm-slider--cards .fbm-slide__title span { background: none; color: #fff; padding: 0; }
.fbm-slider--cards .fbm-slide__title a:hover span { background: var(--_flash); color: #000; }
.fbm-slider--cards .fbm-slide__text { font-size: .9375rem; }
.fbm-slider--cards .fbm-slide__btn { display: none; }

/* ---- controls ---- */
.fbm-slider__controls {
	position: absolute;
	right: clamp(16px, 3vw, 36px);
	bottom: clamp(16px, 3vw, 32px);
	z-index: 3;
	display: flex;
	align-items: center;
	gap: 10px;
}
.fbm-slider--cards .fbm-slider__controls { position: static; justify-content: flex-end; margin-top: 16px; }
.fbm-slider__btn {
	display: grid;
	place-items: center;
	width: 48px; height: 48px;
	border: 2px solid currentColor;
	border-radius: 50%;
	background: transparent;
	color: #fff;
	cursor: pointer;
	transition: background .15s, color .15s;
}
.fbm-slider--cards .fbm-slider__btn { color: var(--_text); }
.fbm-slider__btn:hover { background: var(--_pink); border-color: var(--_pink); color: #fff; }
.fbm-slider__pause .i-play { display: none; }
.fbm-slider__pause[aria-pressed="true"] .i-play { display: block; }
.fbm-slider__pause[aria-pressed="true"] .i-pause { display: none; }
.fbm-slider__dots { display: flex; gap: 6px; margin-right: 6px; }
.fbm-slider__dot {
	width: 10px; height: 10px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, .45);
	cursor: pointer;
	transition: width .25s, background .25s;
}
.fbm-slider__dot[aria-current="true"] { width: 30px; background: var(--_flash); }
.fbm-slider__progress { position: absolute; inset: 0 0 auto 0; z-index: 3; height: 4px; background: rgba(255, 255, 255, .15); }
.fbm-slider__progress span { display: block; height: 100%; width: 0; background: var(--_pink); }
@keyframes fbm-progress { from { width: 0; } to { width: 100%; } }

@media (max-width: 760px) {
	.fbm-slider--split .fbm-slide { grid-template-columns: 1fr; grid-template-rows: 55% 45%; }
	.fbm-slider--split .fbm-slide__body { padding-bottom: 80px; }
	.fbm-slider--cards .fbm-slide { flex-basis: 78%; }
	.fbm-slider__dots { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.fbm-slider *, .fbm-slider *::before { animation: none !important; transition: none !important; }
}

/* keep long headlines inside the slide on narrow containers */
@container (max-width: 720px) {
	.fbm-slider--cinema .fbm-slide__text { display: none; }
	.fbm-slider--cinema .fbm-slide__btn { min-height: 42px; padding: 0 18px; }
}
@container (max-width: 480px) {
	.fbm-slider--cinema .fbm-slide__btn { display: none; }
	.fbm-slider__dots { display: none; }
}
