/* 2UFi YouTube Video */

.twoUfi-yt {
	--twoUfi-yt-navy: #091C30;
	--twoUfi-yt-blue: #3677D7;
	--twoUfi-yt-mint: #25D495;
	--twoUfi-yt-white: #FFFFFF;
	--twoUfi-yt-radius: 16px;

	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
	font-family: 'Inter', sans-serif;
	user-select: none;
}

.twoUfi-yt__container {
	position: relative;
	width: 100%;
	height: 0;
	padding-bottom: 56.25%;
	background: var(--twoUfi-yt-navy);
	border-radius: var(--twoUfi-yt-radius);
	overflow: hidden;
	box-shadow: 0 12px 40px rgba(9, 28, 48, 0.12);
}

/* === Iframe === */

.twoUfi-yt__iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	z-index: 1;
	transform: scale(1.01);
	transform-origin: center center;
}

/* === Stacked controls === */

.twoUfi-yt__controls {
	position: absolute;
	top: 75%;
	right: 20px;
	transform: translateY(-50%);
	z-index: 5;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* === Round button base === */

.twoUfi-yt__btn {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	background: rgba(0,0,0,0.3);
	color: var(--twoUfi-yt-white);
	transition: transform 0.2s ease, background 0.2s ease;
	padding: 0;
	outline: none;
}

.twoUfi-yt__btn .twoUfi-yt__cc-text {
	text-shadow: 0 0 0 rgba(9, 28, 48, 0.2);
}

.twoUfi-yt__btn:hover {
	transform: scale(1.1);
	background: rgba(9, 28, 48, 0.5);
}

.twoUfi-yt__btn:focus {
	outline: none;
}

.twoUfi-yt__btn:focus-visible {
	outline: 2px solid rgba(255, 255, 255, 0.6);
	outline-offset: 2px;
}

/* === Sound button === */

.twoUfi-yt__sound-btn .twoUfi-yt__icon--unmuted {
	display: none;
}

.twoUfi-yt__sound-btn[data-muted="false"] .twoUfi-yt__icon--muted {
	display: none;
}

.twoUfi-yt__sound-btn[data-muted="false"] .twoUfi-yt__icon--unmuted {
	display: block;
}

/* === CC button === */

.twoUfi-yt__cc-btn {
	position: relative;
}

.twoUfi-yt__cc-text {
	font-family: 'Inter', sans-serif;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.5px;
	line-height: 1;
	position: relative;
}

/* Strikethrough line when captions are off */
.twoUfi-yt__cc-btn[data-captions-on="false"] .twoUfi-yt__cc-text::after {
	content: "";
	position: absolute;
	top: 50%;
	left: -4px;
	right: -4px;
	height: 2px;
	background: currentColor;
	transform: translateY(-50%) rotate(-20deg);
	border-radius: 1px;
}

/* === Mobile === */

@media (max-width: 768px) {
	.twoUfi-yt__controls {
		right: 14px;
		gap: 10px;
	}

	.twoUfi-yt__btn {
		width: 40px;
		height: 40px;
	}

	.twoUfi-yt__btn .twoUfi-yt__icon {
		width: 20px;
		height: 20px;
	}

	.twoUfi-yt__cc-text {
		font-size: 12px;
	}
	
	.twoUfi-yt__controls {
		top: 60%;
	}
}

@media (max-width: 480px) {
	.twoUfi-yt__container {
		border-radius: 12px;
	}
	
	.twoUfi-yt__btn {
		width: 36px;
		height: 36px;
	}
	
	.twoUfi-yt__controls {
		right: 0;
	}
}