/* Lansere Video Carousel (VK Видео + YouTube) — Light Site Theme */

.lvc-carousel {
	--lvc-brand: #003862;
	--lvc-brand-hover: #004b82;
	--lvc-text: #1c1d1d;
	--lvc-muted: #526372;
	--lvc-surface-soft: #f0f4f7;
	--lvc-border-soft: #d8e3ea;
	--lvc-gap: 22px;
	background: transparent;
	color: var(--lvc-text);
	padding: 4px 0 16px;
	margin: 4px 0 12px;
	box-shadow: none;
	border-radius: 0;
	position: relative;
}

/* Header & Subtle Brand-Blue / White / Light-Gray Tabs */
.lvc-header {
	display: flex;
	justify-content: center;
	align-items: center;
	margin-bottom: 18px;
}

.lvc-tabs {
	display: inline-flex;
	background: var(--lvc-surface-soft);
	padding: 3px;
	border-radius: 999px;
	border: 1px solid var(--lvc-border-soft);
	gap: 3px;
}

.lvc-tab {
	appearance: none;
	border: none;
	background: transparent;
	color: var(--lvc-muted);
	font-family: Montserrat, sans-serif;
	font-size: 13.5px;
	font-weight: 500;
	padding: 6px 18px;
	border-radius: 999px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
	line-height: 1.25;
}

.lvc-tab:hover {
	color: var(--lvc-brand);
}

.lvc-tab:focus-visible {
	outline: 2px solid var(--lvc-brand);
	outline-offset: 2px;
}

.lvc-tab.is-active {
	background: var(--lvc-brand);
	color: #ffffff;
	box-shadow: 0 1px 4px rgba(0, 56, 98, 0.16);
}

.lvc-tab-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	opacity: 0.9;
}

/* Panel & Slider Layout */
.lvc-panel[hidden] {
	display: none !important;
}

.lvc-slider-wrap {
	position: relative;
	padding: 0 42px;
}

.lvc-track {
	display: flex;
	gap: var(--lvc-gap);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	padding: 4px 2px 6px;
}

.lvc-track::-webkit-scrollbar {
	display: none;
}

.lvc-track:focus-visible {
	outline: 2px solid var(--lvc-brand);
	outline-offset: 2px;
	border-radius: 4px;
}

/* 3 cards on Desktop (>= 992px), 2 on Tablet (576-991px), 1 on Mobile (< 576px) */
.lvc-item {
	flex: 0 0 calc((100% - (var(--lvc-gap) * 2)) / 3);
	min-width: 0;
	scroll-snap-align: start;
}

@media (max-width: 991.98px) {
	.lvc-carousel {
		--lvc-gap: 16px;
	}
	.lvc-item {
		flex: 0 0 calc((100% - var(--lvc-gap)) / 2);
	}
}

@media (max-width: 575.98px) {
	.lvc-carousel {
		padding: 2px 0 12px;
	}
	.lvc-slider-wrap {
		padding: 0 30px;
	}
	.lvc-item {
		flex: 0 0 100%;
	}
	.lvc-tab {
		padding: 6px 14px;
		font-size: 13px;
	}
}

/* Light Video Card */
.lvc-card {
	appearance: none;
	border: none;
	background: transparent;
	color: var(--lvc-text);
	width: 100%;
	height: 100%;
	padding: 0;
	border-radius: 4px;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	text-align: center;
	transition: transform 0.2s ease, color 0.2s ease;
}

.lvc-card:hover {
	transform: translateY(-2px);
	color: var(--lvc-brand);
}

.lvc-card:focus-visible {
	outline: 2px solid var(--lvc-brand);
	outline-offset: 3px;
}

.lvc-card-thumb {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #e9f1f5;
	border-radius: 4px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 56, 98, 0.08);
	border: 1px solid rgba(0, 56, 98, 0.08);
}

.lvc-card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.lvc-card:hover .lvc-card-thumb img {
	transform: scale(1.025);
}

.lvc-card-play {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 24, 45, 0.12);
	transition: background-color 0.2s ease;
}

.lvc-card:hover .lvc-card-play {
	background: rgba(0, 24, 45, 0.04);
}

.lvc-card-play svg {
	color: rgba(0, 56, 98, 0.82);
	transition: color 0.2s ease, transform 0.2s ease;
	filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.28));
}

.lvc-card:hover .lvc-card-play svg {
	color: var(--lvc-brand);
	transform: scale(1.06);
}

.lvc-card-title {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-family: Montserrat, sans-serif;
	font-size: 13.5px;
	font-weight: 500;
	line-height: 1.4;
	color: inherit;
	padding: 10px 6px 2px;
	min-height: 48px;
}

/* Minimalist Thin Chevron Prev / Next Arrows (matching #newsSlider above) */
.lvc-arrow {
	appearance: none;
	border: none;
	background: transparent;
	box-shadow: none;
	color: #1c1d1d;
	width: 34px;
	height: 48px;
	position: absolute;
	top: calc(50% - 24px);
	transform: translateY(-50%);
	z-index: 5;
	cursor: pointer;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: opacity 0.2s ease;
}

.lvc-arrow:hover {
	background: transparent;
}

.lvc-arrow:focus-visible {
	outline: 2px solid var(--lvc-brand);
	outline-offset: 2px;
	border-radius: 4px;
}

.lvc-prev {
	left: 2px;
}

.lvc-next {
	right: 2px;
}

.lvc-arrow span {
	display: block;
	width: 21px;
	height: 21px;
	transform: rotate(45deg);
	opacity: 0.65;
	transition: opacity 0.2s ease, border-color 0.2s ease;
}

.lvc-prev span {
	border-bottom: 1px solid #1c1d1d;
	border-left: 1px solid #1c1d1d;
	margin-left: 8px;
}

.lvc-next span {
	border-top: 1px solid #1c1d1d;
	border-right: 1px solid #1c1d1d;
	margin-right: 8px;
}

.lvc-arrow:hover span {
	opacity: 1;
	border-color: var(--lvc-brand);
}

@media (max-width: 575.98px) {
	.lvc-arrow {
		width: 26px;
	}
	.lvc-arrow span {
		width: 16px;
		height: 16px;
	}
	.lvc-prev span {
		margin-left: 6px;
	}
	.lvc-next span {
		margin-right: 6px;
	}
}

/* Loading & Empty States (Light Theme) */
.lvc-loading,
.lvc-empty {
	min-height: 200px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	color: var(--lvc-muted);
	font-size: 14px;
	padding: 24px;
	text-align: center;
}

.lvc-spinner {
	width: 30px;
	height: 30px;
	border: 2.5px solid rgba(0, 56, 98, 0.16);
	border-top-color: var(--lvc-brand);
	border-radius: 50%;
	animation: lvc-spin 0.75s linear infinite;
}

@keyframes lvc-spin {
	to {
		transform: rotate(360deg);
	}
}

.lvc-retry-btn {
	appearance: none;
	border: 1px solid var(--lvc-brand);
	background: #ffffff;
	color: var(--lvc-brand);
	padding: 6px 16px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 13px;
	font-weight: 500;
}

.lvc-retry-btn:hover {
	background: var(--lvc-brand);
	color: #ffffff;
}

/* Modal Player (<dialog closedby="any">) */
dialog.lvc-modal {
	border: none;
	padding: 0;
	background: #121418;
	color: #ffffff;
	width: min(92vw, 960px);
	max-width: 960px;
	border-radius: 8px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
	margin: auto;
}

dialog.lvc-modal:modal {
	overscroll-behavior: contain;
}

dialog.lvc-modal::backdrop {
	background: rgba(0, 18, 34, 0.76);
	backdrop-filter: blur(3px);
	overflow: hidden;
	overscroll-behavior: contain;
}

.lvc-modal-box {
	display: flex;
	flex-direction: column;
}

.lvc-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 16px;
	background: #003862;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.lvc-modal-title {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	color: #ffffff;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.lvc-modal-close {
	appearance: none;
	border: none;
	background: transparent;
	color: rgba(255, 255, 255, 0.8);
	cursor: pointer;
	padding: 4px;
	border-radius: 4px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.lvc-modal-close:hover {
	color: #ffffff;
	background: rgba(255, 255, 255, 0.12);
}

.lvc-modal-close:focus-visible {
	outline: 2px solid #ffffff;
}

.lvc-modal-body {
	padding: 0;
	background: #000000;
}

.lvc-modal-player {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000000;
}

.lvc-modal-player iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.lvc-consent-gate {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 24px;
	text-align: center;
	background: #14171c;
	color: #f3f5f8;
	gap: 14px;
}

.lvc-consent-btn {
	appearance: none;
	border: none;
	background: var(--lvc-brand);
	color: #ffffff;
	font-weight: 600;
	padding: 10px 22px;
	border-radius: 6px;
	cursor: pointer;
	font-size: 14px;
}
