/* The app's names for the shared Newcastle Beats tokens (public/ui/ncl-ui.css),
   so dark/light follows the site-wide theme. */
:root {
    --page: var(--ncl-ground);
    --bg: var(--ncl-ground);
    --surface: var(--ncl-surface);
    --surface-2: var(--ncl-surface-2);
    --line: var(--ncl-line);
    --text: var(--ncl-text);
    --text-soft: var(--ncl-soft);
    --muted: var(--ncl-muted);
    --accent: var(--ncl-accent-text);
    --accent-hover: var(--ncl-text);
    --pale: var(--ncl-pale);
    --wave: var(--ncl-line);
    /* Borders of form fields: at least 3:1 against the background (WCAG 1.4.11). */
    --field-border: var(--ncl-slate);
    --danger: var(--ncl-danger);
    --heart: #ff6b85;
    --radius: var(--ncl-radius-sm);
    --player-h: 150px;
}
:root[data-theme="light"] { --heart: #c8304d; --wave: #b9c7d1; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
    margin: 0;
    background: var(--ncl-ground);
    color: var(--text);
    font: 16px/1.55 var(--ncl-body);
    -webkit-font-smoothing: antialiased;
}
.has-player body { padding-bottom: calc(var(--player-h) + 16px); }

a { color: var(--text); text-decoration-color: var(--ncl-slate); text-underline-offset: 3px; }
a:hover { color: var(--accent); text-decoration-color: currentColor; }
.muted { color: var(--muted); }
h1, h2, h3 { font-family: var(--ncl-display); color: var(--text); }
h1 { font-size: clamp(1.9rem, 4.6vw, 3.2rem); font-weight: 850; font-stretch: 80%; text-transform: uppercase; letter-spacing: -.01em; line-height: .98; margin: 0 0 .5rem; }

.button {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px;
    border: 1px solid var(--ncl-accent); border-radius: 999px; cursor: pointer;
    background: var(--ncl-accent); color: var(--ncl-accent-ink); font: 600 15px/1.25 var(--ncl-body);
    padding: .55rem 1.25rem; text-align: center; text-decoration: none;
}
/* hover: a lighter accent, not filter: brightness(), which blurs the text */
.button:hover { color: var(--ncl-accent-ink); background: color-mix(in srgb, var(--ncl-accent) 88%, #fff); border-color: color-mix(in srgb, var(--ncl-accent) 88%, #fff); }
.auth input[type=email], .auth input[type=password], .auth input[type=text] {
    width: 100%; background: var(--surface); color: var(--text); font: inherit;
    border: 1px solid var(--field-border); border-radius: var(--radius); padding: .6rem .8rem;
}
.auth input:focus { outline: 2px solid var(--ncl-accent); outline-offset: 0; }

/* The archive's sections (All mixes, Artists, Club nights, ...) under the site header */
.subnav { border-bottom: 1px solid var(--line); }
.subnav__inner { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-block: 10px; }
.subnav a {
    flex: none; padding: 8px 14px; border-radius: 999px; text-decoration: none; white-space: nowrap;
    color: var(--text-soft); font: 500 14px/1 var(--ncl-body);
}
.subnav a:hover { color: var(--text); background: var(--surface-2); }
.subnav a[aria-current] { color: var(--ncl-accent-ink); background: var(--ncl-accent); }

/* The logo's record spins while a mix plays (the sheen and hover spin are in ncl-ui.css) */
body:has(.player.is-playing) .ncl-logo__mark::before, body:has(.player.is-playing) .ncl-logo__mark::after { animation: ncl-record-spin 1.8s linear infinite; }

.page { padding-block: 2rem 3rem; }

.flash { margin: 1rem 0 0; padding: .7rem 1rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--ncl-accent); }
.flash-danger { border-left-color: var(--danger); }
.flash-warning { border-left-color: var(--ncl-hot); }
/* Switched-off sections, which only admins still see (SiteSections::isOffForAdmin) */
.ncl-off-badge { vertical-align: middle; margin-left: .3em; }

/* Track list */
.intro { margin-bottom: 1.5rem; }
.intro-tagline { color: var(--text-soft); margin: 0 0 .3rem; font-size: 1.1rem; }
/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: .6rem; align-items: end; margin-bottom: 1rem; }
.filter { display: grid; gap: .25rem; min-width: 0; }
.filter-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.filter select {
    appearance: none; font: inherit; font-size: .9rem; color: var(--text); cursor: pointer;
    background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%238399a8' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right .7rem center / .65rem;
    border: 1px solid var(--field-border); border-radius: var(--radius); padding: .45rem 2rem .45rem .7rem;
    max-width: 14rem; text-overflow: ellipsis;
}
.filter select:focus-visible { outline: 2px solid var(--accent); outline-offset: -1px; }
.filter.is-active select { border-color: var(--accent); }
.filter-sort { margin-left: auto; }
.active-filters { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1rem; padding: 0; }
.active-filters a {
    display: inline-flex; gap: .4rem; align-items: center; text-decoration: none; font-size: .85rem;
    padding: .2rem .4rem .2rem .7rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
}
.active-filters a span { color: var(--muted); font-size: 1rem; line-height: 1; padding: 0 .2rem; }
.active-filters a:hover span { color: var(--accent); }
.active-filters .clear { background: none; border-color: transparent; color: var(--muted); text-decoration: underline; padding-left: .3rem; }
@media (max-width: 640px) {
    .filters { display: grid; grid-template-columns: 1fr 1fr; }
    .filter select { max-width: none; width: 100%; }
    .filter-sort { margin-left: 0; }
}
.tracks { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.track {
    display: grid; grid-template-columns: 56px minmax(140px, 260px) 1fr 64px 36px 36px; gap: 1rem; align-items: center;
    padding: .6rem 0; border-bottom: 1px solid var(--line);
}
.track.is-current .track-title { color: var(--accent); }
.track-play {
    position: relative; width: 56px; height: 56px; padding: 0; border: 0; border-radius: 6px;
    overflow: hidden; background: var(--surface); cursor: pointer;
}
.track-play img, .track-art-placeholder { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Mixes without their own artwork get the record logo (images/default-art.svg) */
.track-art-placeholder, span.player-queue-art { background: #0f1f29 url("../images/default-art-wtS8Wwj.svg") center / cover; }
.track-play-icon {
    position: absolute; inset: 0; margin: auto; width: 24px; height: 24px; fill: #fff;
    opacity: 0; transition: opacity .15s; filter: drop-shadow(0 1px 3px #0008);
}
.track-play:hover .track-play-icon, .track-play:focus-visible .track-play-icon, .track.is-playing .track-play-icon { opacity: 1; }
.track-main { display: flex; flex-direction: column; min-width: 0; text-decoration: none; }
.track-title, .track-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-title { font-weight: 600; }
.track-sub, .track-length { color: var(--muted); font-size: .9rem; }
.track-length { text-align: right; font-variant-numeric: tabular-nums; }
.track-wave { height: 36px; }
@media (max-width: 640px) {
    .track { grid-template-columns: 56px 1fr auto 36px 36px; row-gap: .4rem; column-gap: .6rem; }
    .track-wave { grid-column: 1 / -1; grid-row: 2; height: 28px; }
}
.track-queue { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; }
.track-queue svg { width: 20px; height: 20px; }
.track-queue:hover { color: var(--accent); }
.track-queue:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.button-queue { display: inline-flex; align-items: center; gap: .45rem; }
.button-queue svg { width: 18px; height: 18px; }
.track.is-playing .track-play-icon { opacity: 0; }
.track.is-playing .track-play:hover .track-play-icon { opacity: 1; }
.track.is-playing .track-play:hover .eq { opacity: 0; }

/* Waveforms (rows, detail page) */
.waveform {
    --bar: 2px; --gap: 1px; --wave-hover: var(--ncl-slate);
    position: relative; cursor: pointer; min-width: 0; border-radius: 2px;
}
.waveform canvas { display: block; }
.waveform:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }

.pager { display: flex; justify-content: space-between; margin-top: 1.5rem; }
.empty { color: var(--muted); padding: 3rem 0; text-align: center; }

/* Mix page */
.mix-back { display: inline-block; color: var(--muted); text-decoration: none; margin-bottom: 1.5rem; }
.mix-hero { display: grid; grid-template-columns: minmax(0, 280px) 1fr; gap: 2rem; align-items: end; }
.mix-art { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); background: var(--surface); }
.mix-art-placeholder { display: block; background: #0f1f29 url("../images/default-art-wtS8Wwj.svg") center / cover; }
.eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: .12em; font: 500 .78rem/1.3 var(--ncl-mono); margin: 0 0 .7rem; }
.mix-artist { font-size: 1.2rem; margin: 0 0 .6rem; }
.mix-meta { display: flex; flex-wrap: wrap; gap: .3rem .9rem; color: var(--muted); margin: 0 0 1.2rem; font-variant-numeric: tabular-nums; }
.mix-meta span + span::before { content: '·'; margin-right: .9rem; color: var(--line); }
.mix-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.button-play { display: inline-flex; align-items: center; gap: .4rem; padding-inline: 1.2rem 1.4rem; }
.button-play svg { width: 16px; height: 16px; fill: currentColor; }
.button-play .label-pause, .mix.is-playing .button-play .label-play { display: none; }
.mix.is-playing .button-play .label-pause { display: inline; }
.mix.is-playing .button-play svg { display: none; }
.button-ghost { background: var(--surface); color: var(--text); border: 1px solid var(--line); }
.button-ghost:hover { color: var(--text); filter: none; border-color: var(--ncl-slate); }

.mix-stage { margin: 2.5rem 0 2rem; }
.mix-wave { --bar: 3px; --gap: 2px; height: 120px; }
.mix-ruler { position: relative; height: 1.6rem; margin-top: .5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; font-variant-numeric: tabular-nums; }
.mix-ruler span { position: absolute; top: .3rem; transform: translateX(-50%); }
.mix-ruler span:first-child { transform: none; }
.mix-ruler span::before { content: ''; position: absolute; left: 50%; top: -.3rem; height: .25rem; border-left: 1px solid var(--line); }
.mix-ruler span:first-child::before { left: 0; }
.mix-ruler .mix-ruler-end { right: 0; transform: none; }
.mix-ruler .mix-ruler-end::before { left: auto; right: 0; }

.mix-wave-wrap { position: relative; }
.mix-marker {
    /* 24px hit area (WCAG 2.2 target size); the visible line is the ::before */
    position: absolute; top: -6px; bottom: -6px; width: 24px; margin-left: -12px; padding: 0;
    border: 0; background: transparent; cursor: pointer;
}
.mix-marker::before { content: ''; position: absolute; left: 12px; top: 0; bottom: 0; border-left: 1px dashed var(--muted); opacity: .45; }
.mix-marker:hover::before, .mix-marker:focus-visible::before { border-left: 1px solid var(--accent); opacity: 1; }

.mix-body { display: grid; grid-template-columns: minmax(0, 65ch) minmax(200px, 300px); gap: 2rem 4rem; align-items: start; justify-content: space-between; }
.mix-main { display: grid; gap: 2rem; }
.mix-side { display: grid; gap: 2rem; }
.mix-body h2 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 .8rem; font-weight: 500; }

.mix-tracklist ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.mix-tracklist li { display: grid; grid-template-columns: 4.5rem 1fr; gap: .75rem; align-items: baseline; padding: .45rem 0; border-bottom: 1px solid var(--line); }
.tracklist-time { font: inherit; font-size: .85rem; font-variant-numeric: tabular-nums; color: var(--muted); background: none; border: 0; padding: 0; text-align: left; }
button.tracklist-time { cursor: pointer; }
button.tracklist-time:hover, button.tracklist-time:focus-visible { color: var(--accent); }
.tracklist-track { display: flex; flex-wrap: wrap; column-gap: .35rem; }
.tracklist-artist { font-weight: 600; }
.tracklist-artist::after { content: '\00a0–'; font-weight: 400; color: var(--muted); }
/* The track playing now (tracklist_controller.js) */
.mix-tracklist li.is-current { box-shadow: inset 3px 0 0 var(--accent); background: var(--surface-2); padding-left: .6rem; margin-left: -.6rem; border-radius: 0 6px 6px 0; }
.mix-tracklist li.is-current .tracklist-time, .mix-tracklist li.is-current .tracklist-title { color: var(--accent); }

/* The time and track under the pointer on a waveform (lib/tracklist.js) */
.wave-tip {
    position: fixed; z-index: 1000; translate: -50% -100%; pointer-events: none;
    display: flex; flex-direction: column; gap: 2px; max-width: min(360px, calc(100vw - 16px)); padding: 6px 10px;
    background: var(--ncl-surface); color: var(--ncl-text); border: 1px solid var(--ncl-line); border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .35); font: 500 12px/1.35 var(--ncl-body);
}
.wave-tip.is-below { translate: -50% 0; }
.wave-tip__time { font-family: var(--ncl-mono); color: var(--ncl-accent); font-variant-numeric: tabular-nums; }
.wave-tip__track { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.mix-credits ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.credit { display: grid; grid-template-columns: 2.4rem 1fr; grid-template-rows: auto auto; column-gap: .75rem; align-items: center; }
.credit-monogram {
    grid-row: span 2; width: 2.4rem; height: 2.4rem; border-radius: 50%; display: grid; place-items: center;
    background: var(--surface); border: 1px solid var(--line); font-size: .8rem; font-weight: 600; letter-spacing: .02em;
}
.credit-name { font-weight: 600; text-decoration: none; }
.credit-role { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.mix-credits-note { margin: .8rem 0 0; font-size: .9rem; }
.mix-details dl { margin: 0; display: grid; border-top: 1px solid var(--line); }
.mix-details dl div { display: grid; grid-template-columns: 6rem 1fr; gap: .75rem; padding: .4rem 0; border-bottom: 1px solid var(--line); }
.mix-details dt { color: var(--muted); font-size: .9rem; }
.mix-details dd { margin: 0; font-variant-numeric: tabular-nums; }
.mix-description { color: var(--text-soft); }
/* The event a mix was recorded at, and that night's sets in their running order */
.mix-night__event { margin: 0; display: grid; gap: .15rem; }
.mix-night__event a { font-weight: 600; text-decoration: none; }
.mix-night__event .muted { font-size: .9rem; }
.mix-night h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 1.2rem 0 .5rem; font-weight: 500; }
.mix-night__sets { margin: 0; padding: 0 0 0 1.6rem; border-top: 1px solid var(--line); }
.mix-night__sets li { padding: .4rem 0; border-bottom: 1px solid var(--line); }
.mix-night__sets li::marker { color: var(--muted); font-variant-numeric: tabular-nums; font-size: .85rem; }
.mix-night__sets a { text-decoration: none; }
.mix-night__sets a:hover { color: var(--accent); }
.mix-night__sets li[aria-current] { font-weight: 600; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.chips a { display: inline-block; padding: .2rem .7rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: .9rem; }
.chips a:hover { border-color: var(--accent); }

@media (max-width: 720px) {
    .mix-hero, .mix-body { grid-template-columns: 1fr; }
    .mix-art { max-width: 220px; }
    .mix-wave { height: 80px; --bar: 2px; --gap: 1px; }
}

/* Auth forms */
.auth { max-width: 380px; margin: 2rem auto; }
.auth form > div, .auth label { display: block; margin-bottom: .9rem; }
.auth label { color: var(--muted); font-size: .9rem; margin-bottom: .3rem; }
.auth input + label { margin-top: .9rem; }
.auth .checkbox { display: flex; gap: .5rem; align-items: center; margin: 1rem 0; color: var(--text); }
.auth .button { width: 100%; padding: .65rem; margin-top: .5rem; }
.auth ul { color: var(--danger); padding-left: 1rem; margin: .3rem 0 0; font-size: .9rem; }
.form-error { color: var(--danger); }
.auth .forum-login { display: block; text-align: center; text-decoration: none; margin: 1rem 0; }
.avatar { border-radius: 50%; object-fit: cover; flex: none; background: var(--surface); }
.account-who { display: flex; align-items: center; gap: .75rem; }

/* Player */
.player {
    position: fixed; left: 0; right: 0; bottom: 0; height: var(--player-h); z-index: 5;
    display: grid; grid-template-columns: auto auto minmax(120px, 260px) auto 1fr auto; gap: 1rem; align-items: center;
    padding: 0 clamp(16px, 3vw, 32px);
    background: color-mix(in srgb, var(--ncl-surface) 94%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    border-top: 1px solid var(--line); box-shadow: 0 -12px 40px rgba(0, 0, 0, .25);
    color: var(--text);
}
.player a { color: inherit; }
.player .heart.is-on { color: var(--heart); }
.player[hidden] { display: none; }
.player-art { width: 48px; height: 48px; object-fit: cover; border-radius: var(--radius); }
.player-toggle {
    width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
    background: var(--ncl-accent); display: grid; place-items: center;
}
.player-toggle svg { width: 20px; height: 20px; fill: var(--ncl-accent-ink); }
.player .icon-pause, .player.is-playing .icon-play { display: none; }
.player.is-playing .icon-pause { display: block; }
.player-meta { display: flex; flex-direction: column; min-width: 0; }
.player-title { font-weight: 600; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-artist { color: var(--muted); font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* The track playing now, from a timed tracklist */
.player-now { color: var(--accent); font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.player-now::before { content: '▸ '; }
.player-time { color: var(--muted); font-size: .85rem; font-variant-numeric: tabular-nums; }
.player-wave { width: 100%; height: 60px; cursor: pointer; }
.player-wave:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.player-error {
    position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); margin: 0;
    background: var(--surface); border: 1px solid var(--danger); color: var(--text);
    padding: .4rem .8rem; border-radius: var(--radius); font-size: .9rem; white-space: nowrap;
}
@media (max-width: 720px) {
    .player { grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; height: auto; padding-block: .5rem; gap: .25rem .75rem; }
    .player-art, .player-time { display: none; }
    .player-wave { grid-column: 1 / -1; height: 44px; }
    .has-player body { padding-bottom: 140px; }
}
.auth .label-link { float: right; font-size: .85rem; }

/* Now-playing equaliser: three bars that bounce while the track plays */
.eq { display: none; gap: 2px; align-items: flex-end; height: 14px; }
.eq i { display: block; width: 3px; height: 100%; background: var(--accent); border-radius: 1px; transform-origin: bottom; animation: eq 0.9s ease-in-out infinite; }
.eq i:nth-child(2) { animation-duration: 0.7s; animation-delay: -0.2s; }
.eq i:nth-child(3) { animation-duration: 1.1s; animation-delay: -0.5s; }
@keyframes eq { 0%, 100% { transform: scaleY(0.25); } 50% { transform: scaleY(1); } }
.is-playing > .track-play .eq, .player.is-playing .eq, .mix.is-playing .eq-title { display: inline-flex; }
.track-play .eq { position: absolute; inset: 0; margin: auto; width: 13px; height: 18px; filter: drop-shadow(0 1px 2px #000a); transition: opacity .15s; }
.player .eq { margin-right: .4rem; vertical-align: -1px; height: 11px; }
.player .eq i { width: 2px; }
.eq-title { margin-right: .6rem; height: .7em; vertical-align: .05em; }
.eq-title i { width: 4px; }
@media (prefers-reduced-motion: reduce) { .eq i { animation: none; transform: scaleY(0.7); } }

/* Hearts */
.heart { display: inline-grid; place-items: center; padding: 0; border: 0; background: none; color: var(--muted); cursor: pointer; width: 36px; height: 36px; border-radius: 50%; }
.heart svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .15s; }
.heart:hover { color: var(--accent-hover); }
.heart.is-on { color: var(--heart); }
.heart.is-on svg { fill: currentColor; }
.heart:active svg { transform: scale(0.85); }
.heart:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.button-heart { width: auto; height: auto; min-height: 44px; border-radius: 999px; padding: 0 1rem; color: var(--text); border: 1px solid var(--line); background: var(--surface); }
.button-heart.is-on { color: var(--heart); border-color: var(--heart); }

/* Favourites filter toggle */
.filter-toggle { cursor: pointer; }
.filter-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.filter-toggle span {
    display: inline-flex; align-items: center; gap: .4rem; font-size: .9rem; padding: .45rem .8rem;
    border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
}
.filter-toggle span svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
.filter-toggle.is-active span { border-color: var(--accent); color: var(--accent); }
.filter-toggle.is-active span svg { fill: currentColor; }
.filter-toggle input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 1px; }

/* Player: transport, volume, autoplay */
.player { grid-template-columns: auto auto minmax(120px, 240px) auto auto 1fr auto auto auto; gap: .9rem; }
.player-transport { display: flex; align-items: center; gap: .35rem; }
.player-skip, .player-icon { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--text); cursor: pointer; }
.player-skip svg, .player-icon svg { width: 20px; height: 20px; fill: currentColor; }
.player-skip:hover:not(:disabled), .player-icon:hover { color: var(--accent); }
.player-skip:disabled { color: var(--wave); cursor: default; }
.player-skip:focus-visible, .player-icon:focus-visible, .player-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.player-autoplay[aria-pressed="false"] { color: var(--wave); }
.player-autoplay[aria-pressed="true"] { color: var(--accent); }
.player-shuffle svg, .player-repeat svg, .player-queue-toggle svg { fill: none; }
.player-shuffle[aria-pressed="false"], .player-repeat[data-repeat="off"] { color: var(--wave); }
.player-shuffle[aria-pressed="true"], .player-repeat:not([data-repeat="off"]) { color: var(--accent); }
.player-repeat .repeat-one { display: none; fill: currentColor; }
.player-repeat[data-repeat="one"] .repeat-one { display: inline; }
.player-queue-toggle[aria-expanded="true"] { color: var(--accent); }
.player-queue-toggle.is-flashing { animation: queue-flash .6s ease-out; }
@keyframes queue-flash { 0% { transform: scale(1); color: var(--accent); } 40% { transform: scale(1.3); color: var(--accent); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .player-queue-toggle.is-flashing { animation: none; } }
.player-size .icon-grow, .player-size[aria-pressed="true"] .icon-shrink { display: none; }
.player-size[aria-pressed="true"] .icon-grow { display: block; }
.player-volume { display: flex; align-items: center; gap: .3rem; }
.player .vol-low, .player .vol-muted { display: none; }
.player[data-volume="low"] .vol-high, .player[data-volume="muted"] .vol-high { display: none; }
.player[data-volume="low"] .vol-low, .player[data-volume="muted"] .vol-muted { display: block; }
.player-volume-slider {
    --level: 80%;
    appearance: none; width: 88px; height: 4px; border-radius: 2px; cursor: pointer;
    background: linear-gradient(to right, var(--accent) var(--level), var(--wave) var(--level));
}
.player-volume-slider::-webkit-slider-thumb { appearance: none; width: 12px; height: 12px; border-radius: 50%; background: var(--text); border: 0; }
.player-volume-slider::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--text); border: 0; }
.player-volume-slider:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.player-heart { width: 34px; height: 34px; }
/* Desktop: two rows, so the waveform gets nearly the full width:
   [art][prev play next] title · artist ... heart volume shuffle repeat autoplay queue
   [art][prev play next] 0:00 [waveform ........................] 3:40 */
@media (min-width: 901px) {
    .player {
        grid-template-columns: auto auto auto minmax(0, 1fr) auto auto auto auto auto auto auto auto auto;
        grid-template-rows: auto auto;
        grid-template-areas:
            "art transport meta meta meta heart volume shuffle repeat autoplay queue size popout"
            "art transport time wave wave wave wave wave wave wave wave wave duration";
        row-gap: .5rem; column-gap: 1rem; padding-block: 1rem;
    }
    .player-art { grid-area: art; width: 110px; height: 110px; }
    .player-transport { grid-area: transport; }
    .player-meta { grid-area: meta; flex-direction: row; align-items: baseline; gap: .6rem; }
    .player-artist::before { content: '·'; margin-right: .6rem; color: var(--muted); }
    .player-heart { grid-area: heart; }
    .player-volume { grid-area: volume; }
    .player-autoplay { grid-area: autoplay; }
    .player > .player-shuffle { grid-area: shuffle; }
    .player > .player-repeat { grid-area: repeat; }
    .player-queue-toggle { grid-area: queue; }
    .player-size { grid-area: size; }
    .player-popout { grid-area: popout; }
    .player-time[data-player-target="time"] { grid-area: time; }
    .player-time[data-player-target="duration"] { grid-area: duration; }
    .player-wave { grid-area: wave; height: 86px; }
    /* Compact, chosen with the player's size button */
    .player-compact { --player-h: 84px; }
    .player-compact .player { row-gap: .15rem; padding-block: .4rem; }
    .player-compact .player-art { width: 60px; height: 60px; }
    .player-compact .player-wave { height: 36px; }
}
@media (max-width: 900px) {
    .player-volume, .player-time, .player > .player-shuffle, .player > .player-repeat { display: none; }
    .player { grid-template-columns: auto auto minmax(0, 1fr) auto auto auto auto auto; }
    .player-wave { grid-column: 1 / -1; order: 10; height: 44px; }
    /* Slim (the size button): one row, the waveform a thin strip to tap along */
    .player-compact { --player-h: 76px; }
    .player-compact .player { row-gap: .2rem; padding-block: .35rem; height: auto; }
    .player-compact .player-art { width: 44px; height: 44px; }
    .player-compact .player-now { display: none; }
    .player-compact .player-wave { height: 10px; }
}
@media (max-width: 720px) {
    .player { padding-block: .5rem; height: auto; row-gap: .25rem; }
    .player-art { display: none; }
    .player { grid-template-columns: auto minmax(0, 1fr) auto auto auto auto auto; }
}
/* Phones: the title and artist get a row of their own above the buttons (not when slim) */
@media (max-width: 480px) {
    html:not(.player-compact) .player:not(.is-popout) .player-meta { grid-column: 1 / -1; order: -1; }
    html:not(.player-compact) .player:not(.is-popout) .player-heart { justify-self: end; }
    /* Slim: just play, the title and the size button (the rest is in the full player) */
    .player-compact .player:not(.is-popout) :is(.player-skip, .player-heart, .player-autoplay, .player-queue-toggle, .player-popout) { display: none; }
    .player-compact .player:not(.is-popout) { grid-template-columns: auto minmax(0, 1fr) auto; }
}

/* The queue panel: opens above the player bar */
.player-queue {
    position: absolute; right: clamp(16px, 3vw, 32px); bottom: calc(100% + 8px); z-index: 2;
    display: flex; flex-direction: column; width: min(420px, calc(100vw - 32px)); max-height: min(60vh, 560px);
    background: var(--ncl-surface); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: 0 16px 48px rgba(0, 0, 0, .4);
}
.player-queue[hidden] { display: none; }
.player-queue-head { display: flex; align-items: center; gap: .25rem; padding: .5rem .5rem .5rem 1rem; border-bottom: 1px solid var(--line); }
.player-queue-title { flex: 1; margin: 0; font-size: 1rem; }
.player-queue-count { margin-left: .4rem; color: var(--muted); font-size: .85rem; font-weight: 400; }
.player-queue-list { list-style: none; margin: 0; padding: .3rem 0; overflow-y: auto; overscroll-behavior: contain; }
.player-queue-item { display: flex; align-items: center; padding-right: .4rem; }
.player-queue-item.is-current { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.player-queue-play {
    flex: 1; min-width: 0; display: grid; grid-template-columns: 1.8rem 40px minmax(0, 1fr) auto; gap: .7rem; align-items: center;
    padding: .4rem .5rem .4rem .8rem; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.player-queue-play:hover .player-queue-name, .player-queue-item.is-current .player-queue-name { color: var(--accent); }
.player-queue-play:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.player-queue-number { color: var(--muted); font-size: .8rem; text-align: right; font-variant-numeric: tabular-nums; }
.player-queue-art { width: 40px; height: 40px; border-radius: 4px; object-fit: cover; background: var(--surface); }
.player-queue-text { display: flex; flex-direction: column; min-width: 0; }
.player-queue-name, .player-queue-artist { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-queue-name { font-size: .92rem; }
.player-queue-artist { color: var(--muted); font-size: .8rem; }
.player-queue-time { color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; }
.player-queue-remove { flex: none; width: 30px; height: 30px; color: var(--muted); opacity: .6; }
.player-queue-item:hover .player-queue-remove, .player-queue-remove:focus-visible { opacity: 1; }
.player-queue-remove svg { fill: none; width: 16px; height: 16px; }
.player-queue-empty { padding: 1rem; color: var(--muted); font-size: .9rem; }
.player-queue-more { margin: 0; padding: .5rem 1rem; border-top: 1px solid var(--line); }
.player-queue-more button { width: 100%; padding: .45rem; border: 1px solid var(--line); border-radius: var(--radius); background: none; color: var(--text); font: inherit; font-size: .9rem; cursor: pointer; }
.player-queue-more button:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 720px) {
    .player-queue { right: 16px; max-height: 65vh; }
}

/* Pop-out window: the player is the whole page, laid out for a small window.
   [art] title / artist ................ heart
   [art] prev play next ... volume autoplay back-to-site
   0:00 [waveform ........................] 3:40 */
.popout-body { margin: 0; background: var(--ncl-surface); padding-bottom: 0 !important; }
.player.is-popout {
    position: static; height: 100vh; min-height: 200px; border-top: 0; box-shadow: none;
    grid-template-columns: auto auto minmax(0, 1fr) auto auto auto auto auto auto;
    grid-template-rows: auto auto minmax(48px, 220px);
    grid-template-areas:
        "art meta meta meta meta meta meta meta heart"
        "art transport . volume shuffle repeat autoplay queue popout"
        "time wave wave wave wave wave wave wave duration";
    gap: .5rem .9rem; padding: .9rem 1rem; align-content: start;
}
.player.is-popout .player-art { display: block; grid-area: art; width: 96px; height: 96px; }
.player.is-popout .player-meta { grid-area: meta; flex-direction: column; align-self: end; }
.player.is-popout .player-title { font-size: 1.05rem; }
.player.is-popout .player-artist::before { content: none; }
.player.is-popout .player-heart { grid-area: heart; align-self: start; }
.player.is-popout .player-transport { grid-area: transport; }
.player.is-popout .player-volume { display: flex; grid-area: volume; }
.player.is-popout .player-autoplay { grid-area: autoplay; }
.player.is-popout > .player-shuffle { display: grid; grid-area: shuffle; }
.player.is-popout > .player-repeat { display: grid; grid-area: repeat; }
.player.is-popout .player-queue-toggle { grid-area: queue; }
.player.is-popout .player-queue { position: fixed; inset: 0; width: auto; max-height: none; border: 0; border-radius: 0; z-index: 10; }
.player.is-popout .player-popout { display: grid; grid-area: popout; }
.player.is-popout .player-size { display: none; }
.player.is-popout .player-time { display: inline; align-self: center; }
.player.is-popout .player-time[data-player-target="time"] { grid-area: time; }
.player.is-popout .player-time[data-player-target="duration"] { grid-area: duration; }
.player.is-popout .player-wave { grid-area: wave; order: 0; height: 100%; min-height: 48px; }
.player.is-popout .player-error { bottom: auto; top: .5rem; }
@media (max-width: 480px) {
    /* A phone's tab: no volume slider (the phone's buttons do that), the rest on one row */
    .player.is-popout {
        column-gap: .5rem; padding-inline: .75rem;
        grid-template-columns: 72px minmax(0, 1fr) auto auto auto auto auto;
        grid-template-areas:
            "art meta meta meta meta meta heart"
            "transport transport shuffle repeat autoplay queue popout"
            "time wave wave wave wave wave duration";
    }
    .player.is-popout .player-volume { display: none; }
    .player.is-popout .player-art { width: 72px; height: 72px; }
}

/* Account */
.user-link { display: inline-flex !important; align-items: center; gap: .4rem; }
.user-link svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
.account h1 { margin-bottom: .2rem; }
.account-favourites { margin-top: 2rem; }
.account-favourites h2 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-family: var(--ncl-mono); font-weight: 500; margin: 0 0 .8rem; }
.account-tabs { display: flex; gap: .3rem; flex-wrap: wrap; margin: 1.2rem 0 1.5rem; border-bottom: 1px solid var(--line); }
.account-tabs a { padding: .55rem .9rem; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.account-tabs a:hover { color: var(--text); }
.account-tabs a.is-active { color: var(--text); border-bottom-color: var(--accent); }
/* On a phone the tabs wrap onto several lines, where an underline reads badly: pills instead */
@media (max-width: 640px) {
    .account-tabs { gap: .45rem; margin: 1rem 0 1.5rem; border-bottom: 0; }
    .account-tabs a { padding: .45rem .9rem; margin: 0; border: 1px solid var(--line); border-radius: 999px; font-size: .95rem; }
    .account-tabs a.is-active { color: var(--ncl-accent-ink); background: var(--ncl-accent); border-color: var(--ncl-accent); }
}
.account-form { max-width: 420px; }
.account-form form > div { margin-bottom: 1rem; }
.account-form label { display: block; color: var(--muted); font-size: .9rem; margin-bottom: .3rem; }
.account-form input[type=email], .account-form input[type=password], .account-form input[type=text] {
    width: 100%; background: var(--surface); color: var(--text); font: inherit;
    border: 1px solid var(--field-border); border-radius: var(--radius); padding: .5rem .75rem;
}
.account-form input:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.account-form input[type=checkbox] + label, .account-form .form-check label { display: inline; color: var(--text); }
.account-form .help-text, .account-form [id$="_help"] { color: var(--muted); font-size: .82rem; margin-top: .25rem; }
.account-form ul { color: var(--danger); padding-left: 1rem; margin: .3rem 0 0; font-size: .9rem; }
.button-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.button-danger:hover { color: #fff; }
@media (max-width: 640px) { .user-link { max-width: 9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } }

/* Listening progress */
.track-progress { display: block; height: 3px; margin-top: .35rem; background: var(--line); border-radius: 2px; overflow: hidden; max-width: 220px; }
.track-progress span { display: block; height: 100%; background: var(--accent); }
.track-progress.is-done span { background: var(--muted); }
.track-resume { font: inherit; font-size: .9rem; color: var(--accent); background: none; border: 0; padding: 0; cursor: pointer; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.track-resume .muted { font-size: .85em; }
.track-resume:hover { text-decoration: underline; text-underline-offset: 3px; }
.track:has(.track-resume) { grid-template-columns: 56px minmax(140px, 260px) 1fr auto 36px 36px; }
@media (max-width: 640px) { .track:has(.track-resume) { grid-template-columns: 56px 1fr auto 36px 36px; } .track-resume .muted { display: none; } }

.continue { margin: 0 0 1.75rem; }
.continue h2, .account-toolbar + h2 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 .7rem; font-weight: 500; }
.continue-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .7rem; }
.continue-item { display: flex; gap: .75rem; align-items: center; padding: .55rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.continue-item.is-current { border-color: var(--accent); }
.continue-play { position: relative; flex: none; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 6px; overflow: hidden; background: var(--bg); cursor: pointer; }
.continue-play img, .continue-play .track-art-placeholder { display: block; width: 100%; height: 100%; object-fit: cover; }
.continue-play svg { position: absolute; inset: 0; margin: auto; width: 20px; height: 20px; fill: #fff; filter: drop-shadow(0 1px 3px #000a); }
.continue-text { display: flex; flex-direction: column; min-width: 0; flex: 1; text-decoration: none; }
.continue-text .track-progress { max-width: none; }

.account-toolbar { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; margin-bottom: .75rem; }
.account-toolbar p { margin: 0; }

.player-notice {
    position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); margin: 0;
    display: flex; gap: .7rem; align-items: center; white-space: nowrap;
    background: var(--surface); border: 1px solid var(--line); color: var(--text);
    padding: .4rem .5rem .4rem .9rem; border-radius: 999px; font-size: .9rem; box-shadow: 0 6px 20px #0006;
}
.player-notice strong { font-variant-numeric: tabular-nums; }
.player-notice button { font: inherit; font-size: .85rem; border: 1px solid var(--line); background: none; color: var(--accent); border-radius: 999px; padding: .2rem .7rem; cursor: pointer; }
.player-notice button:hover { border-color: var(--accent); }

/* Links inside headings/eyebrows */
.eyebrow a, .mix-artist a { text-decoration: none; }
.eyebrow a:hover, .mix-artist a:hover { text-decoration: underline; }

/* Artist and group pages */
.profile { display: grid; grid-template-columns: minmax(0, 240px) 1fr; gap: 2rem; align-items: start; margin-bottom: 2rem; }
.profile-picture { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; background: var(--surface); }
.profile-placeholder { display: grid; place-items: center; font-size: 3.2rem; font-weight: 700; color: var(--ncl-pale); background: linear-gradient(135deg, #2b4a5c, #0f1f29); border-radius: 50%; }
.profile-body h1 { margin-bottom: .5rem; }
.profile-text { color: var(--text-soft); max-width: 65ch; margin: 1rem 0; }
.profile-links { margin-top: 1rem; }
.profile-section { margin-bottom: 2rem; }
.profile-section h2 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 .8rem; font-weight: 500; }
.profile-section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.sort-toggle { display: flex; gap: .2rem; font-size: .9rem; }
.sort-toggle a { padding: .2rem .6rem; border-radius: 999px; text-decoration: none; color: var(--muted); }
.sort-toggle a[aria-current] { color: var(--text); background: var(--surface); }
.artist-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.artist-chips a { display: inline-flex; align-items: center; gap: .5rem; padding: .25rem .8rem .25rem .3rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; }
.artist-chips a:hover { border-color: var(--accent); }
.artist-chips img, .artist-chips a > span:first-child { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; display: inline-grid; place-items: center; background: var(--surface); font-size: .7rem; font-weight: 600; }
img.credit-monogram { object-fit: cover; padding: 0; }
@media (max-width: 640px) { .profile { grid-template-columns: 1fr; } .profile-picture { max-width: 160px; } }

/* Card grid (artists, groups) */
.card-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1.25rem; }
.card a { display: flex; flex-direction: column; gap: .25rem; text-decoration: none; }
.card-picture { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; background: var(--surface); margin-bottom: .4rem; }
.card .profile-placeholder { font-size: 2.2rem; }
.card-name { font-weight: 600; }
.card-sub { color: var(--muted); font-size: .88rem; }
.card a:hover .card-name { color: var(--accent); }

/* Error pages */
.error-page { max-width: 720px; margin: 2rem auto; text-align: center; }
.error-code { display: inline-flex; align-items: center; gap: .6rem; margin: 0 0 1rem; font-size: clamp(4rem, 14vw, 7rem); font-weight: 700; line-height: 1; color: var(--accent); letter-spacing: -.04em; }
.eq.eq-static { display: inline-flex; height: .62em; gap: .08em; }
.eq.eq-static i { width: .11em; border-radius: .03em; }
.error-search { width: auto; max-width: 420px; height: 48px; margin: 1.5rem auto 1rem; }
.error-links { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; }
.error-latest-heading { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 2.5rem 0 .8rem; font-weight: 500; text-align: left; }
.error-page .tracks { text-align: left; }

.logout-form { display: inline; margin: 0; }
.link-button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-decoration-color: var(--muted); text-underline-offset: 3px; }
.link-button:hover { color: var(--accent); }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.button-ghost, .filter-toggle span, .chips a, .active-filters a { border-color: var(--field-border); }
.auth .label-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .3rem; }
.auth .label-row label { margin: 0; }
.auth input + .label-row { margin-top: .9rem; }
.auth .label-link { float: none; }
.error-debug { display: inline-block; margin: 1.5rem auto 0; padding: .4rem .8rem; border: 1px dashed var(--field-border); border-radius: var(--radius); color: var(--muted); font: .82rem/1.4 var(--ncl-mono); text-align: left; }

/* Home page */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-bg {
    position: absolute; inset: -60px; background: linear-gradient(135deg, #2b4a5c, #0f1f29) center / cover;
    filter: blur(40px) saturate(1.3); opacity: .55;
}
:root[data-theme="light"] .hero-bg { opacity: .25; }
.hero-inner { position: relative; display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 48px; align-items: center; padding-block: 56px; }
.art { position: relative; display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: linear-gradient(135deg, #2b4a5c, #0f1f29); }
.art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.art-link { position: absolute; inset: 0; }
.art-placeholder { position: absolute; inset: 0; background: #0f1f29 url("../images/default-art-wtS8Wwj.svg") center / cover; }
.hero-art { box-shadow: 0 30px 60px rgba(0, 0, 0, .45); }
.hero-title { font-size: clamp(44px, 7vw, 92px); margin: 14px 0 12px; overflow-wrap: anywhere; }
.hero-title a { color: inherit; text-decoration: none; }
.hero-by { font-size: 19px; color: var(--text-soft); margin: 0; }
.hero-by a { color: var(--text); text-decoration-color: var(--ncl-accent); text-underline-offset: 4px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 14px 0 0; }
.hero-wave { --bar: 3px; --gap: 2px; height: 72px; margin-top: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-actions .button-play svg { width: 16px; height: 16px; fill: currentColor; }
@media (max-width: 860px) {
    .hero-inner { grid-template-columns: 1fr; gap: 28px; padding-block: 32px; }
    .hero-art { width: 200px; }
}

.home-section { padding: 56px 0 8px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.section-head h2 { font: 800 30px/1 var(--ncl-display); font-stretch: 82%; text-transform: uppercase; margin: 8px 0 0; }
.link-more { color: var(--text-soft); font-weight: 500; text-decoration: none; font-size: 15px; }
.link-more:hover { color: var(--accent); }

.mix-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1080px) { .mix-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .mix-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
.mix-card { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.mix-card .art { width: 100%; transition: transform .2s; }
.mix-card:hover .art { transform: translateY(-3px); }
.mix-card-title { font-weight: 600; line-height: 1.3; text-decoration: none; overflow-wrap: anywhere; }
.mix-card-by { color: var(--text-soft); font-size: 14px; }
.mix-card.is-current .mix-card-title { color: var(--accent); }
.play-fab {
    position: absolute; right: 10px; bottom: 10px; z-index: 2; width: 48px; height: 48px; border-radius: 50%;
    display: grid; place-items: center; border: 0; padding: 0; cursor: pointer;
    background: var(--ncl-accent); color: var(--ncl-accent-ink); box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
    opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s;
}
.play-fab svg { width: 20px; height: 20px; fill: currentColor; }
.play-fab .eq i { background: var(--ncl-accent-ink); }
.mix-card:hover .play-fab, .play-fab:focus-visible, .mix-card.is-current .play-fab { opacity: 1; transform: none; }
.play-fab:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.mix-card.is-playing .play-fab .icon-play { display: none; }
.mix-card.is-playing .play-fab .eq { display: inline-flex; }
@media (hover: none) { .play-fab { opacity: 1; transform: none; width: 40px; height: 40px; } }

.home-split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 0 32px; }
.home-split.is-single { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 960px) { .home-split { grid-template-columns: minmax(0, 1fr); } }
.topics { list-style: none; margin: 0; padding: 6px 0; }
.topics li + li { border-top: 1px solid var(--line); }
.topic { display: flex; align-items: center; gap: 14px; padding: 14px 20px; text-decoration: none; color: var(--text); }
.topic:hover { background: var(--surface-2); color: var(--text); }
.topic-avatar { width: 36px; height: 36px; font-size: 13px; }
.topic-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.topic-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topic-text .ncl-meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topic-replies { flex: none; text-align: right; }
@media (max-width: 520px) { .topic { padding: 12px 14px; } .topic-replies { display: none; } }

.albums { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.home-split.is-single .albums { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.album { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--surface-2); text-decoration: none; }
.album img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.album:hover img { transform: scale(1.04); }
.album-text {
    position: absolute; inset: auto 0 0 0; display: flex; flex-direction: column; gap: 2px; padding: 28px 12px 10px;
    background: linear-gradient(transparent, rgba(5, 10, 14, .85)); color: #fff;
}
.album-name { font-weight: 600; font-size: 14px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.album-text .ncl-meta { color: rgba(255, 255, 255, .75); font-size: 12px; }
.album-lock { display: grid; place-items: center; height: 100%; color: var(--muted); }
.album-lock svg, .gallery-lock { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.album-badge { font-size: 11px; padding: .05rem .45rem; vertical-align: middle; }
.gallery-locked { max-width: 28rem; margin: 3rem auto; text-align: center; }
.gallery-locked .gallery-lock { color: var(--muted); }
.gallery-unlock { display: grid; gap: .5rem; text-align: left; margin-top: 1.5rem; }
.gallery-unlock label { font-weight: 600; }
.gallery-unlock input {
    width: 100%; background: var(--surface); color: var(--text); font: inherit;
    border: 1px solid var(--field-border); border-radius: var(--radius); padding: .6rem .8rem;
}
.gallery-unlock input:focus { outline: 2px solid var(--ncl-accent); outline-offset: 0; }
.gallery-unlock .button { justify-self: start; }

.home-section .continue-list { margin-top: 0; }
.track-play .eq i, .continue-play .eq i { background: var(--ncl-accent); }

/* Gallery */
.gallery-head { margin-bottom: 1.5rem; }
.gallery-head h1 { margin-top: .6rem; }
.gallery-head .ncl-meta { margin: 0; }
.gallery-description { color: var(--text-soft); max-width: 65ch; margin: 1rem 0 0; }
.gallery-actions { display: flex; gap: 8px; margin-top: 1rem; }
.photo-actions { display: flex; gap: 8px; flex-shrink: 0; }
.photo-bbcode { display: flex; align-items: center; gap: 8px; margin-top: 1rem; }
.photo-bbcode label { color: var(--ncl-muted); white-space: nowrap; }
.photo-bbcode input { flex: 1; min-width: 0; padding: .5rem .75rem; border: 1px solid var(--field-border); border-radius: var(--radius); background: var(--surface); color: var(--text-soft); font: 400 12px/1.4 var(--ncl-mono); }
@media (max-width: 560px) { .photo-bbcode { flex-wrap: wrap; } .photo-bbcode label { width: 100%; } }
.photo-staff { margin-top: 1.5rem; padding: 1rem 1.2rem; border: 1px dashed var(--ncl-line); border-radius: 10px; }
.photo-staff h2 { margin: 0 0 .8rem; font-size: 1rem; }
.photo-staff h2 .ncl-meta { margin-left: .5rem; font-weight: 400; }
.photo-staff dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .35rem 1.2rem; margin: 0; }
.photo-staff dt { color: var(--ncl-muted); }
.photo-staff dd { margin: 0; }
.photo-staff-file { overflow-wrap: anywhere; }
.photo-staff-links { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin: 1rem 0 0; }
.gallery-sections { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.2rem; }
.gallery-mine-link { margin-left: auto; }
.gallery-group { margin: 2.5rem 0 0; }
.gallery-year { font: 800 30px/1 var(--ncl-display); font-stretch: 82%; margin: 0 0 1rem; }
.albums-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
@media (max-width: 560px) { .albums-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.gallery-activity { margin: 2rem 0 0; }
.gallery-activity .section-head { margin-bottom: 1rem; }
.gallery-stats { margin: .4rem 0 0; }
.gallery-activity-links { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.photo-views { position: absolute; left: 6px; bottom: 6px; padding: 3px 7px; border-radius: 999px; background: rgba(0, 0, 0, .6); color: #fff; font: 600 12px/1 var(--ncl-body); pointer-events: none; }
/* The latest comments: a photo and the start of what was said */
.latest-comments { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.latest-comments li { display: flex; gap: .8rem; min-width: 0; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.latest-comments-page { grid-template-columns: 1fr; max-width: 70ch; }
/* On the gallery's front page: in the albums' grid, the photo on top like an album card */
.latest-comments-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.latest-comments-grid li { flex-direction: column; gap: .6rem; padding: 0 0 10px; overflow: hidden; border-radius: 10px; }
.latest-comments-grid .latest-comment-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 0; }
.latest-comments-grid .latest-comment-text { padding: 0 10px; }
@media (max-width: 560px) {
    .latest-comments-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .latest-comments-grid li:nth-child(5) { display: none; } /* two rows of two */
}
.latest-comment-photo { flex: none; }
.latest-comment-photo img { display: block; width: 64px; height: 64px; object-fit: cover; border-radius: calc(var(--radius) / 2); }
.latest-comment-text { min-width: 0; flex: 1; }
.latest-comment-text p { margin: 0; }
.latest-comment-text .ncl-meta strong { font-weight: 600; color: var(--text); }
.latest-comment-body { margin: .15rem 0; overflow-wrap: anywhere; }
/* In the boxes, the first lines; /gallery/comments shows them whole */
.latest-comments:not(.latest-comments-page) .latest-comment-body { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.latest-comment-body blockquote { margin: .3rem 0; padding-left: .6rem; border-left: 2px solid var(--line); color: var(--text-soft); }
.latest-comment-body img.smiley { vertical-align: -3px; }
.latest-comment-album { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.latest-comment-album a { color: inherit; }
.latest-comment-album a:hover { color: var(--accent); }
.home-gallery-comments-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 1.5rem 0 .8rem; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-family: var(--ncl-mono); font-weight: 500; }
.home-gallery-comments-heading .link-more { text-transform: none; letter-spacing: 0; font-family: inherit; }
.home-gallery-comments { grid-template-columns: 1fr; }

/* Justified rows: equal-height rows, each photo as wide as its width/height ratio (--r) asks,
   stretched to fill the row (a little cropping instead of ragged edges) */
.photo-grid { --row: 200px; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.photo-grid::after { content: ''; flex-grow: 999; } /* the last row keeps its height */
.photo-grid li { flex: var(--r) 1 calc(var(--r) * var(--row)); height: var(--row); min-width: 0; }
.photo-grid a { position: relative; display: block; width: 100%; height: 100%; border-radius: 6px; overflow: hidden; background: var(--surface-2); }
.photo-play { position: absolute; inset: 50% auto auto 50%; translate: -50% -50%; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; pointer-events: none; }
.photo-play svg { width: 22px; height: 22px; margin-left: 3px; fill: currentColor; }
.photo-comment-count {
    position: absolute; right: 6px; bottom: 6px; display: flex; align-items: center; gap: 4px; padding: 3px 7px;
    border-radius: 999px; background: rgba(0, 0, 0, .6); color: #fff; font: 600 12px/1 var(--ncl-body); pointer-events: none;
}
.photo-comment-count svg { width: 13px; height: 13px; fill: currentColor; }
.photo-grid img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s, opacity .2s; }
.photo-grid a:hover img { transform: scale(1.03); }
.photo-grid a:focus-visible { outline: 2px solid var(--ncl-accent); outline-offset: 2px; }
.photo-grid li:target a { outline: 2px solid var(--ncl-accent); outline-offset: 2px; }
/* Hidden photos: only the gallery staff see them, so they say so */
.photo-grid .is-hidden img { opacity: .45; filter: grayscale(1); }
.photo-hidden-badge { position: absolute; top: 6px; left: 6px; padding: 3px 8px; border-radius: 999px; background: #b3261e; color: #fff; font: 700 11px/1.2 var(--ncl-body); letter-spacing: .04em; text-transform: uppercase; pointer-events: none; }
.photo-hidden-chip { color: var(--ncl-danger); border-color: currentColor; }
.photo-hidden-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; margin: 0 0 1rem; padding: .8rem 1rem; border: 1px solid var(--ncl-danger); border-left-width: 4px; border-radius: 8px; }
.photo-hidden-note p { margin: 0; overflow-wrap: anywhere; }
.photo-hide-form { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 1rem 0 0; }
.photo-hide-form label { flex-basis: 100%; color: var(--ncl-muted); }
.photo-hide-form input { flex: 1 1 240px; min-width: 0; padding: .45rem .6rem; border: 1px solid var(--ncl-line); border-radius: 6px; background: var(--ncl-surface); color: inherit; font: inherit; }
@media (max-width: 560px) { .photo-grid { --row: 110px; gap: 4px; } }

.photo-page { max-width: 1200px; margin: 0 auto; }
.photo-bar { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.photo-bar .mix-back { margin-bottom: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.photo-stage { position: relative; margin: 0; display: grid; place-items: center; background: #05080a; border-radius: 10px; overflow: hidden; }
.photo-video { display: block; width: min(100%, 720px); height: auto; max-height: 70vh; background: #000; }
.photo-video-note { position: absolute; left: 50%; bottom: 1rem; translate: -50% 0; max-width: calc(100% - 2rem); padding: .5rem .9rem; border-radius: 999px; background: rgba(0, 0, 0, .7); color: #fff; font-size: .85rem; text-align: center; text-decoration: none; }
.photo-video-note:hover { background: rgba(0, 0, 0, .85); color: #fff; }
.photo-stage img { display: block; max-width: 100%; width: auto; height: auto; max-height: calc(100vh - var(--ncl-header-h) - var(--player-h) - 120px); min-height: 200px; aspect-ratio: var(--r); object-fit: contain; }
.has-player .photo-stage img { max-height: calc(100vh - var(--ncl-header-h) - var(--player-h) - 140px); }
.photo-step {
    position: absolute; top: 0; bottom: 0; width: 22%; display: flex; align-items: center; padding: 0 16px;
    color: #fff; text-decoration: none; opacity: 0; transition: opacity .2s;
}
.photo-step svg { width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: rgba(5, 8, 10, .6); fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.photo-prev { left: 0; }
.photo-next { right: 0; justify-content: flex-end; }
.photo-stage:hover .photo-step, .photo-step:focus-visible { opacity: 1; }
.photo-step:focus-visible svg { outline: 2px solid var(--ncl-accent); }
@media (hover: none) { .photo-step { opacity: 1; width: 30%; } .photo-step svg { width: 38px; height: 38px; } }
.photo-info { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-top: 1rem; }
.photo-title { font-size: 1.6rem; margin: 0 0 .3rem; }
.photo-caption { color: var(--text-soft); margin: 0 0 .4rem; }
.photo-info .ncl-meta { margin: 0; }
.photo-comments { margin-top: 2.5rem; max-width: 70ch; }
.photo-comments h2 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-family: var(--ncl-mono); font-weight: 500; margin: 0 0 1rem; }
.photo-comments ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.photo-comments li { display: flex; gap: .8rem; }
.photo-comments .ncl-avatar { width: 34px; height: 34px; font-size: 12px; }
.photo-comments p { margin: 0; overflow-wrap: anywhere; }
.photo-comments .ncl-meta strong { color: var(--text); font-weight: 600; }
.photo-comments .ncl-avatar img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.photo-comments li > div { min-width: 0; flex: 1; }
.photo-comments li:target { outline: 2px solid var(--ncl-accent); outline-offset: .4rem; border-radius: var(--radius); }
.photo-comment-delete button { background: none; border: 0; padding: 0; margin-top: .2rem; font: inherit; font-size: .8rem; color: var(--muted); cursor: pointer; }
.photo-comment-delete button:hover { color: var(--danger); }
.photo-comments a.ncl-avatar { text-decoration: none; }
.photo-comments .comment-author { color: var(--text); font-weight: 600; text-decoration: none; }
.photo-comments .comment-author:hover { text-decoration: underline; }
.comment-body { overflow-wrap: anywhere; }
.comment-body img.smiley { display: inline; vertical-align: -3px; max-height: 2.5em; width: auto; }
.comment-body blockquote { margin: .3rem 0; padding: .3rem .7rem; border-left: 3px solid var(--line); color: var(--text-soft); }
.comment-body cite { display: block; font-style: normal; font-size: .8rem; color: var(--muted); }
.comment-body a { overflow-wrap: anywhere; }
.comment-body a.mention { font-weight: 600; text-decoration: none; padding: 0 3px; border-radius: 4px; background: color-mix(in srgb, var(--accent) 14%, transparent); }
.comment-body a.mention:hover { text-decoration: underline; }
/* the comment boxes' @ picker (mention_picker_controller.js); the form is its positioned parent */
.mention-picker { position: absolute; z-index: 30; min-width: 180px; max-width: 280px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
.mention-picker[hidden] { display: none; }
.mention-picker ul { list-style: none; margin: 0; padding: 0; }
.mention-picker li { padding: 7px 10px; border-radius: 7px; cursor: pointer; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mention-picker li[aria-selected="true"], .mention-picker li:hover { background: var(--surface-2); }
.comment-smilies { display: flex; flex-wrap: wrap; gap: .15rem; margin-bottom: .4rem; }
.comment-smilies button { background: none; border: 1px solid transparent; border-radius: 6px; padding: .2rem; cursor: pointer; line-height: 0; }
.comment-smilies button:hover, .comment-smilies button:focus-visible { border-color: var(--line); background: var(--surface); }
.photo-comment-form { position: relative; margin-top: 1.25rem; }
.photo-comment-form textarea {
    width: 100%; min-height: 5rem; resize: vertical; background: var(--surface); color: var(--text); font: inherit;
    border: 1px solid var(--field-border); border-radius: var(--radius); padding: .6rem .8rem;
}
.photo-comment-form textarea:focus { outline: 2px solid var(--ncl-accent); outline-offset: 0; }
.photo-comment-actions { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: .5rem; }

/* Events */
.events-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem 1.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.events-head h1 { margin: .6rem 0 0; }
.events-cities { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1.5rem; }
/* The flyer column fits a whole A-size flyer (1:1.414, most are) beside the text; other shapes crop to the focal point */
.event-next { display: grid; grid-template-columns: minmax(0, 34fr) minmax(0, 66fr); overflow: hidden; margin-bottom: 2rem; }
/* The flyer fills its side, cropped around the event's focal point (Event::getFlyerPosition()) */
.event-next__flyer { position: relative; display: block; background: var(--surface-2); }
/* At least A-size tall (square on phones), and as tall as the text beside it (aspect-ratio would stop the grid stretching it) */
.event-next__flyer::before { content: ""; display: block; padding-top: 141.4%; }
.event-next__flyer img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.event-next__body { padding: clamp(20px, 4vw, 32px); display: flex; flex-direction: column; gap: .8rem; }
/* Grows into the height the flyer gives the card without making it taller: the text sits absolutely inside and fades out */
.event-next__teaser { position: relative; flex: 1; min-height: 4.8lh; color: var(--ncl-muted); }
.event-next__teaser p { position: absolute; inset: 0; overflow: hidden; white-space: pre-line; -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent); mask-image: linear-gradient(to bottom, #000 60%, transparent); }
.event-next__foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: flex-end; gap: .8rem; }
.event-next__do { display: grid; gap: .8rem; }
/* Bottom right of the card */
.event-next__details { margin-left: auto; }
.event-next__body :is(h2, h3) { margin: 0; font-size: clamp(32px, 4vw, 52px); }
.event-next__body :is(h2, h3) a { color: inherit; text-decoration: none; }
.event-next__body p { margin: 0; }
.event-next__facts { display: flex; gap: .45rem; align-items: flex-start; }
.event-next__facts .ncl-pin { margin-top: .1em; color: var(--ncl-accent); }
.event-next:not(:has(.event-next__flyer)) { grid-template-columns: 1fr; }
@media (max-width: 1080px) { .event-next { grid-template-columns: minmax(0, 40fr) minmax(0, 60fr); } }
@media (max-width: 760px) { .event-next { grid-template-columns: 1fr; } .event-next__flyer::before { padding-top: 100%; } }
.events-month { margin: 2rem 0 0; }
.events-month__name { font: 500 12px/1 var(--ncl-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 .8rem; }
.events-list { list-style: none; margin: 0; padding: 0; }
.event-row + .event-row { border-top: 1px solid var(--line); }
.event-row__link { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 18px; color: inherit; text-decoration: none; }
.event-row__link:hover .event-row__title { color: var(--accent); }
.event-date { text-align: center; border-radius: 10px; background: var(--surface-2); padding: 8px 0; }
.event-date b { display: block; font: 800 26px/1 var(--ncl-display); }
.event-date span { font: 500 11px var(--ncl-mono); text-transform: uppercase; color: var(--ncl-accent-text); }
.event-row__text { display: grid; gap: 3px; min-width: 0; }
.event-row__title { font-weight: 600; font-size: 17px; overflow-wrap: anywhere; }
.event-row__flyer { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }
.event-row__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem .9rem; }
.event-row__venue { display: inline-flex; align-items: center; gap: .3rem; }
.event-row__venue .ncl-pin { color: var(--ncl-accent); }
.event-row__badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.event-badge { font-size: 12px; padding: 2px 10px; }

/* Coming up / Past events */
.events-tabs { display: flex; gap: 4px; margin: 0 0 1.5rem; border-bottom: 1px solid var(--line); }
.events-tabs a { padding: .6rem 1rem; margin-bottom: -1px; border-bottom: 2px solid transparent; color: var(--muted); font-weight: 600; text-decoration: none; }
.events-tabs a:hover { color: var(--text); }
.events-tabs a[aria-current="page"] { color: var(--text); border-bottom-color: var(--ncl-accent); }
.events-section { font: 500 12px/1 var(--ncl-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 1rem; }
.events-more { margin: 2.5rem 0 0; }
.events-empty { padding: clamp(20px, 4vw, 36px); text-align: center; }
.events-empty h2 { margin: 0 0 .5rem; }
.events-empty p { margin: .5rem 0 0; color: var(--text-soft); }
.event-next__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ncl-btn__icon { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* The forum thread: outlined in the accent, between the filled Tickets and the plain Details */
.ncl-btn.event-next__thread, .ncl-btn.event-thread { border-color: var(--ncl-accent); color: var(--ncl-accent) !important; background: color-mix(in srgb, var(--ncl-accent) 10%, transparent); }
.ncl-btn.event-next__thread:hover, .ncl-btn.event-thread:hover { background: color-mix(in srgb, var(--ncl-accent) 18%, transparent); }
.event-next .event-plans { margin: 0; }
/* The way into the archive */
.events-archive { display: grid; gap: .4rem; margin: 2.5rem 0 0; padding: clamp(20px, 4vw, 32px); color: inherit; text-decoration: none; transition: border-color .2s; }
.events-archive:hover { border-color: var(--ncl-accent); }
.events-archive__title { font: 800 clamp(26px, 3.4vw, 40px)/1 var(--ncl-display); font-stretch: 82%; text-transform: uppercase; }
.events-archive__go { margin-top: .4rem; color: var(--ncl-accent-text); font-weight: 600; }
/* The archive's filters and years */
.events-filter { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.2rem; margin: 0 0 1.5rem; }
.events-filter select { padding: .45rem 2rem .45rem .8rem; border: 1px solid var(--field-border); border-radius: 999px; background: var(--surface); color: var(--text); font: inherit; }
.events-filter__media { display: inline-flex; align-items: center; gap: .5rem; color: var(--text-soft); cursor: pointer; }
.events-filter__count { margin-left: auto; }
.events-year { font: 800 34px/1 var(--ncl-display); font-stretch: 82%; margin: 2.5rem 0 0; }
.events-year:first-of-type { margin-top: .5rem; }
@media (max-width: 520px) { .event-row__link { grid-template-columns: 54px minmax(0, 1fr); padding: 12px 14px; } .event-row__flyer { display: none; } }

/* My events: the review state and Edit under each row; the edit link on an event's page */
.events-head__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.event-row__mine { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: -6px 0 0; padding: 0 18px 14px 98px; font-size: .9rem; }
.event-state--pending { color: var(--ncl-hot); }
.event-state--rejected { color: var(--danger); }
@media (max-width: 520px) { .event-row__mine { padding-left: 14px; } }
.event-edit-link { float: right; }
.event-form__flyer { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .9rem; }
.event-form__flyer img { border-radius: 8px; }
.event-status { padding: .7rem 1rem; border-radius: var(--radius); background: var(--surface-2); border-left: 3px solid var(--ncl-accent); margin: 0 0 1.5rem; }
.event-status--rejected { border-left-color: var(--danger); }
.event-page { display: grid; gap: clamp(20px, 4vw, 40px); }
.event-page.has-flyer { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: start; }
@media (max-width: 760px) {
    .event-page.has-flyer { grid-template-columns: 1fr; }
    /* On phones: the flyer, the details, then the map */
    .event-page__side { display: contents; }
    .event-map { order: 1; }
}
.event-page__head { margin-bottom: clamp(16px, 3vw, 28px); }
.event-page__head h1 { margin: .6rem 0 0; overflow-wrap: anywhere; }
.event-page__side { display: grid; gap: 16px; align-content: start; }
.event-map { display: block; width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: var(--radius); background: var(--surface-2); }
/* The venue map (venue_map_controller.js): OSM tiles turned dark and calm for the dark theme, muted for the light one */
.venue-map { position: relative; overflow: hidden; contain: strict; border: 1px solid var(--ncl-line); z-index: 0; font: inherit; }
.venue-map > a { display: flex; align-items: center; justify-content: center; gap: 6px; height: 100%; color: var(--ncl-text); }
.venue-map .leaflet-tile-pane { filter: invert(1) hue-rotate(185deg) brightness(.92) contrast(.88) saturate(.45); }
:root[data-theme="light"] .venue-map .leaflet-tile-pane { filter: saturate(.55) contrast(.95); }
.venue-map.leaflet-container { background: var(--surface-2); }
.venue-map__pin { background: none; border: 0; }
.venue-map__pin svg { width: 36px; height: 36px; fill: var(--ncl-accent); stroke: var(--ncl-accent-ink); stroke-width: 1.4; filter: drop-shadow(0 2px 4px rgb(0 0 0 / .45)); }
.venue-map__pin circle { fill: var(--ncl-accent-ink); stroke: none; }
.venue-map .leaflet-bar { border: 1px solid var(--ncl-line); border-radius: 10px; overflow: hidden; box-shadow: none; }
.venue-map .leaflet-bar a { background: var(--ncl-surface); color: var(--ncl-text); border-bottom-color: var(--ncl-line); }
.venue-map .leaflet-bar a:hover { background: var(--surface-2); }
.venue-map .leaflet-control-attribution { background: color-mix(in srgb, var(--ncl-surface) 80%, transparent); color: var(--ncl-muted); font-size: 11px; border-top-left-radius: 6px; }
.venue-map .leaflet-control-attribution a { color: inherit; }
/* The venue with a map pin in front (templates/_pin.html.twig) */
.ncl-pin { width: 1.1em; height: 1.1em; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.event-venue { display: flex; gap: .5rem; align-items: flex-start; }
.event-venue .ncl-pin { margin-top: .2em; color: var(--ncl-accent); }
.event-venue__map { font-size: .9rem; }
.event-page__flyer > a { display: block; cursor: zoom-in; }
.event-page__flyer > a img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
/* A picture big in a modal (lightbox_controller.js): as large as the window allows */
.lightbox { max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; padding: 16px; box-sizing: border-box; border: 0; background: transparent; cursor: zoom-out; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(0, 0, 0, .85); }
.lightbox img { display: block; max-width: 100%; max-height: calc(100vh - 32px); width: auto; height: auto; border-radius: var(--radius); box-shadow: 0 16px 48px rgba(0, 0, 0, .5); }
.lightbox__close { position: fixed; top: 12px; right: 12px; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .6); color: #fff; cursor: pointer; }
.lightbox__close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.lightbox__close:focus-visible { outline: 2px solid var(--ncl-accent); outline-offset: 2px; }
.event-facts { display: grid; gap: .6rem; margin: 0 0 1.5rem; }
.event-facts div { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 1rem; }
.event-facts dt { color: var(--muted); font: 500 12px/1.9 var(--ncl-mono); letter-spacing: .1em; text-transform: uppercase; }
.event-facts dd { margin: 0; }
.event-sub { font: 500 12px/1 var(--ncl-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 1.5rem 0 .7rem; }
/* The line-up: one name a line, headliners first */
.event-lineup { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: .3rem; font-size: 1.1rem; font-weight: 600; }
.event-lineup--compact { margin: 0; gap: .15rem; font-size: 1rem; }
.event-lineup a { text-decoration: none; }
.event-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.5rem 0 .8rem; }

.event-form { max-width: 640px; }
.event-form form > div, .event-form fieldset > div, .event-form details > div { margin-bottom: 1rem; }
.event-form fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1rem .2rem; margin: 0 0 1rem; }
.event-form legend { padding: 0 .4rem; color: var(--muted); font-size: .9rem; }
.event-form label { display: block; color: var(--muted); font-size: .9rem; margin-bottom: .3rem; }
.event-form input:not([type=file]), .event-form select, .event-form textarea {
    width: 100%; background: var(--surface); color: var(--text); font: inherit;
    border: 1px solid var(--field-border); border-radius: var(--radius); padding: .5rem .75rem;
}
.event-form textarea { resize: vertical; }
.event-form :is(input, select, textarea):focus { outline: 2px solid var(--ncl-accent); outline-offset: -1px; }
.event-form [id$="_help"] { color: var(--muted); font-size: .82rem; margin-top: .25rem; }
.event-form ul { color: var(--danger); padding-left: 1rem; margin: .3rem 0 0; font-size: .9rem; }
.event-form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 1rem; }
.event-form__row > div { margin-bottom: 1rem; }
.event-form__new-venue summary { cursor: pointer; color: var(--text-soft); margin-bottom: .8rem; }

/* The contact form; .contact-trap is the hidden field only bots fill in */
.contact-form { margin: 2rem auto; }
.contact-form__info { padding: .7rem 1rem; border-radius: var(--radius); background: var(--surface-2); border-left: 3px solid var(--ncl-accent); }
.contact-form__check { min-height: 65px; margin-bottom: 1rem; }
.contact-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* My galleries */
.gallery-head--actions { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.my-gallery-note { margin: .4rem 0 0; }
.photo-drop { display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: 1.6rem 1rem; border: 2px dashed var(--line); border-radius: var(--radius); cursor: pointer; text-align: center; background: var(--surface); }
.photo-drop:hover, .photo-drop.is-over { border-color: var(--ncl-accent); }
.photo-drop__list { align-self: stretch; text-align: left; margin: .8rem 0 0; padding-left: 1.4rem; max-height: 12rem; overflow: auto; font-size: .9rem; color: var(--text-soft); }
.photo-drop__list .is-error { color: var(--danger); }
.my-gallery-photos { margin-top: 2rem; }
.my-gallery-toolbar { position: sticky; top: 64px; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: .6rem 0; background: var(--bg); }
.my-gallery-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.my-gallery-grid li { position: relative; }
.my-gallery-grid .my-gallery-status { grid-column: 1 / -1; font-size: .9rem; color: var(--text-soft); min-height: 1.2em; }
.my-gallery-grid .my-gallery-status:empty { display: none; }
.my-gallery-status.is-error { color: var(--danger); }
.my-gallery-order-help { margin: 0 0 .6rem; }
.my-gallery-handle { position: absolute; top: 6px; right: 6px; z-index: 2; width: 34px; height: 34px; border: 0; border-radius: 8px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 18px; line-height: 1; cursor: grab; touch-action: none; }
.my-gallery-handle:focus-visible { outline: 2px solid var(--ncl-accent); outline-offset: 2px; }
.my-gallery-grid.is-sorting, .my-gallery-grid.is-sorting * { cursor: grabbing; user-select: none; }
.my-gallery-grid .is-dragging { opacity: .55; transform: scale(.96); }
.my-gallery-tile { position: relative; display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--surface-2); cursor: pointer; }
.my-gallery-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.my-gallery-tile input { position: absolute; top: 8px; left: 8px; z-index: 1; width: 20px; height: 20px; accent-color: var(--ncl-accent); }
.my-gallery-tile:has(input:checked) { outline: 3px solid var(--ncl-accent); outline-offset: -3px; }
.my-gallery-tile__badge { position: absolute; bottom: 6px; left: 6px; padding: 2px 8px; border-radius: 999px; background: rgba(0, 0, 0, .65); color: #fff; font-size: .75rem; }
.my-gallery-details { margin-top: 2.5rem; }
.event-form fieldset > div[id$="_access"] { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .55rem .6rem; margin: .3rem 0 1.2rem; }
.event-form fieldset > div[id$="_access"] input { width: 18px; height: 18px; margin: 0; padding: 0; accent-color: var(--ncl-accent); flex: none; }
.event-form fieldset > div[id$="_access"] label { margin: 0; color: var(--text); font-size: 1rem; cursor: pointer; }
.my-gallery-delete { margin: 2.5rem 0 1rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.ncl-btn--danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 50%, transparent); }

/* Search: gallery albums and events found with the mixes */
.search-found__group { margin: 0 0 1.8rem; }
.search-found__albums { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.search-found__mixes { margin: 0 0 .8rem; }
.account-actions { margin: 0 0 1.2rem; }

/* Home: upcoming events as a band of poster cards */
.home-events {
    margin-top: 8px; padding: 44px 0 48px; border-block: 1px solid var(--line);
    background: radial-gradient(120% 140% at 100% 0, color-mix(in srgb, var(--ncl-hot) 14%, transparent), transparent 55%),
                radial-gradient(100% 120% at 0 100%, color-mix(in srgb, var(--ncl-accent) 16%, transparent), transparent 60%), var(--surface);
}
/* Right under the featured mix: its bottom line is enough */
/* Right under the featured mix, or under the header when there is none (guests): one line, not two */
.hero + .home-events, #main > .home-events:first-child { margin-top: 0; border-top: 0; }
.home-events .section-head h2 { font-size: clamp(34px, 4.4vw, 48px); }
.home-events .ncl-eyebrow { color: var(--ncl-hot); }
.home-events__links { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
/* Coming up on the home page: one card, or a card each in a sideways slider (slider_controller.js) */
.home-events .event-next { margin-bottom: 0; }
.event-slider__track { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
.event-slider__track::-webkit-scrollbar { display: none; }
.event-slider__slide { display: grid; scroll-snap-align: start; }
.event-slider__nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 18px; }
.event-slider__nav[hidden] { display: none; }
.ncl-btn.event-slider__step { width: 44px; padding: 0; font-size: 18px; }
.ncl-btn.event-slider__step:disabled { opacity: .35; cursor: default; }
.event-slider__dots { display: flex; gap: 4px; }
.event-slider__dot { width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.event-slider__dot::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--ncl-line); transition: background .15s, width .15s; }
.event-slider__dot[aria-current="true"]::before { width: 22px; border-radius: 5px; background: var(--ncl-accent); }
@media (max-width: 760px) {
    /* The next card peeks in from the right, so it's clear there's more */
    .event-slider__track { grid-auto-columns: calc(100% - 36px); gap: 12px; margin: 0 -16px; padding: 0 16px; scroll-padding-inline: 16px; }
}
@media (prefers-reduced-motion: reduce) { .event-slider__track { scroll-behavior: auto; } }
/* This week in the archive (#6): the events' band, with mixes and albums */
.home-events + .home-week { margin-top: 0; border-top: 0; }
.home-week__heading { display: flex; align-items: baseline; gap: 12px; margin: 22px 0 12px; font-size: 18px; }
.home-week__heading .link-more { margin-left: auto; font-size: 14px; font-weight: 500; }
.home-week__albums { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.home-week__no-events { color: var(--text-soft); font-size: 14px; }
.home-day__date { color: var(--text-soft); font-weight: 400; white-space: nowrap; }
/* On this day (#20): the nights two to a row on a wide screen */
.home-day__events { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.event-date--year b { font-size: 20px; }
.home-day__topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
/* Two to a row: a line over every item, pulled up under the card's edge, so only the lines between rows show
   (li + li would draw one over the top right item too) */
.home-day__events, .home-day__topics { padding-block: 0; overflow: hidden; }
.home-day__events > .event-row, .home-day__topics > li { border-top: 1px solid var(--line); margin-top: -1px; }
.home-events__empty { margin: 0; padding: 28px; border: 1px dashed var(--line); border-radius: var(--ncl-radius); text-align: center; color: var(--text-soft); }
.event-posters { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.event-poster__link { position: relative; display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; border-radius: var(--ncl-radius); overflow: hidden; background: var(--bg); border: 1px solid var(--line); transition: transform .2s, border-color .2s, box-shadow .2s; }
.event-poster__link:hover { transform: translateY(-4px); border-color: var(--ncl-accent); box-shadow: 0 14px 32px rgba(0, 0, 0, .28); }
.event-poster__link:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.event-poster__art { position: relative; display: block; aspect-ratio: 4 / 5; background: var(--surface-2); overflow: hidden; }
.event-poster__art img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.event-poster__link:hover .event-poster__art img { transform: scale(1.04); }
.event-poster__date {
    position: absolute; top: 12px; left: 12px; display: grid; justify-items: center; min-width: 58px; padding: 8px 8px 7px;
    border-radius: 10px; background: var(--ncl-accent); color: var(--ncl-accent-ink); box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
}
.event-poster__date b { font: 850 30px/.9 var(--ncl-display); font-stretch: 80%; }
.event-poster__date span { font: 600 11px/1.4 var(--ncl-mono); text-transform: uppercase; letter-spacing: .08em; }
/* No flyer: the name set large, like a printed poster */
.event-poster--type .event-poster__art {
    background: linear-gradient(160deg, color-mix(in srgb, var(--ncl-accent) 38%, var(--surface-2)), var(--surface-2) 55%, color-mix(in srgb, var(--ncl-hot) 30%, var(--surface-2)));
}
.event-poster__name {
    position: absolute; inset: auto 16px 16px; font: 850 clamp(26px, 2.6vw, 36px)/.92 var(--ncl-display); font-stretch: 75%;
    text-transform: uppercase; color: var(--text); overflow-wrap: anywhere;
    display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden;
}
.event-poster__text { display: grid; gap: 5px; padding: 14px 16px 16px; align-content: start; }
.event-poster__when { color: var(--ncl-hot); font-weight: 600; }
.event-poster__title { font-weight: 700; font-size: 17px; line-height: 1.25; overflow-wrap: anywhere; }
.event-poster__link:hover .event-poster__title { color: var(--accent); }
.event-poster__lineup { color: var(--text-soft); font-size: 14px; line-height: 1.35; }
@media (max-width: 1080px) { .event-posters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Phones: a row to swipe through */
@media (max-width: 560px) {
    .home-events { padding: 32px 0 36px; }
    .event-posters { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; margin: 0 -16px; padding: 0 16px 6px; scrollbar-width: none; }
    .event-posters::-webkit-scrollbar { display: none; }
    .event-poster { flex: 0 0 74%; scroll-snap-align: start; }
    .event-posters:has(> :only-child) .event-poster { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) { .event-poster__link, .event-poster__art img { transition: none; } .event-poster__link:hover { transform: none; } }

/* Playlists (PlaylistController) */
.playlist-new { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.playlist-new input { flex: 1 1 16rem; }
.playlist-new input, .playlist-dialog__new input, .playlist-edit__form input:not([type=radio]), .playlist-edit__form textarea {
    background: var(--surface); color: var(--text); font: inherit;
    border: 1px solid var(--field-border); border-radius: var(--radius); padding: .5rem .75rem;
}
.playlist-new input:focus, .playlist-dialog__new input:focus, .playlist-edit__form input:focus, .playlist-edit__form textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.playlist-edit__form input[type=radio] { accent-color: var(--ncl-accent); }
.playlist-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1.25rem; }
.playlist-card a { display: flex; flex-direction: column; gap: .3rem; color: inherit; text-decoration: none; }
.playlist-card a:hover .playlist-card__title { color: var(--accent); }
.playlist-card__title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.playlist-card .muted { font-size: .85rem; }
.playlist-cover { display: grid; place-items: center; aspect-ratio: 1; width: 100%; overflow: hidden; border-radius: 8px; background: linear-gradient(135deg, #2b4a5c, #0f1f29); color: var(--muted); }
.playlist-cover.is-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.playlist-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.playlist-cover svg { width: 40%; height: 40%; }
.playlist-hero { display: grid; grid-template-columns: minmax(0, 220px) 1fr; gap: 2rem; align-items: end; margin: 1rem 0 2rem; }
.playlist-hero h1 { margin: .2rem 0 .4rem; overflow-wrap: anywhere; }
.playlist-description { max-width: 65ch; }
.playlist-edit { margin: 0 0 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); padding: .6rem 1rem; }
.playlist-edit summary { cursor: pointer; color: var(--muted); }
.playlist-edit__form { display: grid; gap: .8rem; max-width: 34rem; margin: 1rem 0; }
.playlist-edit__form label { display: grid; gap: .3rem; }
.playlist-edit__form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: .3rem; }
.playlist-edit__form legend { margin-bottom: .3rem; }
.playlist-edit .playlist-edit__choice { display: flex; gap: .5rem; align-items: center; }
.playlist-edit__form .button { justify-self: start; }
.playlist-edit form + form { margin-bottom: .6rem; }
.playlist-hint { font-size: .85rem; margin-top: .6rem; }
.playlist-hint.is-error, .playlist-dialog__status.is-error { color: var(--danger); }
@media (max-width: 640px) {
    .playlist-hero { grid-template-columns: 1fr; gap: 1rem; }
    .playlist-hero .playlist-cover { max-width: 200px; }
}
/* The owner's tools on a playlist's rows: a drag handle first, "take out" last */
.track.has-tools { grid-template-columns: 24px 56px minmax(140px, 260px) 1fr auto 36px 36px 36px; }
.track-drag { display: grid; place-items: center; width: 24px; height: 40px; padding: 0; border: 0; background: none; color: var(--muted); cursor: grab; touch-action: none; font-size: 1.1rem; }
.track-drag:hover { color: var(--text); }
.track-drag:focus-visible, .track-remove button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.track.is-dragging { opacity: .6; background: var(--surface); }
.track-remove { margin: 0; }
.track-remove button { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; }
.track-remove button:hover { color: var(--danger); }
.track-remove svg { width: 18px; height: 18px; }
@media (max-width: 640px) {
    /* Room for the title: the length goes (the playlist's total is at the top) */
    .track.has-tools { grid-template-columns: 20px 56px minmax(0, 1fr) 36px 36px 36px; column-gap: .5rem; }
    .track.has-tools .track-length, .track.has-tools .track-resume { display: none; }
}
/* "Save to playlist" */
.playlist-dialog { width: min(420px, calc(100vw - 32px)); max-height: min(80vh, 640px); padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ncl-surface); color: var(--text); box-shadow: 0 16px 48px rgba(0, 0, 0, .45); }
.playlist-dialog[open] { display: flex; flex-direction: column; }
.playlist-dialog::backdrop { background: rgba(0, 0, 0, .55); }
.playlist-dialog__head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .6rem .6rem .6rem 1rem; border-bottom: 1px solid var(--line); }
.playlist-dialog__head h2 { margin: 0; font-size: 1.05rem; }
.playlist-dialog__list { list-style: none; margin: 0; padding: .3rem 0; overflow-y: auto; }
.playlist-dialog__list > li { display: flex; align-items: center; }
.playlist-dialog__list > li.muted { padding: .8rem 1rem; }
.playlist-dialog__item { flex: 1; min-width: 0; display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: .8rem; padding: .6rem 1rem; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.playlist-dialog__item > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.playlist-dialog__item::before { content: ''; box-sizing: border-box; width: 18px; height: 18px; border: 2px solid var(--wave); border-radius: 4px; }
.playlist-dialog__item:not([aria-pressed])::before { content: '+'; border: 0; color: var(--accent); font-weight: 700; line-height: 18px; text-align: center; }
.playlist-dialog__item[aria-pressed="true"]::before { background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; border-color: var(--accent); }
.playlist-dialog__item:hover > span:first-child { color: var(--accent); }
.playlist-dialog__item:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.playlist-dialog__item:disabled { opacity: .6; cursor: progress; }
.playlist-dialog__open { padding: .6rem 1rem; color: var(--muted); font-size: .85rem; }
.playlist-dialog__new { display: flex; gap: .5rem; padding: .8rem 1rem; border-top: 1px solid var(--line); }
.playlist-dialog__new input { flex: 1; min-width: 0; }
.playlist-dialog__status { margin: 0; padding: 0 1rem .8rem; font-size: .9rem; color: var(--muted); }
.playlist-dialog__status:empty { display: none; }
.player.is-popout .player-queue-save { display: none; }

/* Comments and reactions on a mix (templates/archive/_comments.html.twig) */
.mix-comment-strip { position: relative; height: 26px; margin-bottom: 4px; }
.mix-comment-marker {
    position: absolute; top: 0; transform: translateX(-50%); display: grid; place-items: center;
    width: 22px; height: 22px; padding: 0; border: 2px solid var(--ncl-surface); border-radius: 50%;
    background: var(--ncl-slate); color: var(--text); font: 600 10px/1 var(--ncl-sans, inherit); cursor: pointer;
    transition: transform .12s;
}
.mix-comment-marker.is-reaction { background: none; border: 0; font-size: 15px; }
.mix-comment-marker:hover, .mix-comment-marker:focus-visible { transform: translateX(-50%) scale(1.35); z-index: 1; }
.mix-comment-marker:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.mix-comments { max-width: none; margin-top: 0; margin-bottom: 2rem; }
.mix-reaction-counts { display: flex; flex-wrap: wrap; gap: .3rem .9rem; margin: 0 0 1rem !important; font-size: 1.1rem; }
.mix-reaction-counts .muted { font-size: .85rem; }
.mix-comment-form { margin-bottom: 1.5rem; }
.mix-comment-moment { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; margin-bottom: .6rem; }
.mix-comment-moment label { color: var(--muted); font-size: .9rem; }
.mix-comment-moment input { width: 6.5rem; background: var(--surface); color: var(--text); font: inherit; font-variant-numeric: tabular-nums; border: 1px solid var(--field-border); border-radius: var(--radius); padding: .35rem .6rem; }
.mix-comment-moment input:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.mix-comment-now { background: none; border: 1px solid var(--line); border-radius: 999px; padding: .2rem .7rem; color: var(--text); font: inherit; font-size: .85rem; cursor: pointer; }
.mix-comment-now:hover { border-color: var(--accent); color: var(--accent); }
.mix-reactions { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .6rem; }
.mix-reactions button { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); font-size: 1.2rem; cursor: pointer; transition: transform .12s, border-color .12s; }
.mix-reactions button:hover { transform: scale(1.12); border-color: var(--accent); }
.mix-reactions button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mix-comment-time { background: none; border: 0; padding: 0; margin-right: .2rem; color: var(--accent); font: inherit; font-variant-numeric: tabular-nums; cursor: pointer; }
.mix-comment-time:hover { text-decoration: underline; text-underline-offset: 3px; }
.mix-comments li.is-pending, .mix-comments li.is-hidden { opacity: .7; }
.mix-thread .mix-thread-time { color: inherit; text-decoration: none; }
.mix-thread .mix-thread-time:hover { text-decoration: underline; }
.mix-thread-links { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.2rem; margin-top: 1.2rem !important; }
.mix-comment-status { color: var(--warning, #d9a441); }
.mix-my-reactions { display: flex; flex-wrap: wrap; gap: .3rem .8rem; margin: -.8rem 0 1.5rem !important; }
.mix-my-reactions form { display: inline; }
@media (prefers-reduced-motion: reduce) { .mix-comment-marker, .mix-reactions button { transition: none; } }

/* Charts */
.track.has-rank { grid-template-columns: 2.6rem 56px minmax(140px, 260px) 1fr 64px 36px 36px; }
.track.has-rank:has(.track-resume) { grid-template-columns: 2.6rem 56px minmax(140px, 260px) 1fr auto 36px 36px; }
.track-rank { display: flex; flex-direction: column; align-items: center; gap: .1rem; font-variant-numeric: tabular-nums; }
.track-rank__place { font-family: var(--ncl-display); font-size: 1.35rem; font-weight: 700; line-height: 1; }
.track-rank__move { font-size: .72rem; color: var(--muted); white-space: nowrap; }
.track-rank__move [aria-hidden] { margin-right: .1rem; font-size: .6rem; }
.track-rank__move.is-up { color: var(--ncl-accent-text); }
.track-rank__move.is-down { color: var(--ncl-danger); }
.track-rank__move.is-new { color: var(--ncl-hot); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: .62rem; }
.chart-tabs { margin-top: 0; }
@media (max-width: 640px) {
    .track.has-rank, .track.has-rank:has(.track-resume) { grid-template-columns: 2rem 56px 1fr auto 36px 36px; }
    .track.has-rank .track-wave { grid-column: 2 / -1; }
    .track-rank__place { font-size: 1.1rem; }
}
.chart-mini { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .7rem; }
.chart-mini .continue-item { gap: .65rem; }
.chart-mini__place { flex: none; width: 1.6rem; text-align: center; font-family: var(--ncl-display); font-size: 1.25rem; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.chart-mini li:first-child .chart-mini__place { color: var(--accent); }
.track-plays { color: var(--text); }
@media (max-width: 640px) {
    .chart-tabs { flex-wrap: nowrap; overflow-x: auto; gap: 0; scrollbar-width: none; }
    .chart-tabs a { flex: none; padding-inline: .65rem; }
}

/* Likes: how many have it as a favourite, in the heart button */
.heart .heart-count { margin-left: .4rem; font-size: .9rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.heart .heart-count[hidden] { display: none; }
.heart:has(.heart-count) { display: inline-flex; align-items: center; justify-content: center; }
.ncl-btn.button-heart.is-on { color: var(--heart) !important; border-color: var(--heart); }

/* Heroes: the artwork (or an artist's picture), blurred, across the top of the page */
main { overflow-x: clip; }
.mix-hero, .profile { position: relative; isolation: isolate; }
.hero-backdrop {
    position: absolute; z-index: -1; pointer-events: none;
    left: 50%; width: 100vw; transform: translateX(-50%); top: -4rem; bottom: -3rem;
    background: var(--backdrop) center / cover no-repeat;
    filter: blur(60px) saturate(1.4); opacity: .4;
    mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 50%, transparent);
}
:root[data-theme="light"] .hero-backdrop { opacity: .28; }
@media (prefers-reduced-transparency: reduce) { .hero-backdrop { display: none; } }

/* Artist and group pages: banner and links with their service's icon */
.profile-banner { display: block; width: 100%; aspect-ratio: 4 / 1; object-fit: cover; border-radius: var(--radius); background: var(--surface); }
.profile.has-banner { grid-template-columns: minmax(0, 180px) 1fr; margin-top: -4.5rem; padding-inline: 1.5rem; }
.profile.has-banner .profile-picture { border: 4px solid var(--bg); box-sizing: border-box; }
.profile.has-banner .profile-body { padding-top: 5.2rem; }
.chips .profile-link { display: inline-flex; align-items: center; gap: .45rem; }
.profile-link svg { width: 15px; height: 15px; fill: currentColor; flex: none; }
.profile-link img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; flex: none; margin-left: -.2rem; }
@media (max-width: 640px) {
    .profile-banner { aspect-ratio: 3 / 1; }
    .profile.has-banner { margin-top: -3rem; padding-inline: 1rem; }
    .profile.has-banner .profile-picture { max-width: 120px; }
    .profile.has-banner .profile-body { padding-top: 0; }
}

/* Events: going / interested, add to calendar */
.event-plans { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: 0 0 1rem; }
.event-attendance { display: flex; gap: .6rem; margin: 0; }
.ncl-btn.event-attendance__button[aria-pressed="true"] { background: var(--ncl-accent); border-color: var(--ncl-accent); color: var(--ncl-accent-ink) !important; }
.event-attendance__counts { flex-basis: 100%; margin: 0; }
.account-subhead { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 2rem 0 .8rem; font-weight: 500; }
.ncl-btn.event-attendance__button[aria-pressed="true"]::before { content: "✓"; }

/* Bugs and ideas (/bugs) and the changelog */
.issue-intro { margin: .4rem 0 0; max-width: 60ch; }
.issue-filters { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 1rem; margin: 0 0 1rem; }
.issue-filters > span { display: flex; flex-wrap: wrap; gap: 6px; }
.issue-filters .ncl-chip[aria-current="page"] { border-color: var(--ncl-accent); color: var(--text); }
.issue-list { list-style: none; margin: 0; padding: 0; }
.issue-list li { display: grid; grid-template-columns: 4.2rem 1fr auto; gap: .8rem; align-items: start; padding: .85rem 1rem; border-top: 1px solid var(--line); }
.issue-list li:first-child { border-top: 0; }
.issue-list p { margin: .25rem 0 0; }
.issue-list__title { font-weight: 600; color: var(--text); text-decoration: none; }
.issue-list__title:hover { text-decoration: underline; }
.issue-list__type { font: 500 11px/1.8 var(--ncl-mono); letter-spacing: .08em; text-transform: uppercase; text-align: center; border-radius: var(--radius); border: 1px solid var(--line); color: var(--muted); }
.issue-list__type--bug { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 45%, transparent); }
.issue-list__type--idea { color: var(--ncl-accent-text, var(--ncl-accent)); border-color: color-mix(in srgb, var(--ncl-accent) 45%, transparent); }
.issue-list__counts { display: flex; align-items: center; gap: .7rem; white-space: nowrap; }
.issue-list__vote { font: 600 12px/1 var(--ncl-mono); padding: .35rem .55rem; border-radius: var(--radius); border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
.issue-list__vote span { font-weight: 400; margin-left: .15rem; }
.issue-list__vote:hover { color: var(--text); border-color: var(--ncl-accent); }
.issue-list__vote.is-on { color: var(--ncl-accent-text, var(--ncl-accent)); border-color: color-mix(in srgb, var(--ncl-accent) 55%, transparent); background: color-mix(in srgb, var(--ncl-accent) 12%, transparent); }
@media (max-width: 560px) {
    .issue-list li { grid-template-columns: 1fr; gap: .3rem; }
    .issue-list__type { justify-self: start; padding: 0 .5rem; }
}
.issue-status { display: inline-block; padding: 0 .45rem; border-radius: 999px; border: 1px solid var(--line); font-size: .85em; color: var(--text-soft); }
.issue-status--new { border-color: color-mix(in srgb, var(--ncl-accent) 55%, transparent); color: var(--text); }
.issue-status--confirmed { background: color-mix(in srgb, var(--ncl-accent) 14%, transparent); color: var(--text); }
.issue-status--fixed { background: color-mix(in srgb, #2e9d5b 18%, transparent); border-color: color-mix(in srgb, #2e9d5b 55%, transparent); color: var(--text); }
.issue { max-width: 760px; }
.issue__head h1 { margin: .2rem 0 .5rem; }
.issue__body { margin: 1.2rem 0; }
.issue__facts { display: grid; grid-template-columns: auto 1fr; gap: .2rem .8rem; margin: 0 0 1rem; }
.issue__facts dd { margin: 0; overflow-wrap: anywhere; }
.issue__images { display: flex; flex-wrap: wrap; gap: 10px; }
.issue__images img { display: block; max-width: 100%; max-height: 360px; border: 1px solid var(--line); border-radius: var(--radius); }
.issue__images a:only-child img { max-height: 480px; }
.issue-edit-images { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.issue-edit-images img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: .4rem; }
.issue-edit-images .issue-form__check { margin: 0; }
.issue__vote { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin: 1.2rem 0 0; }
.issue-history { max-width: 760px; }
.issue-history__change > div > p { color: var(--text-soft); }
.issue-error { color: var(--danger); font-weight: 600; }
.issue-form__type { display: grid; gap: .4rem; }
.issue-form__type label, .issue-form__check { display: flex !important; align-items: center; gap: .5rem; color: var(--text) !important; font-size: 1rem !important; cursor: pointer; }
.issue-form__type input, .issue-form__check input { width: 18px !important; height: 18px; margin: 0; accent-color: var(--ncl-accent); }
.issue-form__check { margin: 0 0 1.2rem; }
.issue-staff { max-width: 760px; margin: 2.5rem 0 1rem; padding: 1rem 1.2rem; }
.issue-staff h2 { margin: 0 0 1rem; }
.changelog-release { max-width: 760px; padding: 1rem 1.4rem; margin: 0 0 1.2rem; }
.changelog-release h2 { margin: 0 0 .6rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: .6rem; }
.changelog-release h2 time { font-size: .9rem; font-weight: 400; }
.changelog-release h3 { font: 500 12px/1 var(--ncl-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 1.1rem 0 .5rem; }
.changelog-release ul { margin: 0; padding-left: 1.2rem; }
.changelog-release li { margin: .25rem 0; }
.issue__ua { display: inline; } .issue__ua summary { display: inline; cursor: pointer; color: var(--muted); } .issue__ua[open] { display: block; }
.roadmap-section { margin: 0 0 2.2rem; }
.roadmap-releases { list-style: none; margin: 0; padding: 0; }
.roadmap-releases li { padding: .8rem 1rem; border-top: 1px solid var(--line); }
.roadmap-releases li:first-child { border-top: 0; }

/* ---------- the forum inside the site (forum/frame.html.twig) ---------- */
/* As tall as the forum page (forum_frame_controller.js), so the page scrolls as one */
.forum-frame iframe { display: block; width: 100%; height: 100vh; border: 0; background: var(--ncl-ground, transparent); }

/* ---------- the forum's notifications in the header (base.html.twig, notifications/_panel) ---------- */
.ncl-bell > summary.ncl-icon-btn { border-radius: 50%; }
.ncl-bell__panel { width: min(380px, calc(100vw - 24px)); padding: 0; right: -52px; }
.notifications__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.ncl-menu__panel .notifications__read { width: auto; padding: 4px 8px; font-size: 13px; color: var(--ncl-accent-text, var(--ncl-accent)) !important; }
.notifications__list { list-style: none; margin: 0; padding: 4px; max-height: min(60vh, 520px); overflow-y: auto; }
.ncl-menu__panel .notifications__list a { align-items: flex-start; gap: 12px; padding: 10px; }
.notifications__list li.is-unread a { background: color-mix(in srgb, var(--ncl-accent) 10%, transparent); }
.notifications__avatar { width: 36px; height: 36px; font-size: 12px; }
.notifications__text { display: grid; gap: 3px; min-width: 0; font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
.notifications__text .ncl-meta { font-size: 12px; }
.notifications__empty { margin: 0; padding: 16px 14px; }
@media (max-width: 520px) {
    /* Under the header, the screen's width */
    .ncl-bell__panel { position: fixed; left: 12px; right: 12px; top: 64px; width: auto; }
}
.ncl-menu__panel .notifications__all { justify-content: center; border-top: 1px solid var(--line); border-radius: 0; font-size: 14px; color: var(--ncl-accent-text, var(--ncl-accent)) !important; }
/* Push on this device (push_controller.js) */
.notifications__push { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.4; }
.notifications__push-text { flex: 1; margin: 0; color: var(--muted); }
.ncl-menu__panel .notifications__push-text a { display: inline; padding: 0; color: var(--ncl-accent-text, var(--ncl-accent)) !important; }
.ncl-menu__panel .notifications__push-button { flex: none; width: auto; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 600; justify-content: center; }
.ncl-menu__panel .notifications__push-button:hover { border-color: var(--ncl-accent); }

/* Help (/help): the topics down the side, the page beside them; one column on a phone */
.help { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 3rem; align-items: start; }
.help-nav { position: sticky; top: calc(var(--ncl-header-h) + 1.5rem); display: flex; flex-direction: column; gap: .15rem; }
.help-nav a { padding: .5rem .75rem; border-radius: var(--radius); color: var(--muted); text-decoration: none; line-height: 1.3; }
.help-nav a:hover { color: var(--text); background: var(--surface); }
.help-nav a[aria-current="page"] { color: var(--text); background: var(--surface); box-shadow: inset 3px 0 var(--ncl-accent); }
.help-nav__home { font-weight: 600; color: var(--text) !important; }
.help-body { max-width: 46rem; }
.help-body h2 { margin: 2.8rem 0 .6rem; }
.help-body h3 { margin: 1.8rem 0 .4rem; }
.help-body li + li { margin-top: .35rem; }
.help-body kbd { font: 500 .85em var(--ncl-mono); padding: .1em .4em; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; background: var(--surface); }
.help-lead { font-size: 1.1rem; }
.help-note { padding: .8rem 1rem; border-radius: var(--radius); background: var(--surface); border-left: 3px solid var(--ncl-accent); }
.help-shot { margin: 1.2rem 0 1.8rem; }
.help-shot img { display: block; max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.help-shot--phone img { max-width: min(100%, 300px); }
.help-shot figcaption { margin-top: .5rem; color: var(--muted); font-size: .9rem; }
.help-topics { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: .8rem; }
.help-topics a { display: flex; flex-direction: column; gap: .35rem; height: 100%; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); text-decoration: none; }
.help-topics a:hover { border-color: var(--ncl-accent); }
.help-topics span { color: var(--muted); font-size: .95rem; }
.help-more { margin-top: 3rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
@media (max-width: 860px) {
    .help { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
    .help-nav { position: static; flex-direction: row; flex-wrap: wrap; gap: .45rem; }
    .help-nav a { padding: .4rem .85rem; border: 1px solid var(--line); border-radius: 999px; font-size: .92rem; }
    .help-nav a[aria-current="page"] { box-shadow: none; color: var(--ncl-accent-ink); background: var(--ncl-accent); border-color: var(--ncl-accent); }
}
