/* Lite YouTube & Local Video Embed Styles */

lite-youtube {
	background-color: #0b192c;
	position: relative;
	display: block;
	contain: content;
	background-position: center center;
	background-size: cover;
	background-repeat: no-repeat;
	cursor: pointer;
	max-width: 720px;
	overflow: hidden;
	border-radius: 12px;
}

lite-youtube .lty-poster {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 1;
	transition: transform 0.4s ease;
	pointer-events: none;
	display: block;
}

lite-youtube:hover .lty-poster {
	transform: scale(1.05);
}

lite-youtube .gradient_up,
lite-youtube .gradient_down {
	content: '';
	display: block;
	position: absolute;
	left: 0;
	width: 100%;
	height: 30%;
	transition: opacity 0.3s ease;
	z-index: 2;
	pointer-events: none;
}

lite-youtube .gradient_up {
	top: 0;
	background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 100%);
}

lite-youtube .gradient_down {
	bottom: 0;
	background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
}

/* Aspect Ratios: Vertical Shorts (9:16) and Normal Widescreen (16:9) */
lite-youtube::after {
	content: "";
	display: block;
	padding-bottom: calc(100% / (9 / 16));
}

lite-youtube.normal::after {
	padding-bottom: calc(100% / (16 / 9));
}

lite-youtube > iframe,
lite-youtube > video {
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	border: 0;
	border-radius: inherit;
	object-fit: cover;
	z-index: 4;
}

/* Play button */
lite-youtube > .lty-playbtn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	position: absolute;
	cursor: pointer;
	transform: translate(-50%, -50%);
	top: 50%;
	left: 50%;
	z-index: 3;
	background-color: rgba(26, 54, 93, 0.85);
	backdrop-filter: blur(4px);
	border: 2px solid rgba(255, 255, 255, 0.9);
	border-radius: 50%;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
	transition: all 0.25s ease;
	outline: none;
	padding: 0;
}

lite-youtube > .lty-playbtn::after {
	content: "";
	display: block;
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 10px 0 10px 18px;
	border-color: transparent transparent transparent #ffffff;
	margin-left: 4px;
}

lite-youtube:hover > .lty-playbtn {
	background-color: #1a365d;
	transform: translate(-50%, -50%) scale(1.12);
	box-shadow: 0 12px 30px rgba(26, 54, 93, 0.5);
	border-color: #ffffff;
}

/* Activated state */
lite-youtube.lyt-activated {
	cursor: unset;
}

lite-youtube.lyt-activated .gradient_up,
lite-youtube.lyt-activated .gradient_down,
lite-youtube.lyt-activated .lty-poster,
lite-youtube.lyt-activated > .lty-playbtn {
	opacity: 0;
	pointer-events: none;
}

.lyt-visually-hidden {
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}
