/* ==========================================================
   Focus Rail Slider — styles
   ========================================================== */

.fr-root {
	--fr-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
	--fr-smooth: cubic-bezier(0.22, 1, 0.36, 1);
	--fr-bg: transparent;

	position: relative;
	width: 100%;
	height: 600px;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background-color: var(--fr-bg);
	color: #fff;
	outline: none;
	-webkit-user-select: none;
	user-select: none;
	direction: ltr;
}

.fr-root * {
	box-sizing: border-box;
}

/* Blurred ambient background */
.fr-bg-layer {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background-size: cover;
	background-position: center;
	filter: blur(60px) saturate(180%);
	opacity: 0;
	transform: scale(1.15);
	transition: opacity 0.8s ease, background-image 0.1s linear;
}

.fr-bg-layer.fr-bg-visible {
	opacity: 0.35;
}

.fr-bg-layer::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, var(--fr-bg) 0%, transparent 85%);
}

/* Stage / track */
.fr-stage {
	position: relative;
	z-index: 1;
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 16px;
	min-height: 0;
}

.fr-track {
	position: relative;
	margin: 0 auto;
	width: 100%;
	max-width: 1150px;
	height: 360px;
	perspective: 1200px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: grab;
	touch-action: pan-y;
}

.fr-track.fr-dragging {
	cursor: grabbing;
}

.fr-card {
	position: absolute;
	width: 280px;
	aspect-ratio: 3 / 4;
	border-radius: 18px;
	border-top: 1px solid rgba(255, 255, 255, 0.2);
	background: #171717;
	box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55);
	transform-style: preserve-3d;
	will-change: transform, opacity, filter;
	transition:
		transform 0.5s var(--fr-spring),
		opacity 0.5s var(--fr-smooth),
		filter 0.5s var(--fr-smooth);
	pointer-events: auto;
}

.fr-card.fr-active {
	z-index: 20;
	box-shadow: 0 25px 70px rgba(255, 255, 255, 0.08), 0 25px 60px rgba(0, 0, 0, 0.6);
}

.fr-card:not(.fr-active) {
	z-index: 10;
	cursor: pointer;
}

.fr-card-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 18px;
	pointer-events: none;
	display: block;
}

.fr-card-shine {
	position: absolute;
	inset: 0;
	border-radius: 18px;
	background: linear-gradient(to bottom, rgba(255, 255, 255, 0.1), transparent);
	pointer-events: none;
}

.fr-card-shade {
	position: absolute;
	inset: 0;
	border-radius: 18px;
	background: rgba(0, 0, 0, 0.1);
	mix-blend-mode: multiply;
	pointer-events: none;
}

/* Info row */
.fr-info-row {
	position: relative;
	z-index: 10;
	margin: 0 auto;
	padding: 24px 24px 32px;
	width: 100%;
	max-width: 900px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
}

.fr-text-block {
	flex: 1;
	min-width: 240px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 6px;
	text-align: left;
	min-height: 96px;
}

.fr-meta {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #34d399;
	transition: opacity 0.3s ease;
}

.fr-title {
	font-size: 30px;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: #fff;
	margin: 0;
	line-height: 1.2;
	transition: opacity 0.3s ease, transform 0.3s ease, filter 0.3s ease;
}

.fr-desc {
	max-width: 480px;
	color: #a3a3a3;
	margin: 0;
	font-size: 15px;
	line-height: 1.5;
	transition: opacity 0.3s ease, transform 0.3s ease, filter 0.3s ease;
}

.fr-text-fade .fr-meta,
.fr-text-fade .fr-title,
.fr-text-fade .fr-desc {
	opacity: 0;
	transform: translateY(6px);
	filter: blur(3px);
}

/* Controls */
.fr-controls {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-shrink: 0;
}

.fr-nav {
	display: flex;
	align-items: center;
	gap: 4px;
	background: rgba(23, 23, 23, 0.8);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 999px;
	padding: 4px;
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

.fr-nav button {
	all: unset;
	box-sizing: border-box !important;
	appearance: none !important;
	-webkit-appearance: none !important;
	border: none !important;
	background: transparent !important;
	color: #a3a3a3 !important;
	border-radius: 999px !important;
	width: auto !important;
	height: auto !important;
	min-width: 0 !important;
	margin: 0 !important;
	padding: 10px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	cursor: pointer !important;
	font-size: 0 !important;
	line-height: 1 !important;
	text-align: center !important;
	transition: background 0.2s ease, color 0.2s ease, transform 0.1s ease;
}

.fr-nav button:hover {
	background: rgba(255, 255, 255, 0.1) !important;
	color: #fff !important;
}

.fr-nav button:active {
	transform: scale(0.95);
}

.fr-arrow {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-top: 2px solid currentColor;
	border-right: 2px solid currentColor;
}

.fr-arrow-prev {
	transform: rotate(-135deg);
}

.fr-arrow-next {
	transform: rotate(45deg);
}

.fr-counter {
	min-width: 44px;
	text-align: center;
	font-size: 12px;
	font-family: monospace, monospace;
	color: #737373;
}

.fr-cta {
	box-sizing: border-box !important;
	display: inline-flex !important;
	width: auto !important;
	max-width: none !important;
	align-items: center !important;
	gap: 8px !important;
	background: #fff !important;
	color: #0a0a0a !important;
	border: none !important;
	border-radius: 999px !important;
	padding: 12px 20px !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	text-decoration: none !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	transition: transform 0.2s ease;
}

.fr-cta:hover {
	transform: scale(1.05);
	color: #0a0a0a !important;
}

.fr-cta:active {
	transform: scale(0.95);
}

.fr-cta-icon {
	width: 10px;
	height: 10px;
	border-top: 2px solid currentColor;
	border-right: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform 0.2s ease;
}

.fr-cta:hover .fr-cta-icon {
	transform: rotate(45deg) translate(2px, -2px);
}

/* Responsive */
@media (max-width: 768px) {
	.fr-root {
		height: 560px;
	}

	.fr-track {
		height: 300px;
	}

	.fr-card {
		width: 220px;
	}

	.fr-title {
		font-size: 24px;
	}

	.fr-info-row {
		justify-content: center;
		text-align: center;
	}

	.fr-text-block {
		text-align: center;
		align-items: center;
	}
}
