/* Miles Full Movie — nakładka pełnoekranowa */

.mfm-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #000;
	overflow: hidden;
}

.mfm-overlay.mfm-hidden {
	display: none;
}

.mfm-overlay__inner {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

/* Proporcje 16:9, wypełnienie ekranu z zachowaniem kadru */
.mfm-video-wrap {
	position: relative;
	width: 100vw;
	height: 56.25vw;          /* 16:9 względem szerokości */
	max-height: 100vh;
	max-width: 177.78vh;      /* 16:9 względem wysokości */
}

.mfm-video-wrap iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* Przycisk zamknięcia */
.mfm-close {
	position: absolute;
	top: 16px;
	right: 20px;
	z-index: 10;
	width: 48px;
	height: 48px;
	line-height: 1;
	font-size: 34px;
	color: #fff;
	background: rgba(0, 0, 0, 0.45);
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
}

.mfm-close:hover,
.mfm-close:focus {
	background: rgba(0, 0, 0, 0.8);
	transform: scale(1.05);
	outline: none;
}

/* Checkbox "nie pokazuj więcej" */
.mfm-dismiss {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 10;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	color: #fff;
	font-size: 15px;
	background: rgba(0, 0, 0, 0.5);
	border-radius: 999px;
	cursor: pointer;
	user-select: none;
	white-space: nowrap;
}

.mfm-dismiss input {
	width: 18px;
	height: 18px;
	cursor: pointer;
	accent-color: #fff;
}

@media (max-width: 600px) {
	.mfm-close {
		top: 10px;
		right: 12px;
		width: 42px;
		height: 42px;
		font-size: 28px;
	}

	.mfm-dismiss {
		font-size: 13px;
		bottom: 14px;
		padding: 8px 14px;
	}
}

/* Blokada przewijania strony pod spodem */
html.mfm-no-scroll,
body.mfm-no-scroll {
	overflow: hidden !important;
}
