/* ── Variables ──────────────────────────────────────── */
:root {
    --charcoal:     #141414;
    --charcoal-lt:  #1a1a1a;
    --charcoal-dk:  #000000;
    --offwhite:     #ffffff;
    --offwhite-dk:  #e0e0e0;
    --blue-deep:    #152d4f;
    --blue-mid:     #1e5fa8;
    --blue-light:   #3b8de0;
    --blue-pale:    #d0e4f7;
    --blue:         #1e5fa8;
    --text-primary: rgba(255,255,255,0.9);
    --text-secondary: rgba(255,255,255,0.75);
    --text-muted:   rgba(255,255,255,0.45);
    --text-dark:    #0d0d0d;
    --border:       rgba(255,255,255,0.06);
    --border-lt:    rgba(255,255,255,0.1);
    --radius:       10px;
    --radius-lg:    16px;
    --shadow:       0 4px 24px rgba(0,0,0,0.6);
    --shadow-sm:    0 2px 8px rgba(0,0,0,0.4);
    --glass:        rgba(13,13,13,0.8);
    --glass-border: rgba(255,255,255,0.08);
}

/* ── Reset & Base ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Figtree', 'Inter', system-ui, -apple-system, sans-serif;
    background: #060608;
    background-image:
        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(21,45,79,0.35) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 90% 80%, rgba(30,95,168,0.08) 0%, transparent 50%),
        radial-gradient(ellipse 50% 40% at 10% 70%, rgba(21,45,79,0.06) 0%, transparent 50%);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* ── Navbar ─────────────────────────────────────────── */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    height: 56px;
    background: rgba(13,13,13,0.85);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 15px;
    color: var(--offwhite);
    letter-spacing: -0.3px;
    white-space: nowrap;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── Flash Messages ────────────────────────────────── */
.flash-messages {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-bottom: 20px;
}

.alert {
    padding: 12px 18px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    max-width: 580px;
    width: 100%;
    backdrop-filter: blur(8px);
}
.alert-error { background: rgba(200,50,50,0.15); border: 1px solid rgba(200,50,50,0.35); color: #f4a0a0; }
.alert-success { background: rgba(50,180,100,0.12); border: 1px solid rgba(50,180,100,0.3); color: #7fd4a8; }

/* ── Buttons ────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    border: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    letter-spacing: 0.01em;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
    background: linear-gradient(135deg, var(--blue-mid), var(--blue-light));
    color: #fff;
    box-shadow: 0 2px 12px rgba(30,95,168,0.35);
}
.btn-primary:hover {
    box-shadow: 0 4px 20px rgba(30,95,168,0.5);
    filter: brightness(1.08);
}

.btn-outline {
    background: rgba(255,255,255,0.04);
    border: 1.5px solid rgba(30,95,168,0.4);
    color: var(--blue-pale);
    backdrop-filter: blur(4px);
}
.btn-outline:hover {
    background: rgba(30,95,168,0.12);
    border-color: var(--blue-light);
}

.btn-ghost {
    background: rgba(255,255,255,0.05);
    color: var(--text-primary);
    border: 1px solid rgba(255,255,255,0.08);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); }

.btn-sm { padding: 5px 12px; font-size: 12px; }

/* ── Credit Preset Bar ─────────────────────────────── */
.credit-preset-bar {
    display: flex;
    margin: 8px 12px 4px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0,0,0,0.15);
}
.btn-credit-preset {
    flex: 1;
    background: transparent;
    border: none;
    border-right: 1px solid rgba(255,255,255,0.08);
    color: var(--text-muted);
    padding: 8px 6px;
    font-size: 10px;
    font-family: 'Figtree', 'Inter', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1.3;
    text-align: center;
}
.btn-credit-preset:last-child { border-right: none; }
.btn-credit-preset:hover { background: rgba(255,255,255,0.06); color: var(--text-primary); }
.btn-credit-preset.active {
    background: linear-gradient(135deg, var(--blue-mid), var(--blue-light));
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.15);
}

/* ── Hero / Search Page ─────────────────────────────── */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 120px);
}

.hero-inner {
    text-align: center;
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.hero-title {
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -1.2px;
    color: var(--offwhite);
    line-height: 1.15;
}

.hero-sub {
    font-size: 15px;
    color: var(--text-muted);
    margin: 6px 0 24px;
    line-height: 1.6;
}

.search-row {
    display: flex;
    gap: 10px;
    width: 100%;
}

.search-form {
    display: flex;
    gap: 10px;
    width: 100%;
    max-width: 480px;
}

.search-input {
    flex: 1;
    padding: 12px 18px;
    border-radius: var(--radius);
    border: 1.5px solid var(--border-lt);
    background: rgba(255,255,255,0.04);
    color: var(--offwhite);
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.search-input:focus {
    border-color: var(--blue-mid);
    background: rgba(255,255,255,0.06);
    box-shadow: 0 0 0 3px rgba(30,95,168,0.15);
}
.search-input::placeholder { color: var(--text-muted); }

/* ── Main Content ──────────────────────────────────── */
.main-content {
    flex: 1;
    padding: 32px 28px;
    max-width: 1320px;
    margin: 0 auto;
    width: 100%;
}

/* ── Profile Header ────────────────────────────────── */
.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 28px;
}

.profile-info-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.artist-header {
    display: flex;
    align-items: center;
    gap: 20px;
}

.artist-meta {
    display: flex;
    flex-direction: column;
}

.artist-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(30,95,168,0.5);
    flex-shrink: 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.artist-pop-bar {
    width: 96px;
    height: 8px;
    background: rgba(255,255,255,0.06);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.artist-pop-fill {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--blue-deep), var(--blue-mid), var(--blue-light));
    transition: width 0.5s ease;
}

.artist-pop-label {
    position: absolute;
    top: -16px;
    right: 0;
    font-size: 10px;
    font-weight: 700;
    color: var(--blue-pale);
    line-height: 1;
}

.tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--blue-pale);
    margin-bottom: 4px;
    opacity: 0.7;
}

.page-title {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.8px;
    color: var(--offwhite);
    line-height: 1.15;
}

.artist-stats, .album-stats {
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 6px;
}

.filter-note {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 8px;
    font-size: 11px;
    font-weight: 600;
    color: var(--blue-pale);
    background: rgba(30,95,168,0.1);
    border: 1px solid rgba(30,95,168,0.2);
    border-radius: 6px;
    padding: 4px 10px;
}

/* ── Album Header ───────────────────────────────────── */
.album-header {
    display: flex;
    align-items: flex-start;
    gap: 22px;
}

.album-cover {
    width: 120px;
    height: 120px;
    border-radius: var(--radius);
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: var(--shadow);
}

.album-meta { display: flex; flex-direction: column; gap: 4px; }

.meta-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.meta-chip {
    background: rgba(30,95,168,0.1);
    border: 1px solid rgba(30,95,168,0.2);
    border-radius: 8px;
    padding: 4px 12px;
    font-size: 12px;
    color: var(--blue-pale);
}

.meta-key {
    font-weight: 700;
    color: var(--text-muted);
    margin-right: 5px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ── Export / Filter Dropdown ─────────────────────── */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 6px;
}

.dropdown-content {
    position: absolute;
    right: 0;
    background: var(--glass);
    backdrop-filter: blur(24px) saturate(1.6);
    -webkit-backdrop-filter: blur(24px) saturate(1.6);
    min-width: 180px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.45), 0 0 0 1px var(--glass-border);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    z-index: 1000;
    margin-top: 6px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s, visibility 0.18s, transform 0.18s;
    transform: translateY(-4px);
    transition-delay: 0.08s;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition-delay: 0s;
}

.dropdown-item {
    color: var(--text-primary);
    padding: 10px 16px;
    text-decoration: none;
    display: block;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.15s;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: rgba(30,95,168,0.2);
    color: #fff;
}

.dropdown-header {
    background: rgba(21,45,79,0.35);
    color: var(--blue-pale);
    padding: 7px 16px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.col-toggle-menu { min-width: 160px; }
.filter-panel { min-width: 220px; }

.filter-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--blue-mid), var(--blue-light));
    color: #fff;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    margin-left: 4px;
    margin-right: -2px;
    box-shadow: 0 1px 4px rgba(30,95,168,0.4);
}

.col-toggle-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    user-select: none;
    transition: background 0.15s;
}
.col-toggle-item:last-child { border-bottom: none; }
.col-toggle-item:hover { background: rgba(30,95,168,0.12); }
.col-toggle-item input[type=checkbox] {
    accent-color: var(--blue-light);
    width: 15px;
    height: 15px;
    cursor: pointer;
    flex-shrink: 0;
    border-radius: 3px;
}

/* ── Custom Range Slider ───────────────────────────── */
input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    height: 5px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    outline: none;
}
input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, var(--blue-mid), var(--blue-light));
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 1px 6px rgba(0,0,0,0.3);
    border: 2px solid rgba(255,255,255,0.2);
    transition: transform 0.15s;
}
input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}
input[type=range]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, var(--blue-mid), var(--blue-light));
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 1px 6px rgba(0,0,0,0.3);
    border: 2px solid rgba(255,255,255,0.2);
}

/* ── Table ──────────────────────────────────────────── */
.table-wrapper {
    background: rgba(255,255,255,0.02);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    overflow-x: auto;
    box-shadow: var(--shadow-sm);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}

.data-table thead tr {
    background: rgba(21,45,79,0.3);
}

.data-table th {
    padding: 13px 14px;
    text-align: center;
    font-family: 'Figtree', 'Inter', sans-serif;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    color: var(--blue-pale);
    white-space: nowrap;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.th-left { text-align: left !important; }

/* ── Tracks Modal — album art background ──────────── */
#tracks-modal-body {
    background-size: cover;
    background-position: center;
}
#tracks-modal-body * {
    border-radius: 0 !important;
}
#tracks-modal-body .pop-bar,
#tracks-modal-body .pop-bar-wrap {
    border-radius: 4px !important;
}
#tracks-modal-body .data-table tbody tr {
    background: rgba(14, 17, 26, 0.78);
}
#tracks-modal-body .data-table tbody tr:nth-child(even) {
    background: rgba(20, 25, 38, 0.78);
}
#tracks-modal-body .data-table thead tr {
    background: rgba(14, 17, 26, 0.88);
}
#tracks-modal-body .data-table td,
#tracks-modal-body .data-table th {
    border-bottom-color: rgba(255,255,255,0.04);
    font-size: 13px;
    text-shadow: 0 0 2px rgba(0,0,0,0.85), 0 1px 2px rgba(0,0,0,0.6);
}
#tracks-modal-body .data-table .track-name {
    font-size: 13.5px;
}

.sortable {
    cursor: pointer;
    user-select: none;
    transition: color 0.15s;
}
.sortable:hover { color: #fff; }
.sort-icon { font-size: 9px; opacity: 0.6; }

.data-table td {
    padding: 11px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    vertical-align: middle;
    color: var(--text-primary);
    font-family: 'Figtree', sans-serif;
    font-size: 13px;
    text-align: center;
}

.data-table tbody tr:last-child td { border-bottom: none; }

.data-table tbody tr:nth-child(even) {
    background: rgba(255,255,255,0.015);
}

.release-row {
    cursor: pointer;
    transition: background 0.15s;
}
.release-row:hover, .track-row:hover {
    background: rgba(30,95,168,0.08) !important;
}

/* ── Table Columns ──────────────────────────────────── */
.th-art, .td-art { width: 52px; padding-left: 12px; padding-right: 0; }
.th-num { width: 40px; }
.td-num { text-align: center; color: var(--text-muted); }
.td-track-num { font-weight: 600; color: var(--blue-pale); }
.data-table td.td-title { text-align: left; }
.td-date { white-space: nowrap; color: var(--text-muted); }
.td-label { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-muted); }
.td-code { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--text-muted); }
.td-dur { white-space: nowrap; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.td-center { text-align: center; }
.td-artists { color: var(--text-muted); font-size: 12px; }
.td-muted { color: var(--text-muted); }
.td-actions { text-align: right; width: 80px; padding-right: 12px; }
.td-reporting { width: 110px; white-space: nowrap; }


.spotify-play-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: #1DB954;
    transition: transform 0.2s, color 0.2s;
}

.spotify-play-btn svg {
    width: 24px;
    height: 24px;
}

.spotify-play-btn:hover {
    transform: scale(1.1);
    color: #1ed760;
}

.release-name, .track-name {
    font-weight: 600;
    color: var(--offwhite);
}

/* ── Thumbnails ─────────────────────────────────────── */
.thumb {
    width: 42px;
    height: 42px;
    border-radius: 6px;
    object-fit: cover;
    display: block;
    box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}

.thumb-placeholder {
    background: var(--charcoal-lt);
}

/* ── Clickable Album Art ───────────────────────────── */
.art-link {
    display: block;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: transform 0.25s cubic-bezier(0.2, 0, 0, 1), border-color 0.25s, box-shadow 0.25s;
    line-height: 0;
}
.release-row:hover .art-link,
.track-row:hover .art-link,
.pub-main-row:hover .art-link {
    transform: scale(1.08);
    border-color: rgba(30,95,168,0.3);
}
.art-link:hover {
    transform: scale(1.14);
    border-color: var(--blue-light);
    box-shadow: 0 2px 14px rgba(59,141,224,0.3);
}
.art-link:hover .thumb,
.art-link:hover .thumb-placeholder {
    box-shadow: none;
}

/* ── Reporting Badges ──────────────────────────────── */
.reporting-yes, .reporting-no, .reporting-participation, .reporting-no-details {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: opacity 0.15s;
}
.reporting-yes:hover, .reporting-no:hover, .reporting-participation:hover, .reporting-no-details:hover { opacity: 0.8; }
.reporting-yes {
    background: rgba(46, 160, 67, 0.18);
    color: #3fb950;
}
.reporting-no {
    background: rgba(248, 81, 73, 0.18);
    color: #f85149;
}
.reporting-participation {
    background: rgba(227, 179, 37, 0.18);
    color: #e3b325;
    /* shared styles already in grouped rule above */
}
.reporting-no-details {
    background: rgba(46, 160, 67, 0.18);
    color: #3fb950;
}
.reporting-unknown {
    background: none;
    color: rgba(255,255,255,0.25);
    font-size: 11px;
    font-style: italic;
}

/* ── Deal Type Badges ──────────────────────────────── */
.deal-royalty, .deal-participation, .deal-distribution, .deal-side-artist, .deal-label-waiver, .deal-jv, .deal-no-contract {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: opacity 0.15s;
    white-space: nowrap;
}
.deal-royalty:hover, .deal-participation:hover, .deal-distribution:hover, .deal-side-artist:hover, .deal-label-waiver:hover, .deal-jv:hover, .deal-no-contract:hover { opacity: 0.8; }
.deal-royalty {
    background: rgba(130, 80, 223, 0.18);
    color: #a371f7;
}
.deal-participation {
    background: rgba(47, 160, 195, 0.18);
    color: #39c5cf;
}
.deal-distribution {
    background: rgba(195, 140, 47, 0.18);
    color: #cfb039;
}
.deal-side-artist {
    background: rgba(219, 107, 58, 0.18);
    color: #e08050;
}
.deal-label-waiver {
    background: rgba(163, 113, 247, 0.18);
    color: #c9a0ff;
}
.deal-jv {
    background: rgba(72, 166, 120, 0.18);
    color: #57cc8a;
}
.deal-no-contract {
    background: rgba(248, 81, 73, 0.18);
    color: #f85149;
}
.deal-type-dropdown {
    position: fixed;
    z-index: 10000;
    background: #1e1e1e;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 4px 0;
    min-width: 140px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.deal-type-dropdown-item {
    display: block;
    width: 100%;
    padding: 6px 14px;
    border: none;
    background: none;
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    white-space: nowrap;
}
.deal-type-dropdown-item:hover {
    background: rgba(255,255,255,0.08);
}
.deal-unknown {
    display: inline-block;
    padding: 3px 10px;
    font-size: 11px;
    font-style: italic;
    color: rgba(255,255,255,0.25);
}
.td-deal-type { width: 120px; white-space: nowrap; }

/* ── Payment Method Badges ──────────────────────────── */
.payment-check, .payment-direct-deposit, .payment-invoice {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: opacity 0.15s;
    white-space: nowrap;
}
.payment-check:hover, .payment-direct-deposit:hover, .payment-invoice:hover { opacity: 0.8; }
.payment-check {
    background: rgba(72, 166, 120, 0.18);
    color: #57cc8a;
}
.payment-direct-deposit {
    background: rgba(47, 160, 195, 0.18);
    color: #39c5cf;
}
.payment-invoice {
    background: rgba(195, 140, 47, 0.18);
    color: #cfb039;
}
.payment-method-dropdown {
    position: fixed;
    z-index: 10000;
    background: #1e1e1e;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 4px 0;
    min-width: 140px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.payment-method-dropdown-item {
    display: block;
    width: 100%;
    padding: 6px 14px;
    border: none;
    background: none;
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    white-space: nowrap;
}
.payment-method-dropdown-item:hover { background: rgba(255,255,255,0.08); }
.payment-unknown {
    display: inline-block;
    padding: 3px 10px;
    font-size: 11px;
    font-style: italic;
    color: rgba(255,255,255,0.25);
}
.td-payment-method { width: 120px; white-space: nowrap; }

/* ── View Tabs (Release/Source/Report/Files) ───────── */
.view-tabs {
    display: flex;
    gap: 2px;
    margin-bottom: 20px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 4px;
    width: fit-content;
}

.view-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 20px;
    font-family: 'Figtree', 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-radius: 9px;
    cursor: pointer;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.view-tab:hover {
    color: var(--text-primary);
    background: rgba(255,255,255,0.05);
}

.view-tab.active {
    color: #fff;
    background: rgba(30,95,168,0.25);
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.view-tab.active svg {
    opacity: 1;
}

.view-tab svg {
    opacity: 0.5;
    flex-shrink: 0;
}

.view-tab:hover svg {
    opacity: 0.8;
}

.view-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    gap: 12px;
    border: 1px dashed rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,0.015);
}

.view-placeholder h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-secondary);
    margin: 0;
}

.view-placeholder p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
    max-width: 320px;
}

/* ── File Download Buttons ─────────────────────────── */
.th-file-col {
    width: 90px;
}

.td-file-download {
    width: 90px;
}

.file-dl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 9px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

.file-dl-btn:hover {
    background: rgba(30,95,168,0.15);
    border-color: rgba(30,95,168,0.4);
    color: var(--blue-light);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(30,95,168,0.2);
}

/* ── Modal Tabs ────────────────────────────────────── */
.modal-tab {
    background: none;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Figtree', 'Inter', sans-serif;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
    margin-bottom: -1px;
}
.modal-tab:hover { color: var(--text-primary); }
.modal-tab.active {
    color: var(--text-primary);
    border-bottom-color: var(--blue);
}

.thumb-sm {
    width: 28px;
    height: 28px;
    border-radius: 5px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.track-name-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ── Badges ─────────────────────────────────────────── */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    white-space: nowrap;
}

.badge-album       { background: rgba(30,95,168,0.2); color: #7ab8f5; }
.badge-single      { background: rgba(59,141,224,0.15); color: #a0d0ff; }
.badge-compilation { background: rgba(80,80,120,0.2); color: #c0b8f0; }
.badge-appears_on  { background: rgba(80,120,80,0.2); color: #a0d4a0; }

.badge-merged {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: rgba(255,255,255,0.04);
    color: var(--text-muted);
    border: 1px solid rgba(255,255,255,0.1);
    vertical-align: middle;
    cursor: default;
}

.merged-section {
    margin-top: 32px;
}

.merged-section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0 14px;
    border-top: 1px solid var(--border);
}

.merged-section-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.merged-section-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #e0b84a;
}

.merged-section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.merged-section-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 2px;
}

.badge-explicit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: rgba(255,255,255,0.15);
    color: var(--charcoal-dk);
    font-size: 10px;
    font-weight: 800;
    border-radius: 3px;
}

/* ── Popularity Bar ─────────────────────────────────── */
.td-pop { min-width: 110px; padding-left: 12px; padding-right: 12px; }

.pop-bar-wrap {
    background: rgba(255,255,255,0.06);
    border-radius: 4px;
    height: 6px;
    width: 100%;
    max-width: 90px;
    overflow: hidden;
    cursor: default;
    margin: 0 auto;
}

.pop-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--blue-mid), var(--blue-light));
    border-radius: 4px;
    transition: width 0.4s ease;
}

/* ── Empty State ────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 48px !important;
    color: var(--text-muted);
}

/* ── Footer ─────────────────────────────────────────── */
.footer {
    text-align: center;
    padding: 20px;
    font-size: 12px;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
}

.export-bar { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* ── Artist meta top row ────────────────────────────── */
.artist-meta-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

/* ── Save / Saved buttons ───────────────────────────── */
.btn-save {
    background: transparent;
    border: 1.5px solid rgba(255,255,255,0.15);
    color: var(--text-muted);
}
.btn-save:hover {
    border-color: var(--blue-light);
    color: var(--blue-pale);
    background: rgba(30,95,168,0.1);
}

.btn-saved {
    background: rgba(59,141,224,0.12);
    border: 1.5px solid rgba(59,141,224,0.4);
    color: var(--blue-pale);
}
.btn-saved:hover {
    background: rgba(200,50,50,0.12);
    border-color: rgba(200,100,100,0.5);
    color: #f4a0a0;
}
.btn-saved:hover::after {
    content: 'Remove';
}

/* ── Cache badge (on releases page) ─────────────────── */
.cache-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 2px 8px;
}

/* ── Saved Profiles section (home page) ─────────────── */
.profiles-section {
    max-width: 760px;
    margin: 0 auto 40px;
    padding: 0 16px;
}

.profiles-heading {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 12px;
}

.profile-card {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.profile-card:hover {
    border-color: rgba(30,95,168,0.4);
    background: rgba(255,255,255,0.05);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    transform: translateY(-1px);
}

.profile-card-link {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    padding: 12px 16px;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

.profile-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.profile-avatar-placeholder {
    background: var(--charcoal-dk);
    border-radius: 50%;
}

.profile-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.profile-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 1px;
}

.profile-delete-form {
    flex-shrink: 0;
    padding-right: 10px;
}

.profile-delete-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 6px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
}
.profile-delete-btn:hover {
    background: rgba(200,50,50,0.15);
    color: #f4a0a0;
}

.search-extras {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    text-align: center;
}

.hint-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--blue-light);
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.15s;
}

.hint-link:hover { opacity: 1; }

.recent-profiles-dropdown .dropdown-content {
    right: 50%;
    transform: translateX(50%);
    text-align: left;
    padding-top: 0;
}

.dropdown-search-wrap {
    padding: 8px;
    background: rgba(0,0,0,0.2);
    border-bottom: 1px solid var(--border);
}

.dropdown-search-input {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-lt);
    border-radius: 6px;
    padding: 7px 11px;
    color: var(--offwhite);
    font-size: 12px;
    outline: none;
    transition: border-color 0.2s;
}

.dropdown-search-input:focus {
    border-color: var(--blue-mid);
}

.profile-nav-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-nav {
    min-width: 100px;
    height: 34px;
    padding: 0 12px;
    font-size: 12px;
    justify-content: center;
}

/* ── Profile Type Selection Cards ───────────────────── */
.profile-type-card {
    display: flex;
    align-items: center;
    gap: 18px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 22px;
    flex: 1;
    min-width: 260px;
    max-width: 500px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    color: inherit;
    text-decoration: none;
}
.profile-type-card:hover {
    border-color: rgba(30,95,168,0.5);
    background: rgba(255,255,255,0.05);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.35), 0 0 0 1px rgba(30,95,168,0.15) inset;
}
.profile-type-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-deep), var(--blue-mid));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--offwhite);
    box-shadow: 0 2px 12px rgba(30,95,168,0.3);
}
.profile-type-body { flex: 1; min-width: 0; }
.profile-type-title { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.profile-type-desc { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.profile-type-arrow { color: var(--text-muted); flex-shrink: 0; transition: transform 0.2s; }
.profile-type-card:hover .profile-type-arrow { transform: translateX(3px); }

/* ── Artist Profile Photo ───────────────────────────── */
.artist-photo {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(30,95,168,0.6);
    flex-shrink: 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.profile-avatar-action {
    cursor: pointer;
    border-radius: 50%;
    transition: transform 0.15s ease, filter 0.15s ease;
}
.profile-avatar-action:hover {
    transform: translateY(-1px) scale(1.02);
    filter: brightness(1.12);
}
.profile-avatar-action:focus-visible {
    outline: 2px solid var(--blue-light);
    outline-offset: 4px;
}

/* ── Artist Pick Buttons (search results) ───────────── */
.artist-pick-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 14px;
    color: var(--text-primary);
    cursor: pointer;
    text-align: left;
    transition: all 0.18s;
}
.artist-pick-btn:hover {
    border-color: rgba(30,95,168,0.4);
    background: rgba(30,95,168,0.08);
}
.artist-pick-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.artist-pick-placeholder {
    background: linear-gradient(135deg, var(--blue-deep), var(--blue-mid));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    color: var(--offwhite);
}
.artist-pick-info { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.artist-pick-name { font-size: 14px; font-weight: 600; }
.artist-pick-meta { font-size: 12px; color: var(--text-muted); margin-top: 1px; }

/* ── Profile Cards (nav dropdown) ──────────────────── */
.profile-card-avatar { flex-shrink: 0; }
.profile-card-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}
.profile-card-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.profile-card-name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-card-alias { font-size: 12px; color: var(--blue-pale); }
.profile-card-meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; display: flex; align-items: center; gap: 4px; }

#nav-profiles-dropdown {
    min-width: 200px;
}

/* ── Loading Spinner ────────────────────────────────── */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 30, 0.75);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner {
    width: 44px;
    height: 44px;
    border: 4px solid rgba(255, 255, 255, 0.08);
    border-top: 4px solid var(--blue-light);
    border-radius: 50%;
    animation: spin 0.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.spinner-inline {
    display: inline-block;
    width: 14px; height: 14px;
    border: 2px solid rgba(255,255,255,0.15);
    border-top-color: var(--blue-light);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}

/* ── Search Results Page ────────────────────────────── */
.search-results-container {
    max-width: 900px;
    margin: 0 auto;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.result-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.result-card:hover {
    transform: translateY(-3px);
    border-color: rgba(30,95,168,0.4);
    background: rgba(255,255,255,0.05);
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}

.result-avatar-wrap {
    flex-shrink: 0;
}

.result-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(30,95,168,0.4);
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.result-avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--charcoal-dk);
}

.result-info {
    flex: 1;
    min-width: 0;
}

.result-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--offwhite);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.result-meta {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
}

.dropdown-scroll-area {
    max-height: 300px;
    overflow-y: auto;
}

.profile-nav-link {
    flex: 1;
    color: inherit;
    text-decoration: none;
    padding: 10px 16px;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-nav-item {
    padding: 0 !important;
    display: flex !important;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    background: transparent;
    transition: background 0.15s;
}

.profile-nav-item[style*="display: none"] {
    display: none !important;
}

.profile-nav-item:hover {
    background-color: rgba(30,95,168,0.25);
}

.profile-delete-inline {
    padding-right: 8px;
}

.profile-delete-btn-sm {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.profile-nav-item:hover .profile-delete-btn-sm {
    color: rgba(255, 255, 255, 0.8);
}

.profile-delete-btn-sm:hover {
    background: rgba(200, 50, 50, 0.35);
    color: white !important;
}

/* ── Nav profile list: shorter + scrollable ─────────── */
#nav-profile-list {
    max-height: 260px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* ── Initials Avatar ────────────────────────────────── */
.initials-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-deep), var(--blue-mid));
    border: 3px solid rgba(30,95,168,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    color: var(--offwhite);
    letter-spacing: -1px;
    flex-shrink: 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.initials-avatar-sm {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-deep), var(--blue-mid));
    border: 2px solid rgba(30,95,168,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--offwhite);
    flex-shrink: 0;
}

/* ── Custom Profile New Form ────────────────────────── */
.custom-new-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    max-width: 860px;
}

.custom-new-form-card {
    background: rgba(255,255,255,0.025);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 11px 14px;
    border-radius: var(--radius);
    border: 1.5px solid var(--border-lt);
    background: rgba(255,255,255,0.04);
    color: var(--offwhite);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus {
    border-color: var(--blue-mid);
    box-shadow: 0 0 0 3px rgba(30,95,168,0.12);
}
.form-input::placeholder { color: var(--text-muted); }

.form-hint {
    margin-top: 5px;
    font-size: 11px;
    color: var(--text-muted);
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 28px;
}

.custom-isrc-preview {
    background: rgba(255,255,255,0.025);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    align-self: start;
    box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

.isrc-list-scroll {
    max-height: 340px;
    overflow-y: auto;
}

.isrc-preview-row {
    padding: 8px 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
}
.isrc-preview-row:last-child { border-bottom: none; }

/* ── Custom Profile View ────────────────────────────── */
.custom-album-block {
    margin-bottom: 28px;
}

.custom-album-header {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    background: rgba(255,255,255,0.025);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px;
    margin-bottom: 0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom: none;
}

.custom-album-block .table-wrapper {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

/* ── Custom Profile Progress Card ───────────────────── */
.processing-card {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    background: rgba(255,255,255,0.025);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    max-width: 680px;
    margin: 0 auto;
}

.processing-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
}

.processing-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255,255,255,0.06);
    border-top: 4px solid var(--blue-light);
    border-radius: 50%;
    animation: spin 0.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.processing-body {
    flex: 1;
    min-width: 0;
}

.processing-title {
    font-weight: 700;
    font-size: 16px;
    color: var(--offwhite);
    margin-bottom: 6px;
}

.processing-sub {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.progress-track {
    height: 8px;
    background: rgba(255,255,255,0.06);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--blue-deep), var(--blue-mid), var(--blue-light));
    border-radius: 4px;
    transition: width 0.6s ease;
}

.processing-hint {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.6;
    font-style: italic;
}

/* ── Not Found Bar ──────────────────────────────────── */
.not-found-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(200, 50, 50, 0.06);
    border: 1px solid rgba(200, 50, 50, 0.2);
    border-radius: var(--radius);
    padding: 10px 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.not-found-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #f4a0a0;
    flex: 1;
}

.not-found-copy-btn {
    font-size: 12px;
    padding: 5px 12px;
    border-color: rgba(200, 50, 50, 0.3);
    color: #f4a0a0;
}

.not-found-copy-btn:hover {
    border-color: rgba(200, 50, 50, 0.6);
    background: rgba(200, 50, 50, 0.08);
}

/* ── Credited fraction ──────────────────────────────── */
.credited-frac {
    font-size: 12px;
    font-weight: 500;
    padding: 2px 7px;
    border-radius: 10px;
    border: 1px solid transparent;
}

.credited-full {
    color: var(--blue-light);
    border-color: rgba(59,141,224,0.35);
    background: rgba(59,141,224,0.06);
}

.credited-partial {
    color: var(--text-primary);
    border-color: rgba(255,255,255,0.12);
}

.credited-none {
    color: var(--text-primary);
}

/* ── CSV Upload Zone ────────────────────────────────── */
.csv-upload-zone {
    border: 2px dashed rgba(255,255,255,0.12);
    border-radius: 12px;
    padding: 28px 20px 22px;
    text-align: center;
    transition: border-color 0.2s, background 0.2s;
    background: rgba(255,255,255,0.015);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.csv-upload-zone:hover,
.csv-upload-zone.csv-drag-over {
    border-color: var(--blue-mid);
    background: rgba(59,141,224,0.04);
}

.csv-upload-zone.csv-has-file {
    border-color: var(--blue-light);
    border-style: solid;
    background: rgba(59,141,224,0.06);
}

.csv-upload-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0 0 4px;
}

.csv-browse-link {
    color: var(--blue-light);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.csv-upload-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}

.csv-upload-hint code {
    font-family: 'IBM Plex Mono', monospace;
    background: rgba(255,255,255,0.06);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 11px;
}

/* ── Credits column ─────────────────────────────────── */
.td-credits {
    font-size: 12px;
    color: var(--text-secondary);
    max-width: 220px;
    white-space: normal;
    line-height: 1.4;
}

.track-credited .td-credits {
    color: var(--blue-light);
}

/* ── Credited meta chips ─────────────────────────────── */
.meta-chip-full {
    border-color: rgba(59,141,224,0.45) !important;
    color: var(--blue-light) !important;
}

.meta-chip-partial {
    border-color: rgba(59,141,224,0.25) !important;
    color: var(--text-secondary) !important;
}

.meta-chip-none {
    border-color: rgba(255,255,255,0.08) !important;
    color: var(--text-muted) !important;
}

/* ── Hero Actions + Profiles Dropdown ──────────────── */
.hero-full { min-height: calc(100vh - 56px); }
.hero:not(.hero-full) { min-height: 60vh; }

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.hero-cta {
    font-size: 15px;
    padding: 11px 28px;
}

.profiles-dropdown-wrap {
    position: relative;
}

.hero-profiles-btn {
    font-size: 13px;
    gap: 7px;
    padding: 8px 16px;
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-muted);
    transition: all 0.2s;
}
.hero-profiles-btn:hover,
.hero-profiles-btn.active {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.18);
    color: var(--text-primary);
}

.profiles-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.12);
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    color: var(--offwhite);
}

.profiles-chevron {
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: -2px;
    opacity: 0.6;
}
.profiles-dropdown-wrap.open .profiles-chevron {
    transform: rotate(180deg);
}

.profiles-dropdown-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    width: 340px;
    background: rgba(30,32,44,0.95);
    backdrop-filter: blur(28px) saturate(1.6);
    -webkit-backdrop-filter: blur(28px) saturate(1.6);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    box-shadow: 0 12px 48px rgba(0,0,0,0.5), 0 2px 8px rgba(0,0,0,0.25);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.2s;
    z-index: 200;
}
.profiles-dropdown-wrap.open .profiles-dropdown-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.profiles-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.profiles-panel-count {
    background: rgba(255,255,255,0.08);
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    color: var(--text-primary);
}

.profiles-panel-list {
    max-height: 320px;
    overflow-y: auto;
}

.profiles-panel-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: background 0.15s;
}
.profiles-panel-item:last-child { border-bottom: none; }
.profiles-panel-item:hover {
    background: rgba(30,95,168,0.18);
}

.profiles-panel-avatar { flex-shrink: 0; }

.profiles-panel-img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(30,95,168,0.35);
}

.profiles-panel-initials {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-deep), var(--blue-mid));
    border: 2px solid rgba(30,95,168,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--offwhite);
}

.profiles-panel-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex: 1;
    min-width: 0;
}

.profiles-panel-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profiles-panel-alias {
    font-size: 12px;
    color: var(--blue-pale);
    opacity: 0.8;
}

.profiles-panel-meta {
    font-size: 11px;
    color: var(--text-muted);
}

.profiles-panel-type {
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 8px;
    border-radius: 6px;
}
.type-custom {
    background: rgba(30,95,168,0.18);
    color: var(--blue-pale);
    border: 1px solid rgba(30,95,168,0.3);
}
.type-label {
    background: rgba(240,184,90,0.16);
    color: #f0d48a;
    border: 1px solid rgba(240,184,90,0.28);
}
.type-artist {
    background: rgba(80,120,80,0.18);
    color: #a0d4a0;
    border: 1px solid rgba(80,120,80,0.3);
}

/* ── Pagination ────────────────────────────────────── */
.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s;
}
.pagination-btn:hover {
    background: rgba(30,95,168,0.15);
    border-color: rgba(30,95,168,0.3);
    color: var(--text-primary);
}
.pagination-btn.active {
    background: var(--blue-mid);
    border-color: var(--blue-mid);
    color: #fff;
}

/* ── Mobile Back Button ────────────────────────────── */
.nav-back-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--offwhite);
    padding: 6px 4px 6px 0;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    opacity: 0.85;
    -webkit-tap-highlight-color: transparent;
}
.nav-back-btn:active { opacity: 0.6; }
