/* Account creation onboarding (genres, then artists) in the Spotify "choose artists" look:
 * full-screen black page, colourful genre tiles, round artist bubbles with a green check. */
body .onboarding-overlay {
    position: fixed; inset: 0; z-index: 9000; overflow-y: auto; background: #000 !important;
    -webkit-backdrop-filter: none !important; backdrop-filter: none !important; display: block !important; padding: 0 !important;
}
body .onboarding-overlay.hidden { display: none !important; }
body .onboarding-overlay::before {
    content: ""; position: fixed; inset: 0; pointer-events: none;
    background: radial-gradient(80vmax 50vmax at 10% -10%, rgba(79, 140, 255, 0.22), transparent 60%),
                radial-gradient(70vmax 50vmax at 100% 0%, rgba(80, 56, 160, 0.22), transparent 60%);
}
body .onboarding-shell { position: relative; max-width: 1040px; margin: 0 auto !important; padding: 56px 32px 120px !important; background: none !important; border: 0 !important; box-shadow: none !important; }
body .onboarding-panel { background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; max-height: none !important; overflow: visible !important; text-align: center; }
body .onboarding-panel::before, body .onboarding-panel::after { display: none !important; }

body .onboarding-step-pill {
    display: inline-flex; align-items: center; gap: 8px; margin: 0 auto 18px; padding: 6px 14px; border-radius: 500px;
    background: rgba(255, 255, 255, 0.08) !important; border: 0 !important; color: #fff !important;
    font: 700 12px/1 Inter, "Segoe UI", sans-serif !important; letter-spacing: 0.08em !important; text-transform: uppercase;
}
body .onboarding-step-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #5b9aff; }
body .onboarding-title-wrap { margin: 0 auto 10px; overflow: visible !important; height: auto !important; }
body #musicOnboardingTitle { font-size: clamp(30px, 4.4vw, 48px) !important; font-weight: 800 !important; letter-spacing: -0.04em !important; line-height: 1.1 !important; color: #fff !important; background: none !important; -webkit-text-fill-color: #fff !important; }
body .onboarding-subtitle { max-width: 560px; margin: 0 auto 32px !important; font-size: 16px !important; color: #b3b3b3 !important; line-height: 1.5; }

body .onboarding-step-header { display: flex; align-items: center; justify-content: space-between; margin: 0 0 16px !important; padding: 0 !important; border: 0 !important; }
body .onboarding-step-label { font-size: 20px !important; font-weight: 800 !important; color: #fff !important; text-transform: none !important; letter-spacing: -0.02em !important; }
body .onboarding-step-count { padding: 6px 12px; border-radius: 500px; background: #5b9aff !important; color: #000 !important; font-weight: 800 !important; font-size: 13px !important; border: 0 !important; }
body .onboarding-step.limit-hit .onboarding-step-count { animation: obShake 0.4s ease; background: #e91429 !important; color: #fff !important; }
@keyframes obShake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

/* Genres: Spotify "Browse all" tiles */
body .onboarding-chip-grid { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px !important; }
body .onboarding-chip {
    position: relative; overflow: hidden; aspect-ratio: 1.55 / 1; height: auto !important; min-height: 0 !important; padding: 16px !important;
    border: 0 !important; border-radius: 8px !important; cursor: pointer; text-align: left; display: flex !important; align-items: flex-start !important; justify-content: flex-start !important;
    font: 800 22px/1.1 Inter, "Segoe UI", sans-serif !important; letter-spacing: -0.02em; color: #fff !important; box-shadow: none !important;
    background: var(--g, #8d67ab) !important; transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease !important;
}
body .onboarding-chip::after {
    content: ""; position: absolute; right: -12%; bottom: -12%; width: 50%; aspect-ratio: 1; border-radius: 6px; transform: rotate(25deg);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.35), rgba(0, 0, 0, 0.3)); box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}
body .onboarding-chip:hover { transform: scale(1.03); filter: brightness(1.08); }
body .onboarding-chip.selected { box-shadow: inset 0 0 0 4px #fff, 0 8px 28px rgba(0, 0, 0, 0.5) !important; transform: scale(1.03); }
body .onboarding-chip.selected::before {
    content: ""; position: absolute; z-index: 1; right: 12px; top: 12px; width: 28px; height: 28px; border-radius: 50%;
    background: #5b9aff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9.6 16.2 5.4 12l1.4-1.4 2.8 2.8 7.6-7.6 1.4 1.4z'/%3E%3C/svg%3E") center / 18px no-repeat;
    animation: obPop 0.25s cubic-bezier(.3, 1.6, .5, 1);
}
body .onboarding-chip.limit-hit { animation: obShake 0.4s ease; }
@keyframes obPop { from { transform: scale(0); } to { transform: scale(1); } }
body .onboarding-chip:nth-child(12n+1) { --g: #e13300; } body .onboarding-chip:nth-child(12n+2) { --g: #1e3264; }
body .onboarding-chip:nth-child(12n+3) { --g: #8d67ab; } body .onboarding-chip:nth-child(12n+4) { --g: #e8115b; }
body .onboarding-chip:nth-child(12n+5) { --g: #148a08; } body .onboarding-chip:nth-child(12n+6) { --g: #0d73ec; }
body .onboarding-chip:nth-child(12n+7) { --g: #b06239; } body .onboarding-chip:nth-child(12n+8) { --g: #509bf5; }
body .onboarding-chip:nth-child(12n+9) { --g: #477d95; } body .onboarding-chip:nth-child(12n+10) { --g: #ba5d07; }
body .onboarding-chip:nth-child(12n+11) { --g: #af2896; } body .onboarding-chip:nth-child(12n+12) { --g: #27856a; }

/* Artist search */
body .onboarding-search-block { max-width: 520px; margin: 0 auto 28px !important; text-align: left; }
body .onboarding-search-block .input-label { display: none !important; }
body .onboarding-search-input-wrap { position: relative; }
body #musicOnboardingOverlay #musicArtistSearch.onboarding-search-input {
    width: 100%; height: 48px !important; padding: 0 20px 0 48px !important; border-radius: 500px !important; border: 0 !important;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23121212' d='M10.5 3a7.5 7.5 0 0 1 5.9 12.1l4.8 4.8-1.4 1.4-4.8-4.8A7.5 7.5 0 1 1 10.5 3zm0 2a5.5 5.5 0 1 0 0 11 5.5 5.5 0 0 0 0-11z'/%3E%3C/svg%3E") 16px center / 22px no-repeat !important;
    color: #000 !important; font: 500 16px Inter, "Segoe UI", sans-serif !important; box-shadow: none !important;
}
body #musicOnboardingOverlay #musicArtistSearch::placeholder { color: #6a6a6a !important; }
body #musicOnboardingOverlay #musicArtistSearch:focus { box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35) !important; outline: none; }
body .onboarding-search-hint { display: block; margin: 8px 0 0 20px; font-size: 12px !important; color: #8a8a8a !important; position: static !important; transform: none !important; }

body .onboarding-subsection { margin: 0 0 32px !important; padding: 0 !important; border: 0 !important; background: none !important; text-align: left; }
body .onboarding-subsection-title { font-size: 18px !important; font-weight: 800 !important; color: #fff !important; text-transform: none !important; letter-spacing: -0.01em !important; margin: 0 0 14px !important; }

/* Artist bubbles */
body .artist-circle-grid-onboarding { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)) !important; gap: 22px 16px !important; }
body .artist-circle-grid-onboarding .artist-circle-card {
    position: relative; display: flex !important; flex-direction: column; align-items: center; gap: 10px; padding: 0 !important;
    background: none !important; border: 0 !important; box-shadow: none !important; cursor: pointer; min-height: 0 !important; text-align: center;
}
body .artist-circle-grid-onboarding .artist-circle-card::before, body .artist-circle-grid-onboarding .artist-circle-card::after { display: none !important; }
body .artist-circle-grid-onboarding .artist-circle-avatar {
    position: relative; width: 100% !important; height: auto !important; aspect-ratio: 1; border-radius: 50% !important; overflow: hidden;
    background: #282828; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5) !important; border: 0 !important;
    transition: transform 0.25s cubic-bezier(.3, 1.4, .5, 1), box-shadow 0.2s ease;
}
body .artist-circle-grid-onboarding .artist-circle-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; transition: filter 0.2s; }
body .artist-circle-grid-onboarding .artist-circle-initials { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 34px; font-weight: 800; color: #b3b3b3; }
body .artist-circle-grid-onboarding .artist-circle-card:hover .artist-circle-avatar { transform: scale(1.05); }
body .artist-circle-grid-onboarding .artist-circle-card.selected .artist-circle-avatar { box-shadow: 0 0 0 4px #5b9aff, 0 8px 24px rgba(0, 0, 0, 0.5) !important; transform: scale(0.94); }
body .artist-circle-grid-onboarding .artist-circle-card.selected .artist-circle-avatar img { filter: brightness(0.7); }
body .artist-circle-grid-onboarding .artist-circle-card.selected::after {
    display: block !important; content: ""; position: absolute; top: 4%; right: 4%; width: 32px; height: 32px; border-radius: 50%;
    background: #5b9aff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9.6 16.2 5.4 12l1.4-1.4 2.8 2.8 7.6-7.6 1.4 1.4z'/%3E%3C/svg%3E") center / 20px no-repeat;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5); animation: obPop 0.25s cubic-bezier(.3, 1.6, .5, 1);
}
body .artist-circle-grid-onboarding .artist-card-name { font-size: 14px !important; font-weight: 700 !important; color: #fff !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
body .artist-circle-grid-onboarding .artist-card-meta,
body .artist-circle-grid-onboarding .artist-card-actions,
body .artist-circle-grid-onboarding .artist-select-indicator { display: none !important; }
body .artist-circle-card.limit-hit { animation: obShake 0.4s ease; }

body .onboarding-error { color: #ff8a95 !important; margin: 0 0 12px; font-size: 14px; }
body .onboarding-error:empty { display: none; }

/* Sticky bottom action bar */
body .onboarding-actions {
    position: fixed !important; left: 0; right: 0; bottom: 0; z-index: 2; display: flex !important; justify-content: center; gap: 12px;
    padding: 18px 24px 22px !important; margin: 0 !important; border: 0 !important;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.85) 35%, #000) !important;
}
body .onboarding-actions .btn-glow, body #musicOnboardingNext {
    min-width: 220px; height: 48px !important; padding: 0 32px !important; border: 0 !important; border-radius: 500px !important;
    background: #5b9aff !important; background-image: none !important; color: #000 !important; box-shadow: none !important;
    font: 700 16px Inter, "Segoe UI", sans-serif !important; transition: transform 0.15s ease, opacity 0.2s !important;
}
body #musicOnboardingNext:hover:not(:disabled) { transform: scale(1.04) !important; }
body #musicOnboardingNext:disabled { background: #2a2a2a !important; color: #777 !important; cursor: default; transform: none !important; }
body .onboarding-secondary-btn {
    height: 48px; padding: 0 28px !important; border-radius: 500px !important; background: transparent !important; color: #fff !important;
    border: 1px solid #727272 !important; font: 700 16px Inter, "Segoe UI", sans-serif !important; cursor: pointer; box-shadow: none !important;
}
body .onboarding-secondary-btn:hover { border-color: #fff !important; transform: scale(1.04); }
body .onboarding-secondary-btn.hidden { display: none !important; }
@media (max-width: 600px) {
    body .onboarding-shell { padding: 36px 16px 120px !important; }
    body .onboarding-chip-grid { grid-template-columns: repeat(2, 1fr); gap: 12px !important; }
    body .artist-circle-grid-onboarding { grid-template-columns: repeat(3, 1fr) !important; }
}

/* Kawarp moving background */
body .ob-kawarp { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
body .ob-kawarp::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.45); }
body .ob-kawarp.has-kawarp ~ * { position: relative; z-index: 1; }
body .onboarding-overlay:has(.ob-kawarp.has-kawarp)::before { display: none; }

/* Lyrics animation step: options on the left, live Spicy demo on the right */
body .ob-lyrics { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: 24px; text-align: left; align-items: stretch; }
body .ob-lyrics-options { display: flex; flex-direction: column; gap: 12px; }
body .ob-lyrics-option {
    display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border-radius: 12px; cursor: pointer; text-align: left;
    background: rgba(255, 255, 255, 0.06); border: 2px solid transparent; color: #fff; font-family: Inter, "Segoe UI", sans-serif;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
body .ob-lyrics-option strong { font-size: 17px; font-weight: 800; }
body .ob-lyrics-option span { font-size: 13px; color: #b3b3b3; line-height: 1.4; }
body .ob-lyrics-option:hover { background: rgba(255, 255, 255, 0.1); transform: translateX(3px); }
body .ob-lyrics-option.selected { border-color: #5b9aff; background: rgba(91, 154, 255, 0.14); }
body .ob-lyrics-option.selected strong::after { content: " ✓"; color: #5b9aff; }
body .ob-lyrics-note { margin: 4px 0 0; font-size: 12px; color: #8a8a8a; }
body .ob-lyrics-demo {
    position: relative; overflow: hidden; border-radius: 16px; min-height: 380px; display: flex; flex-direction: column;
    background: linear-gradient(160deg, #2b3fd6, #5038a0 55%, #0d1a4a); box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}
body .ob-lyrics-demo-head { display: flex; align-items: center; gap: 12px; padding: 18px 22px 6px; }
body .ob-lyrics-demo-head img { width: 44px; height: 44px; border-radius: 8px; }
body .ob-lyrics-demo-head strong { display: block; font-size: 15px; color: #fff; }
body .ob-lyrics-demo-head span { font-size: 12px; color: rgba(255, 255, 255, 0.7); }
body .ob-lyrics-demo-body {
    flex: 1; position: relative; overflow: hidden; padding: 8px 22px 22px; max-height: 340px;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 80%, transparent);
    mask-image: linear-gradient(180deg, transparent, #000 12%, #000 80%, transparent);
}
@media (max-width: 760px) { body .ob-lyrics { grid-template-columns: 1fr; } }
body .ob-lyrics-demo-body.sl-root { --sl-size: 30px; padding: 40px 22px 160px; gap: 10px; }

/* "Démonstration": try a real song with the chosen style */
body .ob-try { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; padding: 16px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); }
body .ob-try > strong { font-size: 15px; font-weight: 800; color: #fff; }
body .ob-try > span { font-size: 12.5px; color: #b3b3b3; }
body .ob-try-input {
    height: 40px; padding: 0 14px 0 40px; border-radius: 500px; border: 0; outline: none; color: #000; font: 500 14px Inter, "Segoe UI", sans-serif;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23121212' d='M10.5 3a7.5 7.5 0 0 1 5.9 12.1l4.8 4.8-1.4 1.4-4.8-4.8A7.5 7.5 0 1 1 10.5 3zm0 2a5.5 5.5 0 1 0 0 11 5.5 5.5 0 0 0 0-11z'/%3E%3C/svg%3E") 13px center / 18px no-repeat;
}
body .ob-try-input:focus { box-shadow: 0 0 0 3px rgba(91, 154, 255, 0.5); }
body .ob-try-results { display: flex; flex-direction: column; gap: 2px; }
body .ob-try-row {
    display: flex; align-items: center; gap: 10px; padding: 6px; border: 0; border-radius: 6px; background: none; color: #fff; cursor: pointer; text-align: left;
}
body .ob-try-row:hover { background: rgba(255, 255, 255, 0.1); }
body .ob-try-row img { width: 40px; height: 40px; border-radius: 4px; object-fit: cover; flex-shrink: 0; }
body .ob-try-row span { display: flex; flex-direction: column; min-width: 0; flex: 1; }
body .ob-try-row strong { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body .ob-try-row small { font-size: 12px; color: #b3b3b3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body .ob-try-row i { font-style: normal; width: 30px; height: 30px; border-radius: 50%; background: #5b9aff; color: #000; display: flex; align-items: center; justify-content: center; font-size: 12px; opacity: 0; transition: opacity 0.15s; }
body .ob-try-row:hover i { opacity: 1; }
body .ob-try-state { font-size: 12.5px; color: #8a8a8a; padding: 4px 2px; }
body.ob-demo-open #karaokeOverlay { z-index: 9500 !important; }

/* Lyrics step uses the whole page, like the Spicy lyrics page: options on the left,
 * the demo lyrics (same renderer + same .spl-page styles) fill the rest over the moving background. */
body .onboarding-overlay.ob-lyrics-mode .onboarding-shell { max-width: none; padding: 48px 0 120px 48px !important; }
body .onboarding-overlay.ob-lyrics-mode .onboarding-panel { text-align: left; width: 380px; }
body .onboarding-overlay.ob-lyrics-mode .onboarding-step-pill { margin-left: 0; }
body .onboarding-overlay.ob-lyrics-mode .onboarding-title-wrap { margin-left: 0; }
body .onboarding-overlay.ob-lyrics-mode .onboarding-subtitle { margin-left: 0 !important; }
body .onboarding-overlay.ob-lyrics-mode #musicOnboardingTitle { font-size: 34px !important; }
body .onboarding-overlay.ob-lyrics-mode .ob-lyrics { display: block; }
body .onboarding-overlay.ob-lyrics-mode .ob-lyrics-options { position: relative; z-index: 2; }
body .ob-lyrics-demo.spl-page {
    position: fixed !important; inset: 0 0 0 460px; display: block; opacity: 1; z-index: 0 !important;
    background: none !important; border-radius: 0; box-shadow: none; min-height: 0; overflow: hidden; pointer-events: none;
}
body .ob-lyrics-demo-head { display: none; }
body .ob-lyrics-demo .ob-lyrics-demo-body.sl-root {
    position: absolute; inset: 0; max-height: none; overflow-y: auto; scrollbar-width: none; padding: 42vh 6vw 42vh 2vw !important;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent);
    mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent);
}
body .ob-lyrics-demo .ob-lyrics-demo-body.sl-root.sl-large { --sl-size: clamp(34px, 3.3vw, 58px); gap: 18px; }
@media (max-width: 900px) {
    body .ob-lyrics-demo.spl-page { inset: 0; opacity: 0.35; }
    body .onboarding-overlay.ob-lyrics-mode .onboarding-panel { width: auto; }
}

/* Lyrics step v2: glass panel pinned left, demo lyrics fill the right of the page */
body .onboarding-overlay > .ob-lyrics-demo { display: none !important; }
body .onboarding-overlay.ob-lyrics-mode > .ob-lyrics-demo { display: block !important; position: fixed !important; inset: 0 0 0 480px; z-index: 1 !important; }
body .onboarding-overlay.ob-lyrics-mode .onboarding-shell { justify-content: flex-start !important; align-items: stretch !important; padding: 32px 0 32px 32px !important; z-index: 2; }
body .onboarding-overlay.ob-lyrics-mode .onboarding-panel {
    width: 420px !important; max-height: none !important; margin: 0 !important; padding: 28px 24px 110px !important;
    background: rgba(0, 0, 0, 0.35) !important; border-radius: 16px !important;
    -webkit-backdrop-filter: blur(24px) !important; backdrop-filter: blur(24px) !important;
}
body .onboarding-overlay.ob-lyrics-mode .onboarding-actions { left: 32px; right: auto; width: 420px; background: none !important; justify-content: flex-start; padding-left: 24px !important; }
body .onboarding-overlay.ob-lyrics-mode #musicOnboardingNext { min-width: 0; flex: 1; }
@media (max-width: 960px) {
    body .onboarding-overlay.ob-lyrics-mode > .ob-lyrics-demo { inset: 0; opacity: 0.3; }
}

/* Lyrics step v3: no frames, lyrics use the whole page height */
body .onboarding-overlay.ob-lyrics-mode .onboarding-panel,
body .onboarding-overlay.ob-lyrics-mode .onboarding-step,
body .onboarding-overlay.ob-lyrics-mode .ob-lyrics,
body .onboarding-overlay.ob-lyrics-mode .ob-lyrics-options {
    background: none !important; border: 0 !important; box-shadow: none !important; padding-left: 0 !important; padding-right: 0 !important;
    -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
}
body .onboarding-overlay.ob-lyrics-mode .onboarding-panel { padding-top: 8px !important; }
body .onboarding-overlay.ob-lyrics-mode .ob-lyrics-option { background: rgba(255, 255, 255, 0.07); }
body .onboarding-overlay.ob-lyrics-mode .ob-try { background: none; padding: 8px 0 0; }
body .onboarding-overlay.ob-lyrics-mode .onboarding-actions { padding-left: 0 !important; }
body .onboarding-overlay.ob-lyrics-mode > .ob-lyrics-demo { inset: 0 0 0 500px; }
body .ob-lyrics-demo .ob-lyrics-demo-body.sl-root {
    padding: 30vh 5vw 55vh 0 !important;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 8%, #000 88%, transparent);
    mask-image: linear-gradient(180deg, transparent, #000 8%, #000 88%, transparent);
}
body .ob-lyrics-demo .ob-lyrics-demo-body.sl-root.sl-large { --sl-size: clamp(40px, 4.4vw, 76px); gap: 22px; }

/* Loading bubbles while artists are searched */
body .artist-circle-grid-onboarding .ob-skeleton { pointer-events: none; }
body .artist-circle-grid-onboarding .ob-skeleton .artist-circle-avatar,
body .artist-circle-grid-onboarding .ob-skeleton .artist-card-name {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06)) !important;
    background-size: 200% 100% !important; animation: obShimmer 1.2s linear infinite; box-shadow: none !important;
}
body .artist-circle-grid-onboarding .ob-skeleton .artist-card-name { width: 70%; height: 12px; border-radius: 6px; }
@keyframes obShimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
