.lf-player-gate {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 600px;
	min-height: 600px;
	aspect-ratio: auto;
	overflow: hidden;
	background:
		radial-gradient(circle at 50% 35%, var(--lf-player-glow, rgba(124, 201, 54, .18)), transparent 42%),
		linear-gradient(135deg, #181d22, #0d1013 72%);
}

.lf-player-gate__button {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	height: 100%;
	min-height: inherit;
	padding: 30px;
	border: 0;
	color: #fff;
	background: transparent;
	cursor: pointer;
	transition: background-color .2s ease, transform .2s ease;
}

.lf-player-gate__button:hover,
.lf-player-gate__button:focus-visible {
	background: rgba(255, 255, 255, .035);
}

.lf-player-gate__button:active {
	transform: scale(.99);
}

.lf-player-gate__button strong {
	font-size: 20px;
	line-height: 1.15;
}

.lf-player-gate__icon {
	color: var(--lf-player-accent, #7cc936);
	font-size: 70px;
	line-height: 1;
}

.lf-player-gate__button.is-loading {
	opacity: .5;
	cursor: wait;
}

.lf-player-gate__status {
	position: absolute;
	z-index: 2;
	left: 50%;
	bottom: 22%;
	transform: translateX(-50%);
	width: calc(100% - 32px);
	color: rgba(255, 255, 255, .82);
	text-align: center;
}

.lf-player-on-demand {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	background: #000;
}

.page__player .page__player-controls {
	min-height: 58px;
	padding: 7px 12px;
	border-bottom: 1px solid rgba(124, 201, 54, .16);
	background: linear-gradient(90deg, #14191d, #191919 70%);
}

.page__player .page__complaint {
	margin-left: auto;
}

.lf-player-select-wrap {
	position: relative;
	display: flex;
	align-items: center;
	flex: 0 0 auto !important;
	min-width: 190px;
	height: 44px;
	padding: 0 4px;
	border: 1px solid rgba(124, 201, 54, .28);
	border-radius: 10px;
	background: linear-gradient(180deg, rgba(38, 45, 49, .96), rgba(20, 24, 27, .96));
	box-shadow: 0 6px 18px rgba(0, 0, 0, .16), inset 0 1px rgba(255, 255, 255, .035);
	overflow: hidden;
	transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.lf-player-select-wrap:hover,
.lf-player-select-wrap:focus-within {
	border-color: rgba(124, 201, 54, .72);
	box-shadow: 0 8px 22px rgba(0, 0, 0, .22), 0 0 0 3px rgba(124, 201, 54, .08);
}

.lf-player-select__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 34px;
	width: 34px;
	height: 34px;
	border-radius: 8px;
	color: #fff;
	background: var(--accent);
	font-size: 13px;
	pointer-events: none;
}

.lf-player-select {
	position: relative;
	z-index: 1;
	width: 150px;
	height: 42px;
	padding: 0 38px 0 11px;
	border: 0;
	outline: 0;
	appearance: none;
	-webkit-appearance: none;
	color: #fff;
	background: transparent;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.lf-player-select option {
	color: #fff;
	background: #171b1e;
}

.lf-player-select__arrow {
	position: absolute;
	z-index: 2;
	right: 16px;
	top: 50%;
	width: 8px;
	height: 8px;
	margin-top: -6px;
	border-right: 2px solid rgba(255, 255, 255, .68);
	border-bottom: 2px solid rgba(255, 255, 255, .68);
	transform: rotate(45deg);
	pointer-events: none;
}

.lf-player-picker,
.lf-player-gate,
.lf-player-picker__option {
	--lf-player-accent: #7cc936;
	--lf-player-glow: rgba(124, 201, 54, .18);
}

[data-player-tone="spare"] {
	--lf-player-accent: #ff9f43;
	--lf-player-glow: rgba(255, 159, 67, .18);
}

[data-player-tone="additional"] {
	--lf-player-accent: #3d8bfd;
	--lf-player-glow: rgba(61, 139, 253, .18);
}

[data-player-tone="trailer"] {
	--lf-player-accent: #ed5f74;
	--lf-player-glow: rgba(237, 95, 116, .18);
}

.lf-player-picker {
	position: relative;
	flex: 0 0 auto !important;
	min-width: 190px;
	height: 44px;
	z-index: 12;
}

.lf-player-picker__toggle {
	display: flex;
	align-items: center;
	width: 100%;
	height: 44px;
	padding: 3px 13px 3px 4px;
	border: 1px solid rgba(124, 201, 54, .28);
	border-radius: 10px;
	color: #fff;
	background: linear-gradient(180deg, rgba(38, 45, 49, .96), rgba(20, 24, 27, .96));
	box-shadow: 0 6px 18px rgba(0, 0, 0, .16), inset 0 1px rgba(255, 255, 255, .035);
	cursor: pointer;
	transition: border-color .2s ease, box-shadow .2s ease;
}

.lf-player-picker__toggle:hover,
.lf-player-picker__toggle:focus-visible,
.lf-player-picker.is-open .lf-player-picker__toggle {
	border-color: var(--lf-player-accent);
	outline: none;
	box-shadow: 0 8px 22px rgba(0, 0, 0, .22), 0 0 0 3px var(--lf-player-glow);
}

.lf-player-picker__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 34px;
	width: 34px;
	height: 34px;
	border-radius: 8px;
	color: #fff;
	background: var(--lf-player-accent);
	font-size: 13px;
	transition: background-color .2s ease;
}

.lf-player-picker__current {
	flex: 1 1 auto;
	padding: 0 11px;
	font-size: 14px;
	font-weight: 600;
	text-align: left;
}

.lf-player-picker__arrow {
	flex: 0 0 8px;
	width: 8px;
	height: 8px;
	margin: -5px 1px 0 8px;
	border-right: 2px solid rgba(255, 255, 255, .68);
	border-bottom: 2px solid rgba(255, 255, 255, .68);
	transform: rotate(45deg);
	transition: transform .2s ease, margin .2s ease;
}

.lf-player-picker.is-open .lf-player-picker__arrow {
	margin-top: 5px;
	transform: rotate(225deg);
}

.lf-player-picker__menu {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	width: 100%;
	min-width: 190px;
	padding: 6px;
	border: 1px solid rgba(124, 201, 54, .24);
	border-radius: 10px;
	background: rgba(18, 22, 25, .985);
	box-shadow: 0 16px 36px rgba(0, 0, 0, .45);
}

.lf-player-picker__menu[hidden] {
	display: none;
}

.lf-player-picker__option {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 10px;
	width: 100%;
	height: 40px;
	padding: 0 9px;
	border: 0;
	border-radius: 7px;
	color: rgba(255, 255, 255, .86);
	background: transparent;
	text-align: left;
	cursor: pointer;
	transition: color .15s ease, background-color .15s ease;
}

.lf-player-picker__option + .lf-player-picker__option {
	margin-top: 2px;
}

.lf-player-picker__option span {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 25px;
	width: 25px;
	height: 25px;
	border-radius: 6px;
	color: #fff;
	background: var(--lf-player-accent);
	font-size: 10px;
}

.lf-player-picker__option b {
	flex: 1 1 auto;
	font-size: 13px;
	font-weight: 600;
	text-align: left;
}

.lf-player-picker__option:hover,
.lf-player-picker__option:focus-visible,
.lf-player-picker__option.is-active {
	color: #fff;
	background: rgba(255, 255, 255, .075);
	outline: none;
}

@media (max-width: 760px) {
	.page__player .page__player-controls {
		flex-wrap: wrap;
		gap: 6px;
		min-height: 0;
		padding: 6px 8px;
	}

	.lf-player-gate {
		height: auto;
		min-height: 231px;
		aspect-ratio: 160 / 99;
	}

	.lf-player-picker {
		width: 100%;
		min-width: 0;
		height: 35px;
	}

	.lf-player-picker__toggle {
		height: 35px;
		padding: 3px 10px 3px 3px;
		border-radius: 8px;
	}

	.lf-player-picker__icon {
		flex-basis: 27px;
		width: 27px;
		height: 27px;
		border-radius: 6px;
		font-size: 11px;
	}

	.lf-player-picker__current {
		padding: 0 9px;
		font-size: 13px;
	}

	.lf-player-picker__arrow {
		width: 7px;
		height: 7px;
		margin-left: 6px;
	}

	.lf-player-picker__menu {
		top: calc(100% + 5px);
		min-width: 0;
		padding: 5px;
		border-radius: 8px;
	}

	.lf-player-picker__option {
		height: 34px;
		padding: 0 7px;
	}

	.page__player .page__complaint {
		display: flex;
		align-items: center;
		justify-content: space-between;
		width: 100%;
		min-height: 30px;
		margin: 0;
		padding: 0 4px;
		gap: 10px;
		font-size: 12px;
	}

	.page__player .page__complaint a {
		gap: 6px;
	}

	.lf-player-gate__button {
		min-height: 231px;
		padding: 20px;
	}

	.lf-player-gate__icon {
		font-size: 56px;
	}

	.lf-player-gate__button strong {
		font-size: 18px;
	}
}

/* Temporary test: load the selected iframe without a site play cover. */
.lf-player-gate { background:#000; }
.lf-player-gate:not(.is-error) .lf-player-gate__button { display:none !important; }
.lf-player-gate.is-error .lf-player-gate__button { width:auto; height:auto; min-height:0; padding:12px 18px; border-radius:4px; background:#79bd3b; }

/* Hidden loading/error status must not overlay an active provider player. */
.lf-player-gate__status[hidden] { display:none !important; }
