.nve-widget {
	--nve-accent: #e30613;
	--nve-columns: 3;
	--nve-gap: 10px;
	--nve-border: #dbe1e7;
	width: 100%;
	font-family: inherit;
}

.nve-heading {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 34px;
	padding: 7px 10px 7px 12px;
	border-top: 3px solid var(--nve-accent);
	background: #151a21;
	color: #fff;
}

.nve-heading__title {
	margin: 0;
	color: inherit;
	font-size: 14px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.02em;
}

.nve-heading__actions {
	display: flex;
	align-items: center;
	gap: 3px;
}

.nve-arrow {
	display: grid;
	width: 25px;
	height: 25px;
	padding: 0;
	place-items: center;
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 3px;
	background: transparent;
	color: #fff;
	font: 700 22px/1 Arial, sans-serif;
	cursor: pointer;
	transition: background-color 160ms ease, border-color 160ms ease, opacity 160ms ease;
}

.nve-arrow:hover,
.nve-arrow:focus-visible {
	border-color: var(--nve-accent);
	background: var(--nve-accent);
	outline: none;
}

.nve-arrow:disabled {
	cursor: default;
	opacity: 0.38;
}

.nve-viewport {
	overflow: hidden;
	border-right: 1px solid var(--nve-border);
	border-bottom: 1px solid var(--nve-border);
	border-left: 1px solid var(--nve-border);
	background: #f2f5f7;
}

.nve-track {
	display: flex;
	gap: var(--nve-gap);
	padding: 9px;
	overflow-x: auto;
	scroll-behavior: smooth;
	scroll-snap-type: x proximity;
	scrollbar-width: thin;
	scrollbar-color: #aeb7c0 transparent;
}

.nve-track:focus-visible {
	outline: 2px solid var(--nve-accent);
	outline-offset: -2px;
}

.nve-track::-webkit-scrollbar {
	height: 5px;
}

.nve-track::-webkit-scrollbar-track {
	background: transparent;
}

.nve-track::-webkit-scrollbar-thumb {
	border-radius: 99px;
	background: #aeb7c0;
}

.nve-card {
	flex: 0 0 calc((100% - (var(--nve-gap) * (var(--nve-columns) - 1))) / var(--nve-columns));
	min-width: 0;
	overflow: hidden;
	border: 1px solid var(--nve-border);
	border-radius: 1px;
	background: #fff;
	scroll-snap-align: start;
	transition: transform 180ms ease, box-shadow 180ms ease;
}

.nve-card:hover {
	box-shadow: 0 5px 14px rgba(24, 33, 43, 0.13);
	transform: translateY(-2px);
}

.nve-card__link {
	display: block;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

.nve-card__media {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #c8d1d8;
}

.nve-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 220ms ease;
}

.nve-card:hover .nve-card__media img {
	transform: scale(1.045);
}

.nve-card__play {
	position: absolute;
	top: 8px;
	left: 8px;
	display: grid;
	width: 26px;
	height: 26px;
	place-items: center;
	border-radius: 50%;
	background: rgba(21, 26, 33, 0.78);
	color: #fff;
	opacity: 0;
	transition: opacity 180ms ease;
}

.nve-card:hover .nve-card__play,
.nve-card__link:focus-visible .nve-card__play {
	opacity: 1;
}

.nve-card__play svg {
	width: 14px;
	height: 14px;
	margin-left: 2px;
}

.nve-card__duration {
	position: absolute;
	right: 6px;
	bottom: 6px;
	padding: 2px 5px;
	border-radius: 2px;
	background: rgba(21, 26, 33, 0.9);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	line-height: 1.2;
}

.nve-card__body {
	padding: 7px 8px 8px;
}

.nve-card__title {
	display: -webkit-box;
	min-height: 2.7em;
	margin: 0 0 6px;
	overflow: hidden;
	color: #18212b;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.35;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.nve-card__date {
	display: block;
	color: #687480;
	font-size: 10px;
	line-height: 1.2;
}

.nve-card__link:focus-visible {
	outline: 2px solid var(--nve-accent);
	outline-offset: -2px;
}

@media (max-width: 767px) {
	.nve-heading {
		min-height: 32px;
		padding: 6px 8px 6px 10px;
	}

	.nve-heading__title {
		font-size: 12px;
	}

	.nve-arrow {
		width: 23px;
		height: 23px;
	}

	.nve-track {
		padding: 7px;
	}

	.nve-card__body {
		padding: 7px;
	}

	.nve-card__title {
		font-size: 11px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nve-track,
	.nve-card,
	.nve-card__media img,
	.nve-arrow {
		scroll-behavior: auto;
		transition: none;
	}
}