.ptl-youtube-preview {
	--ptl-yt-preview-scale: 1.5;
	position: relative;
	width: 100%;
	overflow: hidden;
	background: #000;
	border-radius: 12px;
}

.ptl-youtube-preview__player {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	min-height: 120px;
	overflow: hidden;
	border-radius: 12px;
}

.ptl-youtube-preview__poster {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	pointer-events: none;
	transition: opacity 0.25s ease;
}

.ptl-youtube-preview.is-playing .ptl-youtube-preview__poster {
	opacity: 0;
}

.ptl-youtube-preview__iframe {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 0;
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	pointer-events: none;
	transform: translate(-50%, -50%) scale(var(--ptl-yt-preview-scale));
	transform-origin: center center;
}

.ptl-youtube-preview__hit {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	background: transparent;
	text-decoration: none;
}

.ptl-youtube-preview__hit-icon {
	display: block;
	width: 85px;
	height: auto;
	max-width: 22%;
	pointer-events: none;
}

.ptl-youtube-preview__hit:focus {
	outline: 2px solid rgba(255, 255, 255, 0.85);
	outline-offset: -4px;
}

.ptl-youtube-preview__hit:focus:not(:focus-visible) {
	outline: none;
}
