/* YouBeats SoundMatch search panel */
#youbeats-soundmatch-root {
	position: relative;
	z-index: 2147482000;
}

#youbeats-soundmatch-trigger {
	position: fixed;
	right: 22px;
	bottom: 86px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: 0;
	border-radius: 999px;
	padding: 12px 17px 12px 13px;
	background: #c12e2a;
	box-shadow: 0 10px 28px rgba(0, 0, 0, .28), 0 0 0 0 rgba(193, 46, 42, .35);
	color: #fff;
	cursor: pointer;
	font: 700 14px/1.1 Arial, sans-serif;
	letter-spacing: .02em;
	transition: transform .18s ease, box-shadow .18s ease;
	font-size: 15px;
	animation: youbeats-soundmatch-pulse 1.8s ease-out infinite;
}

@keyframes youbeats-soundmatch-pulse {
	0%, 32%, 100% {
		box-shadow: 0 10px 28px rgba(0, 0, 0, .28), 0 0 0 0 rgba(193, 46, 42, .42), 0 0 18px rgba(193, 46, 42, .2);
	}
	46% {
		box-shadow: 0 12px 34px rgba(0, 0, 0, .34), 0 0 0 14px rgba(193, 46, 42, 0), 0 0 34px rgba(193, 46, 42, .72);
	}
	55% {
		box-shadow: 0 12px 34px rgba(0, 0, 0, .34), 0 0 0 3px rgba(193, 46, 42, .16), 0 0 24px rgba(193, 46, 42, .48);
	}
}

#youbeats-soundmatch-trigger:hover,
#youbeats-soundmatch-trigger:focus {
	transform: translateY(-2px);
	box-shadow: 0 14px 34px rgba(0, 0, 0, .36), 0 0 0 4px rgba(193, 46, 42, .18);
	outline: none;
}

.youbeats-soundmatch-trigger-icon {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 2px;
	width: 24px;
	height: 22px;
	overflow: visible;
	box-sizing: border-box;
}

.youbeats-soundmatch-trigger-icon i {
	display: block;
	width: 3px;
	border-radius: 4px;
	background: #fff;
	box-shadow: 0 0 5px rgba(255, 255, 255, .55);
}

.youbeats-soundmatch-trigger-icon i:nth-child(1) { height: 8px; }
.youbeats-soundmatch-trigger-icon i:nth-child(2) { height: 14px; }
.youbeats-soundmatch-trigger-icon i:nth-child(3) { height: 20px; }
.youbeats-soundmatch-trigger-icon i:nth-child(4) { height: 12px; }
.youbeats-soundmatch-trigger-icon i:nth-child(5) { height: 7px; }

#youbeats-soundmatch-modal {
	position: fixed;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(8, 12, 20, .72);
	font-family: Arial, sans-serif;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity .24s ease, visibility .24s ease;
}

#youbeats-soundmatch-modal[hidden] {
	display: none;
}

#youbeats-soundmatch-modal.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.youbeats-soundmatch-dialog {
	position: relative;
	display: flex;
	flex-direction: column;
	width: min(900px, calc(100vw - 44px));
	max-height: min(850px, calc(100vh - 128px));
	overflow: auto;
	border: 1px solid rgba(255, 255, 255, .16);
	border-radius: 20px;
	background: #121722;
	box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(226, 27, 45, .08);
	color: #f8fafc;
	transform: translate(36vw, 36vh) scale(.12);
	transform-origin: center center;
	opacity: 0;
	transition: transform .42s cubic-bezier(.16, .9, .22, 1), opacity .26s ease;
}

#youbeats-soundmatch-modal.is-open .youbeats-soundmatch-dialog {
	transform: translate(0, 0) scale(1);
	opacity: 1;
}

.youbeats-soundmatch-head {
	display: flex;
	justify-content: space-between;
	gap: 18px;
	padding: 24px 26px 14px;
}

.youbeats-soundmatch-head h2 {
	margin: 0;
	font-size: 26px;
	font-weight: 800;
}

.youbeats-soundmatch-head p {
	max-width: 650px;
	margin: 7px 0 0;
	color: #aeb8c7;
	font-size: 14px;
	line-height: 1.45;
}

.youbeats-soundmatch-close {
	flex: 0 0 auto;
	width: 36px;
	height: 36px;
	border: 1px solid rgba(255, 255, 255, .2);
	border-radius: 50%;
	background: transparent;
	color: #fff;
	font-size: 23px;
	cursor: pointer;
}

.youbeats-soundmatch-close:hover,
.youbeats-soundmatch-close:focus {
	border-color: #e21b2d;
	background: rgba(226, 27, 45, .12);
	outline: none;
}

.youbeats-soundmatch-form {
	padding: 0 26px 18px;
}

.youbeats-soundmatch-form textarea {
	display: block;
	width: 100%;
	min-height: 82px;
	box-sizing: border-box;
	resize: vertical;
	border: 1px solid #3a4659;
	border-radius: 12px;
	padding: 13px 14px;
	background: #1b2331;
	color: #fff;
	font: 15px/1.45 Arial, sans-serif;
}

.youbeats-soundmatch-form textarea:focus {
	border-color: #e21b2d;
	outline: none;
	box-shadow: 0 0 0 3px rgba(226, 27, 45, .16);
}

.youbeats-soundmatch-input-tools {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
	margin-top: 9px;
}

.youbeats-soundmatch-tool {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	min-width: 0;
	height: 48px;
	min-height: 48px;
	box-sizing: border-box;
	border: 1px solid #3a4659;
	border-radius: 9px;
	padding: 8px 11px;
	background: #1b2331;
	color: #cbd5e1;
	font: 700 12px/1 Arial, sans-serif;
	cursor: pointer;
	margin: 0;
	text-align: center;
	-webkit-appearance: none;
	appearance: none;
}

.youbeats-soundmatch-file-label {
	position: relative;
}

.youbeats-soundmatch-tool-icon {
	width: 17px;
	height: 17px;
	flex: 0 0 17px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.youbeats-soundmatch-tool:hover,
.youbeats-soundmatch-tool:focus,
.youbeats-soundmatch-tool.is-listening {
	border-color: #e21b2d;
	background: rgba(226, 27, 45, .15);
	color: #fff;
	outline: none;
}

.youbeats-soundmatch-tool[disabled] {
	opacity: .55;
	cursor: not-allowed;
}

.youbeats-soundmatch-tool.is-listening .youbeats-soundmatch-tool-icon {
	filter: drop-shadow(0 0 4px rgba(255, 255, 255, .7));
}

.youbeats-soundmatch-hum-meter {
	display: none;
	align-items: flex-end;
	justify-content: center;
	gap: 2px;
	width: 24px;
	height: 17px;
	flex: 0 0 24px;
}

.youbeats-soundmatch-hum-meter i {
	display: block;
	width: 3px;
	height: 5px;
	border-radius: 3px;
	background: currentColor;
	box-shadow: 0 0 5px rgba(255, 255, 255, .45);
	animation: youbeats-soundmatch-meter .72s ease-in-out infinite alternate;
}

.youbeats-soundmatch-hum-meter i:nth-child(2) { animation-delay: -.42s; }
.youbeats-soundmatch-hum-meter i:nth-child(3) { animation-delay: -.18s; }
.youbeats-soundmatch-hum-meter i:nth-child(4) { animation-delay: -.58s; }
.youbeats-soundmatch-hum-meter i:nth-child(5) { animation-delay: -.30s; }
.youbeats-soundmatch-hum-meter i:nth-child(6) { animation-delay: -.50s; }

@keyframes youbeats-soundmatch-meter {
	from { height: 4px; opacity: .6; }
	to { height: 16px; opacity: 1; }
}

.youbeats-soundmatch-tool.is-listening .youbeats-soundmatch-hum-meter {
	display: inline-flex;
}

.youbeats-soundmatch-tool.is-listening.has-live-meter .youbeats-soundmatch-hum-meter i {
	animation: none;
}

.youbeats-soundmatch-file-label input {
	position: absolute;
	width: 1px;
	height: 1px;
	top: auto;
	left: -9999px;
	opacity: 0;
}

.yb-soundmatch-result-badges {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 5px;
	min-height: 13px;
	margin-bottom: 3px;
}

.yb-soundmatch-result-badges span {
	display: inline;
	padding: 0;
	font-size: 9px;
	font-weight: 500;
	line-height: 1.15;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.yb-soundmatch-match-badge {
	color: rgba(193, 46, 42, .9);
}

.yb-soundmatch-sponsored-badge {
	color: rgba(241, 199, 91, .78);
}

.youbeats-soundmatch-file-name {
	min-height: 18px;
	margin-top: 5px;
	color: #8f9bad;
	font-size: 12px;
}

.youbeats-soundmatch-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 12px;
}

.youbeats-soundmatch-search-controls {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 0 0 auto;
}

.youbeats-soundmatch-sort {
	display: flex;
	align-items: center;
	gap: 7px;
	color: #aeb8c7;
	font-size: 12px;
	white-space: nowrap;
}

.youbeats-soundmatch-sort select {
	border: 1px solid #3a4659;
	border-radius: 8px;
	padding: 8px 26px 8px 9px;
	background: #1b2331;
	color: #cbd5e1;
	font-size: 12px;
	cursor: pointer;
}

.youbeats-soundmatch-sort select:focus {
	border-color: #e21b2d;
	outline: none;
}

.youbeats-soundmatch-examples {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
}

.youbeats-soundmatch-example {
	border: 1px solid #3a4659;
	border-radius: 999px;
	padding: 7px 10px;
	background: transparent;
	color: #cbd5e1;
	font-size: 12px;
	cursor: pointer;
}

.youbeats-soundmatch-example:hover,
.youbeats-soundmatch-example:focus {
	border-color: #e21b2d;
	color: #fff;
	outline: none;
}

.youbeats-soundmatch-submit {
	flex: 0 0 auto;
	border: 0;
	border-radius: 10px;
	padding: 11px 16px;
	background: #e21b2d;
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}

.youbeats-soundmatch-submit:hover,
.youbeats-soundmatch-submit:focus {
	background: #f1263a;
	outline: none;
}

.youbeats-soundmatch-submit[disabled] {
	opacity: .6;
	cursor: wait;
}

.youbeats-soundmatch-status {
	padding: 0 26px 13px;
	color: #aeb8c7;
	font-size: 13px;
	line-height: 1.45;
}

.youbeats-soundmatch-results {
	padding: 0 26px 26px;
}

.youbeats-soundmatch-empty,
.youbeats-soundmatch-loading,
.youbeats-soundmatch-error {
	padding: 22px 0;
	color: #aeb8c7;
	text-align: center;
}

.youbeats-soundmatch-error {
	color: #ff9da6;
}

@media (prefers-reduced-motion: reduce) {
	#youbeats-soundmatch-trigger,
	.youbeats-soundmatch-dialog,
	#youbeats-soundmatch-modal {
		animation: none;
		transition: none;
	}
}

@media (max-width: 620px) {
	#youbeats-soundmatch-trigger {
		right: 12px;
		bottom: 70px;
		padding: 11px 13px 11px 11px;
	}

	#youbeats-soundmatch-trigger-label {
		display: none;
	}

	#youbeats-soundmatch-modal {
		align-items: flex-end;
		padding: 0;
	}

	.youbeats-soundmatch-dialog {
		width: 100%;
		max-height: 94vh;
		border-radius: 20px 20px 0 0;
		transform: translate(0, 42vh) scale(.96);
		transform-origin: bottom center;
	}

	.youbeats-soundmatch-head,
	.youbeats-soundmatch-form,
	.youbeats-soundmatch-status,
	.youbeats-soundmatch-results {
		padding-left: 16px;
		padding-right: 16px;
	}

	.youbeats-soundmatch-actions {
		align-items: stretch;
		flex-direction: column;
	}

	.youbeats-soundmatch-submit {
		width: 100%;
	}

	.youbeats-soundmatch-search-controls {
		align-items: stretch;
		flex-direction: column;
		width: 100%;
	}

	.youbeats-soundmatch-sort {
		justify-content: space-between;
		width: 100%;
	}

	.youbeats-soundmatch-sort select {
		flex: 1 1 auto;
	}

	.youbeats-soundmatch-input-tools {
		grid-template-columns: 1fr;
	}

	.youbeats-soundmatch-tool,
	.youbeats-soundmatch-file-label {
		width: 100%;
	}
}
