.mpp-player {
	position: relative;
	width: 100%;
	max-width: 100%;
	margin: 1.5rem 0;
	font-family: inherit;
}

.mpp-stage {
	position: relative;
	width: 100%;
	background: #080808;
	overflow: hidden;
	isolation: isolate;
}

.mpp-ratio-16-9 .mpp-stage {
	aspect-ratio: 16 / 9;
}

.mpp-ratio-4-3 .mpp-stage {
	aspect-ratio: 4 / 3;
}

.mpp-ratio-1-1 .mpp-stage {
	aspect-ratio: 1 / 1;
}

.mpp-ratio-9-16 .mpp-stage {
	aspect-ratio: 9 / 16;
	max-height: 82vh;
}

.mpp-media,
.mpp-provider-host,
.mpp-provider-host > div,
.mpp-provider-host iframe {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	object-fit: contain;
	background: #080808;
}

.mpp-overlay-layer {
	position: absolute;
	inset: 0;
	z-index: 4;
	pointer-events: none;
}

.mpp-overlay {
	position: absolute;
	transform: translate(-50%, -50%);
	box-sizing: border-box;
	pointer-events: auto;
	transition: opacity 160ms ease, transform 160ms ease;
}

.mpp-overlay[hidden] {
	display: none !important;
}

.mpp-button {
	min-height: 42px;
	padding: 0.65em 1em;
	border: 1px solid rgba(255, 255, 255, 0.5);
	border-radius: 999px;
	background: rgba(12, 12, 12, 0.88);
	color: #fff;
	font: inherit;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.mpp-button:hover,
.mpp-button:focus-visible {
	background: #fff;
	color: #111;
}

.mpp-hotspot {
	width: clamp(34px, 4vw, 54px) !important;
	aspect-ratio: 1;
	padding: 0;
	border: 3px solid #fff;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.35);
	cursor: pointer;
	box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.18);
	animation: mpp-pulse 1.8s ease-in-out infinite;
}

.mpp-hotspot::after {
	content: "+";
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	color: #fff;
	font-size: 1.3rem;
	font-weight: 700;
}

.mpp-text-card,
.mpp-quiz {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: clamp(0.75rem, 2vw, 1.25rem);
	border: 1px solid rgba(255, 255, 255, 0.26);
	border-radius: 12px;
	background: rgba(10, 10, 10, 0.86);
	color: #fff;
	box-shadow: 0 12px 34px rgba(0, 0, 0, 0.35);
	backdrop-filter: blur(8px);
}

.mpp-text-card-action {
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.mpp-text-card-action:hover,
.mpp-text-card-action:focus-visible {
	border-color: #fff;
	background: rgba(24, 24, 24, 0.96);
}

.mpp-text-card strong,
.mpp-text-card span,
.mpp-quiz strong,
.mpp-quiz span {
	display: block;
}

.mpp-quiz-options {
	display: grid;
	gap: 0.45rem;
}

.mpp-quiz-options button {
	width: 100%;
	padding: 0.55rem 0.75rem;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.mpp-quiz-options button:hover,
.mpp-quiz-options button:focus-visible {
	background: #fff;
	color: #111;
}

.mpp-quiz-feedback[data-result="correct"] {
	color: #98f5a3;
}

.mpp-quiz-feedback[data-result="incorrect"] {
	color: #ffd39a;
}

.mpp-status {
	position: absolute;
	inset: auto 1rem 1rem;
	z-index: 6;
	color: #fff;
	text-align: center;
	pointer-events: none;
}

.mpp-error .mpp-status {
	padding: 0.75rem;
	border-radius: 8px;
	background: rgba(135, 15, 15, 0.92);
}

.mpp-editor-message {
	padding: 1rem;
	border-left: 4px solid #cc1818;
	background: #fff3f3;
}

@keyframes mpp-pulse {
	0%,
	100% {
		box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.14);
	}
	50% {
		box-shadow: 0 0 0 12px rgba(255, 255, 255, 0.03);
	}
}

@media (max-width: 640px) {
	.mpp-overlay {
		font-size: 0.85rem;
	}

	.mpp-text-card,
	.mpp-quiz {
		width: min(86%, 340px) !important;
	}

	.mpp-button {
		width: auto !important;
		max-width: 78%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mpp-overlay {
		transition: none;
	}

	.mpp-hotspot {
		animation: none;
	}
}
