.fns {
	--fns-bar: 18px;
	--fns-fw: 230px;
	position: relative;
	height: var(--fns-h, 190px);
	overflow: hidden;
	direction: ltr;
	background: #17120d;
	border-radius: 3px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .35);
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
	margin: 1.2em 0;
}
.fns-track {
	display: flex;
	width: max-content;
	height: 100%;
	animation: fns-left var(--fns-dur, 120s) linear infinite;
	will-change: transform;
}
.fns[data-dir="ltr"] .fns-track { animation-name: fns-right; }
.fns:hover .fns-track,
.fns:focus-within .fns-track { animation-play-state: paused; }

@keyframes fns-left  { from { transform: translateX(0); }    to { transform: translateX(-50%); } }
@keyframes fns-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }

/* سوراخ‌های نوار فیلم */
.fns-set {
	position: relative;
	display: flex;
	flex: none;
	align-items: center;
	height: 100%;
}
.fns-set::before,
.fns-set::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	height: var(--fns-bar);
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='22' height='18'><rect x='6' y='4' width='10' height='10' rx='2.5' fill='%23efe5cf'/></svg>");
	background-repeat: repeat-x;
	opacity: .92;
}
.fns-set::before { top: 3px; }
.fns-set::after  { bottom: 3px; }

/* قاب‌ها: عرض ۲۳۰ + حاشیه ۱۲ = ۲۴۲ = ۱۱ برابر گام سوراخ‌ها */
.fns-frame {
	position: relative;
	display: block;
	flex: none;
	width: var(--fns-fw);
	height: calc(var(--fns-h, 190px) - 44px);
	margin: 0 6px;
	overflow: hidden;
	border-radius: 2px;
	background: #2a231b;
	outline: 1px solid rgba(255, 240, 210, .12);
	color: #f4ecd8;
	text-decoration: none;
}
.fns-frame:focus-visible { outline: 2px solid #f0a830; outline-offset: -2px; }

.fns-pic {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, #3a2f22, #1d1711);
}
.fns-pic::before {
	content: attr(data-label);
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 12px;
	text-align: center;
	font-size: 18px;
	font-weight: 700;
	color: rgba(239, 229, 207, .28);
	direction: rtl;
}
.fns-pic img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: filter .35s ease;
}
/* دانه‌های فیلم و تیرگی گوشه‌ها */
.fns-pic::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	box-shadow: inset 0 0 30px rgba(0, 0, 0, .55);
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .7 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
	mix-blend-mode: overlay;
	opacity: .55;
}

.fns[data-tone="sepia"] .fns-pic img { filter: sepia(.8) contrast(1.05) saturate(.9) brightness(.95); }
.fns[data-tone="bw"]    .fns-pic img { filter: grayscale(1) contrast(1.12) brightness(.97); }
.fns[data-tone="color"] .fns-pic img { filter: none; }
.fns-frame:hover .fns-pic img,
.fns-frame:focus-visible .fns-pic img { filter: none; }

.fns-no {
	position: absolute;
	top: 5px;
	left: 7px;
	font: 600 10px/1 ui-monospace, Menlo, Consolas, monospace;
	color: #f0a830;
	text-shadow: 0 0 3px rgba(0, 0, 0, .8);
	direction: ltr;
}

.fns-cap {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 22px 9px 6px;
	direction: rtl;
	text-align: right;
	background: linear-gradient(to top, rgba(10, 7, 4, .92), rgba(10, 7, 4, 0));
}
.fns-cap b {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.6;
}
.fns-cap small {
	display: block;
	margin-top: 1px;
	font-size: 10.5px;
	color: #e0b66f;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.fns-set[aria-hidden="true"] .fns-frame { pointer-events: auto; }

@media (prefers-reduced-motion: reduce) {
	.fns { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
	.fns-track { animation: none; }
	.fns-set[aria-hidden="true"] { display: none; }
}
