/* VISTAVIDEO video player (player.html, opened in the Highslide popup) */
:root {
	--vv-accent: #0aa0c8;
	--vv-text: #ffffff;
	--vv-muted-text: rgba(255, 255, 255, 0.75);
	--vv-track: rgba(255, 255, 255, 0.25);
	--vv-buffered: rgba(255, 255, 255, 0.45);
}

html, body {
	height: 100%;
	margin: 0;
	padding: 0;
	overflow: hidden;
	background: #000;
}

.vv-player {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
	background: #000;
	color: var(--vv-text);
	font-family: 'Fira Sans', Arial, sans-serif;
	font-size: 13px;
	-webkit-user-select: none;
	user-select: none;
	outline: none;
	-webkit-tap-highlight-color: transparent;
}

.vv-video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: #000;
	cursor: pointer;
}

.vv-player.is-idle,
.vv-player.is-idle .vv-video {
	cursor: none;
}

/* Big play button in the centre */
.vv-big-play {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 76px;
	height: 76px;
	margin: -38px 0 0 -38px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.55);
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85) inset;
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.2s, transform 0.2s, opacity 0.2s;
}
.vv-big-play svg {
	display: block;
	width: 38px;
	height: 38px;
	fill: currentColor;
}
.vv-big-play:hover,
.vv-big-play:focus-visible {
	background: var(--vv-accent);
	transform: scale(1.06);
	outline: none;
}
.vv-player.is-playing .vv-big-play,
.vv-player.is-waiting .vv-big-play {
	opacity: 0;
	pointer-events: none;
}

/* Loading spinner */
.vv-spinner {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 44px;
	height: 44px;
	margin: -22px 0 0 -22px;
	border: 3px solid rgba(255, 255, 255, 0.25);
	border-top-color: #fff;
	border-radius: 50%;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s;
	animation: vv-spin 0.8s linear infinite;
}
.vv-player.is-waiting .vv-spinner {
	opacity: 1;
}
@keyframes vv-spin {
	to { transform: rotate(360deg); }
}

.vv-message {
	position: absolute;
	left: 0;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	padding: 0 24px;
	text-align: center;
	font-size: 16px;
	color: var(--vv-muted-text);
}
.vv-message[hidden] {
	display: none;
}
.vv-player.has-error .vv-big-play,
.vv-player.has-error .vv-controls {
	display: none;
}

/* Control bar */
.vv-controls {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 28px 14px 8px;
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.8));
	transition: opacity 0.3s, transform 0.3s;
}
.vv-player.is-idle .vv-controls {
	opacity: 0;
	transform: translateY(8px);
	pointer-events: none;
}

.vv-progress {
	position: relative;
	height: 16px;
	cursor: pointer;
	touch-action: none;
	outline: none;
}
.vv-progress-track {
	position: absolute;
	left: 0;
	right: 0;
	top: 6px;
	height: 4px;
	border-radius: 2px;
	background: var(--vv-track);
	overflow: hidden;
	transition: top 0.15s, height 0.15s;
}
.vv-progress:hover .vv-progress-track,
.vv-progress:focus-visible .vv-progress-track,
.vv-player.is-scrubbing .vv-progress-track {
	top: 5px;
	height: 6px;
}
.vv-progress-buffered,
.vv-progress-played {
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 0;
}
.vv-progress-buffered {
	background: var(--vv-buffered);
}
.vv-progress-played {
	background: var(--vv-accent);
}
.vv-progress-tooltip {
	position: absolute;
	bottom: 20px;
	left: 0;
	padding: 3px 7px;
	border-radius: 3px;
	background: rgba(0, 0, 0, 0.85);
	font-size: 12px;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
	transform: translateX(-50%);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.15s;
}
.vv-progress:hover .vv-progress-tooltip,
.vv-player.is-scrubbing .vv-progress-tooltip {
	opacity: 1;
}

.vv-bar {
	display: flex;
	align-items: center;
	height: 36px;
}
.vv-spacer {
	flex: 1;
}

.vv-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 4px;
	background: transparent;
	color: var(--vv-text);
	cursor: pointer;
	opacity: 0.9;
	transition: opacity 0.15s, color 0.15s;
}
.vv-btn:hover,
.vv-btn:focus-visible {
	opacity: 1;
	color: var(--vv-accent);
	outline: none;
}
.vv-btn svg {
	width: 24px;
	height: 24px;
	fill: currentColor;
}

/* Icon state switching */
.vv-icon-pause,
.vv-icon-muted,
.vv-icon-collapse {
	display: none;
}
.vv-player.is-playing .vv-icon-play,
.vv-player.is-muted .vv-icon-volume,
.vv-player.is-fullscreen .vv-icon-expand {
	display: none;
}
.vv-player.is-playing .vv-icon-pause,
.vv-player.is-muted .vv-icon-muted,
.vv-player.is-fullscreen .vv-icon-collapse {
	display: block;
}
.vv-player.no-fullscreen .vv-fullscreen {
	display: none;
}

/* "Copy link" confirmation */
.vv-toast {
	position: absolute;
	left: 50%;
	top: 16px;
	padding: 8px 14px;
	border-radius: 4px;
	background: rgba(0, 0, 0, 0.8);
	color: var(--vv-text);
	font-size: 13px;
	white-space: nowrap;
	transform: translate(-50%, -8px);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s, transform 0.2s;
}
.vv-player.has-toast .vv-toast {
	opacity: 1;
	transform: translate(-50%, 0);
}

/* Link to the video in a social network (assets/js/player-links.js) */
.vv-btn[hidden] {
	display: none;
}
.vv-link {
	margin-right: 4px;
}
.vv-link svg {
	display: none;
}
.vv-link.is-youtube .vv-icon-youtube,
.vv-link.is-vk .vv-icon-vk,
.vv-link.is-external .vv-icon-external {
	display: block;
}
.vv-link.is-youtube svg,
.vv-link.is-vk svg {
	width: 28px;
	height: 28px;
}

.vv-volume {
	display: flex;
	align-items: center;
}
.vv-volume-slider {
	width: 0;
	margin: 0;
	opacity: 0;
	cursor: pointer;
	accent-color: var(--vv-accent);
	transition: width 0.2s, opacity 0.2s, margin 0.2s;
}
.vv-volume:hover .vv-volume-slider,
.vv-volume:focus-within .vv-volume-slider {
	width: 70px;
	margin: 0 8px 0 2px;
	opacity: 1;
}

.vv-time {
	margin-left: 6px;
	color: var(--vv-muted-text);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}
.vv-current {
	color: var(--vv-text);
}

/* Bigger hit areas on touch screens and in fullscreen */
@media (pointer: coarse) {
	.vv-volume-slider {
		display: none;
	}
}
.vv-player.is-fullscreen .vv-controls {
	padding: 40px 24px 14px;
}
.vv-player.is-fullscreen .vv-bar {
	height: 44px;
}
.vv-player.is-fullscreen .vv-btn {
	width: 44px;
	height: 44px;
}
.vv-player.is-fullscreen .vv-btn svg {
	width: 28px;
	height: 28px;
}
.vv-player.is-fullscreen {
	font-size: 15px;
}
