/**
 * Kino Hero Sliders — Styles for Variant 1 ([kino_hero_slider]) & Variant 2 ([kino_peek_slider])
 */

.kino-hero-v1,
.kino-peek-v2 {
	--kh-accent: #f47b20;
	--kh-accent-hover: #e06910;
	--kh-blue: #2563eb;
	--kh-bg: #0b0d12;
	--kh-surface: #151923;
	--kh-text: #ffffff;
	--kh-muted: rgba(255, 255, 255, 0.78);
	position: relative;
	width: 100%;
	max-width: none;
	margin: 0 0 14px;
	border-radius: 26px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow:
		0 18px 46px rgba(11, 13, 18, 0.42),
		0 0 34px rgba(37, 99, 235, 0.22),
		0 0 28px rgba(244, 123, 32, 0.16),
		inset 0 1px 0 rgba(255, 255, 255, 0.14);
	background: var(--kh-bg);
	color: var(--kh-text);
	overflow: hidden;
	box-sizing: border-box;
	font-family: inherit;
}

.kino-hero-v1 *,
.kino-peek-v2 * {
	box-sizing: border-box;
}

/* Remove extra WPBakery / theme spacing around the slider section on the front page */
.amy-section:has(.kino-hero-v1),
.amy-section:has(.kino-peek-v2),
.amy-section:has(.kino-hero-v1) .vc_row,
.amy-section:has(.kino-peek-v2) .vc_row {
	margin: 0 !important;
	padding: 0 !important;
}

.amy-section:has(.kino-hero-v1) .wpb_column,
.amy-section:has(.kino-peek-v2) .wpb_column,
.amy-section:has(.kino-hero-v1) .vc_column-inner,
.amy-section:has(.kino-peek-v2) .vc_column-inner {
	padding: 0 !important;
}

.amy-section:has(.kino-hero-v1) .wpb_content_element,
.amy-section:has(.kino-peek-v2) .wpb_content_element,
.amy-section:has(.kino-hero-v1) .wpb_wrapper > p,
.amy-section:has(.kino-peek-v2) .wpb_wrapper > p {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

.amy-section:has(.kino-hero-v1) + .amy-section > .vc_row > .wpb_column > .vc_column-inner,
.amy-section:has(.kino-peek-v2) + .amy-section > .vc_row > .wpb_column > .vc_column-inner {
	padding-top: 14px !important;
}

/* ==========================================================================
   Shared Badges & Buttons
   ========================================================================== */
.kino-hero-v1__badges {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 14px;
}

.kino-hero-badge {
	display: inline-flex;
	align-items: center;
	padding: 5px 12px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	line-height: 1.1;
}

.kino-hero-badge--now {
	background: var(--kh-accent);
	color: #fff;
}

.kino-hero-badge--soon {
	background: var(--kh-blue);
	color: #fff;
}

.kino-hero-badge--outline {
	background: rgba(255, 255, 255, 0.14);
	border: 1px solid rgba(255, 255, 255, 0.3);
	color: #fff;
}

.kino-hero-badge--3d {
	background: #10b981;
	color: #fff;
}

.kino-hero-v1__day-badge {
	display: inline-flex;
	align-items: center;
	padding: 5px 11px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 800;
	color: #fff;
	line-height: 1.1;
}

.kino-hero-v1__day-badge--today {
	background: var(--kh-accent);
}

.kino-hero-v1__day-badge--future {
	background: var(--kh-blue);
}

.kino-hero-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	padding: 12px 22px;
	border-radius: 12px;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none !important;
	cursor: pointer;
	transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
	border: none;
	line-height: 1.2;
}

.kino-hero-btn:hover {
	transform: translateY(-2px);
}

.kino-hero-btn--primary {
	background: var(--kh-accent);
	color: #fff !important;
	box-shadow: 0 8px 22px rgba(244, 123, 32, 0.35);
}

.kino-hero-btn--primary:hover {
	background: var(--kh-accent-hover);
}

.kino-hero-btn--secondary {
	background: rgba(255, 255, 255, 0.12);
	color: #fff !important;
	border: 1px solid rgba(255, 255, 255, 0.25);
	backdrop-filter: blur(8px);
}

.kino-hero-btn--secondary:hover {
	background: rgba(255, 255, 255, 0.22);
	border-color: rgba(255, 255, 255, 0.45);
}

/* ==========================================================================
   Navigation Arrows & Dots
   ========================================================================== */
.kino-hero-v1__controls {
	display: contents;
}

.kino-hero-v1__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.18);
	background: rgba(15, 19, 28, 0.36);
	color: rgba(255, 255, 255, 0.88);
	font-size: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	backdrop-filter: blur(6px);
	transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.kino-hero-v1__nav:hover {
	background: var(--kh-accent);
	border-color: var(--kh-accent);
	color: #fff;
	transform: translateY(-50%) scale(1.06);
}

.kino-hero-v1__nav--prev {
	left: 14px;
}

.kino-hero-v1__nav--next {
	right: 14px;
}

.kino-hero-v1__dots {
	position: absolute;
	bottom: 13px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 10;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 5px 11px;
	border-radius: 999px;
	background: rgba(11, 13, 18, 0.5);
	backdrop-filter: blur(6px);
}

.kino-hero-v1__dot-btn {
	width: 10px;
	height: 10px;
	border-radius: 999px;
	border: none;
	padding: 0;
	background: rgba(255, 255, 255, 0.38);
	cursor: pointer;
	transition: width 0.25s ease, background 0.25s ease;
}

.kino-hero-v1__dot-btn.is-active {
	width: 28px;
	background: var(--kh-accent);
}

/* ==========================================================================
   VARIANT 1: [kino_hero_slider] — "Кінозал Hero"
   ========================================================================== */
.kino-hero-v1 {
	min-height: 440px;
}

.kino-hero-v1__track {
	position: relative;
	min-height: 440px;
}

.kino-hero-v1__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.55s ease, visibility 0.55s ease;
	display: flex;
	align-items: center;
	padding: 32px 64px 50px;
}

.kino-hero-v1__slide.is-active {
	position: relative;
	opacity: 1;
	visibility: visible;
	z-index: 2;
}

.kino-hero-v1__backdrop {
	position: absolute;
	inset: -30px;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	filter: blur(26px) brightness(0.42) saturate(1.25);
	transform: scale(1.08);
	z-index: 0;
}

.kino-hero-v1__overlay {
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 30% 50%, rgba(11, 13, 18, 0.35) 0%, rgba(11, 13, 18, 0.88) 100%);
	z-index: 1;
}

.kino-hero-v1__container {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 1220px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	gap: 40px;
	align-items: center;
}

.kino-hero-v1__poster-wrap {
	width: 100%;
	aspect-ratio: 2 / 3;
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 22px 48px rgba(0, 0, 0, 0.65);
	border: 1px solid rgba(255, 255, 255, 0.16);
	background: #151923;
}

.kino-hero-v1__poster-link {
	display: block;
	width: 100%;
	height: 100%;
}

.kino-hero-v1__poster-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}

.kino-hero-v1__poster-wrap:hover .kino-hero-v1__poster-img {
	transform: scale(1.04);
}

.kino-hero-v1__title {
	margin: 0 0 12px;
	font-size: clamp(24px, 3.2vw, 40px);
	font-weight: 800;
	line-height: 1.15;
	color: #fff;
	text-transform: uppercase;
}

.kino-hero-v1__title a {
	color: inherit !important;
	text-decoration: none !important;
}

.kino-hero-v1__title a:hover {
	color: var(--kh-accent) !important;
}

.kino-hero-v1__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	color: var(--kh-muted);
	margin-bottom: 16px;
}

.kino-hero-v1__dot {
	opacity: 0.5;
}

.kino-hero-v1__excerpt {
	margin: 0 0 20px;
	max-width: 680px;
	font-size: 15px;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.85);
}

.kino-hero-v1__sessions {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.14);
	margin-bottom: 22px;
}

.kino-hero-v1__sessions-title {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--kh-muted);
}

.kino-hero-v1__times {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.kino-hero-v1__time {
	padding: 4px 10px;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
}

.kino-hero-v1__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/* ==========================================================================
   VARIANT 2: [kino_peek_slider] — "Широкоформатна вітрина 16:9"
   ========================================================================== */
.kino-peek-v2 {
	padding: 40px 0 48px;
	background:
		radial-gradient(ellipse 85% 45% at 50% 0%, rgba(37, 99, 235, 0.42) 0%, rgba(37, 99, 235, 0.14) 48%, transparent 75%),
		radial-gradient(circle at 18% 0%, rgba(244, 123, 32, 0.14) 0%, transparent 42%),
		radial-gradient(circle at 82% 100%, rgba(37, 99, 235, 0.16) 0%, transparent 42%),
		radial-gradient(circle at 50% 0%, #1c2230 0%, #0b0d12 100%);
}

.kino-peek-v2__viewport {
	width: 100%;
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 20px;
}

.kino-peek-v2__track {
	position: relative;
}

.kino-peek-v2__card {
	display: none;
	border-radius: 22px;
	overflow: hidden;
	box-shadow:
		0 20px 50px rgba(0, 0, 0, 0.68),
		0 0 28px rgba(244, 123, 32, 0.14);
	border: 1px solid rgba(255, 255, 255, 0.16);
	background: #121620;
}

.kino-peek-v2__card.is-active {
	display: block;
	animation: kinoPeekFade 0.45s ease;
}

@keyframes kinoPeekFade {
	from {
		opacity: 0.3;
		transform: scale(0.985);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

.kino-peek-v2__media {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 8.2;
	min-height: 360px;
	max-height: 520px;
	display: flex;
	align-items: flex-end;
	overflow: hidden;
}

.kino-peek-v2__blur-bg {
	position: absolute;
	inset: -24px;
	background-position: center;
	background-size: cover;
	filter: blur(24px) brightness(0.45);
	z-index: 0;
}

.kino-peek-v2__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 25%;
	z-index: 1;
}

.kino-peek-v2__gradient {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		rgba(11, 13, 18, 0.1) 0%,
		rgba(11, 13, 18, 0.55) 52%,
		rgba(11, 13, 18, 0.95) 100%
	);
	z-index: 2;
	pointer-events: none;
}

.kino-peek-v2__poster-hit {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: block;
}

.kino-peek-v2__mini-poster {
	position: relative;
	z-index: 3;
	width: 128px;
	aspect-ratio: 2 / 3;
	border-radius: 12px;
	overflow: hidden;
	margin: 0 0 24px 32px;
	flex-shrink: 0;
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.65);
	border: 1px solid rgba(255, 255, 255, 0.25);
}

.kino-peek-v2__mini-poster img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.kino-peek-v2__overlay {
	position: relative;
	z-index: 3;
	flex: 1;
	padding: 24px 32px;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
}

.kino-peek-v2__info {
	max-width: 680px;
}

.kino-peek-v2__title {
	margin: 0 0 8px;
	font-size: clamp(22px, 2.8vw, 36px);
	font-weight: 800;
	line-height: 1.15;
	text-transform: uppercase;
	color: #fff;
}

.kino-peek-v2__title a {
	color: inherit !important;
	text-decoration: none !important;
}

.kino-peek-v2__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 14px;
	font-size: 14px;
	color: var(--kh-muted);
}

.kino-peek-v2__meta-item {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.kino-peek-v2__meta-excerpt {
	display: block;
	width: 100%;
	margin-top: 2px;
}

.kino-peek-v2__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

/* ==========================================================================
   Responsive Design (Tablets & Mobile)
   ========================================================================== */
@media (max-width: 991px) {
	.kino-hero-v1__slide {
		padding: 20px 24px 44px;
	}

	.kino-hero-v1__container {
		grid-template-columns: 180px minmax(0, 1fr);
		gap: 24px;
	}

	.kino-hero-v1__nav {
		width: 36px;
		height: 36px;
		font-size: 20px;
	}

	.kino-hero-v1__nav--prev {
		left: 8px;
	}

	.kino-hero-v1__nav--next {
		right: 8px;
	}
}

@media (max-width: 640px) {
	.kino-hero-v1,
	.kino-peek-v2 {
		width: 100%;
		margin: 0 0 12px;
		border-radius: 22px;
	}

	.kino-hero-v1,
	.kino-hero-v1__track {
		min-height: 380px;
	}

	.kino-hero-v1__slide {
		padding: 24px 16px 46px;
	}

	.kino-hero-v1__container {
		grid-template-columns: 1fr;
		text-align: center;
		justify-items: center;
	}

	.kino-hero-v1__poster-wrap {
		max-width: 165px;
	}

	.kino-hero-v1__badges,
	.kino-hero-v1__meta,
	.kino-hero-v1__sessions,
	.kino-hero-v1__actions {
		justify-content: center;
	}

	.kino-hero-v1__excerpt {
		display: none;
	}

	.kino-peek-v2 {
		padding: 30px 0 42px;
	}

	.kino-peek-v2__viewport {
		padding: 0 12px;
	}

	.kino-peek-v2__card {
		border-radius: 16px;
	}

	.kino-peek-v2__mini-poster {
		display: none;
	}

	.kino-peek-v2__media {
		min-height: 295px;
	}

	.kino-peek-v2__overlay {
		padding: 16px 14px;
	}

	.kino-hero-v1__controls {
		position: absolute;
		bottom: 6px;
		left: 50%;
		transform: translateX(-50%);
		z-index: 10;
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 10px;
		width: max-content;
		max-width: calc(100% - 16px);
	}

	.kino-hero-v1__nav {
		position: static;
		top: auto;
		left: auto;
		right: auto;
		transform: none;
		width: 28px;
		height: 28px;
		font-size: 16px;
		flex-shrink: 0;
		background: rgba(255, 255, 255, 0.12);
		border-color: rgba(255, 255, 255, 0.2);
		color: rgba(255, 255, 255, 0.9);
		backdrop-filter: blur(4px);
	}

	.kino-hero-v1__nav:hover {
		transform: scale(1.06);
	}

	.kino-hero-v1__dots {
		position: static;
		bottom: auto;
		left: auto;
		transform: none;
		padding: 5px 10px;
		gap: 6px;
	}
}
