.mjdb-search-trigger {
	float: right;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 38px;
	margin-top: 21px;
	padding: 0 13px;
	border: 1px solid #d8d8d8;
	border-radius: 999px;
	background: #fff;
	color: #2f2f2f;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
	cursor: pointer;
}

.mjdb-search-trigger:hover,
.mjdb-search-trigger:focus {
	border-color: #9d9d9d;
	background: #f6f6f6;
	outline: none;
}

.mjdb-search-trigger__icon,
.mjdb-search-input-wrap__icon {
	position: relative;
	width: 15px;
	height: 15px;
	border: 2px solid currentColor;
	border-radius: 50%;
	flex: 0 0 auto;
	opacity: .58;
}

.mjdb-search-trigger__icon::after,
.mjdb-search-input-wrap__icon::after {
	content: "";
	position: absolute;
	right: -6px;
	bottom: -4px;
	width: 8px;
	height: 2px;
	background: currentColor;
	transform: rotate(45deg);
	transform-origin: center;
}

.mjdb-search-is-open {
	overflow: hidden;
}

.mjdb-search-overlay[hidden] {
	display: none;
}

.mjdb-search-overlay {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 12vh 18px 28px;
}

.mjdb-search-overlay__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(238, 229, 219, .76);
	backdrop-filter: blur(7px);
}

.mjdb-search-panel {
	position: relative;
	z-index: 1;
	width: min(820px, 100%);
	max-height: min(760px, calc(100vh - 80px));
	overflow: hidden;
	background: #fff;
	border: 1px solid rgba(15, 15, 15, .08);
	border-radius: 10px;
	box-shadow: 0 24px 70px rgba(0, 0, 0, .18);
	color: #2d2d2d;
}

.mjdb-search-panel__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	height: 0;
}

.mjdb-search-panel__eyebrow {
	position: absolute;
	left: -9999px;
	margin: 0;
}

.mjdb-search-close {
	position: absolute;
	top: 16px;
	right: 14px;
	z-index: 2;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 6px;
	background: transparent;
	cursor: pointer;
}

.mjdb-search-close::before,
.mjdb-search-close::after {
	content: "";
	position: absolute;
	top: 15px;
	left: 8px;
	width: 16px;
	height: 2px;
	background: #8d8d8d;
}

.mjdb-search-close::before {
	transform: rotate(45deg);
}

.mjdb-search-close::after {
	transform: rotate(-45deg);
}

.mjdb-search-close:hover,
.mjdb-search-close:focus {
	background: #f1f1f1;
	outline: none;
}

.mjdb-search-label {
	position: absolute;
	left: -9999px;
}

.mjdb-search-input-wrap {
	display: flex;
	align-items: center;
	gap: 18px;
	min-height: 82px;
	padding: 0 58px 0 28px;
	background: #fff;
	color: #777;
}

.mjdb-search-panel input.mjdb-search-input {
	appearance: none;
	-webkit-appearance: none;
	width: 100%;
	min-width: 0;
	height: 82px;
	padding: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	background: transparent;
	color: #1f1f1f;
	font-size: 25px;
	font-weight: 500;
	line-height: 1;
}

.mjdb-search-panel input.mjdb-search-input::placeholder {
	color: #a8a8a8;
}

.mjdb-search-panel input.mjdb-search-input:focus {
	border: 0;
	box-shadow: none;
	outline: none;
}

.mjdb-search-results {
	max-height: calc(min(760px, 100vh - 80px) - 82px);
	overflow: auto;
	padding: 14px 8px 0;
}

.mjdb-search-empty {
	padding: 42px 22px 48px;
	text-align: center;
}

.mjdb-search-empty p {
	margin: 0;
	color: #898989;
	font-size: 15px;
	line-height: 1.45;
}

.mjdb-search-section {
	margin: 4px 0 18px;
}

.mjdb-search-section__head {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px 6px;
}

.mjdb-search-section__head h3 {
	margin: 0;
	color: #777;
	font-size: 12px;
	font-weight: 800;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: .04em;
}

.mjdb-search-section__head span {
	color: #ababab;
	font-size: 12px;
	font-weight: 700;
}

.mjdb-search-list {
	display: grid;
	gap: 2px;
}

.mjdb-search-row {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr) 28px;
	align-items: center;
	gap: 12px;
	min-height: 58px;
	padding: 7px 10px;
	border-radius: 6px;
	color: #2d2d2d;
	text-decoration: none;
}

.mjdb-search-row:hover,
.mjdb-search-row:focus,
.mjdb-search-row.is-selected {
	background: #f1f1f1;
	outline: none;
}

.mjdb-search-row__media {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	background: #f3f3f3;
	border: 1px solid #e7e7e7;
	border-radius: 4px;
	color: #8d8d8d;
	overflow: hidden;
}

.mjdb-search-row__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mjdb-search-row--albums .mjdb-search-row__media img,
.mjdb-search-row--songs .mjdb-search-row__media img {
	object-fit: contain;
	padding: 3px;
	background: #111;
}

.mjdb-search-row__placeholder {
	font-size: 16px;
	font-weight: 800;
	text-transform: uppercase;
}

.mjdb-search-row__body {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: baseline;
	column-gap: 8px;
	min-width: 0;
}

.mjdb-search-row__title {
	overflow: hidden;
	color: #2f2f2f;
	font-size: 16px;
	font-weight: 750;
	line-height: 1.2;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mjdb-search-row__meta {
	overflow: hidden;
	color: #8c8c8c;
	font-size: 14px;
	line-height: 1.2;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mjdb-search-row__meta::before {
	content: "- ";
	color: #b0b0b0;
}

.mjdb-search-row__summary {
	grid-column: 1 / -1;
	overflow: hidden;
	margin-top: 4px;
	color: #7e7e7e;
	font-size: 12px;
	line-height: 1.35;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mjdb-search-row__enter {
	justify-self: end;
	color: #a8a8a8;
	font-size: 18px;
	opacity: 0;
}

.mjdb-search-row:hover .mjdb-search-row__enter,
.mjdb-search-row:focus .mjdb-search-row__enter,
.mjdb-search-row.is-selected .mjdb-search-row__enter {
	opacity: 1;
}

.mjdb-search-footer {
	position: sticky;
	bottom: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: 14px -8px 0;
	padding: 10px 18px;
	border-top: 1px solid #ececec;
	background: rgba(255, 255, 255, .96);
	color: #8d8d8d;
}

.mjdb-search-footer a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
	padding: 6px 8px;
	border-radius: 5px;
	color: #555;
	font-size: 13px;
	text-decoration: none;
}

.mjdb-search-footer a:hover,
.mjdb-search-footer a:focus,
.mjdb-search-footer a.is-selected {
	background: #f1f1f1;
	outline: none;
}

.mjdb-search-footer strong {
	overflow: hidden;
	color: #222;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mjdb-search-footer p {
	margin: 0;
	color: #999;
	font-size: 12px;
	white-space: nowrap;
}

@media (max-width: 760px) {
	.mjdb-search-trigger {
		position: absolute;
		right: 16px;
		top: 20px;
		margin-top: 0;
		width: 38px;
		padding: 0;
		justify-content: center;
	}

	.mjdb-search-trigger__label {
		position: absolute;
		left: -9999px;
	}

	.mjdb-search-overlay {
		padding: 0;
	}

	.mjdb-search-panel {
		width: 100%;
		min-height: 100vh;
		max-height: 100vh;
		border: 0;
		border-radius: 0;
		box-shadow: none;
	}

	.mjdb-search-input-wrap {
		min-height: 72px;
		padding: 0 52px 0 18px;
	}

	.mjdb-search-panel input.mjdb-search-input {
		height: 72px;
		font-size: 22px;
	}

	.mjdb-search-results {
		max-height: calc(100vh - 72px);
	}

	.mjdb-search-row {
		grid-template-columns: 40px minmax(0, 1fr);
		padding: 8px 10px;
	}

	.mjdb-search-row__body {
		grid-template-columns: minmax(0, 1fr);
	}

	.mjdb-search-row__meta::before {
		content: "";
	}

	.mjdb-search-row__enter {
		display: none;
	}

	.mjdb-search-footer {
		align-items: flex-start;
		flex-direction: column;
		gap: 6px;
	}
}
