/* ════════════════════════════════════════════════════════════
   SOUND CHECK — Artist Rating, Tracking & Discovery
   ════════════════════════════════════════════════════════════ */

/* ─── Layout ─────────────────────────────────────────────── */
.sc-wrap {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    padding-bottom: 60px;
}

.sc-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 10px;
}

.sc-eyebrow {
    font-family: 'Space Mono', monospace;
    font-size: 0.6rem;
    color: rgba(240, 208, 64, 0.45);
    text-transform: uppercase;
    letter-spacing: 5px;
}

/* ─── Section Tabs ───────────────────────────────────────── */
.sc-tabs {
    display: flex;
    gap: 2px;
    background: #111;
    border-radius: 10px;
    padding: 3px;
    border: 1px solid #222;
    overflow-x: auto;
}

.sc-tab {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: transparent;
    color: #555;
    border: none;
    padding: 10px 18px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
    white-space: nowrap;
    position: relative;
}

.sc-tab:hover { color: #888; }

.sc-tab.active {
    background: rgba(240, 208, 64, 0.08);
    color: var(--accent);
    box-shadow: 0 0 12px rgba(240, 208, 64, 0.06);
}

.sc-tab .sc-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Mono', monospace;
    font-size: 0.55rem;
    font-weight: 700;
    background: rgba(240, 208, 64, 0.15);
    color: var(--accent);
    border-radius: 20px;
    padding: 1px 7px;
    margin-left: 6px;
    min-width: 16px;
    line-height: 1.4;
}

/* ─── Panels ─────────────────────────────────────────────── */
.sc-panel { display: none; }
.sc-panel.active { display: block; animation: sc-fadeIn 0.25s ease; }

@keyframes sc-fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.sc-section-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #666;
    margin: 32px 0 16px;
}

.sc-empty {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    color: #333;
    text-align: center;
    padding: 48px 20px;
    border: 1px dashed #222;
    border-radius: 12px;
}

/* ─── Tier Badges ────────────────────────────────────────── */
.tier-badge {
    display: inline-flex;
    align-items: center;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 3px 10px;
    border-radius: 4px;
    line-height: 1.3;
}

.tier-must-see {
    background: rgba(240, 208, 64, 0.15);
    color: #f0d040;
    border: 1px solid rgba(240, 208, 64, 0.3);
    text-shadow: 0 0 12px rgba(240, 208, 64, 0.4);
}

.tier-solid {
    background: rgba(3, 218, 198, 0.12);
    color: #03dac6;
    border: 1px solid rgba(3, 218, 198, 0.25);
}

.tier-so-so {
    background: rgba(100, 140, 180, 0.1);
    color: #648cb4;
    border: 1px solid rgba(100, 140, 180, 0.2);
}

.tier-skip {
    background: rgba(80, 80, 80, 0.15);
    color: #555;
    border: 1px solid rgba(80, 80, 80, 0.25);
}

/* ─── Rating Cards (Rate These queue) ────────────────────── */
.rate-card {
    background: var(--card);
    border: 1px solid #222;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 12px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.rate-card:hover {
    border-color: #333;
}

.rate-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 12px;
}

.rate-card-event {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 1px;
}

.rate-card-meta {
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    color: #555;
    margin-top: 4px;
    letter-spacing: 1px;
}

.rate-card-artists {
    font-family: 'Barlow', sans-serif;
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 16px;
}
.rate-card-artists strong {
    color: var(--text);
    font-weight: 600;
}

/* Tier selector buttons */
.tier-selector {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
}

.tier-btn {
    flex: 1;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 10px 8px;
    border-radius: 8px;
    border: 1px solid #222;
    background: transparent;
    color: #444;
    cursor: pointer;
    transition: all 0.2s;
}

.tier-btn:hover { border-color: #444; color: #888; }

.tier-btn.selected.tier-must-see-btn {
    background: rgba(240, 208, 64, 0.12);
    border-color: rgba(240, 208, 64, 0.4);
    color: #f0d040;
    box-shadow: 0 0 16px rgba(240, 208, 64, 0.1);
}

.tier-btn.selected.tier-solid-btn {
    background: rgba(3, 218, 198, 0.1);
    border-color: rgba(3, 218, 198, 0.35);
    color: #03dac6;
}

.tier-btn.selected.tier-so-so-btn {
    background: rgba(100, 140, 180, 0.08);
    border-color: rgba(100, 140, 180, 0.3);
    color: #648cb4;
}

.tier-btn.selected.tier-skip-btn {
    background: rgba(80, 80, 80, 0.12);
    border-color: rgba(80, 80, 80, 0.35);
    color: #666;
}

.rate-note-input {
    width: 100%;
    background: #0e0e0e;
    border: 1px solid #1a1a1a;
    border-radius: 8px;
    color: var(--text);
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    padding: 10px 14px;
    box-sizing: border-box;
    transition: border-color 0.2s;
    margin-bottom: 12px;
}
.rate-note-input:focus {
    outline: none;
    border-color: #333;
}
.rate-note-input::placeholder { color: #222; }

.rate-submit-btn {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    background: rgba(240, 208, 64, 0.1);
    color: var(--accent);
    border: 1px solid rgba(240, 208, 64, 0.25);
    padding: 10px 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}
.rate-submit-btn:hover {
    background: rgba(240, 208, 64, 0.18);
    border-color: rgba(240, 208, 64, 0.4);
    box-shadow: 0 0 12px rgba(240, 208, 64, 0.1);
}
.rate-submit-btn:disabled { opacity: 0.3; cursor: default; }

/* ─── Festival Checklist ─────────────────────────────── */
.fest-checklist {
    margin-bottom: 12px;
}

.fest-check-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s;
    font-family: 'Barlow', sans-serif;
    font-size: 0.85rem;
    color: #999;
}
.fest-check-row:hover { background: rgba(255,255,255,0.02); }
.fest-check-row.fest-rated { opacity: 0.4; cursor: default; }

.fest-check-row input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 1px solid #333;
    border-radius: 3px;
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    transition: all 0.15s;
}
.fest-check-row input[type="checkbox"]:checked {
    background: rgba(3, 218, 198, 0.15);
    border-color: rgba(3, 218, 198, 0.5);
}
.fest-check-row input[type="checkbox"]:checked::after {
    content: '\2713';
    position: absolute;
    top: -1px;
    left: 2px;
    font-size: 12px;
    color: #03dac6;
}
.fest-check-row input[type="checkbox"]:disabled {
    opacity: 0.4;
    cursor: default;
}

/* Festival lineup management */
.fest-lineup-wrap {
    margin-top: 4px;
}

.fest-lineup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.fest-lineup-count {
    font-family: 'Space Mono', monospace;
    font-size: 0.6rem;
    color: #444;
    letter-spacing: 1px;
}

.fest-role-label {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #333;
    margin: 10px 0 4px;
    padding-left: 2px;
}

.fest-add-row {
    display: flex;
    gap: 6px;
    margin-top: 10px;
    align-items: center;
}

.fest-add-input {
    flex: 1;
    background: var(--card);
    border: 1px solid #1a1a1a;
    border-radius: 6px;
    color: var(--text);
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    padding: 7px 10px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}
.fest-add-input:focus { outline: none; border-color: #333; }
.fest-add-input::placeholder { color: #222; }

.fest-add-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid rgba(3, 218, 198, 0.25);
    background: rgba(3, 218, 198, 0.06);
    color: #03dac6;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.fest-add-btn:hover {
    background: rgba(3, 218, 198, 0.12);
    border-color: rgba(3, 218, 198, 0.4);
}

.fest-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.fest-fetch-btn {
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    color: #555;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #222;
    border-radius: 8px;
    padding: 10px 16px;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.5px;
}
.fest-fetch-btn:hover {
    color: var(--accent);
    border-color: rgba(240, 208, 64, 0.3);
    background: rgba(240, 208, 64, 0.05);
}
.fest-fetch-btn:disabled {
    opacity: 0.4;
    cursor: default;
}

/* ─── Artist Roster ───────────────────────────────────���──── */
.roster-header-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 4px;
}

.roster-count {
    font-family: 'Space Mono', monospace;
    font-size: 0.6rem;
    color: #444;
    letter-spacing: 1px;
}

.roster-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.roster-search {
    flex: 1;
    min-width: 180px;
    background: var(--card);
    border: 1px solid #222;
    border-radius: 8px;
    color: var(--text);
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    padding: 10px 14px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}
.roster-search:focus { outline: none; border-color: #444; }
.roster-search::placeholder { color: #2a2a2a; }

.roster-filter {
    background: var(--card);
    border: 1px solid #222;
    border-radius: 8px;
    color: #888;
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    padding: 8px 12px;
    cursor: pointer;
}

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

/* Artist card */
.artist-card {
    background: var(--card);
    border: 1px solid #1e1e1e;
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.artist-card:hover {
    border-color: #333;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    transform: translateY(-1px);
}

.artist-card-img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: #111;
    border: 1px solid #222;
}

.artist-card-img-wrap {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    position: relative;
}

.artist-card-img-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #333;
    background: #111;
    border: 1px solid #222;
}

.enrich-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-left: 6px;
    vertical-align: middle;
    position: relative;
    top: -1px;
}

.enrich-dot.enriched {
    background: #03dac6;
    box-shadow: 0 0 6px rgba(3, 218, 198, 0.4);
}

.enrich-dot.unenriched {
    background: #333;
}

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

.artist-card-name {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 1px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.artist-card-detail {
    font-family: 'Space Mono', monospace;
    font-size: 0.6rem;
    color: #444;
    letter-spacing: 1px;
}

.artist-card-badges {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    flex-wrap: wrap;
}

/* ─── Artist Profile (expanded) ──────────────────────────── */
.profile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: sc-fadeIn 0.15s ease;
}
.profile-overlay.hidden { display: none; }

.profile-card {
    background: var(--card);
    border: 1px solid #2a2a2a;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 28px;
    position: relative;
}

.profile-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: #555;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}
.profile-close:hover { color: var(--text); }

.profile-header {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.profile-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #222;
    flex-shrink: 0;
    background: #111;
}

.profile-name {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.6rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text);
    margin: 0;
    line-height: 1.1;
}

.profile-bio {
    font-family: 'Barlow', sans-serif;
    font-size: 0.85rem;
    color: #888;
    margin-top: 8px;
    line-height: 1.5;
}

.profile-meta-row {
    display: flex;
    gap: 16px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.profile-meta-item {
    font-family: 'Space Mono', monospace;
    font-size: 0.6rem;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.profile-meta-item span { color: #999; }

.profile-section-label {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #444;
    margin: 24px 0 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #1a1a1a;
}

/* Genre tags in profile */
.profile-genre-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 12px 0 4px;
}

.profile-genre-tag {
    font-family: 'Space Mono', monospace;
    font-size: 0.6rem;
    background: rgba(240, 208, 64, 0.06);
    border: 1px solid rgba(240, 208, 64, 0.15);
    border-radius: 20px;
    padding: 3px 10px;
    color: rgba(240, 208, 64, 0.7);
    letter-spacing: 0.5px;
}

/* Links row (Spotify, enrich controls) */
.profile-links-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0 4px;
    flex-wrap: wrap;
}

.profile-link {
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    color: #666;
    text-decoration: none;
    padding: 4px 10px;
    border: 1px solid #222;
    border-radius: 4px;
    transition: all 0.2s;
}
.profile-link:hover {
    color: var(--text);
    border-color: #444;
}

.profile-link-spotify {
    color: #1DB954;
    border-color: rgba(29, 185, 84, 0.25);
}
.profile-link-spotify:hover {
    color: #1DB954;
    border-color: rgba(29, 185, 84, 0.5);
    background: rgba(29, 185, 84, 0.06);
}

/* Enrichment status + button */
.profile-enrich-status {
    font-family: 'Space Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
}

.profile-enrich-status.enriched {
    color: #03dac6;
    background: rgba(3, 218, 198, 0.08);
    border: 1px solid rgba(3, 218, 198, 0.2);
}

.profile-enrich-btn {
    font-family: 'Space Mono', monospace;
    font-size: 0.6rem;
    color: #555;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #222;
    border-radius: 4px;
    padding: 4px 10px;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.5px;
}
.profile-enrich-btn:hover {
    color: var(--accent);
    border-color: rgba(240, 208, 64, 0.3);
    background: rgba(240, 208, 64, 0.05);
}
.profile-enrich-btn:disabled {
    opacity: 0.4;
    cursor: default;
}

/* Performance history (restructured) */
.profile-history-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 4px 12px;
    padding: 10px 0;
    border-bottom: 1px solid #111;
    font-family: 'Barlow', sans-serif;
    font-size: 0.82rem;
    color: #999;
}

.profile-history-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.profile-history-event {
    color: var(--text);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-history-venue {
    font-size: 0.72rem;
    color: #555;
}

.profile-history-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.profile-history-date {
    font-family: 'Space Mono', monospace;
    font-size: 0.6rem;
    color: #444;
    letter-spacing: 1px;
}

.profile-history-note {
    width: 100%;
    font-family: 'Space Mono', monospace;
    font-size: 0.6rem;
    font-style: italic;
    color: #555;
    padding: 4px 0 0 12px;
    border-left: 2px solid rgba(240, 208, 64, 0.15);
    margin-top: 2px;
}

.profile-similar-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.profile-similar-tag {
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid #1e1e1e;
    border-radius: 4px;
    padding: 3px 8px;
    color: #666;
}

/* ─── Aptitude Dashboard ─────────────────────────────────── */
.apt-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    align-items: center;
}

.apt-event-select {
    flex: 1;
    background: var(--card);
    border: 1px solid #222;
    border-radius: 8px;
    color: var(--text);
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    padding: 10px 14px;
    cursor: pointer;
}

.apt-score-hero {
    text-align: center;
    padding: 32px 20px;
    margin-bottom: 24px;
}

.apt-score-number {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: 2px;
    line-height: 1;
    background: linear-gradient(135deg, var(--accent) 0%, #fff 50%, var(--sameday) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 24px rgba(240,208,64,0.25));
}

.apt-score-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.6rem;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 6px;
    margin-top: 6px;
}

.apt-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.apt-metric {
    background: var(--card);
    border: 1px solid #1e1e1e;
    border-radius: 10px;
    padding: 16px;
}

.apt-metric-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.55rem;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.apt-metric-value {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
}

.apt-metric-bar {
    height: 4px;
    background: #1a1a1a;
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}

.apt-metric-bar-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.6s ease;
}
.apt-metric-bar-fill.gold   { background: linear-gradient(90deg, #f0d040, #e6b800); }
.apt-metric-bar-fill.teal   { background: linear-gradient(90deg, #03dac6, #009688); }
.apt-metric-bar-fill.blue   { background: linear-gradient(90deg, #648cb4, #4a6d8c); }
.apt-metric-bar-fill.dim    { background: #444; }

.apt-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.apt-gems {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.apt-gem-tag {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(240, 208, 64, 0.08);
    border: 1px solid rgba(240, 208, 64, 0.2);
    color: #f0d040;
    padding: 4px 10px;
    border-radius: 4px;
}

/* Lineup source tag */
.apt-source-tag {
    display: inline-block;
    font-family: 'Space Mono', monospace;
    font-size: 0.55rem;
    color: #03dac6;
    background: rgba(3, 218, 198, 0.08);
    border: 1px solid rgba(3, 218, 198, 0.2);
    border-radius: 20px;
    padding: 2px 10px;
    margin-top: 10px;
    letter-spacing: 1px;
}

.apt-source-partial {
    color: #648cb4;
    background: rgba(100, 140, 180, 0.08);
    border-color: rgba(100, 140, 180, 0.2);
}

/* Tier breakdown row (chart + detail side by side) */
.apt-breakdown-row {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    align-items: flex-start;
}

.apt-breakdown-detail {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 8px;
}

.apt-tier-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.apt-tier-bar {
    flex: 1;
    height: 6px;
    background: #1a1a1a;
    border-radius: 3px;
    overflow: hidden;
}

.apt-tier-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease;
}
.apt-tier-bar-fill.tier-must-see-bg { background: #f0d040; }
.apt-tier-bar-fill.tier-solid-bg    { background: #03dac6; }
.apt-tier-bar-fill.tier-so-so-bg    { background: #648cb4; }
.apt-tier-bar-fill.tier-skip-bg     { background: #555; }
.apt-tier-bar-fill.dim              { background: #333; }

.apt-tier-count {
    font-family: 'Space Mono', monospace;
    font-size: 0.6rem;
    color: #555;
    min-width: 20px;
    text-align: right;
}

/* Matt's Take section */
.apt-matt-section {
    margin-bottom: 20px;
}

.apt-matt-row {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.apt-matt-stat {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.apt-matt-value {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text);
}

.apt-matt-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.55rem;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Risk factors */
.apt-risks {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
}

.apt-risk {
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    color: #888;
    padding: 8px 12px;
    background: rgba(255, 80, 80, 0.04);
    border: 1px solid rgba(255, 80, 80, 0.12);
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.apt-risk-icon {
    color: rgba(255, 120, 80, 0.7);
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* Weight breakdown (collapsible) */
.apt-weights-toggle {
    font-family: 'Space Mono', monospace;
    font-size: 0.6rem;
    color: #333;
    cursor: pointer;
    padding: 10px 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-top: 1px solid #1a1a1a;
    margin-top: 16px;
    transition: color 0.2s;
}
.apt-weights-toggle:hover { color: #666; }

.apt-weights-detail {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.apt-weights-detail.open {
    max-height: 300px;
}

.apt-weight-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    font-family: 'Space Mono', monospace;
    font-size: 0.6rem;
}

.apt-weight-label {
    color: #555;
    min-width: 100px;
}

.apt-weight-score {
    color: #333;
    flex: 1;
    text-align: right;
}

.apt-weight-result {
    color: var(--accent);
    min-width: 40px;
    text-align: right;
    font-weight: 700;
}

/* ─── Stats Dashboard ────────────────────────────────────── */
.stats-hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--card);
    border: 1px solid #1e1e1e;
    border-radius: 10px;
    padding: 16px;
    text-align: center;
}

.stat-value {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    color: var(--text);
    line-height: 1;
}

.stat-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.55rem;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 6px;
}

.stat-card-accent {
    border-color: rgba(240, 208, 64, 0.15);
    background: linear-gradient(135deg, var(--card) 0%, rgba(240, 208, 64, 0.03) 100%);
}
.stat-card-accent .stat-value {
    font-size: 1.2rem;
    letter-spacing: 1px;
    color: var(--accent);
}

/* Secondary stats row */
.stats-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.stats-sec-item {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.stats-sec-value {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stats-sec-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.55rem;
    color: #444;
    letter-spacing: 1px;
}

.stats-sec-divider {
    width: 1px;
    height: 16px;
    background: #222;
}

/* Charts side by side */
.stats-charts-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

/* Recent ratings feed */
.stats-feed {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 24px;
}

.stats-feed-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: var(--card);
    border: 1px solid #1a1a1a;
    border-radius: 8px;
    transition: border-color 0.15s;
}
.stats-feed-item:hover { border-color: #2a2a2a; }

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

.stats-feed-artist {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stats-feed-event {
    font-family: 'Space Mono', monospace;
    font-size: 0.55rem;
    color: #444;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stats-feed-date {
    font-family: 'Space Mono', monospace;
    font-size: 0.55rem;
    color: #333;
    letter-spacing: 1px;
    flex-shrink: 0;
}

/* Must-See artist gallery */
.stats-must-see-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 8px;
    margin-bottom: 24px;
}

.stats-must-see-card {
    background: var(--card);
    border: 1px solid rgba(240, 208, 64, 0.1);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    transition: all 0.2s;
}
.stats-must-see-card:hover {
    border-color: rgba(240, 208, 64, 0.25);
    box-shadow: 0 0 12px rgba(240, 208, 64, 0.05);
}

.stats-must-see-name {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #f0d040;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.stats-must-see-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: 'Space Mono', monospace;
    font-size: 0.55rem;
    color: #444;
}

.chart-wrap {
    background: var(--card);
    border: 1px solid #1e1e1e;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

.chart-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #555;
    margin-bottom: 16px;
}

/* Canvas charts */
.sc-canvas {
    width: 100%;
    max-width: 100%;
}

/* ─── Suggestion Cards (Swipe Triage) ────────────────────── */
.swipe-container {
    position: relative;
    min-height: 300px;
}

.swipe-card {
    background: var(--card);
    border: 1px solid #2a2a2a;
    border-radius: 16px;
    padding: 28px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.swipe-card-event {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.swipe-card-artist {
    font-family: 'Barlow', sans-serif;
    font-size: 1rem;
    color: #999;
    margin-bottom: 16px;
}

.swipe-card-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 20px;
}

.swipe-detail {
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.swipe-detail span { color: #999; display: block; margin-top: 2px; text-transform: none; }

.swipe-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.swipe-btn {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 12px 20px;
    border-radius: 8px;
    border: 1px solid;
    cursor: pointer;
    transition: all 0.2s;
    flex: 1;
    max-width: 160px;
}

.swipe-btn-add {
    background: rgba(3, 218, 198, 0.08);
    border-color: rgba(3, 218, 198, 0.3);
    color: #03dac6;
}
.swipe-btn-add:hover { background: rgba(3, 218, 198, 0.15); }

.swipe-btn-dismiss {
    background: rgba(80, 80, 80, 0.08);
    border-color: #333;
    color: #666;
}
.swipe-btn-dismiss:hover { background: rgba(80,80,80,0.15); }

.swipe-btn-save {
    background: rgba(240, 208, 64, 0.06);
    border-color: rgba(240, 208, 64, 0.2);
    color: rgba(240, 208, 64, 0.7);
}
.swipe-btn-save:hover { background: rgba(240, 208, 64, 0.12); }

.swipe-counter {
    font-family: 'Space Mono', monospace;
    font-size: 0.6rem;
    color: #333;
    text-align: center;
    margin-top: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ─── Polish — Animations & Micro-interactions ──────────── */

/* Rating card success: slide out + fade */
@keyframes rate-success {
    0%   { opacity: 1; transform: translateX(0); max-height: 300px; margin-bottom: 12px; padding: 20px; }
    60%  { opacity: 0; transform: translateX(40px); max-height: 300px; margin-bottom: 12px; padding: 20px; }
    100% { opacity: 0; transform: translateX(40px); max-height: 0; margin-bottom: 0; padding: 0 20px; }
}
.rate-card.rate-success {
    animation: rate-success 0.5s ease forwards;
    overflow: hidden;
}

/* Suggestion card entrance: slide in from right */
@keyframes swipe-enter {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}
.swipe-card { animation: swipe-enter 0.3s ease; }

/* Aptitude hero score glow pulse */
@keyframes apt-glow {
    0%, 100% { filter: drop-shadow(0 0 24px rgba(240,208,64,0.25)); }
    50%      { filter: drop-shadow(0 0 36px rgba(240,208,64,0.4)); }
}
.apt-score-number {
    animation: apt-glow 3s ease-in-out infinite;
}

/* Stats cards: staggered fade-in */
@keyframes stat-enter {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
.stat-card {
    animation: stat-enter 0.35s ease backwards;
}
.stat-card:nth-child(1) { animation-delay: 0s; }
.stat-card:nth-child(2) { animation-delay: 0.06s; }
.stat-card:nth-child(3) { animation-delay: 0.12s; }
.stat-card:nth-child(4) { animation-delay: 0.18s; }
.stat-card:nth-child(5) { animation-delay: 0.24s; }

/* Profile overlay: scale entrance */
@keyframes profile-enter {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}
.profile-card {
    animation: profile-enter 0.25s ease;
}

/* Tier button: pop on selection */
@keyframes tier-pop {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.04); }
    100% { transform: scale(1); }
}
.tier-btn.selected {
    animation: tier-pop 0.2s ease;
}

/* Focus rings for accessibility */
.sc-tab:focus-visible,
.tier-btn:focus-visible,
.swipe-btn:focus-visible,
.rate-submit-btn:focus-visible,
.fest-fetch-btn:focus-visible,
.suggest-sweep-btn:focus-visible,
.suggest-saved-btn:focus-visible,
.roster-search:focus-visible,
.roster-filter:focus-visible,
.apt-event-select:focus-visible {
    outline: 2px solid rgba(240, 208, 64, 0.5);
    outline-offset: 2px;
}

/* Performance: contain heavy layout sections */
.roster-grid { contain: layout style; }
.stats-hero { contain: layout style; }
.saved-list { contain: layout style; }

/* Performance: will-change on animated elements */
.swipe-card { will-change: transform, opacity; }
.apt-score-number { will-change: filter; }

/* Touch-friendly: larger hit targets on mobile */
@media (hover: none) and (pointer: coarse) {
    .tier-btn { padding: 14px 8px; min-height: 48px; }
    .swipe-btn { padding: 14px 20px; min-height: 48px; }
    .fest-check-row { padding: 10px; min-height: 44px; }
    .fest-check-row input[type="checkbox"] { width: 20px; height: 20px; }
    .sc-tab { padding: 12px 16px; }
    .suggest-sweep-btn, .suggest-saved-btn { padding: 10px 16px; min-height: 44px; }
    .artist-card { padding: 18px; }
    .profile-close { font-size: 1.6rem; padding: 8px; }
}

/* Smooth scrolling for the page */
html { scroll-behavior: smooth; }

/* Reduced motion: respect user preference */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ─── Skeleton loading ───────────────────────────────────── */
.sc-skeleton {
    background: linear-gradient(90deg, #111 25%, #191919 50%, #111 75%);
    background-size: 200% 100%;
    animation: sc-shimmer 1.5s ease infinite;
    border-radius: 8px;
    height: 80px;
    margin-bottom: 12px;
}

@keyframes sc-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ─── Matt score badge ───────────────────────────────────── */
.matt-score {
    font-family: 'Space Mono', monospace;
    font-size: 0.6rem;
    color: #666;
    background: rgba(255,255,255,0.03);
    border: 1px solid #1a1a1a;
    border-radius: 4px;
    padding: 2px 6px;
}

/* ─── Stats year toggle ──────────────────────────────────── */
.stats-toggle {
    display: flex;
    gap: 2px;
    background: #111;
    border-radius: 6px;
    padding: 2px;
    border: 1px solid #1e1e1e;
    margin-bottom: 20px;
    width: fit-content;
}

.stats-toggle-btn {
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    background: transparent;
    color: #444;
    border: none;
    padding: 6px 14px;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.2s;
}
.stats-toggle-btn.active {
    background: rgba(240, 208, 64, 0.08);
    color: var(--accent);
}

/* ─── Responsive — Medium ────────────────────────────────── */
@media (max-width: 840px) {
    .apt-grid-3 { grid-template-columns: 1fr 1fr; }
    .stats-charts-row { flex-direction: column; }
    .swipe-card-details { grid-template-columns: 1fr; }
    .suggest-header { flex-direction: column; align-items: flex-start; }
}

/* ─── Responsive — Small ─────────────────────────────────── */
@media (max-width: 600px) {
    .sc-tabs { flex-wrap: nowrap; overflow-x: auto; }
    .sc-tab { font-size: 0.7rem; padding: 8px 12px; letter-spacing: 1px; }
    .roster-grid { grid-template-columns: 1fr; }
    .apt-grid { grid-template-columns: 1fr; }
    .apt-grid-3 { grid-template-columns: 1fr 1fr; }
    .apt-breakdown-row { flex-direction: column; }
    .apt-matt-row { gap: 16px; }
    .stats-hero { grid-template-columns: repeat(2, 1fr); }
    .stats-charts-row { flex-direction: column; }
    .stats-secondary { gap: 12px; }
    .stats-must-see-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-feed-date { display: none; }
    .tier-selector { flex-wrap: wrap; }
    .tier-btn { flex: 1 1 45%; }
    .profile-card { padding: 20px; }
    .profile-header { flex-direction: column; align-items: center; text-align: center; }
    .profile-meta-row { justify-content: center; }
    .profile-genre-tags { justify-content: center; }
    .profile-links-row { justify-content: center; }
    .profile-history-main { min-width: 100%; }
    .profile-history-right { width: 100%; justify-content: flex-start; }
    .swipe-actions { flex-direction: column; align-items: stretch; }
    .swipe-btn { max-width: 100%; }
    .roster-header-row { flex-direction: column; gap: 4px; }
    .saved-card { flex-direction: column; }
    .saved-card-actions { flex-direction: row; justify-content: stretch; }
    .saved-card-actions .swipe-btn { flex: 1; }
}

/* ════════════════════════════════════════════════════════════
   SUGGEST — Header, controls, sweep, saved list
   ════════════════════════════════════════════════════════════ */

.suggest-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}
.suggest-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}
.suggest-sweep-btn, .suggest-saved-btn {
    background: transparent;
    border: 1px solid #333;
    color: #aaa;
    font-family: 'Space Mono', monospace;
    font-size: 0.72rem;
    padding: 6px 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.5px;
}
.suggest-sweep-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 12px rgba(240, 208, 64, 0.15);
}
.suggest-sweep-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.suggest-saved-btn:hover, .suggest-saved-btn.active {
    border-color: var(--sameday);
    color: var(--sameday);
}

/* Swipe insight badges */
.swipe-insights {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #1a1a1a;
}
.swipe-insight {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    color: #aaa;
    display: flex;
    align-items: center;
    gap: 6px;
}
.swipe-insight-label {
    color: #555;
    text-transform: uppercase;
    font-size: 0.6rem;
    letter-spacing: 0.5px;
}
.swipe-insight-matt { color: var(--sameday); }
.swipe-discovered {
    font-family: 'Space Mono', monospace;
    font-size: 0.6rem;
    color: #333;
    margin-top: 8px;
    letter-spacing: 0.5px;
}

/* Swipe exit animations */
@keyframes swipe-exit-left {
    from { opacity: 1; transform: translateX(0) rotate(0); }
    to   { opacity: 0; transform: translateX(-120px) rotate(-8deg); }
}
@keyframes swipe-exit-right {
    from { opacity: 1; transform: translateX(0) rotate(0); }
    to   { opacity: 0; transform: translateX(120px) rotate(8deg); }
}
@keyframes swipe-exit-up {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to   { opacity: 0; transform: translateY(-80px) scale(0.92); }
}
.swipe-exit-left  { animation: swipe-exit-left 0.28s ease forwards; }
.swipe-exit-right { animation: swipe-exit-right 0.28s ease forwards; }
.swipe-exit-up    { animation: swipe-exit-up 0.28s ease forwards; }

/* Sweep loading state */
.sweep-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 20px;
}
.sweep-spinner {
    width: 36px;
    height: 36px;
    border: 2px solid #222;
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
.sweep-loading-text {
    font-family: 'Space Mono', monospace;
    font-size: 0.72rem;
    color: #555;
    letter-spacing: 0.5px;
}

/* Sweep result flash */
.sweep-result {
    text-align: center;
    padding: 50px 20px;
}
.sweep-result-count {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}
.sweep-result-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.72rem;
    color: #666;
    margin-top: 8px;
    letter-spacing: 0.5px;
}

/* Saved list view */
.saved-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.saved-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #111;
    border: 1px solid #1a1a1a;
    border-radius: 6px;
    padding: 14px 16px;
    gap: 16px;
    transition: border-color 0.2s ease;
}
.saved-card:hover {
    border-color: #2a2a2a;
}
.saved-card-main {
    flex: 1;
    min-width: 0;
}
.saved-card-event {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #e0e0e0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.saved-card-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 4px;
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    color: #555;
}
.saved-card-reason {
    font-family: 'Space Mono', monospace;
    font-size: 0.6rem;
    color: #444;
    margin-top: 4px;
    font-style: italic;
}
.saved-card-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}
.saved-card-actions .swipe-btn {
    padding: 5px 12px;
    font-size: 0.65rem;
}
