.search-page .search-form {
    display: flex;
    gap: 0.5rem;
    max-width: 48rem;
    margin: 0 0 0.9rem;
}

.search-page .search-form input[type="search"] {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.45em 0.65em;
    border: 1px solid var(--border-strong);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    background: var(--field-bg);
    color: var(--field-text);
}

.search-page .search-form input[type="search"]:focus {
    outline: 2px solid var(--focus-color);
    outline-offset: 2px;
}

.search-page .search-form button,
.search-actions button {
    padding: 0.45em 0.85em;
    border: none;
    border-radius: 4px;
    background: var(--header-bg);
    color: var(--header-text);
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
}

.search-page .search-form button:hover,
.search-page .search-form button:focus,
.search-actions button:hover,
.search-actions button:focus {
    background: var(--header-bg-hover);
}

.search-meta {
    margin-bottom: 1.1rem;
    color: var(--muted-color);
}

.song-index.search-results th:first-child,
.song-index.search-results td:first-child {
    width: 5.5rem;
    white-space: nowrap;
    font-weight: bold;
}

.song-index.search-results th:nth-child(2),
.song-index.search-results td:nth-child(2) {
    width: auto;
}

.song-index.search-results th:last-child,
.song-index.search-results td:last-child {
    width: 18rem;
}

.search-results .result-title {
    display: block;
    margin-bottom: 0.25rem;
}

.search-snippet {
    margin-top: 0.25rem;
    color: var(--text-color);
    font-size: 0.95em;
    line-height: 1.45;
}

.search-results mark {
    background: var(--surface);
    color: inherit;
    padding: 0 0.08em;
    border-radius: 0.15em;
    box-shadow: inset 0 -0.12em 0 var(--border-color);
}

.search-results .occurrences a {
    white-space: nowrap;
}

.search-results .occurrences .muted,
.search-empty,
.search-muted {
    color: var(--muted-color);
}

.search-actions {
    margin: 1rem 0 2rem;
    text-align: center;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 700px) {
    .search-page .search-form {
        flex-direction: column;
    }

    .song-index.search-results th:first-child,
    .song-index.search-results td:first-child {
        width: 3.5rem;
    }

    .song-index.search-results th:last-child,
    .song-index.search-results td:last-child {
        width: auto;
    }
}
