/* PhiWebStudio - YouTube Lite Embed */

.pws-ytl {
	position: relative;
	display: block;
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
	background: #000;
	overflow: hidden;
}

.pws-ytl--16x9 {
	aspect-ratio: 16 / 9;
}

.pws-ytl--4x3 {
	aspect-ratio: 4 / 3;
}

/* Fallback for very old browsers without aspect-ratio support. */
@supports not (aspect-ratio: 16 / 9) {
	.pws-ytl--16x9 { padding-top: 56.25%; }
	.pws-ytl--4x3  { padding-top: 75%; }
}

.pws-ytl__btn {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	margin: 0;
	cursor: pointer;
	background: transparent;
}

.pws-ytl__thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.pws-ytl__play {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 68px;
	height: 48px;
	transform: translate(-50%, -50%);
	background: rgba(0, 0, 0, 0.7);
	border-radius: 12px;
	transition: background 0.2s ease;
}

.pws-ytl__play::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-40%, -50%);
	border-style: solid;
	border-width: 11px 0 11px 19px;
	border-color: transparent transparent transparent #fff;
}

.pws-ytl__btn:hover .pws-ytl__play,
.pws-ytl__btn:focus-visible .pws-ytl__play {
	background: #f00;
}

.pws-ytl__btn:focus-visible {
	outline: 3px solid #fff;
	outline-offset: -3px;
}

.pws-ytl iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* Friendly "video unavailable" notice. */
.pws-ytl--unavailable {
	background: #1a1a1a;
}

.pws-ytl__notice {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 20px;
	text-align: center;
	color: #e6e6e6;
	font-size: 15px;
	line-height: 1.4;
}

.pws-ytl__notice-icon {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 2px solid #888;
	position: relative;
	flex: 0 0 auto;
}

.pws-ytl__notice-icon::before {
	content: "!";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-weight: 700;
	font-size: 22px;
	color: #888;
}

.pws-ytl__notice-text {
	max-width: 36ch;
}
