/* Listing video: the player, and the field on the Add Listing form. */

.mrv-player {
	position: relative;
	width: 100%;
	max-width: calc(640px * var(--mrv-r, 1.7778));
	aspect-ratio: var(--mrv-r, 1.7778);
	margin: 0 auto;
	overflow: hidden;
	border-radius: 16px;
	background: #141a16;
}
.mrv-player.is-tall.is-playing { max-width: 440px; height: 680px; aspect-ratio: auto; background: #fff; }
.mrv-player video,
.mrv-player iframe { display: block; width: 100%; height: 100%; border: 0; outline: 0; background: #141a16; }
.mrv-player.is-tall iframe { background: #fff; }
.mrv-player .mrv-play {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	cursor: pointer;
}
.mrv-player .mrv-play img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Frosted glass */
.mrv-play-btn,
.mrv-glass {
	border: 1px solid rgba(255, 255, 255, .5);
	border-radius: 50%;
	background: linear-gradient(145deg, rgba(255, 255, 255, .34), rgba(255, 255, 255, .12));
	-webkit-backdrop-filter: blur(14px) saturate(170%);
	backdrop-filter: blur(14px) saturate(170%);
	box-shadow: 0 8px 28px rgba(10, 20, 14, .28), inset 0 1px 0 rgba(255, 255, 255, .45);
	color: #fff;
}
.mrv-play-btn svg,
.mrv-glass svg { filter: drop-shadow(0 1px 3px rgba(10, 20, 14, .5)); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	.mrv-play-btn,
	.mrv-glass { background: rgba(20, 26, 22, .55); }
}
.mrv-play-btn {
	position: absolute;
	top: 50%;
	left: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 68px;
	height: 68px;
	transform: translate(-50%, -50%);
	transition: transform .15s;
}
.mrv-play:hover .mrv-play-btn { transform: translate(-50%, -50%) scale(1.07); }
.mrv-play:focus-visible .mrv-play-btn { outline: 3px solid #fff; outline-offset: 2px; }
.mrv-tag {
	position: absolute;
	right: 12px;
	bottom: 12px;
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(20, 26, 22, .78);
	color: #fff;
	font-size: 12.5px;
	font-weight: 500;
	line-height: 1.3;
}
.mrv-note { margin: 10px 0 0; color: #66716b; font-size: 13px; line-height: 1.4; text-align: center; }
.mrv-note a { color: #0b823e; font-weight: 500; text-decoration: underline; }

/* On the listing page */
body.single-job_listing .profile-cover .mrv-hero-play {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 3; /* over the picture and its shade, under the title and the sheet */
	display: flex;
	align-items: center;
	justify-content: center;
	width: 78px;
	height: 78px;
	margin: 0;
	padding: 0;
	border-radius: 50%;
	cursor: pointer;
	transform: translate(-50%, -50%);
	transition: transform .15s, background .15s;
}
body.single-job_listing .profile-cover .mrv-hero-play svg { width: 34px; height: 34px; }
body.single-job_listing .profile-cover .mrv-hero-play:hover { transform: translate(-50%, -50%) scale(1.07); }
body.single-job_listing .profile-cover .mrv-hero-play:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@media (min-width: 992px) {
	body.single-job_listing .profile-cover .mrv-hero-play { top: 42%; } /* clear of the title on large screens */
}
body.single-job_listing .profile-cover.mrv-on .main-info-desktop,
body.single-job_listing .profile-cover.mrv-on .mr-cover-count,
body.single-job_listing .profile-cover.mrv-on .mrv-hero-play { visibility: hidden; }

/* Playing in the cover: same window, same height. It stays under the sheet, like the cover. */
.mrv-hero-stage {
	position: absolute;
	inset: 0;
	z-index: 2;
	overflow: hidden;
	background: #141a16;
}
.mrv-hero-backdrop {
	position: absolute;
	inset: -40px;
	background-position: center;
	background-size: cover;
	filter: blur(24px) brightness(.55);
}
.mrv-hero-frame {
	position: absolute;
	top: var(--mrv-top, 0);
	right: 0;
	bottom: var(--mrv-clear, 0);
	left: 0;
	display: flex;
	justify-content: center;
}
.mrv-hero-stage.is-fill .mrv-hero-frame { inset: 0; }
.mrv-hero-frame { align-items: center; }
/* A linked player trimmed to the picture alone (assets/mr-video.js fit()). */
.mrv-crop { position: relative; flex: none; overflow: hidden; }
.mrv-crop.is-ig { background: #000; }
.mrv-hero-veil {
	position: absolute;
	inset: 0;
	background: #141a16 center / cover no-repeat;
	pointer-events: none;
	transition: opacity .35s;
}
.mrv-hero-veil.is-off { opacity: 0; }
.mrv-hero-shield { position: absolute; inset: 0; z-index: 2; cursor: pointer; -webkit-tap-highlight-color: transparent; }
/*
 * Over the middle of a linked player, where the platforms draw their own spinner and play signs.
 * No backdrop blur: with one over its picture YouTube pauses as soon as it starts.
 */
.mrv-hero-cap {
	position: absolute;
	top: 50%;
	left: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 78px; /* the play button's size */
	height: 78px;
	border-radius: 50%;
	background: rgba(20, 26, 22, .92);
	color: #fff;
	opacity: 0;
	visibility: hidden;
	transform: translate(-50%, -50%);
	transition: opacity .25s, visibility 0s .25s, width .15s, height .15s;
	pointer-events: none;
}
.mrv-hero-cap.is-wait,
.mrv-hero-cap.is-hint,
.mrv-hero-cap.is-flash { opacity: 1; visibility: visible; transition: opacity .1s; }
/* Paused: the sound sign shows over the play button itself, so the change can be seen */
.mrv-hero-stage .mrv-hero-sign {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 4;
	width: 78px;
	height: 78px;
	opacity: 0;
	visibility: hidden;
	transform: translate(-50%, -50%) scale(.9);
	transition: opacity .2s, transform .2s, visibility 0s .2s;
	pointer-events: none;
}
.mrv-hero-stage .mrv-hero-sign svg { width: 34px; height: 34px; }
.mrv-hero-stage.is-sign .mrv-hero-sign { opacity: 1; visibility: visible; transform: translate(-50%, -50%); transition: opacity .15s, transform .15s; }
.mrv-hero-stage .mrv-hero-resume svg { transition: opacity .15s; }
.mrv-hero-stage.is-sign .mrv-hero-resume svg { opacity: 0; }
/* The pause hint and sound sign in our frosted glass, like the other buttons. */
.mrv-hero-cap.is-hint,
.mrv-hero-cap.is-flash {
	border: 1px solid rgba(255, 255, 255, .5);
	background: linear-gradient(145deg, rgba(255, 255, 255, .34), rgba(255, 255, 255, .12));
	-webkit-backdrop-filter: blur(14px) saturate(170%);
	backdrop-filter: blur(14px) saturate(170%);
	box-shadow: 0 8px 28px rgba(10, 20, 14, .28), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.mrv-hero-cap.is-hint svg,
.mrv-hero-cap.is-flash svg { filter: drop-shadow(0 1px 3px rgba(10, 20, 14, .5)); }
/*
 * Built ahead under the play button (assets/mr-video.js build(true), aim()): only a circle of the
 * player under the button, painted over with a copy of the cover, and once ready that circle takes
 * the taps, which go straight to the player.
 */
.mrv-hero-stage.is-armed { background: none; pointer-events: none; }
.mrv-hero-stage.is-armed > :not(.mrv-hero-frame) { display: none; }
.mrv-hero-stage.is-armed .mrv-crop { clip-path: circle(0); }
.profile-cover.mrv-armed .mrv-hero-stage.is-armed .mrv-crop { pointer-events: auto; }
.mrv-hero-mirror { position: absolute; pointer-events: none; }
body.single-job_listing .profile-cover.mrv-armed .mrv-hero-play { pointer-events: none; }
.mrv-hero-cap svg { width: 36px; height: 36px; }
.mrv-hero-cap.is-hint svg { width: 30px; height: 30px; }
.mrv-hero-cap.is-wait::after {
	content: '';
	width: 30px;
	height: 30px;
	border: 3px solid rgba(255, 255, 255, .3);
	border-top-color: #fff;
	border-radius: 50%;
	animation: mrv-spin .8s linear infinite;
}
@keyframes mrv-spin { to { transform: rotate(360deg); } }
.mrv-hero-frame video,
.mrv-hero-frame iframe { display: block; width: 100%; height: 100%; border: 0; outline: 0; object-fit: contain; }
.mrv-hero-stage.is-fill .mrv-hero-frame video { object-fit: cover; }
.mrv-hero-frame video:fullscreen { object-fit: contain; background: #000; }
.mrv-hero-frame video:-webkit-full-screen { object-fit: contain; background: #000; }
.mrv-hero-stage .mrv-glass {
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0;
	cursor: pointer;
}
.mrv-hero-stage [hidden] { display: none !important; }
.mrv-hero-stage .mrv-hero-resume {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 3;
	width: 78px;
	height: 78px;
	transform: translate(-50%, -50%);
}
.mrv-hero-controls {
	position: absolute;
	right: 12px;
	bottom: calc(var(--mrv-sheet, 0px) + 14px);
	z-index: 3;
	display: flex;
	gap: 8px;
}
.mrv-hero-stage .mrv-hero-small { width: 44px; height: 44px; }
.mrv-hero-bar {
	position: absolute;
	right: var(--mrv-bar-right, 0px); /* clear of the sheet's rounded corners and the lister's picture (assets/mr-video.js barInsets()) */
	bottom: var(--mrv-sheet, 0px);
	left: var(--mrv-bar-left, 0px);
	z-index: 3;
	height: 12px;
	cursor: pointer;
}
.mrv-hero-bar::before,
.mrv-hero-bar span {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	display: block;
	height: 3px;
}
.mrv-hero-bar::before { right: 0; background: rgba(255, 255, 255, .35); }
.mrv-hero-bar span { width: 0; background: #fff; }
.mrv-hero-stage .mrv-note {
	position: absolute;
	top: calc(var(--mrv-top, 0px) + 10px);
	left: 12px;
	z-index: 3;
	margin: 0;
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(20, 26, 22, .72);
	color: #e4eae6;
	font-size: 12.5px;
}
.mrv-hero-stage .mrv-note a { color: #fff; }
.mrv-hero-stage .mrv-note { transition: opacity .4s; }
.mrv-hero-stage .mrv-note.is-gone { opacity: 0; pointer-events: none; }

/* Full screen, only when asked for */
.mrv-hero-stage.is-big .mrv-hero-frame { inset: 0; }
.mrv-hero-stage.is-big .mrv-note { display: none; }
.mrv-hero-stage.is-big .mrv-hero-bar { right: 0; bottom: env(safe-area-inset-bottom, 0px); left: 0; }
.mrv-hero-stage.is-big .mrv-hero-controls { top: calc(env(safe-area-inset-top) + 12px); right: 12px; bottom: auto; }
.mrv-hero-stage.is-fake { position: fixed; z-index: 2147483000; background: #000; }
.mrv-hero-stage.is-big.is-fill .mrv-hero-frame video { object-fit: contain; }
/* Swiped down in full screen (assets/mr-video.js): the black fades as the picture follows the finger */
.mrv-hero-stage.is-drag { background-color: rgba(0, 0, 0, var(--mrv-fade, 1)); }
.mrv-hero-stage.is-drag .mrv-hero-backdrop { opacity: var(--mrv-fade, 1); }
.mrv-hero-stage.is-drag .mrv-hero-controls,
.mrv-hero-stage.is-drag .mrv-hero-bar,
.mrv-hero-stage.is-drag .mrv-hero-resume,
.mrv-hero-stage.is-landing .mrv-hero-controls,
.mrv-hero-stage.is-landing .mrv-hero-bar { opacity: 0; }
.mrv-hero-stage.is-settling .mrv-hero-frame { transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.mrv-hero-stage.is-settling { transition: background-color .25s; }
/* Then flies home to the cover, over the edges of the cover's box on the way */
.mrv-hero-stage.is-landing { overflow: visible; }
.mrv-hero-stage.is-landing .mrv-hero-backdrop { clip-path: inset(40px); }
.mrv-hero-stage.is-landing .mrv-hero-frame { transition: transform .36s cubic-bezier(.2, .8, .2, 1); }
.mrv-hero-stage .mrv-hero-controls,
.mrv-hero-stage .mrv-hero-bar { transition: opacity .2s; }
html.mrv-locked,
html.mrv-locked body { overflow: hidden; }
html.mrv-locked .mr-tabbar { display: none !important; }
@media (max-width: 991px) {
	body.single-job_listing .mr-lp-side > .mr-lp-video { order: 1; }
}
@media (prefers-reduced-motion: reduce) {
	.mrv-play-btn,
	body.single-job_listing .profile-cover .mrv-hero-play { transition: none; }
}

/* The form field */
.mrv-field { margin-top: 8px; }
.mrv-field .field-head small { font-weight: 400; }
.mrv-field [hidden] { display: none !important; }
.mrv-tabs { display: inline-flex; gap: 4px; margin: 4px 0 12px; padding: 4px; border-radius: 999px; background: #eef2ef; }
.mrv-field .mrv-tab {
	min-height: 40px;
	margin: 0;
	padding: 8px 16px;
	border: 0;
	border-radius: 999px;
	background: none;
	box-shadow: none;
	color: #4c5851;
	font: inherit;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	cursor: pointer;
}
.mrv-field .mrv-tab.is-on { background: #fff; box-shadow: 0 1px 4px rgba(16, 40, 26, .14); color: #0b823e; }
.mrv-drop {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 26px 18px;
	border: 2px dashed #cfdcd4;
	border-radius: 16px;
	background: #f8faf9;
	color: #0b823e;
	text-align: center;
	cursor: pointer;
	transition: border-color .15s, background .15s;
}
.mrv-drop:hover, .mrv-drop:focus-within { border-color: #0b823e; background: #eaf5ee; }
.mrv-drop strong { color: #141a16; font-size: 15px; font-weight: 600; }
.mrv-drop small { color: #66716b; font-size: 13px; line-height: 1.4; }
.mrv-field .mrv-drop .mrv-file { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0; cursor: pointer; }
.mrv-progress { padding: 16px 18px; border: 1px solid #e4eae6; border-radius: 16px; background: #f8faf9; }
.mrv-progress-text { margin: 0 0 10px; color: #141a16; font-size: 14.5px; font-weight: 500; }
.mrv-bar { height: 8px; overflow: hidden; border-radius: 999px; background: #dde6e0; }
.mrv-bar span { display: block; width: 0; height: 100%; border-radius: inherit; background: #0b823e; transition: width .2s; }
.mrv-progress-hint { display: block; margin-top: 8px; color: #66716b; font-size: 13px; line-height: 1.4; }
.mrv-field .mrv-cancel,
.mrv-field .mrv-remove {
	min-height: 40px;
	margin: 10px 0 0;
	padding: 8px 16px;
	border: 1px solid #d5dfd9;
	border-radius: 999px;
	background: #fff;
	box-shadow: none;
	color: #4c5851;
	font: inherit;
	font-size: 13.5px;
	font-weight: 500;
	line-height: 1.2;
	cursor: pointer;
}
.mrv-field .mrv-remove:hover { border-color: #e0133b; color: #e0133b; }
.mrv-link-row { display: flex; gap: 8px; }
.mrv-field .mrv-link { flex: 1 1 auto; min-width: 0; margin: 0; }
.mrv-field .mrv-check {
	flex: none;
	min-height: 44px;
	margin: 0;
	padding: 8px 18px;
	border: 0;
	border-radius: 999px;
	background: #0b823e;
	box-shadow: none;
	color: #fff;
	font: inherit;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	cursor: pointer;
}
.mrv-field .mrv-check[disabled] { opacity: .6; cursor: default; }
/* A link typed but not added yet: the button calls for a tap */
.mrv-field .mrv-check.is-waiting { animation: mrv-call 1.6s ease-out infinite; }
@keyframes mrv-call {
	0% { box-shadow: 0 0 0 0 rgba(11, 130, 62, .45); }
	70%, 100% { box-shadow: 0 0 0 10px rgba(11, 130, 62, 0); }
}
.mrv-link-hint.is-waiting { color: #0b823e; font-weight: 600; }
@media (prefers-reduced-motion: reduce) {
	.mrv-field .mrv-check.is-waiting { animation: none; box-shadow: 0 0 0 3px rgba(11, 130, 62, .3); }
}
.mrv-link-hint { display: block; margin-top: 8px; color: #66716b; font-size: 13px; line-height: 1.4; }
/* The logos of the platforms a link can come from */
.mrv-plats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.mrv-plat { display: block; width: 28px; height: 28px; border-radius: 7px; box-shadow: 0 1px 3px rgba(16, 40, 26, .14); }
.mrv-plat svg { display: block; width: 28px; height: 28px; }
.mrv-plat[title="Facebook"] { border-radius: 50%; } /* its logo is round */
.mrv-plats + .mrv-link-hint { margin-top: 10px; }
.mrv-error { margin: 12px 0 0; padding: 10px 14px; border-radius: 12px; background: #fdeef1; color: #b70f30; font-size: 14px; line-height: 1.45; }
.mrv-current { max-width: 480px; margin-top: 4px; }
.mrv-current-text { margin: 10px 0 0; color: #0b823e; font-size: 14px; font-weight: 500; }
.mrv-current-text:empty { display: none; }

.mrv-cover { margin-top: 14px; padding-top: 14px; border-top: 1px solid #e4eae6; }
.mrv-cover strong { display: block; color: #141a16; font-size: 15px; font-weight: 600; }
.mrv-cover small { display: block; margin-top: 4px; color: #66716b; font-size: 13px; line-height: 1.4; }
.mrv-frames { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin-top: 12px; }
.mrv-frames:empty { display: none; }
.mrv-field .mrv-frame {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: var(--mrv-r, 1.7778);
	margin: 0;
	padding: 0;
	overflow: hidden;
	border: 0;
	border-radius: 10px;
	background: #141a16;
	box-shadow: none;
	cursor: pointer;
}
.mrv-field .mrv-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mrv-field .mrv-frame::after {
	content: '';
	position: absolute;
	inset: 0;
	border: 3px solid transparent;
	border-radius: inherit;
	pointer-events: none;
}
.mrv-field .mrv-frame:hover::after { border-color: #9fd0b2; }
.mrv-field .mrv-frame.is-on::after { border-color: #0b823e; }
.mrv-field .mrv-frame.is-on::before {
	content: '';
	position: absolute;
	z-index: 1;
	top: 6px;
	right: 6px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #0b823e url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 15px no-repeat;
}
.mrv-cover-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.mrv-field .mrv-frames-load,
.mrv-field .mrv-cover-upload {
	position: relative;
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	margin: 0;
	padding: 8px 16px;
	overflow: hidden;
	border: 1px solid #0b823e;
	border-radius: 999px;
	background: #fff;
	box-shadow: none;
	color: #0b823e;
	font: inherit;
	font-size: 13.5px;
	font-weight: 500;
	line-height: 1.2;
	cursor: pointer;
}
.mrv-field .mrv-frames-load:hover,
.mrv-field .mrv-cover-upload:hover,
.mrv-field .mrv-cover-upload:focus-within { background: #eaf5ee; }
.mrv-field .mrv-cover-upload .mrv-cover-file { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0; cursor: pointer; }
.mrv-cover small.mrv-cover-status { margin-top: 8px; color: #0b823e; font-weight: 500; }
.mrv-cover small.mrv-cover-status:empty { display: none; }

/* wp-admin's narrow side box */
#mr-video .mrv-tabs { display: flex; }
#mr-video .mrv-tab { flex: 1; padding: 6px 8px; font-size: 13px; }
#mr-video .mrv-link-row { flex-wrap: wrap; }
#mr-video .mrv-link { width: 100%; }
