:root {
            --primary: #9b000a;
            --secondary: #730000;
            --accent: #ffbd00;
            --bg: #000000;
            --text: #9bae98;
            --text-light: #ffffff;
        }
        * { box-sizing: border-box; margin: 0; padding: 0; }

        body {
            font-family: 'Anta', system-ui, sans-serif;
            background: var(--bg);
            background-image:
                repeating-linear-gradient(0deg, rgba(155,0,10,0.05) 0px, rgba(155,0,10,0.05) 1px, transparent 1px, transparent 3px),
                radial-gradient(circle at 15% 10%, rgba(155,0,10,0.18), transparent 45%),
                radial-gradient(circle at 85% 90%, rgba(255,189,0,0.16), transparent 45%);
            color: var(--text);
            display: flex;
            justify-content: center;
            padding: 40px 20px;
            min-height: 100vh;
        }

        .page-shell {
            display: flex;
            flex-direction: column;
            align-items: center;
            width: 100%;
            position: relative;
            z-index: 1;
        }

        .container {
            max-width: 800px;
            width: 100%;
            background: #050505;
            border: 3px solid var(--primary);
            border-radius: 18px;
            box-shadow:
                0 0 25px rgba(155,0,10,0.55),
                0 0 60px rgba(255,189,0,0.18),
                inset 0 0 30px rgba(255,189,0,0.05);
            padding: 40px;
            position: relative;
            overflow: hidden;
        }
        .container::before {
            content: "";
            position: absolute;
            top: 0; left: 0; right: 0;
            height: 6px;
            background: repeating-linear-gradient(90deg, var(--primary) 0 20px, var(--text) 20px 40px);
        }

        h1 {
            font-size: 2.3rem;
            font-weight: 400;
            color: var(--primary);
            text-shadow: 0 0 8px var(--primary), 0 0 24px rgba(155,0,10,0.6);
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            gap: 10px;
            letter-spacing: 1px;
            text-transform: uppercase;
        }
        h1 small {
            font-size: 0.8rem;
            font-weight: 400;
            color: var(--text);
            text-shadow: 0 0 6px var(--text);
            margin-left: 8px;
            letter-spacing: 2px;
        }
        .subhead {
            color: var(--text);
            opacity: 0.85;
            margin-bottom: 30px;
            border-left: 4px solid var(--text);
            padding-left: 16px;
            text-shadow: 0 0 4px rgba(255,189,0,0.5);
            font-size: 0.9rem;
        }

        .search-form {
            display: flex;
            gap: 12px;
            margin-bottom: 30px;
        }
        .search-form input {
            flex: 1;
            padding: 14px 20px;
            background: #000;
            border: 2px solid var(--text);
            border-radius: 50px;
            font-size: 1rem;
            font-family: 'Anta', sans-serif;
            color: var(--text);
            transition: 0.2s;
            outline: none;
        }
        .search-form input::placeholder { color: rgba(255,189,0,0.4); }
        .search-form input:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 4px rgba(255, 16, 239, 0.2), 0 0 15px rgba(155,0,10,0.5);
        }
        .search-form button {
            padding: 14px 32px;
            background: var(--primary);
            color: #000;
            border: none;
            border-radius: 50px;
            font-weight: 400;
            font-family: 'Anta', sans-serif;
            font-size: 1rem;
            text-transform: uppercase;
            letter-spacing: 1px;
            cursor: pointer;
            transition: 0.2s;
            white-space: nowrap;
            box-shadow: 0 0 12px rgba(155,0,10,0.6);
        }
        .search-form button:hover {
            background: var(--text);
            box-shadow: 0 0 18px rgba(255,189,0,0.8);
            transform: scale(1.02);
        }
        .search-form button:active { transform: scale(0.97); }

        .result-box { margin-top: 20px; }
        .artist-card {
            background: #0a0a0a;
            border: 2px solid var(--text);
            border-radius: 16px;
            padding: 20px 24px;
            margin-bottom: 24px;
            box-shadow: 0 0 16px rgba(255,189,0,0.25);
        }
        .artist-card h2 {
            font-size: 1.6rem;
            font-weight: 400;
            color: var(--primary);
            text-shadow: 0 0 8px rgba(155,0,10,0.7);
            text-transform: uppercase;
            letter-spacing: 1px;
        }
        .artist-card .meta {
            color: var(--text);
            margin-top: 10px;
            font-size: 0.85rem;
        }
        .artist-card .meta span {
            background: #000;
            border: 1px solid var(--text);
            padding: 3px 12px;
            border-radius: 20px;
            margin-right: 8px;
            display: inline-block;
            margin-top: 4px;
        }

        .artist-card-inner {
            display: flex;
            gap: 18px;
            align-items: flex-start;
        }
        .artist-card-text { flex: 1; min-width: 0; }
        .artist-cover {
            width: 96px;
            height: 96px;
            border-radius: 10px;
            object-fit: cover;
            border: 2px solid var(--primary);
            box-shadow: 0 0 14px rgba(155,0,10,0.45);
            flex-shrink: 0;
        }
        .artist-cover-placeholder {
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2.4rem;
            background: #000;
            color: var(--text);
            opacity: 0.6;
        }

        .genre-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin-top: 10px;
        }
        .genre-tag {
            font-size: 0.7rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            background: linear-gradient(135deg, rgba(155,0,10,0.15), rgba(255,189,0,0.15));
            border: 1px solid rgba(255,189,0,0.5);
            color: var(--text);
            padding: 3px 11px;
            border-radius: 20px;
        }

        .related-section {
            margin-top: 32px;
            padding-top: 20px;
            border-top: 1px dashed rgba(155,0,10,0.35);
        }
        .related-heading {
            color: var(--primary);
            text-shadow: 0 0 6px rgba(155,0,10,0.6);
            text-transform: uppercase;
            letter-spacing: 1px;
            font-weight: 400;
            font-size: 1rem;
            margin-bottom: 14px;
        }
        .related-count {
            font-weight: 400;
            font-size: 0.85rem;
            color: var(--text);
            opacity: 0.8;
        }
        .related-list {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }
        .related-form { margin: 0; }
        .related-chip {
            font-family: 'Anta', sans-serif;
            background: #0a0a0a;
            border: 1px solid var(--text);
            border-radius: 14px;
            padding: 8px 16px;
            cursor: pointer;
            display: flex;
            flex-direction: column;
            gap: 2px;
            align-items: flex-start;
            transition: 0.15s;
        }
        .related-chip:hover {
            border-color: var(--primary);
            background: #120012;
            box-shadow: 0 0 12px rgba(155,0,10,0.35);
        }
        .related-name {
            color: #fff;
            font-size: 0.85rem;
        }
        .related-via {
            color: #6a8067;
            font-size: 0.65rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .collab-list {
            list-style: none;
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 12px;
            padding: 0;
        }
        .collab-item {
            background: #0a0a0a;
            border-radius: 12px;
            padding: 14px 18px;
            border: 1px solid rgba(155,0,10,0.4);
            border-left: 4px solid var(--primary);
            transition: 0.15s;
        }
        .collab-item:hover {
            background: #120012;
            border-left-color: var(--text);
            box-shadow: 0 0 14px rgba(155,0,10,0.4);
        }
        .collab-name {
            font-weight: 400;
            color: #fff;
            text-shadow: 0 0 4px rgba(255,255,255,0.4);
        }
        .collab-type {
            font-size: 0.75rem;
            color: var(--text);
            margin-top: 4px;
            text-transform: uppercase;
            opacity: 0.8;
        }
        .collab-relationship {
            font-size: 0.7rem;
            background: #000;
            border: 1px solid var(--primary);
            color: var(--primary);
            display: inline-block;
            padding: 2px 10px;
            border-radius: 20px;
            margin-top: 6px;
        }

        .deezer-track {
            margin-top: 12px;
            padding-top: 12px;
            border-top: 1px dashed rgba(255,189,0,0.3);
            display: flex;
            gap: 10px;
            align-items: flex-start;
        }
        .deezer-cover {
            width: 40px;
            height: 40px;
            border-radius: 6px;
            object-fit: cover;
            border: 1px solid var(--text);
            flex-shrink: 0;
        }
        .deezer-track-info {
            min-width: 0;
            flex: 1;
        }
        .deezer-track-title {
            font-size: 0.75rem;
            color: #fff;
            opacity: 0.9;
            margin-bottom: 6px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .player {
            display: flex;
            align-items: center;
            gap: 8px;
            margin: 2px 0;
        }
        .player-audio { display: none; }
        .player-btn {
            flex-shrink: 0;
            width: 26px;
            height: 26px;
            border-radius: 50%;
            border: 1.5px solid var(--primary);
            background: #000;
            color: var(--primary);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            padding: 0;
            transition: 0.15s;
            box-shadow: 0 0 6px rgba(155,0,10,0.4);
            position: relative;
        }
        .player-btn::before {
            content: '';
            position: absolute;
            top: 50%; left: 50%;
            width: 44px;
            height: 44px;
            transform: translate(-50%, -50%);
        }
        .player-btn:hover {
            background: var(--primary);
            color: #000;
            box-shadow: 0 0 12px rgba(155,0,10,0.7);
        }
        .player-btn .icon-play { margin-left: 1px; }
        .player-bar {
            flex: 1;
            height: 4px;
            border-radius: 4px;
            background: rgba(255,189,0,0.15);
            border: 1px solid rgba(255,189,0,0.3);
            cursor: pointer;
            overflow: hidden;
            position: relative;
        }
        .player-progress {
            height: 100%;
            width: 0%;
            background: linear-gradient(90deg, var(--text), var(--primary));
            box-shadow: 0 0 6px rgba(255,189,0,0.6);
            transition: width 0.1s linear;
        }
        .player-time {
            flex-shrink: 0;
            font-size: 0.65rem;
            color: var(--text);
            opacity: 0.8;
            min-width: 28px;
            text-align: right;
        }
        .deezer-link {
            display: inline-block;
            margin-top: 6px;
            font-size: 0.7rem;
            color: var(--text);
            text-decoration: none;
            text-shadow: 0 0 4px rgba(255,189,0,0.5);
        }
        .deezer-link:hover { color: var(--primary); text-shadow: 0 0 4px rgba(155,0,10,0.6); }

        .empty-state {
            text-align: center;
            padding: 40px 20px;
            color: var(--text);
            opacity: 0.85;
        }
        .empty-state .icon {
            font-size: 3rem;
            margin-bottom: 10px;
            filter: drop-shadow(0 0 10px rgba(255,189,0,0.6));
        }

        .disambig-intro {
            color: var(--text);
            text-shadow: 0 0 4px rgba(255,189,0,0.5);
            margin-bottom: 18px;
            line-height: 1.5;
        }
        .disambig-intro strong {
            color: var(--primary);
            text-shadow: 0 0 6px rgba(155,0,10,0.6);
        }
        .disambig-list {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        .disambig-form { margin: 0; }
        .disambig-item {
            width: 100%;
            text-align: left;
            background: #0a0a0a;
            border: 1px solid rgba(255,189,0,0.4);
            border-left: 4px solid var(--text);
            border-radius: 12px;
            padding: 12px 18px;
            cursor: pointer;
            font-family: 'Anta', sans-serif;
            color: #fff;
            display: flex;
            flex-direction: column;
            gap: 4px;
            transition: 0.15s;
        }
        .disambig-item:hover {
            background: #001a08;
            border-left-color: var(--primary);
            box-shadow: 0 0 14px rgba(255,189,0,0.35);
        }
        .disambig-name {
            font-size: 1rem;
            text-shadow: 0 0 4px rgba(255,255,255,0.3);
        }
        .disambig-meta {
            font-size: 0.75rem;
            color: var(--text);
            opacity: 0.75;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .error {
            background: #1a0010;
            border: 2px solid var(--primary);
            color: var(--primary);
            text-shadow: 0 0 4px rgba(155,0,10,0.6);
            padding: 16px 20px;
            border-radius: 12px;
            margin-bottom: 20px;
        }

        .footer {
            margin-top: 40px;
            font-size: 0.75rem;
            color: var(--text);
            opacity: 0.6;
            text-align: center;
            border-top: 1px solid rgba(255,189,0,0.3);
            padding-top: 20px;
            text-transform: uppercase;
            letter-spacing: 1px;
        }
        .footer a {
            color: var(--primary);
            text-decoration: none;
            text-shadow: 0 0 4px rgba(155,0,10,0.5);
        }

        .spinner {
            display: inline-block;
            width: 20px;
            height: 20px;
            border: 3px solid rgba(255, 16, 239, 0.2);
            border-top-color: var(--primary);
            border-radius: 50%;
            animation: spin 0.7s linear infinite;
            vertical-align: middle;
            margin-right: 10px;
            box-shadow: 0 0 10px rgba(155,0,10,0.5);
        }
        @keyframes spin { to { transform: rotate(360deg); } }
        .searching-msg {
            display: none;
            color: var(--text);
            margin-bottom: 16px;
            text-shadow: 0 0 4px rgba(255,189,0,0.5);
        }

        @media (max-width: 550px) {
            .search-form { flex-wrap: wrap; }
            .search-form button { width: 100%; }
        }

/* ============ Site Header / Nav ============ */
.site-header {
    max-width: 800px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4px 18px 4px;
    flex-wrap: wrap;
    gap: 10px;
}
.site-logo {
    font-family: 'Anta', sans-serif;
    font-size: 1.1rem;
    color: var(--primary);
    text-shadow: 0 0 8px rgba(155,0,10,0.7);
    text-decoration: none;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}
.site-logo:hover { text-shadow: 0 0 14px rgba(155,0,10,0.9); }
.site-nav {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}
.site-nav a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
    transition: 0.15s;
}
.site-nav a:hover {
    opacity: 1;
    text-shadow: 0 0 6px rgba(255,189,0,0.6);
}

/* ============ Site Footer (legal/info links) ============ */
.site-footer {
    max-width: 800px;
    width: 100%;
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid rgba(255,189,0,0.25);
    text-align: center;
}
.site-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-bottom: 14px;
}
.site-footer-links a {
    color: var(--text);
    opacity: 0.75;
    text-decoration: none;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.site-footer-links a:hover {
    opacity: 1;
    color: var(--primary);
    text-shadow: 0 0 5px rgba(155,0,10,0.5);
}

.site-footer-genres {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 25px;
    padding: 0 20px;
}
.genre-link {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--text);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    opacity: 0.85;
}
.genre-link:hover {
    background: rgba(255,255,255,0.08);
    border-color: var(--primary);
    opacity: 1;
    transform: translateY(-2px);
    text-shadow: 0 0 8px var(--primary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.site-footer-meta {
    font-size: 0.7rem;
    color: #6a8067;
    letter-spacing: 0.5px;
}
.site-footer-meta a { color: inherit; text-decoration: underline; }

/* ============ Search suggestions ============ */
.search-wrap { position: relative; flex: 1; }
.suggestion-list {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #050505;
    border: 1px solid var(--text);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.6), 0 0 14px rgba(255,189,0,0.25);
    overflow: hidden;
    z-index: 20;
    display: none;
}
.suggestion-list.open { display: block; }
.suggestion-item {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    border-bottom: 1px solid rgba(255,189,0,0.12);
    color: #fff;
    font-family: 'Anta', sans-serif;
    font-size: 0.85rem;
    padding: 10px 18px;
    cursor: pointer;
    transition: 0.1s;
}
.suggestion-item:last-child { border-bottom: none; }
.suggestion-item:hover,
.suggestion-item.active {
    background: rgba(155,0,10,0.12);
    color: var(--primary);
}
.suggestion-tag {
    float: right;
    font-size: 0.65rem;
    color: #6a8067;
    text-transform: uppercase;
}

/* ============ Quick-start chips (no query yet) ============ */
.quickstart {
    margin-top: 4px;
    margin-bottom: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.quickstart-label {
    font-size: 0.7rem;
    color: var(--text);
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 4px;
    flex-shrink: 0;
    white-space: nowrap;
}
.quickstart-chip {
    font-family: 'Anta', sans-serif;
    font-size: 0.72rem;
    background: #0a0a0a;
    border: 1px solid rgba(255,189,0,0.4);
    color: var(--text);
    padding: 5px 13px;
    border-radius: 14px;
    cursor: pointer;
    transition: 0.15s;
}
.quickstart-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 8px rgba(155,0,10,0.35);
}

/* ============ Misc UI/UX polish ============ */
.search-form input:focus-visible,
.related-chip:focus-visible,
.quickstart-chip:focus-visible,
.player-btn:focus-visible,
.suggestion-item:focus-visible {
    outline: 2px solid var(--text);
    outline-offset: 2px;
}
a:focus-visible, button:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }

.help-link-inline {
    color: var(--text);
    opacity: 0.8;
    text-decoration: underline;
    font-size: 0.78rem;
}
.help-link-inline:hover { opacity: 1; color: var(--primary); }

/* Legal/info page content styling */
.page-content { line-height: 1.7; font-size: 0.92rem; color: #e6ffe9; }
.page-content h2 {
    color: var(--primary);
    text-shadow: 0 0 6px rgba(155,0,10,0.5);
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 28px 0 10px 0;
    font-weight: 400;
}
.page-content h2:first-child { margin-top: 0; }
.page-content p { margin-bottom: 14px; }
.page-content ul { margin: 10px 0 14px 22px; }
.page-content li { margin-bottom: 6px; }
.page-content a { color: var(--text); text-decoration: underline; }
.page-content a:hover { color: var(--primary); }
.page-updated {
    font-size: 0.7rem;
    color: #6a8067;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.page-title {
    font-size: 1.6rem;
    color: var(--primary);
    text-shadow: 0 0 8px rgba(155,0,10,0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
    font-weight: 400;
}

/* How-to guide specific */
.howto-step {
    display: flex;
    gap: 14px;
    margin-bottom: 22px;
    align-items: flex-start;
}
.howto-num {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid var(--primary);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    box-shadow: 0 0 8px rgba(155,0,10,0.4);
}
.howto-step-text h3 {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 400;
    margin-bottom: 4px;
}
.howto-step-text p {
    color: var(--text);
    opacity: 0.85;
    font-size: 0.85rem;
    margin-bottom: 0;
}

/* ============================================================
   ARTIST BIO — collapsible, clamped, with read-more toggle
   ============================================================ */
.artist-bio-wrap {
    margin-top: 16px;
    border-top: 1px solid rgba(255,189,0,0.2);
    padding-top: 14px;
    position: relative;
}

.bio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.63rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text);
    opacity: 0.55;
    margin-bottom: 8px;
}
.bio-label::before {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,189,0,0.3));
}
.bio-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(270deg, transparent, rgba(255,189,0,0.3));
}

.artist-bio {
    font-size: 0.84rem;
    line-height: 1.68;
    color: rgba(255,255,255,0.80);
    max-height: 6.72em; /* ~4 lines */
    overflow: hidden;
    position: relative;
    transition: max-height 0.45s cubic-bezier(0.4,0,0.2,1);
    word-break: break-word;
    letter-spacing: 0.01em;
}
/* fade-out gradient when clamped */
.artist-bio:not(.bio-expanded)::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2.8em;
    background: linear-gradient(to bottom, transparent, #0a0a0a);
    pointer-events: none;
}
.artist-bio.bio-expanded {
    max-height: 800px;
}
.artist-bio.bio-expanded::after { display: none; }

.bio-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
    background: none;
    border: 1px solid rgba(255,189,0,0.38);
    border-radius: 20px;
    padding: 4px 14px 4px 12px;
    font-family: 'Anta', sans-serif;
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text);
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, box-shadow 0.15s;
}
.bio-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 8px rgba(155,0,10,0.3);
}
.bio-toggle-arrow {
    display: inline-block;
    transition: transform 0.35s ease;
    font-style: normal;
    line-height: 1;
    font-size: 0.75rem;
}
.bio-toggle.expanded .bio-toggle-arrow {
    transform: rotate(180deg);
}

/* ============================================================
   MOBILE — comprehensive responsive overrides
   ============================================================ */

/* ---- Tablet (≤ 700px) ---- */
@media (max-width: 700px) {
    body { padding: 14px 10px; }

    .container { padding: 26px 18px; }

    h1 { font-size: 1.8rem; }

    .artist-card-inner {
        flex-direction: column;
        gap: 0;
    }
    /* cover art spans full card width */
    .artist-cover,
    .artist-cover-placeholder {
        width: 100%;
        height: 180px;
        border-radius: 10px 10px 0 0;
        object-fit: cover;
        margin-bottom: 14px;
    }

    .artist-card h2 { font-size: 1.3rem; }

    .collab-list {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .related-chip { padding: 7px 12px; }
}

/* ---- Phone (≤ 480px) ---- */
@media (max-width: 480px) {
    body { padding: 8px 6px; }

    .container {
        padding: 20px 14px;
        border-radius: 14px;
        border-width: 2px;
    }

    h1 {
        font-size: 1.4rem;
        gap: 6px;
        flex-wrap: wrap;
    }
    h1 small { font-size: 0.68rem; margin-left: 2px; }

    .subhead { font-size: 0.8rem; padding-left: 12px; }

    .search-form {
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 22px;
    }
    .search-form input {
        padding: 12px 16px;
        font-size: 0.92rem;
    }
    .search-form button {
        width: 100%;
        padding: 12px 24px;
    }

    .artist-card { padding: 14px 12px; }

    .artist-cover,
    .artist-cover-placeholder {
        height: 140px;
    }

    .artist-card h2 { font-size: 1.1rem; letter-spacing: 0.5px; }

    .artist-card .meta span {
        font-size: 0.72rem;
        padding: 2px 8px;
        margin-right: 4px;
    }

    .genre-tag { font-size: 0.63rem; padding: 2px 8px; }

    .collab-list {
        grid-template-columns: 1fr;
    }
    .collab-item { padding: 11px 12px; }
    .collab-name { font-size: 0.93rem; }

    .related-list { gap: 7px; }
    .related-chip { padding: 6px 10px; }
    .related-name { font-size: 0.78rem; }
    .related-via  { font-size: 0.6rem; }

    .artist-bio { font-size: 0.81rem; line-height: 1.6; }

    .site-header { padding-bottom: 10px; }
    .site-nav { gap: 10px; }
    .site-nav a { font-size: 0.7rem; }

    .disambig-item { padding: 10px 14px; }
    .disambig-name { font-size: 0.9rem; }

    .deezer-track { gap: 8px; }
    .deezer-cover { width: 34px; height: 34px; }
}

/* ================================================================
   POWER USER UX ADDITIONS
   ================================================================ */

/* Keyboard shortcut hint inside search input */
.search-kbd-hint {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-family: monospace;
    font-size: 0.7rem;
    color: var(--text);
    opacity: 0.35;
    background: rgba(255,189,0,0.06);
    border: 1px solid rgba(255,189,0,0.18);
    border-radius: 4px;
    padding: 1px 7px;
    pointer-events: none;
    letter-spacing: 0;
    transition: opacity 0.2s;
    user-select: none;
}

/* Filter + sort controls bar above collab list */
.collab-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,189,0,0.14);
}
.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    flex: 1;
    min-width: 0;
}
.filter-chip {
    font-family: 'Anta', sans-serif;
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #0a0a0a;
    border: 1px solid rgba(255,189,0,0.3);
    color: var(--text);
    padding: 4px 12px;
    border-radius: 14px;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background 0.15s, box-shadow 0.15s;
}
.filter-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 6px rgba(155,0,10,0.25);
}
.filter-chip.active {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(155,0,10,0.5);
}
.filter-count {
    display: inline-block;
    margin-left: 3px;
    opacity: 0.7;
    font-size: 0.6rem;
}
.sort-toggle {
    font-family: 'Anta', sans-serif;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: none;
    border: 1px solid rgba(255,189,0,0.28);
    color: var(--text);
    padding: 4px 12px;
    border-radius: 14px;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, box-shadow 0.15s;
    white-space: nowrap;
}
.sort-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 6px rgba(155,0,10,0.25);
}

/* Direction label inside collab-type line */
.collab-direction-label {
    font-size: 0.65rem;
    color: #7a9477;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

/* Search affordance arrow on collab names */
.collab-search-arrow {
    font-size: 0.75rem;
    opacity: 0;
    color: var(--primary);
    transition: opacity 0.15s;
    pointer-events: none;
}
.collab-name-btn:hover .collab-search-arrow,
.collab-name-btn:focus .collab-search-arrow {
    opacity: 1;
}

/* Quickstart show-more button */
.quickstart-more-btn {
    font-family: 'Anta', sans-serif;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: none;
    border: 1px dashed rgba(255,189,0,0.35);
    color: var(--text);
    opacity: 0.65;
    padding: 4px 12px;
    border-radius: 14px;
    cursor: pointer;
    transition: opacity 0.15s, border-color 0.15s, color 0.15s;
}
.quickstart-more-btn:hover {
    opacity: 1;
    border-color: var(--primary);
    color: var(--primary);
}
.quickstart-more-wrap {
    display: contents;
}

/* Collab item: now-playing highlight */
.collab-item.now-playing {
    border-left-color: var(--text);
    background: #011a07;
    box-shadow: 0 0 16px rgba(255,189,0,0.3), inset 0 0 12px rgba(255,189,0,0.04);
}
.collab-item.now-playing .collab-name-btn {
    color: var(--text);
    text-shadow: 0 0 8px rgba(255,189,0,0.7);
}

/* Collab item: filtered out */
.collab-item.filtered-out { display: none; }

/* No-results placeholder inside collab list */
.filter-no-results {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text);
    opacity: 0.4;
    font-size: 0.82rem;
    padding: 28px 16px;
}

/* Collab name as a clickable button */
.collab-name-btn {
    background: none;
    border: none;
    font-family: 'Anta', sans-serif;
    color: #fff;
    text-shadow: 0 0 4px rgba(255,255,255,0.3);
    font-size: inherit;
    cursor: pointer;
    padding: 0;
    text-align: left;
    line-height: inherit;
    display: block;
    width: 100%;
    transition: color 0.15s, text-shadow 0.15s;
}
.collab-name-btn:hover {
    color: var(--primary);
    text-shadow: 0 0 8px rgba(155,0,10,0.65);
}
.collab-name-btn:focus-visible {
    outline: 2px solid var(--text);
    outline-offset: 2px;
    border-radius: 2px;
}

/* MusicBrainz external link on artist card */
.mb-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.64rem;
    color: var(--text);
    opacity: 0.5;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255,189,0,0.22);
    border-radius: 20px;
    padding: 2px 10px;
    transition: opacity 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.mb-link:hover {
    opacity: 1;
    color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 6px rgba(155,0,10,0.4);
}

/* Recent search section label in suggestion dropdown */
.suggestion-section-label {
    font-size: 0.58rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #6a8067;
    padding: 8px 18px 2px;
    pointer-events: none;
    user-select: none;
}

/* Recent suggestions get a subtle left accent */
.suggestion-item.suggestion-recent {
    border-left: 2px solid rgba(255,189,0,0.25);
}
.suggestion-item.suggestion-recent:hover,
.suggestion-item.suggestion-recent.active {
    border-left-color: var(--primary);
}

/* ---- Mobile adjustments for new controls ---- */
@media (max-width: 700px) {
    .collab-controls { gap: 6px; }
    .filter-chip     { font-size: 0.6rem; padding: 3px 10px; }
    .sort-toggle     { font-size: 0.6rem; padding: 3px 10px; }
    .dir-legend      { gap: 10px; }
}
@media (max-width: 480px) {
    .search-kbd-hint { display: none; } /* too cramped on very small screens */
    .filter-chips    { gap: 4px; }
    .filter-chip     { font-size: 0.58rem; padding: 3px 8px; }
    .sort-toggle     { font-size: 0.58rem; padding: 3px 8px; }
}

/* ================================================================
   GENIUS API INTEGRATION STYLES
   ================================================================ */

/* Artist cover: when sourced from Genius it's a portrait photo, not
   album art — round it slightly differently on mobile to look natural */
.artist-cover-photo {
    object-position: center top; /* bias toward face in cropped view */
}

/* External link pills row (MusicBrainz + Genius side-by-side) */
.artist-external-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    align-items: center;
}
/* Genius pill gets a gold tint to distinguish it from the MB pill */
.genius-ext-pill {
    color: #ffd700 !important;
    border-color: rgba(255,215,0,0.35) !important;
    opacity: 0.75 !important;
}
.genius-ext-pill:hover {
    opacity: 1 !important;
    border-color: #ffd700 !important;
    box-shadow: 0 0 6px rgba(255,215,0,0.45) !important;
    text-shadow: 0 0 4px rgba(255,215,0,0.5) !important;
    color: #ffd700 !important;
}

/* ---- Genius section ---- */
.genius-section {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px dashed rgba(255,215,0,0.28);
}
.genius-section-header {
    margin-bottom: 16px;
}
.genius-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffd700;
    text-shadow: 0 0 8px rgba(255,215,0,0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 400;
    font-size: 1rem;
    margin-bottom: 4px;
}
.genius-icon {
    color: #ffd700;
    flex-shrink: 0;
    opacity: 0.85;
}
.genius-count-badge {
    font-size: 0.8rem;
    color: var(--text);
    opacity: 0.75;
    font-weight: 400;
}
.genius-subhead {
    font-size: 0.72rem;
    color: var(--text);
    opacity: 0.5;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}
.genius-artist-link {
    color: #ffd700;
    opacity: 0.7;
    text-decoration: none;
    transition: opacity 0.15s;
}
.genius-artist-link:hover { opacity: 1; }

/* Genius credit card grid */
.genius-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 10px;
}
.genius-credit-card {
    background: #0a0a00;
    border: 1px solid rgba(255,215,0,0.22);
    border-left: 3px solid rgba(255,215,0,0.5);
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    position: relative;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.genius-credit-card:hover {
    background: #141400;
    border-left-color: #ffd700;
    box-shadow: 0 0 12px rgba(255,215,0,0.2);
}

/* Avatar */
.genius-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    border: 1px solid rgba(255,215,0,0.35);
    flex-shrink: 0;
}
.genius-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    background: rgba(255,215,0,0.08);
    color: #ffd700;
}

/* Credit info */
.genius-credit-info {
    flex: 1;
    min-width: 0;
}
.genius-name-btn {
    font-size: 0.83rem;
    color: #fff !important;
    text-shadow: 0 0 3px rgba(255,255,255,0.25) !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.genius-name-btn:hover {
    color: #ffd700 !important;
    text-shadow: 0 0 6px rgba(255,215,0,0.6) !important;
}
.genius-role-badge {
    font-size: 0.63rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #c9a800;
    margin-top: 3px;
}
.genius-track-count {
    font-size: 0.58rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6a8067;
    margin-top: 2px;
}

/* External link arrow — top-right corner of card */
.genius-card-link {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 0.65rem;
    color: #ffd700;
    opacity: 0.3;
    text-decoration: none;
    transition: opacity 0.15s;
    line-height: 1;
}
.genius-credit-card:hover .genius-card-link { opacity: 0.75; }
.genius-card-link:hover { opacity: 1 !important; }

/* ---- Mobile ---- */
@media (max-width: 700px) {
    .genius-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .genius-credit-card { padding: 10px 12px; }
    .genius-avatar { width: 32px; height: 32px; }
}
@media (max-width: 480px) {
    .genius-grid { grid-template-columns: 1fr; }
    .genius-heading { font-size: 0.9rem; }
}

/* ================================================================
   TOP LOADING BAR
   ================================================================ */

#scLoadBar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 10000;
    pointer-events: none;
    opacity: 0;
    overflow: visible;
}

#scLoadFill {
    height: 100%;
    width: 0%;
    background: linear-gradient(
        90deg,
        rgba(16, 255, 32, 0.6)   0%,
        var(--text)              25%,
        var(--primary)               70%,
        #fff                      100%
    );
    border-radius: 0 2px 2px 0;
    box-shadow:
        0 0 8px  var(--primary),
        0 0 18px rgba(255, 16, 239, 0.45),
        0 0 2px  #fff;
    position: relative;
}

/* Bright leading-edge spark */
#scLoadFill.sc-active::after {
    content: '';
    position: absolute;
    right: -1px;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 9px;
    border-radius: 3px;
    background: #fff;
    box-shadow:
        0 0 6px  3px var(--primary),
        0 0 12px 4px rgba(255, 16, 239, 0.5);
}

/* Moving shimmer while the fill is growing */
#scLoadFill.sc-active::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.35) 50%,
        transparent 100%
    );
    background-size: 120px 100%;
    animation: scShimmer 1.1s linear infinite;
}

@keyframes scShimmer {
    from { background-position: -120px 0; }
    to   { background-position: calc(100% + 120px) 0; }
}

/* ================================================================
   SEARCHING MESSAGE — enhanced for visibility while bar runs
   ================================================================ */

.searching-msg {
    display: none;           /* overridden to flex by JS on submit */
    align-items: center;
    gap: 12px;
    color: var(--text);
    font-size: 0.88rem;
    margin-bottom: 18px;
    padding: 14px 20px;
    background: rgba(16, 255, 32, 0.03);
    border: 1px solid rgba(16, 255, 32, 0.14);
    border-radius: 12px;
    text-shadow: 0 0 4px rgba(16, 255, 32, 0.5);
    animation: searchPulse 2.2s ease-in-out infinite;
}

#searchingText {
    transition: opacity 0.2s ease;
}

@keyframes searchPulse {
    0%, 100% { border-color: rgba(16, 255, 32, 0.14); }
    50%       { border-color: rgba(16, 255, 32, 0.32);
                box-shadow:   0 0 12px rgba(16, 255, 32, 0.08); }
}

@media (max-width: 480px) {
    .searching-msg { font-size: 0.8rem; padding: 11px 14px; gap: 10px; }
}

/* ================================================================
   TOP SONGS SECTION
   ================================================================ */

.top-songs-section {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px dashed rgba(255, 215, 0, 0.22);
}

.top-songs-heading {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
    color: #ffd700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 400;
    font-size: 1rem;
    margin-bottom: 14px;
}

.top-songs-source {
    font-size: 0.62rem;
    color: #7a9477;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 400;
}

/* ---- Song list ---- */
.top-songs-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.top-song-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #0a0a00;
    border: 1px solid rgba(255, 215, 0, 0.13);
    border-left: 3px solid rgba(255, 215, 0, 0.35);
    border-radius: 10px;
    padding: 9px 14px 9px 10px;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.top-song-card:hover {
    background: #111100;
    border-left-color: #ffd700;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.12);
}

/* Rank number */
.top-song-rank {
    flex-shrink: 0;
    width: 20px;
    text-align: center;
    font-size: 0.72rem;
    color: #ffd700;
    opacity: 0.45;
    line-height: 1;
}

/* Album / song art */
.top-song-art {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid rgba(255, 215, 0, 0.18);
}

.top-song-art-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 215, 0, 0.06);
    color: #ffd700;
    font-size: 1rem;
}

/* Text block */
.top-song-info {
    flex: 1;
    min-width: 0;
}

.top-song-title {
    font-size: 0.87rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 1px;
}

.top-song-title-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s, text-shadow 0.15s;
}

.top-song-title-link:hover {
    color: #ffd700;
    text-shadow: 0 0 6px rgba(255, 215, 0, 0.55);
}

.top-song-feat {
    font-size: 0.63rem;
    color: var(--text);
    opacity: 0.55;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Re-use existing .player styles; just tighten top margin */
.top-song-player {
    margin-top: 4px;
}

/* ---- Mobile ---- */
@media (max-width: 700px) {
    .top-song-art { width: 36px; height: 36px; }
    .top-song-title { font-size: 0.82rem; }
}

@media (max-width: 480px) {
    .top-song-card { gap: 9px; padding: 8px 10px 8px 8px; }
    .top-song-art  { width: 32px; height: 32px; border-radius: 5px; }
    .top-song-rank { width: 16px; font-size: 0.65rem; }
    .top-songs-heading { font-size: 0.9rem; }
}

/* ================================================================
   MUSIC THEME — BACKGROUND, ANIMATIONS & ENHANCED UI
   ================================================================ */

/* ── Floating music notes ───────────────────────────────────────── */
.music-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.music-note {
    position: absolute;
    bottom: -60px;
    font-style: normal;
    line-height: 1;
    user-select: none;
    color: var(--primary);
    animation: floatNote linear infinite;
    will-change: transform, opacity;
}

@keyframes floatNote {
    0%   { transform: translateY(0) rotate(-12deg) scale(1);    opacity: 0; }
    6%   { opacity: var(--n-op, 0.1); }
    88%  { opacity: calc(var(--n-op, 0.1) * 0.5); }
    100% { transform: translateY(-108vh) rotate(18deg) scale(0.85); opacity: 0; }
}

/* ── Spinning vinyl record decoration ──────────────────────────── */
.vinyl-bg {
    position: absolute;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    top: 50%;
    right: -110px;
    transform: translateY(-40%);
    pointer-events: none;
    z-index: 0;
    opacity: 0.045;
    animation: vinylSpin 28s linear infinite;
    background:
        radial-gradient(circle at 50% 50%, #1a0005 0%, #1a0005 10%, transparent 10.5%),
        radial-gradient(circle at 50% 50%, rgba(155,0,10,0.6) 10.5%, transparent 11%),
        repeating-radial-gradient(circle at 50% 50%,
            transparent 14%, transparent 19%,
            rgba(155,0,10,0.25) 19%, rgba(155,0,10,0.25) 19.4%),
        conic-gradient(
            #050505 0deg, #0d0002 22.5deg, #050505 45deg, #0d0002 67.5deg,
            #050505 90deg, #0d0002 112.5deg, #050505 135deg, #0d0002 157.5deg,
            #050505 180deg, #0d0002 202.5deg, #050505 225deg, #0d0002 247.5deg,
            #050505 270deg, #0d0002 292.5deg, #050505 315deg, #0d0002 337.5deg,
            #050505 360deg
        );
    border: 1px solid rgba(155,0,10,0.4);
    box-shadow: 0 0 40px rgba(155,0,10,0.15), inset 0 0 60px rgba(0,0,0,0.8);
}

@keyframes vinylSpin {
    from { transform: translateY(-40%) rotate(0deg); }
    to   { transform: translateY(-40%) rotate(360deg); }
}

/* ── Hero section — no entrance animations on content elements ──── */
/* Content is always immediately visible. Decorative animations only. */
.hero-title  { position: relative; z-index: 1; }
.hero-subhead { position: relative; z-index: 1; }

/* ── Equalizer bars below H1 ────────────────────────────────────── */
.hero-eq {
    display: flex;
    gap: 3px;
    align-items: flex-end;
    height: 28px;
    margin: 10px 0 18px 0;
}

.eq-bar {
    width: 3px;
    border-radius: 2px 2px 0 0;
    background: linear-gradient(to top, var(--primary), rgba(155,0,10,0.3));
    animation: eqPulse ease-in-out alternate infinite;
    transform-origin: bottom;
    box-shadow: 0 0 4px rgba(155,0,10,0.4);
    flex-shrink: 0;
}

@keyframes eqPulse {
    from { transform: scaleY(0.15); opacity: 0.35; }
    to   { transform: scaleY(1);    opacity: 0.9; }
}

/* ── Waveform canvas below search bar ───────────────────────────── */
.wave-canvas {
    display: block;
    width: 100%;
    height: 40px;
    margin-top: 2px;
    margin-bottom: 4px;
    pointer-events: none;
    opacity: 0.7;
}

/* ── Enhanced search bar ────────────────────────────────────────── */
.search-form input:focus {
    border-color: var(--primary);
    box-shadow:
        0 0 0 3px rgba(155,0,10,0.18),
        0 0 20px rgba(155,0,10,0.45),
        0 0 40px rgba(155,0,10,0.15);
}

/* Submit button — glow pulse + ripple */
.search-form button {
    position: relative;
    overflow: hidden;
    animation: btnGlow 3s ease-in-out infinite;
}

@keyframes btnGlow {
    0%, 100% { box-shadow: 0 0 12px rgba(155,0,10,0.6); }
    50%       { box-shadow: 0 0 22px rgba(155,0,10,0.9), 0 0 40px rgba(155,0,10,0.3); }
}

.search-form button::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    background: rgba(255,255,255,0.25);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease, opacity 0.4s ease;
    opacity: 0;
}

.search-form button:active::before {
    width: 300px;
    height: 300px;
    opacity: 0;
    transition: 0s;
}

/* ── Quickstart chip enhanced hover ─────────────────────────────── */
.quickstart-chip {
    transition: border-color 0.15s, color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.quickstart-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 10px rgba(155,0,10,0.4);
    transform: translateY(-2px) scale(1.03);
}

.quickstart-chip:active {
    transform: translateY(0) scale(0.97);
}

/* ── Animated equalizer empty state ─────────────────────────────── */
.empty-eq {
    display: flex;
    gap: 5px;
    align-items: flex-end;
    height: 52px;
    justify-content: center;
    margin-bottom: 18px;
    filter: drop-shadow(0 0 8px rgba(155,0,10,0.5));
}

.empty-eq-bar {
    width: 5px;
    border-radius: 3px 3px 0 0;
    background: linear-gradient(to top, var(--primary), rgba(155,174,152,0.6));
    animation: eqPulse ease-in-out alternate infinite;
    transform-origin: bottom;
    min-height: 8px;
}

/* ── Enhanced card hover animations ─────────────────────────────── */
.cu-card,
.top-song-card,
.rec-card,
.disc-item {
    transition: background 0.18s, border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}

.cu-card:hover,
.top-song-card:hover,
.rec-card:hover {
    transform: translateY(-2px);
}

.disc-item:hover {
    transform: translateY(-1px);
}

/* ── Player button pulse when playing ───────────────────────────── */
.player-btn[aria-label="Pause preview"] {
    background: var(--primary);
    color: #000;
    animation: playerPulse 1.4s ease-in-out infinite;
}

@keyframes playerPulse {
    0%, 100% { box-shadow: 0 0 6px rgba(155,0,10,0.5); }
    50%       { box-shadow: 0 0 14px rgba(155,0,10,0.9), 0 0 24px rgba(155,0,10,0.3); }
}

/* ── Type button active shimmer ─────────────────────────────────── */
.type-btn.active {
    position: relative;
    overflow: hidden;
}

.type-btn.active::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    animation: shimmer 2.5s ease-in-out infinite;
}

@keyframes shimmer {
    0%   { left: -60%; }
    100% { left: 140%; }
}

/* ── Body ambient pulse ─────────────────────────────────────────── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse 60% 40% at 15% 10%, rgba(155,0,10,0.12), transparent),
        radial-gradient(ellipse 50% 35% at 85% 90%, rgba(255,189,0,0.10), transparent);
    animation: ambientPulse 8s ease-in-out infinite alternate;
}

@keyframes ambientPulse {
    from { opacity: 0.6; }
    to   { opacity: 1; }
}

/* ── Mobile adjustments ─────────────────────────────────────────── */
@media (max-width: 700px) {
    .vinyl-bg { width: 240px; height: 240px; right: -80px; opacity: 0.03; }
    .hero-eq  { height: 20px; }
    .eq-bar   { width: 2px; }
    .wave-canvas { height: 28px; }
}

@media (max-width: 480px) {
    .vinyl-bg     { display: none; }
    .music-note   { display: none; }
    .wave-canvas  { display: none; }
    .hero-eq      { height: 16px; gap: 2px; }
    .empty-eq-bar { width: 4px; }
}

/* Safety net: if user prefers reduced motion, kill entrance animations
   so nothing stays at opacity:0 from the backwards fill mode */
@media (prefers-reduced-motion: reduce) {
    .hero-title,
    .hero-subhead,
    .hero-toggle,
    .hero-form,
    .hero-chips,
    .quickstart-chip {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    .music-note,
    .vinyl-bg,
    .eq-bar,
    .empty-eq-bar,
    .wave-canvas { display: none !important; }
    .search-form button { animation: none !important; }
    .type-btn.active::after { animation: none !important; }
    .player-btn[aria-label="Pause preview"] { animation: none !important; }
    body::before { animation: none !important; }
}

/* ================================================================
   SKIP TO CONTENT (accessibility)
   ================================================================ */
.skip-to-content {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    padding: 8px 20px;
    border-radius: 0 0 10px 10px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    z-index: 9999;
    transition: top 0.15s;
    white-space: nowrap;
}
.skip-to-content:focus {
    top: 0;
    outline: 2px solid var(--text);
    outline-offset: 2px;
}

/* ================================================================
   SEARCH TYPE TOGGLE  (Artist / Song) — now above the search bar
   ================================================================ */

.search-type-toggle {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
}

.type-btn {
    font-family: 'Anta', sans-serif;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #0a0a0a;
    border: 1px solid rgba(16, 255, 32, 0.3);
    color: var(--text);
    padding: 5px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.type-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 8px rgba(255, 16, 239, 0.3);
}

.type-btn.active {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
    box-shadow: 0 0 12px rgba(255, 16, 239, 0.55);
}

.type-btn:focus-visible {
    outline: 2px solid var(--text);
    outline-offset: 2px;
}

/* ================================================================
   SONG DISAMBIGUATION — thumbnail inside disambig items
   ================================================================ */

.disambig-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

.disambig-art {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid rgba(16, 255, 32, 0.3);
}

/* ================================================================
   SONG RESULT CARD
   ================================================================ */

.song-result-card {
    background: #0a0a0a;
    border: 2px solid #ffd700;
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 24px;
    box-shadow:
        0 0 18px rgba(255, 215, 0, 0.25),
        0 0 40px rgba(255, 215, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.song-result-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: repeating-linear-gradient(90deg, #ffd700 0 20px, var(--text) 20px 40px);
    opacity: 0.6;
}

.song-result-inner {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* Cover art */
.song-result-art {
    flex-shrink: 0;
    width: 110px;
    height: 110px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid rgba(255, 215, 0, 0.4);
    box-shadow: 0 0 14px rgba(255, 215, 0, 0.3);
}

.song-result-art-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    background: rgba(255, 215, 0, 0.07);
    color: #ffd700;
}

/* Text block */
.song-result-text { flex: 1; min-width: 0; }

.song-result-title {
    font-size: 1.5rem;
    font-weight: 400;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
    line-height: 1.2;
}

.song-result-artist {
    color: var(--text);
    font-size: 0.9rem;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.song-artist-btn {
    /* inherits .collab-name-btn */
    font-size: 0.9rem !important;
    color: var(--text) !important;
    text-shadow: 0 0 4px rgba(16, 255, 32, 0.4) !important;
    width: auto !important;
    display: inline !important;
    font-weight: 400;
}

.song-artist-btn:hover {
    color: #ffd700 !important;
    text-shadow: 0 0 6px rgba(255, 215, 0, 0.55) !important;
}

.song-result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.song-result-meta span {
    font-size: 0.75rem;
    color: var(--text);
    opacity: 0.65;
    background: rgba(16, 255, 32, 0.06);
    border: 1px solid rgba(16, 255, 32, 0.2);
    padding: 2px 10px;
    border-radius: 20px;
}

.song-result-player { margin-top: 8px; margin-bottom: 8px; }

.song-result-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

/* ================================================================
   SONG CREDITS SECTION
   ================================================================ */

.song-credits-section {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px dashed rgba(255, 215, 0, 0.2);
}

.song-credits-heading {
    color: #ffd700;
    text-shadow: 0 0 6px rgba(255, 215, 0, 0.45);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 400;
    font-size: 0.95rem;
    margin-bottom: 14px;
}

.song-credits-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.song-credit-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

.song-credit-label {
    flex-shrink: 0;
    min-width: 100px;
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text);
    opacity: 0.5;
    padding-top: 5px;
}

.song-credit-names {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.song-credit-chip {
    /* extends .collab-name-btn */
    font-size: 0.78rem !important;
    background: #0a0a00;
    border: 1px solid rgba(255, 215, 0, 0.25);
    border-radius: 14px;
    padding: 4px 12px;
    color: #fff !important;
    width: auto !important;
    display: inline-block !important;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, box-shadow 0.15s, background 0.15s;
}

.song-credit-chip:hover {
    border-color: #ffd700 !important;
    color: #ffd700 !important;
    background: #141400;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.25);
    text-shadow: 0 0 4px rgba(255, 215, 0, 0.4) !important;
}

/* ================================================================
   SONG RECOMMENDATIONS — "More from [Artist]" & "Similar Songs"
   Two rich card-grid sections that are a hero feature of the
   song results page.
   ================================================================ */

.rec-section {
    margin-bottom: 32px;
    padding-bottom: 28px;
    border-bottom: 1px dashed rgba(255, 215, 0, 0.2);
}

.rec-section-header {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.rec-heading {
    color: #ffd700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.45);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 400;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.rec-source {
    font-size: 0.62rem;
    color: #7a9477;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ---- Card grid ---- */
.rec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}

.rec-card {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    background: #0a0a00;
    border: 1px solid rgba(255, 215, 0, 0.13);
    border-left: 3px solid rgba(255, 215, 0, 0.35);
    border-radius: 11px;
    padding: 10px 12px 10px 10px;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.rec-card:hover {
    background: #111100;
    border-left-color: #ffd700;
    box-shadow: 0 0 14px rgba(255, 215, 0, 0.12);
}

/* Album art */
.rec-art {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 7px;
    object-fit: cover;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.rec-art-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 215, 0, 0.06);
    color: #ffd700;
    font-size: 1.2rem;
}

/* Text block */
.rec-info {
    flex: 1;
    min-width: 0;
}

.rec-title {
    background: none;
    border: none;
    padding: 0;
    font-family: 'Anta', sans-serif;
    font-size: 0.85rem;
    color: #fff;
    text-align: left;
    cursor: pointer;
    line-height: 1.3;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 3px;
    display: block;
    transition: color 0.15s, text-shadow 0.15s;
}

.rec-title:hover {
    color: #ffd700;
    text-shadow: 0 0 6px rgba(255, 215, 0, 0.5);
}

.rec-artist {
    font-size: 0.7rem;
    color: #7a9477;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 5px;
}

.rec-player {
    margin-top: 4px;
}

.rec-ext-link {
    display: inline-block;
    margin-top: 5px;
    font-size: 0.65rem;
    color: #7a9477;
    text-decoration: none;
    transition: color 0.15s;
}
.rec-ext-link:hover { color: #ffd700; }

/* ---- Responsive ---- */
@media (max-width: 700px) {
    .rec-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .rec-art  { width: 44px; height: 44px; }
    .rec-title { font-size: 0.8rem; }
}

@media (max-width: 480px) {
    .rec-grid  { grid-template-columns: 1fr; }
    .rec-card  { padding: 8px 10px 8px 8px; }
    .rec-art   { width: 40px; height: 40px; border-radius: 6px; }
    .rec-heading { font-size: 0.9rem; }
}

@media (max-width: 480px) {
    .rec-grid  { grid-template-columns: 1fr; }
    .rec-card  { padding: 8px 10px 8px 8px; }
    .rec-art   { width: 40px; height: 40px; border-radius: 6px; }
    .rec-heading { font-size: 0.9rem; }
}

/* ================================================================
   UNIFIED COLLABORATIONS SECTION
   ================================================================ */

.cu-section {
    margin-bottom: 32px;
    padding-bottom: 28px;
    border-bottom: 1px dashed rgba(155,0,10,0.3);
}

.cu-header { margin-bottom: 16px; }

.cu-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.cu-heading {
    color: var(--primary);
    text-shadow: 0 0 6px rgba(155,0,10,0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 400;
    font-size: 1rem;
    margin: 0;
}

.cu-count {
    font-weight: 400;
    font-size: 0.85rem;
    color: var(--text);
    opacity: 0.8;
}

.cu-genius-link {
    font-size: 0.64rem;
    color: #c9a800;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(201,168,0,0.35);
    border-radius: 20px;
    padding: 2px 10px;
    transition: 0.15s;
}
.cu-genius-link:hover { color: #ffd700; border-color: #ffd700; box-shadow: 0 0 6px rgba(255,215,0,0.3); }

.cu-subhead {
    font-size: 0.7rem;
    color: #7a9477;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 14px;
}

.cu-search-wrap { position: relative; margin-bottom: 12px; }

.cu-search {
    width: 100%;
    padding: 10px 16px 10px 38px;
    background: #000;
    border: 1px solid rgba(155,0,10,0.5);
    border-radius: 50px;
    font-size: 0.85rem;
    font-family: 'Anta', sans-serif;
    color: var(--text);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.cu-search::placeholder { color: rgba(155,174,152,0.35); }
.cu-search:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(155,0,10,0.15), 0 0 12px rgba(155,0,10,0.4);
}

.cu-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.85rem;
    pointer-events: none;
    opacity: 0.45;
}

.cu-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255,189,0,0.1);
    margin-bottom: 16px;
}

.cu-actions { display: flex; gap: 6px; margin-left: auto; }

.cu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}

.cu-card {
    background: #0a0a0a;
    border: 1px solid rgba(155,0,10,0.3);
    border-left: 3px solid var(--primary);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    gap: 11px;
    align-items: flex-start;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.cu-card:hover {
    background: #120012;
    border-left-color: var(--text);
    box-shadow: 0 0 14px rgba(155,0,10,0.35);
}

.cu-card.now-playing {
    border-left-color: var(--text);
    background: #001a07;
    box-shadow: 0 0 16px rgba(155,174,152,0.25);
}

.cu-avatar {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    border: 1px solid rgba(155,0,10,0.4);
}

.cu-avatar--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    background: rgba(155,0,10,0.08);
    color: var(--primary);
}

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

.cu-name {
    font-size: 0.88rem !important;
    color: #fff !important;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cu-name:hover { color: var(--primary) !important; text-shadow: 0 0 8px rgba(155,0,10,0.65) !important; }

.cu-roles { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 5px; }

.cu-role-badge {
    font-size: 0.58rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    background: rgba(155,0,10,0.12);
    border: 1px solid rgba(155,0,10,0.3);
    color: var(--primary);
    padding: 1px 7px;
    border-radius: 10px;
    white-space: nowrap;
}

.cu-meta {
    font-size: 0.62rem;
    color: #7a9477;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.cu-meta span::before { content: '· '; opacity: 0.5; }
.cu-meta span:first-child::before { content: ''; }

.cu-sources { display: flex; gap: 5px; margin-bottom: 4px; }

.cu-source-pill {
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 1px 7px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.15s, box-shadow 0.15s;
}
.cu-pill--mb { background: rgba(186,12,47,0.12); border: 1px solid rgba(186,12,47,0.35); color: #e05a70; }
.cu-pill--mb:hover { box-shadow: 0 0 5px rgba(186,12,47,0.3); }
.cu-pill--genius { background: rgba(201,168,0,0.1); border: 1px solid rgba(201,168,0,0.3); color: #c9a800; }
.cu-pill--genius:hover { box-shadow: 0 0 5px rgba(201,168,0,0.3); }

.cu-preview {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed rgba(155,0,10,0.2);
}

.cu-preview-art {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 5px;
    object-fit: cover;
    border: 1px solid rgba(255,189,0,0.2);
}

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

.cu-preview-title {
    font-size: 0.68rem;
    color: #fff;
    opacity: 0.85;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.cu-show-more {
    display: block;
    width: 100%;
    margin-top: 14px;
    padding: 10px 20px;
    background: none;
    border: 1px dashed rgba(155,0,10,0.4);
    border-radius: 12px;
    font-family: 'Anta', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text);
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.cu-show-more:hover { border-color: var(--primary); color: var(--primary); background: rgba(155,0,10,0.06); }

.cu-no-results {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text);
    opacity: 0.45;
    font-size: 0.84rem;
    padding: 32px 16px;
}

@media (max-width: 700px) {
    .cu-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .cu-card { padding: 10px; gap: 9px; }
    .cu-avatar { width: 38px; height: 38px; }
    .cu-actions { margin-left: 0; }
}
@media (max-width: 480px) {
    .cu-grid { grid-template-columns: 1fr; }
    .cu-card { padding: 10px 12px; }
    .cu-heading { font-size: 0.9rem; }
    .cu-search { font-size: 0.8rem; }
}

.song-lyrics-section {
    margin-top: 4px;
    border-top: 1px solid rgba(255, 215, 0, 0.15);
    padding-top: 14px;
}

/* Reuse .artist-bio for the collapse/expand mechanics;
   override colours for the gold lyrics theme */
.song-lyrics {
    white-space: pre-line;    /* honour line breaks in lyrics text */
    font-size: 0.84rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.82);
    font-family: 'Anta', sans-serif;
    letter-spacing: 0.01em;
}

/* Gradient fade uses the song card background colour */
.song-lyrics:not(.bio-expanded)::after {
    background: linear-gradient(to bottom, transparent, #0a0a0a) !important;
}

/* ================================================================
   MOBILE ADJUSTMENTS
   ================================================================ */

@media (max-width: 700px) {
    .song-result-inner { gap: 14px; }
    .song-result-art   { width: 80px; height: 80px; }
    .song-result-title { font-size: 1.2rem; }
    .song-credit-label { min-width: 80px; }
}

@media (max-width: 480px) {
    .song-result-inner {
        flex-direction: column;
    }
    .song-result-art {
        width: 100%;
        height: 180px;
        border-radius: 10px 10px 0 0;
    }
    .song-result-title { font-size: 1.05rem; letter-spacing: 0.5px; }
    .song-credit-row   { flex-direction: column; gap: 6px; }
    .song-credit-label { min-width: unset; padding-top: 0; }
    .type-btn          { font-size: 0.67rem; padding: 4px 12px; }
}

@media (max-width: 480px) {
    .song-credit-names { flex-direction: column; align-items: stretch; gap: 8px; }
    .song-credit-chip  {
        padding: 9px 16px !important;
        font-size: 0.82rem !important;
        text-align: center;
        width: 100% !important;
        display: block !important;
    }
}

/* ================================================================
   SOCIAL / STREAMING LINK PILLS
   ================================================================ */
.social-pill         { opacity: 0.75; }
.social-pill:hover   { opacity: 1; }
.social-spotify      { color: #1db954 !important; border-color: rgba(29,185,84,0.35) !important; }
.social-spotify:hover{ box-shadow: 0 0 6px rgba(29,185,84,0.45) !important; }
.social-instagram    { color: #e1306c !important; border-color: rgba(225,48,108,0.35) !important; }
.social-twitter      { color: #1da1f2 !important; border-color: rgba(29,161,242,0.35) !important; }
.social-youtube      { color: #ff0000 !important; border-color: rgba(255,0,0,0.3) !important; }
.social-soundcloud   { color: #ff5500 !important; border-color: rgba(255,85,0,0.3) !important; }
.social-bandcamp     { color: #1da0c3 !important; border-color: rgba(29,160,195,0.3) !important; }
.social-tiktok       { color: #69c9d0 !important; border-color: rgba(105,201,208,0.3) !important; }

/* ================================================================
   LAST.FM STATS BAR
   ================================================================ */
.lastfm-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}
.lastfm-stat {
    font-size: 0.7rem;
    color: var(--text);
    opacity: 0.65;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ================================================================
   ARTIST CARD ACTION BUTTONS
   ================================================================ */
.artist-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}
.bookmark-btn, .graph-toggle-btn, .export-btn {
    font-family: 'Anta', sans-serif;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #0a0a0a;
    border: 1px solid rgba(255,189,0,0.28);
    color: var(--text);
    padding: 4px 12px;
    border-radius: 14px;
    cursor: pointer;
    transition: 0.15s;
}
.bookmark-btn:hover, .graph-toggle-btn:hover, .export-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.bookmark-btn.bookmarked {
    background: rgba(255,215,0,0.1);
    border-color: #ffd700;
    color: #ffd700;
}

/* ================================================================
   COLLAB STATS BAR
   ================================================================ */
.collab-stats-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.collab-stat-total {
    color: var(--primary);
    opacity: 0.8;
    font-weight: 400;
}
.collab-stat-item {
    color: #7a9477;
}
.collab-stat-item::before { content: '· '; }

/* ================================================================
   COLLAB YEAR BADGE
   ================================================================ */
.collab-year {
    font-size: 0.62rem;
    color: #6a8067;
    margin-top: 3px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* ================================================================
   DISCOGRAPHY STRIP
   ================================================================ */
.discography-section {
    margin-bottom: 28px;
    padding-bottom: 22px;
    border-bottom: 1px dashed rgba(255,189,0,0.18);
    position: relative;
}
.discography-heading {
    color: var(--text);
    text-shadow: 0 0 6px rgba(255,189,0,0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 400;
    font-size: 0.95rem;
    margin-bottom: 12px;
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.discography-scroll-hint {
    font-size: 0.6rem;
    color: var(--text);
    opacity: 0.4;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
    animation: scrollHintFade 3.5s ease forwards;
}
@keyframes scrollHintFade {
    0%, 60% { opacity: 0.55; }
    100%     { opacity: 0; }
}
.discography-strip-wrap {
    position: relative;
}
.discography-strip-wrap::after {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 6px;
    width: 36px;
    background: linear-gradient(to right, transparent, #050505);
    pointer-events: none;
}
.discography-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,189,0,0.3) transparent;
}
.discography-strip::-webkit-scrollbar { height: 4px; }
.discography-strip::-webkit-scrollbar-thumb { background: rgba(255,189,0,0.3); border-radius: 4px; }
.disc-item {
    flex-shrink: 0;
    min-width: 110px;
    max-width: 130px;
    background: #0a0a0a;
    border: 1px solid rgba(255,189,0,0.18);
    border-radius: 10px;
    padding: 10px 12px;
    transition: 0.15s;
}
.disc-item:hover { border-color: var(--primary); background: #120012; }
.disc-title {
    font-size: 0.75rem;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.disc-year {
    font-size: 0.63rem;
    color: #7a9477;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ================================================================
   NETWORK GRAPH SECTION
   ================================================================ */
.graph-section {
    margin-bottom: 28px;
    padding-bottom: 22px;
    border-bottom: 1px dashed rgba(155,0,10,0.2);
}
.graph-heading {
    color: var(--primary);
    text-shadow: 0 0 6px rgba(155,0,10,0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 400;
    font-size: 0.95rem;
    margin-bottom: 10px;
}
#collabGraph {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(155,0,10,0.2);
}
#collabGraph svg { display: block; width: 100%; }

/* ================================================================
   BOOKMARKS PANEL
   ================================================================ */
.bookmarks-panel {
    position: fixed;
    top: 60px;
    right: 16px;
    width: 280px;
    max-height: 70vh;
    background: #050505;
    border: 1px solid var(--text);
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.7), 0 0 16px rgba(255,189,0,0.2);
    z-index: 1000;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.bookmarks-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,189,0,0.15);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text);
    flex-shrink: 0;
}
.bookmarks-header button {
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    font-size: 1rem;
    opacity: 0.6;
}
.bookmarks-header button:hover { opacity: 1; color: var(--primary); }
.bookmarks-list {
    overflow-y: auto;
    padding: 8px;
    flex: 1;
}
.bookmark-item {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    border-radius: 8px;
    padding: 8px 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'Anta', sans-serif;
    transition: 0.1s;
}
.bookmark-item:hover { background: rgba(255,189,0,0.06); }
.bookmark-item-name { font-size: 0.85rem; color: #fff; }
.bookmark-item-remove {
    font-size: 0.65rem;
    color: var(--text);
    opacity: 0.35;
    padding: 0 4px;
}
.bookmark-item-remove:hover { opacity: 1; color: var(--primary); }
.bookmarks-empty { font-size: 0.8rem; color: var(--text); opacity: 0.5; text-align: center; padding: 20px; }

/* ================================================================
   FULL-SCREEN LYRICS OVERLAY
   ================================================================ */
.lyrics-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.lyrics-overlay-inner {
    background: #050505;
    border: 1px solid #ffd700;
    border-radius: 16px;
    width: 100%;
    max-width: 640px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 40px rgba(255,215,0,0.2);
}
.lyrics-overlay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,215,0,0.18);
    flex-shrink: 0;
}
.lyrics-overlay-title {
    font-size: 0.9rem;
    color: #ffd700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 400;
}
.lyrics-overlay-close {
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.1rem;
    cursor: pointer;
    opacity: 0.6;
    transition: 0.15s;
}
.lyrics-overlay-close:hover { opacity: 1; color: var(--primary); }
.lyrics-overlay-body {
    overflow-y: auto;
    padding: 20px;
    white-space: pre-line;
    font-size: 0.88rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.85);
    font-family: 'Anta', sans-serif;
}

/* ================================================================
   NAV BOOKMARK BUTTON
   ================================================================ */
.site-nav-btn {
    background: none;
    border: none;
    font-family: 'Anta', sans-serif;
    color: var(--text);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
    cursor: pointer;
    transition: 0.15s;
    padding: 0;
}
.site-nav-btn:hover { opacity: 1; text-shadow: 0 0 6px rgba(255,189,0,0.6); }

/* ================================================================
   MOBILE ADJUSTMENTS
   ================================================================ */
@media (max-width: 480px) {
    .bookmarks-panel { width: calc(100vw - 32px); right: 16px; }
    .collab-stats-bar { gap: 6px; font-size: 0.6rem; }
    .artist-card-actions { gap: 4px; }
    .bookmark-btn, .graph-toggle-btn, .export-btn { font-size: 0.6rem; padding: 3px 9px; }
}

/* ================================================================
   DEEP UX AUDIT FIXES — new components
   ================================================================ */

/* Screen-reader only utility */
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* Mode-switch confirmation note below search form */
.mode-switch-note {
    font-size: 0.72rem;
    color: var(--text);
    opacity: 0;
    height: 0;
    overflow: hidden;
    transition: opacity 0.25s ease;
    text-align: center;
    margin-top: -4px;
}
.mode-switch-note--visible {
    opacity: 0.85;
    height: auto;
    margin-bottom: 6px;
}

/* Suggestion dropdown — type icon prefix */
.suggestion-type-icon {
    margin-right: 8px;
    font-size: 0.85em;
    opacity: 0.8;
}

/* History page — type pills */
.history-type-pill {
    margin-left: auto;
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 2px 9px;
    border-radius: 12px;
    flex-shrink: 0;
}
.history-type-artist {
    background: rgba(155,0,10,0.12);
    border: 1px solid rgba(155,0,10,0.3);
    color: #e05a70;
}
.history-type-song {
    background: rgba(255,215,0,0.1);
    border: 1px solid rgba(255,215,0,0.3);
    color: #c9a800;
}

/* IMUDB Ranking — info tooltip */
.ranking-explain-wrap { position: relative; }
.ranking-info-btn {
    background: none;
    border: none;
    color: #9b000a;
    opacity: 0.6;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0 2px;
    transition: opacity 0.15s;
}
.ranking-info-btn:hover, .ranking-info-btn:focus { opacity: 1; }
.ranking-explain-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    width: 220px;
    background: #050505;
    border: 1px solid rgba(255,189,0,0.4);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.72rem;
    line-height: 1.5;
    color: #fff;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s;
    box-shadow: 0 4px 16px rgba(0,0,0,0.5);
    z-index: 30;
}
.ranking-info-btn:hover + .ranking-explain-tooltip,
.ranking-info-btn:focus + .ranking-explain-tooltip {
    opacity: 1;
}
@media (max-width: 480px) {
    .ranking-explain-tooltip { width: 180px; left: auto; right: 0; transform: none; }
}

/* "Not the right song? search again" link */
.song-research-link { margin: 0 0 12px 0; }
.song-research-btn {
    background: none;
    border: none;
    color: var(--text);
    opacity: 0.65;
    font-family: 'Anta', sans-serif;
    font-size: 0.76rem;
    cursor: pointer;
    padding: 0;
    transition: opacity 0.15s, color 0.15s;
}
.song-research-btn:hover { opacity: 1; color: #ffd700; }

/* Song card actions (bookmark + share) */
.song-card-actions {
    display: flex;
    gap: 6px;
    margin-top: 12px;
    margin-bottom: 4px;
}

/* Keyboard shortcut hint inside action buttons */
.action-kbd-hint {
    display: inline-block;
    margin-left: 5px;
    font-family: monospace;
    font-size: 0.6rem;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 3px;
    padding: 0 4px;
    opacity: 0;
    transition: opacity 0.15s;
    vertical-align: middle;
}
.bookmark-btn:hover .action-kbd-hint,
.graph-toggle-btn:hover .action-kbd-hint,
.export-btn:hover .action-kbd-hint {
    opacity: 0.6;
}

/* Artist-not-found helper block */
.not-found-help {
    margin-top: -8px;
    margin-bottom: 20px;
    padding: 14px 16px;
    background: rgba(155,0,10,0.04);
    border: 1px solid rgba(155,0,10,0.15);
    border-radius: 12px;
}
.not-found-help-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.not-found-help-label {
    font-size: 0.72rem;
    color: var(--text);
    opacity: 0.7;
    flex-shrink: 0;
}
.not-found-help-form { margin: 0; }
.not-found-song-btn {
    background: none;
    border: 1px dashed rgba(255,215,0,0.4);
    border-radius: 14px;
    padding: 6px 14px;
    font-family: 'Anta', sans-serif;
    font-size: 0.74rem;
    color: #ffd700;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}
.not-found-song-btn:hover {
    border-color: #ffd700;
    background: rgba(255,215,0,0.06);
}

/* Genre tag modal — loading / empty states + fade-in */
.lyrics-overlay { opacity: 0; transition: opacity 0.18s ease; }
.lyrics-overlay.overlay--visible { opacity: 1; }
.tag-modal-loading {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 24px 0;
    color: var(--text);
    opacity: 0.8;
    font-size: 0.85rem;
}
.tag-modal-empty {
    width: 100%;
    text-align: center;
    padding: 24px 16px;
    color: var(--text);
    opacity: 0.65;
    font-size: 0.85rem;
    line-height: 1.6;
}

/* Export menu */
.export-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 40;
    background: #050505;
    border: 1px solid rgba(255,189,0,0.3);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.6);
    flex-direction: column;
    overflow: hidden;
    min-width: 200px;
}
.export-menu-item {
    background: none;
    border: none;
    text-align: left;
    padding: 10px 14px;
    font-family: 'Anta', sans-serif;
    font-size: 0.76rem;
    color: var(--text);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}
.export-menu-item:hover {
    background: rgba(255,189,0,0.08);
    color: #ffd700;
}
.export-menu-item + .export-menu-item {
    border-top: 1px solid rgba(255,189,0,0.12);
}

/* Graph loading state */
.graph-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 40px 16px;
    color: var(--text);
    opacity: 0.75;
    font-size: 0.85rem;
    text-align: center;
}

/* Recommendation section track counts */
.rec-count {
    font-size: 0.72rem;
    font-weight: 400;
    color: var(--text);
    opacity: 0.6;
}

/* Bookmarks panel — tabs + backdrop */
.bookmarks-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 999;
}
.bookmarks-tabs {
    display: flex;
    gap: 4px;
    padding: 10px 12px 0;
    flex-shrink: 0;
}
.bookmarks-tab {
    flex: 1;
    background: none;
    border: 1px solid rgba(255,189,0,0.2);
    border-radius: 10px;
    padding: 6px 10px;
    font-family: 'Anta', sans-serif;
    font-size: 0.72rem;
    color: var(--text);
    opacity: 0.7;
    cursor: pointer;
    transition: 0.15s;
}
.bookmarks-tab.active {
    background: rgba(155,0,10,0.15);
    border-color: var(--primary);
    color: #fff;
    opacity: 1;
}
.bookmarks-tab:hover { opacity: 1; }

/* Collab search — keyboard hint + sr-only live region already covered by .sr-only */
.cu-search-kbd-hint {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-family: monospace;
    font-size: 0.65rem;
    color: var(--text);
    opacity: 0.3;
    background: rgba(255,189,0,0.06);
    border: 1px solid rgba(255,189,0,0.18);
    border-radius: 4px;
    padding: 1px 6px;
    pointer-events: none;
}

/* Global now-playing sticky pill */
.now-playing-pill {
    position: fixed;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    display: flex;
    align-items: center;
    gap: 10px;
    background: #050505;
    border: 1px solid var(--primary);
    border-radius: 30px;
    padding: 8px 16px 8px 10px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.6), 0 0 16px rgba(155,0,10,0.3);
    z-index: 500;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    max-width: calc(100vw - 32px);
}
.now-playing-pill--visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.now-playing-pause {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px solid var(--primary);
    background: var(--primary);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}
.now-playing-title {
    font-size: 0.78rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
}
@media (max-width: 480px) {
    .now-playing-title { max-width: 140px; }
    .now-playing-pill  { bottom: 12px; padding: 7px 14px 7px 8px; }
}



/* ================================================================
   AFFILIATE BANNER
   ================================================================ */
.affiliate-banner-wrap {
    max-width: 800px;
    width: 100%;
    margin: 24px auto 0;
    padding: 0 20px;
    text-align: center;
}

.affiliate-banner-link {
    display: inline-block;
    max-width: 100%;
}

.affiliate-banner-img {
    max-width: 468px;   /* standard IAB leaderboard cap on desktop */
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.affiliate-banner-img:hover {
    opacity: 1;
}

@media (max-width: 480px) {
    .affiliate-banner-wrap {
        padding: 0 10px;
        margin-top: 16px;
    }
    .affiliate-banner-img {
        max-width: 100%; /* full bleed on small screens */
    }
}
