/* ویدیوهای کوتاه محصول - استایل فرانت‌اند (مقاوم در برابر استایل قالب‌ها) */

.pvs-gallery {
	--pvs-accent: #E8A33D;
	--pvs-card-w: clamp(140px, 42%, 220px);
	width: 100%;
	min-width: 0;
	max-width: 100%;
}

/* جلوگیری از کشیده شدن ویجت به اندازه محتوا داخل کانتینرهای flex/grid المنتور */
.elementor-widget-pvs_video_gallery,
.elementor-widget-pvs_video_gallery > .elementor-widget-container {
	min-width: 0;
	max-width: 100%;
}

.pvs-gallery .pvs-heading {
	font-size: 1.05em;
	font-weight: 700;
	margin: 0 0 10px;
}

.pvs-gallery .pvs-shelf {
	display: flex;
	flex-wrap: nowrap;
	justify-content: flex-start;
	align-items: flex-start;
	gap: 10px;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	scroll-snap-type: x proximity;
	overscroll-behavior-x: contain;
	touch-action: pan-x pan-y;
	width: 100%;
	min-width: 0;
	max-width: 100%;
	padding: 0 0 4px;
	margin: 0;
	scrollbar-width: none;
	cursor: grab;
}
.pvs-gallery .pvs-shelf.pvs-dragging {
	scroll-snap-type: none;
	cursor: grabbing;
	user-select: none;
}
.pvs-gallery .pvs-shelf::-webkit-scrollbar {
	display: none;
}

.pvs-gallery .pvs-shelf .pvs-card,
.pvs-gallery .pvs-shelf .pvs-card:hover,
.pvs-gallery .pvs-shelf .pvs-card:focus {
	display: block;
	flex: 0 0 var(--pvs-card-w);
	width: var(--pvs-card-w);
	min-width: var(--pvs-card-w);
	max-width: var(--pvs-card-w);
	height: auto;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: inherit;
	font: inherit;
	text-align: start;
	text-transform: none;
	letter-spacing: normal;
	cursor: pointer;
	scroll-snap-align: start;
	outline-offset: 2px;
}

.pvs-gallery .pvs-thumb {
	display: block;
	position: relative;
	width: 100%;
	aspect-ratio: 3 / 5;
	border-radius: 12px;
	overflow: hidden;
	background: #111;
}
.pvs-gallery .pvs-thumb img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	display: block;
	margin: 0;
	border-radius: 0;
	-webkit-user-drag: none;
	user-select: none;
}
.pvs-gallery .pvs-cardscrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .3) 32%, rgba(0, 0, 0, 0) 55%);
	z-index: 1;
}
.pvs-gallery .pvs-meta {
	position: absolute;
	inset-inline: 0;
	inset-block-end: 0;
	padding: 10px;
	z-index: 2;
	color: #fff;
	display: block;
}
.pvs-gallery .pvs-cap {
	display: -webkit-box;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	color: #fff;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-shadow: 0 1px 3px rgba(0, 0, 0, .5);
}
.pvs-gallery .pvs-sub {
	display: block;
	font-size: 12px;
	font-weight: 500;
	color: #fff;
	opacity: .9;
	margin-top: 3px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.pvs-empty-admin-note {
	padding: 12px 14px;
	border: 1px dashed #ccc;
	border-radius: 8px;
	font-size: .85em;
	opacity: .8;
}

/* ---------- پخش‌کننده تمام‌صفحه ---------- */

.pvs-overlay {
	position: fixed;
	inset: 0;
	background: rgba(4, 5, 8, .92);
	z-index: 999999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
}
.pvs-overlay.pvs-open {
	display: flex;
}
.pvs-overlay *,
.pvs-overlay *::before,
.pvs-overlay *::after {
	box-sizing: border-box;
}

.pvs-overlay .pvs-shell {
	position: relative;
	width: min(380px, 92vw);
	height: min(720px, 88vh);
	border-radius: 24px;
	overflow: hidden;
	background: #000;
}

.pvs-overlay button.pvs-close,
.pvs-overlay button.pvs-mute,
.pvs-overlay button.pvs-nav {
	margin: 0;
	padding: 0;
	min-width: 0;
	min-height: 0;
	line-height: 1;
	font-family: inherit;
	font-weight: 400;
	text-transform: none;
	letter-spacing: normal;
	box-shadow: none;
	color: #fff;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, .18);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.pvs-overlay button.pvs-close,
.pvs-overlay button.pvs-close:hover,
.pvs-overlay button.pvs-close:focus {
	position: absolute;
	inset-block-start: 14px;
	inset-inline-end: 14px;
	z-index: 20;
	width: 34px;
	height: 34px;
	background: rgba(0, 0, 0, .5);
	color: #fff;
	font-size: 15px;
}

.pvs-overlay .pvs-progress {
	position: absolute;
	inset-block-start: 12px;
	inset-inline-start: 14px;
	inset-inline-end: 104px;
	z-index: 10;
	display: flex;
	gap: 4px;
	pointer-events: none;
}
.pvs-overlay .pvs-progress .seg {
	flex: 1;
	height: 3px;
	border-radius: 2px;
	background: rgba(255, 255, 255, .32);
	overflow: hidden;
}
.pvs-overlay .pvs-progress .seg span {
	display: block;
	height: 100%;
	width: 0%;
	background: #fff;
}

.pvs-overlay .pvs-screen {
	width: 100%;
	height: 100%;
	display: flex;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}
.pvs-overlay .pvs-screen::-webkit-scrollbar {
	display: none;
}

.pvs-overlay .pvs-slide {
	flex: 0 0 100%;
	scroll-snap-align: start;
	scroll-snap-stop: always;
	position: relative;
	display: flex;
	align-items: flex-end;
	overflow: hidden;
	background: #0a0a0a;
}
.pvs-overlay .pvs-slide video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

.pvs-overlay .pvs-scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, rgba(0, 0, 0, .82) 0%, rgba(0, 0, 0, .25) 42%, rgba(0, 0, 0, 0) 62%);
}

.pvs-overlay .pvs-info {
	position: relative;
	z-index: 2;
	padding: 18px 16px 22px;
	width: 100%;
	color: #fff;
}
.pvs-overlay .pvs-title {
	font-size: 1em;
	font-weight: 700;
	line-height: 1.5;
	margin: 0 0 10px;
	color: #fff;
}
.pvs-overlay a.pvs-cta,
.pvs-overlay a.pvs-cta:hover,
.pvs-overlay a.pvs-cta:focus {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--pvs-accent, #E8A33D);
	color: #1a1206;
	font-weight: 700;
	font-size: .85em;
	padding: 9px 14px;
	border-radius: 10px;
	text-decoration: none;
}
.pvs-overlay .pvs-pname {
	font-weight: 500;
	opacity: .85;
}

.pvs-overlay button.pvs-mute,
.pvs-overlay button.pvs-mute:hover,
.pvs-overlay button.pvs-mute:focus {
	position: absolute;
	z-index: 3;
	inset-block-start: 14px;
	inset-inline-end: 60px;
	width: 32px;
	height: 32px;
	background: rgba(0, 0, 0, .45);
	color: #fff;
	font-size: 14px;
}

.pvs-overlay button.pvs-nav,
.pvs-overlay button.pvs-nav:hover,
.pvs-overlay button.pvs-nav:focus {
	position: absolute;
	z-index: 4;
	inset-block-start: 50%;
	transform: translateY(-50%);
	width: 36px;
	height: 36px;
	background: rgba(0, 0, 0, .4);
	border-color: rgba(255, 255, 255, .16);
	color: #fff;
	font-size: 16px;
}
.pvs-overlay button.pvs-nav.pvs-prev {
	inset-inline-start: 10px;
}
.pvs-overlay button.pvs-nav.pvs-next {
	inset-inline-end: 10px;
}
.pvs-overlay button.pvs-nav:disabled {
	opacity: 0;
	pointer-events: none;
}
