/* JW VAST Player */
.jwvp-wrap,
.jwvp-iframe-wrap {
	position: relative;
	width: 100%;
	background: #000;
	overflow: hidden;
	line-height: normal;
}

.jwvp-player:not(.jwplayer) {
	height: 0;
}

.jwvp-wrap .jwplayer {
	position: relative;
}

/* Loader */
.jwvp-loader {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	background: #000;
	color: #999;
	font: 14px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	z-index: 3;
	text-align: center;
	padding: 10px;
}

.jwvp-spinner {
	position: relative;
	width: 64px;
	height: 64px;
}

.jwvp-spinner div {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	border: 3px solid transparent;
	border-top-color: var(--jwvp-color, #ff3565);
	border-bottom-color: var(--jwvp-color, #ff3565);
	animation: jwvp-spin 1.2s linear infinite;
}

.jwvp-spinner div:nth-child(2) {
	inset: 8px;
	border-top-color: #fff;
	border-bottom-color: #fff;
	border-left-color: transparent;
	animation-direction: reverse;
}

@keyframes jwvp-spin {
	to {
		transform: rotate(360deg);
	}
}

/* HTML ad zones (before play / on pause) */
.jwvp-zone {
	position: absolute;
	inset: 0;
	z-index: 20;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	background: rgba(0, 0, 0, 0.75);
	padding: 10px;
	box-sizing: border-box;
}

.jwvp-zone__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px;
	max-width: 100%;
	max-height: calc(100% - 60px);
	overflow: hidden;
}

.jwvp-zone__ad {
	max-width: 100%;
	overflow: hidden;
}

.jwvp-zone__close {
	cursor: pointer;
	border: 2px solid var(--jwvp-color, #ff3565);
	background: var(--jwvp-color, #ff3565);
	color: var(--jwvp-text, #fff);
	font: 600 14px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	padding: 10px 18px;
	border-radius: 4px;
	text-transform: none;
	box-shadow: none;
}

.jwvp-zone__close:hover {
	filter: brightness(1.1);
}

/* On small screens show only the first ad of a zone */
@media (max-width: 600px) {
	.jwvp-zone__ad + .jwvp-zone__ad {
		display: none;
	}
}

/* Logo */
.jwvp-logo {
	position: absolute;
	z-index: 10;
	max-width: 40%;
	transition: opacity 0.2s;
}

.jwvp-logo--gray {
	filter: grayscale(1);
}

.jwvp-logo--top-left {
	top: 12px;
	left: 12px;
}

.jwvp-logo--top-right {
	top: 12px;
	right: 12px;
}

.jwvp-logo--bottom-left {
	bottom: 60px;
	left: 12px;
}

.jwvp-logo--bottom-right {
	bottom: 60px;
	right: 12px;
}

/* Hide the logo while a VAST ad plays */
.jwvp-wrap .jwplayer.jw-flag-ads ~ .jwvp-logo {
	display: none;
}

/* Responsive iframes */
.jwvp-iframe-wrap--responsive {
	padding-top: 56.25%;
	height: 0;
}

.jwvp-iframe-wrap--responsive > iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100% !important;
	height: 100% !important;
	border: 0;
}

/* Main color for JW Player controls not covered by the skin option */
.jwvp-wrap .jw-skip .jw-skip-icon,
.jwvp-wrap .jw-skip.jw-skippable .jw-text {
	color: #fff;
}

.jwvp-wrap .jw-skip.jw-skippable:hover {
	background: var(--jwvp-color, #ff3565);
}
