/*
 * The website's one stylesheet. Every colour, font, corner and spacing
 * comes from the custom properties the page's <head> sets from the
 * design (Design\ThemeCss) - so a theme or style change in the admin
 * panel changes everything here without touching this file. Custom CSS
 * from the admin panel loads after this and can override any rule.
 *
 * Phone first: one column, a menu button; wider screens get grids and
 * the inline menu. Each block is <section class="block block-{type}">.
 */

/* --- Base ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--color-background);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.6;
    /* The footer sits at the bottom of the window even on a short page. */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
h1, h2, h3 { font-family: var(--font-heading); line-height: 1.2; margin: 0 0 calc(var(--space) * 0.6); }
h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3.5vw, 1.9rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 var(--space); }
a { color: var(--color-accent); }
.visually-hidden {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }
.meta { color: var(--color-muted); font-size: 0.92em; }
.badge {
    display: inline-block; padding: 0.15em 0.6em; border-radius: var(--radius);
    background: var(--color-surface); border: 1px solid var(--color-border); color: var(--color-muted);
    font-size: 0.85em;
}
/* A stream/download the logged-in customer already has, in place of "Add to basket". */
.badge-owned { border-color: var(--color-accent); color: var(--color-accent); font-weight: 600; }
.buy-owned { margin-top: 1rem; }
.buy-owned .badge { margin: 0 0 0.4rem; }
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 8px; top: 8px; z-index: 100; background: var(--color-surface); padding: 8px 12px; }

/* --- Preview banner -------------------------------------------------- */
.preview-banner {
    position: sticky; top: 0; z-index: 50;
    padding: 10px 16px; text-align: center; font-size: 0.95rem;
    background: #fff3c4; color: #3d3000; border-bottom: 1px solid #e0c76a;
}
.preview-banner a { color: inherit; font-weight: 700; margin-left: 8px; }

/* --- Header ---------------------------------------------------------- */
.site-header { background: var(--color-header-bg); color: var(--color-header-text); border-bottom: 1px solid var(--color-border); }
.site-header-inner {
    max-width: 1120px; margin: 0 auto; padding: calc(var(--space) * 0.8) 16px;
    display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
}
.site-brand { color: inherit; text-decoration: none; font-family: var(--font-heading); font-weight: 700; font-size: 1.35rem; margin-right: auto; }
/* Sized under Website > Design (ThemeCss: --logo-height, --logo-height-mobile,
   --logo-max-width). The width follows the height; if the widest is reached,
   the image shrinks to fit rather than stretching. */
.site-logo {
    display: block; height: var(--logo-height-mobile, 56px); width: auto; max-width: var(--logo-max-width, 100%);
    object-fit: contain; object-position: left center;
}
@media (min-width: 800px) { .site-logo { height: var(--logo-height, 56px); } }
.header-centered .site-logo { object-position: center; }
.site-nav a { color: inherit; text-decoration: none; }
.site-nav a:hover { text-decoration: underline; }
.menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.submenu { list-style: none; margin: 0; padding: 0; }

/* Phone: a menu button opens the menu (a checkbox - no JavaScript). */
.menu-toggle { position: absolute; opacity: 0; pointer-events: none; }
.menu-button { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; padding: 6px 10px; border: 1px solid currentColor; border-radius: var(--radius); }
.menu-button-bars, .menu-button-bars::before, .menu-button-bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
.menu-button-bars::before, .menu-button-bars::after { content: ""; position: absolute; left: 0; }
.menu-button-bars::before { top: -6px; }
.menu-button-bars::after { top: 6px; }
.menu-toggle:focus-visible + .menu-button { outline: 3px solid var(--color-accent); outline-offset: 2px; }
.site-nav { display: none; flex-basis: 100%; }
.menu-toggle:checked ~ .site-nav { display: block; }
.site-nav .menu { flex-direction: column; gap: 0; }
.site-nav .menu > li { padding: 8px 0; border-top: 1px solid var(--color-border); }
.site-nav .submenu { padding: 4px 0 0 16px; font-size: 0.95em; }
.site-nav .submenu li { padding: 4px 0; }
/* A phone lists every drop-down open, so its toggle is wide screens only. */
.site-nav .submenu-toggle { display: none; }

@media (min-width: 800px) {
    .menu-button { display: none; }
    .site-nav { display: block; flex-basis: auto; }
    .site-nav .menu { flex-direction: row; gap: 4px 24px; }
    .site-nav .menu > li { border: 0; padding: 0; position: relative; }
    .site-nav .submenu {
        display: none; position: absolute; top: 100%; left: -12px; z-index: 20; min-width: 200px;
        padding: 8px 12px; background: var(--color-header-bg); border: 1px solid var(--color-border); border-radius: var(--radius);
    }
    /* Without site.js: hover or keyboard focus opens a drop-down. With it
       (.js-submenus), the toggle button opens it - a tap works the same
       on a touch screen - and hover stays for real mice only. */
    .site-nav:not(.js-submenus) .has-submenu:hover > .submenu,
    .site-nav:not(.js-submenus) .has-submenu:focus-within > .submenu,
    .site-nav .has-submenu.is-open > .submenu { display: block; }
    .site-nav .submenu-toggle:not([hidden]) {
        display: inline-flex; align-items: center; justify-content: center; vertical-align: middle;
        width: 28px; height: 28px; margin: -4px -6px -4px 0; padding: 0;
        background: none; border: 0; border-radius: var(--radius); color: inherit; cursor: pointer;
    }
    .site-nav .submenu-toggle::before {
        content: ""; width: 7px; height: 7px; margin-top: -4px;
        border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
        transform: rotate(45deg); transition: transform 0.15s;
    }
    .site-nav .submenu-toggle[aria-expanded="true"]::before { margin-top: 3px; transform: rotate(-135deg); }
    .site-nav .submenu-toggle:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 1px; }
    .header-centered .site-header-inner { flex-direction: column; text-align: center; }
    .header-centered .site-brand { margin: 0 auto; }
    .header-centered .site-nav .menu { justify-content: center; }
}

@media (min-width: 800px) and (hover: hover) {
    .site-nav .has-submenu:hover > .submenu { display: block; }
}

/* --- Page and blocks ------------------------------------------------- */
.site-main { flex: 1 0 auto; width: 100%; max-width: 1120px; margin: 0 auto; padding: calc(var(--space) * 1.5) 16px calc(var(--space) * 3); }
.block { margin-bottom: calc(var(--space) * 2.5); }
.block-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: var(--space); }
.block-heading h2 { margin: 0; }
.block-more { font-weight: 600; }
.block-unavailable { padding: var(--space); background: var(--color-surface); border-radius: var(--radius); color: var(--color-muted); }
.back-link { margin-bottom: calc(var(--space) * 0.5); font-size: 0.95em; }
.align-center { text-align: center; }
.align-right { text-align: right; }
.text-block, .content-page, .post, .gig, .not-found, .product-description { max-width: 72ch; }
.text-block.align-center, .not-found { margin-left: auto; margin-right: auto; }
.cms-content img { border-radius: var(--radius); }

.button {
    display: inline-block; padding: 0.65em 1.3em; border-radius: var(--radius);
    background: var(--color-accent); color: var(--color-accent-text); border: 2px solid var(--color-accent);
    font-weight: 600; text-decoration: none;
}
.button:hover { filter: brightness(1.08); text-decoration: none; }
.button-outline { background: transparent; color: var(--color-accent); }

.spacer-small { height: calc(var(--space) * 0.5); }
.spacer-medium { height: calc(var(--space) * 1.5); }
.spacer-large { height: calc(var(--space) * 4); }
.spacer { display: flex; align-items: center; }
.spacer hr { width: 100%; border: 0; border-top: 1px solid var(--color-border); margin: 0; }

.image-block { margin: 0; }
.image-block img { border-radius: var(--radius); }
.image-block.width-normal { max-width: 72ch; }
.image-block.width-full { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.image-block.width-full img { border-radius: 0; width: 100%; }
.image-block figcaption { color: var(--color-muted); font-size: 0.9em; margin-top: 6px; }

/* Hero */
.hero {
    position: relative; overflow: hidden; display: flex; align-items: flex-end;
    padding: calc(var(--space) * 2); border-radius: var(--radius);
    background: var(--color-surface);
}
.hero-short { min-height: 220px; }
.hero-medium { min-height: 360px; }
.hero-tall { min-height: min(80vh, 640px); }
.hero.align-center { justify-content: center; align-items: center; }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero.has-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.1)); }
.hero-text { position: relative; z-index: 1; max-width: 640px; }
.hero.has-image .hero-text { color: #fff; }
.hero h1 { font-size: clamp(2rem, 7vw, 3.6rem); }

/* Cards and grids */
.card-grid { display: grid; gap: var(--space); grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); list-style: none; padding: 0; margin: 0; }
@media (min-width: 700px) {
    .card-grid.columns-2 { grid-template-columns: repeat(2, 1fr); }
    .card-grid.columns-3 { grid-template-columns: repeat(3, 1fr); }
    .card-grid.columns-4 { grid-template-columns: repeat(4, 1fr); }
}
.card {
    display: flex; flex-direction: column; overflow: hidden; color: inherit; text-decoration: none;
    background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius);
}
a.card:hover .card-title { text-decoration: underline; }
.card-image { display: block; aspect-ratio: 4 / 3; background: var(--color-border); }
.card-image.square { aspect-ratio: 1; }
.card-image img { width: 100%; height: 100%; object-fit: cover; }
.card-body { display: flex; flex-direction: column; gap: 4px; padding: calc(var(--space) * 0.75); }
.card-title { font-weight: 600; font-family: var(--font-heading); }
.card-title a { color: inherit; text-decoration: none; }
.price { font-weight: 600; }
.price-large { font-size: 1.5rem; }
.post-list { display: flex; flex-direction: column; gap: var(--space); }
.post-list .post-card { flex-direction: row; }
.post-list .post-card .card-image { flex: 0 0 34%; aspect-ratio: auto; }
.pagination { display: flex; justify-content: space-between; align-items: center; margin-top: calc(var(--space) * 1.5); }

/* Feature: an image beside text (latest release, band bio, release header) */
.feature { display: grid; gap: calc(var(--space) * 1.5); }
@media (min-width: 700px) { .feature { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: start; } .feature.no-image { grid-template-columns: 1fr; } }
.feature-image { display: block; border-radius: var(--radius); overflow: hidden; background: var(--color-border); }
.feature-image.square { aspect-ratio: 1; }
.feature-image img { width: 100%; height: 100%; object-fit: cover; }

/* Gigs */
.gig-list { list-style: none; margin: 0 0 var(--space); padding: 0; }
.gig-row { display: flex; align-items: center; gap: var(--space); padding: calc(var(--space) * 0.75) 0; border-bottom: 1px solid var(--color-border); }
.gig-date { flex: 0 0 64px; text-align: center; line-height: 1.1; padding: 6px 0; border-radius: var(--radius); background: var(--color-surface); border: 1px solid var(--color-border); }
.gig-day { display: block; font-size: 1.5rem; font-weight: 700; font-family: var(--font-heading); }
.gig-month, .gig-year { display: block; font-size: 0.8rem; text-transform: uppercase; color: var(--color-muted); }
.gig-info { flex: 1; display: flex; flex-direction: column; }
.gig-venue { font-weight: 600; }
.gig-row.is-cancelled .gig-venue { text-decoration: line-through; }
.gig-list.is-past { opacity: 0.8; }
.gig-when { font-size: 1.2rem; font-weight: 600; }

/* Music */
.tracklist { padding-left: 1.6em; }
.tracklist li { padding: 4px 0; border-bottom: 1px solid var(--color-border); }
.player { list-style: none; margin: 0; padding: 0; }
.player li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 10px 0; border-bottom: 1px solid var(--color-border); }
.player audio { width: min(100%, 360px); }

/* Photos */
.photo-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(140px, 1fr); gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; }
.photo-strip a { scroll-snap-align: start; aspect-ratio: 1; display: block; border-radius: var(--radius); overflow: hidden; }
.photo-strip img, .photo-grid img { width: 100%; height: 100%; object-fit: cover; }
.photo-grid { display: grid; gap: 8px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) {
    .photo-grid.columns-3 { grid-template-columns: repeat(3, 1fr); }
    .photo-grid.columns-4 { grid-template-columns: repeat(4, 1fr); }
    .photo-grid.columns-5 { grid-template-columns: repeat(5, 1fr); }
}
.photo-grid figure { margin: 0; }
.photo-grid a { display: block; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; }
.photo-grid figcaption { font-size: 0.85em; color: var(--color-muted); margin-top: 4px; }
.lightbox { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.88); padding: 16px; }
.lightbox img { max-height: 90vh; width: auto; border-radius: 4px; }
.lightbox button { position: absolute; top: 12px; right: 12px; font-size: 1.1rem; padding: 8px 14px; border: 0; border-radius: var(--radius); cursor: pointer; }

/* Products */
.product-gallery-main { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: var(--radius); background: var(--color-surface); }
.product-gallery-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.product-gallery-thumbs a { width: 72px; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; border: 2px solid transparent; }
.product-gallery-thumbs a[aria-current="true"] { border-color: var(--color-accent); }
.product-gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) {
    /* Gallery and summary side by side on a product page. */
    .site-main:has(> .block-productGallery + .block-productSummary) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: calc(var(--space) * 2); }
    .site-main:has(> .block-productGallery + .block-productSummary) > .block:not(.block-productGallery):not(.block-productSummary) { grid-column: 1 / -1; }
}
.simple-list { padding-left: 1.2em; }

/* Press */
.press-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space); grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.press-item .button { align-self: flex-start; margin-top: 8px; }

/* --- Footer ---------------------------------------------------------- */
.site-footer { background: var(--color-footer-bg); color: var(--color-footer-text); border-top: 1px solid var(--color-border); }
.site-footer-inner { max-width: 1120px; margin: 0 auto; padding: calc(var(--space) * 2) 16px; }
.site-footer a { color: inherit; }
.site-footer .block { margin-bottom: var(--space); }
.site-footer .block:last-child { margin-bottom: 0; }
/* The platform credit on every page - deliberately quiet. */
.powered-by { margin: 0; padding: 12px 16px; text-align: center; font-size: 0.75rem; opacity: 0.7; }
.footer-menu .menu { gap: 8px 24px; }
.footer-menu.align-center .menu { justify-content: center; }
.footer-menu .submenu { font-size: 0.9em; margin-top: 4px; }
.copyright { font-size: 0.9em; color: var(--color-footer-text); opacity: 0.85; margin: 0; }

/* --- Spacing presets --------------------------------------------------- */
.spacing-compact .block { margin-bottom: calc(var(--space) * 1.8); }
.spacing-roomy .site-main { padding-top: calc(var(--space) * 2.5); }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* Custom attributes switched on under Website > Public fields */
.details { margin: 0.75em 0 0; display: grid; gap: 4px; font-size: 0.95em; }
.details .detail { display: flex; flex-wrap: wrap; gap: 0 0.5em; }
.details dt { font-weight: 600; }
.details dt::after { content: ":"; }
.details dd { margin: 0; }
.member-contact { list-style: none; margin: 0.5em 0 0; padding: 0; display: grid; gap: 2px; font-size: 0.95em; overflow-wrap: anywhere; }
.track-credits { display: block; }
.track-lyrics { margin-top: 4px; }
.track-lyrics summary { cursor: pointer; color: var(--color-muted); font-size: 0.92em; }

/* Customer account pages - forms in the design's colours. */
.account-page { max-width: 72ch; }
.account-narrow { max-width: 28rem; margin-left: auto; margin-right: auto; }
.account-form { display: grid; gap: var(--space); margin-bottom: var(--space); }
.account-inline { display: inline-block; }
.form-field { display: grid; gap: 6px; }
.form-field label { font-weight: 600; }
.form-field input, .form-field select {
    font: inherit; width: 100%; padding: 0.6em 0.75em; border: 1px solid var(--color-border);
    border-radius: var(--radius); background: var(--color-background); color: var(--color-text);
}
.form-field input:focus-visible, .form-field select:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 1px; }
.form-hint { margin: 0; font-size: 0.9em; color: var(--color-muted); }
.account-form .button { justify-self: start; cursor: pointer; font: inherit; font-weight: 600; }
.form-notice, .form-message-error { padding: 0.75em 1em; border-radius: var(--radius); background: var(--color-surface); border-left: 4px solid var(--color-accent); }
.form-message-error { border-left-color: #c62828; }
.account-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
/* The honeypot: off-screen, not display:none (some bots skip hidden fields). */
.form-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* The logged-in pages: their menu beside the page on wide screens, above it on phones. */
.account-layout { display: grid; gap: calc(var(--space) * 1.5); }
@media (min-width: 800px) { .account-layout { grid-template-columns: 200px minmax(0, 1fr); align-items: start; } }
.account-nav ul { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
@media (min-width: 800px) { .account-nav ul { flex-direction: column; } }
.account-nav a { text-decoration: none; }
.account-nav a[aria-current="page"] { font-weight: 700; color: var(--color-text); }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--color-accent); text-decoration: underline; cursor: pointer; }
.button-danger { background: #c62828; border-color: #c62828; color: #fff; }
.account-form-page { max-width: 34rem; }
.account-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 700px) { .account-cards { grid-template-columns: repeat(2, 1fr); } }
.account-card {
    display: flex; flex-direction: column; gap: 4px; height: 100%; padding: calc(var(--space) * 0.75);
    color: inherit; text-decoration: none; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius);
}
.account-card:hover strong { text-decoration: underline; }
.account-list { list-style: none; margin: 0 0 var(--space); padding: 0; }
.account-item { padding: calc(var(--space) * 0.75) 0; border-bottom: 1px solid var(--color-border); }
.account-item p { margin-bottom: 6px; }
.account-item-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.account-item-title { font-weight: 600; margin-right: 8px; }
.account-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; }
.account-row .meta { display: block; }
.account-row-end { display: flex; align-items: center; gap: 12px; }
.account-actions { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; margin-top: 6px; }
.account-actions form { display: inline; }
.account-address { font-style: normal; margin-bottom: var(--space); }
.account-back { margin-bottom: 8px; }
.account-facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 0 0 var(--space); }
.account-facts dt { color: var(--color-muted); }
.account-facts dd { margin: 0; }
.account-table { width: 100%; border-collapse: collapse; margin-bottom: var(--space); }
.account-table th, .account-table td { text-align: left; padding: 8px 8px 8px 0; border-bottom: 1px solid var(--color-border); vertical-align: top; }
.account-table thead th { color: var(--color-muted); font-weight: 600; font-size: 0.92em; }
.account-table tfoot th { font-weight: normal; text-align: right; }
.account-table .num { text-align: right; white-space: nowrap; padding-right: 0; }
.account-total th, .account-total td { font-weight: 700; }
.account-columns { display: grid; gap: var(--space); }
@media (min-width: 700px) { .account-columns { grid-template-columns: 1fr 1fr; } }
.account-change { margin-bottom: var(--space); }
.account-change summary { cursor: pointer; color: var(--color-accent); margin-bottom: 8px; }
.form-choices { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.form-choices legend { font-weight: 600; margin-bottom: 6px; padding: 0; }
.form-choices label, .form-check { font-weight: normal; display: flex; gap: 8px; align-items: baseline; }
.account-confirm { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.account-cancel { margin-top: calc(var(--space) * 1.5); }

/* "Log in" / "My account" in the header - beside the menu button on phones. */
.site-account { color: inherit; font-weight: 600; text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.site-account:hover .site-account-label { text-decoration: underline; }
.site-account-icon { flex: none; }
@media (min-width: 800px) { .site-header-inner > .site-account, .site-header-inner > .account-menu { order: 3; } }
/* A logged-in customer's drop-down (Website > Menus > Account menu), in the
   header or the top strip. Without site.js, hover or focus opens it. */
.account-menu { position: relative; display: inline-flex; align-items: center; gap: 2px; }
.account-menu-toggle {
    display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0;
    background: none; border: 0; border-radius: var(--radius); color: inherit; cursor: pointer;
}
.account-menu-toggle[hidden] { display: none; }
.account-menu-toggle::before {
    content: ""; width: 7px; height: 7px; margin-top: -4px;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform 0.15s;
}
.account-menu-toggle[aria-expanded="true"]::before { margin-top: 3px; transform: rotate(-135deg); }
.account-menu-toggle:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 1px; }
.account-menu-list {
    display: none; position: absolute; top: 100%; right: 0; z-index: 30; min-width: 190px; margin: 4px 0 0; padding: 6px 0; list-style: none;
    background: var(--color-header-bg); color: var(--color-header-text); border: 1px solid var(--color-border); border-radius: var(--radius);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12); font-size: 1rem; font-weight: 400; text-align: left;
}
.account-menu:not(.js-account-menu):hover > .account-menu-list,
.account-menu:not(.js-account-menu):focus-within > .account-menu-list,
.account-menu.is-open > .account-menu-list { display: block; }
.account-menu-list a, .account-menu-logout button {
    display: block; width: 100%; padding: 8px 14px; color: inherit; text-decoration: none; white-space: nowrap;
    background: none; border: 0; font: inherit; text-align: left; cursor: pointer;
}
.account-menu-list a:hover, .account-menu-logout button:hover { background: var(--color-surface); text-decoration: underline; }
.account-menu-logout { margin: 0; }
/* "Log out" inside the header menu's own drop-down looks like its links. */
.site-nav .account-menu-logout button { padding: 0; width: auto; background: none; border: 0; color: inherit; font: inherit; cursor: pointer; }
.site-nav .account-menu-logout button:hover { text-decoration: underline; background: none; }
/* Placed as the menu's last item (Website > Design > Account link). */
.site-nav .menu-account .site-account { font-weight: inherit; }
/* Placed in a thin strip above the header. */
.site-topbar { background: var(--color-surface); color: var(--color-text); border-bottom: 1px solid var(--color-border); font-size: 0.875rem; }
.site-topbar-inner { max-width: 1120px; margin: 0 auto; padding: 4px 16px; display: flex; justify-content: flex-end; align-items: center; gap: 16px; }
.site-topbar .site-account, .site-topbar .site-basket { font-weight: 500; }

/* A band member's availability link (Availability\ReplyPage). */
.availability-band { margin: 0; color: var(--color-muted); font-weight: 600; }
.availability-gig { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; margin: var(--space) 0; padding: calc(var(--space) * 0.75); background: var(--color-surface); border-radius: var(--radius); }
.availability-gig dt { font-weight: 600; }
.availability-gig dd { margin: 0; overflow-wrap: anywhere; }
.availability-answer { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: var(--space); }
.availability-answer .form-hint { flex-basis: 100%; }
.availability-answer .button { cursor: pointer; font: inherit; font-weight: 600; }

/* The press kit's "Have a password?" line, and its password page (Press\PressLogin). */
.press-unlock { margin: 0 0 var(--space); padding: 10px 14px; background: var(--color-surface); border-radius: var(--radius); }
.press-logout { margin-top: calc(var(--space) * 0.75); }

/* Streams (the Streams page's list and the Streams block - templates/blocks/partials/streams.php).
   Cards side by side: phones 1 column, tablets at most 2, wide screens as set. */
.stream-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space); grid-template-columns: minmax(0, 1fr); }
.stream-cover { position: relative; aspect-ratio: 16 / 9; }
.stream-audio .stream-cover { aspect-ratio: 1; max-height: 360px; }
.stream-cover-lock { position: absolute; right: 8px; bottom: 8px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(0, 0, 0, 0.6); color: #fff; }
.stream-video-player { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.stream-embed { position: relative; width: 100%; }
.stream-embed-video { aspect-ratio: 16 / 9; background: #000; }
.stream-embed-audio { height: 166px; }
.stream-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.stream-audio-player { display: block; width: 100%; margin-top: 8px; }
.stream-description p { margin: 4px 0 0; }
.stream-badge { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: 0.8em; background: var(--color-background); border: 1px solid var(--color-border); }
.stream-lock { margin-top: 8px; padding: 10px 12px; border-radius: var(--radius); background: var(--color-background); border: 1px solid var(--color-border); }
.stream-lock p { margin: 4px 0 0; }
.stream-lock .stream-lock-title { margin: 0; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.stream-locked .stream-cover img { filter: saturate(0.6); }
@media (min-width: 800px) {
    .stream-view-grid.stream-columns-2, .stream-view-grid.stream-columns-3, .stream-view-grid.stream-columns-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
    .stream-view-grid.stream-columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .stream-view-grid.stream-columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Carousels (Blocks\Carousel - Photo carousel, Photo strip as a carousel,
   and the CMS Image carousel widget, which writes the same markup).
   Without site.js a carousel is a row that scrolls sideways. */
.carousel { --carousel-gap: 8px; --pv: 1; position: relative; }
@media (min-width: 600px) { .carousel { --pv: min(2, var(--carousel-per-view, 1)); } }
@media (min-width: 900px) { .carousel { --pv: var(--carousel-per-view, 1); } }
.carousel-full { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.carousel-viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.carousel-viewport::-webkit-scrollbar { display: none; }
.carousel-track { display: flex; gap: var(--carousel-gap); margin: 0; padding: 0; list-style: none; }
.carousel-slide {
    flex: 0 0 calc((100% - (var(--pv) - 1) * var(--carousel-gap)) / var(--pv));
    scroll-snap-align: start; margin: 0;
}
.carousel-slide figure { position: relative; margin: 0; }
.carousel-slide a { display: block; color: inherit; }
.carousel-slide img {
    width: 100%; height: clamp(120px, var(--carousel-height, 360px), 75vh); max-width: none;
    object-fit: cover; border-radius: var(--radius); user-select: none; -webkit-user-drag: none;
}
.carousel-full .carousel-slide img { border-radius: 0; }
.carousel-fit-contain .carousel-slide img { object-fit: contain; background: var(--color-surface); }
.carousel-slide figcaption { margin-top: 6px; color: var(--color-muted); font-size: 0.9em; }
.carousel-full .carousel-slide figcaption { padding: 0 16px; }
.carousel-captions-over .carousel-slide figcaption {
    position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 28px 14px 10px; color: #fff;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.65)); border-radius: 0 0 var(--radius) var(--radius);
}
/* With site.js: swipe can be switched off, and fading stacks the pictures. */
.js-carousel[data-swipe="0"] .carousel-viewport { overflow-x: hidden; touch-action: pan-y; }
.js-carousel.carousel-dragging .carousel-viewport { scroll-snap-type: none; cursor: grabbing; }
.js-carousel[data-swipe="1"] .carousel-viewport { cursor: grab; }
.js-carousel.carousel-fade .carousel-viewport { overflow: hidden; }
.js-carousel.carousel-fade .carousel-track { display: grid; }
.js-carousel.carousel-fade .carousel-slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity 0.6s ease, visibility 0s linear 0.6s; }
.js-carousel.carousel-fade .carousel-slide.is-current { opacity: 1; visibility: visible; transition: opacity 0.6s ease; }
/* Controls, added by site.js */
.carousel-arrow {
    position: absolute; top: calc(clamp(120px, var(--carousel-height, 360px), 75vh) / 2); transform: translateY(-50%); z-index: 2;
    width: 40px; height: 40px; border: 0; border-radius: 50%; cursor: pointer;
    background: rgba(255, 255, 255, 0.88); color: #1d1d1f; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    display: inline-flex; align-items: center; justify-content: center;
}
.carousel-arrow::before { content: ""; width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; }
.carousel-prev { left: 10px; } .carousel-prev::before { transform: rotate(135deg); margin-left: 4px; }
.carousel-next { right: 10px; } .carousel-next::before { transform: rotate(-45deg); margin-right: 4px; }
.carousel-arrow:disabled { opacity: 0.35; cursor: default; }
.carousel-arrow:focus-visible, .carousel-dot:focus-visible, .carousel-pause:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }
.carousel-bar { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 10px; }
.carousel-full .carousel-bar { padding: 0 16px; }
.carousel-dots { display: flex; flex-wrap: wrap; gap: 6px; }
.carousel-dot { width: 12px; height: 12px; padding: 0; border: 2px solid var(--color-text); border-radius: 50%; background: transparent; cursor: pointer; opacity: 0.6; }
.carousel-dot[aria-current="true"] { background: var(--color-text); opacity: 1; }
.carousel-pause {
    display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; font: inherit; font-size: 0.85rem; cursor: pointer;
    color: var(--color-text); background: transparent; border: 1px solid var(--color-border); border-radius: var(--radius);
}
@media (prefers-reduced-motion: reduce) {
    .js-carousel.carousel-fade .carousel-slide, .js-carousel.carousel-fade .carousel-slide.is-current { transition: none; }
}

/* The page background (Design\BackgroundCss - Website > Design > Background).
   Layers sit behind the page; "scrolls with the page" ones span it, "stays
   still" and parallax ones the window. The header and the top strip stay
   above the content, so their drop-downs aren't hidden behind it. */
body.has-background { position: relative; }
.site-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.site-bg-layer, .site-bg-tint { position: absolute; inset: 0; }
.site-bg-fixed, .site-bg-parallax { position: fixed; }
.has-background > .site-header { position: relative; z-index: 3; }
.has-background > .site-topbar { position: relative; z-index: 4; }
.has-background > .site-main, .has-background > .site-footer, .has-background > .preview-banner { position: relative; z-index: 1; }
.header-see-through .site-header { background: transparent; border-bottom-color: transparent; }
.footer-see-through .site-footer { background: transparent; border-top-color: transparent; }
.has-panel .site-main { margin-top: var(--space); margin-bottom: calc(var(--space) * 2); border-radius: var(--radius); }
@media (max-width: 799px) {
    .site-bg-fixed, .site-bg-parallax { position: absolute; }
    .has-panel .site-main { margin-left: 8px; margin-right: 8px; width: auto; }
}
@media (prefers-reduced-motion: reduce) {
    .site-bg-fixed, .site-bg-parallax { position: absolute; }
}

/* The stream player (public/assets/player.js): a bar at the bottom (or top) of the screen,
   its playlist, and a picture window for video and the platforms' own players. Colours follow
   the theme unless Website > Design > Stream player sets its own (--player-* on #site-player). */
.has-player-js .stream-fallback { display: none; }
.stream-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.stream-actions[hidden] { display: none; }
.stream-actions .button { display: inline-flex; align-items: center; gap: 6px; }
.stream-actions [aria-pressed="true"] { background: var(--color-accent); color: var(--color-accent-text); }
.stream.is-current { outline: 2px solid var(--color-accent); outline-offset: -2px; }

/* Streams: Grid / List. The same markup both ways - the grid is the cards above; the list is compact
   rows like a music app: number, small cover, title (and a line of description), duration, icon buttons. */
.stream-views { display: inline-flex; margin: 0 0 12px; border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; }
.stream-views[hidden] { display: none; }
.stream-view-button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.stream-view-button + .stream-view-button { border-left: 1px solid var(--color-border); }
.stream-view-button[aria-pressed="true"] { background: var(--color-accent); color: var(--color-accent-text); }
.stream-number, .stream-duration, .stream-cover-placeholder { display: none; }
.stream-view-grid .stream-actions .button .stream-button-text { margin-left: 2px; }

.stream-view-list { gap: 0; border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; background: var(--color-surface); }
.stream-view-list .stream {
    display: grid; grid-template-columns: 2.25em 48px minmax(0, 1fr) 4em; align-items: center; column-gap: 12px;
    padding: 8px 12px; border: 0; border-radius: 0; background: transparent; overflow: visible;
}
.stream-view-list .stream + .stream { border-top: 1px solid var(--color-border); }
.stream-view-list .stream:hover, .stream-view-list .stream.is-current { background: rgba(127, 127, 127, 0.1); }
.stream-view-list .stream.is-current { outline: 0; }
.stream-view-list .stream-number { display: block; grid-column: 1; grid-row: 1; text-align: right; opacity: 0.6; font-variant-numeric: tabular-nums; }
.stream-view-list .stream.is-current .stream-number { color: var(--color-accent); opacity: 1; font-weight: 700; }
.stream-view-list .stream-cover { grid-column: 2; grid-row: 1; width: 48px; height: 48px; aspect-ratio: 1; border-radius: calc(var(--radius) / 2); overflow: hidden; max-height: none; }
.stream-view-list .stream-cover-lock { right: 2px; bottom: 2px; width: 20px; height: 20px; }
.stream-view-list .stream-cover-lock svg { width: 12px; height: 12px; }
.stream-view-list .card-body { grid-column: 3; grid-row: 1; padding: 0; gap: 0; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; }
.stream-view-list .stream-cover-placeholder {
    display: grid; place-items: center; grid-column: 2; grid-row: 1; width: 48px; height: 48px;
    border-radius: calc(var(--radius) / 2); background: rgba(127, 127, 127, 0.18); opacity: 0.8;
}
.stream-view-list .card-title { grid-column: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stream-view-list .card-body > .meta { grid-column: 1; font-size: 0.85em; }
.stream-view-list .stream-meta-duration { display: none; }
.stream-view-list .stream-description { grid-column: 1; font-size: 0.85em; opacity: 0.8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stream-view-list .stream-description p { display: inline; margin: 0; }
.stream-view-list .stream-description p + p::before { content: " "; }
.stream-view-list .stream-actions { grid-column: 2; grid-row: 1 / span 3; margin: 0; flex-wrap: nowrap; gap: 4px; }
.stream-view-list .stream-actions .button { width: 36px; height: 36px; padding: 0; justify-content: center; border-radius: 50%; }
.stream-view-list .stream-button-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.stream-view-list .stream-duration { display: block; grid-column: 4; grid-row: 1; text-align: right; opacity: 0.7; font-variant-numeric: tabular-nums; }
.stream-view-list .stream-lock, .stream-view-list .stream-link { grid-column: 1 / -1; margin-top: 4px; padding: 0; border: 0; background: none; font-size: 0.85em; }
.stream-view-list .stream-lock p { display: inline; margin: 0 8px 0 0; }
.stream-view-list .stream-lock .stream-lock-title { display: inline-flex; }
.stream-view-list .stream-link .button { padding: 4px 10px; }
.stream-view-list .stream-fallback { grid-column: 1 / -1; }
.stream-view-list .stream-video-player { grid-column: 1 / -1; margin-top: 8px; }
@media (max-width: 599px) {
    .stream-view-list .stream { grid-template-columns: 40px minmax(0, 1fr) auto; padding: 8px; column-gap: 10px; }
    .stream-view-list .stream-number { display: none; }
    .stream-view-list .stream-cover, .stream-view-list .stream-cover-placeholder { grid-column: 1; width: 40px; height: 40px; }
    .stream-view-list .card-body { grid-column: 2 / 4; }
    .stream-view-list .stream-duration { display: none; }
    .stream-view-list .stream-meta-duration { display: inline; }
}

.site-player {
    --player-bar-height: 64px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    color: var(--player-text, var(--color-text));
    font-family: var(--font-body);
    pointer-events: none;
}
.site-player[hidden] { display: none; }
.site-player > * { pointer-events: auto; }
.site-player-top { top: 0; bottom: auto; }
body.has-site-player { padding-bottom: var(--player-bar-height, 64px); }
body.has-site-player.site-player-at-top { padding-bottom: 0; padding-top: 64px; }
body.site-player-at-top .site-header { top: 64px; }

.player-bar {
    display: flex; align-items: center; gap: 10px; height: 64px; padding: 0 12px;
    background: var(--player-bg, var(--color-surface)); border-top: 1px solid var(--color-border);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.15);
}
.site-player-top .player-bar { border-top: 0; border-bottom: 1px solid var(--color-border); box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15); }
.player-cover { width: 44px; height: 44px; object-fit: cover; border-radius: calc(var(--radius) / 2); flex: none; }
.player-cover[hidden] { display: none; }
.player-info { display: flex; flex-direction: column; min-width: 0; flex: 0 1 220px; }
.site-player .player-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-time { font-size: 0.8em; opacity: 0.75; font-variant-numeric: tabular-nums; }
.player-controls { display: flex; align-items: center; gap: 2px; flex: none; }
.player-button {
    display: inline-grid; place-items: center; position: relative; width: 40px; height: 40px; padding: 0;
    border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer;
}
.player-button:hover, .player-button:focus-visible { background: rgba(127, 127, 127, 0.18); }
.player-button:disabled { opacity: 0.35; cursor: default; background: transparent; }
.player-play { background: var(--player-accent, var(--color-accent)); color: var(--color-accent-text); }
.site-player[style] .player-play { color: var(--player-bg); }
.player-play:hover, .player-play:focus-visible { background: var(--player-accent, var(--color-accent)); filter: brightness(1.1); }
.player-seek { flex: 1 1 auto; min-width: 60px; accent-color: var(--player-accent, var(--color-accent)); }
.player-volume { display: flex; align-items: center; flex: none; }
.player-volume-range { width: 80px; accent-color: var(--player-accent, var(--color-accent)); }
.player-count {
    position: absolute; top: 2px; right: 0; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
    font-size: 10px; line-height: 16px; background: var(--player-accent, var(--color-accent)); color: var(--color-accent-text);
}

.player-list {
    position: absolute; right: 12px; bottom: 72px; width: min(360px, calc(100vw - 24px)); max-height: min(60vh, 480px); overflow: auto;
    background: var(--player-bg, var(--color-surface)); border: 1px solid var(--color-border); border-radius: var(--radius);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}
.site-player-top .player-list { bottom: auto; top: 72px; }
.player-list[hidden] { display: none; }
.player-list-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-bottom: 1px solid var(--color-border); }
.player-list-heading { margin: 0; font-size: 1em; }
.player-text-button { border: 0; background: none; color: inherit; text-decoration: underline; cursor: pointer; padding: 4px; }
.player-list-items { list-style: none; margin: 0; padding: 4px 0; }
.player-list-item { display: flex; align-items: center; gap: 2px; padding: 0 6px 0 0; }
.player-list-item .player-button { width: 32px; height: 32px; }
.player-list-title { flex: 1; min-width: 0; text-align: left; border: 0; background: none; color: inherit; padding: 8px 12px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-list-item.is-current .player-list-title { font-weight: 700; color: var(--player-accent, var(--color-accent)); }

.player-screen {
    position: absolute; left: 12px; bottom: 72px; width: min(320px, calc(100vw - 24px));
    background: #000; color: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}
.site-player-top .player-screen { bottom: auto; top: 72px; }
.player-screen[hidden] { display: none; }
.player-screen.is-large { width: min(720px, calc(100vw - 24px)); }
.player-screen-bar { display: flex; align-items: center; gap: 2px; padding: 2px 4px 2px 10px; background: rgba(255, 255, 255, 0.08); }
.player-screen-bar .player-button { width: 32px; height: 32px; }
.player-screen-title { flex: 1; min-width: 0; font-size: 0.85em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-stage { position: relative; aspect-ratio: 16 / 9; }
.player-screen.is-audio-widget .player-stage { aspect-ratio: auto; height: 166px; }
.player-engine, .player-engine iframe, .player-engine > div { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-media { width: 100%; height: 100%; display: block; background: #000; }
.player-engine-media.is-audio { display: none; }
/* The picture on the left, the playlist on the right; on a phone the playlist opens over the picture. */
.player-list { z-index: 1; }

/* Pages coming in without a full load: a thin bar along the top. */
.is-page-loading body::before {
    content: ""; position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 101;
    background: var(--color-accent); animation: page-loading 1.2s ease-in-out infinite; transform-origin: left;
}
@keyframes page-loading { 0% { transform: scaleX(0); } 60% { transform: scaleX(0.8); } 100% { transform: scaleX(1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .is-page-loading body::before { animation: none; transform: scaleX(0.6); } }

@media (max-width: 799px) {
    .player-volume, .player-cover { display: none; }
    .player-info { flex: 1 1 auto; }
    .player-seek { position: absolute; left: 0; right: 0; top: -9px; width: 100%; margin: 0; }
    .player-bar { position: relative; gap: 4px; }
    .player-screen, .player-screen.is-large { width: calc(100vw - 24px); }
}

/* Streams: filters, Collections / All streams tabs, collections (templates/blocks/streamList.php),
   a collection's own page (collectionStreams.php), and Play all / Add all. */
.stream-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 16px; }
.stream-filter select, .stream-filter input[type="search"] {
    font: inherit; color: inherit; background: var(--color-surface); border: 1px solid var(--color-border);
    border-radius: var(--radius); padding: 7px 10px;
}
.stream-search { flex: 1 1 200px; max-width: 320px; }
.stream-search input { width: 100%; }
.stream-filter-check { display: inline-flex; align-items: center; gap: 6px; }
.stream-filter-clear { margin-left: 4px; }
.stream-tabs { display: flex; gap: 4px; margin: 0 0 16px; border-bottom: 1px solid var(--color-border); }
.stream-tab {
    padding: 8px 14px; color: inherit; text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.stream-tab[aria-current="page"] { border-bottom-color: var(--color-accent); font-weight: 700; }
.stream-tab-count { display: inline-block; min-width: 1.6em; padding: 0 6px; margin-left: 4px; border-radius: 999px; font-size: 0.8em; text-align: center; background: var(--color-surface); border: 1px solid var(--color-border); }

.collection-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space); }
.collection { padding: 14px; }
.collection-head { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: start; }
.collection-cover { display: block; width: 96px; height: 96px; border-radius: calc(var(--radius) / 2); overflow: hidden; background: rgba(127, 127, 127, 0.18); }
.collection-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.collection-cover-empty { display: grid; place-items: center; opacity: 0.8; }
.collection-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.collection-title { font-size: 1.15em; }
.collection-description { opacity: 0.85; }
.collection-streams { margin-top: 12px; }
.collection-streams > summary { cursor: pointer; font-weight: 600; padding: 4px 0; }
.collection-streams[open] > summary { margin-bottom: 8px; }
.collection-open { margin: 8px 0 0; }
.play-all { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.play-all[hidden] { display: none; }
.play-all .button { display: inline-flex; align-items: center; gap: 6px; }

.collection-hero { display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: 24px; align-items: end; margin-bottom: 24px; }
.collection-hero-cover { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25); }
.collection-hero h1 { margin: 4px 0 8px; }
.collection-hero-info .meta { margin: 0; text-transform: none; }
.collection-hero-description p { margin: 0 0 8px; }
.collection-hero:not(:has(.collection-hero-cover)) { grid-template-columns: minmax(0, 1fr); }
.collection-back { margin-top: 20px; }
@media (max-width: 599px) {
    .collection-head { grid-template-columns: 64px minmax(0, 1fr); }
    .collection-cover { width: 64px; height: 64px; }
    .collection-hero { grid-template-columns: minmax(0, 1fr); }
    .collection-hero-cover { max-width: 240px; }
}

/* The release page's tracks with the site player's buttons. */
.release-player .play-all { margin: 0 0 12px; }
.player .stream-actions { margin: 0; }
.player .stream-actions .button { width: 36px; height: 36px; padding: 0; justify-content: center; border-radius: 50%; }
.player .stream-button-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.player .stream.is-current .player-title { color: var(--color-accent); font-weight: 700; }

/* --- Basket and checkout (Shop\BasketPages) ------------------------------ */
/* The header's basket link - beside "Log in" / "My account". */
.site-basket { color: inherit; font-weight: 600; text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.site-basket:hover .site-basket-label { text-decoration: underline; }
.site-basket-icon { flex: none; }
.site-basket-count {
    min-width: 1.5em; padding: 0 0.4em; border-radius: 999px; text-align: center; font-size: 0.8em; line-height: 1.5;
    background: var(--color-accent); color: var(--color-accent-text);
}
@media (min-width: 800px) { .site-header-inner > .site-basket { order: 3; } }
/* In the header on a phone, icon and text shrinks to the icon (the words stay for screen readers). */
@media (max-width: 499px) { .site-header-inner > .site-basket-both .site-basket-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
.site-nav .menu-basket .site-basket { font-weight: inherit; }

/* A product page's buying form. */
.buy-form { display: grid; gap: var(--space); margin-top: calc(var(--space) * 1.25); max-width: 28rem; }
.buy-row { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
.buy-quantity { width: 6.5rem; }
.buy-form .button { cursor: pointer; font: inherit; font-weight: 600; }
.buy-form .button[disabled] { opacity: 0.55; cursor: not-allowed; }
.buy-plan { padding: 10px 12px; border: 1px solid var(--color-border); border-radius: var(--radius); }
.buy-plan > span { display: grid; gap: 2px; }

.basket-page { max-width: 60rem; }
.basket-lines { width: 100%; border-collapse: collapse; margin-bottom: var(--space); }
.basket-lines th, .basket-lines td { text-align: left; padding: 10px 8px 10px 0; border-bottom: 1px solid var(--color-border); vertical-align: top; }
.basket-lines thead th { color: var(--color-muted); font-weight: 600; font-size: 0.92em; }
.basket-lines .num { text-align: right; white-space: nowrap; padding-right: 0; }
/* Right-aligned price beside the left-aligned qty box - a gap so "9.00" and "1" don't read as "9.001". */
.basket-lines .basket-cell-price { padding-right: 2em; }
.basket-item { display: flex; gap: 12px; align-items: flex-start; }
.basket-item img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius); flex: none; background: var(--color-surface); }
.basket-item .meta { display: block; }
.basket-problem { color: #c62828; font-weight: 600; display: block; margin-top: 4px; }
.basket-qty input { width: 4.5rem; font: inherit; padding: 0.4em 0.5em; border: 1px solid var(--color-border); border-radius: var(--radius); background: var(--color-background); color: var(--color-text); }
.basket-remove { display: block; margin-top: 6px; }
.basket-summary { display: grid; gap: 12px; justify-items: end; margin-bottom: var(--space); }
.basket-summary .basket-subtotal { font-size: 1.15em; font-weight: 700; }
.basket-actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 20px; }
.basket-actions .button { cursor: pointer; font: inherit; font-weight: 600; }
@media (max-width: 599px) {
    .basket-lines thead { display: none; }
    .basket-lines tr { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 10px 0; border-bottom: 1px solid var(--color-border); }
    .basket-lines td { border: 0; padding: 0; }
    .basket-lines td.basket-cell-item { grid-column: 1 / -1; }
    .basket-lines td.basket-cell-price { display: none; }
}

.checkout-layout { display: grid; gap: calc(var(--space) * 1.5); }
@media (min-width: 900px) { .checkout-layout { grid-template-columns: minmax(0, 1fr) 20rem; align-items: start; } }
.checkout-main { display: grid; gap: calc(var(--space) * 1.25); min-width: 0; }
.checkout-section { display: grid; gap: var(--space); border: 0; padding: 0; margin: 0; min-width: 0; }
.checkout-section > legend, .checkout-section > h2 { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; margin: 0 0 4px; padding: 0; }
.checkout-aside { padding: var(--space); background: var(--color-surface); border-radius: var(--radius); }
.checkout-aside h2 { font-size: 1.1rem; margin-top: 0; }
.checkout-aside .account-table { font-size: 0.95em; }
.checkout-option { padding: 10px 12px; border: 1px solid var(--color-border); border-radius: var(--radius); }
.checkout-option > span { display: grid; gap: 2px; flex: 1; }
.checkout-option-head { display: flex; justify-content: space-between; gap: 12px; }
.checkout-option .meta { display: block; }
.checkout-billing { display: grid; gap: var(--space); }
.checkout-new-address[hidden], .checkout-billing[hidden] { display: none; }
.checkout-new-address { display: grid; gap: var(--space); padding: var(--space); border: 1px dashed var(--color-border); border-radius: var(--radius); }
.checkout-summary-block { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.checkout-place { display: grid; gap: 8px; justify-items: start; }
.checkout-place .button { cursor: pointer; font: inherit; font-weight: 700; font-size: 1.05em; }
.checkout-instructions { white-space: pre-line; padding: 0.75em 1em; border-radius: var(--radius); background: var(--color-surface); }

/* Which emails (sign-up, Your details, the email preferences page) - tick
   boxes with their explanation under each. The .form-field input rule
   above is for text boxes, so it's undone for these. */
.email-choices { border: 0; padding: 0; margin: 0; gap: 10px; }
.email-choices legend { font-weight: 600; padding: 0; margin-bottom: 6px; }
.form-check { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: start; }
.form-field .form-check input[type="checkbox"] { width: 1.15em; height: 1.15em; margin: 0.2em 0 0; padding: 0; accent-color: var(--color-accent); }
.form-check label { font-weight: 600; }
.form-check .form-hint { grid-column: 2; }
.account-emails { margin-top: calc(var(--space) * 2); padding-top: var(--space); border-top: 1px solid var(--color-border, rgba(0, 0, 0, 0.12)); }
.email-unsubscribe { padding: var(--space); border-radius: 8px; background: var(--color-surface, rgba(0, 0, 0, 0.04)); }
.email-unsubscribe-all .button { cursor: pointer; font: inherit; }

/* --- The shop's Filters (blocks/productFilters.php) --------------------
   A <details>: on phones a button that opens it; on wider screens always
   open. Beside All products when the layout puts them next to each other
   (.shop-with-filters - Blocks\LayoutRenderer), otherwise a bar above. */
.shop-filters > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid var(--color-border); border-radius: var(--radius); font-weight: 700; margin-bottom: var(--space); }
.shop-filters > summary::-webkit-details-marker { display: none; }
.shop-filters > summary::after { content: '\25BE'; font-size: 0.8em; }
.shop-filters[open] > summary::after { content: '\25B4'; }
.filters-total { margin: 0 0 calc(var(--space) * 0.6); }
.filters-active { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: var(--space); }
.filter-chip { display: inline-flex; gap: 6px; align-items: center; padding: 3px 10px; border-radius: 999px; background: var(--color-surface); border: 1px solid var(--color-border); color: inherit; text-decoration: none; font-size: 0.9em; }
.filter-chip:hover { border-color: var(--color-accent); }
.filters-clear-all, .filter-clear { font-size: 0.9em; }
.filter-group { margin-bottom: var(--space); }
.filter-group h3 { font-size: 1rem; margin: 0 0 6px; }
.filter-group-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.filter-options { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.filter-option { display: flex; align-items: center; gap: 8px; padding: 3px 0; color: inherit; text-decoration: none; }
a.filter-option:hover .filter-label { text-decoration: underline; }
.filter-check { width: 1em; height: 1em; flex: none; border: 2px solid var(--color-border); border-radius: 3px; }
.filter-option.is-selected .filter-check { background: var(--color-accent); border-color: var(--color-accent); box-shadow: inset 0 0 0 2px var(--color-background); }
.filter-option.is-selected .filter-label { font-weight: 700; }
.filter-option.is-empty { opacity: 0.45; cursor: default; }
.filter-swatch { width: 1.2em; height: 1.2em; flex: none; border-radius: 50%; border: 1px solid var(--color-border); background-size: cover; background-position: center; }
.filter-count { opacity: 0.7; font-size: 0.9em; }
.filter-price { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.filter-price input { width: 6em; padding: 6px 8px; font: inherit; border: 1px solid var(--color-border); border-radius: var(--radius); background: var(--color-background); color: inherit; }
.filter-price .button { cursor: pointer; font: inherit; padding: 6px 12px; }
.shop-is-loading .block-productGrid { opacity: 0.55; transition: opacity 0.15s; }
@media (min-width: 800px) {
    /* Wide screens: always open, and the heading is just a heading. */
    .shop-filters > summary { pointer-events: none; border: 0; padding: 0; font-size: 1.2rem; font-family: var(--font-heading); }
    .shop-filters > summary::after { content: none; }
    .shop-with-filters { display: grid; grid-template-columns: minmax(190px, 250px) minmax(0, 1fr); gap: calc(var(--space) * 2); align-items: start; }
    .shop-with-filters.filters-right { grid-template-columns: minmax(0, 1fr) minmax(190px, 250px); }
    .shop-with-filters.filters-left > .block-productFilters, .shop-with-filters.filters-right > .block-productGrid { order: 1; }
    .shop-with-filters.filters-left > .block-productGrid, .shop-with-filters.filters-right > .block-productFilters { order: 2; }
    .shop-with-filters > .block-productFilters { position: sticky; top: var(--space); max-height: calc(100vh - var(--space) * 2); overflow-y: auto; }
    /* A bar above the products: the groups side by side. */
    .site-main > .block-productFilters .filters-body { display: flex; flex-wrap: wrap; column-gap: calc(var(--space) * 2); align-items: flex-start; }
    .site-main > .block-productFilters .filters-total, .site-main > .block-productFilters .filters-active { flex-basis: 100%; }
    .site-main > .block-productFilters .filter-group { min-width: 160px; }
}
