.taio-vp {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #000;
	isolation: isolate;
}

.taio-vp__poster {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	z-index: 0;
	transition: opacity 400ms ease;
}

.taio-vp.is-playing .taio-vp__poster {
	opacity: 0;
	pointer-events: none;
}

.taio-vp__player,
.taio-vp__player iframe,
.taio-vp__mount {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	border: 0;
}

.taio-vp__player {
	z-index: 1;
}

/* During the muted preview, nobody can touch the YouTube player. */
.taio-vp:not(.is-unmuted) .taio-vp__player {
	pointer-events: none;
}

.taio-vp__overlay {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 16px;
	padding: 24px;
	cursor: pointer;
	background-color: rgba(0, 0, 0, 0.15);
	transition-property: opacity, visibility, background-color;
	transition-duration: 400ms;
	transition-timing-function: ease;
	-webkit-tap-highlight-color: transparent;
}

.taio-vp__overlay:focus-visible {
	outline: 3px solid #fff;
	outline-offset: -6px;
}

.taio-vp.is-unmuted .taio-vp__overlay {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.taio-vp__overlay-img {
	display: block;
	width: 40%;
	max-width: 100%;
	line-height: 0;
}

.taio-vp__overlay-img img {
	display: block;
	width: 100%;
	height: auto;
}

.taio-vp__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 56px;
	color: #fff;
	line-height: 1;
	filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
	transition: transform 200ms ease;
}

.taio-vp__icon svg {
	width: 1em;
	height: 1em;
	fill: #fff;
}

.taio-vp__overlay:hover .taio-vp__icon {
	transform: scale(1.08);
}

.taio-vp__label {
	display: inline-block;
	padding: 10px 18px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
}

.taio-vp-notice {
	padding: 24px;
	border: 1px dashed #c4c4c4;
	text-align: center;
	color: #6d7882;
	font-size: 13px;
}

@media (prefers-reduced-motion: reduce) {
	.taio-vp__overlay,
	.taio-vp__poster,
	.taio-vp__icon {
		transition: none;
	}
}
