.modul-video-slider {
	position: relative;
	width: min(100%, 90%);
	margin: 0 auto;
}

.modul-video-slider__viewport {
	overflow-x: auto;
	overflow-y: hidden;
	display: block;
	cursor: grab;
	scrollbar-width: none;
	scroll-behavior: smooth;
}

.modul-video-slider__viewport.is-dragging {
	cursor: grabbing;
	user-select: none;
}

.modul-video-slider__viewport::-webkit-scrollbar {
	display: none;
}

.modul-video-slider__track {
	display: inline-flex;
	gap: 20px;
	min-width: 100%;
	padding: 4px 0 16px;
}

.modul-video-slider__arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: flex;
    place-items: center;
    width: 32px !important;
    height: 32px !important;
    border: 0;
    border-radius: 999px;
    background: rgb(28 55 55);
    color: #fff;
    font-size: 24px;
    line-height: 23px;
    cursor: pointer !important;
    justify-content: center;
    align-items: center;
}

.modul-video-slider__arrow:hover {
    background-color: #1a3434d9;
    color: #FFF !important;
}w

.modul-video-slider__arrow.is-hidden {
	display: none;
}

.modul-video-slider__arrow:disabled {
	opacity: 0.35 !important;
	cursor: default !important;
}

.modul-video-slider__arrow--prev {
	left: -50px;
}

.modul-video-slider__arrow--next {
	right: -50px;
}

.modul-video-card {
	position: relative;
	flex: 0 0 250px;
	width: 250px;
	height: 320px;
	border: 0;
	border-radius: 18px;
	background: #111827;
	overflow: hidden;
	cursor: pointer;
	text-align: center;
}

.modul-video-card:hover {
	transform: translateY(-2px);
}

.modul-video-card__media {
	position: absolute;
	inset: 0;
	display: block;
}

.modul-video-card__media img,
.modul-video-card__media video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
}

.modul-video-card__media video {
	background:
		linear-gradient(135deg, rgba(14, 116, 144, 0.92), rgba(15, 23, 42, 0.98));
	pointer-events: none;
}

.modul-video-card__overlay {
	position: absolute;
	inset: auto 0 0;
	display: flex;
	justify-content: center;
	padding: 42px 18px 18px;
	background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.92) 100%);
}

.modul-video-card__title {
	display: -webkit-box;
	max-width: 100%;
	overflow: hidden;
	color: #fff;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.35;
	text-align: center;
	text-overflow: ellipsis;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
}

.modul-video-modal[hidden] {
	display: none;
}

.modul-video-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: grid;
	place-items: center;
	padding: 20px;
}

.modul-video-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(2, 6, 23, 0.72);
	backdrop-filter: blur(4px);
}

.modul-video-modal__dialog {
	position: relative;
	z-index: 1;
	width: min(980px, 100%);
	max-height: min(650px, 100%);
	background: #fff;
	border-radius: 24px;
	padding: 20px;
	overflow: auto;
}

.modul-video-modal__close {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 2;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 999px;
	background: rgba(15, 23, 42, 0.85);
	color: #fff;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

.modul-video-modal__layout {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
	gap: 20px;
	height: 100%;
	align-items: start;
}

.modul-video-modal__player {
	background: #020617;
	border-radius: 20px;
	overflow: hidden;
}

.modul-video-modal__player video {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	max-height: 610px;
	background: #000;
	border-radius: 20px;
}

.modul-video-modal__content {
	overflow-y: auto;
	min-width: 0;
}

.modul-video-modal__content h3 {
	margin: 0 0 10px;
	font-size: clamp(1.4rem, 3vw, 2rem);
	line-height: 1.2;
	color: #0f172a;
	max-width: 100%;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.modul-video-modal__description {
	color: #334155;
	line-height: 1.7;
	white-space: pre-wrap;
	max-width: 100%;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.modul-video-empty {
	width: min(100%, 90%);
	margin: 0 auto;
}

body.modul-video-modal-open {
	overflow: hidden;
}

@media (max-width: 960px) {
	.modul-video-slider__arrow {
		width: 42px;
		height: 42px;
	}

	.modul-video-slider__arrow--prev {
		left: -10px;
	}

	.modul-video-slider__arrow--next {
		right: -10px;
	}

	.modul-video-modal__layout {
		grid-template-columns: 1fr;
	}

	.modul-video-modal__player video {
		min-height: 280px;
		max-height: 320px;
	}
}

@media (max-width: 640px) {
	.modul-video-slider {
		width: 100%;
	}

	.modul-video-slider__arrow {
		display: none;
	}

	.modul-video-card {
		flex-basis: 250px;
	}

	.modul-video-modal__dialog {
		width: 100%;
		border-radius: 18px;
	}

	.modul-video-modal {
		padding: 12px;
	}
}
