body {
    overflow: auto;
}

.pageMain--search {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.panel {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.05),
            rgba(255, 255, 255, 0.03));
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
    overflow: visible;
}

.panelHead {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.panelHead h2 {
    margin: 0;
    font-size: 18px;
}

.panelSub {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
}

.panelBody {
    padding: 18px;
}

.advancedSearchForm {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
    align-items: flex-end;
}

.searchField {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 0 0 auto;
}

.searchField--wide {
    min-width: 260px;
    flex: 1 1 260px;
}

.searchField label {
    font-size: 14px;
    opacity: 0.75;
    color: var(--muted);
    font-weight: 600;
}

.searchWrap--field {
    width: 100%;
}

.searchField input[type="search"],
.searchField select {
    width: auto;
    min-width: 130px;
    max-width: 220px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    border-radius: 10px;
    padding: 0 12px;
    font-size: 14px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

#memberSearchInput,
#tuneSearchInput {
    min-width: 180px;
    max-width: 240px;
}

.searchField--wide input,
.searchField--wide .searchWrap--field {
    width: 100%;
}

.searchField--wide .autocompleteShell {
    min-width: 0;
}

.searchField input:focus,
.searchField select:focus {
    outline: none;
    border-color: rgba(96, 165, 250, 0.75);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.16);
}

.searchField select,
.searchField select option {
    background-color: #111827;
    color: #e5e7eb;
}

.searchField select:focus,
.searchField select:active {
    background-color: #111827;
    color: #e5e7eb;
}

.searchField select option:hover,
.searchField select option:checked {
    background-color: #1f2937;
    color: #fff;
}

.searchActions {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-start;
    margin-left: auto;
}

#resetBtn {
    height: 38px;
    padding: 0 14px;
    border-radius: 10px;
    font-weight: 600;
    border: 1px solid var(--stroke);
    cursor: pointer;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
}

#resetBtn:hover {
    background: rgba(255, 255, 255, 0.12);
}

.summaryCards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.summaryCard {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 14px;
    padding: 8px 14px;
}

.summaryCardLabel {
    font-size: 12px;
    color: var(--muted);
}

.summaryCardValue {
    margin-top: 4px;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.05;
}

.summaryBadges--filters {
    justify-content: flex-end;
}

.panelBody--results {
    padding-top: 12px;
}

.tableWrap {
    overflow: auto;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.tunebookTable {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
    background: rgba(255, 255, 255, 0.03);
}

.tunebookTable th,
.tunebookTable td {
    padding: 8px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    vertical-align: middle;
    line-height: 1.2;
}

.tunebookTable th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: rgba(11, 15, 20, 0.96);
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    text-align: left;
}

.tunebookTuneRow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    min-width: 0;
    max-width: 100%;
}

.tunebookTuneName {
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    min-width: 0;
    overflow-wrap: anywhere;
}

.tunebookTuneName:hover {
    color: #93c5fd;
    text-decoration: underline;
}

.tuneCol {
    min-width: 320px;
}

.popCol {
    width: 120px;
    min-width: 120px;
    text-align: center;
}

.popColCell {
    text-align: center;
}

.typeCol,
.typeColCell,
.modeCol,
.modeColCell,
.meterCol,
.meterColCell,
.dateCol,
.dateColCell {
    white-space: nowrap;
}

.typePill,
.modePill {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
}

.typePill {
    background: rgba(245, 158, 11, 0.14);
    border-color: rgba(245, 158, 11, 0.28);
    color: #fde68a;
}

.modePill {
    background: rgba(167, 139, 250, 0.14);
    border-color: rgba(167, 139, 250, 0.28);
    color: #ddd6fe;
}

.tableMuted {
    color: var(--muted);
    font-size: 12px;
}

.sessionIconLink {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
    transition: all 0.15s ease;
    flex: 0 0 auto;
}

.sessionIconLink:hover {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.3);
    transform: translateY(-1px);
}

.sessionIconLink img {
    width: 22px;
    height: 22px;
    display: block;
    object-fit: contain;
}

.trackOverviewLink {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 4px;
    flex: 0 0 auto;
}

.trackOverviewDot {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, #fde68a, #f59e0b);
    box-shadow:
        0 0 0 1px rgba(245, 158, 11, 0.5),
        0 0 6px rgba(245, 158, 11, 0.6);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.trackOverviewLink:hover .trackOverviewDot {
    transform: scale(1.2);
    box-shadow:
        0 0 0 1px rgba(245, 158, 11, 0.7),
        0 0 10px rgba(245, 158, 11, 0.9);
}

.starRating {
    display: inline-block;
}

.star {
    letter-spacing: 1px;
}

.star--filled {
    color: #f5c518;
}

.star--empty {
    color: rgba(255, 255, 255, 0.2);
}

.starRating--unknown {
    color: rgba(255, 255, 255, 0.3);
}

.emptyState,
.errorState,
.loadingState {
    padding: 10px 0;
}

@media (max-width: 900px) {
    .advancedSearchForm {
        align-items: stretch;
    }

    .searchField,
    .searchField--wide {
        flex: 1 1 calc(50% - 12px);
        min-width: 180px;
    }

    .searchActions {
        margin-left: 0;
    }

    .summaryCards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .summaryPanel {
        display: none;
    }

    .searchField--wide {
        flex: 1 1 100%;
        min-width: 100%;
    }

    .searchField:not(.searchField--wide) {
        flex: 0 1 auto;
        min-width: 0;
        max-width: 100%;
    }

    .searchField:not(.searchField--wide) select {
        width: auto;
        min-width: 0;
        max-width: 100%;
        inline-size: fit-content;
    }

    .searchActions {
        flex: 1 1 100%;
        margin-left: 0;
    }

    .summaryCards {
        grid-template-columns: 1fr;
    }

    .panelHead {
        padding-left: 14px;
        padding-right: 14px;
        flex-direction: column;
    }

    .panelBody {
        padding-left: 14px;
        padding-right: 14px;
    }

    .tunebookTable th.popCol,
    .tunebookTable td.popColCell,
    .tunebookTable th.typeCol,
    .tunebookTable td.typeColCell,
    .tunebookTable th.modeCol,
    .tunebookTable td.modeColCell,
    .tunebookTable th.meterCol,
    .tunebookTable td.meterColCell {
        display: none;
    }

    .tuneCol {
        min-width: 220px;
    }
}

.tableSortBtn {
    appearance: none;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
}

.tableSortBtn:hover {
    color: #93c5fd;
}

.settingsTable .incipitCol {
    max-width: 360px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 12px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.settingsTable .tuneCol {
    min-width: 360px;
}

@media (max-width: 700px) {

    .settingsTable th:nth-child(6),
    .settingsTable td:nth-child(6),
    .settingsTable th.dateCol,
    .settingsTable td.dateColCell {
        display: none;
    }
}

.summaryCardLink {
    display: block;
    color: inherit;
    text-decoration: none;
}

.summaryCardLink:hover {
    border-color: rgba(96, 165, 250, 0.45);
    background: rgba(96, 165, 250, 0.1);
}

.tableMutedLink {
    color: var(--muted);
    text-decoration: none;
}

.tableMutedLink:hover {
    color: #93c5fd;
    text-decoration: underline;
}

.copyAbcBtn {
    height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid var(--stroke);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    cursor: pointer;
    font-weight: 700;
    font-size: 12px;
}

.copyAbcBtn:hover {
    background: rgba(255, 255, 255, 0.12);
}

.copyAbcBtn.is-copied {
    background: rgba(34, 197, 94, 0.18);
    border-color: rgba(34, 197, 94, 0.45);
}

.trackOverviewDot--empty {
    background: transparent;
    border: 2px solid rgba(96, 165, 250, 0.9);
    box-shadow:
        0 0 0 1px rgba(96, 165, 250, 0.25),
        0 0 8px rgba(96, 165, 250, 0.35);
}

.trackOverviewDot.trackOverviewDot--empty {
    background: transparent;
    border: 2px solid rgba(96, 165, 250, 0.9);
    box-shadow:
        0 0 0 1px rgba(96, 165, 250, 0.25),
        0 0 8px rgba(96, 165, 250, 0.35);
}

.trackOverviewLink:hover .trackOverviewDot.trackOverviewDot--empty {
    box-shadow:
        0 0 0 1px rgba(96, 165, 250, 0.45),
        0 0 10px rgba(96, 165, 250, 0.65);
}

.aliasRow {
    font-size: 11px;
    color: var(--muted);
    margin-top: 2px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tooltipAliases {
    font-size: 11px;
    opacity: 0.7;
    font-weight: 500;
}

.abcToolsIconBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 28px;
    padding: 0;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    vertical-align: middle;
}

.abcToolsIconBtn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18);
}

.abcToolsIconBtn img {
    display: block;
    max-width: 26px;
    max-height: 20px;
    object-fit: contain;
}

.abcToolsBtn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.abcToolsBtn img {
    width: 22px;
    height: 16px;
    object-fit: contain;
}

.resultsActions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.aliasRow {
    font-size: 11px;
    color: var(--muted);
    margin-top: 2px;
    line-height: 1.3;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 520px;
}

.resultsMemberList {
    margin-top: 5px;
    font-size: 12px;
    line-height: 1.35;
    color: var(--muted);
    white-space: normal;
    overflow-wrap: anywhere;
}

.resultsMemberLink {
    color: var(--muted);
    text-decoration: none;
}

.resultsMemberLink:hover {
    color: #93c5fd;
    text-decoration: underline;
}

.miniInlineBtn {
    margin-left: 8px;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid var(--stroke);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
}

.miniInlineBtn:hover {
    background: rgba(255, 255, 255, 0.12);
}

.bookmarkersModal[hidden] {
    display: none;
}

.bookmarkersModal {
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.bookmarkersModalBackdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}

.bookmarkersModalPanel {
    position: relative;
    width: min(820px, calc(100vw - 32px));
    max-height: min(720px, calc(100vh - 32px));
    overflow: auto;
    margin: 16px auto;
    padding: 18px;
    border-radius: 18px;
    background: #0b0f14;
    border: 1px solid var(--stroke);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.bookmarkersModalPanel h3 {
    margin: 0 0 12px;
}

.bookmarkersModalClose {
    position: absolute;
    top: 10px;
    right: 12px;
    border: 0;
    background: transparent;
    color: var(--text);
    font-size: 26px;
    cursor: pointer;
}

.bookmarkersModalBody {
    font-size: 13px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.modalMemberLink {
    color: #93c5fd;
    text-decoration: none;
}

.modalMemberLink:hover {
    text-decoration: underline;
}