.web-story {
	--web-story-accent: #ff3158;
	--web-story-accent-2: #ffc857;
	--web-story-accent-3: #2ec4b6;
	--web-story-text: #ffffff;
	--web-story-muted: rgba(255, 255, 255, 0.72);
	color: inherit;
	font-family: inherit;
	width: 100%;
}

.web-story,
.web-story *,
.web-story-modal,
.web-story-modal * {
	font-family: "IranYekan", "IRANYekan", "IRANYekanX", Tahoma, Arial, sans-serif !important;
	letter-spacing: 0 !important;
}

.web-story__slider {
	min-width: 0;
	position: relative;
}

.web-story__rail {
	-webkit-overflow-scrolling: touch;
	cursor: grab;
	display: flex;
	gap: 16px;
	overflow-x: auto;
	overflow-y: hidden;
	overscroll-behavior-inline: contain;
	padding: 8px 4px 12px;
	scrollbar-width: none;
	touch-action: pan-x pinch-zoom;
	user-select: none;
	-webkit-user-select: none;
}

.web-story__rail::-webkit-scrollbar {
	display: none;
}

.web-story__rail.is-dragging {
	cursor: grabbing;
}

.web-story__rail-arrow {
	align-items: center;
	appearance: none;
	background: rgba(255, 255, 255, 0.96);
	border: 1px solid rgba(20, 26, 38, 0.12);
	border-radius: 999px;
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
	box-sizing: border-box;
	color: #6b7280;
	cursor: pointer;
	display: grid;
	height: 34px;
	opacity: 0;
	padding: 0;
	place-items: center;
	pointer-events: none;
	position: absolute;
	top: 48px;
	transform: translateY(-50%) scale(0.94);
	transition: opacity 180ms ease, transform 180ms ease;
	visibility: hidden;
	width: 34px;
	z-index: 8;
}

.web-story__rail-arrow.is-visible {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(-50%) scale(1);
	visibility: visible;
}

.web-story__rail-arrow--left {
	left: 2px;
}

.web-story__rail-arrow--right {
	right: 2px;
}

.web-story__rail-arrow svg {
	display: block;
	fill: none;
	height: 16px;
	margin: 0;
	pointer-events: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2.25;
	width: 16px;
}

.web-story .web-story__rail-arrow,
.web-story .web-story__rail-arrow:hover,
.web-story .web-story__rail-arrow:focus,
.web-story .web-story__rail-arrow:focus-visible,
.web-story .web-story__rail-arrow:active {
	background: rgba(255, 255, 255, 0.96) !important;
	background-image: none !important;
	border: 1px solid rgba(20, 26, 38, 0.12) !important;
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12) !important;
	color: #6b7280 !important;
	outline: none;
}

.web-story__bubble {
	align-items: center;
	background: transparent;
	border: 0;
	color: inherit;
	cursor: pointer;
	display: flex;
	flex: 0 0 92px;
	flex-direction: column;
	font: inherit;
	gap: 7px;
	min-width: 92px;
	padding: 0;
	text-align: center;
}

.web-story .web-story__bubble,
.web-story .web-story__bubble:hover,
.web-story .web-story__bubble:focus,
.web-story .web-story__bubble:focus-visible,
.web-story .web-story__bubble:active {
	appearance: none !important;
	background: transparent !important;
	background-image: none !important;
	border: 0 !important;
	box-shadow: none !important;
	color: inherit !important;
	outline: none;
	transform: none !important;
}

.web-story__ring {
	background: conic-gradient(from 210deg, var(--web-story-accent), var(--web-story-accent-2), var(--web-story-accent-3), var(--web-story-accent));
	border-radius: 999px;
	display: grid;
	box-sizing: border-box;
	height: 80px;
	padding: 3px;
	place-items: center;
	width: 80px;
}

.web-story__ring img,
.web-story__placeholder {
	background: #15171c;
	border: 3px solid #fff;
	border-radius: inherit;
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.web-story__placeholder::before {
	background: linear-gradient(135deg, #20242d, #3b4050);
	border-radius: inherit;
	content: "";
	display: block;
	height: 100%;
	width: 100%;
}

.web-story__label {
	display: -webkit-box;
	font-size: 12px;
	line-height: 1.5;
	max-width: 92px;
	min-height: 36px;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

html.web-story-open,
html.web-story-open body {
	overflow: hidden;
}

.web-story-modal[hidden] {
	display: none;
}

.web-story-modal {
	align-items: center;
	color: var(--web-story-text);
	display: flex;
	inset: 0;
	justify-content: center;
	padding: 18px;
	position: fixed;
	z-index: 999999;
}

.web-story-modal__backdrop {
	backdrop-filter: blur(18px);
	background: rgba(5, 7, 12, 0.82);
	inset: 0;
	position: absolute;
}

.web-story-modal__shell {
	aspect-ratio: 9 / 16;
	background: #06070a;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 24px;
	box-shadow: 0 26px 80px rgba(0, 0, 0, 0.58);
	display: flex;
	flex-direction: column;
	max-height: min(820px, calc(100vh - 36px));
	overflow: hidden;
	position: relative;
	width: min(430px, calc(100vw - 36px));
}

.web-story-modal__progress {
	display: flex;
	gap: 5px;
	inset-inline: 14px;
	position: absolute;
	top: 12px;
	z-index: 5;
}

.web-story-modal__progress span {
	background: rgba(255, 255, 255, 0.28);
	border-radius: 999px;
	display: block;
	flex: 1;
	height: 3px;
	overflow: hidden;
}

.web-story-modal__progress i {
	background: #fff;
	border-radius: inherit;
	display: block;
	height: 100%;
	width: 0;
}

.web-story-modal.is-paused .web-story-modal__progress i {
	box-shadow: 0 0 12px rgba(255, 255, 255, 0.65);
}

.web-story-modal__close {
	align-items: center;
	background: rgba(0, 0, 0, 0.34);
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 999px;
	color: #fff;
	cursor: pointer;
	display: flex;
	font-size: 26px;
	height: 36px;
	justify-content: center;
	line-height: 1;
	position: absolute;
	inset-inline-start: 14px;
	top: 24px;
	width: 36px;
	z-index: 6;
}

.web-story-modal__header {
	align-items: center;
	display: flex;
	font-size: 13px;
	gap: 8px;
	inset-inline: 60px 14px;
	justify-content: flex-end;
	min-height: 42px;
	position: absolute;
	top: 22px;
	z-index: 5;
}

.web-story-modal__header strong {
	background: rgba(0, 0, 0, 0.34);
	border-radius: 999px;
	max-width: 210px;
	overflow: hidden;
	padding: 7px 11px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.web-story-modal__header span {
	color: var(--web-story-muted);
	font-size: 12px;
}

.web-story-modal--no-title .web-story-modal__header strong {
	display: none;
}

.web-story-modal__stage {
	flex: 1;
	isolation: isolate;
	min-height: 0;
	overflow: hidden;
	position: relative;
	touch-action: pan-y;
}

.web-story-modal__media,
.web-story-modal__media img,
.web-story-modal__media video {
	height: 100%;
	width: 100%;
}

.web-story-modal__media img,
.web-story-modal__media video {
	display: block;
	object-fit: cover;
}

.web-story-modal__media[role="button"] {
	cursor: pointer;
	outline: none;
}

.web-story-modal__media[role="button"]:focus-visible {
	box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.82);
}

.web-story-modal__stage::after {
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.38), transparent 22%, transparent 62%, rgba(0, 0, 0, 0.44));
	content: "";
	inset: 0;
	pointer-events: none;
	position: absolute;
	z-index: 1;
}

.web-story-modal__tap {
	background: transparent;
	border: 0;
	bottom: 0;
	cursor: pointer;
	position: absolute;
	top: 0;
	width: 30%;
	z-index: 3;
}

.web-story-modal__sound {
	color: #fff;
	filter: drop-shadow(0 5px 16px rgba(0, 0, 0, 0.55));
	height: 68px;
	left: 50%;
	opacity: 0;
	pointer-events: none;
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%) scale(0.82);
	transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
	visibility: hidden;
	width: 68px;
	z-index: 6;
}

.web-story-modal__sound svg {
	display: block;
	fill: none;
	height: 100%;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
	width: 100%;
}

.web-story-modal.is-video.is-muted .web-story-modal__sound {
	opacity: 1;
	transform: translate(-50%, -50%) scale(1);
	visibility: visible;
}

.web-story-modal .web-story-modal__tap,
.web-story-modal .web-story-modal__tap:hover,
.web-story-modal .web-story-modal__tap:focus,
.web-story-modal .web-story-modal__tap:focus-visible,
.web-story-modal .web-story-modal__tap:active {
	appearance: none !important;
	background: transparent !important;
	background-image: none !important;
	border: 0 !important;
	box-shadow: none !important;
	outline: none;
}

.web-story-modal__tap--prev {
	inset-inline: auto;
	left: 0;
	right: auto;
}

.web-story-modal__tap--next {
	inset-inline: auto;
	left: auto;
	right: 0;
}

.web-story-modal__arrow {
	align-items: center;
	background: rgba(0, 0, 0, 0.34);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 999px;
	color: #fff;
	cursor: pointer;
	box-sizing: border-box;
	display: grid;
	height: 42px;
	line-height: 0;
	padding: 0;
	place-items: center;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 42px;
	z-index: 4;
}

.web-story-modal .web-story-modal__arrow,
.web-story-modal .web-story-modal__arrow:hover,
.web-story-modal .web-story-modal__arrow:focus,
.web-story-modal .web-story-modal__arrow:focus-visible,
.web-story-modal .web-story-modal__arrow:active {
	appearance: none !important;
	background: rgba(0, 0, 0, 0.34) !important;
	background-image: none !important;
	border: 1px solid rgba(255, 255, 255, 0.14) !important;
	box-shadow: none !important;
	color: #fff !important;
	outline: none;
	transform: translateY(-50%) !important;
}

.web-story-modal__arrow svg {
	display: block;
	fill: none;
	height: 20px;
	margin: 0 !important;
	pointer-events: none;
	position: static;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2.25;
	width: 20px;
}

.web-story-modal__arrow--prev {
	inset-inline: auto;
	left: 10px;
	right: auto;
}

.web-story-modal__arrow--next {
	inset-inline: auto;
	left: auto;
	right: 10px;
}

.web-story-modal--no-arrows .web-story-modal__arrow {
	display: none;
}

.web-story-modal__text {
	backdrop-filter: blur(18px);
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08));
	border: 1px solid rgba(255, 255, 255, 0.24);
	border-radius: 18px;
	box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
	inset-inline: 18px;
	max-height: 42%;
	overflow: hidden;
	padding: 14px;
	position: absolute;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.32);
	z-index: 4;
}

.web-story-modal__text[data-position="top"] {
	top: 78px;
}

.web-story-modal__text[data-position="center"] {
	top: 50%;
	transform: translateY(-50%);
}

.web-story-modal__text[data-position="bottom"] {
	bottom: 94px;
}

.web-story-modal__text strong {
	display: block;
	font-size: clamp(17px, 4vw, 24px);
	line-height: 1.45;
	margin-bottom: 6px;
}

.web-story-modal__text p {
	display: -webkit-box;
	font-size: 14px;
	line-height: 1.8;
	margin: 0;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
}

.web-story-modal__text a {
	align-items: center;
	background: #1674d1;
	border: 0;
	border-radius: 8px;
	color: #fff;
	display: flex;
	font-size: 13px;
	font-weight: 700;
	justify-content: center;
	line-height: 1.5;
	margin: 12px auto 0;
	max-width: 100%;
	min-height: 36px;
	min-width: 132px;
	padding: 7px 18px;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
	width: fit-content;
}

.web-story-modal .web-story-modal__text a,
.web-story-modal .web-story-modal__text a:hover,
.web-story-modal .web-story-modal__text a:focus,
.web-story-modal .web-story-modal__text a:focus-visible,
.web-story-modal .web-story-modal__text a:active,
.web-story-modal .web-story-modal__text a:visited {
	background: #1674d1 !important;
	background-image: none !important;
	border: 0 !important;
	box-shadow: none !important;
	box-sizing: border-box;
	color: #fff !important;
	outline: none;
	text-decoration: none !important;
	transform: none !important;
}

.web-story-modal__like {
	align-items: center;
	background: rgba(0, 0, 0, 0.34);
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 999px;
	bottom: 28px;
	color: #fff;
	cursor: pointer;
	display: flex;
	gap: 7px;
	inset-inline-end: 18px;
	min-height: 42px;
	padding: 0 13px;
	position: absolute;
	z-index: 5;
}

.web-story-modal__like span {
	font-size: 26px;
	line-height: 1;
}

.web-story-modal__like em {
	font-size: 13px;
	font-style: normal;
	min-width: 16px;
}

.web-story-modal__like.is-liked span {
	color: #ff3158;
	text-shadow: 0 0 18px rgba(255, 49, 88, 0.7);
}

.web-story-modal__heart-pop {
	animation: web-story-heart-pop 900ms ease forwards;
	color: #ff3158;
	font-size: 74px;
	left: 50%;
	pointer-events: none;
	position: absolute;
	text-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
	top: 50%;
	transform: translate(-50%, -50%) scale(0.4);
	z-index: 7;
}

.web-story-modal__reply {
	align-items: center;
	background: rgba(8, 10, 14, 0.96);
	display: flex;
	gap: 8px;
	padding: 12px;
	position: relative;
}

.web-story-modal__reply input {
	background: rgba(255, 255, 255, 0.09);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 999px;
	box-sizing: border-box;
	color: #fff;
	flex: 1;
	font: inherit;
	min-height: 42px;
	min-width: 0;
	outline: none;
	padding: 0 14px;
}

.web-story-modal__reply button {
	background: #fff;
	border: 0;
	border-radius: 999px;
	color: #111;
	cursor: pointer;
	font: inherit;
	font-weight: 700;
	min-height: 42px;
	padding: 0 15px;
	white-space: nowrap;
}

.web-story-modal__reply::after {
	background: rgba(0, 0, 0, 0.72);
	border-radius: 999px;
	bottom: calc(100% + 8px);
	color: #fff;
	content: attr(data-status);
	display: none;
	font-size: 12px;
	inset-inline-start: 12px;
	padding: 8px 12px;
	position: absolute;
}

.web-story-modal__reply[data-status]::after {
	display: block;
}

.web-story-modal__reply.is-loading {
	opacity: 0.72;
	pointer-events: none;
}

@keyframes web-story-heart-pop {
	0% {
		opacity: 0;
		transform: translate(-50%, -50%) scale(0.35) rotate(-10deg);
	}
	35% {
		opacity: 1;
		transform: translate(-50%, -50%) scale(1) rotate(4deg);
	}
	100% {
		opacity: 0;
		transform: translate(-50%, -72%) scale(1.18) rotate(0deg);
	}
}

@media (max-width: 520px) {
	.web-story-modal {
		padding: 0;
	}

	.web-story-modal__shell {
		border: 0;
		border-radius: 0;
		height: 100dvh;
		max-height: none;
		width: 100vw;
	}

	.web-story-modal__text {
		inset-inline: 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.web-story-modal__heart-pop {
		animation: none;
		opacity: 1;
	}
}

.web-story__editor-placeholder {
	align-items: center;
	background: #f7f8fa;
	border: 1px dashed #aeb7c2;
	border-radius: 6px;
	color: #303844;
	display: flex;
	flex-direction: column;
	gap: 8px;
	justify-content: center;
	min-height: 112px;
	padding: 18px;
	text-align: center;
}

.web-story__editor-placeholder > span:first-child {
	color: #52606f;
	font-size: 26px;
}

.web-story__editor-placeholder > span:last-child {
	color: #667180;
	font-size: 12px;
}
