/* ==========================================================================
   Lite mode (app/perf.js puts .lite on <html>).
   For slower phones: the effects that cost the most to draw are swapped for
   flat ones that look close. Animations stay (they're cheap transforms and
   fades), only the blur and glow work goes.
   ========================================================================== */

/* Glass: blurring what's behind a panel is redrawn on every frame something
   moves under it. */
html.lite *,
html.lite *::before,
html.lite *::after {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}


/* Big blurred album art behind Music: a 40 to 70px blur over the whole screen. */
html.lite #audius-player-modal .om-hero::before,
html.lite #audius-player-modal.om-np-open .om-player::before,
html.lite .audius-ambient-backdrop {
    filter: none !important;
    -webkit-filter: none !important;
    background-image: none !important;
    background-color: color-mix(in srgb, var(--accent-primary, #4790e6) 18%, transparent) !important;
}

/* Hidden media in Social: a flat cover is cheaper than a heavy blur. */
html.lite .sx-media.is-hidden .sx-media-item {
    filter: none !important;
    opacity: 0.08;
}

/* Soft glows on large surfaces are the next most costly thing to paint while
   scrolling. Small shadows on buttons stay. */
html.lite .fullscreen-app,
html.lite .ok-hero,
html.lite .hs-widget,
html.lite .modal-content {
    box-shadow: none !important;
}
