/*
    The pinned audio bar on a member's home page, in five skins.

    One shell, one set of parts, and a skin class that decides which parts are
    drawn and how they look. bar.js says why that is one file instead of five.

    EVERY RULE IS SCOPED under .wfa-sb, and the handful of properties a
    design's global CSS reliably reaches (position, display, font, color,
    box-sizing) carry !important. These 179 designs are twelve years of
    purchased themes: several set `div { font-family: ... }`, two set
    `button { position: relative }`, and one sets `img { width: 100% }`. The
    bar has to survive all of them without the design knowing it exists.

    Placement is the pinned variants only. Without .is-pinned the same markup
    is an ordinary block in the page flow, which is what the picker previews
    and what the audio page mounts.
*/

/* ---------------------------------------------------------------- shell -- */

.wfa-sb {
    --wfa-sb-accent: #9fd3ff;
    --wfa-sb-surface: rgba(17, 20, 24, .94);
    --wfa-sb-ink: #fff;
    --wfa-sb-dim: rgba(255, 255, 255, .62);
    --wfa-sb-hair: rgba(255, 255, 255, .22);
    --wfa-sb-lift: 0px;

    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--wfa-sb-surface);
    color: var(--wfa-sb-ink) !important;
    font: 14px/1.35 -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    text-align: left !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.wfa-sb * {
    box-sizing: border-box !important;
}

.wfa-sb button {
    font: inherit !important;
    margin: 0 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    cursor: pointer;
    box-shadow: none !important;
}

.wfa-sb img {
    max-width: none !important;
}

.wfa-sb canvas {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}

/* ------------------------------------------------------------ placement -- */

/*
    Pinned to the bottom left corner, at its own width. For the two skins that
    are a card rather than a bar: a corner card covers part of the page, which
    is why both of those carry a collapse arrow.
*/
.wfa-sb.is-pinned {
    position: fixed !important;
    bottom: calc(16px + var(--wfa-sb-lift)) !important;
    z-index: 2147482400 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

.wfa-sb.is-pinned.is-left {
    left: 16px !important;
    right: auto !important;
    width: min(560px, calc(100vw - 32px));
}

/*
    Pinned across the bottom center, sitting ON the bottom edge: no gap under
    it and square bottom corners, so it reads as part of the window rather
    than as a card floating near it (user, 15 November 2026).

    Centered with auto margins between a left and a right of zero rather than
    with a transform: a handful of designs animate every transform on the
    page, and one of them sliding this bar sideways is not a fight worth
    having.
*/
.wfa-sb.is-pinned.is-center {
    left: 0 !important;
    right: 0 !important;
    bottom: var(--wfa-sb-lift) !important;
    margin-inline: auto !important;
    width: min(880px, calc(100vw - 32px));
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    box-shadow: 0 -6px 24px rgba(0, 0, 0, .3);
}

/* ------------------------------------------------------------ the chips -- */

/*
    One chip per playlist. This is the whole of what the member organized:
    audioCats in their own order, each holding the tracks they put in it. The
    chip starts that playlist at its first track and playback carries on
    through the rest of it.
*/
.wfa-sb-chips {
    display: flex !important;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.wfa-sb-chip {
    flex: none;
    border: 1px solid var(--wfa-sb-hair) !important;
    background: transparent !important;
    color: var(--wfa-sb-ink) !important;
    border-radius: 999px !important;
    padding: 3px 10px !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
    white-space: nowrap;
    opacity: .85;
}

.wfa-sb-chip:hover {
    opacity: 1;
    border-color: var(--wfa-sb-ink) !important;
}

.wfa-sb-chip.is-on {
    background: var(--wfa-sb-ink) !important;
    color: #111 !important;
    border-color: var(--wfa-sb-ink) !important;
    opacity: 1;
}

/* -------------------------------------------------------- the transport -- */

.wfa-sb-row {
    display: flex !important;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.wfa-sb-play {
    flex: none;
    width: 46px !important;
    height: 46px !important;
    border-radius: 50% !important;
    border: 0 !important;
    background: var(--wfa-sb-ink) !important;
    color: #111 !important;
    display: grid !important;
    place-items: center;
    padding: 0 !important;
}

/*  BLOCK, AND BIGGER (user, 15 November 2026).

    display, because each of the two glyphs is wrapped in a span of its own
    so the pair can be swapped, and an inline svg inside that span sat on a
    text baseline: the span measured 26.9px around a 22px icon and the
    descender space under it pushed the triangle 2.5px above the middle of
    the circle. A block has no line box and nothing under it.

    26 in a 46px button, which was 22. The glyph carries the button on this
    bar: there is no label beside it and nothing else inside it.  */
.wfa-sb-play svg {
    display: block !important;
    width: 26px;
    height: 26px;
    fill: currentColor;
}

.wfa-sb-i-pause,
.wfa-sb.is-playing .wfa-sb-i-play {
    display: none !important;
}

.wfa-sb.is-playing .wfa-sb-i-pause {
    display: block !important;
}

.wfa-sb-step {
    flex: none;
    width: 30px !important;
    height: 30px !important;
    border: 0 !important;
    background: transparent !important;
    color: var(--wfa-sb-dim) !important;
    padding: 0 !important;
    display: grid !important;
    place-items: center;
}

.wfa-sb-step svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.wfa-sb-step:hover:not(:disabled) {
    color: var(--wfa-sb-ink) !important;
}

.wfa-sb-step:disabled {
    opacity: .3;
    cursor: default;
}

.wfa-sb-art {
    flex: none;
    width: 46px !important;
    height: 46px !important;
    border-radius: 8px !important;
    object-fit: cover !important;
    background: rgba(255, 255, 255, .08);
}

.wfa-sb-main {
    flex: 1 1 auto;
    min-width: 0;
}

.wfa-sb-now {
    display: flex !important;
    gap: 8px;
    align-items: baseline;
    white-space: nowrap;
    overflow: hidden;
}

.wfa-sb-kind {
    flex: none;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: .06em !important;
    font-size: 12px !important;
    color: var(--wfa-sb-accent) !important;
}

.wfa-sb-title {
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--wfa-sb-ink) !important;
}

.wfa-sb-artist {
    font-size: 12px !important;
    color: var(--wfa-sb-dim) !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wfa-sb-clock {
    flex: none;
    font-variant-numeric: tabular-nums;
    font-size: 12px !important;
    color: var(--wfa-sb-dim) !important;
    white-space: nowrap;
}

.wfa-sb-min {
    flex: none;
    align-self: flex-start;
    width: 28px !important;
    height: 28px !important;
    border: 0 !important;
    background: transparent !important;
    color: var(--wfa-sb-dim) !important;
    padding: 0 !important;
}

.wfa-sb-min svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.wfa-sb-min:hover {
    color: var(--wfa-sb-ink) !important;
}

/* ------------------------------------------------- progress and waveform -- */

.wfa-sb-line {
    position: relative !important;
    height: 5px;
    margin: 8px 0 0;
    border-radius: 3px;
    background: rgba(255, 255, 255, .2);
    cursor: pointer;
}

.wfa-sb-line > span {
    position: absolute !important;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    border-radius: 3px;
    background: var(--wfa-sb-accent);
}

.wfa-sb-wave {
    position: relative !important;
    height: 36px;
    cursor: pointer;
    touch-action: none;
}

/*  The record that rides the waveform on the Rolling Record skin. Its
    position is the playhead, so it is set from script; everything that makes
    it look like a record is here.

    THE CONIC SHEEN IS WHAT MAKES IT SPIN. Rings and a center dot are both
    radially symmetric, so a record drawn from those alone rotates through an
    identical frame every time and reads as perfectly still. The wedge of
    light across it is the one asymmetric thing on it, and the only reason
    the rotation is visible at all.  */
.wfa-sb-rec {
    position: absolute !important;
    top: 50%;
    left: 0;
    width: 22px;
    height: 22px;
    margin: -11px 0 0 -11px;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    transition: opacity .18s linear;
    background:
        radial-gradient(circle at 50% 50%, var(--wfa-sb-accent) 0 2.5px, transparent 2.5px),
        conic-gradient(from 0deg, rgba(255, 255, 255, .3) 0 18deg, transparent 18deg 160deg, rgba(255, 255, 255, .16) 160deg 190deg, transparent 190deg 360deg),
        repeating-radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .22) 0 1px, transparent 1px 3px),
        #16181c;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .5);
}

.wfa-sb.is-playing .wfa-sb-rec {
    opacity: 1;
    animation: wfa-sb-spin 1.4s linear infinite;
}

@keyframes wfa-sb-spin {
    to { transform: rotate(360deg); }
}

/* ----------------------------------------------------------- track list -- */

/*  The Studio Playlist skin only: a corner card has room for the tracks of
    the chosen playlist, so it lists them instead of making the visitor press
    next to find out what is in it.  */
.wfa-sb-list {
    display: flex !important;
    flex-direction: column;
    gap: 1px;
    max-height: 168px;
    overflow-y: auto;
    margin: 0 !important;
    padding: 0 !important;
    border-top: 1px solid var(--wfa-sb-hair);
    padding-top: 6px !important;
    /*  A slim bar in the card's own colors. Windows draws a 17px light gray
        scrollbar by default, which on a dark card is a white stripe down the
        side of the playlist. Firefox and the rest take these two; WebKit and
        Blink take the rules below.  */
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .28) transparent;
    scrollbar-gutter: stable;
}

.wfa-sb-list::-webkit-scrollbar {
    width: 8px;
}

.wfa-sb-list::-webkit-scrollbar-track {
    background: transparent;
}

.wfa-sb-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .28);
    border-radius: 999px;
    /*  The border is what makes the thumb look 4px wide inside an 8px lane
        instead of filling it: the padding is drawn in the track's color and
        clipped to the thumb's own box.  */
    border: 2px solid transparent;
    background-clip: content-box;
}

.wfa-sb-list:hover::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .45);
    background-clip: content-box;
}

.wfa-sb-list::-webkit-scrollbar-thumb:active {
    background: var(--wfa-sb-accent);
    background-clip: content-box;
}

.wfa-sb-track {
    display: flex !important;
    align-items: center;
    gap: 10px;
    width: 100%;
    border: 0 !important;
    background: transparent !important;
    color: var(--wfa-sb-dim) !important;
    text-align: left !important;
    padding: 5px 6px !important;
    border-radius: 7px !important;
    font-size: 13px !important;
}

.wfa-sb-track:hover {
    background: rgba(255, 255, 255, .07) !important;
    color: var(--wfa-sb-ink) !important;
}

.wfa-sb-track.is-current {
    background: rgba(255, 255, 255, .1) !important;
    color: var(--wfa-sb-ink) !important;
}

.wfa-sb-num {
    flex: none;
    width: 18px;
    text-align: right !important;
    font-variant-numeric: tabular-nums;
    font-size: 11px !important;
    color: var(--wfa-sb-dim) !important;
}

.wfa-sb-track.is-current .wfa-sb-num {
    color: var(--wfa-sb-accent) !important;
}

.wfa-sb-name {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wfa-sb-dur {
    flex: none;
    font-variant-numeric: tabular-nums;
    font-size: 11px !important;
    color: var(--wfa-sb-dim) !important;
}

/* ---------------------------------------------------------- minimized -- */

.wfa-sb.is-min {
    width: auto !important;
    padding: 8px !important;
    gap: 8px;
}

.wfa-sb.is-min .wfa-sb-main,
.wfa-sb.is-min .wfa-sb-chips,
.wfa-sb.is-min .wfa-sb-list,
.wfa-sb.is-min .wfa-sb-art,
.wfa-sb.is-min .wfa-sb-step,
.wfa-sb.is-min .wfa-sb-clock {
    display: none !important;
}

.wfa-sb.is-min .wfa-sb-play {
    width: 40px !important;
    height: 40px !important;
}

.wfa-sb.is-min .wfa-sb-play svg {
    width: 22px;
    height: 22px;
}

.wfa-sb.is-min .wfa-sb-min svg {
    transform: rotate(180deg);
}

/* ================================================================ skins -- */

/*  DEMO REEL BAR. The compact pill a voice over account has carried since
    29 September 2026, unchanged except that its highlight is now the site's
    own color instead of a fixed blue.  */
.wfa-sb--reel .wfa-sb-row {
    align-items: flex-start;
}

.wfa-sb--reel .wfa-sb-chips {
    margin-top: 2px !important;
}

/*  STUDIO PLAYLIST. A card: artwork, the track, a waveform to scrub, the
    transport, then the playlist itself.  */
.wfa-sb--studio {
    gap: 8px;
}

.wfa-sb--studio .wfa-sb-wave {
    height: 44px;
}

.wfa-sb--studio .wfa-sb-play {
    width: 40px !important;
    height: 40px !important;
}

.wfa-sb--studio .wfa-sb-play svg {
    width: 22px;
    height: 22px;
}

/*  CLASSIC. The slim bar every design ships, in the site's own color: a
    triangle, a seek bar, a clock. Across the bottom center, because it is a
    bar and not a card.  */
.wfa-sb--classic {
    padding: 10px 14px;
    border-radius: 10px;
}

.wfa-sb--classic .wfa-sb-play {
    width: 34px !important;
    height: 34px !important;
    border-radius: 4px !important;
    background: var(--wfa-sb-accent) !important;
    color: #fff !important;
}

.wfa-sb--classic .wfa-sb-play svg {
    width: 20px;
    height: 20px;
}

.wfa-sb--classic .wfa-sb-line {
    margin: 0 !important;
    height: 6px;
    border-radius: 0;
    background: #5a5a5a;
}

.wfa-sb--classic .wfa-sb-line > span {
    border-radius: 0;
}

/*  VINYL WAVEFORM. The play button swells into a spinning record while the
    waveform runs across the track, over a progress line.  */
/*  The sheen for the same reason it is on the record above: without one
    asymmetric mark, a disc of rings spins through an identical frame every
    time and looks stationary.  */
.wfa-sb--vinyl-wave.is-playing .wfa-sb-play {
    background:
        radial-gradient(circle at 50% 50%, #fff 0 4px, transparent 4px),
        conic-gradient(from 0deg, rgba(255, 255, 255, .26) 0 22deg, transparent 22deg 165deg, rgba(255, 255, 255, .14) 165deg 195deg, transparent 195deg 360deg),
        repeating-radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .18) 0 1px, transparent 1px 4px),
        #16181c !important;
    color: var(--wfa-sb-accent) !important;
    animation: wfa-sb-spin 2.4s linear infinite;
}

.wfa-sb--vinyl-wave .wfa-sb-line {
    height: 3px;
    margin: 6px 0 0;
}

/*  ROLLING RECORD. The record leaves the button and rides the dotted
    waveform, so the waveform is the progress and there is no separate line.  */
.wfa-sb--vinyl-roll .wfa-sb-wave {
    height: 40px;
}

.wfa-sb--vinyl-roll.is-playing .wfa-sb-play {
    background: var(--wfa-sb-accent) !important;
    color: #111 !important;
}

/* ----------------------------------------------------------- the phone -- */

@media (max-width: 600px) {
    .wfa-sb.is-pinned.is-left {
        left: 8px !important;
        right: 8px !important;
        bottom: calc(8px + var(--wfa-sb-lift)) !important;
        width: auto !important;
        margin-inline: 0 !important;
    }

    /*  Corner to corner on a phone, still on the bottom edge.  */
    .wfa-sb.is-pinned.is-center {
        left: 0 !important;
        right: 0 !important;
        bottom: var(--wfa-sb-lift) !important;
        width: auto !important;
        margin-inline: 0 !important;
    }

    .wfa-sb {
        gap: 8px;
        padding: 10px;
    }

    .wfa-sb-play {
        width: 40px !important;
        height: 40px !important;
    }

    .wfa-sb-play svg {
        width: 22px;
        height: 22px;
    }

    /*  The clock and the artwork are the first things to go: the track name
        and the playlists are what the bar is for.  */
    .wfa-sb-clock,
    .wfa-sb--studio .wfa-sb-art {
        display: none !important;
    }

    .wfa-sb-list {
        max-height: 120px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wfa-sb .wfa-sb-rec,
    .wfa-sb.is-playing .wfa-sb-play {
        animation: none !important;
    }
}

@media print {
    .wfa-sb.is-pinned {
        display: none !important;
    }
}
