.ast-search-shell {
	position: relative;
	width: 100%;
}

.ast-live-search-results {
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	right: 0;
	z-index: 65;
	display: flex;
	flex-direction: column;
	gap: 0;
	padding: 10px;
	border: 1px solid var(--border);
	border-radius: 20px;
	background: color-mix(in srgb, var(--surface) 92%, #0f172a 8%);
	box-shadow: 0 22px 50px rgba(15, 23, 42, 0.22);
	backdrop-filter: blur(12px);
}

.ast-live-search-results[hidden] {
	display: none;
}

.ast-live-search-results.is-loading {
	padding: 12px;
}

.ast-live-search-status {
	padding: 10px 12px;
	border-radius: 14px;
	color: var(--muted);
	font-size: 14px;
	font-weight: 600;
}

.ast-live-search-list {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.ast-live-search-item {
	display: grid;
	grid-template-columns: 40px minmax(0, 1fr);
	gap: 12px;
	align-items: start;
	padding: 10px;
	border-radius: 16px;
	transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.ast-live-search-item:hover,
.ast-live-search-item:focus-visible {
	background: color-mix(in srgb, var(--surface-alt) 82%, transparent 18%);
	transform: translateY(-1px);
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 20%, transparent 80%);
}

.ast-live-search-thumb {
	width: 40px;
	height: 57px;
	border-radius: 10px;
	object-fit: cover;
	background: var(--surface-alt);
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--border) 85%, transparent 15%);
}

.ast-live-search-copy {
	min-width: 0;
}

.ast-live-search-title {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin: 0;
	color: var(--text);
	font-size: 17px;
	font-weight: 800;
	line-height: 1.22;
}

.ast-live-search-meta {
	display: block;
	margin-top: 4px;
	color: #2e8bff;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.25;
}

.ast-live-search-genres {
	display: block;
	margin-top: 3px;
	color: var(--muted);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ast-live-search-footer {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	padding-top: 8px;
	margin-top: 8px;
	border-top: 1px solid color-mix(in srgb, var(--border) 82%, transparent 18%);
}

.ast-live-search-more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 14px;
	border-radius: 999px;
	color: var(--accent);
	font-size: 13px;
	font-weight: 800;
	background: color-mix(in srgb, var(--accent) 10%, transparent 90%);
}

.ast-live-search-more:hover,
.ast-live-search-more:focus-visible {
	background: color-mix(in srgb, var(--accent) 16%, transparent 84%);
}

html[data-theme='light'] .ast-live-search-results {
	background: rgba(255, 255, 255, 0.97);
	box-shadow: 0 22px 44px rgba(15, 23, 42, 0.14);
}

html[data-theme='light'] .ast-live-search-item:hover,
html[data-theme='light'] .ast-live-search-item:focus-visible {
	background: #eef5ff;
	box-shadow: inset 0 0 0 1px rgba(91, 140, 255, 0.24);
}

html[data-theme='dark'] .ast-live-search-results {
	background: rgba(18, 24, 40, 0.96);
	box-shadow: 0 28px 60px rgba(0, 0, 0, 0.45);
}

html[data-theme='dark'] .ast-live-search-item:hover,
html[data-theme='dark'] .ast-live-search-item:focus-visible {
	background: rgba(138, 180, 255, 0.08);
	box-shadow: inset 0 0 0 1px rgba(138, 180, 255, 0.18);
}

@media (max-width: 480px) {
	.ast-live-search-results {
		top: calc(100% + 8px);
		padding: 8px;
		border-radius: 18px;
	}

	.ast-live-search-item {
		grid-template-columns: 40px minmax(0, 1fr);
		gap: 10px;
		padding: 8px;
		border-radius: 14px;
	}

	.ast-live-search-thumb {
		width: 40px;
		height: 57px;
		border-radius: 10px;
	}

	.ast-live-search-title {
		font-size: 15px;
	}

	.ast-live-search-meta,
	.ast-live-search-genres {
		font-size: 12.5px;
	}

	.ast-live-search-footer {
		padding-top: 6px;
		margin-top: 6px;
	}

	.ast-live-search-more {
		width: 100%;
		padding: 9px 12px;
	}
}
