:root {
    --bg-main: #0b0f17;
    --bg-card: #131b26;
    --bg-card-hover: #1c2738;
    --bg-input: #0f151f;
    --border: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(99, 102, 241, 0.4);
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent: #6366f1;
    --accent-hover: #4f46e5;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --radius: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* --- Top Navigation --- */
.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background-color: #0e141f;
    border-bottom: 1px solid var(--border);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.brand-text h1 {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    background-color: rgba(16, 185, 129, 0.15);
    color: var(--success);
    border-radius: 20px;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.profile-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background-color: var(--bg-input);
    padding: 0.35rem 0.75rem;
    border-radius: 30px;
    border: 1px solid var(--border);
}

.section-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.profile-list {
    display: flex;
    gap: 0.5rem;
}

.profile-chip {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid transparent;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.profile-chip.active {
    background-color: var(--bg-card-hover);
    color: var(--text-primary);
    border-color: var(--border-highlight);
}

.profile-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.quick-stats {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.stat-pill {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    background-color: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* --- Layout --- */
.main-content {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.sidebar {
    width: 260px;
    background-color: #0c111a;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem 1rem;
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-btn:hover {
    background-color: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
}

.nav-btn.active {
    background-color: rgba(99, 102, 241, 0.12);
    color: var(--accent);
    border-left: 3px solid var(--accent);
}

.privacy-notice {
    display: flex;
    gap: 0.75rem;
    background-color: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius);
    padding: 0.75rem;
    font-size: 0.75rem;
}

.privacy-notice strong {
    color: var(--success);
    display: block;
    margin-bottom: 2px;
}

.privacy-notice p {
    color: var(--text-muted);
    line-height: 1.3;
}

/* --- Content Panel --- */
.content-panel {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.pane-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.pane-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* --- Buttons --- */
.btn {
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--accent);
    color: white;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

.btn-outline:hover {
    background-color: var(--bg-card-hover);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-sm {
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
}

.btn-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

/* --- Playlists Grid --- */
.playlists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.playlist-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.playlist-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-highlight);
}

.playlist-card h4 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
}

.playlist-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --- Tables --- */
.tracks-table-container {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.tracks-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.85rem;
}

.tracks-table th {
    background-color: rgba(255, 255, 255, 0.02);
    padding: 0.8rem 1rem;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}

.tracks-table td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}

.tracks-table tr:hover td {
    background-color: rgba(255, 255, 255, 0.02);
    color: var(--text-primary);
}

.status-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-completed { background: rgba(16, 185, 129, 0.15); color: var(--success); }
.status-downloading { background: rgba(99, 102, 241, 0.15); color: var(--accent); }
.status-queued { background: rgba(245, 158, 11, 0.15); color: var(--warning); }
.status-failed { background: rgba(239, 68, 68, 0.15); color: var(--danger); }

/* --- Discovery Radar Grid --- */
.discovery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}

.discovery-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.discovery-card:hover {
    border-color: rgba(168, 85, 247, 0.4);
}

.discovery-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.discovery-cover {
    width: 60px;
    height: 60px;
    background: #1c2738;
    border-radius: 8px;
    object-fit: cover;
}

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

.discovery-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.25;
    margin-bottom: 0.2rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.discovery-cover-fallback {
    width: 60px;
    height: 60px;
    background: #1c2738;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.preview-audio-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    border-color: rgba(99, 102, 241, 0.4);
    color: #818cf8;
    padding: 0.35rem 0.65rem;
}

.preview-audio-btn:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: #818cf8;
}

.discovery-artist {
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.discovery-reason {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.4;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
}

.discovery-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* --- Stats Row --- */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.2rem;
}

.stat-title {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --- Settings Cards --- */
.settings-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    max-width: 600px;
}

.settings-card h3 {
    margin-bottom: 0.4rem;
}

.form-group {
    margin-top: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}

.form-input, .form-select {
    width: 100%;
    padding: 0.65rem 0.85rem;
    background-color: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.85rem;
}

.form-input:focus, .form-select:focus {
    outline: none;
    border-color: var(--accent);
}

.form-color {
    border: none;
    background: transparent;
    cursor: pointer;
    width: 50px;
    height: 35px;
}

/* --- Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.modal-overlay.open {
    display: flex;
}

.modal {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    width: 480px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.btn-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

/* --- Toast Notification --- */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 0.8rem 1.4rem;
    background-color: #1e293b;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    font-size: 0.85rem;
    font-weight: 600;
    max-width: 480px;
    line-height: 1.4;
    word-break: break-word;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 200;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* --- Section Title Bar & Table Controls --- */
.section-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1.5rem 0 1rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.table-controls {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.search-input {
    min-width: 220px;
    padding: 0.45rem 0.75rem;
    font-size: 0.8rem;
}

.limit-select {
    padding: 0.45rem 0.65rem;
    font-size: 0.8rem;
    width: auto;
}

.status-filter-pills {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.filter-pill {
    padding: 0.3rem 0.65rem;
    border-radius: 20px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-pill:hover {
    border-color: var(--accent);
    color: var(--text-primary);
}

.filter-pill.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* --- Taste Heat Map Styling --- */
.archetype-banner {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(236, 72, 153, 0.15));
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.75rem;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.archetype-badge {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 0.35rem;
}

.archetype-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
    background: linear-gradient(135deg, #fff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.archetype-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.heatmap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.heat-tile {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, border-color 0.2s ease;
    position: relative;
}

.heat-tile:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
}

.heat-tile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.heat-tile-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.heat-tile-score {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.heat-meter-bg {
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
    margin: 0.75rem 0 0.5rem;
}

.heat-meter-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.heat-tile-status {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
}

.heatmap-details-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1.5rem;
}

.detail-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.detail-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.genre-bars-container {
    margin-top: 1.25rem;
}

.genre-bar-item {
    margin-bottom: 0.85rem;
}

.genre-bar-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.era-distribution-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.25rem;
}

.era-pill {
    padding: 0.5rem 0.9rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.era-pill-count {
    color: var(--accent);
    font-weight: 800;
}

/* --- Mobile Access Box in Settings --- */
.mobile-access-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-input);
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-top: 0.75rem;
}

/* --- Mobile Bottom Navigation --- */
.mobile-bottom-nav {
    display: none;
}

/* --- Responsive Media Queries --- */
@media (max-width: 900px) {
    .sidebar {
        display: none;
    }

    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 62px;
        background: #0f172a;
        border-top: 1px solid var(--border);
        z-index: 150;
        justify-content: space-around;
        align-items: center;
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.4);
    }

    .m-nav-btn {
        background: transparent;
        border: none;
        color: var(--text-muted);
        font-size: 0.68rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3px;
        cursor: pointer;
        flex: 1;
        height: 100%;
        justify-content: center;
        transition: all 0.2s ease;
    }

    .m-nav-icon {
        font-size: 1.2rem;
    }

    .m-nav-btn.active {
        color: var(--accent);
        font-weight: 700;
    }

    .content-panel {
        padding: 1.25rem 1rem 5.5rem 1rem;
    }

    .top-nav {
        padding: 0.75rem 1rem;
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .profile-section {
        order: 3;
        width: 100%;
        overflow-x: auto;
        justify-content: flex-start;
    }

    .heatmap-details-grid {
        grid-template-columns: 1fr;
    }

    .stats-row {
        grid-template-columns: 1fr 1fr;
    }

    .modal {
        width: 92vw;
        max-width: 440px;
        padding: 1.25rem;
    }
}

@media (max-width: 600px) {
    .brand-text h1 {
        font-size: 1.15rem;
    }

    .stat-pill {
        display: none;
    }

    .pane-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .pane-header button {
        width: 100%;
    }

    .table-controls {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .search-input {
        min-width: 100%;
    }
}

/* --- Admin Badge & Active Profile Header --- */
.badge-admin {
    background-color: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.4);
    font-size: 0.6rem;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 12px;
}

.active-user-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
}

.admin-switcher-container {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0 0.5rem;
    border-left: 1px solid var(--border);
}

.admin-user-select {
    padding: 0.25rem 0.6rem;
    font-size: 0.8rem;
    font-weight: 600;
    background: var(--bg-card);
    border: 1px solid var(--border-highlight);
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
}

.switch-profile-btn {
    font-size: 0.78rem;
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    white-space: nowrap;
}

/* --- Who's Listening? Profile Chooser Modal --- */
.profile-chooser-modal {
    max-width: 540px;
    width: 90vw;
    text-align: center;
    padding: 2.25rem 2rem;
    background: #0f1523;
    border: 1px solid rgba(99, 102, 241, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.profile-chooser-header h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
    background: linear-gradient(135deg, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.profile-chooser-header .subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.profile-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.profile-chooser-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    padding: 1.25rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    width: 125px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.profile-chooser-card:hover {
    transform: translateY(-4px) scale(1.03);
    border-color: var(--accent);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.25);
}

.profile-chooser-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 800;
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.profile-chooser-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.profile-chooser-pin-tag {
    font-size: 0.65rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 3px;
}

.pin-entry-container {
    margin: 1.25rem 0;
    padding: 1.25rem;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius);
}

.profile-chooser-footer {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

/* --- Blocked Artists Styling --- */
.blocked-artists-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.blocked-artist-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.85rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 20px;
    font-size: 0.82rem;
    color: #fca5a5;
    font-weight: 600;
}

.unblock-btn {
    background: transparent;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0 2px;
    display: flex;
    align-items: center;
}

.unblock-btn:hover {
    color: #ffffff;
}

/* --- Utility Buttons --- */
.btn-danger-outline {
    background: transparent;
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #f87171;
}

.btn-danger-outline:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: #ef4444;
    color: #ffffff;
}

.btn-xs {
    padding: 0.2rem 0.5rem;
    font-size: 0.72rem;
    border-radius: 6px;
}

/* --- Source & Origin Badges --- */
.source-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    white-space: nowrap;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.source-spotify {
    background: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.source-radar {
    background: rgba(168, 85, 247, 0.15);
    color: #d8b4fe;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.source-album {
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.source-other {
    background: rgba(148, 163, 184, 0.1);
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, 0.2);
}
