/* songs.css - Spotify-flavored song randomizer */

.songs-page {
    position: relative;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding-bottom: 60px;
    box-sizing: border-box;
}

/* Album-colour glow. --song-glow (r,g,b) comes from the album art (songs-glow.js),
   .song-playing tracks the embed's play state, .glow-off is the user's toggle.
   An outer element handles the fade (opacity transition), an inner one the wave
   (opacity keyframes). Both opacity-only, GPU-promoted and paused when idle. */

/* each card gets its own glow in a relative host alongside it, so the box-shadow rim
   traces just that card (not clipped by its overflow) and nothing bridges the gap */
.songs-glow-host { position: relative; }

.songs-glow {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;   /* fade out */
}

.songs-glow-wave {
    position: absolute;
    inset: 0;
    border-radius: 18px;
    box-shadow: 0 0 50px 8px rgb(var(--song-glow, 0, 0, 0));
    animation: songs-wave 4s ease-in-out infinite;
    animation-play-state: paused;
}

@keyframes songs-wave {
    0%, 100% { opacity: 0.25; }
    28%      { opacity: 0.48; }
    52%      { opacity: 0.32; }
    76%      { opacity: 0.40; }
}

/* glow ringing the app card. The wave matches the card's box (centred 96vw x 90vh)
   so its shadow spills only into the surrounding margin. */
.app-song-glow {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.app-song-glow-wave {
    position: absolute;
    left: 2vw;
    top: 5vh;
    width: 96vw;
    height: 90vh;
    border-radius: 20px;
    box-shadow: 0 0 40px 2px rgb(var(--song-glow, 0, 0, 0));
    animation: songs-wave 4s ease-in-out infinite;
    animation-play-state: paused;
    transition: transform 0.4s ease;   /* follow the card's hover lift */
}

/* the app card lifts on hover; lift the ring with it (matches base.css timing) */
html:has(.app-container:hover) .app-song-glow-wave { transform: translateY(-3px); }

html.song-playing:not(.glow-off) .songs-glow { opacity: 0.60; transition: opacity 1.1s ease; }
html.song-playing:not(.glow-off) .app-song-glow { opacity: 0.80; transition: opacity 1.1s ease; }
/* only promote while animating, so the big app-glow layer isn't kept in memory when idle */
html.song-playing:not(.glow-off) .songs-glow-wave,
html.song-playing:not(.glow-off) .app-song-glow-wave {
    animation-play-state: running;
    will-change: opacity;
}

.songs-filter,
.songs-result,
.songs-empty { position: relative; z-index: 1; }

@media (prefers-reduced-motion: reduce) {
    .songs-glow-wave,
    .app-song-glow-wave { animation: none; opacity: 0.9; }
}

/* === Persistent Songs host ===
   Songs renders once in the shell and stays alive across navigation. On /songs it
   flows normally; elsewhere it's parked off-screen (still alive, still playing) and
   only the player floats to the corner. The embed is never re-parented or resized in
   height, so playback never stops. */
.songs-host-away {
    position: absolute;
    left: -200vw;
    top: 0;
    height: 0;
    overflow: hidden;   /* collapse so it adds no scroll space; the fixed player still escapes */
}

/* inline player (in the result) on /songs */
.songs-player-section { padding: 18px 30px; contain: layout paint; }
.songs-player-mount {
    min-height: 152px;
    border-radius: 12px;
    overflow: hidden;
    /* dark fill so any area the embed doesn't cover reads dark, not white (iOS
       leaves white around the player when it sits inside a zoomed element) */
    background: #181818;
}

    .songs-player-mount iframe {
        display: block;
        width: 100%;
        background: transparent;
    }

/* off /songs: just the player floats to a compact corner card */
.songs-host-away .songs-player-section {
    position: fixed;
    left: auto;
    right: 22px;
    bottom: 20px;
    z-index: 50;
    width: 340px;
    max-width: calc(100vw - 44px);
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    background: #181818;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.55);
}

@media (max-width: 720px) {
    .songs-host-away .songs-player-section { left: 12px; right: 12px; width: auto; }
}

/* === Filter card === */
.songs-filter {
    background: var(--surface-grad);
    border: 1px solid var(--surface-border);
    border-radius: 16px;
    padding: 26px 28px;
    margin-bottom: 10px;
    box-shadow: var(--surface-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.songs-filter-head {
    text-align: center;
}

    .songs-filter-head h2 {
        margin: 0;
        font-size: 1.4rem;
        font-weight: 600;
        color: #fff;
    }

    .songs-filter-head p {
        margin: 4px 0 0;
        color: #888;
        font-size: 0.92rem;
    }

/* === Spotify branding (nav icon, home card icon, page attribution) ===
   The official green icon is used unmodified per Spotify's brand guidelines. */
.nav-spotify-icon {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    vertical-align: -3px;
}

/* Home feature card: drop the gradient tile so the green icon reads clean */
.home-feature-icon-spotify {
    background: transparent;
    border: none;
}

    .home-feature-icon-spotify img {
        width: 30px;
        height: 30px;
        display: block;
    }

.songs-attribution {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    font-size: 0.78rem;
    color: #888;
    text-decoration: none;
    transition: color 0.15s ease;
}

    .songs-attribution:hover {
        color: #bbb;
    }

    .songs-attribution img {
        width: 16px;
        height: 16px;
    }

    .songs-attribution-word {
        color: #1ED760;
        font-weight: 600;
    }

/* === Sidebar "Songs" button glow ===
   While a song is playing this button picks up the track's own colour and a
   slow light sweep, so it stays visible from any page. Both the sweep (transform)
   and the fade (opacity) are composite-only; falls back to Spotify green until a
   colour is sampled. Gated by .song-playing / :not(.glow-off), same as the rims. */
.nav-item-songs {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition: background 0.4s ease, box-shadow 0.4s ease, color 0.4s ease;
}

    .nav-item-songs::after {
        content: "";
        position: absolute;
        inset: -40%;   /* overscan so the blur has no hard edges inside the button */
        z-index: -1;   /* behind the icon + label, above the button's own tint */
        /* two off-centre blobs in the song colour for an uneven, blurred glow
           rather than a clean gradient; clipped by the button's overflow */
        background:
            radial-gradient(42% 60% at 32% 45%, rgba(var(--song-glow, 30, 215, 96), 0.65), transparent 72%),
            radial-gradient(38% 55% at 74% 60%, rgba(var(--song-glow, 30, 215, 96), 0.45), transparent 70%);
        filter: blur(11px);
        opacity: 0;
        pointer-events: none;
    }

html.song-playing:not(.glow-off) .nav-item-songs {
    background: rgba(var(--song-glow, 30, 215, 96), 0.16);
    box-shadow: 0 0 16px rgba(var(--song-glow, 30, 215, 96), 0.45),
                inset 0 0 0 1px rgba(var(--song-glow, 30, 215, 96), 0.30);
    color: #fff;
}

    html.song-playing:not(.glow-off) .nav-item-songs::after {
        opacity: 1;
        animation: songs-nav-glow 5s ease-in-out infinite;
        will-change: transform, opacity;
    }

/* slow, irregular drift + breathe so the blurred colour feels organic, not a slide */
@keyframes songs-nav-glow {
    0%   { opacity: 0.45; transform: translate3d(-5%, 1%, 0) scale(1.04); }
    30%  { opacity: 0.85; transform: translate3d(4%, -2%, 0) scale(1.12); }
    62%  { opacity: 0.60; transform: translate3d(-2%, 3%, 0) scale(1.07); }
    100% { opacity: 0.45; transform: translate3d(-5%, 1%, 0) scale(1.04); }
}

@media (prefers-reduced-motion: reduce) {
    .nav-item-songs::after { animation: none; opacity: 0; }
}

/* === Multi-select dropdown (matches Games pattern) === */
.songs-multi { position: relative; }

.songs-multi-trigger {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--surface-border);
    border-radius: 10px;
    color: #ddd;
    font-size: 0.92rem;
    font-family: inherit;
    cursor: pointer;
    min-width: 180px;
    transition: border-color 160ms ease, background 160ms ease;
}

    .songs-multi-trigger:hover:not(:disabled) {
        border-color: var(--surface-border-hover);
        background: rgba(255, 255, 255, 0.06);
    }

    .songs-multi-trigger.open {
        border-color: var(--accent);
        background: rgba(255, 255, 255, 0.06);
    }

    .songs-multi-trigger:disabled {
        opacity: 0.55;
        cursor: not-allowed;
    }

.songs-multi-label { color: #fff; font-weight: 500; flex: 1; text-align: left; }

.songs-multi-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    background: var(--accent);
    color: #fff;
    border-radius: 11px;
    font-size: 0.78rem;
    font-weight: 600;
}

.songs-multi-chevron {
    color: #888;
    font-size: 0.85rem;
    transition: transform 180ms ease, color 180ms ease;
}

.songs-multi-trigger.open .songs-multi-chevron {
    transform: rotate(180deg);
    color: var(--accent);
}

.songs-multi-backdrop { position: fixed; inset: 0; z-index: 25; }

.songs-multi-panel {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 30;
    min-width: 240px;
    max-width: 300px;
    background: #14141a;
    border: 1px solid var(--surface-border);
    border-radius: 10px;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.55);
    overflow: hidden;
}

.songs-multi-list { max-height: 320px; overflow-y: auto; padding: 6px; }

.songs-multi-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 10px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: #ddd;
    font-size: 0.9rem;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: background 140ms ease;
}

    .songs-multi-option:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }

    .songs-multi-option.active {
        background: color-mix(in srgb, var(--accent) 16%, transparent);
        color: #fff;
    }

    .songs-multi-option i { color: #666; font-size: 1rem; }
    .songs-multi-option.active i { color: var(--accent); }

.songs-multi-foot { border-top: 1px solid var(--surface-border); padding: 6px; }

.songs-multi-clear {
    width: 100%;
    padding: 6px;
    background: transparent;
    border: none;
    color: #888;
    font-size: 0.85rem;
    font-family: inherit;
    cursor: pointer;
    border-radius: 6px;
}

    .songs-multi-clear:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }

/* === Text inputs (artist / album) === */
.songs-text-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    width: 100%;
    max-width: 600px;
}

.songs-text-input {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.songs-text-label {
    color: #aaa;
    font-size: 0.82rem;
    padding-left: 4px;
}

.songs-text-input input {
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--surface-border);
    border-radius: 10px;
    color: #fff;
    font-size: 0.95rem;
    font-family: inherit;
}

    .songs-text-input input:focus {
        outline: none;
        border-color: var(--accent);
        background: rgba(255, 255, 255, 0.06);
    }

/* === Controls row: year / popularity / explicit === */
.songs-controls-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-end;   /* year inputs and the toggle pill share a baseline */
    gap: 20px 44px;
    width: 100%;
    max-width: 920px;
}

.songs-year-range {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.songs-year-inputs { display: flex; align-items: center; gap: 10px; }

.songs-year-input {
    width: 92px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--surface-border);
    border-radius: 8px;
    color: #ddd;
    font-size: 0.92rem;
    font-family: inherit;
    text-align: center;
}

    .songs-year-input:focus {
        outline: none;
        border-color: var(--accent);
        background: rgba(255, 255, 255, 0.06);
    }

.songs-year-sep { color: #666; }

.songs-slider {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.songs-slider-label { color: #aaa; font-size: 0.88rem; }

    .songs-slider-label strong {
        color: #fff;
        font-weight: 600;
        margin: 0 4px;
        font-variant-numeric: tabular-nums;
    }

.songs-slider-suffix { color: #666; font-size: 0.82rem; }

.songs-slider input[type=range] { width: 100%; accent-color: var(--accent); }

.songs-toggle-wrap { display: flex; justify-content: center; align-items: center; }

.songs-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--surface-border);
    border-radius: 999px;
    color: #ddd;
    font-size: 0.88rem;
    cursor: pointer;
}

    .songs-toggle input { accent-color: var(--accent); }

/* === Primary action === */
.songs-randomize {
    width: 100%;
    max-width: 420px;
    padding: 14px 24px;
    font-size: 1.05rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.songs-spin {
    display: inline-block;
    animation: songs-spin 1s linear infinite;
}

@keyframes songs-spin { to { transform: rotate(360deg); } }

.songs-pool { color: #aaa; font-size: 0.88rem; text-align: center; }

    .songs-pool strong { color: #fff; margin-right: 4px; }

.songs-error {
    width: 100%;
    max-width: 520px;
    padding: 12px 16px;
    background: rgba(220, 53, 69, 0.12);
    border: 1px solid rgba(220, 53, 69, 0.35);
    border-radius: 10px;
    color: #f5a5ad;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
}

/* === Scroll cue: breathing room between the filter and the result, with a
   bouncing down-chevron that jumps to the freshly-picked track === */
.songs-scroll-cue-wrap {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    padding: 18px 0 32px;   /* the breathing room between the filter and result */
}

.songs-scroll-cue {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--surface-border);
    background: #16161b;                 /* solid so it reads over the card seam */
    color: #aaa;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
    animation: songs-cue-bounce 1.8s ease-in-out infinite;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

    .songs-scroll-cue:hover {
        background: #1f1f26;
        border-color: var(--surface-border-hover);
        color: #fff;
    }

@keyframes songs-cue-bounce {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(6px); }
}

@media (prefers-reduced-motion: reduce) {
    .songs-scroll-cue { animation: none; }
}

/* === Result card === */
.songs-result {
    background: var(--surface-grad);
    border: 1px solid var(--surface-border);
    border-radius: 18px;
    box-shadow: var(--surface-shadow);
    overflow: hidden;
    contain: layout style paint;
}

/* === Hero === */
.songs-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    gap: 32px;
    padding: 40px;
    background: linear-gradient(160deg,
        color-mix(in srgb, var(--accent) 16%, transparent) 0%,
        transparent 70%
    );
    border-bottom: 1px solid var(--surface-border);
    align-items: flex-end;
}

/* Spotify-style ambient backdrop: a big blurred copy of the album art tints the
   whole hero with the cover's own colours. Pure CSS - no pixel sampling/CORS. */
.songs-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
    /* static (no drift animation) + smaller blur - a continuously-animating blur
       was a real perf cost. scale 1.1 just hides the soft blurred edges. */
    transform: scale(1.1);
    filter: blur(34px) saturate(1.5) brightness(0.55);
}

    .songs-hero-bg::after {
        content: "";
        position: absolute;
        inset: 0;
        /* scrim so titles stay legible over bright covers */
        background: linear-gradient(150deg, rgba(12, 12, 14, 0.30), rgba(12, 12, 14, 0.88));
    }

/* keep hero content above the backdrop */
.songs-cover,
.songs-hero-info { position: relative; z-index: 1; }

.songs-cover {
    width: 280px;
    height: 280px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.75);
    flex-shrink: 0;
}

.songs-cover-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a1d;
    color: #444;
    font-size: 4rem;
}

.songs-hero-info { flex: 1; min-width: 0; }

.songs-kind {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.9;
    margin-bottom: 8px;
}

/* Live equalizer - reads as "now playing". Animates transform only (composite). */
.songs-eq {
    display: inline-flex;
    align-items: flex-end;
    gap: 2px;
    height: 15px;
}

    .songs-eq span {
        width: 3px;
        height: 100%;
        border-radius: 2px;
        background: #1ED760;                 /* Spotify green */
        transform-origin: bottom;
        animation: songs-eq 0.9s ease-in-out infinite;
    }

        .songs-eq span:nth-child(2) { animation-duration: 0.7s; animation-delay: 0.15s; }
        .songs-eq span:nth-child(3) { animation-duration: 1.1s; animation-delay: 0.35s; }
        .songs-eq span:nth-child(4) { animation-duration: 0.8s; animation-delay: 0.05s; }

@keyframes songs-eq {
    0%, 100% { transform: scaleY(0.3); }
    50%      { transform: scaleY(1); }
}

/* Smooth entrance each time a new track lands (re-keyed by track id) */
.songs-result {
    animation: songs-rise 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes songs-rise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .songs-result { animation: none; }
    .songs-eq span { animation: none; transform: scaleY(0.6); }
    .songs-hero-bg { animation: none; transform: scale(1.3); }
}

.songs-title {
    margin: 0 0 12px;
    font-size: 3.2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.songs-artists {
    color: #ddd;
    font-size: 1.05rem;
    margin-bottom: 14px;
    line-height: 1.4;
}

.songs-artist-link {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

    .songs-artist-link:hover { text-decoration: underline; }

.songs-artists-sep { color: #888; margin: 0 4px; }

.songs-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    color: #bbb;
    font-size: 0.9rem;
    margin-bottom: 14px;
}

    .songs-meta span:not(.songs-pop-badge):not(.songs-explicit-badge):not(:last-child)::after {
        content: " ·";
        color: #555;
        margin-left: 12px;
    }

.songs-pop-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
}

    .songs-pop-badge i { color: #ff8c4a; font-size: 0.85rem; }

.songs-explicit-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #888;
    color: #1a1a1a;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 800;
}

.songs-genre-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.songs-genre-pill {
    padding: 3px 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    color: #ddd;
    font-size: 0.78rem;
    text-transform: capitalize;
}

.songs-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.songs-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    color: #fff;
    font-size: 0.94rem;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: background 160ms ease, transform 160ms ease;
}

    .songs-cta:hover:not(:disabled) {
        background: rgba(255, 255, 255, 0.16);
        transform: scale(1.03);
    }

    .songs-cta:disabled { opacity: 0.55; cursor: not-allowed; }

.songs-cta-primary { background: var(--accent); border-color: var(--accent); }

    .songs-cta-primary:hover:not(:disabled) {
        background: var(--accent);
        filter: brightness(1.12);
    }

/* Spotify-green CTA - keeps brand recognition without overriding theme */
.songs-cta-spotify {
    background: #1ed760;
    border-color: #1ed760;
    color: #000;
}

    .songs-cta-spotify:hover {
        background: #1ed760;
        filter: brightness(1.08);
        color: #000;
    }

/* === Sections === */
.songs-section {
    padding: 26px 30px;
    border-bottom: 1px solid var(--surface-border);
}

    .songs-section:last-child { border-bottom: none; }

.songs-section-title {
    margin: 0 0 18px;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
}

/* === Album tracklist === */
.songs-tracklist {
    list-style: none;
    margin: 0;
    padding: 0;
}

.songs-track-row {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 9px 12px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #cfcfcf;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

    .songs-track-row:hover {
        background: rgba(255, 255, 255, 0.06);
        color: #fff;
    }

    .songs-track-row.active {
        background: rgba(30, 215, 96, 0.10);
        color: #fff;
    }

.songs-track-num {
    flex-shrink: 0;
    width: 22px;
    text-align: center;
    color: #888;
    font-size: 0.9rem;
    font-variant-numeric: tabular-nums;
}

.songs-track-row.active .songs-track-num { color: #1ED760; }

.songs-track-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.songs-track-dur {
    flex-shrink: 0;
    color: #888;
    font-size: 0.85rem;
    font-variant-numeric: tabular-nums;
}

.songs-explicit-sm {
    width: 16px;
    height: 16px;
    font-size: 0.6rem;
    flex-shrink: 0;
}

/* small inline equalizer used in the active tracklist row */
.songs-eq-sm {
    height: 11px;
    gap: 1.5px;
}

    .songs-eq-sm span { width: 2.5px; }

/* === Audio feature tiles + bars === */
.songs-feature-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.songs-feature-tile {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--surface-border);
    border-radius: 10px;
    padding: 14px;
    text-align: center;
}

    .songs-feature-tile i {
        color: var(--accent);
        font-size: 1.3rem;
        display: block;
        margin-bottom: 6px;
    }

.songs-feature-tile-label {
    color: #888;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

.songs-feature-tile-value {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

    .songs-feature-tile-value small {
        color: #888;
        font-size: 0.7em;
        font-weight: 500;
        margin-left: 2px;
    }

.songs-feature-bars { display: flex; flex-direction: column; gap: 12px; }

.songs-bar { font-size: 0.88rem; }

.songs-bar-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    color: #ccc;
}

    .songs-bar-head i { color: var(--accent); font-size: 0.95rem; }
    .songs-bar-head span { flex: 1; }
    .songs-bar-head strong { color: #fff; font-variant-numeric: tabular-nums; }

.songs-bar-track {
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    overflow: hidden;
}

.songs-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 60%, #fff));
    border-radius: 3px;
    transition: width 400ms ease-out;
}

/* === Album / artist cards === */
.songs-album-card,
.songs-artist-card {
    display: flex;
    gap: 18px;
    align-items: center;
}

.songs-album-cover {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.55);
    flex-shrink: 0;
}

.songs-album-info,
.songs-artist-info { flex: 1; min-width: 0; }

.songs-album-name,
.songs-artist-name {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.songs-album-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: #888;
    font-size: 0.88rem;
    margin-bottom: 10px;
}

.songs-album-type {
    text-transform: capitalize;
    padding: 1px 8px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
}

.songs-album-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

    .songs-album-link:hover { text-decoration: underline; }

.songs-artist-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.55);
    flex-shrink: 0;
}

.songs-artist-followers {
    color: #888;
    font-size: 0.88rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

    .songs-artist-followers i { color: var(--accent); }

.songs-artist-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin-bottom: 10px;
}

.songs-artist-stat {
    color: #888;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

    .songs-artist-stat .bi-people-fill { color: var(--accent); }
    .songs-artist-stat .bi-fire { color: #ff8c4a; }

/* Details tiles: smaller text for label/ISRC than the big numeric tiles */
.songs-detail-text {
    font-size: 0.95rem !important;
    line-height: 1.25;
}

.songs-detail-mono {
    font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    font-size: 0.9rem !important;
    letter-spacing: 0.5px;
}

.songs-copyright {
    margin: 14px 0 0;
    color: #666;
    font-size: 0.78rem;
}

/* === Empty state === */
.songs-empty {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

    .songs-empty i {
        font-size: 3rem;
        display: block;
        margin-bottom: 12px;
        color: #444;
    }

    .songs-empty p { margin: 0; font-size: 0.95rem; }

/* === Responsive === */
@media (max-width: 720px) {
    .songs-hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 28px 20px;
    }

    .songs-cover { width: 220px; height: 220px; }

    .songs-title { font-size: 2.1rem; }

    .songs-meta,
    .songs-genre-pills,
    .songs-cta-row { justify-content: center; }

    .songs-album-card,
    .songs-artist-card {
        flex-direction: column;
        text-align: center;
    }

    .songs-album-cover,
    .songs-artist-img { width: 140px; height: 140px; }
}
