/* ==========================================================================
   Siam District — Homepage "Backed by Fighters" video marquee
   ========================================================================== */

.fighters {
	background: var(--sd-color-white);
	padding: 64px 0;
	overflow: hidden;
}

.fighters__heading {
	text-align: center;
	max-width: var(--sd-container-width);
	margin: 0 auto 40px;
	padding: 0 24px;
}

.fighters__title {
	position: relative;
	display: inline-block;
	margin: 0 0 12px;
	padding: 0 24px;
	font-family: var(--sd-font-heading);
	font-size: 40px;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--sd-color-brand);
}

.fighters__title::before,
.fighters__title::after {
	content: "";
	position: absolute;
	top: 50%;
	width: 100vw;
	max-width: 320px;
	height: 1px;
	background: var(--sd-color-brand);
}

.fighters__title::before {
	right: 100%;
}

.fighters__title::after {
	left: 100%;
}

.fighters__subtitle {
	margin: 0;
	font-family: var(--sd-font-body);
	font-size: 15px;
	color: var(--sd-color-body-text);
}

/* ---- Marquee ---- */

/* Real horizontally-scrollable strip (mouse drag via scrollbar, trackpad
   swipe, touch swipe on mobile, and — see backed-by-fighters.js — plain
   vertical mouse-wheel too, converted to horizontal scroll). Used to be a
   pure CSS auto-scroll animation, but that only ever paused on hover
   (desktop) and didn't respond to touch at all (mobile) — a real
   scrollable list works the same way, on every input method, everywhere. */
.fighters__marquee {
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scroll-snap-type: x proximity;
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
	mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
}

.fighters__track {
	display: flex;
	width: max-content;
	gap: 20px;
	padding: 0 24px;
}

.fighter-card {
	flex: 0 0 240px;
	scroll-snap-align: start;
	background: var(--sd-color-page-bg);
	border-radius: var(--sd-radius);
	overflow: hidden;
}

.fighter-card__caption {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 0;
	padding: 14px 16px;
	font-family: var(--sd-font-body);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--sd-color-body-text);
}

.fighter-card__caption svg {
	flex-shrink: 0;
	margin-top: 1px;
	width: 15px;
	height: 15px;
	stroke: var(--sd-color-brand);
	fill: none;
}

.fighter-card__video {
	position: relative;
	aspect-ratio: 9 / 16;
	background: #000000;
}

.fighter-card__video iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* ---- Follow card — same footprint as a video card, sits in the loop ---- */

.fighter-card--follow {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	aspect-ratio: 9 / 16.85;
	background: var(--sd-color-brand);
	color: var(--sd-color-button-text);
	text-align: center;
	padding: 24px;
}

.fighter-card--follow svg {
	width: 34px;
	height: 34px;
	stroke: currentColor;
	fill: none;
}

.fighter-card--follow__title {
	font-family: var(--sd-font-heading);
	font-size: 19px;
	font-weight: 700;
	text-transform: uppercase;
	line-height: 1.2;
}

.fighter-card--follow__handle {
	font-family: var(--sd-font-button);
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 8px 18px;
	border: 1.5px solid var(--sd-color-button-text);
	border-radius: var(--sd-radius);
	transition: background-color 0.15s ease, color 0.15s ease;
}

.fighter-card--follow:hover .fighter-card--follow__handle,
.fighter-card--follow:focus-visible .fighter-card--follow__handle {
	background: var(--sd-color-button-text);
	color: var(--sd-color-brand);
}

@media (max-width: 599.98px) {
	.fighters {
		padding: 40px 0;
	}

	.fighter-card {
		flex-basis: 170px;
	}

	.fighters__title {
		font-size: 24px;
	}

	.fighters__title::before,
	.fighters__title::after {
		max-width: 40px;
	}
}
