#tlg-bgm-player.tlg-bgm-player {
	align-items: center;
	backdrop-filter: blur(10px);
	background: rgba(8, 43, 89, 0.9);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 999px;
	bottom: max(18px, env(safe-area-inset-bottom));
	box-shadow: 0 10px 30px rgba(4, 20, 43, 0.28);
	display: flex;
	gap: 7px;
	padding: 7px;
	position: fixed;
	right: max(18px, env(safe-area-inset-right));
	z-index: 99999;
}

#tlg-bgm-player .tlg-bgm-button {
	align-items: center;
	appearance: none;
	background: #ffffff;
	border: 0;
	border-radius: 50%;
	color: #082b59;
	cursor: pointer;
	display: inline-flex;
	font-size: 15px;
	height: 36px;
	justify-content: center;
	line-height: 1;
	padding: 0;
	transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
	width: 36px;
}

#tlg-bgm-player .tlg-bgm-button:hover,
#tlg-bgm-player .tlg-bgm-button:focus-visible {
	background: #37b8d4;
	color: #082b59;
	outline: none;
	transform: scale(1.06);
}

#tlg-bgm-player .tlg-bgm-button:focus-visible,
#tlg-bgm-player input:focus-visible {
	outline: 3px solid #d8ad61;
	outline-offset: 2px;
}

#tlg-bgm-player .tlg-bgm-mute {
	background: transparent;
	color: #ffffff;
	font-size: 18px;
}

#tlg-bgm-player .tlg-bgm-mute:hover,
#tlg-bgm-player .tlg-bgm-mute:focus-visible {
	background: rgba(255, 255, 255, 0.16);
	color: #ffffff;
}

#tlg-bgm-player .tlg-bgm-volume-wrap {
	display: inline-flex;
	margin: 0 1px;
}

#tlg-bgm-player input[type="range"] {
	accent-color: #37b8d4;
	cursor: pointer;
	max-width: 74px;
	width: 16vw;
}

#tlg-bgm-player .tlg-bgm-status {
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

#tlg-bgm-player .tlg-bgm-sr-only {
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

@media (max-width: 480px) {
	#tlg-bgm-player.tlg-bgm-player {
		bottom: max(12px, env(safe-area-inset-bottom));
		right: max(12px, env(safe-area-inset-right));
	}

	#tlg-bgm-player input[type="range"] {
		max-width: 58px;
		width: 15vw;
	}
}
