.detailMain {
    flex: 1 1 auto;
    min-height: 0;
    padding: 0 18px 18px;
    display: block;
    overflow: auto;
}

.detailMain>.panel,
.detailMain>.detailGrid {
    margin-bottom: 16px;
}

.detailMain>.panel:last-child,
.detailMain>.detailGrid:last-child {
    margin-bottom: 0;
}

.panel {
    border-radius: 18px;
    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));
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
    overflow: visible;
}

.panelHead {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg,
            rgba(15, 23, 42, 0.52),
            rgba(15, 23, 42, 0.22));
}

.panelTitle {
    margin: 0;
    font-size: 18px;
    line-height: 1.2;
}

.panelSub {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
}

.panelBody {
    padding: 16px 18px 18px;
}

.panelHero .panelBody {
    padding-top: 18px;
}

.heroTop {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.heroTitleRow {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.heroTitleWrap {
    min-width: 280px;
    flex: 1 1 520px;
}

.heroTitle {
    margin: 0;
    font-size: 34px;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: var(--text);
}

.heroMeta {
    margin-top: 8px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}

.heroActions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.heroBtn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid var(--stroke);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.15s ease;
}

.heroBtn:hover {
    background: rgba(96, 165, 250, 0.16);
    border-color: rgba(96, 165, 250, 0.42);
    transform: translateY(-1px);
}

.heroBtn--primary {
    background: rgba(96, 165, 250, 0.18);
    border-color: rgba(96, 165, 250, 0.38);
}

.heroBtn--primary:hover {
    background: rgba(96, 165, 250, 0.26);
    border-color: rgba(96, 165, 250, 0.56);
}

.detailGrid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stackList {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sameArtistRow {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.sameArtistRow .listCard {
    flex: 1 1 320px;
    min-width: 280px;
}


.listCard {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 14px;
    padding: 12px 14px;
    min-width: 0;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.listCard:hover {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.055);
}

.listCard.is-selected {
    border-color: rgba(245, 158, 11, 0.34);
    background: rgba(245, 158, 11, 0.09);
}

.listCardTop {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.listCardTitle {
    color: var(--text);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    min-width: 0;
}

.listCardSub {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
}

.badgeRow {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.miniBadge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 9px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    font-size: 11px;
    line-height: 1.2;
}

.miniBadge.is-highlight {
    border-color: rgba(34, 197, 94, 0.28);
    background: rgba(34, 197, 94, 0.12);
}

.tableWrap2 {
    overflow: auto;
}

.recordsTable {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.recordsTable th,
.recordsTable td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 13px;
    vertical-align: top;
}

.recordsTable th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: rgba(15, 23, 42, 0.98);
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.recordsTable tbody tr:hover {
    background: rgba(255, 255, 255, 0.04);
}

.recordsTable tbody tr.is-selected {
    background: rgba(245, 158, 11, 0.09);
}

.recordingLink {
    color: #93c5fd;
    text-decoration: none;
    font-weight: 700;
}

.recordingLink:hover {
    text-decoration: underline;
}

.recordingAliasMeta {
    margin-top: 2px;
    font-size: 11px;
    color: var(--muted);
}

.emptyState,
.errorState,
.loadingState {
    padding: 28px 18px;
    color: var(--muted);
    font-size: 14px;
}

.errorState {
    color: #fca5a5;
}

@media (max-width: 1100px) {
    .spotlightGrid {
        grid-template-columns: 1fr;
    }

    .detailGrid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .detailMain {
        padding: 0 14px 14px;
    }

    .panelHead {
        padding: 14px 16px;
    }

    .panelBody {
        padding: 14px 16px 16px;
    }

    .heroTitle {
        font-size: 30px;
    }

    .spotlightRecording {
        font-size: 24px;
    }
}

@media (max-width: 700px) {
    .detailMain {
        padding: 0 10px 10px;
        gap: 12px;
    }

    .panel,
    .panelHero {
        border-radius: 14px;
    }

    .heroTitle {
        font-size: 25px;
    }

    .heroMeta {
        font-size: 13px;
    }

    .spotlightRecording {
        font-size: 21px;
    }

    .spotlightArtist {
        font-size: 16px;
    }

    .spotlightFacts {
        grid-template-columns: 1fr;
    }

    .recordsTable {
        min-width: 640px;
    }
}

.sessionLink {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    transition: all 0.15s ease;
}

.sessionLink:hover {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.3);
    transform: translateY(-1px);
}

.sessionLink img {
    width: 16px;
    height: 16px;
    display: block;
    object-fit: contain;
    flex: 0 0 auto;
}

.recordingCellTop {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.recordingCellTop .recordingLink,
.recordingCellTop .listCardTitle {
    min-width: 0;
}

.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;
}

.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;
}

.sessionLink--compact {
    min-height: 28px;
    padding: 4px 10px;
    font-size: 11px;
}

.listCard--subtle {
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
}

.listCard--subtle:hover {
    background: rgba(255, 255, 255, 0.05);
}

.listCardMeta {
    margin-top: 4px;
    font-size: 12px;
    color: var(--muted);
}

.trackList {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 18px 24px;
    align-items: start;
}

.trackGroup {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 10px;
    min-width: 0;
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.05),
            rgba(255, 255, 255, 0.02));

}

.trackGroup:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 10px;
}

.trackGroup {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 10px;
}

.trackGroup:first-child {
    border-top: 0;
    padding-top: 0;
}

.trackGroupHead {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
}

.trackItems {
    display: flex;
    flex-direction: column;
}

.trackItem {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.trackItem:last-child {
    border-bottom: 0;
}

.trackItem.is-selected {
    background: linear-gradient(90deg,
            rgba(245, 158, 11, 0.12),
            rgba(245, 158, 11, 0.02) 70%);
    border-radius: 10px;
    padding-left: 10px;
    padding-right: 10px;
}

.trackItemMain {
    min-width: 0;
    flex: 1 1 auto;
}

.trackItemTop {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.trackTuneNo {
    flex: 0 0 auto;
    width: 22px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-align: right;
}

.trackTuneLink {
    color: #93c5fd;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    min-width: 0;
}

.trackTuneLink:hover {
    color: var(--text);
    text-decoration: underline;
}

.trackSessionLink {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    transition: all 0.15s ease;
}

.trackSessionLink:hover {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.28);
}

.trackSessionLink img {
    width: 22px;
    height: 22px;
    display: block;
}

.trackItemMeta {
    margin-left: 30px;
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

.trackSelectedMark {
    flex: 0 0 auto;
    color: #fbbf24;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 2px;
}

.albumSection {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.albumSectionHead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.albumSectionMeta {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.3;
}

.albumGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(148px, 148px));
    gap: 12px;
    align-items: start;
    justify-content: flex-start;
}

.albumCard {
    display: flex;
    flex-direction: column;
    width: 148px;
    min-width: 148px;
    text-decoration: none;
    color: var(--text);

    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.07),
            rgba(255, 255, 255, 0.035));
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
    transition: transform 0.16s ease,
        border-color 0.16s ease,
        box-shadow 0.16s ease,
        background 0.16s ease;
    height: auto;

}

.albumCard:hover {
    transform: translateY(-2px);
    border-color: rgba(96, 165, 250, 0.42);
    background: linear-gradient(180deg,
            rgba(96, 165, 250, 0.12),
            rgba(255, 255, 255, 0.05));
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
}

.albumCardImageWrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: rgba(15, 23, 42, 0.46);
    overflow: hidden;
}

.albumCardImage {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.albumCardImage--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.75);
}

.albumCardBody {
    display: flex;
    flex-direction: column;
    padding: 8px 10px 9px;
    min-height: 0;
}

.albumCardProvider {
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
    color: var(--text);
}

.albumCardAlt {
    font-size: 11px;
    line-height: 1.35;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 700px) {
    .albumGrid {
        grid-template-columns: repeat(auto-fit, minmax(132px, 132px));
    }

    .albumCard {
        width: 132px;
        min-width: 132px;
    }

    .albumCardBody {
        min-height: 72px;
        padding: 9px 10px 11px;
    }
}

@media (max-width: 980px) {
    .heroCompactGrid {
        grid-template-columns: 1fr;
    }

    .heroRecordingCard {
        order: 2;
    }

    .heroAlbumsRow {
        margin-top: 16px;
    }
}

@media (max-width: 700px) {
    .heroRecordingTitle {
        font-size: 19px;
    }

    .heroRecordingArtist {
        font-size: 15px;
    }

    .heroRecordingFacts {
        grid-template-columns: 1fr;
    }
}

.heroUnifiedGrid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) fit-content(420px);
    gap: 22px;
    align-items: start;
}

.heroUnifiedMain {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.heroAliases {
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}

.heroRecordingInline {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.heroRecordingInlineItem {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 110px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.035);
}

.heroRecordingInlineItem--action {
    justify-content: center;
    background: transparent;
    border-color: transparent;
    padding: 0;
    min-width: auto;
}

.heroRecordingInlineLabel {
    color: var(--muted);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 800;
}

.heroRecordingInlineValue {
    color: var(--text);
    font-size: 14px;
    line-height: 1.35;
    font-weight: 700;
}

.heroUnifiedAlbums {
    min-width: 0;
}

.heroAlbumRail {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

/* Default: wrap nicely */
.heroAlbumRail {
    flex-wrap: wrap;
}

.heroUnifiedAlbums {
    min-width: 0;
    display: flex;
    justify-content: flex-end;
}

.heroAlbumRail {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 12px;
    width: auto;
    max-width: 100%;
}

.heroAlbumCard {
    flex: 0 0 148px;
    width: 148px;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.07),
            rgba(255, 255, 255, 0.035));
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.16s ease,
        border-color 0.16s ease,
        box-shadow 0.16s ease,
        background 0.16s ease;
}

.heroAlbumCard:hover {
    transform: translateY(-2px);
    border-color: rgba(96, 165, 250, 0.42);
    background: linear-gradient(180deg,
            rgba(96, 165, 250, 0.12),
            rgba(255, 255, 255, 0.05));
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
}

.heroAlbumImageWrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: rgba(15, 23, 42, 0.46);
    overflow: hidden;
}

.heroAlbumImage {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.heroAlbumImage--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.75);
}

.heroAlbumProvider {
    padding: 8px 10px 10px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
}

.heroAlbumsEmpty {
    padding: 18px 16px;
    border-radius: 14px;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}


@media (max-width: 980px) {
    .heroUnifiedGrid {
        grid-template-columns: 1fr;
    }

    .heroUnifiedAlbums {
        justify-content: flex-start;
    }

    .heroAlbumRail {
        justify-content: flex-start;
    }
}

@media (max-width: 700px) {
    .heroAliases {
        font-size: 12px;
    }

    .heroRecordingInline {
        flex-direction: column;
    }

    .heroAlbumRail {
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .heroAlbumCard {
        flex: 0 0 132px;
        width: 132px;
    }
}

.heroTitleLink {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

.heroTitleLink:hover {
    color: #93c5fd;
}

.heroRecordingInlineItem--wide {
    min-width: 220px;
}

.heroRecordingInlineValue--withIcon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.heroSessionIconLink {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex: 0 0 30px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
    transition: all 0.15s ease;
}

.heroSessionIconLink:hover {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.3);
    transform: translateY(-1px);
}

.heroSessionIconLink img {
    width: 22px;
    height: 22px;
    display: block;
    object-fit: contain;
}

.artistTableWrap {
    overflow: auto;
}

.artistTable {
    width: 100%;
    border-collapse: collapse;
    min-width: 520px;
}

.artistTable th,
.artistTable td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 13px;
    vertical-align: middle;
}

.artistTable th {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 700;
}

.artistTable tbody tr:hover {
    background: rgba(255, 255, 255, 0.04);
}

.artistTable tbody tr.is-selected {
    background: rgba(245, 158, 11, 0.09);
}

.artistTable td:first-child {
    width: 56px;
    color: var(--muted);
    font-weight: 700;
}

.artistTable td:nth-child(3),
.artistTable td:nth-child(4) {
    width: 110px;
    white-space: nowrap;
}

.panelHeadMain {
    min-width: 0;
    flex: 1 1 auto;
}

.panelToggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    min-height: 34px;
    padding: 6px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: all 0.15s ease;
}

.panelToggle:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.16);
}

.panelToggleIcon {
    display: inline-block;
    width: 12px;
    text-align: center;
    font-size: 15px;
    line-height: 1;
}

.panel.is-collapsed .panelBody {
    display: none;
}

.panel.is-collapsed .panelToggleText {
    content: "Expand";
}

@media (max-width: 700px) {
    .panelToggleText {
        display: none;
    }

    .panelToggle {
        width: 34px;
        min-width: 34px;
        padding: 0;
        justify-content: center;
    }
}

.panel.is-collapsed .panelToggle {
    background: rgba(255, 255, 255, 0.03);
}

.trackOverviewLink {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 4px;
}

.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);
}

.trackOverviewPill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
    text-decoration: none;
}

.trackOverviewText {
    font-size: 13px;
    font-weight: 500;
}