.search-page h3 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4em;
}
.search-tags .tag {
    background: #518BA1;
    color: white;
    border-radius: 25px;
    padding: 4px 14px;
    text-decoration: none;
    font-size: 0.9em;
}
.search-tags .tag:hover {
    background: #3a7a8f;
}

.search-results {
    list-style: none;
    padding: 0;
}
.search-results li {
    padding: 0.7em 1em;
    margin-bottom: 0.5em;
    border-radius: 6px;
    background: rgba(255,255,255,0.05);
}
.search-artists li {
    border-left: 4px solid #518BA1;
}
.search-tracks li {
    border-left: 4px solid #7BB3C3;
}
.search-results a {
    color: #7BB3C3;
    text-decoration: none;
    font-weight: bold;
}
.search-results a:hover {
    text-decoration: underline;
}
.search-artist {
    color: #999;
    margin-left: 0.5em;
}
.search-bpm {
    color: #888;
    font-size: 0.85em;
    margin-left: 0.5em;
}
.search-meta {
    display: block;
    color: #888;
    font-size: 0.85em;
    margin-top: 0.2em;
}

.light-mode .search-results li {
    background: #f5f5f5;
}
.light-mode .search-results a {
    color: #2a6a7a;
}

/* Unremixed search results */
.unremixed-table .sort-header {
    color: #E77D42;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}
.unremixed-table .sort-header:hover {
    text-decoration: underline;
}

.unremixed-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2em;
}
.unremixed-table thead th {
    text-align: left;
    padding: 0.6em 0.8em;
    border-bottom: 2px solid #518BA1;
    color: #aaa;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.unremixed-table tbody tr.stemTr {
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.unremixed-table tbody tr.stemTr:hover {
    background: rgba(255,255,255,0.04);
}
.unremixed-table td {
    padding: 0.6em 0.8em;
    vertical-align: middle;
}
.unremixed-table a {
    color: #7BB3C3;
    text-decoration: none;
}
.unremixed-table a:hover {
    text-decoration: underline;
}
.unremixed-table .wave-toggle {
    color: #E77D42;
    font-size: 0.85em;
    margin-left: 0.6em;
}
.unremixed-table .wave-area {
    padding: 0.5em 0;
}
.unremixed-stems-table th:first-child,
.unremixed-stems-table td:first-child {
    width: 45%;
}
.unremixed-stems-table .rowspan-cell {
    word-break: break-word;
}
.unremixed-stems-table .upload-bpm {
    color: #E77D42;
    font-size: 0.8em;
    margin-top: 0.2em;
}
.unremixed-stems-table .stem-wave-toggle {
    color: #E77D42;
    font-size: 0.85em;
    margin-left: 0.6em;
}
.unremixed-stems-table .stem-wave-area {
    margin-top: 0.4em;
}

.light-mode .unremixed-table thead th {
    color: #666;
}
.light-mode .unremixed-table tbody tr.stemTr {
    border-bottom: 1px solid #e0e0e0;
}
.light-mode .unremixed-table tbody tr.stemTr:hover {
    background: #f0f0f0;
}
.light-mode .unremixed-table a {
    color: #2a6a7a;
}

/* Rowspan grouping for stems table */
.unremixed-stems-table .rowspan-cell {
    vertical-align: middle;
    border-left: 1px solid rgba(255,255,255,0.08);
}
.unremixed-stems-table tr.group-first td {
    border-top: 1px solid rgba(255,255,255,0.15);
}
.light-mode .unremixed-stems-table .rowspan-cell {
    border-left: 1px solid #e0e0e0;
}
.light-mode .unremixed-stems-table tr.group-first td {
    border-top: 1px solid #ccc;
}
