*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: #eef1f4;
    color: #1f2a37;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.5;
}

.card {
    width: 100%;
    max-width: 520px;
    padding: 32px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
}

h1 {
    margin: 0 0 8px;
    font-size: 1.5rem;
}

.intro {
    margin: 0 0 24px;
    color: #4b5563;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.search-row {
    display: flex;
    gap: 8px;
}

input {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    font: inherit;
    border: 1px solid #c4cbd4;
    border-radius: 4px;
}

input:focus {
    outline: 2px solid #1d5fa8;
    outline-offset: 1px;
}

button {
    padding: 10px 18px;
    font: inherit;
    font-weight: 600;
    color: #fff;
    background: #1d5fa8;
    border: 0;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background: #174d89;
}

.error {
    margin: 20px 0 0;
    padding: 10px 12px;
    color: #8a1c1c;
    background: #fdecec;
    border-left: 4px solid #c53030;
}

@media (max-width: 420px) {
    .search-row {
        flex-direction: column;
    }
}

.results-count {
    margin: 24px 0 8px;
    font-weight: 600;
}

.results {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid #e5e7eb;
}

.results li {
    border-bottom: 1px solid #e5e7eb;
}

.results a,
.results li > strong {
    display: block;
    padding: 10px 4px;
}

.results a {
    color: inherit;
    text-decoration: none;
}

.results a:hover {
    background: #f3f6fa;
}

.results strong {
    color: #1d5fa8;
}

.results span {
    display: block;
    font-size: .9rem;
    color: #4b5563;
}

.results li > span {
    padding: 0 4px 10px;
}
