/* ============================================================================
 * NeonWave — finishing pass ("neon-finish").
 * Purely visual: empty states, idle player, greeting, onboarding selection,
 * next-song card placement, hover/focus consistency, reduced-motion.
 * Loaded last, after every other theme layer.
 * ========================================================================== */

/* ── Base: smooth text, consistent selection colour ─────────────────────── */
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
::selection { background: rgba(var(--clr-primary-rgb, 91, 154, 255), 0.35); color: #fff; }
body { scrollbar-gutter: auto; }

/* Browser / PWA: no Windows caption buttons, so the top-right icons sit at the edge. */
html:not(.is-electron) .sp-top-right { padding-right: 8px !important; }

/* ── Home: greeting ─────────────────────────────────────────────────────── */
#homeView .home-greeting {
    margin: 4px 0 18px; padding: 0;
    font-size: clamp(26px, 2.4vw, 34px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.1;
    color: var(--text-base, #fff);
}
#homeView .home-greeting small {
    display: block; margin-top: 6px;
    font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--text-subdued, #b3b3b3);
}
#homeView .home-greeting:empty { display: none; }

/* ── Home: shortcuts grid empty state (replaces the floating sentence) ──── */
.home-empty-shortcuts {
    grid-column: 1 / -1;
    display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
    padding: 18px 20px; border-radius: var(--m-br, 12px);
    background: rgba(var(--clr-surface-1-rgb, 30, 30, 30), 0.45);
    border: 1px dashed rgba(255, 255, 255, 0.14);
}
.home-empty-shortcuts .hes-icon {
    width: 56px; height: 56px; border-radius: 10px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--clr-primary, #5b9aff), var(--clr-tertiary, #8d67ab));
    color: var(--clr-on-primary, #000); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.home-empty-shortcuts .hes-icon svg { width: 26px; height: 26px; }
.home-empty-shortcuts .hes-copy { flex: 1 1 260px; min-width: 0; }
.home-empty-shortcuts .hes-copy strong { display: block; font-size: 16px; font-weight: 800; letter-spacing: -0.01em; color: var(--text-base, #fff); }
.home-empty-shortcuts .hes-copy span { display: block; margin-top: 3px; font-size: 13px; color: var(--text-subdued, #b3b3b3); line-height: 1.45; }
.home-empty-shortcuts .hes-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.home-empty-shortcuts .hes-btn {
    height: 36px; padding: 0 16px; border-radius: 500px; border: 0; cursor: pointer;
    font: 700 13px/1 Inter, "Segoe UI", system-ui, sans-serif; white-space: nowrap;
    transition: transform 0.15s ease, filter 0.15s ease, border-color 0.15s ease;
}
.home-empty-shortcuts .hes-btn.is-primary { background: var(--clr-primary, #5b9aff); color: var(--clr-on-primary, #000); }
.home-empty-shortcuts .hes-btn.is-secondary { background: transparent; color: var(--text-base, #fff); border: 1px solid rgba(255, 255, 255, 0.22); }
.home-empty-shortcuts .hes-btn:hover { transform: scale(1.04); filter: brightness(1.08); }
.home-empty-shortcuts .hes-btn.is-secondary:hover { border-color: #fff; }

/* ── Player bar: idle state (no track) ──────────────────────────────────── */
.sp-footer .thumb { position: relative; overflow: hidden; border-radius: var(--player-image-radius, 8px); background: rgba(var(--clr-on-surface-rgb, 255, 255, 255), 0.06); }
.sp-footer .thumb img[src=""], .sp-footer .thumb img:not([src]) { opacity: 0; }
.sp-footer .thumb::after {
    content: ""; position: absolute; inset: 0; opacity: 0; pointer-events: none;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff' fill-opacity='0.55'%3E%3Cpath d='M12 3v10.55A4 4 0 1 0 14 17V7h4V3h-6z'/%3E%3C/svg%3E") center / 22px no-repeat,
        linear-gradient(135deg, rgba(var(--clr-primary-rgb, 91, 154, 255), 0.35), rgba(var(--clr-tertiary-rgb, 141, 103, 171), 0.25));
    transition: opacity 0.2s ease;
}
.sp-footer .thumb:has(img[src=""])::after, .sp-footer .thumb:has(img:not([src]))::after { opacity: 1; }
.sp-footer .footer-left .info .title:empty::before { content: "Rien en lecture"; }

/* ── Onboarding: a selected genre keeps its own colour (not the accent container) ── */
body .onboarding-chip.selected, body .onboarding-chip.is-selected, body .onboarding-chip.active,
body .onboarding-chip.selected:hover, body .onboarding-chip.is-selected:hover, body .onboarding-chip.active:hover {
    background: var(--g, #8d67ab) !important; color: #fff !important;
    box-shadow: inset 0 0 0 4px #fff, 0 10px 30px rgba(0, 0, 0, 0.55) !important;
    border-radius: 8px !important; transform: scale(1.03) !important;
}
body .onboarding-chip.selected::before, body .onboarding-chip.is-selected::before, body .onboarding-chip.active::before { background-color: #fff; }
body .onboarding-step-count { background: #fff !important; color: #000 !important; }
body .onboarding-step-pill::before { background: #fff; }

/* ── Next-song card: float over the main view, never over the library rail ── */
.next-playing-card { left: calc(72px + var(--panel-gap, 8px) * 2) !important; transition: left 0.25s ease, border-color 0.2s ease !important; }
body:has(.sidebar.sk-expanded) .next-playing-card { left: calc(300px + var(--panel-gap, 8px) * 2) !important; }
@media (max-width: 768px) { .next-playing-card { left: var(--panel-gap, 8px) !important; } }

/* ── Cards / rows: consistent hover feedback ────────────────────────────── */
.track-card, .album-card, .shortcut-card, .artist-card, .home-card { transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease !important; }
.track-card:hover, .album-card:hover, .artist-card:hover { transform: translateY(-2px); }
.track-card .thumb img, .album-card .thumb img { transition: transform 0.35s ease; }
.track-card:hover .thumb img, .album-card:hover .thumb img { transform: scale(1.03); }

/* Section titles: a little more air between shelves */
body #homeView .section-title { margin-top: 28px !important; }
body #homeView > :first-child.section-title, body #homeView .home-greeting + .section-title { margin-top: 8px !important; }

/* ── Inputs & focus: one visible, accessible ring everywhere ────────────── */
body input:focus-visible, body select:focus-visible, body textarea:focus-visible, body [tabindex]:focus-visible, body a:focus-visible {
    outline: 2px solid var(--clr-primary, #5b9aff); outline-offset: 2px;
}
body .sp-search input:focus-visible { outline: none; }

/* ── Modals: softer entrance ────────────────────────────────────────────── */
.modal-overlay { animation: nwFadeIn 0.18s ease both; }
.modal-overlay .modal-content { animation: nwRise 0.22s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes nwFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes nwRise { from { opacity: 0; transform: translateY(10px) scale(0.985); } to { opacity: 1; transform: none; } }

/* ── Tooltips on icon buttons feel native ───────────────────────────────── */
.sp-tb-icon, .control-btn { -webkit-tap-highlight-color: transparent; }

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

/* ════════════════════════════════════════════════════════════════════════════
 * Pass 2 — onboarding redesign, idle (no track) states, dead controls
 * ══════════════════════════════════════════════════════════════════════════ */

/* ── Broken images never show the browser's broken-image glyph ─────────── */
img[src=""], img:not([src]) { visibility: hidden; }

/* ── Onboarding: no boxed panels, content floats on the moving background ── */
body .onboarding-shell { max-width: 1120px; padding: 48px 32px 200px !important; }
body .onboarding-panel { width: 100% !important; max-width: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; border-radius: 0 !important; }
body .onboarding-overlay.ob-lyrics-mode .onboarding-panel { width: 420px !important; }
body .onboarding-step { background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; margin: 0 !important; }
body .onboarding-step-pill { margin-bottom: 22px; padding: 7px 14px; background: rgba(255, 255, 255, 0.10) !important; border-radius: 500px !important; }
body .onboarding-step-pill::before { background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.18); }
body #musicOnboardingTitle { font-size: clamp(34px, 4.8vw, 56px) !important; letter-spacing: -0.045em !important; text-shadow: 0 10px 40px rgba(0, 0, 0, 0.6); }
body .onboarding-subtitle { margin-bottom: 40px !important; font-size: 17px !important; color: rgba(255, 255, 255, 0.72) !important; }

/* Step header: label left, progress pill right */
body .onboarding-step-header { margin: 0 0 18px !important; padding: 0 2px !important; }
body .onboarding-step-label { font-size: 18px !important; letter-spacing: -0.01em !important; color: rgba(255, 255, 255, 0.92) !important; }
body .onboarding-step-count {
    min-width: 58px; height: 32px; display: inline-flex; align-items: center; justify-content: center; padding: 0 14px !important;
    background: #fff !important; color: #000 !important; font-size: 13px !important; font-weight: 800 !important; letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

/* Genre tiles: one gradient + one icon per genre, glossy tilted card, generous spacing */
body .onboarding-chip-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important; gap: 18px !important; }
body .onboarding-chip {
    --g1: #8d67ab; --g2: #4e2f6b; --emoji: "🎵";
    aspect-ratio: 1.6 / 1; padding: 18px 18px 16px !important; border-radius: 14px !important; overflow: hidden;
    background: linear-gradient(135deg, var(--g1) 0%, var(--g2) 100%) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
    font-size: 23px !important; letter-spacing: -0.025em !important; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
    transition: transform 0.25s cubic-bezier(.2, .8, .2, 1), box-shadow 0.25s ease, filter 0.25s ease !important;
}
body .onboarding-chip::after {
    content: var(--emoji); display: flex; align-items: center; justify-content: center;
    right: -8%; bottom: -16%; width: 54%; aspect-ratio: 1; border-radius: 12px; transform: rotate(22deg);
    font-size: 44px; line-height: 1; text-shadow: none;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.30), rgba(255, 255, 255, 0.06) 55%, rgba(0, 0, 0, 0.18));
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    transition: transform 0.3s cubic-bezier(.2, .8, .2, 1);
}
body .onboarding-chip:hover { transform: translateY(-4px) scale(1.02); filter: brightness(1.08); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.28) !important; }
body .onboarding-chip:hover::after { transform: rotate(14deg) translate(-4px, -4px); }
body .onboarding-chip.selected, body .onboarding-chip.is-selected, body .onboarding-chip.active,
body .onboarding-chip.selected:hover, body .onboarding-chip.is-selected:hover, body .onboarding-chip.active:hover {
    background: linear-gradient(135deg, var(--g1) 0%, var(--g2) 100%) !important; color: #fff !important; transform: scale(1.03) !important; border-radius: 14px !important;
    box-shadow: 0 0 0 3px #000, 0 0 0 6px #fff, 0 18px 44px rgba(0, 0, 0, 0.6) !important;
}
body .onboarding-chip.selected::before, body .onboarding-chip.is-selected::before, body .onboarding-chip.active::before {
    width: 30px; height: 30px; right: 12px; top: 12px; background-color: #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
/* per-genre palette + icon (chips carry data-value="<genre>") */
body .onboarding-chip[data-value="Rap"]       { --g1: #ff5a2c; --g2: #a51d05; --emoji: "🎤"; }
body .onboarding-chip[data-value="Drill"]     { --g1: #3b55b8; --g2: #141d47; --emoji: "🧊"; }
body .onboarding-chip[data-value="R&B"]       { --g1: #a977e6; --g2: #5a2f93; --emoji: "💜"; }
body .onboarding-chip[data-value="Afro"]      { --g1: #ff4f8b; --g2: #a40d4b; --emoji: "🪘"; }
body .onboarding-chip[data-value="Pop"]       { --g1: #2fc26a; --g2: #0b6a35; --emoji: "✨"; }
body .onboarding-chip[data-value="Electro"]   { --g1: #3d94ff; --g2: #0d47a8; --emoji: "⚡"; }
body .onboarding-chip[data-value="House"]     { --g1: #e0863f; --g2: #83401b; --emoji: "🪩"; }
body .onboarding-chip[data-value="Techno"]    { --g1: #67adff; --g2: #2a5aa8; --emoji: "🔊"; }
body .onboarding-chip[data-value="Trap"]      { --g1: #6a9db5; --g2: #2c4f61; --emoji: "🔥"; }
body .onboarding-chip[data-value="Dancehall"] { --g1: #f0a726; --g2: #9a5a06; --emoji: "🌴"; }
body .onboarding-chip[data-value="Amapiano"]  { --g1: #d957c0; --g2: #7a1d68; --emoji: "🎹"; }
body .onboarding-chip[data-value="Latino"]    { --g1: #2bbd8f; --g2: #0f6a51; --emoji: "💃"; }

/* Artists step: more breathing room */
body .onboarding-subsection { margin-bottom: 40px !important; }
body .artist-circle-grid-onboarding { gap: 26px 18px !important; }

/* Sticky action bar: deeper fade so content underneath never looks glued to the buttons */
body .onboarding-actions {
    padding: 56px 24px 26px !important;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.72) 45%, rgba(0, 0, 0, 0.96) 100%) !important;
}
body .onboarding-actions .btn-glow, body #musicOnboardingNext { background: #fff !important; color: #000 !important; min-width: 240px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45) !important; }
body #musicOnboardingNext:disabled { background: rgba(255, 255, 255, 0.14) !important; color: rgba(255, 255, 255, 0.5) !important; box-shadow: none !important; }
body .onboarding-secondary-btn { border-color: rgba(255, 255, 255, 0.35) !important; background: rgba(0, 0, 0, 0.35) !important; }
body .onboarding-overlay.ob-lyrics-mode .onboarding-actions { background: none !important; padding-top: 18px !important; }
body .onboarding-overlay.ob-lyrics-mode #musicOnboardingNext { min-width: 0; }

/* ── Lyrics page with nothing playing: one clear empty state ────────────── */
body.nw-no-track #karaokeOverlay .spl-nowbar,
body.nw-no-track #karaokeOverlay .spl-menu,
body.nw-no-track #karaokeOverlay .spl-video,
body.nw-no-track #karaokeOverlay .spl-video-veil { display: none !important; }
body.nw-no-track #karaokeOverlay {
    background:
        radial-gradient(60vmax 40vmax at 15% 0%, rgba(63, 111, 224, 0.22), transparent 60%),
        radial-gradient(50vmax 40vmax at 100% 100%, rgba(80, 56, 160, 0.20), transparent 60%),
        #000 !important;
}
body.nw-no-track #karaokeOverlay .spl-lyrics { display: flex; align-items: center; justify-content: center; inset: 0 !important; width: auto !important; padding: 0 !important; }
body.nw-no-track #karaokeOverlay #karaokeLyricsContent { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 32px !important; max-width: 520px; margin: 0 auto; }
body.nw-no-track #karaokeOverlay #karaokeLyricsContent > * { display: none !important; }
body.nw-no-track #karaokeOverlay #karaokeLyricsContent::before {
    content: ""; width: 96px; height: 96px; border-radius: 50%; margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.08) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M12 3v10.55A4 4 0 1 0 14 17V7h4V3h-6z'/%3E%3C/svg%3E") center / 40px no-repeat;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
body.nw-no-track #karaokeOverlay #karaokeLyricsContent::after {
    content: "Rien en lecture"; font-size: 28px; font-weight: 800; letter-spacing: -0.03em; color: #fff;
}
body.nw-no-track #karaokeOverlay .spl-lyrics::after {
    content: "Lance un titre : les paroles s\2019 affichent ici, synchronisées. Échap pour revenir.";
    position: absolute; left: 50%; top: calc(50% + 86px); transform: translateX(-50%); width: min(460px, 80vw); text-align: center;
    font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, 0.62);
}

/* Idle player bar: hide the "—" artist, keep the title legible */
body.nw-no-track .sp-footer .footer-left .artist { opacity: 0; }
body.nw-no-track .sp-footer .footer-left .title { color: var(--text-subdued, #b3b3b3) !important; }
body.nw-no-track .sp-footer .progress-container { opacity: 0.55; }

/* ── Controls with no behaviour behind them are not shown ───────────────── */
.sp-footer .footer-right .control-btn[title="Se connecter à un appareil"] { display: none !important; }

/* ── Under-main-view artwork: softer so a dark cover does not look like a stain ── */
.main-content > .umv { opacity: 0.7; }

/* ════════════════════════════════════════════════════════════════════════════
 * Pass 3 — launch animation, view transitions, loading skeletons, toasts
 * ══════════════════════════════════════════════════════════════════════════ */

/* ── View transitions: every main view eases in when it is shown ───────── */
#homeView:not(.hidden), #searchView:not(.hidden), #albumView:not(.hidden), #libraryView:not(.hidden), #playlistView:not(.hidden), #artistView:not(.hidden) {
    animation: nwViewIn 0.28s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes nwViewIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.now-playing-panel.visible { animation: nwPanelIn 0.3s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes nwPanelIn { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }

/* ── Loading skeletons: shelves show shimmering cards until the data lands ── */
#popularTracks:empty, #recentlyPlayedTracks:empty:not(.hidden) {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; min-height: 240px;
}
#popularTracks:empty::before, #popularTracks:empty::after,
#recentlyPlayedTracks:empty:not(.hidden)::before, #recentlyPlayedTracks:empty:not(.hidden)::after {
    content: ""; display: block; border-radius: 12px; aspect-ratio: 1 / 1.35;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 25%, rgba(255, 255, 255, 0.10) 50%, rgba(255, 255, 255, 0.05) 75%);
    background-size: 800px 100%; animation: nwShimmer 1.4s linear infinite;
}
#popularTracks:empty::after, #recentlyPlayedTracks:empty:not(.hidden)::after { animation-delay: 0.2s; }
@keyframes nwShimmer { from { background-position: 800px 0; } to { background-position: -800px 0; } }
.track-list[data-display="rows"]:empty { min-height: 200px; }
.skeleton { background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 25%, rgba(255, 255, 255, 0.10) 50%, rgba(255, 255, 255, 0.05) 75%) !important; background-size: 800px 100% !important; }

/* ── Toast: pill above the player, same glass as the rest ───────────────── */
#nwToast {
    bottom: 96px !important; padding: 12px 18px 12px 14px !important; border-radius: 500px !important;
    background: rgba(24, 24, 24, 0.92) !important; border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #fff !important; font: 600 14px/1 Inter, "Segoe UI", system-ui, sans-serif !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5) !important; display: flex; align-items: center; gap: 10px;
    transition: opacity 0.25s ease, transform 0.25s ease !important;
}
#nwToast::before { content: ""; width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0; background: var(--clr-primary, #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 / 14px no-repeat; }
#nwToast[style*="opacity: 0"] { transform: translate(-50%, 8px) !important; }

/* ── Context menu: glass, rounded, clear hover ──────────────────────────── */
.context-menu, #trackContextMenu {
    padding: 6px !important; border-radius: 12px !important; min-width: 220px;
    background: rgba(22, 22, 22, 0.94) !important; border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55) !important; -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    animation: nwRise 0.16s ease both;
}
.context-menu-item { border-radius: 8px !important; padding: 10px 12px !important; font-size: 14px !important; }
.context-menu-item:hover { background: rgba(255, 255, 255, 0.10) !important; }

/* ── Library rail items & sidebar filters: calm, consistent hover ───────── */
.sidebar .library-item { border-radius: 8px; transition: background 0.18s ease; }
.sidebar .library-item:hover { background: rgba(255, 255, 255, 0.07) !important; }
.sidebar .library-item.active, .sidebar .library-item.is-active { background: rgba(255, 255, 255, 0.10) !important; }

/* ── Buttons: press feedback everywhere ─────────────────────────────────── */
.sp-tb-icon:not(:disabled):active, .sp-footer .control-btn:not(:disabled):active, .hes-btn:active, .main-filter-btn:active, .sidebar-filter-btn:active, .sp-home-btn:active { transform: scale(0.95) !important; }
body .sp-footer .play-pause-btn:not(:disabled):active { transform: scale(0.94) !important; }

/* ════════════════════════════════════════════════════════════════════════════
 * Pass 5 — lyrics card "expand" is a real mode; lyrics page always has a way out
 * ══════════════════════════════════════════════════════════════════════════ */

/* Expanded lyrics in the right panel: the lyrics take the whole panel, cover + queue step aside */
body .now-playing-panel:has(#npLyricsPanel.is-expanded) .np-stage,
body .now-playing-panel:has(#npLyricsPanel.is-expanded) #npQueueBox,
body .now-playing-panel:has(#npLyricsPanel.is-expanded) .np-meta,
body .now-playing-panel:has(#npLyricsPanel.is-expanded) .np-track-info { display: none !important; }
body .now-playing-panel:has(#npLyricsPanel.is-expanded) .np-video-bg { height: 100% !important; opacity: 0.35 !important; -webkit-mask-image: none !important; mask-image: none !important; }
body .now-playing-panel:has(#npLyricsPanel.is-expanded) #npLyricsPanel { margin-top: 8px !important; }
body .now-playing-panel #npLyricsPanel.is-expanded .np-lyrics-content { height: calc(100vh - 290px) !important; min-height: 320px; }
body #npLyricsPanel .sp-lc-expand svg { transition: transform 0.3s cubic-bezier(.2, .8, .2, 1); }
body #npLyricsPanel.is-expanded .sp-lc-expand svg { transform: rotate(45deg); }
body #npLyricsPanel.is-expanded .sp-lc-expand { color: var(--clr-primary, #5b9aff) !important; }
body #npLyricsPanel .np-lyrics-content { transition: height 0.35s cubic-bezier(.2, .8, .2, 1) !important; }

/* Lyrics page: a persistent close / back control, clear of the Windows caption buttons */
.spl-page .spl-close, .spl-page > .spl-close.spl-close {
    position: fixed !important; top: 18px; right: 22px; left: auto !important; z-index: 60 !important; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 500px; cursor: pointer; color: #fff;
    background: rgba(0, 0, 0, 0.42); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    font: 700 13px/1 Inter, "Segoe UI", system-ui, sans-serif; letter-spacing: 0.01em;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); transition: opacity 0.3s ease, transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.spl-page .spl-close:hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.4); transform: scale(1.04); }
.spl-page .spl-close svg { flex-shrink: 0; }
html.is-electron .spl-page .spl-close { top: 76px; }       /* below — ▢ ✕ of the window */
.spl-page.is-idle .spl-close { opacity: 0.55; } /* always reachable, just quieter when the cursor rests */
body:has(#karaokeOverlay.active) .next-playing-card { display: none !important; } /* no floating card over the lyrics page */
.spl-page .spl-menu { opacity: 0.75; }
body.nw-no-track #karaokeOverlay .spl-close { display: inline-flex !important; opacity: 1 !important; pointer-events: auto !important; }


/* ── Pass 6: controls audit ─────────────────────────────────────────────── */
/* no sorting exists yet: the "Tri personnalisé" dropdown is not shown */
body .sp-pl-sort { display: none !important; }
/* no friends feature: the "Activité des amis" icon is not shown */
body .sp-top-right .sp-tb-icon[title="Activité des amis"] { display: none !important; }
/* playlist options menu */
.nw-playlist-menu { display: flex; flex-direction: column; min-width: 260px; animation: nwRise 0.16s ease both; }
.nw-playlist-menu .context-menu-item { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; background: none; color: #fff; text-align: left; cursor: pointer; font: 500 14px Inter, "Segoe UI", system-ui, sans-serif; }
.nw-playlist-menu .context-menu-item svg { color: var(--text-subdued, #b3b3b3); flex-shrink: 0; }
.nw-playlist-menu .context-menu-item.is-danger { color: #ff8a95; }
.nw-playlist-menu .context-menu-item.is-danger svg { color: #ff8a95; }

/* ── Pass 6b: "Nouveautés" dialog in the current look (black glass, white CTA) ── */
body .changelog-modal { background: rgba(0, 0, 0, 0.6) !important; -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3); }
body .changelog-modal::before { display: none !important; }
body .changelog-dialog {
    width: min(520px, 92vw) !important; padding: 36px 32px 28px !important; border-radius: 20px !important;
    background: linear-gradient(180deg, rgba(36, 36, 36, 0.92), rgba(16, 16, 16, 0.96)) !important;
    border: 1px solid rgba(255, 255, 255, 0.10) !important; box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7) !important;
    animation: nwRise 0.3s cubic-bezier(.2, .8, .2, 1) both;
}
body .changelog-header { text-align: center; }
body .changelog-icon-wrap { position: relative; display: inline-block; margin-bottom: 14px; }
body .changelog-logo { width: 72px !important; height: 72px !important; border-radius: 18px !important; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 40px rgba(91, 154, 255, 0.25) !important; }
body .changelog-badge { position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); padding: 4px 10px !important; border-radius: 500px !important; background: #5b9aff !important; color: #000 !important; font: 800 10px/1 Inter, "Segoe UI", sans-serif !important; letter-spacing: 0.08em; text-transform: uppercase; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5); }
body .changelog-title { margin: 10px 0 6px !important; font-size: 26px !important; font-weight: 800 !important; letter-spacing: -0.03em !important; color: #fff !important; background: none !important; -webkit-text-fill-color: #fff !important; }
body .changelog-subtitle { color: #b3b3b3 !important; font-size: 14px !important; margin-bottom: 20px !important; }
body .changelog-subtitle span { color: #fff; font-weight: 700; }
body .changelog-body { max-height: 46vh; padding: 0 !important; background: none !important; border: 0 !important; }
body .changelog-list { display: flex; flex-direction: column; gap: 8px; padding: 0 !important; margin: 0 !important; list-style: none !important; }
body .changelog-item {
    position: relative; margin: 0 !important; padding: 12px 14px 12px 40px !important; border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.05) !important; border: 1px solid rgba(255, 255, 255, 0.07) !important;
    color: #e6e6e6 !important; font-size: 13.5px !important; line-height: 1.45 !important;
}
body .changelog-item::before { content: "" !important; position: absolute; left: 14px; top: 14px; width: 16px; height: 16px; 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 / 11px no-repeat; }
body .changelog-footer { padding: 18px 0 0 !important; border: 0 !important; background: none !important; }
body .changelog-btn {
    width: 100%; height: 46px; border: 0 !important; border-radius: 500px !important; cursor: pointer;
    background: #fff !important; color: #000 !important; font: 700 15px Inter, "Segoe UI", sans-serif !important;
    box-shadow: none !important; transition: transform 0.15s ease, filter 0.15s ease !important;
}
body .changelog-btn:hover { transform: scale(1.03); filter: brightness(1.05); }


/* ── Pass 7: podcasts hub ───────────────────────────────────────────────── */
#podcastHub { padding: 4px 0 40px; }
.pod-hero {
    position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 24px;
    padding: 34px 36px; border-radius: 20px; margin-bottom: 18px;
    background: radial-gradient(120% 160% at 100% 0%, rgba(167, 139, 250, 0.45), transparent 55%), linear-gradient(135deg, #2b1a62 0%, #1b2a74 55%, #0b1437 100%);
    border: 1px solid rgba(255, 255, 255, 0.10); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.pod-hero::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 2px, transparent 2px 14px); mask-image: linear-gradient(90deg, transparent, #000 40%, #000 60%, transparent); pointer-events: none; }
.pod-hero-copy { position: relative; max-width: 620px; }
.pod-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 500px; background: rgba(255, 255, 255, 0.12); font: 800 11px/1 Inter, "Segoe UI", sans-serif; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; }
.pod-kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #ff5a7a; box-shadow: 0 0 0 4px rgba(255, 90, 122, 0.25); animation: nwPulseDot 1.6s ease-in-out infinite; }
@keyframes nwPulseDot { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
.pod-title { margin: 14px 0 8px; font-size: clamp(26px, 2.6vw, 38px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; color: #fff; }
.pod-sub { margin: 0; font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, 0.78); }
.pod-hero-art { position: relative; width: 150px; height: 150px; flex-shrink: 0; display: grid; place-items: center; color: #fff; }
.pod-hero-art svg { width: 64px; height: 64px; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5)); position: relative; z-index: 1; }
.pod-hero-art i { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.35); animation: nwRing 2.6s cubic-bezier(.2, .7, .2, 1) infinite; }
.pod-hero-art i:nth-child(3) { animation-delay: 0.85s; } .pod-hero-art i:nth-child(4) { animation-delay: 1.7s; }
.pod-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; }
.pod-chip {
    display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 10px; border-radius: 500px; cursor: pointer;
    background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.10); color: #fff; font: 600 13px Inter, "Segoe UI", sans-serif;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.pod-chip span { font-size: 15px; }
.pod-chip:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.22); transform: translateY(-1px); }
.pod-chip.active { background: #fff; color: #000; border-color: #fff; }
.pod-shelf { margin-bottom: 30px; }
.pod-shelf-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.pod-shelf-head h3 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; color: #fff; }
.pod-more { height: 32px; padding: 0 12px; border-radius: 500px; border: 1px solid rgba(255, 255, 255, 0.14); background: transparent; color: #b3b3b3; font: 700 12px Inter, "Segoe UI", sans-serif; cursor: pointer; transition: color 0.15s, border-color 0.15s; }
.pod-more:hover { color: #fff; border-color: #fff; }
.pod-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 14px; overflow-x: auto; padding: 4px 2px 12px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.pod-row > * { scroll-snap-align: start; }
.pod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.pod-card {
    position: relative; isolation: isolate; cursor: pointer; border-radius: 14px; overflow: hidden; padding: 10px;
    background: rgba(var(--clr-surface-rgb, 20, 20, 20), 0.35); border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.25s cubic-bezier(.2, .8, .2, 1), background 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease;
}
.pod-card:hover { transform: translateY(-4px); background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.16); box-shadow: 0 22px 46px rgba(0, 0, 0, 0.5); }
.pod-thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #1a1a1a; }
.pod-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s cubic-bezier(.2, .8, .2, 1); }
.pod-card:hover .pod-thumb img { transform: scale(1.05); }
.pod-duration { position: absolute; right: 8px; bottom: 8px; padding: 4px 8px; border-radius: 6px; background: rgba(0, 0, 0, 0.75); color: #fff; font: 700 11px/1 Inter, "Segoe UI", sans-serif; letter-spacing: 0.02em; }
.pod-play {
    position: absolute; left: 50%; top: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%; border: 0; cursor: pointer;
    background: #fff; color: #000; display: grid; place-items: center; opacity: 0; transform: scale(0.8);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55); transition: opacity 0.2s ease, transform 0.3s cubic-bezier(.2, 1.4, .4, 1);
}
.pod-play svg { width: 22px; height: 22px; margin-left: 2px; }
.pod-card:hover .pod-play { opacity: 1; transform: scale(1); }
.pod-copy { padding: 10px 4px 4px; }
.pod-name { font-size: 14px; font-weight: 700; line-height: 1.3; color: #fff; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 36px; }
.pod-meta { margin-top: 6px; font-size: 12px; color: #b3b3b3; display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pod-meta i { font-style: normal; opacity: 0.6; }
.pod-empty { grid-column: 1 / -1; padding: 28px; text-align: center; color: #8a8a8a; font-size: 14px; }
.pod-card.is-skeleton { pointer-events: none; }
.pod-card.is-skeleton .pod-thumb { border-radius: 10px; }
.nw-wow .pod-card.nw-now { box-shadow: 0 0 0 2px var(--clr-primary, #5b9aff), 0 18px 40px rgba(0, 0, 0, 0.5); }
@media (max-width: 760px) { .pod-hero { flex-direction: column; align-items: flex-start; padding: 26px 22px; } .pod-hero-art { display: none; } }


/* ── Pass 8: music hub ──────────────────────────────────────────────────── */
#musicHub { padding: 4px 0 40px; }
.mu-hero {
    position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 24px;
    padding: 34px 36px; border-radius: 20px; margin-bottom: 26px;
    background: radial-gradient(120% 160% at 100% 0%, rgba(34, 211, 238, 0.35), transparent 55%), linear-gradient(135deg, #0b2a6b 0%, #1b3fa3 50%, #0a1437 100%);
    border: 1px solid rgba(255, 255, 255, 0.10); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.mu-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 120% at 20% 120%, rgba(91, 154, 255, 0.35), transparent 60%); }
.mu-kicker::before { background: #22d3ee !important; box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.25) !important; }
.mu-hero-art { position: relative; width: 240px; height: 150px; flex-shrink: 0; }
.mu-hero-art i {
    position: absolute; top: 10px; width: 130px; height: 130px; border-radius: 14px; background: #1a1a1a center / cover no-repeat;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.12); transition: transform 0.5s cubic-bezier(.2, .8, .2, 1);
}
.mu-hero-art i:nth-child(1) { right: 110px; transform: rotate(-10deg) translateY(6px); z-index: 1; }
.mu-hero-art i:nth-child(2) { right: 55px; transform: rotate(-2deg); z-index: 2; }
.mu-hero-art i:nth-child(3) { right: 0; transform: rotate(8deg) translateY(4px); z-index: 3; }
.mu-hero:hover .mu-hero-art i:nth-child(1) { transform: rotate(-14deg) translate(-8px, 2px); }
.mu-hero:hover .mu-hero-art i:nth-child(3) { transform: rotate(12deg) translate(8px, 0); }
.pod-shelf-note { font-size: 12.5px; color: #8a8a8a; }
/* horizontal shelves reusing the existing card renderers */
.mu-row { display: grid !important; grid-auto-flow: column; grid-auto-columns: 184px; gap: 14px; overflow-x: auto; padding: 4px 2px 14px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.mu-row > * { scroll-snap-align: start; min-width: 0; }
.mu-row .track-card, .mu-row .album-card { animation: none !important; }
.mu-artists { display: grid; grid-auto-flow: column; grid-auto-columns: 150px; gap: 16px; overflow-x: auto; padding: 4px 2px 14px; scrollbar-width: thin; }
.mu-artist { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 8px 14px; border: 1px solid transparent; border-radius: 14px; background: transparent; color: #fff; cursor: pointer; text-align: center; transition: background 0.2s ease, border-color 0.2s ease, transform 0.25s cubic-bezier(.2, .8, .2, 1); }
.mu-artist:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.10); transform: translateY(-3px); }
.mu-artist-img { display: block; width: 112px; height: 112px; border-radius: 50%; overflow: hidden; background: #282828; box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55); margin-bottom: 8px; }
.mu-artist-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s cubic-bezier(.2, .8, .2, 1); }
.mu-artist:hover .mu-artist-img img { transform: scale(1.08); }
.mu-artist-name { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.mu-artist-meta { font-size: 12px; color: #8a8a8a; text-transform: capitalize; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.mu-artist.is-skeleton { pointer-events: none; }
.mu-genres { margin-top: 4px; }
.track-card.is-skeleton { pointer-events: none; }


/* ── Pass 9: library filters, albums hub, queue empty state ─────────────── */
#libraryCollections .lib-row-item.lib-hidden { display: none !important; }
.lib-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin: 12px 0; padding: 22px 24px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); border: 1px dashed rgba(255, 255, 255, 0.14); }
.lib-empty strong { font-size: 16px; font-weight: 800; letter-spacing: -0.01em; color: #fff; }
.lib-empty span { font-size: 13.5px; color: #b3b3b3; line-height: 1.5; max-width: 560px; }
.lib-empty .hes-btn { margin-top: 6px; }
.lib-empty .hes-btn.is-primary { background: var(--clr-primary, #5b9aff); color: var(--clr-on-primary, #000); }
body .library-sort-row .lib-sort-right:empty { display: none; }
#albumsHub { padding: 4px 0 40px; }
.al-hero { background: radial-gradient(120% 160% at 100% 0%, rgba(251, 146, 60, 0.35), transparent 55%), linear-gradient(135deg, #3b1d5e 0%, #7c2d8a 50%, #1a1030 100%) !important; }
.al-kicker::before { background: #fb923c !important; box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.25) !important; }
/* "À suivre" with nothing queued */
#npQueuePreview:not(:has(*)) { display: block; padding: 14px 4px 6px; }
#npQueuePreview:not(:has(*))::before { content: "Rien à suivre pour l'instant. Lance un album ou une playlist pour remplir la file."; display: block; font-size: 13px; line-height: 1.5; color: var(--text-subdued, #b3b3b3); }
#npQueueBox:has(#npQueuePreview:not(:has(*))) .np-box-action { display: none; }

/* ── Pass 10: weekly recap card, "Wrapped" edition (no longer tinted by the accent) ── */
body .weekly-recap-section .wr-card {
    --wr-a: #ff4d8d; --wr-b: #ffb347; --wr-c: #6d5dfc;
    position: relative; isolation: isolate; gap: 40px !important; min-height: 236px !important;
    padding: 34px 40px !important; border-radius: 22px !important; overflow: hidden;
    background: #0a0a16 !important; border: 1px solid rgba(255, 255, 255, 0.10) !important;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.10) !important;
    transition: transform 0.3s cubic-bezier(.2, .8, .2, 1), box-shadow 0.3s ease !important;
}
body .weekly-recap-section .wr-card:hover { transform: translateY(-3px) !important; box-shadow: 0 40px 90px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.14) !important; }
/* living background: two glows + a diagonal colour wash that slowly breathes */
body .weekly-recap-section .wr-card::before {
    content: "" !important; display: block !important; position: absolute; inset: -40%; z-index: 0; pointer-events: none;
    background:
        radial-gradient(42% 60% at 82% 18%, rgba(255, 77, 141, 0.75), transparent 65%),
        radial-gradient(38% 60% at 92% 95%, rgba(255, 179, 71, 0.5), transparent 65%),
        radial-gradient(48% 65% at 8% 70%, rgba(109, 93, 252, 0.75), transparent 65%),
        linear-gradient(115deg, #1a0f3d 0%, #0d1240 45%, #0a0a16 100%);
    animation: wrBreathe 14s ease-in-out infinite alternate;
}
body .weekly-recap-section .wr-card::after {
    content: "" !important; display: block !important; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background:
        radial-gradient(120% 100% at 50% 120%, transparent 55%, rgba(0, 0, 0, 0.55) 100%),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0 2px, transparent 2px 18px);
    mix-blend-mode: screen;
}
@keyframes wrBreathe { from { transform: translate(0, 0) scale(1); } to { transform: translate(-4%, 3%) scale(1.08); } }
body .weekly-recap-section .wr-card > * { position: relative; z-index: 1; }

/* sleeves: bigger, rounded, lit from below */
body .weekly-recap-section .wr-art { flex: 0 0 250px !important; height: 190px !important; }
body .weekly-recap-section .wr-art::after {
    content: ""; position: absolute; left: 10%; right: 0; bottom: -10px; height: 36px; border-radius: 50%;
    background: radial-gradient(60% 100% at 50% 50%, rgba(255, 77, 141, 0.45), transparent 70%); filter: blur(10px);
}
body .weekly-recap-section .wr-sleeve {
    width: 150px !important; height: 150px !important; border-radius: 12px !important;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.14) !important;
}
body .weekly-recap-section .wr-sleeve-0 { left: 0; transform: translateY(-50%) rotate(-8deg); }
body .weekly-recap-section .wr-sleeve-1 { left: 34px; transform: translateY(-50%) rotate(1deg); }
body .weekly-recap-section .wr-sleeve-2 { left: 66px; transform: translateY(-50%) rotate(9deg); }
body .weekly-recap-section .wr-sleeve-3 { left: 92px; transform: translateY(-50%) rotate(16deg); opacity: 0.9; }
body .weekly-recap-section .wr-card:hover .wr-sleeve-0 { transform: translateY(-54%) rotate(-12deg) translateX(-10px); }
body .weekly-recap-section .wr-card:hover .wr-sleeve-1 { transform: translateY(-52%) rotate(-1deg) translateX(-2px); }
body .weekly-recap-section .wr-card:hover .wr-sleeve-2 { transform: translateY(-48%) rotate(12deg) translateX(10px); }
body .weekly-recap-section .wr-card:hover .wr-sleeve-3 { transform: translateY(-45%) rotate(20deg) translateX(18px); }

/* copy */
body .weekly-recap-section .wr-kicker {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 500px;
    background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.10);
    font-size: 11px !important; letter-spacing: 0.12em !important; color: #fff !important;
}
body .weekly-recap-section .wr-kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--wr-a); box-shadow: 0 0 0 4px rgba(255, 77, 141, 0.25); }
body .weekly-recap-section .wr-title {
    margin: 14px 0 0 !important; font-size: clamp(30px, 2.8vw, 40px) !important; letter-spacing: -0.04em !important; line-height: 1.02 !important;
    background: linear-gradient(90deg, #fff 0%, #fff 60%, #ffd1e3 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
body .weekly-recap-section .wr-meta { margin-top: 8px !important; font-size: 15px !important; color: rgba(255, 255, 255, 0.78) !important; }
body .weekly-recap-section .wr-stats { gap: 10px !important; margin-top: 20px !important; flex-wrap: wrap; }
body .weekly-recap-section .wr-stats div {
    min-width: 92px; padding: 10px 14px; border-radius: 14px;
    background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.10); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
body .weekly-recap-section .wr-stats b {
    font-size: 26px !important; letter-spacing: -0.04em !important; line-height: 1;
    background: linear-gradient(180deg, #fff, #ffd9e6); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
body .weekly-recap-section .wr-stats span { margin-top: 4px; font-size: 11px !important; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.62) !important; }
body .weekly-recap-section .wr-btn {
    margin-top: 22px !important; height: 44px !important; padding: 0 20px 0 24px !important; display: inline-flex; align-items: center; gap: 10px;
    font-size: 15px !important; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45) !important;
    transition: transform 0.25s cubic-bezier(.2, 1.4, .4, 1), box-shadow 0.25s ease !important;
}
body .weekly-recap-section .wr-btn::after { content: "→"; font-weight: 800; transition: transform 0.25s ease; }
body .weekly-recap-section .wr-card:hover .wr-btn { transform: scale(1.05) !important; box-shadow: 0 16px 40px rgba(255, 77, 141, 0.35) !important; }
body .weekly-recap-section .wr-card:hover .wr-btn::after { transform: translateX(4px); }
@media (prefers-reduced-motion: reduce) { body .weekly-recap-section .wr-card::before { animation: none; } }

/* ── Pass 11: genre tiles, 2026 edition (hub "Explorer par genre" + search "Parcourir tout") ── */
body .sp-browse-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important; grid-auto-rows: 124px; grid-auto-flow: dense; gap: 14px !important; }
body .sp-browse-grid > :nth-child(1), body .sp-browse-grid > :nth-child(6), body .sp-browse-grid > :nth-child(11) { grid-column: span 2; }
body .sp-browse-tile {
    --g1: #8d67ab; --g2: #3b2a55; --emoji: "🎵";
    aspect-ratio: auto !important; height: 100%; border-radius: 18px !important; padding: 16px 18px !important;
    display: flex; align-items: flex-end; isolation: isolate;
    background:
        radial-gradient(120% 120% at 100% 0%, var(--g1) 0%, rgba(0, 0, 0, 0) 60%),
        radial-gradient(80% 90% at 0% 100%, rgba(255, 255, 255, 0.10), transparent 60%),
        linear-gradient(135deg, var(--g2) 0%, #0b0b14 135%) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.20), 0 14px 34px rgba(0, 0, 0, 0.45) !important;
    transition: transform 0.3s cubic-bezier(.2, .8, .2, 1), box-shadow 0.3s ease, border-color 0.3s ease !important;
}
body .sp-browse-tile i { display: none !important; }
body .sp-browse-tile span {
    font-size: 20px !important; letter-spacing: -0.025em !important; line-height: 1.1; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45) !important;
    display: flex; flex-direction: column; gap: 4px;
}
body .sp-browse-tile span::after { content: "Explorer →"; font: 600 12px/1 Inter, "Segoe UI", sans-serif; letter-spacing: 0; color: rgba(255, 255, 255, 0.72); opacity: 0; transform: translateY(4px); transition: opacity 0.25s ease, transform 0.25s ease; }
body .sp-browse-tile::before {
    content: var(--emoji); position: absolute; right: 14px; top: 8px; z-index: 0; font-size: 58px; line-height: 1;
    transform: rotate(-10deg); filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.45)); opacity: 0.95;
    transition: transform 0.45s cubic-bezier(.2, 1.3, .4, 1);
}
body .sp-browse-tile::after {
    content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.22) 50%, transparent 60%);
    transform: translateX(-130%); transition: transform 0.7s cubic-bezier(.2, .8, .2, 1);
}
body .sp-browse-tile:hover { transform: translateY(-4px) scale(1.02) !important; filter: none !important; border-color: rgba(255, 255, 255, 0.28) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 24px 50px rgba(0, 0, 0, 0.6) !important; }
body .sp-browse-tile:hover::before { transform: rotate(0deg) scale(1.12) translateY(-2px); }
body .sp-browse-tile:hover::after { transform: translateX(130%); }
body .sp-browse-tile:hover span::after { opacity: 1; transform: none; }
/* per-genre palette + glyph */
body .sp-browse-tile[data-q="Rap FR"]      { --g1: #ff6a3d; --g2: #7a1e08; --emoji: "🎤"; }
body .sp-browse-tile[data-q="Drill"]       { --g1: #4f6bff; --g2: #121a4a; --emoji: "🧊"; }
body .sp-browse-tile[data-q="Pop"]         { --g1: #c084fc; --g2: #4c1d95; --emoji: "✨"; }
body .sp-browse-tile[data-q="Afro"]        { --g1: #ff5c8a; --g2: #8a1040; --emoji: "🪘"; }
body .sp-browse-tile[data-q="R&B"]         { --g1: #f472b6; --g2: #7a1457; --emoji: "💜"; }
body .sp-browse-tile[data-q="Hip-hop US"]  { --g1: #fbbf24; --g2: #7c3f06; --emoji: "🗽"; }
body .sp-browse-tile[data-q="Électro"]     { --g1: #38bdf8; --g2: #0b3a8a; --emoji: "⚡"; }
body .sp-browse-tile[data-q="Rap belge"]   { --g1: #7dd3fc; --g2: #1e4b63; --emoji: "🧇"; }
body .sp-browse-tile[data-q="Amapiano"]    { --g1: #34d399; --g2: #0b4d3a; --emoji: "🎹"; }
body .sp-browse-tile[data-q="Reggaeton"]   { --g1: #fb7185; --g2: #8a0f1f; --emoji: "🔥"; }
body .sp-browse-tile[data-q="Chill"]       { --g1: #a78bfa; --g2: #2e1f4a; --emoji: "🌙"; }
body .sp-browse-tile[data-q="Soirée"]      { --g1: #e879f9; --g2: #6b1a7a; --emoji: "🪩"; }
body .sp-browse-tile[data-q="Sport"]       { --g1: #4ade80; --g2: #0f5a2a; --emoji: "🏃"; }
body .sp-browse-tile[data-q="Love"]        { --g1: #fb7185; --g2: #7a1030; --emoji: "💘"; }
body .sp-browse-tile[data-q="Années 2010"] { --g1: #60a5fa; --g2: #1e3a8a; --emoji: "📀"; }
body .sp-browse-tile[data-q="Nouveautés"]  { --g1: #a3e635; --g2: #365314; --emoji: "🆕"; }
body .sp-browse-title { font-size: 24px !important; font-weight: 800 !important; letter-spacing: -0.02em; margin: 6px 0 16px !important; }
@media (max-width: 760px) { body .sp-browse-grid > * { grid-column: span 1 !important; } }
