.mmtv-global-search {
	position: relative;
	z-index: 20;
	width: min(100% - 40px, 1180px);
	margin: 28px auto 48px;
	font-family: inherit;
}

.mmtv-global-search *,
.mmtv-global-search *::before,
.mmtv-global-search *::after {
	box-sizing: border-box;
}

.mmtv-global-search__container {
	position: relative;
	width: min(100%, 820px);
	margin-inline: auto;
}

.mmtv-global-search__field {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 66px;
	padding: 0 62px 0 22px;
	border: 1px solid rgba(13, 19, 25, .1);
	border-radius: 22px;
	background: #fff;
	box-shadow: 0 15px 45px rgba(13, 19, 25, .08);
	transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.mmtv-global-search__field:focus-within {
	border-color: #a8d500;
	box-shadow: 0 0 0 4px rgba(202, 255, 0, .18), 0 18px 55px rgba(13, 19, 25, .11);
}

.mmtv-global-search__field > svg {
	flex: 0 0 auto;
	margin-right: 14px;
	fill: none;
	stroke: #5d6670;
	stroke-linecap: round;
	stroke-width: 1.8;
}

.mmtv-global-search input[type="search"] {
	width: 100%;
	min-width: 0;
	height: 64px;
	margin: 0;
	padding: 0;
	border: 0;
	outline: 0;
	background: transparent;
	box-shadow: none;
	color: #0d1319;
	font: inherit;
	font-size: clamp(17px, 2vw, 20px);
	font-weight: 560;
	letter-spacing: -.015em;
	-webkit-appearance: none;
}

.mmtv-global-search input[type="search"]::-webkit-search-cancel-button {
	display: none;
}

.mmtv-global-search input::placeholder {
	color: #7d858d;
	opacity: 1;
}

.mmtv-global-search__clear {
	position: absolute;
	top: 50%;
	right: 16px;
	display: grid;
	width: 38px;
	height: 38px;
	padding: 0;
	transform: translateY(-50%);
	place-items: center;
	border: 0;
	border-radius: 50%;
	background: #f0f2f3;
	color: #39414a;
	font-size: 24px;
	font-weight: 300;
	line-height: 1;
	cursor: pointer;
}

.mmtv-global-search__clear:hover {
	background: #e7eaec;
}

.mmtv-global-search__clear:focus-visible,
.mmtv-global-search__item:focus-visible {
	outline: 3px solid #9fc900;
	outline-offset: 2px;
}

.mmtv-global-search__results {
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	width: 100%;
	max-height: min(620px, 70vh);
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 10px;
	border: 1px solid rgba(13, 19, 25, .09);
	border-radius: 24px;
	background: rgba(255, 255, 255, .985);
	box-shadow: 0 28px 80px rgba(13, 19, 25, .18);
	-webkit-backdrop-filter: blur(18px);
	backdrop-filter: blur(18px);
}

.mmtv-global-search__results[hidden],
.mmtv-global-search__clear[hidden] {
	display: none;
}

.mmtv-global-search__group + .mmtv-global-search__group {
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px solid #edf0f2;
}

.mmtv-global-search__group-title {
	margin: 0;
	padding: 8px 12px 5px;
	color: #6b737b;
	font-size: 11px;
	font-weight: 760;
	letter-spacing: .12em;
	line-height: 1.3;
	text-transform: uppercase;
}

.mmtv-global-search__item {
	display: grid;
	grid-template-columns: 54px minmax(0, 1fr) auto;
	gap: 14px;
	align-items: center;
	min-height: 70px;
	padding: 8px 12px 8px 8px;
	border-radius: 16px;
	color: #0d1319;
	text-decoration: none;
	transition: background-color .15s ease, transform .15s ease;
}

.mmtv-global-search__item:hover,
.mmtv-global-search__item[aria-selected="true"] {
	background: #f4f6f7;
	color: #0d1319;
	transform: translateX(2px);
}

.mmtv-global-search__thumb,
.mmtv-global-search__fallback {
	display: grid;
	width: 54px;
	height: 54px;
	overflow: hidden;
	place-items: center;
	border-radius: 13px;
	background: #eef1f2;
}

.mmtv-global-search__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mmtv-global-search__fallback {
	color: #596169;
	font-size: 16px;
	font-weight: 760;
	text-transform: uppercase;
}

.mmtv-global-search__copy {
	min-width: 0;
}

.mmtv-global-search__copy strong,
.mmtv-global-search__copy small {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mmtv-global-search__copy strong {
	font-size: 16px;
	font-weight: 720;
	letter-spacing: -.015em;
	line-height: 1.3;
}

.mmtv-global-search__copy small {
	margin-top: 3px;
	color: #747c84;
	font-size: 13px;
	line-height: 1.4;
}

.mmtv-global-search__arrow {
	color: #719000;
	font-size: 20px;
	transition: transform .15s ease;
}

.mmtv-global-search__item:hover .mmtv-global-search__arrow,
.mmtv-global-search__item[aria-selected="true"] .mmtv-global-search__arrow {
	transform: translateX(3px);
}

.mmtv-global-search__status {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 96px;
	padding: 24px;
	color: #646d75;
	font-size: 14px;
	text-align: center;
}

.mmtv-global-search__loading::before {
	width: 18px;
	height: 18px;
	margin-right: 10px;
	border: 2px solid #dce1e4;
	border-top-color: #85a900;
	border-radius: 50%;
	content: "";
	animation: mmtv-search-spin .7s linear infinite;
}

.mmtv-global-search--compact {
	margin-block: 24px 36px;
}

.mmtv-global-search--compact .mmtv-global-search__field {
	min-height: 58px;
	border-radius: 19px;
}

.mmtv-global-search--compact input[type="search"] {
	height: 56px;
	font-size: 17px;
}

.mmtv-global-search--overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: grid;
	width: 100%;
	margin: 0;
	padding: min(16vh, 140px) 20px 40px;
	align-items: start;
	background: rgba(245, 247, 248, .96);
	-webkit-backdrop-filter: blur(20px);
	backdrop-filter: blur(20px);
}

@keyframes mmtv-search-spin {
	to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
	.mmtv-global-search *,
	.mmtv-global-search *::before,
	.mmtv-global-search *::after {
		scroll-behavior: auto !important;
		transition: none !important;
		animation-duration: .001ms !important;
	}
}

@media (max-width: 767px) {
	.mmtv-global-search {
		width: min(100% - 28px, 1180px);
		margin-block: 20px 38px;
	}

	.mmtv-global-search__field {
		min-height: 58px;
		padding-inline: 17px 54px;
		border-radius: 18px;
	}

	.mmtv-global-search__field > svg {
		width: 21px;
		height: 21px;
		margin-right: 11px;
	}

	.mmtv-global-search input[type="search"] {
		height: 56px;
		font-size: 16px;
	}

	.mmtv-global-search__clear {
		right: 10px;
		width: 38px;
		height: 38px;
	}

	.mmtv-global-search__results {
		max-height: min(540px, calc(100vh - 190px));
		padding: 7px;
		border-radius: 19px;
	}

	.mmtv-global-search__item {
		grid-template-columns: 48px minmax(0, 1fr) auto;
		gap: 11px;
		min-height: 64px;
		padding: 7px 10px 7px 7px;
	}

	.mmtv-global-search__thumb,
	.mmtv-global-search__fallback {
		width: 48px;
		height: 48px;
		border-radius: 11px;
	}

	.mmtv-global-search__copy strong { font-size: 15px; }
	.mmtv-global-search__copy small { font-size: 12px; }
}

