/* Pre-roll overlay: sopra al contenuto, senza nascondere definitivamente il main player */
body.iao-vod-preroll-open {
	overflow: hidden;
}

.iao-vod-preroll-overlay {
	position: fixed;
	inset: 0;
	z-index: 99990;
	background: rgba(0, 0, 0, 0.88);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	box-sizing: border-box;
}

.iao-vod-preroll-inner {
	max-width: 960px;
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	align-items: stretch;
}

.iao-vod-preroll-media {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
	border-radius: 6px;
	overflow: hidden;
}

.iao-vod-preroll-iframe,
.iao-vod-preroll-video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	object-fit: contain;
}

.iao-vod-preroll-skip {
	align-self: flex-end;
	padding: 0.5rem 1rem;
	font: inherit;
	cursor: pointer;
	border-radius: 4px;
	border: 1px solid #ccc;
	background: #f5f5f5;
}

.iao-vod-preroll-skip:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.iao-vod-preroll-cta {
	display: inline-block;
	align-self: flex-start;
	padding: 0.5rem 1rem;
	background: #2271b1;
	color: #fff !important;
	text-decoration: none;
	border-radius: 4px;
	font-weight: 600;
}

.iao-vod-preroll-cta:hover,
.iao-vod-preroll-cta:focus {
	filter: brightness(1.08);
}
