.dkt {
	--dkt-accent: #ce1b22;
	--dkt-radius: 18px;
	--dkt-gap: 22px;
	--dkt-cols: 4;
	--dkt-cols-tablet: 2;
	--dkt-cols-mobile: 1;
	--dkt-ratio: 9 / 16;
	position: relative;
	box-sizing: border-box;
	width: 100%;
	max-width: 1240px;
	margin-inline: auto;
	padding-inline: clamp(16px, 4vw, 24px);
}

.dkt *,
.dkt *::before,
.dkt *::after {
	box-sizing: border-box;
}

.dkt__viewport {
	overflow: hidden;
	touch-action: pan-y;
}

.dkt__track {
	--dkt-active-cols: var(--dkt-cols);
	display: flex;
	gap: var(--dkt-gap);
	transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
	will-change: transform;
}

.dkt__card {
	flex: 0 0 calc((100% - (var(--dkt-active-cols) - 1) * var(--dkt-gap)) / var(--dkt-active-cols));
	min-width: 0;
	max-width: calc((100% - (var(--dkt-active-cols) - 1) * var(--dkt-gap)) / var(--dkt-active-cols));
}

.dkt__frame {
	position: relative;
	isolation: isolate;
	aspect-ratio: var(--dkt-ratio);
	overflow: hidden;
	border-radius: var(--dkt-radius);
	background: var(--dkt-accent);
	box-shadow: 0 14px 32px rgba(6, 71, 206, 0.12);
}

.dkt__poster,
.dkt__video {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.dkt__video {
	z-index: 1;
	background: #000;
}

.dkt__name {
	position: absolute;
	z-index: 2;
	right: 0;
	bottom: 0;
	left: 0;
	padding: 40px 18px 16px;
	color: #fff;
	font-size: clamp(14px, 1.6vw, 17px);
	font-weight: 600;
	line-height: 1.3;
	text-align: left;
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.62) 100%);
	pointer-events: none;
}

.dkt__play {
	position: absolute;
	z-index: 3;
	top: 50%;
	left: 50%;
	width: 64px;
	height: 64px;
	margin: -32px 0 0 -32px;
	padding: 0;
	display: grid;
	place-items: center;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.94);
	color: var(--dkt-accent);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
	cursor: pointer;
	transition: transform 0.2s ease, background-color 0.2s ease;
}

.dkt__play svg {
	width: 30px;
	height: 30px;
	margin-left: 2px;
}

.dkt__play:hover {
	transform: scale(1.06);
	background: #fff;
}

.dkt__play:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 3px;
	box-shadow: 0 0 0 7px rgba(0, 0, 0, 0.35), 0 8px 24px rgba(0, 0, 0, 0.22);
}

.dkt__close {
	position: absolute;
	z-index: 4;
	top: 10px;
	right: 10px;
	width: 34px;
	height: 34px;
	padding: 0;
	display: grid;
	place-items: center;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.dkt__close:hover {
	background: rgba(0, 0, 0, 0.78);
}

.dkt__close:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 2px;
}

.dkt__arrow {
	position: absolute;
	z-index: 5;
	top: 50%;
	width: 44px;
	height: 44px;
	margin-top: -22px;
	padding: 0;
	display: grid;
	place-items: center;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.96);
	color: #1d2433;
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
	cursor: pointer;
	transition: transform 0.2s ease, background-color 0.2s ease;
}

.dkt__arrow:hover {
	transform: scale(1.06);
	background: #fff;
}

.dkt__arrow:focus-visible {
	outline: 3px solid var(--dkt-accent);
	outline-offset: 2px;
}

.dkt__arrow--prev {
	left: clamp(0px, 1vw, 10px);
}

.dkt__arrow--next {
	right: clamp(0px, 1vw, 10px);
}

.dkt__dots {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 16px 16px 0;
}

.dkt__dot {
	width: 8px;
	height: 8px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: #c9d1e2;
	cursor: pointer;
	transition: width 0.2s ease, background-color 0.2s ease;
}

.dkt__dot.is-active {
	width: 24px;
	background: var(--dkt-accent);
}

.dkt__dot:focus-visible {
	outline: 2px solid var(--dkt-accent);
	outline-offset: 3px;
}

.dkt__video[hidden],
.dkt__poster[hidden],
.dkt__play[hidden],
.dkt__close[hidden],
.dkt__arrow[hidden],
.dkt__dots[hidden],
.dkt__dot[hidden] {
	display: none !important;
}

.dkt-empty {
	margin: 0;
	padding: 16px;
	text-align: center;
}

@media (max-width: 1024px) {
	.dkt__track {
		--dkt-active-cols: var(--dkt-cols-tablet);
	}
}

@media (max-width: 767px) {
	.dkt {
		max-width: none;
		padding-inline: 0;
	}

	.dkt__track {
		--dkt-active-cols: var(--dkt-cols-mobile);
	}

	.dkt__play {
		width: 54px;
		height: 54px;
		margin: -27px 0 0 -27px;
	}

	.dkt__play svg {
		width: 24px;
		height: 24px;
	}

	.dkt__arrow {
		width: 38px;
		height: 38px;
		margin-top: -19px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dkt__track,
	.dkt__play,
	.dkt__close,
	.dkt__arrow,
	.dkt__dot {
		transition: none;
	}
}
