/**
 * SoundZoo Search public styles.
 */

[x-cloak] {
	display: none !important;
}

.szs-search-page {
	background:
		linear-gradient(180deg, #f8fafc 0%, #ffffff 46%, #f8fafc 100%);
	color: #0f172a;
	font-family:
		"Geist",
		"Outfit",
		"Helvetica Neue",
		Arial,
		"Hiragino Kaku Gothic ProN",
		"Hiragino Sans",
		Meiryo,
		sans-serif;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	min-height: 100dvh;
	overflow-x: clip;
	width: 100vw;
	max-width: 100vw;
}

.szs-search-page *,
.szs-search-page *::before,
.szs-search-page *::after {
	box-sizing: border-box;
}

.szs-shell {
	isolation: isolate;
	margin-left: auto;
	margin-right: auto;
	width: min(100%, 80rem);
}

.szs-input {
	appearance: none;
	background: #ffffff;
	border: 1px solid #cbd5e1;
	border-radius: 0.375rem;
	color: #0f172a;
	font-size: 1rem;
	line-height: 1.5rem;
	min-height: 2.75rem;
	outline: none;
	padding: 0.625rem 0.75rem;
	transition:
		border-color 180ms ease,
		box-shadow 180ms ease,
		transform 180ms ease;
	width: 100%;
}

.szs-input::placeholder {
	color: #94a3b8;
}

.szs-input:focus {
	border-color: #0f172a;
	box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.1);
}

.szs-tab-button,
.szs-tag-button,
.szs-primary-button,
.szs-result-card a {
	touch-action: manipulation;
}

.szs-primary-button {
	white-space: nowrap;
}

.szs-tab-button:focus-visible,
.szs-tag-button:focus-visible,
.szs-primary-button:focus-visible,
.szs-result-card a:focus-visible {
	outline: 2px solid #0f172a;
	outline-offset: 3px;
}

.szs-result-card {
	animation: szs-result-enter 360ms cubic-bezier(0.16, 1, 0.3, 1) both;
	animation-delay: calc(var(--szs-index, 0) * 40ms);
}

.szs-work-header {
	align-items: start;
	display: grid;
	gap: 1rem;
	grid-template-columns: minmax(0, 1fr);
}

.szs-work-poster {
	aspect-ratio: 16 / 9;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 0.5rem;
	display: block;
	height: auto;
	object-fit: cover;
	width: 100%;
}

.szs-skeleton {
	background: linear-gradient(90deg, #e2e8f0 0%, #f8fafc 45%, #e2e8f0 100%);
	background-size: 220% 100%;
	animation: szs-skeleton 1.1s ease-in-out infinite;
}

@keyframes szs-skeleton {
	0% {
		background-position: 110% 0;
	}
	100% {
		background-position: -110% 0;
	}
}

@keyframes szs-result-enter {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.szs-result-card,
	.szs-skeleton {
		animation: none;
	}

	.szs-input,
	.szs-tab-button,
	.szs-tag-button,
	.szs-primary-button,
	.szs-result-card a {
		transition: none;
	}
}

@media (min-width: 640px) {
	.szs-work-header {
		grid-template-columns: minmax(0, 16rem) minmax(0, 1fr);
	}

	.szs-work-poster {
		max-width: 16rem;
	}
}
