.spvs-widget,
.spvs-widget * {
	box-sizing: border-box;
}

.spvs-widget {
	--spvs-gap: 14px;
	--spvs-items-desktop: 4;
	--spvs-items-tablet: 2;
	--spvs-items-mobile: 1;
	--spvs-effective-items: var(--spvs-items-desktop);
	--spvs-ratio-width: 16;
	--spvs-ratio-height: 9;
	position: relative;
	width: 100%;
	min-width: 0;
}

.spvs-viewport {
	position: relative;
	width: 100%;
	min-width: 0;
	overflow: hidden;
}

.spvs-track {
	width: 100%;
	min-width: 0;
	margin: 0;
	padding: 0;
}

.spvs-slider-enabled .spvs-track {
	display: flex;
	gap: var(--spvs-gap);
	overflow-x: auto;
	overflow-y: hidden;
	scrollbar-width: none;
	-ms-overflow-style: none;
	scroll-snap-type: x mandatory;
	touch-action: pan-y;
	overscroll-behavior-inline: contain;
	-webkit-overflow-scrolling: touch;
	cursor: grab;
}

.spvs-slider-enabled .spvs-track::-webkit-scrollbar {
	display: none;
}

.spvs-slider-enabled .spvs-track.spvs-is-dragging {
	cursor: grabbing;
	scroll-snap-type: none;
	user-select: none;
}

.spvs-slider-enabled .spvs-track.spvs-is-animating {
	scroll-snap-type: none;
	will-change: scroll-position;
}

.spvs-grid-enabled .spvs-track {
	display: grid;
	grid-template-columns: repeat(var(--spvs-effective-items), minmax(0, 1fr));
	gap: var(--spvs-gap);
}

.spvs-item {
	min-width: 0;
	margin: 0;
	padding: 0;
}

.spvs-slider-enabled .spvs-item {
	flex: 0 0 calc((100% - (var(--spvs-effective-items) - 1) * var(--spvs-gap)) / var(--spvs-effective-items));
	scroll-snap-align: start;
}

.spvs-card {
	appearance: none;
	-webkit-appearance: none;
	display: block;
	width: 100%;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	font: inherit;
	color: inherit;
	text-align: inherit;
	cursor: pointer;
	outline: none;
	transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.spvs-card:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

.spvs-card-no-video {
	cursor: default;
}

.spvs-hover-lift-yes .spvs-card:hover {
	transform: translateY(-4px);
}

.spvs-media {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: var(--spvs-ratio-width) / var(--spvs-ratio-height);
	overflow: hidden;
	isolation: isolate;
	background: #edeff2;
}

.spvs-preview-image,
.spvs-preview-video {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	object-fit: cover;
	transition: transform 280ms ease;
}

.spvs-preview-video {
	pointer-events: none;
}

.spvs-preview-placeholder {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	color: #98a2b3;
}

.spvs-preview-placeholder svg {
	width: 38%;
	max-width: 72px;
	height: auto;
}

.spvs-media-overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	transition: opacity 180ms ease;
}

.spvs-card:hover .spvs-media-overlay,
.spvs-card:focus-visible .spvs-media-overlay {
	opacity: 0.72;
}

.spvs-play {
	position: absolute;
	left: 50%;
	top: 50%;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	padding: 0;
	transform: translate(-50%, -50%);
	color: #fff;
	background: rgba(35, 35, 35, 0.62);
	border-radius: 50%;
	pointer-events: none;
	transition: transform 180ms ease, background-color 180ms ease;
}

.spvs-play i,
.spvs-play svg {
	display: block;
	width: 18px;
	height: 18px;
	font-size: 18px;
	line-height: 1;
}

.spvs-play svg {
	fill: currentColor;
}

.spvs-play i,
.spvs-play svg {
	transform: translateX(1px);
}

.spvs-card:hover .spvs-play,
.spvs-card:focus-visible .spvs-play {
	transform: translate(-50%, -50%) scale(1.06);
}

.spvs-duration[hidden] {
	display: none !important;
}

.spvs-duration {
	position: absolute;
	right: 6px;
	bottom: 6px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 18px;
	padding: 2px 5px;
	border-radius: 4px;
	color: #fff;
	background: rgba(20, 20, 20, 0.72);
	font-size: 11px;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
}

.spvs-title {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	min-width: 0;
	margin: 8px 0 0;
	padding: 0;
	color: #151515;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.25;
	text-align: center;
	word-break: normal;
}

.spvs-nav {
	appearance: none;
	-webkit-appearance: none;
	position: absolute;
	top: 50%;
	z-index: 5;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	margin: 0;
	padding: 0;
	transform: translateY(-50%);
	border: 1px solid #e4e7ec;
	border-radius: 50%;
	color: #1d2939;
	background: #fff;
	box-shadow: 0 4px 12px rgba(16, 24, 40, 0.12);
	cursor: pointer;
	transition: opacity 160ms ease, transform 160ms ease, color 160ms ease, background-color 160ms ease;
}

.spvs-prev {
	left: -18px;
}

.spvs-next {
	right: -18px;
}

.spvs-nav svg {
	display: block;
	width: 18px;
	height: 18px;
}

.spvs-nav:hover,
.spvs-nav:focus-visible {
	transform: translateY(-50%) scale(1.04);
}

.spvs-nav:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.spvs-nav:disabled {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.spvs-no-overflow .spvs-nav {
	display: none;
}

.spvs-modal[hidden] {
	display: none !important;
}

.spvs-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(0, 0, 0, 0.86);
}

.spvs-modal-dialog {
	position: relative;
	width: 100%;
	max-width: 960px;
	aspect-ratio: var(--spvs-ratio-width) / var(--spvs-ratio-height);
	overflow: visible;
	background: #000;
	box-shadow: 0 20px 70px rgba(0, 0, 0, 0.45);
}

.spvs-player,
.spvs-player iframe,
.spvs-player video {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	border: 0;
	background: #000;
}

.spvs-player video {
	object-fit: contain;
}

.spvs-modal-close {
	appearance: none;
	-webkit-appearance: none;
	position: absolute;
	right: -12px;
	top: -12px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	margin: 0;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 50%;
	color: #fff;
	background: #111;
	cursor: pointer;
}

.spvs-modal-close svg {
	width: 20px;
	height: 20px;
}

.spvs-modal-close:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

body.spvs-modal-open {
	overflow: hidden;
}

.spvs-empty {
	padding: 20px;
	border: 1px dashed #cfd4dc;
	color: #667085;
	text-align: center;
}

@media (max-width: 1024px) {
	.spvs-widget {
		--spvs-effective-items: var(--spvs-items-tablet);
	}
}

@media (max-width: 767px) {
	.spvs-widget {
		--spvs-effective-items: var(--spvs-items-mobile);
	}

	.spvs-hide-arrows-mobile .spvs-nav {
		display: none;
	}

	.spvs-modal {
		padding: 14px;
	}

	.spvs-modal-close {
		right: -6px;
		top: -44px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.spvs-card,
	.spvs-preview-image,
	.spvs-preview-video,
	.spvs-media-overlay,
	.spvs-play,
	.spvs-nav {
		transition: none !important;
	}
}


.spvs-youtube-duration-player,
.spvs-youtube-duration-player iframe {
	position: fixed !important;
	left: -9999px !important;
	top: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	opacity: 0 !important;
	pointer-events: none !important;
	border: 0 !important;
}

#spvs-youtube-duration-player {
	position: fixed !important;
	left: -9999px !important;
	top: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	opacity: 0 !important;
	pointer-events: none !important;
	border: 0 !important;
}
