/*
 * DJJC Listen: the shelf of records and the player under it.
 *
 * The look is the "A · Listen shelf + player" boards (desktop and mobile) and
 * "A · Mini player while scrolling · Mobile". The sizes below are the boards'
 * sizes, held in custom properties so the phone layout is the same rules with
 * different numbers.
 *
 * THE COLOURS ARE THE CUSTOM PROPERTIES IN THE FIRST BLOCK and nothing else in
 * this file names a colour. Change one on .djjc-listen (in Elementor: the
 * widget's Style tab > Colours) and the whole section follows. The phone mini
 * player copies them from the section when it is built.
 *
 * THE LAYOUT NUMBERS ARE CUSTOM PROPERTIES TOO, in the second block. What is
 * written here is the design as drawn, and it is what the shortcode shows. The
 * Elementor widget sets the same properties per device from its own controls,
 * through Elementor's stylesheet, which is more specific than this one. So a
 * number is only ever changed in the widget, never here.
 *
 * THE FONTS FOLLOW ELEMENTOR'S GLOBAL FONTS (Site Settings > Global Fonts):
 * the big display type is "Primary", the small mono labels are "Secondary",
 * everything else is "Text". Only the family (and Primary's weight) is taken.
 * The sizes written here are the design's, and they are what the shortcode
 * shows; the Elementor widget carries the same numbers as the defaults of its
 * Typography controls, per device, so a size is changed in the widget. The
 * section heading is the exception: it takes Primary's size as well (88 / 72 /
 * 56px, desktop / tablet / phone, when this was written), the same as DJJC
 * Dates', so it is changed in Site Settings. The family named after each var()
 * is what shows on a page where Elementor's kit is not loaded. Nothing here
 * loads a font: Elementor loads whatever is picked there. The widget's Style
 * tab can override the family for one placement.
 *
 * Selectors are doubled (.djjc-listen .djjc-listen__x) on purpose. The theme
 * and the Elementor kit both style bare button, a, h2, ul and img, and a single
 * class ties with them; two classes win without needing !important.
 */

.djjc-listen,
.djjc-listen-mini {
    --djjc-bg: #0d0e0f;
    --djjc-panel: #15181a;
    --djjc-text: #f0dccd;
    --djjc-soft: #d9c8bb;
    --djjc-muted: #a89c93;
    --djjc-accent: #c8683f;
    --djjc-label: #8fd0da;
    /*
     * The round play button (and the phone mini player's) is a button like
     * every other on the site: the four button Global Colours, "Button",
     * "Button text", "Button hover" and "Button hover text". The hex is for a
     * page where the kit is not loaded. Its shape and size stay its own.
     */
    --djjc-play-bg: var(--e-global-color-djjcbt, #C8683F);
    --djjc-play-text: var(--e-global-color-djjcbx, #0D0E0F);
    --djjc-play-hover-bg: var(--e-global-color-djjcbh, #8FD0DA);   /* under the pointer */
    --djjc-play-hover-text: var(--e-global-color-djjchx, #0D0E0F);
    --djjc-groove-dark: #0f0f10;
    --djjc-groove-light: #232326;
    --djjc-shine: #ffffff;
    --djjc-shadow: #000000;

    --djjc-font-display: var(--e-global-typography-primary-font-family, "obviously-narrow"), "Arial Narrow", sans-serif;
    --djjc-weight-display: var(--e-global-typography-primary-font-weight, 900);
    --djjc-font-label: var(--e-global-typography-secondary-font-family, "ibm-plex-mono"), ui-monospace, Menlo, Consolas, monospace;
    --djjc-font-body: var(--e-global-typography-text-font-family, "space-grotesk-variable"), system-ui, -apple-system, "Segoe UI", sans-serif;

    --djjc-line: color-mix(in srgb, var(--djjc-text) 14%, transparent);
}

.djjc-listen {
    /* What the widget sets, per device. */
    --djjc-size: 260px;         /* sleeve, square, when the rule is "fixed size" */
    --djjc-visible: 4.86;       /* records across the screen, when the rule is "records visible": a 260px sleeve at 1440 */
    --djjc-gap: 36px;
    --djjc-lift: 14px;          /* how far the loaded sleeve lifts off the ledge */
    --djjc-peek: 86px;          /* how far the vinyl rises out of it */
    --djjc-side-fade: 0;        /* records that are not loaded: 0 = no fade, 1 = invisible */
    --djjc-side-text: 1;        /* the text under them: 1 = shown, 0 = hidden */
    /*
     * The title under a record: the most lines it may take. One line is three
     * values (1, nowrap, block) and more than one is three (the number, normal,
     * -webkit-box), because a title that wraps and is then cut with an ellipsis
     * on its last line needs the box. The widget writes all three from its one
     * "Record title: most lines" control.
     */
    --djjc-title-lines: 1;
    --djjc-title-wrap: nowrap;
    --djjc-title-box: block;
    --djjc-arrows: flex;        /* the round shelf arrows: flex = shown, none = hidden */

    /*
     * The record. Everything on it follows from the sleeve size, so a sleeve of
     * any size keeps the drawn proportions. Each line gives the boards' own
     * number at both of the boards' sizes: 260px (wide) and 220px (phone).
     */
    --djjc-rec: var(--djjc-size);
    --djjc-vinyl-inset: max(1px, calc(var(--djjc-rec) * 0.025 - 1.5px));    /* 5px, 4px */
    --djjc-vinyl: calc(var(--djjc-rec) - var(--djjc-vinyl-inset) * 2);      /* 250px, 212px */
    --djjc-disclabel: calc(var(--djjc-rec) * 0.35);                         /* 91px, 77px */
    --djjc-spindle: calc(var(--djjc-rec) * 0.025 + 0.5px);                  /* 7px, 6px */
    --djjc-groove: calc(var(--djjc-rec) * 0.0025 + 0.65px);                 /* 1.3px, 1.2px */
    --djjc-sleeve-h: calc(var(--djjc-rec) + var(--djjc-lift) + var(--djjc-peek)); /* the button: 360px, 302px */
    --djjc-edge: 56px;          /* the section's side margin */
    --djjc-shelf-pad: var(--djjc-edge);
    --djjc-ledge-fade: 12%;
    --djjc-ledge-shadow: 34px;
    --djjc-move: 0.385s;        /* the boards' 2.6-per-second rise */

    background: var(--djjc-bg);
    box-sizing: border-box;
    color: var(--djjc-text);
    font-family: var(--djjc-font-body);
    font-size: 16px;
    /*
     * Stated, not inherited. An Elementor page's body carries the kit's own
     * typography (here: 900, uppercase), and without these and text-transform
     * below, every title and artist line under the sleeves would come out in
     * bold capitals.
     */
    font-style: normal;
    font-weight: 400;
    letter-spacing: normal;
    line-height: 1.28;
    overflow: hidden;
    padding: 64px 0 112px;
    position: relative;
    text-transform: none;
    /* the mini player's "back to Listen" should not park the heading under a sticky header */
    scroll-margin-top: 72px;

    /*
     * EDGE TO EDGE. The shelf runs off both sides of the screen, so the section
     * breaks out of whatever column the page put it in. --djjc-sbw is the width
     * of the page's scrollbar, which the script measures; 100vw includes it, and
     * without the correction the page would scroll sideways by that much.
     */
    margin-left: calc(50% - 50vw + var(--djjc-sbw, 0px) / 2);
    margin-right: 0;
    max-width: none;
    width: calc(100vw - var(--djjc-sbw, 0px));
}

/*
 * "Records visible": the sleeve is whatever size puts that many records, with
 * their gaps, across the screen. 4.5 means four whole records and half of the
 * fifth.
 */
.djjc-listen.djjc-listen--fit {
    --djjc-rec: max(60px, calc((100vw - var(--djjc-sbw, 0px)) / var(--djjc-visible) - var(--djjc-gap)));
}

@media (max-width: 1024px) {
    .djjc-listen {
        --djjc-visible: 3.46;   /* a 260px sleeve at 1024 */
    }
}

@media (max-width: 767px) {
    .djjc-listen {
        --djjc-size: 220px;
        --djjc-visible: 1.65;   /* a 220px sleeve at 390 */
        --djjc-gap: 16px;
        --djjc-lift: 12px;
        --djjc-peek: 70px;
        --djjc-side-fade: 0.65;
        --djjc-side-text: 0;
        --djjc-title-lines: 2;
        --djjc-title-wrap: normal;
        --djjc-title-box: -webkit-box;
        --djjc-arrows: none; /* a phone swipes the shelf; the arrows are for a mouse */
        --djjc-edge: 20px;
        /* the loaded record sits in the middle of the screen, the next one peeks in from the right */
        --djjc-shelf-pad: calc(50% - var(--djjc-rec) / 2);
        --djjc-ledge-fade: 25%;
        --djjc-ledge-shadow: 26px;

        padding: 28px 0 96px;
    }
}

.djjc-listen *,
.djjc-listen *::before,
.djjc-listen *::after,
.djjc-listen-mini *,
.djjc-listen-mini *::before,
.djjc-listen-mini *::after {
    box-sizing: border-box;
}

.djjc-listen [hidden],
.djjc-listen-mini [hidden] {
    display: none !important;
}

/* The warm floor the shelf stands on: a glow rising from the bottom of the section. */
.djjc-listen::before {
    background:
        radial-gradient(70% 100% at 50% 100%, color-mix(in srgb, var(--djjc-accent) 13%, transparent) 0%, transparent 70%),
        linear-gradient(0deg, color-mix(in srgb, var(--djjc-accent) 6%, transparent) 0%, transparent 100%);
    bottom: 0;
    content: "";
    height: 520px;
    left: 0;
    -webkit-mask-image: linear-gradient(0deg, #000 30%, transparent 100%);
    mask-image: linear-gradient(0deg, #000 30%, transparent 100%);
    pointer-events: none;
    position: absolute;
    right: 0;
}

/* -- Header: label, heading, record count, shelf arrows ------------------- */

.djjc-listen .djjc-listen__head {
    align-items: flex-end;
    display: flex;
    justify-content: space-between;
    padding: 0 var(--djjc-edge);
    position: relative;
}

.djjc-listen .djjc-listen__headings {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.djjc-listen .djjc-listen__label,
.djjc-listen .djjc-listen__count,
.djjc-listen .djjc-listen__status,
.djjc-listen .djjc-listen__time,
.djjc-listen .djjc-listen__sc {
    font-family: var(--djjc-font-label);
    font-weight: 400;
    letter-spacing: 0.1em;
    line-height: 1.3;
    text-transform: uppercase;
}

.djjc-listen .djjc-listen__label {
    color: var(--djjc-label);
    font-size: 13px;
    margin: 0;
    padding: 0;
}

.djjc-listen .djjc-listen__heading {
    color: var(--djjc-text);
    font-family: var(--djjc-font-display);
    /* Site Settings > Global Fonts > Primary sets the size. The number after it is for a page where Elementor's kit is not loaded. */
    font-size: var(--e-global-typography-primary-font-size, 88px);
    font-weight: var(--djjc-weight-display);
    letter-spacing: 0.005em;
    line-height: 0.9;
    margin: 0;
    padding: 0;
    text-transform: uppercase;
}

/*
 * In the Elementor widget the heading is linked to Primary, and Elementor then
 * prints Primary's letter-spacing too. The design's stays: this is one class
 * more specific than that rule, and less than a letter-spacing typed into the
 * widget's own Typography control, which still wins.
 */
.elementor-widget-djjc-listen.elementor-widget-djjc-listen .djjc-listen .djjc-listen__heading {
    letter-spacing: 0.005em;
}

.djjc-listen .djjc-listen__nav {
    align-items: center;
    display: flex;
    flex: none;
    gap: 10px;
    padding-bottom: 6px;
}

.djjc-listen .djjc-listen__count {
    color: var(--djjc-muted);
    font-size: 13px;
    margin-right: 8px;
    white-space: nowrap;
}

.djjc-listen .djjc-listen__arrow {
    align-items: center;
    appearance: none;
    background: transparent;
    border: 1px solid color-mix(in srgb, var(--djjc-text) 30%, transparent);
    border-radius: 50%;
    box-shadow: none;
    color: var(--djjc-text);
    cursor: pointer;
    display: var(--djjc-arrows);
    flex: none;
    font: inherit;
    height: 48px;
    justify-content: center;
    letter-spacing: inherit;
    margin: 0;
    min-height: 0;
    padding: 0;
    text-transform: inherit;
    transition: border-color 0.15s ease;
    width: 48px;
}

/*
 * :focus is restated with the RESTING colours on purpose, here and on every
 * button below. The theme paints every focused button its own colour, and a
 * button keeps focus after a mouse click, so without this it would stay
 * recoloured after every press. Keyboard focus is shown by the ring further
 * down, not by a colour change.
 */
.djjc-listen .djjc-listen__arrow:focus {
    background: transparent;
    color: var(--djjc-text);
}

.djjc-listen .djjc-listen__arrow:hover {
    background: transparent;
    border-color: var(--djjc-text);
    color: var(--djjc-text);
}

@media (max-width: 1024px) {
    .djjc-listen .djjc-listen__heading {
        font-size: var(--e-global-typography-primary-font-size, 72px);
    }
}

@media (max-width: 767px) {
    .djjc-listen .djjc-listen__headings {
        gap: 6px;
    }

    /* The small mono capitals are never under 12px on a phone, here and in the player below. */
    .djjc-listen .djjc-listen__label {
        font-size: 12px;
    }

    .djjc-listen .djjc-listen__heading {
        font-size: var(--e-global-typography-primary-font-size, 56px);
    }

    .djjc-listen .djjc-listen__nav {
        padding-bottom: 4px;
    }

    .djjc-listen .djjc-listen__count {
        font-size: 12px;
        margin-right: 0;
    }
}

.djjc-listen .djjc-listen__empty {
    color: var(--djjc-muted);
    margin: 24px 0 0;
    padding: 0 var(--djjc-edge);
    position: relative;
}

/* -- The shelf ------------------------------------------------------------ */

.djjc-listen .djjc-listen__shelfwrap {
    margin-top: 18px;
    position: relative;
}

/* The ledge the sleeves stand on: a hairline that fades at both ends, and the shadow under it. */
.djjc-listen .djjc-listen__shelfwrap::before {
    background: linear-gradient(90deg,
        color-mix(in srgb, var(--djjc-text) 8%, transparent) 0%,
        color-mix(in srgb, var(--djjc-text) 42%, transparent) var(--djjc-ledge-fade),
        color-mix(in srgb, var(--djjc-text) 42%, transparent) calc(100% - var(--djjc-ledge-fade)),
        color-mix(in srgb, var(--djjc-text) 8%, transparent) 100%);
    content: "";
    height: 1px;
    left: 0;
    position: absolute;
    right: 0;
    top: var(--djjc-sleeve-h);
}

.djjc-listen .djjc-listen__shelfwrap::after {
    background: linear-gradient(180deg, color-mix(in srgb, var(--djjc-shadow) 45%, transparent) 0%, transparent 100%);
    content: "";
    height: var(--djjc-ledge-shadow);
    left: 0;
    pointer-events: none;
    position: absolute;
    right: 0;
    top: calc(var(--djjc-sleeve-h) + 1px);
}

/*
 * A plain sideways scroll row. That is the whole trick: a phone swipes it, a
 * trackpad's sideways swipe moves it, and a keyboard tabs through it, all
 * without the script. The script adds the wrap-around and takes over the
 * finger (see .is-driven below).
 */
.djjc-listen .djjc-listen__shelf {
    display: flex;
    gap: var(--djjc-gap);
    list-style: none;
    margin: 0;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain; /* reaching the end of the shelf must not swipe the browser back a page */
    padding: 0 var(--djjc-shelf-pad);
    position: relative;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    z-index: 1;
}

.djjc-listen .djjc-listen__shelf::-webkit-scrollbar {
    display: none;
}

/* While the script is moving the shelf itself, snapping would fight every step. */
.djjc-listen .djjc-listen__shelf.is-free {
    scroll-snap-type: none;
}

/*
 * THE SHELF MOVES SIDEWAYS ONLY. Once the script is running, a finger going up
 * or down on the shelf scrolls the page and nothing else (pan-y), and a finger
 * going sideways is the script's: it moves the shelf and the page stays still.
 * Left to the browser, a downward swipe with any sideways in it dragged the
 * shelf along. Without the script the row is the browser's to swipe, as before.
 */
.djjc-listen .djjc-listen__shelf.is-driven {
    touch-action: pan-y pinch-zoom;
}

.djjc-listen .djjc-listen__record {
    display: flex;
    flex: 0 0 var(--djjc-rec);
    flex-direction: column;
    list-style: none;
    margin: 0;
    min-width: 0;
    padding: 0;
    /* a record that is brought into view comes to the middle; at the very start of the shelf the first one sits at the left margin */
    scroll-snap-align: center;
    /*
     * --djjc-near is how much this record is shown in full: 1 is full strength,
     * 0 is faded back by --djjc-side-fade. The loaded record is always 1. The
     * others are 0 at rest. While the shelf is moving the script sets
     * --djjc-mid on each record (1 in the middle of the shelf, 0 a whole record
     * away), so the one passing through the middle is in full too.
     */
    --djjc-mid: 0;
    --djjc-near: var(--djjc-mid);
}

.djjc-listen .djjc-listen__record.is-loaded {
    --djjc-near: 1;
}

.djjc-listen .djjc-listen__record::before,
.djjc-listen .djjc-listen__record::marker {
    content: none;
}

@media (max-width: 767px) {
    .djjc-listen .djjc-listen__shelfwrap {
        margin-top: 8px;
    }

    .djjc-listen .djjc-listen__shelf {
        scroll-snap-type: x mandatory;
    }
}

/* -- One record: the sleeve button, and the vinyl behind it ---------------- */

.djjc-listen .djjc-listen__sleeve {
    appearance: none;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    color: inherit;
    cursor: pointer;
    display: block;
    flex: none;
    font: inherit;
    height: var(--djjc-sleeve-h);
    letter-spacing: inherit; /* with text-transform below: Site Settings > Buttons gives every bare button capitals and spacing, and a sleeve is not a button */
    margin: 0;
    min-height: 0;
    padding: 0;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    text-transform: inherit;
    width: var(--djjc-rec);
}

.djjc-listen .djjc-listen__sleeve:hover,
.djjc-listen .djjc-listen__sleeve:focus {
    background: transparent;
    color: inherit;
}

.djjc-listen .djjc-listen__sleeve[data-noaudio] {
    cursor: default;
}

/* Sleeve and vinyl together: this is what lifts off the ledge. */
.djjc-listen .djjc-listen__lift {
    bottom: 0;
    display: block;
    height: var(--djjc-rec);
    left: 0;
    position: absolute;
    transition: transform var(--djjc-move) ease-in-out, opacity var(--djjc-move) ease-in-out;
    width: var(--djjc-rec);
}

/*
 * The records that are not loaded, faded back by --djjc-side-fade so the
 * loaded one stands out. At 0.65 this is the phone's opacity 0.35 and
 * brightness 0.8. Still buttons, still tappable.
 *
 * WHILE THE SHELF IS MOVING the record in the middle is not faded either,
 * loaded or not (--djjc-near, above), so a swipe never shows a dim,
 * see-through record in the middle. When the shelf settles it eases back.
 *
 * The darkening is a black sheet over the sleeve, not a brightness filter. It
 * is the same arithmetic, and at a fade of 0 a sheet with no opacity paints
 * nothing at all, where brightness(1) still sends every sleeve through the
 * filter and comes back a shade or two off.
 */
.djjc-listen .djjc-listen__lift::after {
    background: var(--djjc-shadow);
    border-radius: 3px;
    bottom: 0;
    content: "";
    left: 0;
    opacity: calc(var(--djjc-side-fade) * (1 - var(--djjc-near)) * 0.307692);
    pointer-events: none;
    position: absolute;
    right: 0;
    top: 0;
    transition: opacity var(--djjc-move) ease-in-out;
}

.djjc-listen .djjc-listen__lift {
    opacity: calc(1 - var(--djjc-side-fade) * (1 - var(--djjc-near)));
}

/* While the shelf moves the fade keeps up with it: a short, even step, not the slow ease of the at-rest look. */
.djjc-listen .djjc-listen__shelf.is-moving .djjc-listen__lift {
    transition: transform var(--djjc-move) ease-in-out, opacity 0.12s linear;
}

.djjc-listen .djjc-listen__shelf.is-moving .djjc-listen__lift::after,
.djjc-listen .djjc-listen__shelf.is-moving .djjc-listen__meta {
    transition: opacity 0.12s linear;
}

/* The vinyl starts exactly behind the sleeve and rises out of the top of it. */
.djjc-listen .djjc-listen__vinyl {
    display: block;
    height: var(--djjc-vinyl);
    left: var(--djjc-vinyl-inset);
    position: absolute;
    top: var(--djjc-vinyl-inset);
    transition: transform var(--djjc-move) ease-in-out;
    width: var(--djjc-vinyl);
}

/* The part that turns: grooves, centre label, spindle hole. The script sets its angle while a song plays. */
.djjc-listen .djjc-listen__disc {
    background: repeating-radial-gradient(circle at 50% 50%,
        var(--djjc-groove-dark) 0,
        var(--djjc-groove-dark) var(--djjc-groove),
        var(--djjc-groove-light) var(--djjc-groove),
        var(--djjc-groove-light) calc(var(--djjc-groove) * 2));
    border-radius: 50%;
    /* a thin rim only, so the edge of the disc reads against the dark; no glow */
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--djjc-text) 16%, transparent);
    display: block;
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
}

.djjc-listen .djjc-listen__disclabel {
    background: var(--djjc-accent); /* a plain label when the song has no artwork */
    border-radius: 50%;
    display: block;
    height: var(--djjc-disclabel);
    left: calc(50% - var(--djjc-disclabel) / 2);
    overflow: hidden;
    position: absolute;
    top: calc(50% - var(--djjc-disclabel) / 2);
    width: var(--djjc-disclabel);
}

/* The middle of the sleeve art, at the sleeve's own size, seen through the label's circle. */
.djjc-listen .djjc-listen__disclabel-img {
    border-radius: 0;
    display: block;
    height: var(--djjc-rec);
    left: 50%;
    max-width: none;
    object-fit: cover;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: var(--djjc-rec);
}

.djjc-listen .djjc-listen__spindle {
    background: var(--djjc-bg);
    border-radius: 50%;
    display: block;
    height: var(--djjc-spindle);
    left: calc(50% - var(--djjc-spindle) / 2);
    position: absolute;
    top: calc(50% - var(--djjc-spindle) / 2);
    width: var(--djjc-spindle);
}

/* The light across the vinyl. It does NOT turn with the disc: the record spins under it. */
.djjc-listen .djjc-listen__sheen {
    background: conic-gradient(from 20deg,
        transparent 0deg,
        color-mix(in srgb, var(--djjc-shine) 10%, transparent) 30deg,
        transparent 70deg,
        transparent 180deg,
        color-mix(in srgb, var(--djjc-shine) 8%, transparent) 210deg,
        transparent 250deg);
    border-radius: 50%;
    display: block;
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
}

.djjc-listen .djjc-listen__cover {
    border-radius: 3px;
    box-shadow: 0 12px 24px color-mix(in srgb, var(--djjc-shadow) 50%, transparent);
    display: block;
    height: var(--djjc-rec);
    left: 0;
    max-width: none;
    object-fit: cover;
    position: absolute;
    top: 0;
    transition: box-shadow var(--djjc-move) ease-in-out;
    width: var(--djjc-rec);
}

/* A song with no artwork still gets a sleeve. */
.djjc-listen .djjc-listen__cover--blank {
    background: var(--djjc-panel);
    border: 1px solid var(--djjc-line);
}

/*
 * LOADED: the sleeve lifts, the vinyl rises, the title takes the accent. That
 * is how the shelf says which track is loaded, wherever on the shelf it sits.
 * Only a tap or the play button loads a record, so a record that is merely
 * swiped into the middle never shows its vinyl.
 */
.djjc-listen .djjc-listen__record.is-loaded .djjc-listen__lift {
    transform: translateY(calc(var(--djjc-lift) * -1));
}

.djjc-listen .djjc-listen__record.is-loaded .djjc-listen__vinyl {
    transform: translateY(calc(var(--djjc-peek) * -1));
}

.djjc-listen .djjc-listen__record.is-loaded .djjc-listen__cover {
    box-shadow: 0 26px 40px color-mix(in srgb, var(--djjc-shadow) 65%, transparent);
}

.djjc-listen .djjc-listen__record.is-loaded .djjc-listen__meta-title {
    color: var(--djjc-accent);
}

/* -- Under each sleeve: title, artist, length ----------------------------- */

.djjc-listen .djjc-listen__meta {
    align-items: baseline;
    column-gap: 12px;
    display: grid;
    grid-template-areas: "title length" "artist artist";
    grid-template-columns: minmax(0, 1fr) auto;
    padding-top: 18px;
    row-gap: 3px;
    transition: opacity var(--djjc-move) ease-in-out;
}

/*
 * The text under a record that is not loaded, when --djjc-side-text is 0:
 * hidden from the eye only. It stays in the page and keeps its room, so the
 * space under the shelf is the same height whichever record is loaded. It
 * follows its sleeve: shown under the loaded record, and under the one in the
 * middle while the shelf is moving.
 */
.djjc-listen .djjc-listen__record .djjc-listen__meta {
    opacity: calc(var(--djjc-side-text) + (1 - var(--djjc-side-text)) * var(--djjc-near));
}

/*
 * ON A PHONE THE LOADED TRACK HAS NO TEXT UNDER ITS SLEEVE: the player's big
 * title right below already says its name and artist, and saying it twice is
 * clutter there. Hidden from the eye only, so the room stays and nothing
 * moves. The widget's "Show text under the loaded track on a phone" brings it
 * back. On a tablet and a desktop the loaded track always has its text, with
 * the title in the accent colour: the shelf itself says what is loaded.
 */
@media (max-width: 767px) {
    .djjc-listen:not(.djjc-listen--loaded-text) .djjc-listen__record.is-loaded .djjc-listen__meta {
        opacity: 0;
    }
}

/*
 * The title takes at most --djjc-title-lines lines and ends in an ellipsis if
 * it needs more. See the three --djjc-title properties at the top: at one line
 * this is a plain block that does not wrap, and above one it is the box that
 * -webkit-line-clamp needs (every current browser reads that spelling). A word
 * longer than the sleeve is wide breaks rather than being cut with no ellipsis.
 */
.djjc-listen .djjc-listen__meta-title {
    -webkit-box-orient: vertical;
    color: var(--djjc-text);
    display: var(--djjc-title-box);
    font-size: 17px;
    font-weight: 600;
    grid-area: title;
    -webkit-line-clamp: var(--djjc-title-lines);
    overflow: hidden;
    overflow-wrap: anywhere;
    text-overflow: ellipsis;
    transition: color var(--djjc-move) ease-in-out;
    white-space: var(--djjc-title-wrap);
}

.djjc-listen .djjc-listen__meta-artist {
    color: var(--djjc-muted);
    font-size: 14px;
    grid-area: artist;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.djjc-listen .djjc-listen__meta-length {
    color: var(--djjc-muted);
    font-family: var(--djjc-font-label);
    font-size: 11px;
    font-variant-numeric: tabular-nums;
    grid-area: length;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
}

/*
 * Phone: the title on up to two lines, "artist · length" under it, starting
 * at the left. That second part is reading text: 14px, and never cut short. An
 * artist too long for the sleeve's width wraps onto another line, and the
 * length stays on the end of it.
 *
 * NOTHING BELOW MOVES when another record is loaded. The shelf is one row, as
 * tall as its tallest record, and the text under a record that is not loaded
 * keeps its room (see above). So one title or one artist that needs two lines
 * gives every record that much room, loaded or not. The ledge and the sleeves
 * are placed from the top of the shelf, so they do not move either.
 */
@media (max-width: 767px) {
    /*
     * Plain lines of text, not the desktop grid and not a flex row: the length
     * has to follow the artist's last word wherever that word lands, and only
     * running text does that. Line height 0 here and 1.28 on each part, so a
     * line is as tall as its own text and no taller.
     */
    .djjc-listen .djjc-listen__meta {
        display: block;
        line-height: 0;
        padding-top: 14px;
    }

    /* display is not stated here: it is --djjc-title-box, a block or the box, and either starts its own line */
    .djjc-listen .djjc-listen__meta-title {
        font-size: 15px;
        line-height: 1.28;
        margin-bottom: 3px;
        max-width: 100%;
    }

    .djjc-listen .djjc-listen__meta-artist {
        display: inline;
        font-size: 14px;
        line-height: 1.28;
        overflow: visible;
        overflow-wrap: anywhere;
        white-space: normal;
    }

    /*
     * !important because on a phone the length is the end of the artist line,
     * not a label, and the widget's "Record length" typography (which is more
     * specific than anything in this file) must not restyle half of that line.
     * The size is left open: the widget sets it per device, 14px on a phone,
     * the same as the artist.
     */
    .djjc-listen .djjc-listen__meta-length {
        display: inline;
        font-family: var(--djjc-font-body) !important;
        font-size: 14px;
        font-weight: inherit !important;
        letter-spacing: 0 !important;
        line-height: 1.28;
        text-transform: none !important;
    }

    /*
     * The two spaces are the kind a line cannot break at, and the page prints
     * the artist and the length with no space between them, so "· 5:14" can
     * never start a line of its own.
     */
    .djjc-listen .djjc-listen__meta-artist + .djjc-listen__meta-length::before {
        content: "\00a0·\00a0";
    }
}

/* -- The player ----------------------------------------------------------- */

.djjc-listen .djjc-listen__player {
    align-items: center;
    border-top: 1px solid color-mix(in srgb, var(--djjc-text) 12%, transparent);
    display: grid;
    gap: 40px;
    grid-template-columns: 360px minmax(0, 1fr) auto;
    margin: 34px var(--djjc-edge) 0;
    padding-top: 22px;
    position: relative;
}

.djjc-listen .djjc-listen__now {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.djjc-listen .djjc-listen__now-top {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.djjc-listen .djjc-listen__status {
    color: var(--djjc-label);
    font-size: 11px;
}

.djjc-listen .djjc-listen__now-title {
    color: var(--djjc-text);
    display: block;
    font-family: var(--djjc-font-display);
    font-size: 38px;
    font-weight: var(--djjc-weight-display);
    letter-spacing: 0.005em;
    line-height: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.djjc-listen .djjc-listen__now-sub {
    color: var(--djjc-muted);
    display: block;
    font-size: 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.djjc-listen .djjc-listen__scrub {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

/*
 * THE WAVEFORM IS THE SEEK BAR. The script fills it with bars; the ones to the
 * left of the playhead take the accent colour.
 */
.djjc-listen .djjc-listen__wave {
    align-items: center;
    cursor: pointer;
    display: flex;
    gap: 2px;
    height: 52px;
    touch-action: none; /* a sideways drag on the waveform is a seek, not a page scroll */
    -webkit-user-select: none;
    user-select: none;
}

.djjc-listen .djjc-listen__bar {
    background: color-mix(in srgb, var(--djjc-text) 30%, transparent);
    border-radius: 2px;
    flex: 1 1 0;
    min-width: 0;
    pointer-events: none;
}

.djjc-listen .djjc-listen__bar.is-played {
    background: var(--djjc-accent);
}

.djjc-listen .djjc-listen__times {
    align-items: center;
    display: flex;
    justify-content: space-between;
    min-height: 16px;
}

.djjc-listen .djjc-listen__time {
    color: var(--djjc-muted);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.djjc-listen .djjc-listen__sc {
    align-items: center;
    color: var(--djjc-muted);
    display: flex;
    font-size: 11px;
    gap: 6px;
    text-decoration: none;
}

.djjc-listen .djjc-listen__sc:hover {
    color: var(--djjc-label);
    text-decoration: none;
}

/*
 * THE BUY BUTTON AND THE LINE UNDER IT (Briefs 25 and 34). A row of its own
 * under the player: the button, then one small muted line.
 *
 * The button is the site's SECONDARY button: an outline, so the round play
 * button is the only filled shape in the player. Its look is not set here. It
 * carries the class djjc-btn-secondary, which is drawn once for the whole site
 * in Site Settings > Custom CSS (the kit), from the same Global Colours and
 * Global Font as every other button. The :where() rule is that same look for a
 * page where the kit is not loaded; it weighs one class, so the kit always wins.
 */
.djjc-listen .djjc-listen__buy {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    gap: 10px;
    grid-column: 1 / -1;
    margin-top: -12px; /* the player's rows are 40px apart; this row sits 28px under them */
}

.djjc-listen .djjc-listen__buy-btn {
    display: inline-block;
    max-width: 100%;
    text-align: center;
    text-decoration: none;
    transition: border-color 0.15s ease, color 0.15s ease;
}

:where(.djjc-listen) .djjc-listen__buy-btn {
    background-color: transparent;
    border: 1px solid var(--e-global-color-djjctx, #F0DCCD);
    border-radius: 999px;
    color: var(--e-global-color-djjctx, #F0DCCD);
    font-family: var(--e-global-typography-djjcbf-font-family, "ibm-plex-mono"), ui-monospace, Menlo, Consolas, monospace;
    font-size: var(--e-global-typography-djjcbf-font-size, 13px);
    font-weight: var(--e-global-typography-djjcbf-font-weight, 400);
    letter-spacing: var(--e-global-typography-djjcbf-letter-spacing, 0.1em);
    line-height: var(--e-global-typography-djjcbf-line-height, 14px);
    padding: 12px 20px;
    text-transform: var(--e-global-typography-djjcbf-text-transform, uppercase);
}

:where(.djjc-listen) .djjc-listen__buy-btn:hover,
:where(.djjc-listen) .djjc-listen__buy-btn:focus-visible {
    border-color: var(--e-global-color-djjcbh, #8FD0DA);
    color: var(--e-global-color-djjcbh, #8FD0DA);
}

.djjc-listen .djjc-listen__buy-note {
    color: var(--djjc-muted);
    font-size: 13px;
    line-height: 1.4;
    margin: 0;
}

.djjc-listen .djjc-listen__buy-note a {
    color: var(--djjc-label);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.djjc-listen .djjc-listen__buy-note a:hover {
    color: var(--djjc-text);
}

/* The long link sits under the waveform on a wide screen; the short one beside the status line on a phone. */
.djjc-listen .djjc-listen__sc--short {
    display: none;
}

.djjc-listen .djjc-listen__buttons {
    align-items: center;
    display: flex;
    gap: 10px;
}

.djjc-listen .djjc-listen__btn {
    align-items: center;
    appearance: none;
    background: transparent;
    border: 0;
    border-radius: 50%;
    box-shadow: none;
    color: var(--djjc-text);
    cursor: pointer;
    display: flex;
    flex: none;
    font: inherit;
    height: 48px;
    justify-content: center;
    letter-spacing: inherit;
    margin: 0;
    min-height: 0;
    padding: 0;
    text-transform: inherit;
    width: 48px;
}

.djjc-listen .djjc-listen__btn:hover,
.djjc-listen .djjc-listen__btn:focus {
    background: transparent;
    color: var(--djjc-text);
}

.djjc-listen .djjc-listen__btn:disabled {
    cursor: default;
    opacity: 0.35;
}

.djjc-listen .djjc-listen__btn--toggle,
.djjc-listen .djjc-listen__btn--toggle:hover,
.djjc-listen .djjc-listen__btn--toggle:focus {
    background: var(--djjc-play-bg, #C8683F);
    color: var(--djjc-play-text, #0D0E0F);
    height: 64px;
    transition: background-color 0.15s ease, color 0.15s ease;
    width: 64px;
}

/*
 * The play button under the pointer, the same hover as every button on the
 * site. Only where there is a pointer that hovers: on a touch screen "hover"
 * sticks after a tap, and the button would look switched on. These have to
 * stay BELOW the rule above, which they tie with.
 */
@media (hover: hover) {
    .djjc-listen .djjc-listen__btn--toggle:hover {
        background: var(--djjc-play-hover-bg, #8FD0DA);
        color: var(--djjc-play-hover-text, #0D0E0F);
    }
}

.djjc-listen .djjc-listen__btn--toggle:focus-visible {
    background: var(--djjc-play-hover-bg, #8FD0DA);
    color: var(--djjc-play-hover-text, #0D0E0F);
}

.djjc-listen .djjc-listen__btn--mute,
.djjc-listen .djjc-listen__btn--mute:hover,
.djjc-listen .djjc-listen__btn--mute:focus {
    color: var(--djjc-soft);
    height: 40px;
    margin-left: 12px;
    width: 40px;
}

.djjc-listen .djjc-listen__vol {
    accent-color: var(--djjc-accent);
    background: transparent;
    border: 0;
    cursor: pointer;
    flex: none;
    margin: 0;
    padding: 0;
    width: 96px;
}

.djjc-listen .djjc-listen__icon,
.djjc-listen-mini .djjc-listen__icon {
    display: block;
    flex: none;
}

/*
 * Play, pause and the waiting ring share a button; which one shows is a class
 * the script sets. These rules have to stay BELOW the one above: same weight,
 * so the later one wins, and the other way round every icon shows at once.
 */
.djjc-listen .djjc-listen__icon--pause,
.djjc-listen .djjc-listen__icon--wait,
.djjc-listen .is-playing > .djjc-listen__icon--play,
.djjc-listen .is-loading > .djjc-listen__icon--play,
.djjc-listen .is-loading > .djjc-listen__icon--pause,
.djjc-listen .djjc-listen__icon--muted,
.djjc-listen .is-muted > .djjc-listen__icon--volume,
.djjc-listen-mini .djjc-listen__icon--pause,
.djjc-listen-mini .is-playing > .djjc-listen__icon--play {
    display: none;
}

.djjc-listen .is-playing:not(.is-loading) > .djjc-listen__icon--pause,
.djjc-listen .is-loading > .djjc-listen__icon--wait,
.djjc-listen .is-muted > .djjc-listen__icon--muted,
.djjc-listen-mini .is-playing > .djjc-listen__icon--pause {
    display: block;
}

.djjc-listen .is-loading > .djjc-listen__icon--wait {
    animation: djjc-listen-spin 0.8s linear infinite;
}

@keyframes djjc-listen-spin {
    to { transform: rotate(360deg); }
}

.djjc-listen .djjc-listen__error {
    border-left: 2px solid var(--djjc-accent);
    color: var(--djjc-text);
    font-size: 14px;
    margin: 16px var(--djjc-edge) 0;
    padding: 2px 0 2px 12px;
    position: relative;
}

/* Between a phone and a wide screen: the name and the buttons on one row, the waveform across the next. */
@media (min-width: 768px) and (max-width: 1099px) {
    .djjc-listen .djjc-listen__player {
        gap: 20px 32px;
        grid-template-areas: "now buttons" "scrub scrub" "buy buy";
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .djjc-listen .djjc-listen__now {
        grid-area: now;
    }

    /* Beside the buttons there is half a row for the title: two lines before it is cut, not one. */
    .djjc-listen .djjc-listen__now-title {
        -webkit-box-orient: vertical;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        overflow-wrap: anywhere;
        white-space: normal;
    }

    .djjc-listen .djjc-listen__scrub {
        grid-area: scrub;
    }

    .djjc-listen .djjc-listen__buttons {
        grid-area: buttons;
    }

    .djjc-listen .djjc-listen__buy {
        grid-area: buy;
        margin-top: 4px;
    }
}

/*
 * Phone: one column, and as little in it as it can do with (Brief 34). The
 * status and SoundCloud's mark, the title once, the waveform and its times,
 * previous / play / next, then the outline buy button and its one line. No
 * mute and no volume: a phone's side buttons are the volume. The rows are 16px
 * or 24px apart.
 */
@media (max-width: 767px) {
    .djjc-listen .djjc-listen__player {
        border-top: 0;
        display: flex;
        flex-direction: column;
        gap: 0;
        align-items: stretch;
        margin: 24px 0 0;
        padding: 0 var(--djjc-edge);
    }

    .djjc-listen .djjc-listen__now {
        gap: 0;
    }

    .djjc-listen .djjc-listen__now-top {
        min-height: 28px;
    }

    .djjc-listen .djjc-listen__status {
        font-size: 12px;
    }

    /*
     * SoundCloud's mark alone, no word (the link still says "Listen on
     * SoundCloud" to a screen reader). 44px square for a thumb, in a row that
     * stays 28px: the link is taller than its row by 8px above and 8px below,
     * and the same margin taken back off keeps the row where it was. Lifted
     * above the title, whose box would otherwise lie over the lower 8px and
     * take the tap.
     */
    .djjc-listen .djjc-listen__sc--short {
        display: flex;
        justify-content: flex-end;
        margin: -8px 0 -8px auto;
        min-height: 44px;
        min-width: 44px;
        position: relative;
        z-index: 1;
    }

    .djjc-listen .djjc-listen__sc--long {
        display: none;
    }

    .djjc-listen .djjc-listen__now-title {
        font-size: 30px;
        margin-top: 8px;
    }

    .djjc-listen .djjc-listen__now-sub {
        font-size: 14px;
        margin-top: 6px;
    }

    .djjc-listen .djjc-listen__scrub {
        gap: 4px;
        margin-top: 24px;
    }

    .djjc-listen .djjc-listen__wave {
        height: 44px;
    }

    .djjc-listen .djjc-listen__time {
        font-size: 12px;
    }

    /* previous, play, next: play in the middle of the screen */
    .djjc-listen .djjc-listen__buttons {
        gap: 24px;
        justify-content: center;
        margin-top: 16px;
    }

    .djjc-listen .djjc-listen__btn--mute {
        display: none;
    }

    /* The buy button and its line, under the transport buttons. */
    .djjc-listen .djjc-listen__buy {
        gap: 12px;
        margin-top: 24px;
        order: 9;
    }

    /* A thumb's worth of link (42px tall) without moving the line it is part of. */
    .djjc-listen .djjc-listen__buy-note a {
        display: inline-block;
        margin: -11px 0;
        padding: 11px 0;
    }
}

/*
 * No volume slider on a touch device: an iPhone ignores a page's volume
 * entirely (the side buttons are the volume), so a slider there is a control
 * that does nothing. On a phone the mute button goes too (above).
 */
@media (max-width: 767px), (hover: none) and (pointer: coarse) {
    .djjc-listen .djjc-listen__vol {
        display: none;
    }
}

/* -- Parts of the player switched off in the widget ----------------------- */

.djjc-listen.djjc-listen--no-wave .djjc-listen__wave,
.djjc-listen.djjc-listen--no-vol .djjc-listen__vol,
.djjc-listen.djjc-listen--no-mute .djjc-listen__btn--mute,
.djjc-listen.djjc-listen--no-skip .djjc-listen__btn[data-djjc-prev],
.djjc-listen.djjc-listen--no-skip .djjc-listen__btn[data-djjc-next] {
    display: none;
}

/* the space the mute button kept between Next and the volume slider */
.djjc-listen.djjc-listen--no-mute .djjc-listen__vol {
    margin-left: 12px;
}

/* -- Focus: always visible, same ring everywhere -------------------------- */

.djjc-listen .djjc-listen__sleeve:focus-visible,
.djjc-listen .djjc-listen__arrow:focus-visible,
.djjc-listen .djjc-listen__btn:focus-visible,
.djjc-listen .djjc-listen__wave:focus-visible,
.djjc-listen .djjc-listen__vol:focus-visible,
.djjc-listen .djjc-listen__sc:focus-visible,
.djjc-listen .djjc-listen__buy-btn:focus-visible,
.djjc-listen .djjc-listen__buy-note a:focus-visible,
.djjc-listen-mini .djjc-listen-mini__btn:focus-visible,
.djjc-listen-mini .djjc-listen-mini__text:focus-visible {
    outline: 2px solid var(--djjc-label);
    outline-offset: 3px;
}

/* The shelf clips what hangs outside it, so a sleeve's ring is drawn inside its edge. */
.djjc-listen .djjc-listen__sleeve:focus-visible,
.djjc-listen-mini .djjc-listen-mini__text:focus-visible {
    outline-offset: -2px;
}

.djjc-listen .djjc-listen__wave:focus:not(:focus-visible) {
    outline: none;
}

/*
 * SoundCloud's own player, when a song has to use it. Invisible, but REAL-SIZED
 * and laid out: at 1px their player throws errors drawing its waveform into a
 * zero-width canvas, and a frame that is display:none can be refused playback.
 */
.djjc-listen .djjc-listen__sc-frame {
    border: 0;
    clip-path: inset(50%);
    height: 166px;
    left: 0;
    max-width: 100%;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: 0;
    width: 300px;
}

/* -- The docked mini player (phones, while the Listen player is off screen) -- */

.djjc-listen-mini {
    display: none;
}

@media (max-width: 767px) {
    .djjc-listen-mini {
        -webkit-backdrop-filter: blur(18px);
        backdrop-filter: blur(18px);
        background: color-mix(in srgb, var(--djjc-panel) 92%, transparent);
        border: 1px solid var(--djjc-line);
        border-radius: 16px;
        bottom: calc(16px + env(safe-area-inset-bottom)); /* clear of the home indicator */
        box-shadow: 0 12px 40px color-mix(in srgb, var(--djjc-shadow) 60%, transparent);
        color: var(--djjc-text);
        display: block;
        font-family: var(--djjc-font-body);
        font-style: normal;
        font-weight: 400;
        left: max(10px, env(safe-area-inset-left));
        letter-spacing: normal;
        line-height: 1.28;
        opacity: 0;
        overflow: hidden;
        pointer-events: none;
        position: fixed;
        right: max(10px, env(safe-area-inset-right));
        text-transform: none;
        transform: translateY(12px);
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
        visibility: hidden;
        z-index: 9990;
    }

    .djjc-listen-mini.is-visible {
        opacity: 1;
        pointer-events: auto;
        transform: none;
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s;
        visibility: visible;
    }

    /* So the bar never sits on top of the last thing on the page. */
    html.djjc-listen-mini-on body {
        padding-bottom: calc(96px + env(safe-area-inset-bottom));
    }
}

.djjc-listen-mini .djjc-listen-mini__row {
    align-items: center;
    display: flex;
    gap: 12px;
    padding: 10px 8px 10px 10px;
}

.djjc-listen-mini .djjc-listen-mini__art {
    background: var(--djjc-bg);
    border-radius: 6px;
    flex: none;
    height: 48px;
    overflow: hidden;
    width: 48px;
}

.djjc-listen-mini .djjc-listen-mini__art img {
    border-radius: 0;
    display: block;
    height: 100%;
    max-width: none;
    object-fit: cover;
    width: 100%;
}

.djjc-listen-mini .djjc-listen-mini__text,
.djjc-listen-mini .djjc-listen-mini__btn {
    appearance: none;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    color: var(--djjc-text);
    cursor: pointer;
    font-family: var(--djjc-font-body);
    letter-spacing: 0;
    margin: 0;
    min-height: 0;
    padding: 0;
    text-transform: none;
}

.djjc-listen-mini .djjc-listen-mini__text:hover,
.djjc-listen-mini .djjc-listen-mini__text:focus,
.djjc-listen-mini .djjc-listen-mini__btn:hover,
.djjc-listen-mini .djjc-listen-mini__btn:focus {
    background: transparent;
    color: var(--djjc-text);
}

.djjc-listen-mini .djjc-listen-mini__text {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 2px;
    justify-content: center;
    min-height: 44px;
    min-width: 0;
    text-align: left;
    white-space: normal;
}

.djjc-listen-mini .djjc-listen-mini__title,
.djjc-listen-mini .djjc-listen-mini__artist {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.djjc-listen-mini .djjc-listen-mini__title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.28;
}

.djjc-listen-mini .djjc-listen-mini__artist {
    color: var(--djjc-muted);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.28;
}

/* The card only ever shows on a phone; this is the size it shows at, and the widget's Mobile default. */
@media (max-width: 767px) {
    .djjc-listen-mini .djjc-listen-mini__artist {
        font-size: 13px;
    }
}

.djjc-listen-mini .djjc-listen-mini__btn {
    align-items: center;
    border-radius: 50%;
    display: flex;
    flex: none;
    height: 44px;
    justify-content: center;
    width: 44px;
}

.djjc-listen-mini .djjc-listen-mini__btn--toggle,
.djjc-listen-mini .djjc-listen-mini__btn--toggle:hover,
.djjc-listen-mini .djjc-listen-mini__btn--toggle:focus {
    background: var(--djjc-play-bg, #C8683F);
    color: var(--djjc-play-text, #0D0E0F);
    transition: background-color 0.15s ease, color 0.15s ease;
}

/* The same hover as the play button above, and for the same reason only where a pointer hovers. Below the rule it ties with. */
@media (hover: hover) {
    .djjc-listen-mini .djjc-listen-mini__btn--toggle:hover {
        background: var(--djjc-play-hover-bg, #8FD0DA);
        color: var(--djjc-play-hover-text, #0D0E0F);
    }
}

.djjc-listen-mini .djjc-listen-mini__btn--toggle:focus-visible {
    background: var(--djjc-play-hover-bg, #8FD0DA);
    color: var(--djjc-play-hover-text, #0D0E0F);
}

.djjc-listen-mini .djjc-listen-mini__btn:disabled {
    cursor: default;
    opacity: 0.35;
}

.djjc-listen-mini .djjc-listen-mini__progress {
    background: color-mix(in srgb, var(--djjc-text) 15%, transparent);
    height: 3px;
}

.djjc-listen-mini .djjc-listen-mini__bar {
    background: var(--djjc-accent);
    display: block;
    height: 3px;
    width: 0;
}

/*
 * REDUCED MOTION: nothing animates. The loaded record is still shown lifted
 * with its vinyl out (that is a state, not a motion), it just gets there in
 * one step, and the script does not turn the vinyl at all.
 */
@media (prefers-reduced-motion: reduce) {
    .djjc-listen *,
    .djjc-listen-mini,
    .djjc-listen-mini * {
        animation: none !important;
        transition: none !important;
    }
}

/* ==========================================================================
 * THE CENTERED LAYOUT (Brief 100, the Listen place on the wall)
 *
 * The pictures are BRIEFS/100-ref/03-listen-centered (1440 x 900) and
 * 03-phone-listen-centered (390 x 844); every number below is theirs. Built
 * phone first: the block without a media query is the phone's, then wider.
 *
 * Each record carries data-pos, its place either side of the middle: 0 the
 * featured song (biggest, vinyl out), 1 and -1 the inner pair, 2 and -2 the
 * outer pair, 3 and -3 waiting out of sight. Everything about a record (size,
 * where its centre is, how bright, which is on top) follows from that number
 * and the custom properties here, so the server's first paint is already the
 * picture and the script only moves the numbers. A change of number eases.
 *
 * Every rule starts .djjc-listen.djjc-listen--centered: one class more than
 * the shelf's rules above, so these win without !important and the shelf is
 * never touched.
 * ========================================================================== */

.djjc-listen.djjc-listen--centered {
    /* What the widget's "Centered layout" section sets, per device. These are the phone's. */
    --djjc-c-feat: 200px;          /* the featured sleeve */
    --djjc-c-inner: 130px;         /* the sleeves either side */
    --djjc-c-outer: 130px;         /* the next ones out (off a phone's screen) */
    --djjc-c-gap1: 18px;
    --djjc-c-gap2: 18px;
    --djjc-c-dim1: 0.42;           /* brightness, never opacity: nothing here is see-through */
    --djjc-c-dim2: 0.32;
    --djjc-c-vinyl: 200px;
    --djjc-c-peek: 36px;           /* how far the vinyl stands out of the top of the featured sleeve */
    --djjc-c-slide: 450ms;
    --djjc-c-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    --djjc-c-label-gap: 5px;
    --djjc-c-air: 36px;            /* heading to the top of the vinyl */
    --djjc-c-under: 22px;
    --djjc-c-lines: 8px;
    --djjc-c-wave-gap: 26px;
    --djjc-c-wave-h: 36px;
    --djjc-c-row-gap: 17px;
    --djjc-c-dots-gap: 36px;
    --djjc-c-width: 330px;
    --djjc-c-play: 64px;
    --djjc-c-btn-gap: 23px;
    --djjc-c-arrows: none;         /* a phone swipes */
    --djjc-c-arrow: 44px;
    --djjc-c-arrow-inset: 12px;
    --djjc-c-status: none;
    --djjc-c-dots: flex;

    /* Where each place puts a record's centre, from the middle of the screen. */
    --djjc-c-x1: calc(var(--djjc-c-feat) / 2 + var(--djjc-c-gap1) + var(--djjc-c-inner) / 2);
    --djjc-c-x2: calc(var(--djjc-c-feat) / 2 + var(--djjc-c-gap1) + var(--djjc-c-inner) + var(--djjc-c-gap2) + var(--djjc-c-outer) / 2);
    --djjc-c-x3: calc(var(--djjc-c-x2) + var(--djjc-c-outer) + var(--djjc-c-gap2));

    padding: 0 0 8px; /* the place on the Stage sets where it starts; 8px leaves room for a focus ring */
}

@media (min-width: 768px) {
    .djjc-listen.djjc-listen--centered {
        --djjc-c-feat: 240px;
        --djjc-c-inner: 160px;
        --djjc-c-outer: 96px;
        --djjc-c-gap1: 28px;
        --djjc-c-gap2: 24px;
        --djjc-c-dim1: 0.5;
        --djjc-c-dim2: 0.32;
        --djjc-c-vinyl: 240px;
        --djjc-c-peek: 44px;
        --djjc-c-slide: 550ms;
        --djjc-c-label-gap: 6px;
        --djjc-c-air: 50px;
        --djjc-c-lines: 10px;
        --djjc-c-wave-gap: 23px;
        --djjc-c-wave-h: 40px;
        --djjc-c-row-gap: 14px;
        --djjc-c-width: 540px;
        --djjc-c-play: 56px;
        --djjc-c-btn-gap: 26px;
        --djjc-c-arrows: flex;
        --djjc-c-arrow: 48px;
        --djjc-c-arrow-inset: 16px;
        --djjc-c-status: block;
        --djjc-c-dots: none;
    }
}

@media (min-width: 1025px) {
    .djjc-listen.djjc-listen--centered {
        --djjc-c-feat: 270px;
        --djjc-c-inner: 180px;
        --djjc-c-outer: 130px;
        --djjc-c-gap1: 36px;
        --djjc-c-gap2: 30px;
        --djjc-c-vinyl: 270px;
        --djjc-c-peek: 48px;
        --djjc-c-air: 60px;
        --djjc-c-arrow: 52px;
        --djjc-c-arrow-inset: 120px;
    }
}

/* -- Heading: centred, with air under it ---------------------------------- */

.djjc-listen.djjc-listen--centered .djjc-listen__head {
    justify-content: center;
    text-align: center;
}

.djjc-listen.djjc-listen--centered .djjc-listen__headings {
    align-items: center;
    gap: var(--djjc-c-label-gap);
}

.djjc-listen.djjc-listen--centered .djjc-listen__label {
    letter-spacing: 0.2em;
}

/* Line height 1, the picture's: the box is the type, so the air under it is the air you see. */
.djjc-listen.djjc-listen--centered .djjc-listen__heading {
    line-height: 1;
}

.djjc-listen.djjc-listen--centered .djjc-listen__empty {
    text-align: center;
}

/* -- The records ----------------------------------------------------------- */

/* The vinyl stands out of the top of the featured sleeve, so the row starts that much above the sleeves. */
.djjc-listen.djjc-listen--centered .djjc-listen__stage {
    height: calc(var(--djjc-c-peek) + var(--djjc-c-feat));
    margin-top: var(--djjc-c-air);
    position: relative;
}

.djjc-listen.djjc-listen--centered .djjc-listen__shelf {
    display: block;
    inset: 0;
    overflow: visible;
    padding: 0;
    position: absolute;
    scroll-snap-type: none;
    touch-action: pan-y pinch-zoom; /* a finger going sideways is the script's: it brings the next record to the middle */
    transition: transform var(--djjc-c-slide) var(--djjc-c-ease);
}

/* Following a finger: no easing, it moves with the finger. */
.djjc-listen.djjc-listen--centered .djjc-listen__shelf.is-dragging {
    transition: none;
}

/*
 * One record. Its centre sits --x from the middle of the screen, level with
 * the featured sleeve's centre, at --size square. width, height and the move
 * all ease together, so a record grows into the middle and shrinks out of it.
 */
.djjc-listen.djjc-listen--centered .djjc-listen__record {
    --size: var(--djjc-c-outer);
    --x: 0px;
    --djjc-rec: var(--djjc-c-feat);
    --djjc-v: 100%;               /* the vinyl: tucked in its sleeve, its size, except in the middle */
    display: block;
    filter: brightness(var(--djjc-c-dim2));
    height: var(--size);
    left: 50%;
    position: absolute;
    top: calc(var(--djjc-c-peek) + var(--djjc-c-feat) / 2);
    transform: translate(calc(var(--x) - 50%), -50%);
    transition:
        transform var(--djjc-c-slide) var(--djjc-c-ease),
        width var(--djjc-c-slide) var(--djjc-c-ease),
        height var(--djjc-c-slide) var(--djjc-c-ease),
        filter var(--djjc-c-slide) var(--djjc-c-ease),
        opacity var(--djjc-c-slide) var(--djjc-c-ease),
        visibility 0s linear var(--djjc-c-slide);
    width: var(--size);
    z-index: 1;
}

.djjc-listen.djjc-listen--centered .djjc-listen__record[data-pos="0"] {
    --size: var(--djjc-c-feat);
    --djjc-v: var(--djjc-c-vinyl);
    filter: none;
    z-index: 4;
}

.djjc-listen.djjc-listen--centered .djjc-listen__record[data-pos="1"],
.djjc-listen.djjc-listen--centered .djjc-listen__record[data-pos="-1"] {
    --size: var(--djjc-c-inner);
    filter: brightness(var(--djjc-c-dim1));
    z-index: 3;
}

.djjc-listen.djjc-listen--centered .djjc-listen__record[data-pos="2"],
.djjc-listen.djjc-listen--centered .djjc-listen__record[data-pos="-2"] {
    z-index: 2;
}

.djjc-listen.djjc-listen--centered .djjc-listen__record[data-pos="1"] { --x: var(--djjc-c-x1); }
.djjc-listen.djjc-listen--centered .djjc-listen__record[data-pos="-1"] { --x: calc(var(--djjc-c-x1) * -1); }
.djjc-listen.djjc-listen--centered .djjc-listen__record[data-pos="2"] { --x: var(--djjc-c-x2); }
.djjc-listen.djjc-listen--centered .djjc-listen__record[data-pos="-2"] { --x: calc(var(--djjc-c-x2) * -1); }
.djjc-listen.djjc-listen--centered .djjc-listen__record[data-pos="3"] { --x: var(--djjc-c-x3); }
.djjc-listen.djjc-listen--centered .djjc-listen__record[data-pos="-3"] { --x: calc(var(--djjc-c-x3) * -1); }

/* Waiting out of sight, one place past the outer pair, so a record coming in slides in from there. */
.djjc-listen.djjc-listen--centered .djjc-listen__record[data-pos="3"],
.djjc-listen.djjc-listen--centered .djjc-listen__record[data-pos="-3"] {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    z-index: 0;
}

.djjc-listen.djjc-listen--centered .djjc-listen__record:not([data-pos="3"]):not([data-pos="-3"]) {
    transition-delay: 0s;
}

/* A record the script moves from one end of the loop to the other, out of sight: no slide across the screen. */
.djjc-listen.djjc-listen--centered .djjc-listen__record.is-jump,
.djjc-listen.djjc-listen--centered .djjc-listen__record.is-jump * {
    transition: none !important;
}

/* The sleeve is the whole record: no lift, no room for text under it (the player says the name). */
.djjc-listen.djjc-listen--centered .djjc-listen__sleeve {
    height: 100%;
    width: 100%;
}

.djjc-listen.djjc-listen--centered .djjc-listen__lift,
.djjc-listen.djjc-listen--centered .djjc-listen__record.is-loaded .djjc-listen__lift {
    height: 100%;
    inset: 0;
    opacity: 1;
    transform: none;
    width: 100%;
}

.djjc-listen.djjc-listen--centered .djjc-listen__lift::after,
.djjc-listen.djjc-listen--centered .djjc-listen__meta {
    display: none;
}

.djjc-listen.djjc-listen--centered .djjc-listen__cover,
.djjc-listen.djjc-listen--centered .djjc-listen__record.is-loaded .djjc-listen__cover {
    border-radius: 0;
    box-shadow: 0 22px 50px color-mix(in srgb, var(--djjc-shadow) 50%, transparent);
    height: 100%;
    width: 100%;
}

/*
 * THE VINYL: a solid black record, never see-through and never gone. It is
 * tucked in behind every sleeve and stands out of the top of the one in the
 * middle by --djjc-c-peek. Nothing on it or above it has an opacity below 1;
 * the records either side are darkened with brightness instead.
 */
.djjc-listen.djjc-listen--centered .djjc-listen__vinyl {
    height: var(--djjc-v);
    left: calc((100% - var(--djjc-v)) / 2);
    opacity: 1;
    top: calc((100% - var(--djjc-v)) / 2);
    transition:
        transform var(--djjc-c-slide) var(--djjc-c-ease),
        width var(--djjc-c-slide) var(--djjc-c-ease),
        height var(--djjc-c-slide) var(--djjc-c-ease),
        left var(--djjc-c-slide) var(--djjc-c-ease),
        top var(--djjc-c-slide) var(--djjc-c-ease);
    width: var(--djjc-v);
}

.djjc-listen.djjc-listen--centered .djjc-listen__record.is-loaded .djjc-listen__vinyl {
    transform: none;
}

.djjc-listen.djjc-listen--centered .djjc-listen__record.is-loaded[data-pos="0"] .djjc-listen__vinyl {
    transform: translateY(calc((var(--djjc-c-peek) + (var(--djjc-c-feat) - var(--djjc-c-vinyl)) / 2) * -1));
}

/* The arrows: either side, level with the middle of the featured sleeve. */
.djjc-listen.djjc-listen--centered .djjc-listen__arrow {
    display: var(--djjc-c-arrows);
    height: var(--djjc-c-arrow);
    position: absolute;
    top: calc(var(--djjc-c-peek) + var(--djjc-c-feat) / 2 - var(--djjc-c-arrow) / 2);
    width: var(--djjc-c-arrow);
    z-index: 6;
}

.djjc-listen.djjc-listen--centered .djjc-listen__arrow--prev {
    left: var(--djjc-c-arrow-inset);
}

.djjc-listen.djjc-listen--centered .djjc-listen__arrow--next {
    right: var(--djjc-c-arrow-inset);
}

/* -- The player under the sleeve -------------------------------------------- */

.djjc-listen.djjc-listen--centered .djjc-listen__player {
    align-items: center;
    border-top: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: var(--djjc-c-under) 0 0;
    padding: 0 var(--djjc-edge);
    text-align: center;
}

.djjc-listen.djjc-listen--centered .djjc-listen__c-now {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: var(--djjc-c-lines);
    max-width: 100%;
}

.djjc-listen.djjc-listen--centered .djjc-listen__c-title {
    color: var(--djjc-text);
    display: block;
    font-family: var(--djjc-font-display);
    font-size: 28px;
    font-weight: var(--djjc-weight-display);
    letter-spacing: 0;
    line-height: 1;
    overflow-wrap: anywhere;
    text-transform: uppercase;
    text-wrap: balance;
}

.djjc-listen.djjc-listen--centered .djjc-listen__c-artist {
    color: var(--djjc-text);
    display: block;
    font-size: 15px;
    line-height: 1;
}

.djjc-listen.djjc-listen--centered .djjc-listen__c-kind {
    color: var(--djjc-muted);
    display: block;
    font-family: var(--djjc-font-label);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.13em;
    line-height: 1;
    text-transform: uppercase;
}

.djjc-listen.djjc-listen--centered .djjc-listen__scrub {
    gap: 8px;
    margin-top: var(--djjc-c-wave-gap);
    max-width: 100%;
    width: var(--djjc-c-width);
}

.djjc-listen.djjc-listen--centered .djjc-listen__wave {
    height: var(--djjc-c-wave-h);
}

.djjc-listen.djjc-listen--centered .djjc-listen__bar {
    background: color-mix(in srgb, var(--djjc-text) 62%, transparent);
}

.djjc-listen.djjc-listen--centered .djjc-listen__bar.is-played {
    background: var(--djjc-accent);
}

/* Elapsed at the left, the SoundCloud link in the middle, what is left at the right. */
/* As tall as the SoundCloud link, so a song without one moves nothing under it. */
.djjc-listen.djjc-listen--centered .djjc-listen__times {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    min-height: 24px;
}

.djjc-listen.djjc-listen--centered .djjc-listen__time {
    justify-self: start;
}

.djjc-listen.djjc-listen--centered .djjc-listen__time--end {
    grid-column: 3;
    justify-self: end;
}

.djjc-listen.djjc-listen--centered .djjc-listen__sc--long {
    display: flex;
    grid-column: 2;
    justify-content: center;
    min-height: 24px;
}

/* Status at the left, previous / play / next in the middle, the volume at the right. */
.djjc-listen.djjc-listen--centered .djjc-listen__c-row {
    align-items: center;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    margin-top: var(--djjc-c-row-gap);
    max-width: 100%;
    width: var(--djjc-c-width);
}

.djjc-listen.djjc-listen--centered .djjc-listen__status {
    display: var(--djjc-c-status);
    grid-column: 1;
    justify-self: start;
    letter-spacing: 0.18em;
    text-align: left;
}

.djjc-listen.djjc-listen--centered .djjc-listen__buttons {
    gap: var(--djjc-c-btn-gap);
    grid-column: 2;
    justify-content: center;
    margin: 0;
}

.djjc-listen.djjc-listen--centered .djjc-listen__btn {
    height: 44px;
    width: 44px;
}

.djjc-listen.djjc-listen--centered .djjc-listen__btn--toggle {
    box-shadow: 0 10px 26px color-mix(in srgb, var(--djjc-shadow) 45%, transparent);
    height: var(--djjc-c-play);
    width: var(--djjc-c-play);
}

.djjc-listen.djjc-listen--centered .djjc-listen__c-volume {
    align-items: center;
    display: flex;
    grid-column: 3;
    justify-self: end;
}

.djjc-listen.djjc-listen--centered .djjc-listen__btn--mute {
    margin-left: 0;
}

.djjc-listen.djjc-listen--centered .djjc-listen__vol {
    width: 72px;
}

.djjc-listen.djjc-listen--centered .djjc-listen__buy {
    align-items: center;
    margin-top: 20px;
}

/* Where the record in the middle is among them all (phones). */
.djjc-listen.djjc-listen--centered .djjc-listen__dots {
    display: var(--djjc-c-dots);
    gap: 8px;
    justify-content: center;
    margin-top: var(--djjc-c-dots-gap);
}

.djjc-listen.djjc-listen--centered .djjc-listen__dot {
    background: color-mix(in srgb, var(--djjc-text) 45%, transparent);
    border-radius: 3px;
    display: block;
    height: 6px;
    transition: width var(--djjc-c-slide) var(--djjc-c-ease), background-color var(--djjc-c-slide) var(--djjc-c-ease);
    width: 6px;
}

.djjc-listen.djjc-listen--centered .djjc-listen__dot.is-current {
    background: var(--djjc-accent);
    width: 16px;
}

.djjc-listen.djjc-listen--centered .djjc-listen__error {
    margin: 16px auto 0;
    max-width: var(--djjc-c-width);
}

@media (min-width: 768px) {
    .djjc-listen.djjc-listen--centered .djjc-listen__c-title {
        font-size: 34px;
    }

    .djjc-listen.djjc-listen--centered .djjc-listen__c-artist {
        font-size: 17px;
    }

    .djjc-listen.djjc-listen--centered .djjc-listen__c-kind {
        font-size: 12px;
    }
}

/* ==========================================================================
 * ON THE WALL (Brief 100): only where the section is a place on the Stage.
 *
 * John, 2026-11-06: "i asked for no black backgorund that looks so dumn" and
 * "some of the text is hard to read. how will we fix that wihtlut haing to
 * change the lighting effects". So inside .djjc-place, in both layouts: no
 * background at all (the room shows behind), the quiet words lifted toward
 * the headings' cream, small words one weight heavier, and a hairline shadow
 * under every letter. The widget's "On the wall" controls set the custom
 * properties on its wrapper; the values after the commas are the same
 * defaults, for the shortcode. Nothing here matches outside a place, so the
 * homepage is as it was.
 * ========================================================================== */

.djjc-place .djjc-listen {
    background: none;
    text-shadow: var(--djjc-wall-shadow, 0 1px 1.5px rgba(0, 0, 0, 0.8));
}

.djjc-place .djjc-listen::before {
    content: none;
    display: none;
}

.djjc-place .djjc-listen .djjc-listen__count,
.djjc-place .djjc-listen .djjc-listen__meta-artist,
.djjc-place .djjc-listen .djjc-listen__meta-length,
.djjc-place .djjc-listen .djjc-listen__time,
.djjc-place .djjc-listen .djjc-listen__sc,
.djjc-place .djjc-listen .djjc-listen__now-sub,
.djjc-place .djjc-listen .djjc-listen__c-kind,
.djjc-place .djjc-listen .djjc-listen__buy-note,
.djjc-place .djjc-listen .djjc-listen__empty {
    color: var(--djjc-wall-quiet, #e6d3c4);
}

.djjc-place .djjc-listen .djjc-listen__label,
.djjc-place .djjc-listen .djjc-listen__status,
.djjc-place .djjc-listen .djjc-listen__buy-note a {
    color: var(--djjc-wall-label, #95cbd1);
}

.djjc-place .djjc-listen .djjc-listen__label,
.djjc-place .djjc-listen .djjc-listen__count,
.djjc-place .djjc-listen .djjc-listen__status,
.djjc-place .djjc-listen .djjc-listen__time,
.djjc-place .djjc-listen .djjc-listen__sc,
.djjc-place .djjc-listen .djjc-listen__meta-artist,
.djjc-place .djjc-listen .djjc-listen__meta-length,
.djjc-place .djjc-listen .djjc-listen__now-sub,
.djjc-place .djjc-listen .djjc-listen__c-kind,
.djjc-place .djjc-listen .djjc-listen__buy-note {
    font-weight: var(--djjc-wall-small-weight, 500);
}

.djjc-place .djjc-listen .djjc-listen__sc:hover {
    color: var(--djjc-text);
}

/* ==========================================================================
 * NOW PLAYING AT HOME (Brief 109)
 *
 * The pictures are BRIEFS/109-ref/mini-desktop.png (option D) and
 * mini-phone.png (option A); the numbers are desktop.html (.np) and
 * phone.html (.dock). One element, two looks: the pill above the Next Up chip
 * on wider screens, and the docked card under it on a phone, picked by the
 * class djjc-listen-home--dock that listen.js sets from the section's phone
 * width. It sits in Home's content, a centred column, so it moves with Home.
 *
 * listen.js sets two custom properties: --djjc-listen-home-h, the chip's
 * measured height, and --djjc-listen-home-gap, the margin that makes the gap
 * to the chip 12px (14px on a phone) whatever the chip's wrappers add.
 * ========================================================================== */

.djjc-listen-home {
    --djjc-bg: #0d0e0f;
    --djjc-panel: #15181a;
    --djjc-text: #f0dccd;
    --djjc-muted: #a89c93;
    --djjc-accent: #c8683f;
    --djjc-label: #8fd0da;
    --djjc-shadow: #000000;
    --djjc-play-bg: var(--e-global-color-djjcbt, #C8683F);
    --djjc-play-text: var(--e-global-color-djjcbx, #0D0E0F);
    --djjc-play-hover-bg: var(--e-global-color-djjcbh, #8FD0DA);
    --djjc-play-hover-text: var(--e-global-color-djjchx, #0D0E0F);
    --djjc-font-label: var(--e-global-typography-secondary-font-family, "ibm-plex-mono"), ui-monospace, Menlo, Consolas, monospace;
    --djjc-font-body: var(--e-global-typography-text-font-family, "space-grotesk-variable"), system-ui, -apple-system, "Segoe UI", sans-serif;
    --djjc-line: color-mix(in srgb, var(--djjc-text) 14%, transparent);

    /* Desktop and tablet: the pill, the same height and line language as the chip. */
    align-items: center;
    align-self: center;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    background: rgba(13, 14, 15, 0.62);
    border: 1px solid rgba(240, 220, 205, 0.18);
    border-radius: 999px;
    box-sizing: border-box;
    color: var(--djjc-text);
    display: flex;
    flex: none;
    font-family: var(--djjc-font-body);
    font-style: normal;
    font-weight: 400;
    gap: 12px;
    height: var(--djjc-listen-home-h, 53px);
    letter-spacing: normal;
    line-height: 1.28;
    margin: 0 0 var(--djjc-listen-home-gap, 12px);
    max-width: 100%;
    order: -1; /* above the chip */
    overflow: hidden;
    padding: 0 8px;
    position: relative;
    text-align: left;
    text-transform: none;
    width: 340px;
}

.djjc-listen-home[hidden],
.djjc-listen-home [hidden] {
    display: none !important;
}

.djjc-listen-home *,
.djjc-listen-home *::before,
.djjc-listen-home *::after {
    box-sizing: border-box;
}

.djjc-listen-home .djjc-listen-home__art {
    background: var(--djjc-bg);
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(240, 220, 205, 0.12);
    flex: none;
    height: 36px;
    overflow: hidden;
    width: 36px;
}

.djjc-listen-home .djjc-listen-home__art img {
    border-radius: 0;
    display: block;
    height: 100%;
    max-width: none;
    object-fit: cover;
    width: 100%;
}

.djjc-listen-home .djjc-listen-home__text,
.djjc-listen-home .djjc-listen-home__btn {
    appearance: none;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    color: var(--djjc-text);
    cursor: pointer;
    font-family: var(--djjc-font-body);
    letter-spacing: 0;
    margin: 0;
    min-height: 0;
    padding: 0;
    text-shadow: none;
    text-transform: none;
}

.djjc-listen-home .djjc-listen-home__text:hover,
.djjc-listen-home .djjc-listen-home__text:focus,
.djjc-listen-home .djjc-listen-home__btn:hover,
.djjc-listen-home .djjc-listen-home__btn:focus {
    background: transparent;
    color: var(--djjc-text);
}

.djjc-listen-home .djjc-listen-home__text {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 2px;
    justify-content: center;
    min-height: 36px;
    min-width: 0;
    text-align: left;
    white-space: normal;
}

.djjc-listen-home .djjc-listen-home__title,
.djjc-listen-home .djjc-listen-home__artist {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.djjc-listen-home .djjc-listen-home__title {
    font-family: var(--djjc-font-body);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.15;
}

.djjc-listen-home .djjc-listen-home__artist {
    color: var(--djjc-muted);
    font-family: var(--djjc-font-label);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 1.5px;
    line-height: 1.2;
    text-transform: uppercase;
}

.djjc-listen-home .djjc-listen-home__btn {
    align-items: center;
    border-radius: 50%;
    display: flex;
    flex: none;
    height: 32px;
    justify-content: center;
    width: 32px;
}

.djjc-listen-home .djjc-listen-home__btn--toggle {
    height: 36px;
    width: 36px;
}

.djjc-listen-home .djjc-listen-home__btn--toggle,
.djjc-listen-home .djjc-listen-home__btn--toggle:hover,
.djjc-listen-home .djjc-listen-home__btn--toggle:focus {
    background: var(--djjc-play-bg, #C8683F);
    color: var(--djjc-play-text, #0D0E0F);
    transition: background-color 0.15s ease, color 0.15s ease;
}

@media (hover: hover) {
    .djjc-listen-home .djjc-listen-home__btn--toggle:hover {
        background: var(--djjc-play-hover-bg, #8FD0DA);
        color: var(--djjc-play-hover-text, #0D0E0F);
    }
}

.djjc-listen-home .djjc-listen-home__btn--toggle:focus-visible {
    background: var(--djjc-play-hover-bg, #8FD0DA);
    color: var(--djjc-play-hover-text, #0D0E0F);
}

.djjc-listen-home .djjc-listen-home__btn:disabled {
    cursor: default;
    opacity: 0.35;
}

/* The keyboard ring, the same as the Listen player's. The text's is drawn inside it: the pill clips. */
.djjc-listen-home .djjc-listen-home__btn:focus-visible,
.djjc-listen-home .djjc-listen-home__text:focus-visible {
    outline: 2px solid var(--djjc-label);
    outline-offset: 3px;
}

.djjc-listen-home .djjc-listen-home__text:focus-visible {
    outline-offset: -2px;
}

.djjc-listen-home .djjc-listen__icon {
    display: block;
    flex: none;
}

/* Play or pause: which one shows is the class listen.js sets, as on the mini. */
.djjc-listen-home .djjc-listen__icon--pause,
.djjc-listen-home .is-playing > .djjc-listen__icon--play {
    display: none;
}

.djjc-listen-home .is-playing > .djjc-listen__icon--pause {
    display: block;
}

.djjc-listen-home .djjc-listen-home__progress {
    background: rgba(240, 220, 205, 0.12);
    bottom: 0;
    height: 2px;
    left: 24px;
    position: absolute;
    right: 24px;
}

.djjc-listen-home .djjc-listen-home__bar {
    background: var(--djjc-accent);
    display: block;
    height: 2px;
    width: 0;
}

/*
 * Phone: the docked card, the mini's look. It stays in Home's column, under
 * the chip, and reaches past the content's side padding to 10px from the
 * screen edges (or the safe area). Home's content keeps 16px under it, above
 * the home indicator, while it shows.
 */
.djjc-listen-home.djjc-listen-home--dock {
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    align-self: stretch;
    background: color-mix(in srgb, var(--djjc-panel) 92%, transparent);
    border: 1px solid var(--djjc-line);
    border-radius: 16px;
    box-shadow: 0 12px 40px color-mix(in srgb, var(--djjc-shadow) 60%, transparent);
    height: auto;
    margin: var(--djjc-listen-home-gap, 14px) calc(max(10px, env(safe-area-inset-right)) - var(--djjc-stage-content-pad, 20px)) 0 calc(max(10px, env(safe-area-inset-left)) - var(--djjc-stage-content-pad, 20px));
    max-width: none;
    order: 1; /* under the chip */
    padding: 10px 8px 12px 10px;
    width: auto;
}

html.djjc-listen-home-on.djjc-listen-home-dock .djjc-stage--live .djjc-place[data-place="home"] .djjc-place__content {
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
}

.djjc-listen-home.djjc-listen-home--dock .djjc-listen-home__art {
    border-radius: 6px;
    box-shadow: none;
    height: 48px;
    width: 48px;
}

.djjc-listen-home.djjc-listen-home--dock .djjc-listen-home__text {
    gap: 3px;
    min-height: 44px;
}

.djjc-listen-home.djjc-listen-home--dock .djjc-listen-home__title {
    font-weight: 600; /* the mini's */
    line-height: 1.28;
}

.djjc-listen-home.djjc-listen-home--dock .djjc-listen-home__artist {
    font-family: var(--djjc-font-body);
    font-size: 13px;
    letter-spacing: normal;
    line-height: 1.28;
    text-transform: none;
}

/* 44px to the finger on both buttons; the play circle is still drawn at 40px, inside its 2px padding. */
.djjc-listen-home.djjc-listen-home--dock .djjc-listen-home__btn {
    height: 44px;
    width: 44px;
}

.djjc-listen-home.djjc-listen-home--dock .djjc-listen-home__btn--toggle,
.djjc-listen-home.djjc-listen-home--dock .djjc-listen-home__btn--toggle:hover,
.djjc-listen-home.djjc-listen-home--dock .djjc-listen-home__btn--toggle:focus {
    background-clip: content-box;
    padding: 2px;
}

.djjc-listen-home.djjc-listen-home--dock .djjc-listen-home__progress {
    background: color-mix(in srgb, var(--djjc-text) 15%, transparent);
    left: 0;
    right: 0;
}

@media (prefers-reduced-motion: reduce) {
    .djjc-listen-home,
    .djjc-listen-home * {
        animation: none !important;
        transition: none !important;
    }
}
