:root {
  color-scheme: dark;
  --bg: #0b0b0c;
  --bg-elevated: #121214;
  --surface: #17171a;
  --surface-2: #1f1f23;
  --surface-3: #27272c;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f5f7;
  --text-2: #b3b3b8;
  --muted: #7f7f88;
  --accent: #1fd766;
  --accent-strong: #3ee281;
  --accent-soft: rgba(31, 215, 102, 0.14);
  --accent-line: rgba(31, 215, 102, 0.38);
  --accent-ink: #06140b;
  --accent-ink-strong: #07160d;
  --instagram-gradient: linear-gradient(45deg, #feda75 0%, #fa7e1e 28%, #d62976 55%, #962fbf 80%, #4f5bd5 100%);
  --danger: #ff8a80;
  --player-surface: #161618;
  --player-timeline: #363639;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-2: 0 12px 32px rgba(0, 0, 0, 0.45);
  --shadow-3: 0 24px 64px rgba(0, 0, 0, 0.6);
  --radius-s: 8px;
  --radius-m: 12px;
  --radius-l: 16px;
  --sidebar: 248px;
  --topbar: 72px;
  --gutter: 40px;
  --control-h: 42px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --fs-xs: 11px;
  --fs-sm: 12px;
  --fs-base: 14px;
  --fs-md: 15px;
  --fs-lg: 17px;
  --fs-xl: 22px;
  font-family:
    "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  font-size: var(--fs-base);
  font-optical-sizing: auto;
  font-feature-settings: "cv11", "ss01", "calt";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1,
h2,
h3,
strong {
  font-weight: 650;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
p {
  text-wrap: pretty;
}
time,
small,
.tabular {
  font-variant-numeric: tabular-nums;
}
* {
  box-sizing: border-box;
}
html {
  scrollbar-color: #3a3a40 transparent;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100dvh;
}
button,
input,
select,
summary {
  font: inherit;
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
a,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
button,
summary {
  cursor: pointer;
}
button {
  background: none;
  border: 0;
  padding: 0;
}
:where(button, a, input, select, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-s);
}
/* Close button for every panel and dialog (web/close-button.mjs, 18 XI 2026):
   a 44 px touch target with an always visible 32 px circle, so the cross reads
   as a button on touch screens too. Placement stays with each component. */
.close-button { position: relative; display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--text-2); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.close-button::before { content: ''; position: absolute; inset: 6px; border-radius: 50%; background: rgb(255 255 255 / 8%); transition: background-color 150ms ease; }
.close-button svg { position: relative; display: block; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; transition: color 150ms ease; }
@media (hover: hover) {
  .close-button:hover { color: var(--text); }
  .close-button:hover::before { background: rgb(255 255 255 / 14%); }
}
.close-button:active::before { background: rgb(255 255 255 / 18%); }
button.close-button:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; border-radius: 50%; }
/* Also suppress Safari's native ring on programmatically focused headings.
   Keyboard input immediately restores the normal focus-visible styles. */
:root[data-focus-input="pointer"] :focus,
:root[data-focus-input="pointer"] .card:has(h3 a:focus-visible) {
  outline: none !important;
}
img {
  display: block;
  max-width: 100%;
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.sprite {
  display: none;
}
.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}
.muted {
  color: var(--muted);
}
.skip {
  position: fixed;
  top: -60px;
  left: 20px;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 14px;
  border-radius: var(--radius-s);
  font-weight: 600;
  z-index: 60;
}
.skip:focus {
  top: 12px;
}

/* Compact navigation to the full player on its album page. */
.persistent-player { position: relative; display: grid; grid-template-columns: var(--player-cover, 40px) minmax(0, 1fr) auto; gap: 7px 8px; margin: 12px 0 4px; padding: 10px 6px 10px 10px; background: var(--player-surface); border: 1px solid var(--line); border-radius: 10px; flex: 0 0 auto; min-width: 0; }
.persistent-player[hidden] { display: none; }
.persistent-player-artwork-wrap { position: relative; grid-column: 1; grid-row: 1; width: var(--player-cover, 40px); height: var(--player-cover, 40px); }
.persistent-player-artwork { display: block; width: var(--player-cover, 40px); height: var(--player-cover, 40px); }
/* Title and artist sit high beside the cover (16 XI 2026), clear of the timeline below. */
.persistent-player-album { grid-column: 2; grid-row: 1; align-self: start; padding-top: 2px; min-width: 0; }
.persistent-player-cover { width: var(--player-cover, 40px); height: var(--player-cover, 40px); object-fit: cover; border-radius: 6px; flex: 0 0 auto; }
.persistent-player-meta { display: grid; gap: 1px; min-width: 0; }
.persistent-player-title { font-size: 11px; line-height: 1.2; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.persistent-player-artist { min-width: 0; font-size: 9px; line-height: 14px; color: var(--muted); white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.persistent-player-artist-row { display: flex; align-items: center; gap: 6px; min-width: 0; }
.persistent-player-artist-row .persistent-player-artist { flex: 1 1 auto; }
/* The window waits for ▶ (variant B, 17 XI 2026): a chip, not an extra row. */
.persistent-player-in-window { display: inline-flex; align-items: center; gap: 4px; justify-self: start; margin-top: 3px; padding: 2px 8px 2px 6px; border-radius: 999px; font-size: 10px; line-height: 14px; font-weight: 500; color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.persistent-player-in-window[hidden] { display: none; }
/* Album track (16 XI 2026, variant C): the album as a small label over the track
   title and a larger cover on a computer; on a phone the album follows the artist. */
.persistent-player-label { font-size: 8px; line-height: 12px; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.persistent-player-label[hidden] { display: none; }
@media (max-width: 700px), (pointer: coarse) and (max-width: 1024px) { .persistent-player-label { display: none; } }
@media (min-width: 701px) and (not (pointer: coarse)), (min-width: 1025px) {
  /* 46 px cover; the gap only clears the Spotify badge (4 px past the cover). */
  .persistent-player[data-album-track="on"] { --player-cover: 46px; column-gap: 6px; }
  .persistent-player[data-album-track="on"] .persistent-player-album { align-self: center; padding-top: 0; }
  /* The miniplayer and the navigation rows span the sidebar up to 8 px from its
     edges (16 XI 2026): their text stays in place, and the counters, the genre
     settings and the player's ▶/✕ share one column on the right. */
  .sidebar { --sidebar-bleed: 8px; }
  .sidebar .persistent-player,
  .sidebar .primary-nav > :is(a, button, .singles-nav-row),
  .sidebar .genre-navigation nav > a { margin-inline: calc(-1 * var(--sidebar-bleed)); }
  .sidebar .primary-nav > :is(a, button),
  .sidebar .singles-nav-row .singles-sidebar-link,
  .sidebar .genre-navigation nav > a { padding-left: calc(12px + var(--sidebar-bleed)); }
  .sidebar .genre-nav-heading { margin-right: calc(12px - var(--sidebar-bleed)); }
  /* The favourites counter is as wide as ▶ (32 px) and sits on its centre line,
     whatever the number of digits. */
  .sidebar .primary-nav small { min-width: 32px; padding: 0 5px; margin-right: -5px; }
  .persistent-player[data-album-track="on"] .persistent-player-title { -webkit-line-clamp: 1; }
}
/* The narrow sidebar (≤ 1150 px) has 12 px padding. */
@media (min-width: 701px) and (max-width: 1150px) and (not (pointer: coarse)), (min-width: 1025px) and (max-width: 1150px) {
  .sidebar { --sidebar-bleed: 4px; }
}
.persistent-player-controls { grid-column: 3; grid-row: 1; display: flex; align-items: center; min-width: 0; }
.persistent-player-provider { position: absolute; right: -4px; bottom: -3px; z-index: 2; display: grid; place-items: center; padding: 2px; border-radius: 50%; background: var(--player-surface); }
.persistent-player-provider:focus-visible, .service-icon:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.player-activity { visibility: hidden; color: var(--accent); width: 14px; height: 14px; flex: 0 0 auto; }
.player-service-logo { width: 18px; height: 18px; object-fit: contain; flex: 0 0 auto; }
.persistent-player[data-playback="playing"] .player-activity { visibility: visible; }
@media (min-width: 701px) and (pointer: fine), (min-width: 1025px) {
  .persistent-player { column-gap: 4px; }
  .persistent-player:not([data-playback="playing"]) .player-activity { display: none; }
}
.persistent-player-timeline progress { display: block; appearance: none; width: 100%; height: 3px; border: 0; border-radius: 4px; background: var(--player-timeline); overflow: hidden; accent-color: var(--accent); }
.persistent-player-timeline progress::-webkit-progress-bar { background: var(--player-timeline); }
.persistent-player-timeline progress::-webkit-progress-value { background: var(--accent); }
.persistent-player-timeline progress::-moz-progress-bar { background: var(--accent); }
.persistent-player-timeline { grid-column: 1 / -1; grid-row: 2; margin-right: 34px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 6px; color: var(--muted); font-size: 9px; line-height: 1; font-variant-numeric: tabular-nums; }
.persistent-player-timeline[hidden] { display: none; }
.persistent-player-failure { grid-column: 1 / -1; grid-row: 2; display: flex; align-items: center; justify-content: flex-start; flex-wrap: wrap; gap: 4px; width: 100%; max-width: 100%; padding: 2px 0; color: var(--muted); font-size: 10px; line-height: 1.35; }
.persistent-player-failure[hidden] { display: none; }
.persistent-player-gesture { grid-column: 1 / -1; grid-row: 2; pointer-events: none; margin: 0; padding: 2px 0; color: var(--text-2); font-size: 11px; line-height: 1.35; }
.persistent-player-gesture[hidden] { display: none; }
.persistent-player-failure > span { flex: 1 0 100%; min-width: 0; }
.persistent-player-failure button, .persistent-player-failure a { display: inline-flex; align-items: center; min-height: 32px; padding: 4px 7px; border: 0; border-radius: 6px; color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; }
.persistent-player-failure button { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.persistent-player-failure a { background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: var(--text-2); }
.persistent-player-failure button:hover { background: color-mix(in srgb, var(--accent) 20%, transparent); }
.persistent-player-failure a:hover { background: rgba(255, 255, 255, 0.04); color: var(--text); }
.persistent-player:has(.persistent-player-failure:not([hidden])) .persistent-player-timeline { grid-row: 3; }
.persistent-player:has(.persistent-player-failure:not([hidden])) .persistent-player-close { grid-row: 3; align-self: end; }
.persistent-player-timeline progress { grid-column: 2; grid-row: 1; }
.persistent-player-timeline > div { display: contents; }
.player-elapsed { grid-column: 1; grid-row: 1; }
.player-duration { grid-column: 3; grid-row: 1; }
.persistent-player-close { display: grid; place-items: center; background: none; border: 0; color: var(--muted); width: 28px; height: 36px; cursor: pointer; font-size: 20px; flex: 0 0 auto; }
.persistent-player .persistent-player-close { grid-column: 3; grid-row: 2; justify-self: center; width: 28px; height: 24px; margin-block: -4px; padding: 0; place-items: center; line-height: 1; }
.persistent-player .persistent-player-close[hidden] { display: none; }
.persistent-player[data-service="spotify"]:has(.persistent-player-timeline[hidden]) { grid-template-columns: var(--player-cover, 40px) minmax(0, 1fr) auto auto; }
.persistent-player[data-service="spotify"]:has(.persistent-player-timeline[hidden]) .persistent-player-close { grid-column: 4; grid-row: 1; align-self: center; }
.persistent-player[data-service="bandcamp"] { grid-template-columns: var(--player-cover, 40px) minmax(0, 1fr) auto auto; column-gap: 6px; }
.persistent-player[data-service="bandcamp"] .persistent-player-close { grid-column: 4; grid-row: 1; align-self: center; width: 20px; transform: translateX(-8px); }
.persistent-player-return { display: none; color: var(--accent); width: 32px; height: 32px; place-items: center; font-size: 22px; }
.persistent-player-hint { grid-column: 1 / -1; grid-row: 3; display: grid; grid-template-columns: minmax(0, 1fr) 28px; padding-top: 4px; margin: 0 0 -6px; border-top: 1px solid var(--line); font-size: 10px; line-height: 1.4; }
.persistent-player:has(.persistent-player-timeline[hidden]) .persistent-player-hint { grid-row: 2; }
.persistent-player-hint[hidden] { display: none; }
.persistent-player:has(.persistent-player-hint:not([hidden])) .persistent-player-close { justify-self: end; }
.persistent-player-hint > span { grid-column: 1; color: var(--text-2); }
.persistent-player-hint > a { grid-column: 1; display: inline-flex; align-items: center; min-height: 24px; color: var(--accent); font-weight: 600; }
.persistent-player-hint > button { grid-column: 2; grid-row: 1 / 3; align-self: center; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.persistent-player-hint > button:hover { color: var(--text); }
.persistent-player-hint > button:focus-visible, .persistent-player-hint > a:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-radius: 3px; }
.persistent-player[data-service="bandcamp"] .persistent-player-return { display: grid; }
.persistent-player[data-service="bandcamp"] .player-activity { display: none; }
.persistent-player-play { display: grid; place-items: center; background: #eee; border: 0; border-radius: 50%; color: #111; width: 32px; height: 32px; padding: 0; flex: 0 0 auto; cursor: pointer; }
.persistent-player-play[hidden] { display: none; }
.persistent-player :is(.persistent-player-prev, .persistent-player-next) { display: grid; place-items: center; width: 24px; height: 32px; padding: 0; flex: 0 0 auto; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; }
.persistent-player :is(.persistent-player-prev, .persistent-player-next):hover { color: var(--accent); }
.persistent-player :is(.persistent-player-prev, .persistent-player-next)[hidden] { display: none; }
.persistent-player .persistent-player-window { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; flex: 0 0 auto; border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; }
.persistent-player .persistent-player-window:hover { color: var(--accent); }
.persistent-player .persistent-player-window[hidden] { display: none; }
/* ⧉ belongs to the desktop layout only; elsewhere ✕ keeps its place. */
@media (not ((min-width: 701px) and (pointer: fine))) and (max-width: 1024px) { .persistent-player .persistent-player-window { display: none; } }
/* Desktop with the singles queue: play beside the title, previous and next
   around the progress bar, ✕ where it always is (decision 15 XI 2026) or ⧉ in
   its place (16 XI 2026). */
@media (min-width: 701px) and (pointer: fine), (min-width: 1025px) {
  .persistent-player[data-queue="on"],
  .persistent-player[data-queue="on"][data-service="spotify"]:has(.persistent-player-timeline[hidden]) { grid-template-columns: var(--player-cover, 40px) minmax(0, 1fr) auto; }
  .persistent-player[data-queue="on"] .persistent-player-controls { display: contents; }
  .persistent-player[data-queue="on"] .persistent-player-play { grid-column: 3; grid-row: 1; align-self: center; }
  .persistent-player[data-queue="on"] :is(.persistent-player-prev, .persistent-player-next) { grid-row: 2; align-self: center; height: 24px; margin-block: -4px; }
  .persistent-player[data-queue="on"] .persistent-player-prev { grid-column: 1; justify-self: start; }
  .persistent-player[data-queue="on"] .persistent-player-next { grid-column: 2; justify-self: end; }
  /* "Słuchaj w okienku" (singles, 16 XI 2026): ⧉ takes the place of ✕, which is
     hidden there (user decision 16 XI 2026: pause is enough, the right side was
     crowded). Without the window (other browsers, albums) ✕ stays. */
  .persistent-player[data-queue="on"] .persistent-player-window { grid-column: 3; grid-row: 2; justify-self: center; align-self: center; height: 24px; margin-block: -4px; }
  .persistent-player[data-queue="on"]:has(.persistent-player-window:not([hidden])) .persistent-player-close { display: none; }
  .persistent-player[data-queue="on"] .persistent-player-timeline { grid-column: 1 / 3; margin: 0 28px 0 28px; }
  .persistent-player[data-queue="on"][data-service="spotify"]:has(.persistent-player-timeline[hidden]) .persistent-player-close { grid-column: 3; grid-row: 2; }
  .persistent-player[data-queue="on"]:has(.persistent-player-failure:not([hidden])) :is(.persistent-player-prev, .persistent-player-next, .persistent-player-window) { grid-row: 3; }
  /* While a track loads the timeline is hidden; the hint must not take the
     prev/next row, so in queue mode it always sits below it. */
  .persistent-player[data-queue="on"]:has(.persistent-player-hint) .persistent-player-hint { grid-row: 3; }
  .persistent-player[data-queue="on"]:has(.persistent-player-failure:not([hidden])) .persistent-player-hint { grid-row: 4; }
  .persistent-player[data-gesture="on"][data-queue="on"] :is(.persistent-player-prev, .persistent-player-next) { grid-row: 3; }
  .persistent-player[data-gesture="on"][data-queue="on"][data-service="spotify"]:has(.persistent-player-timeline[hidden]) .persistent-player-close { grid-row: 3; }
}
/* The tap hint ("Dotknij ▶, aby odtworzyć.") owns row 2; the progress bar,
   close and queue buttons move below it instead of sharing it (15 XI 2026). */
.persistent-player[data-gesture="on"] .persistent-player-gesture { grid-row: 2; }
.persistent-player[data-gesture="on"] :is(.persistent-player-timeline, .persistent-player-close) { grid-row: 3; }
.persistent-player[data-gesture="on"] .persistent-player-close { justify-self: end; }
.player-levels, .player-pause-symbol { display: none; }
.persistent-player:is([data-playback="playing"], [data-playback="buffering"]) .player-play-symbol { display: none; }
.persistent-player:is([data-playback="playing"], [data-playback="buffering"]) .player-levels { display: block; }
.persistent-player:is([data-playback="playing"], [data-playback="buffering"]) .player-pause-symbol { display: block; }
.persistent-player[data-playback="playing"] .player-levels rect { transform-box: fill-box; transform-origin: center bottom; animation: player-level .85s ease-in-out infinite alternate; }
.persistent-player[data-playback="playing"] .player-levels rect:nth-child(2) { animation-delay: -.4s; }
.persistent-player[data-playback="playing"] .player-levels rect:nth-child(3) { animation-delay: -.65s; }
@keyframes player-level { from { transform: scaleY(.3); } to { transform: scaleY(1); } }
.play-badge[data-playback="loading"]::after,
.play-badge[data-playback="buffering"]::after { content: ""; display: block; width: 22px; height: 22px; box-sizing: border-box; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: playback-spinner .7s linear infinite; }
.persistent-player:is([data-playback="loading"], [data-playback="buffering"]) .persistent-player-play::after,
.persistent-player-play:is([data-playback="loading"], [data-playback="buffering"])::after { content: ""; display: block; width: 20px; height: 20px; box-sizing: border-box; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: playback-spinner .7s linear infinite; }
.play-badge[data-playback="loading"] :is(.icon, .card-playback-pause, .player-open-icon),
.play-badge[data-playback="buffering"] :is(.icon, .card-playback-pause, .player-open-icon),
.persistent-player:is([data-playback="loading"], [data-playback="buffering"]) .persistent-player-play svg,
.persistent-player-play:is([data-playback="loading"], [data-playback="buffering"]) svg { display: none; }
.card .play-badge:is([data-playback="loading"], [data-playback="buffering"]) { opacity: 1; transform: none; }
@keyframes playback-spinner { to { transform: rotate(1turn); } }
@media (prefers-reduced-motion: reduce) {
  .persistent-player[data-playback="playing"] .player-levels rect { animation: none; }
  .play-badge[data-playback="loading"]::after,
  .play-badge[data-playback="buffering"]::after,
  .persistent-player:is([data-playback="loading"], [data-playback="buffering"]) .persistent-player-play::after,
  .persistent-player-play:is([data-playback="loading"], [data-playback="buffering"])::after { animation: none; }
}
.persistent-player-full { width: 600px; z-index: 5; }
.persistent-player-host iframe { display: block; width: 100%; border: 0; border-radius: 12px; }
/* A slow Spotify start shows its error but keeps loading: display:none would
   stop Spotify's lazy iframe in Chromium, so clip it to a rendered pixel. A
   parked (inert) player is already invisible; clipping it as well would leave
   no visible area for the lazy load. */
.persistent-player-full:not([inert]) > .persistent-player-host.is-recovering { height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.persistent-player-full .playback-help { margin-top: 12px; }
.player-slot { width: 100%; }
.listening-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.player-switch { cursor: pointer; background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 8px 13px; min-height: 44px; color: var(--muted); font: inherit; font-size: 13px; }
.player-switch:hover { color: var(--text); border-color: var(--accent); }
.player-switch.is-active { color: var(--accent-strong); border-color: var(--accent); background: rgba(31, 215, 102, .08); }
.player-switch:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.listening-actions[hidden], .listening-actions [hidden] { display: none; }
.media-choices { display: grid; gap: 14px; margin-bottom: 20px; min-width: 0; }
.media-service-row { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--line); }
.media-service { position: relative; border: 0; border-radius: 0; min-height: 46px; padding: 10px 18px; font-size: 15px; font-weight: 600; }
.media-service.is-active { color: var(--text); background: transparent; }
.media-service.is-active::after { content: ''; position: absolute; bottom: -1px; left: 14px; right: 14px; height: 2px; border-radius: 2px; background: var(--accent); }
.media-service:hover { color: var(--text); background: var(--surface); }
.media-item-picker { min-width: 0; }
.media-item-kind { color: var(--muted); font-weight: 400; }
.media-item-row { display: flex; flex-wrap: wrap; gap: 6px; }
.media-item { min-height: 44px; max-width: 100%; padding: 9px 14px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--muted); font: inherit; font-size: 14px; text-align: left; overflow-wrap: anywhere; cursor: pointer; }
.media-item:hover { color: var(--text); background: var(--surface); }
.media-item.is-active { color: var(--text); background: var(--surface-2); border-color: var(--line); }
.media-item:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.youtube-videos { display: grid; gap: 24px; }
.youtube-videos[hidden] { display: none; }
.youtube-video { min-width: 0; }
.edition .youtube-video iframe { display: block; width: 100%; max-width: calc(100dvh * 16 / 9); margin-inline: 0; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 12px; background: #000; }
@media (min-width: 701px) and (pointer: fine), (min-width: 1025px) {
  #content:has(.album-columns.youtube-active) { padding-bottom: 16px; }
  .album-columns.youtube-active .edition { margin-bottom: 0; }
}
.youtube-consent { margin: 0; }

/* Sidebar ---------------------------------------------------------------- */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar);
  padding: 28px 16px 20px;
  background: var(--bg);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  overflow: auto;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 12px;
  margin-bottom: 26px;
  border-radius: var(--radius-s);
}
.brand-mark {
  display: block;
  width: 40px;
  height: 44px;
  flex: 0 0 auto;
}
/* Logotyp łamany z krzywych Geist (viewBox 5293 × 1889, krój 22 px). */
.brand-name {
  display: block;
  flex: 0 0 auto;
  width: 116.4px;
  height: 41.6px;
  color: var(--text);
}
.brand-domain {
  font-size: 0.8em;
  letter-spacing: 0;
}
/* Instagram brand mark: gradient masked by the glyph, so it also renders in cloned menus. */
.instagram-mark { display: inline-block; flex: 0 0 auto; width: 16px; height: 16px; background: var(--instagram-gradient); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Crect x='3.5' y='3.5' width='17' height='17' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Ccircle cx='17.2' cy='6.8' r='1.1' fill='%23000' stroke='none'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Crect x='3.5' y='3.5' width='17' height='17' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Ccircle cx='17.2' cy='6.8' r='1.1' fill='%23000' stroke='none'/%3E%3C/svg%3E") center / contain no-repeat; }
.primary-nav,
.genre-navigation nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.primary-nav :is(a, button),
.genre-navigation a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 8px 12px;
  border-radius: var(--radius-s);
  font-size: var(--fs-base);
  font-weight: 500;
  color: var(--text-2);
  transition:
    background 0.15s var(--ease),
    color 0.15s var(--ease);
}
.primary-nav :is(a, button):hover,
.genre-navigation a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}
.primary-nav a[aria-current="page"],
.genre-navigation a[aria-current="true"] {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}
.primary-nav a[aria-current="page"] .icon {
  color: var(--accent);
}
.singles-nav-row { position: relative; }
.singles-nav-row .singles-sidebar-link { padding-right: 52px; }
.primary-nav .singles-archive-link {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  justify-content: center;
  width: 34px;
  min-height: 34px;
  height: 34px;
  padding: 0;
  gap: 0;
  border-radius: 6px;
  color: var(--muted);
}
.primary-nav .singles-archive-link:hover { background: rgba(255, 255, 255, 0.08); color: var(--text); }
.primary-nav .singles-archive-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.primary-nav .singles-archive-link .icon { width: 18px; height: 18px; }
/* Visible label of the icon-only link: at once on hover or keyboard focus. */
.singles-archive-link[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 5;
  padding: 5px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--text);
  font-size: var(--fs-xs);
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.12s var(--ease);
}
.singles-archive-link:is(:hover, :focus-visible)::after { opacity: 1; }
/* The icon shows with the row (hover) or keyboard focus; touch keeps it visible. */
@media (hover: hover) {
  .primary-nav .singles-archive-link { opacity: 0; transition: opacity 0.12s var(--ease); }
  .singles-nav-row:is(:hover, :focus-within) .singles-archive-link { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .singles-archive-link[data-tooltip]::after, .primary-nav .singles-archive-link { transition: none; }
}
#mobile-genres { display: none; }
.recent-nav-short { display: none; }
#mobile-genres.active-filter .icon { color: var(--accent); }
.primary-nav small {
  margin-left: auto;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: var(--fs-xs);
  font-weight: 600;
  display: inline-grid;
  place-items: center;
}
.primary-nav a[aria-current="page"] small {
  background: var(--accent-soft);
  color: var(--accent-strong);
}
.nav-caption {
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 12px 12px 8px;
}
.genre-navigation a {
  min-height: 38px;
  font-size: var(--fs-base);
}
.genre-nav-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 8px 12px 4px; }
.sidebar:has(.persistent-player:not([hidden])) .genre-nav-heading { margin-top: 0; }
.genre-nav-heading .nav-caption { margin: 0; }
/* Align the 32px hit area with the centre of the 22px favourites badge. */
#sidebar-genres { display: grid; place-items: center; width: 32px; height: 32px; margin-right: -5px; padding: 0; color: var(--muted); background: transparent; }
#sidebar-genres:hover { color: var(--text); }
#sidebar-genres:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 3px; border-radius: 4px; }
.genre-navigation a::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.35;
  margin: 0 4px;
}
.genre-navigation a[aria-current="true"]::before {
  background: var(--accent);
  opacity: 1;
}
.sidebar-note {
  margin-top: auto;
  padding: 18px 12px 0;
  flex: 0 0 auto;
  min-width: 0;
  font-size: var(--fs-sm);
  color: var(--muted);
}
.freshness {
  margin: 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: var(--fs-xs);
}
.freshness .pulse { margin-top: 5px; }
#freshness { display: grid; gap: 3px; min-width: 0; line-height: 1.5; }
.freshness-label { font-size: 11px; }
.freshness-datetime { display: flex; flex-wrap: wrap; gap: 0 6px; font-variant-numeric: tabular-nums; }
.freshness-datetime span { white-space: nowrap; }
.sidebar-info { display: grid; gap: 2px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.sidebar-info a, .sidebar-info button { display: flex; align-items: center; gap: 8px; padding: 5px 0; color: var(--muted); font: inherit; font-size: 12px; line-height: 1.5; text-decoration: none; }
.sidebar-info .icon { width: 16px; height: 16px; stroke-width: 1.6; }
/* Instagram as a brand-outlined pill (decision 17 XI 2026): dark fill, Instagram gradient border and glyph. */
.sidebar-info .info-instagram, .mobile-instagram { border: 1.5px solid transparent; border-radius: 999px; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--instagram-gradient) border-box; color: var(--text); font-weight: 600; text-decoration: none; }
.sidebar-info .info-instagram:hover, .mobile-instagram:hover { background: linear-gradient(var(--surface-2), var(--surface-2)) padding-box, var(--instagram-gradient) border-box; color: var(--text); text-decoration: none; }
.sidebar-info .info-instagram { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 1px 10px; align-content: center; align-items: center; min-width: 0; min-height: 48px; margin: 0 -8px 10px; padding: 5px 14px 5px 12px; font-size: 13px; line-height: 1.3; }
.sidebar-info .info-instagram .instagram-mark { grid-row: 1 / span 2; width: 22px; height: 22px; }
.info-instagram-handle { display: none; }
.sidebar-info .info-instagram-handle { display: block; overflow: hidden; color: var(--muted); font-size: 11px; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-info button { width: 100%; border: 0; background: transparent; text-align: left; cursor: pointer; }
.sidebar-info a:hover, .sidebar-info button:hover { color: var(--text); text-decoration: underline; }
.sidebar-info a:focus-visible, .sidebar-info button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
.account-information { display: none; }
.account-menu .account-discover { display:flex; align-items:center; min-height:44px; color:var(--text); }
.account-menu .account-discover[aria-current="page"] { background:var(--accent-soft); }
.account-menu-login .account-discover { padding-top:12px; border-top:1px solid var(--line-strong); border-radius:0; }
.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  flex: 0 0 auto;
}

/* Topbar ----------------------------------------------------------------- */
.workspace {
  margin-left: var(--sidebar);
  min-height: 100dvh;
}
.workspace:has(#album-page:not([hidden])) .topbar { position: relative; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 15;
  height: var(--topbar);
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(11, 11, 12, 0.78);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--line);
}
#account-open {margin-left:auto; flex:none; position:relative; display:grid; place-items:center; width:44px; height:44px; border:1px solid var(--line); border-radius:50%; background:var(--surface); color:var(--muted); cursor:pointer;}
#account-open[hidden] {display:none;}
#account-open.is-signed-in {color:var(--accent);}
#account-open .account-photo {position:absolute; inset:3px; width:36px; height:36px; object-fit:cover; border-radius:50%;}
#account-open.has-photo > .icon {visibility:hidden;}
#account-open[data-pending="true"]::after {content:''; position:absolute; right:1px; top:1px; width:7px; height:7px; border-radius:50%; background:#edc977;}
.account-menu {position:fixed; z-index:150; box-sizing:border-box; width:max-content; min-width:min(240px, calc(100vw - 24px)); max-width:min(300px, calc(100vw - 24px)); padding:8px; border:1px solid var(--line); border-radius:16px; background:var(--surface); color:var(--text); overflow:auto; box-shadow:0 12px 40px #0008;}
.account-menu[hidden] {display:none;}
.account-menu>div {display:grid; gap:4px;}
.account-menu .account-action {justify-content:flex-start; gap:12px; border-color:transparent; background:transparent;}
.account-menu .account-action .icon {width:20px; height:20px; flex:none; color:var(--muted);}
.account-menu .account-action:hover {background:var(--surface-2);}
.account-menu .account-menu-logout {color:var(--danger); border-top:1px solid var(--line); border-radius:0 0 8px 8px; margin-top:4px; padding-top:12px;}
.account-menu .account-menu-logout .icon {color:inherit;}
.account-menu p {margin:6px 10px; line-height:1.5;}
.account-menu .account-message:empty {display:none;}
.account-menu .account-email {margin:0; min-width:0; overflow-wrap:anywhere; font-size:13px; font-weight:600;}
.account-menu-avatar {position:relative; display:grid; place-items:center; width:48px; height:48px; flex:none; border-radius:50%; background:var(--surface-2); color:var(--muted);}
.account-menu-avatar .account-photo {position:absolute; inset:0; width:48px; height:48px; object-fit:cover; border-radius:50%;}
.account-menu-avatar.has-photo > .icon {visibility:hidden;}
.account-settings-header {display:flex; align-items:center; gap:20px; max-width:760px; margin:auto; padding:24px;}
.account-settings-header>a {color:var(--text); text-decoration:none; font-weight:600;}
.account-settings-main {max-width:760px; margin:0 0 48px; padding:0;}
.account-settings-main h1 {font-size:clamp(28px,5vw,42px); letter-spacing:-1px; margin-bottom:8px;}
.account-settings-main {max-width:640px;}
.account-settings-main h1 {margin-bottom:20px;}
.account-settings-profile {display:grid; gap:14px; margin-bottom:28px;}
.account-profile-head {display:flex; align-items:center; gap:14px; min-width:0;}
.account-profile-text {flex:1; min-width:0; display:grid; gap:2px;}
.account-settings-profile .account-profile-title {margin:0; font-size:var(--fs-md); font-weight:600; color:var(--text); overflow-wrap:anywhere;}
.account-settings-profile p {margin:0; line-height:1.55;}
.account-settings-profile .account-hint {font-size:13px; color:var(--muted);}
.account-settings-avatar,.account-settings-avatar .account-photo {width:48px; height:48px;}
.account-settings-avatar {background:linear-gradient(135deg, #2a6b45, #1b3a2a); color:var(--accent-strong);}
.account-settings-profile .account-status {flex:none;}
.account-settings-profile .account-google,.account-settings-profile .account-action {justify-self:start; max-width:100%; box-sizing:border-box;}
.account-settings-section {display:grid; gap:8px; margin-bottom:22px;}
.account-settings-section .account-group-title {margin:0 0 0 4px; font-size:var(--fs-xs); font-weight:600; letter-spacing:1.6px; text-transform:uppercase; color:var(--muted);}
.account-rows {border:1px solid var(--line); border-radius:var(--radius-l); background:var(--surface); overflow:hidden;}
.account-settings-section[data-tone="danger"] .account-rows {border-color:rgba(255, 138, 128, 0.25);}
.account-row {display:flex; align-items:center; gap:14px; min-height:44px; padding:14px 16px; color:inherit; text-decoration:none;}
.account-row + .account-row {border-top:1px solid var(--line);}
a.account-row:hover {background:var(--surface-2);}
a.account-row:hover .account-row-hint {color:var(--text-2);}
a.account-row:focus-visible {outline:2px solid var(--accent-strong); outline-offset:-2px; border-radius:var(--radius-l);}
.account-row-icon {display:grid; place-items:center; width:36px; height:36px; flex:none; border-radius:10px; background:var(--surface-3); color:var(--text-2);}
.account-row-icon .icon {width:18px; height:18px;}
.account-settings-profile + .account-settings-section .account-row:first-child .account-row-icon {background:var(--accent-soft); color:var(--accent-strong);}
.account-row-danger .account-row-icon {background:rgba(255, 138, 128, 0.12); color:var(--danger);}
.account-row-text {flex:1; min-width:0; display:grid; gap:2px;}
.account-row-title {margin:0; font-size:var(--fs-md); font-weight:600; color:var(--text);}
.account-row-danger .account-row-title {color:#f3a6a6;}
.account-row-hint {margin:0; font-size:13px; line-height:1.5; color:var(--muted); overflow-wrap:anywhere;}
.account-row-chevron {width:18px; height:18px; flex:none; color:var(--muted);}
.account-row .account-action,.account-row .account-danger {flex:none; min-width:96px; min-height:44px; padding:10px 14px; border-color:var(--line-strong); background:transparent; font-size:var(--fs-base);}
.account-row .account-action:hover:not(:disabled) {background:var(--surface-2);}
.account-row .account-danger {border-color:rgba(255, 138, 128, 0.35);}
.account-row .account-action:focus-visible,.account-row .account-danger:focus-visible {outline:2px solid var(--accent-strong); outline-offset:2px;}
/* Phone-only texts and marks (the short hint, the favourites number, the chevron of a nav row). */
#account-settings .account-narrow {display:none;}
.account-row-value {flex:none; color:var(--muted); font-size:14px; font-variant-numeric:tabular-nums;}
.account-group-note {margin:0 4px; font-size:12px; line-height:1.5; color:var(--muted);}
.account-settings-section .account-message:not(:empty),.account-settings-profile .account-message:not(:empty) {margin:4px 4px 0; padding-top:0; border-top:0;}
/* Clears the sticky header when focus returns to the logout warning after a confirmation. */
#account-settings .account-logout-warning {scroll-margin-top:88px;}
/* Confirmation modal, layout B (17 XI 2026): header band, account card, lost/kept list, footer. */
.account-confirm-dialog {position:fixed; inset:0; display:flex; flex-direction:column; width:min(500px, calc(100vw - 32px)); max-height:calc(100dvh - 32px); margin:auto; padding:0; border:1px solid var(--line-strong); border-radius:18px; background:#151719; color:var(--text); box-shadow:0 32px 120px #0009; overflow:hidden; box-sizing:border-box;}
.account-confirm-dialog:not([open]) {display:none;}
.account-confirm-dialog::backdrop {background:#030605b8; backdrop-filter:blur(5px);}
.account-confirm-head {flex:none; display:flex; align-items:center; gap:14px; padding:20px 24px; border-bottom:1px solid rgba(255, 138, 128, 0.2); background:linear-gradient(180deg, rgba(198, 47, 40, 0.18), rgba(198, 47, 40, 0.06));}
.account-confirm-dialog[data-tone="default"] .account-confirm-head {border-bottom-color:var(--line); background:linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent);}
.account-confirm-mark {display:grid; place-items:center; flex:none; width:40px; height:40px; border-radius:12px; background:rgba(255, 138, 128, 0.16); color:var(--danger);}
.account-confirm-dialog[data-tone="default"] .account-confirm-mark {background:var(--surface-3); color:var(--text-2);}
.account-confirm-mark .icon {width:20px; height:20px;}
.account-confirm-head-text {min-width:0;}
.account-confirm-eyebrow {margin:0 0 2px; font-size:var(--fs-xs); font-weight:600; letter-spacing:1.6px; text-transform:uppercase; color:#f3a6a6;}
.account-confirm-dialog[data-tone="default"] .account-confirm-eyebrow {color:var(--text-2);}
.account-confirm-dialog h2 {margin:0; font-size:19px; line-height:1.3; letter-spacing:-.3px;}
.account-confirm-body {flex:1 1 auto; min-height:0; overflow:auto; display:grid; align-content:start; gap:16px; padding:20px 24px;}
.account-confirm-account {display:flex; align-items:center; gap:12px; padding:12px 14px; border:1px solid var(--line); border-radius:14px; background:var(--surface);}
.account-confirm-avatar {display:grid; place-items:center; flex:none; width:36px; height:36px; border-radius:50%; background:linear-gradient(135deg, #2a6b45, #1b3a2a); color:var(--accent-strong); font-weight:700;}
.account-confirm-who {flex:1; min-width:0; display:grid;}
.account-confirm-who strong {font-weight:600; overflow-wrap:anywhere;}
.account-confirm-who span {color:var(--muted); font-size:13px;}
.account-confirm-badge {display:inline-flex; align-items:center; gap:5px; flex:none; padding:3px 9px; border-radius:999px; background:var(--accent-soft); color:var(--accent-strong); font-size:12px; white-space:nowrap;}
.account-confirm-badge .icon {width:13px; height:13px;}
.account-confirm-description,.account-confirm-note {margin:0; color:var(--text-2); font-size:14px; line-height:1.55; overflow-wrap:anywhere;}
.account-confirm-note {color:var(--muted); font-size:13px;}
.account-confirm-list {display:grid; gap:10px; margin:0; padding:0; list-style:none; color:var(--text-2); font-size:14px; line-height:1.5;}
.account-confirm-list li {display:flex; align-items:flex-start; gap:10px; overflow-wrap:anywhere;}
.account-confirm-list .icon {width:18px; height:18px; flex:none; margin-top:1px;}
.account-confirm-list .is-lost .icon {color:var(--danger);}
.account-confirm-list .is-kept .icon {color:var(--accent-strong);}
.account-confirm-ack {display:flex; align-items:flex-start; gap:10px; color:var(--text); font-size:14px; line-height:1.5; cursor:pointer;}
.account-confirm-ack input {flex:none; width:20px; height:20px; margin:1px 0 0; accent-color:#e5534b; cursor:pointer;}
.account-confirm-refusal {flex:none; margin:0; color:#ffb4ab; font-size:13px; line-height:1.5;}
.account-confirm-refusal:not(:empty) {padding:12px 24px; border-top:1px solid var(--line);}
.account-confirm-actions {flex:none; display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:10px; padding:14px 24px; border-top:1px solid var(--line); background:#121315;}
.account-confirm-actions button {display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:44px; padding:10px 18px; border-radius:999px; font:inherit; font-size:var(--fs-base); font-weight:600; white-space:nowrap; cursor:pointer;}
.account-confirm-actions .account-confirm-secondary {margin-right:auto; padding-left:4px; border:0; background:transparent; color:var(--text-2); font-weight:500;}
.account-confirm-secondary .icon {width:16px; height:16px;}
.account-confirm-actions .account-confirm-secondary:hover:not(:disabled) {color:var(--text);}
.account-confirm-cancel {border:1px solid var(--line-strong); background:transparent; color:var(--text);}
.account-confirm-cancel:hover:not(:disabled) {background:var(--surface-2);}
.account-confirm-danger {border:1px solid transparent; background:#c62f28; color:#fff;}
.account-confirm-danger:hover:not(:disabled) {background:#b42a24;}
.account-confirm-primary {border:1px solid transparent; background:var(--text); color:#111;}
.account-confirm-primary:hover:not(:disabled) {background:#fff;}
.account-confirm-actions button:disabled {opacity:.45; cursor:not-allowed;}
.account-confirm-dialog[aria-busy="true"] .account-confirm-actions button:disabled {cursor:wait;}
.account-confirm-body:focus-visible {outline:2px solid var(--accent-strong); outline-offset:-3px;}
.account-confirm-dialog button:focus-visible,.account-confirm-ack input:focus-visible {outline:2px solid var(--accent-strong); outline-offset:3px;}
/* Phone in landscape: thinner header and footer bands leave the content most of the height. */
@media (max-height: 500px) {
  .account-confirm-dialog {max-height:calc(100dvh - 16px);}
  .account-confirm-head {gap:12px; padding:12px 24px;}
  .account-confirm-mark {width:32px; height:32px; border-radius:10px;}
  .account-confirm-mark .icon {width:17px; height:17px;}
  .account-confirm-dialog h2 {font-size:17px;}
  .account-confirm-body {gap:12px; padding:14px 24px;}
  .account-confirm-refusal:not(:empty) {padding:10px 24px;}
  .account-confirm-actions {padding:10px 24px max(10px, env(safe-area-inset-bottom));}
  .account-confirm-actions button {min-height:40px;}
}
/* Very short screens: the whole dialog scrolls, so fixed bands never squeeze the content out. */
@media (max-height: 340px) {
  .account-confirm-dialog[open] {display:block; overflow:auto;}
  .account-confirm-body {overflow:visible;}
}
@media (max-width: 480px) {
  /* Settings on phones (decision 17 XI 2026): a centred profile and one-line rows like a system
     settings list. Actions stay small buttons in the row; navigation rows are tappable whole. */
  #account-settings .account-wide {display:none;}
  #account-settings span.account-narrow {display:inline;}
  #account-settings p.account-narrow,#account-settings svg.account-narrow {display:block;}
  .account-settings-main h1 {margin-bottom:16px;}
  .account-settings-profile {gap:12px; margin-bottom:24px;}
  .account-profile-head {flex-direction:column; gap:4px; text-align:center;}
  .account-profile-text {justify-items:center; width:100%;}
  .account-settings-profile .account-profile-title {font-size:16px; line-height:1.3;}
  .account-settings-avatar,.account-settings-avatar .account-photo {width:60px; height:60px;}
  .account-settings-avatar {margin-bottom:6px; font-size:23px;}
  .account-settings-avatar .icon {width:28px; height:28px;}
  .account-settings-profile .account-status {margin-top:6px; justify-self:center;}
  .account-login-mark {margin-bottom:6px;}
  .account-settings-profile > .account-hint,#account-settings .account-login-privacy {text-align:center;}
  .account-settings-profile > .account-google,.account-settings-profile > .account-action {justify-self:stretch;}
  .account-settings-section {gap:7px; margin-bottom:18px;}
  .account-row {gap:12px; min-height:56px; padding:9px 12px; box-sizing:border-box;}
  .account-row-icon {width:32px; height:32px; border-radius:9px;}
  .account-row-icon .icon {width:16px; height:16px;}
  .account-row-text {gap:1px;}
  .account-row-title {font-size:15px; line-height:1.3;}
  .account-row-hint {font-size:12.5px; line-height:1.4;}
  .account-row-chevron {width:16px; height:16px;}
  /* A pill keeps a 44 px touch area through an invisible margin around it. */
  .account-row .account-action,.account-row .account-danger {position:relative; min-width:0; min-height:36px; padding:7px 14px; border-radius:999px; font-size:13.5px; font-weight:600; white-space:nowrap;}
  .account-row .account-action::after,.account-row .account-danger::after {content:''; position:absolute; inset:-4px -4px;}
  .account-row .account-danger {color:#f3a6a6;}
  /* The players row: its button covers the whole row (the label stays for assistive tech). */
  .account-row-nav {position:relative;}
  .account-row-nav > .account-action {position:absolute; inset:0; width:100%; min-height:0; padding:0; border:0; border-radius:0; background:transparent; color:transparent; font-size:0;}
  .account-row-nav > .account-action::after {content:none;}
  /* The cover stays see-through in every state; the row itself shows hover and press. */
  .account-row-nav > .account-action:is(:hover,:active,:focus):not(:disabled) {background:transparent;}
  .account-row-nav:hover,.account-row-nav:active {background:var(--surface-2);}
  .account-row-nav > .account-action:focus-visible {outline-offset:-2px; border-radius:var(--radius-l);}
  /* Bottom sheet: header and actions stay put, the body scrolls on short screens. */
  .account-confirm-dialog {inset:auto 0 0; width:100%; max-width:100%; max-height:calc(100dvh - 12px); margin:0; border-radius:20px 20px 0 0; border-bottom:0;}
  .account-confirm-head {padding:18px 20px;}
  .account-confirm-body {padding:18px 20px;}
  .account-confirm-refusal:not(:empty) {padding:12px 20px;}
  /* Labels never break: two actions share a line while both fit whole, otherwise each takes
     its own full-width line (Cancel first, the action below). */
  .account-confirm-actions {padding:12px 20px max(16px, env(safe-area-inset-bottom));}
  .account-confirm-actions button {flex:1 1 0; min-width:max-content; padding-left:16px; padding-right:16px; white-space:nowrap; text-align:center;}
  .account-confirm-actions .account-confirm-secondary {flex-basis:100%; justify-content:flex-start; min-height:40px;}
  .account-confirm-account {flex-wrap:wrap; row-gap:8px;}
  .account-confirm-who {flex-basis:calc(100% - 48px);}
  .account-confirm-badge {margin-left:48px;}
}
/* Small phones: denser settings rows. */
@media (max-width: 360px) {
  .account-row {gap:10px; padding:9px 10px;}
  .account-row-title {font-size:14px;}
  .account-row-hint {font-size:12px;}
  .account-row .account-action,.account-row .account-danger {padding:6px 11px; font-size:13px;}
  .account-row-nav > .account-action {padding:0; font-size:0;}
}
/* Below any real phone width (QA at 240 px) a label longer than the screen may wrap instead of overflowing. */
@media (max-width: 300px) {
  .account-confirm-actions button {flex-basis:100%; min-width:0; white-space:normal;}
}
.account-action,.account-google,.account-danger {display:flex; align-items:center; justify-content:center; min-height:44px; padding:10px 14px; border:1px solid var(--line); border-radius:10px; background:var(--surface-2); color:var(--text); font:inherit; text-align:center; text-decoration:none; cursor:pointer;}
.account-google {gap:10px; padding:10px 12px; background:#fff; border-color:#747775; color:#1f1f1f; font-size:14px; font-weight:500; line-height:20px;}
.account-google img {width:20px; height:20px; object-fit:contain; flex:none;}
.account-google:hover:not(:disabled) {background:#f2f2f2;}
.account-menu-login {width:360px; max-width:calc(100vw - 24px); padding:24px; border-color:var(--line-strong); border-radius:20px;}
.account-menu-login>div {gap:16px;}
.account-login-header {display:flex; align-items:center; justify-content:space-between;}
.account-login-mark {display:grid; place-items:center; width:44px; height:44px; border-radius:14px; background:var(--accent-soft); color:var(--accent-strong);}
.account-login-mark .icon {width:24px; height:24px;}
.account-login-title {margin:0; color:var(--text); font-size:28px; line-height:1.15; letter-spacing:-.6px; font-weight:650; white-space:pre-line;}
.account-menu .account-login-description {margin:0; color:var(--text-2); font-size:14px; line-height:1.5;}
.account-menu .account-login-privacy,.account-settings-profile .account-login-privacy {margin:0; color:var(--text-2); font-size:13px; line-height:1.65; text-align:left;}
.account-menu .account-login-privacy {padding-top:16px; border-top:1px solid var(--line-strong);}
.account-login-privacy a {color:var(--accent-strong); text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:3px;}
.account-login-privacy a:hover {color:var(--text); text-decoration-thickness:2px;}
.account-login-privacy a:focus-visible,.account-google:focus-visible {outline:2px solid var(--accent-strong); outline-offset:4px; border-radius:3px;}
.account-menu-login .account-google {width:100%; min-height:48px;}
.account-menu-profile {width:320px; max-width:calc(100vw - 24px); padding:12px; border-color:var(--line-strong); border-radius:16px;}
.account-menu-profile .account-login-header {gap:12px; padding:4px 4px 14px; margin-bottom:6px; border-bottom:1px solid var(--line);}
.account-menu-profile .account-menu-avatar,.account-menu-profile .account-menu-avatar .account-photo {width:40px; height:40px;}
.account-profile-name {min-width:0; flex:1;}
.account-menu-profile .account-login-title {font-size:16px; line-height:1.3; letter-spacing:0;}
.account-menu-profile .account-email {color:var(--text-2); font-size:12px; font-weight:400;}
.account-menu-profile .account-action {width:100%; min-height:44px; padding:10px 12px; border-color:transparent; border-radius:8px; background:transparent;}
.account-menu-profile .account-action:hover {background:var(--surface-2);}
.account-menu-profile .account-menu-logout {margin-top:6px; padding-top:14px; border-top:1px solid var(--line); border-radius:0 0 8px 8px;}
.account-login-privacy a {text-underline-offset:3px;}
.account-danger {color:#f3a6a6; background:transparent;}
.account-menu button:disabled,.account-settings-main button:disabled {opacity:.55; cursor:wait;}
.account-hint,.account-privacy {font-size:12px; color:var(--muted);}
.account-privacy {justify-self:center; padding:10px;}
.account-login-alternative {font-size:12px; color:var(--muted);}
.account-login-alternative summary {cursor:pointer; padding:8px 0;}
.account-login-alternative[open] {display:grid; gap:10px;}
.account-email {overflow-wrap:anywhere; font-weight:600;}
.account-sync-status {color:var(--muted); font-size:13px;}
.account-status {display:inline-flex; align-items:center; gap:7px; justify-self:start; padding:5px 10px; border-radius:999px; font-size:12px; font-weight:500; line-height:1.4; color:#71dda0; background:#71dda010;}
.account-status::before {content:''; width:6px; height:6px; border-radius:50%; background:currentColor; flex:none;}
.account-status[data-tone="waiting"] {color:#a9bfdc; background:#a9bfdc10;}
.account-status[data-tone="warning"] {color:#efc575; background:#efc57512;}
.account-message:not(:empty) {margin-top:16px; padding-top:16px; border-top:1px solid var(--line); font-size:13px; color:var(--muted);}
.account-strip {display:flex; align-items:center; justify-content:space-between; gap:16px; padding:12px 0; margin-bottom:16px; border-bottom:1px solid var(--line); color:var(--muted); font-size:13px;}
.account-strip[hidden], #listing:not([data-account-favorites]) .account-strip {display:none;}
.account-text-button {background:none; border:0; color:var(--accent); padding:8px 0; min-height:44px; flex:none; cursor:pointer; font:inherit;}
.account-callback {max-width:500px; margin:10vh auto; padding:24px;}
@media(max-width:600px) {
  .account-strip {align-items:flex-start; flex-direction:column; gap:0;}
  .accounts-enabled .topbar {display:flex; gap:10px; height:auto;}
  .accounts-enabled #search {flex:1 1 0; min-width:0; width:auto;}
  .accounts-enabled #account-open {margin-left:0; flex:0 0 44px;}
}
.mobile-brand {
  display: none;
}
#search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(520px, 100%);
  height: var(--control-h);
  padding: 0 12px 0 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  /* One text cursor over the whole pill, not an arrow on its icon and padding. */
  cursor: text;
  transition:
    border-color 0.15s var(--ease),
    background 0.15s var(--ease),
    box-shadow 0.15s var(--ease);
}
#search:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
}
#search:focus-within {
  border-color: var(--line-strong);
  background: var(--surface-2);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
  color: var(--text-2);
}
#query {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  padding: 0;
  font-size: var(--fs-base);
  color: var(--text);
  caret-color: var(--accent);
}
#query:focus {
  outline: none;
}
#query::placeholder {
  color: var(--muted);
  /* A small gap, so the caret at the start never touches the first letter. */
  padding-left: 3px;
  transition: opacity 0.15s var(--ease);
}
/* The caret starts on the first letter of the placeholder; dimming the hint
   while typing keeps the accent caret from reading as part of the text. */
#query:focus::placeholder {
  opacity: 0.45;
}
#query::-webkit-search-cancel-button {
  -webkit-appearance: none;
  display: none;
}
/* An entered phrase narrows the list like a filter: the same quiet accent as
   active filters marks the field, and a clear button replaces the tiny native X. */
#search:has(#query:not(:placeholder-shown)) {
  border-color: var(--accent-line);
}
#search:has(#query:not(:placeholder-shown)) > .icon {
  color: var(--accent);
}
#search:has(#query:not(:placeholder-shown)) .search-hint,
#search:has(#query:placeholder-shown) .search-clear {
  display: none;
}
.search-clear {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-right: -4px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-2);
  cursor: pointer;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.search-clear::before {
  content: "";
  position: absolute;
  inset: -9px;
}
.search-clear .icon {
  width: 14px;
  height: 14px;
}
.search-clear:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text);
}
.search-clear:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.search-hint {
  font-family: inherit;
  font-size: var(--fs-xs);
  color: var(--muted);
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  min-width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
}
#search:focus-within .search-hint {
  display: none;
}

.search-suggestions {
  position: fixed;
  z-index: 25;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  box-shadow: var(--shadow-3);
  color: var(--text);
}
.search-suggestions[hidden] { display: none; }
.search-suggestions-heading { display:flex; align-items:center; justify-content:space-between; padding:4px 12px 4px 16px; color:var(--text-2); font-size:12px; flex-shrink:0; }
.search-suggestions-group { padding:10px 16px 4px; color:var(--muted); font-size:11px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; }
.search-suggestions-dismiss { display:grid; place-items:center; width:40px; height:40px; padding:0; border:0; background:transparent; color:var(--text-2); cursor:pointer; }
.search-suggestions-list { overflow-y:auto; overscroll-behavior:contain; min-height:0; }
.search-suggestion { display:flex; align-items:center; gap:12px; padding:11px 14px; min-height:82px; border-left:3px solid transparent; color:inherit; text-decoration:none; }
.search-suggestion:hover, .search-suggestion[aria-selected="true"] { background:var(--surface-2); border-left-color:var(--accent); }
.search-suggestion .art { flex:none; width:48px; height:48px; border-radius:6px; overflow:hidden; }
.search-suggestion .art img { width:100%; height:100%; object-fit:cover; }
.search-suggestion > .icon { flex:none; width:16px; height:16px; color:var(--text-2); }
.search-suggestion-text { display:flex; flex-direction:column; min-width:0; flex:1; gap:3px; }
.search-suggestion-title, .search-suggestion-artist { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.search-suggestion-title { font-size:15px; font-weight:650; }
.search-suggestion-artist { font-size:13px; color:var(--text-2); }
.search-suggestion-meta { font-size:11px; color:var(--text-2); }
.search-suggestion-meta.is-announced { color:var(--text-2); }
.search-suggestions-all { flex-shrink:0; border:0; border-top:1px solid var(--line); border-radius:0; background:var(--surface); padding:15px 16px; text-align:left; font:inherit; font-size:14px; color:var(--accent); cursor:pointer; }
.search-suggestions-all:hover { background:var(--surface-2); }
.search-suggestions-help { flex-shrink:0; padding:9px 16px; font-size:11px; color:var(--text-2); }
.search-suggestions-empty { margin:0; padding:16px; font-size:14px; line-height:1.6; color:var(--text-2); overflow-y:auto; }
@media (max-width:700px), (pointer:coarse) {
  .search-suggestions-help { display:none; }
  .search-suggestion { padding:10px; gap:10px; }
  .search-suggestion-title { font-size:14px; }
}

/* Page heading ----------------------------------------------------------- */
#content {
  padding: 32px var(--gutter) 24px;
  max-width: 2100px;
  margin: auto;
  outline: none;
}
#listing { scroll-margin-top: calc(var(--topbar) + 16px); }
.mobile-format-nav, .mobile-instagram { display:none; }
.singles-heading { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:16px; }
.singles-heading > div { flex:1 1 330px; }
/* Filled Spotify-green playlist button with a black logo (user decision 17 XI 2026). */
.singles-open { display:inline-flex; flex:none; align-items:center; justify-content:center; gap:10px; padding:12px 22px 12px 16px; border-radius:999px; background:var(--accent); color:var(--accent-ink); font-size:14px; font-weight:700; }
.singles-open img { display:block; width:20px; height:20px; filter:brightness(0); }
.singles-open:hover { background:var(--accent-strong); color:var(--accent-ink); }
.singles-footnote { margin:20px 0 0; color:var(--text-2); font-size:13px; }
.singles-footnote a { color:var(--text); text-decoration:underline; text-underline-offset:3px; }
/* Singles list and monthly archive (decision 15 XI 2026), shared by built HTML and the app. */
.singles-featured { margin:4px 0 8px; }
.singles-featured h2 { margin:0 0 12px; font-size:var(--fs-xl); }
/* Featured cards, variant B like the album sliders (user decision 15 XI 2026): a
   square cover with the label, logos and play, then a band in the cover's own dark
   colour (--tint from export-web, neutral without it): title, artists and type. */
.singles-cards { display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:16px; margin:0; padding:0; list-style:none; }
/* Five or six cards (user decision 16 XI 2026): the album slider's track, arrows and
   peeking card instead of the grid; four or fewer keep the row. */
.singles-cards.is-slider { display:flex; gap:16px; width:100%; overflow-x:auto; scroll-snap-type:x mandatory; overscroll-behavior-x:contain; scrollbar-width:none; padding-bottom:12px; }
.singles-cards.is-slider::-webkit-scrollbar { display:none; }
.singles-cards.is-slider .singles-card { flex:0 0 64%; scroll-snap-align:start; }
.singles-card { --tint:#343942; position:relative; isolation:isolate; display:flex; flex-direction:column; min-width:0; overflow:hidden; border:1px solid var(--line); border-radius:var(--radius-l); background:linear-gradient(180deg, color-mix(in srgb, var(--tint) 85%, #000), color-mix(in srgb, var(--tint) 60%, #000)); }
.singles-card-cover { position:relative; display:block; aspect-ratio:1; overflow:hidden; background:var(--surface-2); }
.singles-card-art { position:absolute; inset:0; display:grid; place-items:center; color:var(--muted); }
.singles-card-art img { position:absolute; inset:0; display:block; width:100%; height:100%; object-fit:cover; }
.singles-card-art .icon { width:44px; height:44px; }
.singles-card-label { position:absolute; top:10px; left:10px; padding:3px 8px; border-radius:999px; background:var(--accent); color:var(--accent-ink); font-size:10px; font-weight:800; letter-spacing:.08em; line-height:1.4; text-transform:uppercase; white-space:nowrap; max-width:calc(100% - 62px); overflow:hidden; text-overflow:ellipsis; }
/* Room for one or two logos (32 px each, 6 px apart) at the top right, like .cover-genres. */
.singles-card-cover:has(.singles-card-services > :nth-child(2)) .singles-card-label { max-width:calc(100% - 100px); }
.singles-card.is-collaboration .singles-card-label { background:rgb(0 0 0 / .6); color:#fff; }
.singles-card-services { position:absolute; top:8px; right:8px; display:flex; gap:6px; }
.singles-card-services > a { display:grid; place-items:center; width:32px; height:32px; border-radius:50%; background:rgb(0 0 0 / .5); backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px); }
.singles-card-services > a:hover { background:rgb(0 0 0 / .72); }
.singles-card-services > a:focus-visible { outline:2px solid var(--accent); outline-offset:1px; }
.singles-card-services img { display:block; }
.singles-card-services .singles-card-yt img { width:18px; height:13px; }
.singles-card-body { display:grid; grid-template-columns:minmax(0, 1fr); padding:9px 12px 11px; text-shadow:0 1px 2px rgb(0 0 0 / .35); }
.singles-card-title, .singles-card-artists, .singles-card-note { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.singles-card-title { color:#fff; font-size:15px; font-weight:700; line-height:1.3; }
.singles-card-byline { display:flex; align-items:baseline; justify-content:space-between; gap:8px; min-width:0; }
.singles-card-artists { min-width:0; color:rgb(255 255 255 / .8); font-size:13px; line-height:1.35; }
.singles-card-type { flex:none; color:rgb(255 255 255 / .7); font-size:12px; white-space:nowrap; }
.singles-card-note { margin-top:1px; color:rgb(255 255 255 / .7); font-size:11.5px; line-height:1.3; }
.singles-list { margin-top:28px; }
.singles-month { margin-top:8px; }
.singles-list-head { display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:4px 16px; margin-bottom:6px; }
.singles-list-head h2, .singles-archive h2 { margin:0; font-size:var(--fs-xl); }
.singles-list-head p, .singles-month-count, .singles-crumbs { margin:0; color:var(--muted); font-size:13px; }
.singles-crumbs { margin-bottom:6px; }
.singles-crumbs a { color:var(--text-2); text-decoration:underline; text-underline-offset:3px; }
.singles-month-nav { margin:10px 0 14px; }
.singles-month-nav ul { display:flex; gap:8px; margin:0; padding:2px; list-style:none; overflow-x:auto; scrollbar-width:none; }
.singles-month-nav ul::-webkit-scrollbar { display:none; }
.singles-month-nav a { display:flex; align-items:center; min-height:36px; padding:0 14px; border:1px solid var(--line-strong); border-radius:999px; color:var(--text-2); font-size:13px; font-weight:600; white-space:nowrap; }
.singles-month-nav a:hover { color:var(--text); background:rgba(255,255,255,.05); }
.singles-month-nav a[aria-current="page"] { background:var(--accent-soft); border-color:transparent; color:var(--accent-strong); }
.singles-month-nav a:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
@media (max-width: 900px) { .singles-month-nav a { min-height:44px; } }
.singles-week { margin-top:22px; }
.singles-week > h2, .singles-week > h3 { margin:0 0 6px; color:var(--text-2); font-size:12px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; }
.singles-week > h2 span, .singles-week > h3 span { margin-left:8px; color:var(--muted); font-weight:500; letter-spacing:0; text-transform:none; }
.singles-rows { margin:0; padding:0; list-style:none; }
/* Tracklist (variant A) with release-list day headings (variant B), 15 XI 2026. */
.singles-day-heading { display:flex; align-items:baseline; gap:10px; margin:0; padding:16px 0 8px; color:var(--text-2); font-size:var(--fs-base); font-weight:500; white-space:nowrap; }
.singles-day-heading time { display:flex; align-items:baseline; gap:10px; min-width:0; }
.singles-day-heading strong { color:var(--text); font-size:32px; line-height:1; font-weight:750; letter-spacing:-0.04em; font-variant-numeric:tabular-nums; }
.singles-day-heading .weekday { color:var(--muted); }
.singles-day-heading .weekday::before { content:"· "; }
.singles-day-heading small { margin-left:auto; color:var(--muted); font-size:var(--fs-sm); }
.singles-row { display:grid; grid-template-columns:28px minmax(0,1fr) auto auto; align-items:center; gap:14px; padding:6px 10px; border-radius:8px; }
.has-thumbs .singles-row { grid-template-columns:28px 40px minmax(0,1fr) auto auto; }
@media (hover: hover) { .singles-row:hover { background:var(--surface); } }
.singles-row:has(.singles-play) { cursor:pointer; }
.singles-index { display:grid; place-items:center; color:var(--muted); font-size:13px; font-variant-numeric:tabular-nums; }
.singles-index > span:first-child { grid-area:1 / 1; }
.singles-eq { grid-area:1 / 1; display:none; align-items:flex-end; gap:2px; height:12px; }
.singles-eq i { width:3px; height:6px; border-radius:1px; background:var(--accent); }
.singles-row.is-current .singles-index > span:first-child { visibility:hidden; }
.singles-row.is-current .singles-eq { display:inline-flex; }
.singles-row.is-playing .singles-eq i { animation:player-level .85s ease-in-out infinite alternate; transform-origin:bottom; height:12px; }
.singles-row.is-playing .singles-eq i:nth-child(2) { animation-delay:-.4s; }
.singles-row.is-playing .singles-eq i:nth-child(3) { animation-delay:-.65s; }
@media (prefers-reduced-motion: reduce) { .singles-row.is-playing .singles-eq i { animation:none; } }
.singles-hint { grid-column:-3; min-width:0; }
.singles-links { grid-column:-2; display:flex; justify-content:flex-end; gap:2px; }
/* Official video under its row (decision 15 XI 2026). */
.singles-yt, .singles-card-yt { position:relative; display:grid; place-items:center; width:36px; height:36px; border-radius:50%; }
.singles-yt img, .singles-card-yt img { display:block; width:22px; height:16px; }
.singles-yt:hover, .singles-card-yt:hover { background:var(--surface-2); }
:is(.singles-yt, .singles-card-yt):focus-visible { outline:2px solid var(--accent); outline-offset:1px; }
:is(.singles-yt, .singles-card-yt)[aria-expanded="true"] { background:var(--surface-3); }
:is(.singles-yt, .singles-card-yt)[aria-expanded="true"]::after { content:""; position:absolute; bottom:0; width:14px; height:2px; border-radius:2px; background:#ff0033; }
.singles-row.has-video-open { background:var(--surface); border-radius:8px 8px 0 0; }
.singles-video { margin:0 0 6px; padding:0 10px 12px; border-radius:0 0 10px 10px; background:var(--surface); list-style:none; }
.singles-video-media { min-width:0; }
.singles-video.singles-video-card { --tint:#343942; margin:16px 0 4px; padding:12px; border:1px solid var(--line); border-radius:var(--radius-l); background:linear-gradient(180deg, color-mix(in srgb, var(--tint) 85%, #000), color-mix(in srgb, var(--tint) 60%, #000)); }
.singles-video-card .singles-video-kind { color:var(--text-2); }
.singles-video-card .singles-video-bar { padding:12px 2px 0; }
/* The green ring means only "in the player" (16 XI 2026); an open clip is named in its bar. */
.singles-video .youtube-video iframe { display:block; width:100%; max-width:calc(70vh * 16 / 9); margin-inline:auto; aspect-ratio:16 / 9; height:auto; border:0; border-radius:8px; background:#000; }
.singles-video .youtube-consent { display:flex; flex-wrap:wrap; justify-content:center; gap:8px; padding:28px 16px; border-radius:8px; background:var(--bg); text-align:center; }
.singles-video .youtube-consent p { flex:1 0 100%; max-width:460px; margin:0 auto 6px; color:var(--text-2); }
.singles-video .youtube-consent button:not(.youtube-allow) { margin:0; padding:8px 16px; border:0; border-radius:999px; background:transparent; box-shadow:inset 0 0 0 1px var(--line-strong); color:var(--text-2); font:inherit; cursor:pointer; }
.singles-video .youtube-allow { padding:8px 16px; border:0; border-radius:999px; background:#fff; color:#111; font:inherit; font-weight:700; cursor:pointer; }
.singles-video .youtube-allow:hover { background:#e6e6e6; }
.singles-video-bar { display:flex; flex-wrap:wrap; align-items:center; gap:6px 10px; padding-top:10px; color:var(--text-2); font-size:12.5px; }
.singles-video-kind { min-width:0; color:var(--muted); overflow-wrap:anywhere; }
.singles-video-bar a { color:var(--text-2); }
.singles-video-bar a:hover { color:var(--text); }
.singles-video-close { display:inline-flex; align-items:center; gap:6px; margin-left:auto; min-height:32px; padding:5px 12px; border:0; border-radius:999px; background:var(--surface-2); color:var(--text); font:inherit; cursor:pointer; }
.singles-video-close:hover { background:var(--surface-3); }
.singles-thumb { width:40px; height:40px; overflow:hidden; border-radius:4px; background:var(--surface-2); }
.singles-thumb img { display:block; width:100%; height:100%; object-fit:cover; }
/* List queue controls (decision 15 XI 2026): the cover is the play button. */
.singles-play { position:relative; display:grid; place-items:center; padding:0; border:0; color:var(--text); cursor:pointer; }
.singles-play img { position:absolute; inset:0; }
.singles-play-icon { position:relative; width:18px; height:18px; }
.singles-pause-symbol, .is-playing .singles-play-symbol { display:none; }
.is-playing .singles-pause-symbol { display:inline; }
.singles-thumb.singles-play:has(img) .singles-play-icon { padding:7px; box-sizing:content-box; border-radius:50%; background:rgb(0 0 0 / .55); color:#fff; opacity:0; transition:opacity .15s; }
.singles-row:hover .singles-thumb.singles-play .singles-play-icon, .singles-thumb.singles-play:focus-visible .singles-play-icon, .singles-row.is-current .singles-thumb.singles-play .singles-play-icon { opacity:1; }
.singles-play:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
@media (hover: none) { .singles-thumb.singles-play .singles-play-icon { opacity:1; } }
.singles-row.is-current { background:var(--accent-soft); }
.singles-row.is-current .singles-title { color:var(--accent); }
/* Play on the cover like an album card's .play-badge (user, 15 XI 2026), shown on
   hover or focus on desktop, always on touch and while current. */
.singles-card-play { position:absolute; right:10px; bottom:10px; display:grid; place-items:center; width:44px; height:44px; padding:0; border:0; border-radius:50%; background:var(--accent); color:var(--accent-ink); box-shadow:var(--shadow-2); cursor:pointer;
  opacity:0; transform:translateY(8px); transition:opacity .2s var(--ease), transform .2s var(--ease); }
.singles-card-play .singles-play-icon { width:22px; height:22px; }
.singles-card-play:hover { background:var(--accent-strong); }
.singles-card:hover .singles-card-play, .singles-card:focus-within .singles-card-play, .singles-card.is-current .singles-card-play { opacity:1; transform:none; }
@media (hover: none) { .singles-card-play { opacity:1; transform:none; } }
.singles-card.is-current { border-color:var(--accent); box-shadow:0 0 0 1px var(--accent); }
/* Desktop: four in a row when they fit, otherwise two (no orphan card); no
   sideways scrolling or scrollbar (user decision 15 XI 2026). */
@media (min-width: 901px) {
  .singles-featured { container-type:inline-size; }
  .singles-cards { grid-template-columns:repeat(2, minmax(0, 1fr)); }
  @container (min-width: 690px) {
    .singles-cards { grid-template-columns:repeat(4, minmax(0, 1fr)); }
  }
}
.singles-main { min-width:0; }
.singles-title, .singles-artists { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.singles-title { font-size:14.5px; font-weight:600; }
.singles-artists { color:var(--text-2); font-size:13px; }
.singles-album { display:inline-block; max-width:280px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; padding:4px 10px; border:1px solid var(--line-strong); border-radius:999px; background:var(--surface-2); font-size:12px; font-weight:600; vertical-align:middle; }
.singles-album { color:var(--text-2); }
.singles-album .singles-album-when { font-weight:500; color:var(--text-3, var(--text-2)); }
.singles-album.is-available { border-color:var(--accent-line); background:var(--accent-soft); color:var(--accent); }
.singles-album.is-available .singles-album-when { color:var(--accent); }
.singles-album:hover { border-color:var(--accent); }
.singles-spotify { display:grid; place-items:center; width:36px; height:36px; border-radius:50%; }
.singles-spotify img { display:block; width:18px; height:18px; }
.singles-spotify:hover { background:var(--surface-2); }
.singles-spotify.is-pending { position:relative; }
.singles-spotify.is-pending::after { content:""; position:absolute; top:7px; right:7px; width:6px; height:6px; border-radius:50%; background:var(--muted); box-shadow:0 0 0 2px var(--bg); }
/* Its explanation at once on hover or keyboard focus, above the logo (as the archive icon). */
.singles-spotify.is-pending[data-tooltip]::before { content:attr(data-tooltip); position:absolute; bottom:calc(100% + 6px); right:0; z-index:5; padding:5px 9px; border:1px solid var(--line-strong); border-radius:6px; background:var(--surface-2); color:var(--text); font-size:var(--fs-xs); font-weight:600; white-space:nowrap; pointer-events:none; opacity:0; transition:opacity .12s var(--ease); }
.singles-spotify.is-pending:is(:hover, :focus-visible)::before { opacity:1; }
@media (prefers-reduced-motion: reduce) { .singles-spotify.is-pending[data-tooltip]::before { transition:none; } }
.singles-spotify:focus-visible { outline:2px solid var(--accent); outline-offset:1px; }
.singles-more > summary { display:inline-block; margin-top:14px; padding:10px 16px; border:1px solid var(--line-strong); border-radius:8px; font-size:13px; font-weight:650; list-style:none; cursor:pointer; }
.singles-more > summary::-webkit-details-marker { display:none; }
.singles-more[open] > summary { display:none; }
.singles-archive { margin-top:44px; }
.singles-archive > p { margin:6px 0 0; color:var(--text-2); }
.singles-archive ul { display:grid; grid-template-columns:repeat(auto-fill, minmax(170px, 1fr)); gap:10px; margin:14px 0 0; padding:0; list-style:none; }
.singles-archive a { display:block; padding:14px 16px; border:1px solid var(--line); border-radius:12px; background:var(--surface); }
.singles-archive a:hover { border-color:var(--accent-line); }
.singles-archive strong { display:block; font-size:15px; }
.singles-archive span { color:var(--muted); font-size:12.5px; }
.singles-pager { display:flex; justify-content:space-between; gap:12px; margin-top:28px; }
.singles-pager a { padding:11px 16px; border:1px solid var(--line-strong); border-radius:8px; font-size:13px; font-weight:650; }
@media (max-width: 900px) {
  .singles-featured h2 { margin-bottom:10px; }
  .singles-cards { display:flex; gap:10px; overflow-x:auto; overscroll-behavior-x:contain; scroll-snap-type:x mandatory; scrollbar-width:none; }
  .singles-cards::-webkit-scrollbar { display:none; }
  /* A part of the next card stays visible as a hint to scroll. */
  .singles-card { flex:0 0 min(64%, 260px); scroll-snap-align:start; }
}
@media (max-width: 640px) {
  .singles-day-heading { padding:14px 0 6px; }
  .singles-day-heading strong { font-size:26px; }
  .singles-row { grid-template-columns:24px minmax(0,1fr) auto; grid-template-areas:"index main spotify" ". hint hint"; column-gap:10px; row-gap:6px; padding:8px 4px; }
  .has-thumbs .singles-row { grid-template-columns:44px minmax(0,1fr) auto; grid-template-areas:"thumb main spotify" "thumb hint hint"; }
  .has-thumbs .singles-index { display:none; }
  .singles-index { grid-area:index; }
  .singles-thumb { grid-area:thumb; width:44px; height:44px; align-self:start; }
  .singles-main { grid-area:main; }
  .singles-hint { grid-area:hint; min-width:0; }
  .singles-album { max-width:100%; }
  .singles-links { grid-area:spotify; }
  .singles-spotify, .singles-yt { width:40px; height:40px; }
  .singles-video { margin-inline:-16px; padding:0 0 10px; border-radius:0; }
  .singles-video .youtube-video iframe { border-radius:0; }
  .singles-video-bar { padding:10px 16px 0; }
  .singles-video.singles-video-card { margin:12px -16px 4px; padding:0 0 10px; border:0; border-radius:0; }
  .singles-video-card .singles-video-bar { padding:10px 16px 0; }
}
.page-heading {
  margin-bottom: 22px;
}
.eyebrow {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 8px;
}
h1 {
  font-size: clamp(34px, 3.6vw, 52px);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin: 0 0 10px;
}
#view-description, .page-description {
  overflow-wrap: anywhere;
  color: var(--text-2);
  margin: 0;
  font-size: var(--fs-md);
  line-height: 1.55;
  max-width: 60ch;
}

/* Toolbar ---------------------------------------------------------------- */
@media (min-width: 701px) and (pointer: fine) {
  #filters { --control-h: 36px; }
}
#mobile-filters { display: none; }
#filter-sheet { color: var(--text); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 24px 24px 0 0; padding: 20px; width: 100%; max-width: 560px; max-height: calc(100dvh - 24px); margin: auto auto 0; }
#filter-sheet:not([open]) { display: none; }
#filter-sheet::backdrop { background: #0009; }
html:has(#filter-sheet[open]) { overflow: hidden; }
.filter-sheet-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.filter-sheet-header h2 { margin: 0; font-size: 24px; }
#filter-sheet-close { margin-right: -6px; }
#filter-sheet .filter-group { display: flex; flex-direction: column; align-items: stretch; gap: 16px; }
#filter-sheet .filter-group > :not(.reset) { width: 100%; max-width: none; }
#filter-sheet .reset { display: none; }
#filter-sheet .genre-trigger, #filter-sheet summary { width: 100%; min-height: 50px; border-radius: 12px; font-size: 16px; padding-inline: 16px; }
.filter-sheet-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 10px; margin-top: 28px; padding-top: 16px; padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid var(--line); }
.filter-sheet-actions button { min-width: 0; padding: 10px; font-size: 14px; }
#filter-sheet-reset { min-height: 50px; color: var(--text); background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: 12px; font-weight: 600; }
#filter-sheet-reset span[aria-hidden] { font-size: 20px; vertical-align: -1px; }
#filter-sheet-reset:disabled, .genre-actions button:first-child:disabled { opacity: .45; cursor: default; }
#filter-sheet-apply { min-height: 50px; border-radius: 12px; background: var(--accent); color: var(--accent-ink-strong); font-weight: 700; }
#filter-sheet-apply:disabled { opacity: .5; }
.filter-toolbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 0 18px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.toolbar { display: contents; }
.genre-trigger { text-align: left; }
.genre-panel {
  display: flex; flex-direction: column;
  position: fixed; inset: auto; margin: 0; padding: 12px;
  max-width: none; max-height: none; overflow: hidden; color: var(--text);
  border: 1px solid var(--line-strong); border-radius: 16px;
  background: var(--surface); box-shadow: 0 14px 40px #0008;
}
.genre-panel:not([open]) { display: none; }
.genre-panel::backdrop { background: #0008; }
html:has(.genre-panel[open]) { overflow: hidden; }
.genre-panel input { width: calc(100% - max(0px, var(--genre-scrollbar, 0px) - var(--genre-gutter, 16px))); min-width: 0; padding: 10px 12px; border-radius: 9px; border: 1px solid var(--line); background: var(--bg); color: var(--text); }
.genre-search-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; flex: none; margin-bottom: 8px; }
.genre-search-row h2 { font-size: 18px; margin: 0; }
.genre-hint { margin: 2px 0 0; color: var(--muted); font-size: var(--fs-sm); }
.genre-panel > input { flex: none; }
.genre-panel > input:focus-visible { outline: none; }
.genre-close { margin: -6px -8px 0 0; }
.genre-options { position: relative; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin-top: 8px;
  /* The scrollbar (also an overlay one) sits in the panel padding, beside the options, never over them.
     A classic scrollbar's measured width (--genre-scrollbar, genre-picker.mjs) comes off the padding,
     so the options end where the search field ends. */
  margin-right: -16px; padding-right: max(0px, calc(16px - var(--genre-scrollbar, 0px))); }
.genre-group-label { padding: 12px 10px 6px; color: var(--muted); font-size: var(--fs-sm); }
/* Detailed genres: a separated heading while searching, otherwise a quiet toggle without
   a rule; a small family heading and compact two-column tiles. */
.genre-section-label { margin-top: 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.genre-subgroup-label { padding: 6px 10px 0; color: var(--text-2); font-size: 13px; font-weight: 600; }
.genre-section-toggle { display: flex; align-items: center; justify-content: flex-start; gap: 8px; width: 100%; min-height: 44px; margin-top: 4px; padding: 0 10px; border-top: 0; color: var(--muted); font-size: var(--fs-sm); font-weight: 500; text-align: left; border-radius: 8px; cursor: pointer; }
.genre-section-toggle:hover { color: var(--text); }
/* The list clips its overflow: keep keyboard rings inside the rows. */
.genre-options :focus-visible { outline-offset: -2px; }
.genre-section-chevron { width: 7px; height: 7px; margin: -3px 0 0 2px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .15s; }
.genre-section-toggle[aria-expanded="true"] .genre-section-chevron { transform: rotate(-135deg); margin-top: 3px; }
@media (prefers-reduced-motion: reduce) { .genre-section-chevron { transition: none; } }
.genre-option { display: block; width: 100%; min-height: 44px; text-align: left; padding: 10px 12px; border-radius: 8px; cursor: pointer; touch-action: manipulation; }
.genre-option:hover, .genre-option.highlighted { background: var(--surface-2); }
.genre-option[aria-selected="true"] { color: var(--accent-strong); background: var(--accent-soft); }
.genre-result-status { color: var(--muted); padding: 8px 10px 0; font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.genre-empty-status { padding: 16px 10px 4px; color: var(--muted); font-size: var(--fs-sm); }
.genre-empty-status:empty { display: none; }
.genre-sheet { padding: 20px; border-radius: 24px 24px 0 0; }
@media (min-width: 701px) and (pointer: fine) {
  .genre-sheet { border-radius: 20px; }
}
.genre-sheet .genre-search-row h2 { font-size: 24px; }
.genre-sheet .genre-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 6px; }
.genre-sheet .genre-options > * { grid-column: 1 / -1; }
.genre-sheet .genre-options > .genre-main-option { grid-column: auto; border: 1px solid var(--line); }
.genre-sheet .genre-options > .genre-detail-option { grid-column: auto; padding: 8px 10px; border: 1px solid var(--line); font-size: 14px; line-height: 1.25; }
.genre-sheet .genre-option { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.genre-sheet .genre-option[aria-selected="true"]::after { content: '✓'; }
/* Detailed genre already covered by its chosen main category. */
.genre-sheet .genre-option.genre-included { border-color: var(--accent-soft); }
.genre-sheet .genre-option.genre-included::after { content: '✓'; opacity: .45; }
.genre-count { margin-left: auto; flex: 0 0 auto; color: #77777f; font-size: 12px; font-weight: 400; font-variant-numeric: tabular-nums; }
.genre-navigation .genre-count { opacity: 0; }
.genre-navigation a:is(:hover, :focus-visible) .genre-count { opacity: 1; }
.genre-empty { color: var(--muted); }
.genre-option.genre-empty .genre-count { opacity: .6; }
.genre-actions { flex: none; display: grid; grid-template-columns: 1fr 1.2fr; gap: 10px; border-top: 1px solid var(--line); margin-top: 16px; padding-top: 16px; padding-bottom: env(safe-area-inset-bottom); }
.genre-actions[hidden] { display: none; }
.genre-actions button { min-height: 50px; min-width: 0; padding: 10px; border: 1px solid var(--line-strong); border-radius: 12px; font-size: 14px; font-weight: 600; background: var(--surface-2); }
.genre-actions button:last-child { background: var(--accent); color: var(--accent-ink-strong); border-color: transparent; }
.platform-picker { width:max-content; max-width:100%; position:relative; }
.platform-picker summary { display:flex; align-items:center; justify-content:space-between; gap:8px; min-height:var(--control-h); padding:0 16px; border:1px solid var(--line); border-radius:999px; background:var(--surface); cursor:pointer; list-style:none; }
.platform-picker summary::-webkit-details-marker { display:none; }
.platform-picker summary > span { min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.platform-options { position:fixed; z-index:80; width:260px; max-width:calc(100vw - 24px); max-height:calc(100dvh - 24px); overflow-y:auto; overscroll-behavior:contain; padding:12px; margin:0; border:1px solid var(--line); border-radius:16px; background:var(--surface); box-shadow:0 12px 32px #0008; }
.platform-options fieldset { border:0; padding:0; margin:0; min-width:0; }
.platform-options legend,.platform-options small { font-size:12px; color:var(--text-2); }
.platform-options label { display:flex; align-items:center; gap:10px; min-height:44px; cursor:pointer; }
.platform-options input { width:20px; height:20px; accent-color:var(--accent); }
#platform-status:empty { display:none; }
.type-options button { display:block; width:100%; min-height:44px; padding:10px 12px; text-align:left; border:0; border-radius:8px; background:transparent; cursor:pointer; }
.type-options button:hover { background:var(--surface-2); }
.type-options button[aria-pressed="true"] { background:var(--accent-soft); color:var(--accent-strong); }
.filter-backdrop { display: none; }
.filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
#count {
  font-size: var(--fs-sm);
  color: var(--muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.select-field {
  width: 190px;
  position: relative;
}
.date-filter { width:max-content; max-width:240px; position:relative; }
select,
.genre-trigger,
.date-filter summary,
.reset {
  height: var(--control-h);
  width: 100%;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-size: var(--fs-base);
  font-weight: 500;
  transition:
    border-color 0.15s var(--ease),
    background 0.15s var(--ease);
}
.genre-trigger,
.platform-picker summary,
.date-filter summary {
  font-weight: 400;
}
select,
.genre-trigger {
  appearance: none;
  padding: 0 40px 0 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b3b3b8' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 18px;
  background-position: right 13px center;
}
select:hover,
.genre-trigger:hover,
.date-filter summary:hover,
.reset:hover {
  border-color: var(--line-strong);
  background-color: var(--surface-2);
}
select.active-filter,
.genre-trigger.active-filter,
.platform-picker summary.active-filter,
.date-filter summary.active-filter {
  border-color: var(--accent-line);
  background-color: var(--accent-soft);
  color: var(--accent-strong);
}
select.active-filter {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233ee281' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}
/* Keep real platform pickers, including iPhone Safari/Chrome. No experimental
   base-select or interactive children inside select. */
select { color-scheme: dark; }
.reset {
  width: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 16px 0 12px;
  color: var(--text-2);
  border-color: transparent;
  background: transparent;
}
.reset .icon {
  width: 16px;
  height: 16px;
}
.reset:hover {
  color: var(--text);
}

/* Date range ------------------------------------------------------------- */
.date-filter summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px 0 14px;
}
.date-filter summary::-webkit-details-marker {
  display: none;
}
.date-filter summary > span {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.date-filter summary .icon {
  width: 18px;
  height: 18px;
  color: var(--text-2);
}
.date-filter summary.active-filter .icon {
  color: inherit;
}
.date-filter summary .chevron {
  transition: transform 0.18s var(--ease);
}
.date-filter[open] summary .chevron {
  transform: rotate(180deg);
}
.date-filter[open] summary {
  border-color: var(--line-strong);
  background: var(--surface-2);
}
/* Date-range panel (UI-CONTRACT §14, 18–19 XI 2026): desktop two columns, 540 px,
   ≤ 480 px tall with a fixed six-week grid, never scrolls; phones a bottom sheet
   with a pinned footer (see the compact media query below). */
.date-panel {
  /* Day heat (19 XI 2026): 1–2, 3–9, 10–19, 20+ results, evenly spaced in
     lightness so neighbouring levels read apart. The top level is a solid darker
     green (white digits 5:1), never the bright range-end accent: a lighter top
     level was tried and read as a selected day. */
  --heat-1: rgba(31, 215, 102, 0.08);
  --heat-2: rgba(31, 215, 102, 0.21);
  --heat-3: rgba(31, 215, 102, 0.37);
  --heat-4: #14803f;
  --range-band: rgba(31, 215, 102, 0.3);
  position: fixed;
  width: 540px;
  max-height: min(480px, calc(100dvh - 24px));
  overflow-y: auto;
  overscroll-behavior: contain;
  max-width: calc(100vw - 24px);
  z-index: 60;
  padding: 16px;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-3);
}
@keyframes pop-in {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.985);
  }
}
/* 172 px fits the longest bold choice with its count ("Najbliższe 90 dni 54") and
   leaves the fill 12 px past the count (19 XI); the green fill marks it, no check. */
.date-body { display: grid; grid-template-columns: 172px minmax(0, 1fr); gap: 16px; }
.date-quick { padding-right: 11px; border-right: 1px solid var(--line); }
.date-kicker {
  margin: 2px 0 8px 10px;
  font-size: var(--fs-sm);
  line-height: 16px;
  font-weight: 500;
  color: var(--text-2);
}
.date-presets { display: flex; flex-direction: column; gap: 2px; }
.date-presets button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 36px;
  padding: 0 12px 0 10px;
  border-radius: var(--radius-s);
  font-size: var(--fs-base);
  white-space: nowrap;
  text-align: left;
  color: var(--text-2);
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.date-presets button:hover { background: rgba(255, 255, 255, 0.06); color: var(--text); }
.date-presets button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent-strong); font-weight: 600; }
.preset-short { display: none; }
.preset-count { margin-left: auto; font-size: var(--fs-sm); font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.date-presets button[aria-pressed="true"] .preset-count { color: var(--accent); }
.date-sheet-header { display: none; }
.date-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 16px minmax(0, 1fr);
  align-items: center;
  gap: 4px;
  margin-bottom: 12px;
}
.date-field {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 44px;
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  background: var(--surface);
  cursor: text;
}
.date-field > span {
  font-size: var(--fs-sm);
  line-height: 14px;
  font-weight: 500;
  color: var(--text-2);
}
.date-field input {
  width: 100%;
  min-width: 0;
  height: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: var(--fs-base);
  line-height: 20px;
  font-variant-numeric: tabular-nums;
}
.date-field input::placeholder { color: var(--muted); }
.date-field input:focus-visible { outline: none; }
.date-field:is(.active, :focus-within) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.date-field:is(.active, :focus-within) > span { color: var(--accent-strong); }
.date-field.invalid { border-color: var(--danger); box-shadow: inset 0 0 0 1px var(--danger); }
.date-field.invalid > span { color: var(--danger); }
.date-field.invalid::after {
  content: "!";
  position: absolute;
  right: 10px;
  top: 12px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--danger);
  color: #2a0b08;
  font-size: var(--fs-sm);
  line-height: 18px;
  font-weight: 700;
  text-align: center;
}
.date-arrow { text-align: center; color: var(--text-2); }
.datepicker-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 32px;
  margin-bottom: 4px;
}
.datepicker-head span#dp-label {
  font-size: var(--fs-md);
  font-weight: 600;
  letter-spacing: -0.005em;
  text-transform: capitalize;
}
.datepicker-head-end { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
#dp-prev, #dp-next {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text-2);
}
#dp-prev { justify-self: start; }
#dp-prev .icon, #dp-next .icon { width: 18px; height: 18px; }
:is(#dp-prev, #dp-next):not(:disabled):hover { background: rgba(255, 255, 255, 0.08); color: var(--text); }
#dp-prev:disabled { color: var(--muted); opacity: 0.45; cursor: default; }
#dp-today {
  position: relative;
  height: 24px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-2);
}
#dp-today:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.datepicker-weekdays,
.datepicker-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.datepicker-weekdays { margin-bottom: 2px; }
.datepicker-weekdays span {
  text-align: center;
  font-size: var(--fs-xs);
  line-height: 20px;
  color: var(--text-2);
}
/* Polish releases come out on Fridays. */
.datepicker-weekdays .weekday-friday { color: var(--accent-strong); font-weight: 600; }
/* A day: the band layer (::before) spans the cell, the number is a circle on it. */
.day-cell {
  --cell: 36px;
  --circle: 32px;
  position: relative;
  height: var(--cell);
  display: grid;
  place-items: center;
  isolation: isolate;
  padding: 0;
  font-size: var(--fs-base);
  font-variant-numeric: tabular-nums;
  color: var(--text-2);
  border-radius: 0;
}
.day-cell::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: calc((var(--cell) - var(--circle)) / 2) 0;
}
.day-number {
  box-sizing: border-box;
  width: var(--circle);
  height: var(--circle);
  display: grid;
  place-items: center;
  border-radius: 50%;
}
.day-cell:not(:disabled, .range-start, .range-end, .has-releases):hover .day-number { background: rgba(255, 255, 255, 0.08); }
.day-cell.has-releases:not(:disabled, .range-start, .range-end):hover .day-number { filter: brightness(1.3); }
.day-cell.heat-1 .day-number { background: var(--heat-1); }
.day-cell.heat-2 .day-number { background: var(--heat-2); }
.day-cell.heat-3 .day-number { background: var(--heat-3); }
.day-cell.heat-4 .day-number { background: var(--heat-4); color: #fff; font-weight: 600; }
/* Other months stay quiet: no heat, only the dimmer number. */
.day-cell.outside:not(.range-start, .range-end) .day-number { background: none; color: inherit; font-weight: inherit; }
/* Only days with results, the range and today are bright (18 XI 2026): the
   grid reads like the rest of the page, not as 42 equal white numbers. */
.day-cell:is(.has-releases, .in-range, .range-start, .range-end, .today) { color: var(--text); }
/* Other months: dimmer than --text-2 but still AA on the panel (5.1:1; --muted is 4.1:1). */
.day-cell.outside { color: #8e8e97; }
.day-cell.outside:is(.has-releases, .in-range) { color: var(--text-2); }
.day-cell:disabled { color: var(--muted); opacity: 0.45; cursor: default; }
.day-cell:focus-visible { outline: none; }
.day-cell:focus-visible .day-number { outline: 2px solid var(--accent); outline-offset: 2px; }
.day-cell.today .day-number { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6); font-weight: 700; }
/* 19 XI: the band is the selection. Inside it heat steps aside, so several days
   read as one continuous bar instead of gaps between green circles. */
.day-cell:is(.in-range, .range-start, .range-end):not(.single)::before { background: var(--range-band); }
.day-cell.in-range .day-number { background: none; color: var(--text); font-weight: 600; }
.day-cell.in-range.outside .day-number { color: var(--text-2); font-weight: inherit; }
.day-cell.range-start::before { left: 50%; }
.day-cell.range-end::before { right: 50%; }
.day-cell.week-start::before { border-radius: 999px 0 0 999px; }
.day-cell.week-end::before { border-radius: 0 999px 999px 0; }
.day-cell:is(.range-start, .range-end) .day-number { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
/* A range end stays green on hover (the grey hover used to cover it). */
.day-cell:is(.range-start, .range-end):hover .day-number { background: var(--accent-strong); }
.day-cell.today:is(.range-start, .range-end) .day-number { box-shadow: inset 0 0 0 2px var(--accent), inset 0 0 0 3px var(--accent-ink); }
.day-cell:is(.preview, .preview-low, .preview-high)::before {
  background: rgba(31, 215, 102, 0.07);
  border-block: 1px dashed rgba(62, 226, 129, 0.6);
}
.day-cell.preview-low::before { left: 50%; }
.day-cell.preview-high::before { right: 50%; }
/* An end on the row's last/first day has no neighbour to join: no stub behind the circle. */
.day-cell:is(.range-start.week-end, .range-end.week-start, .preview-low.week-end, .preview-high.week-start)::before { display: none; }
.day-cell.preview-target:not(:is(.range-start, .range-end)) .day-number { box-shadow: inset 0 0 0 1px var(--accent-strong); font-weight: 700; }
.datepicker-legend {
  margin: 6px 4px 0;
  font-size: var(--fs-xs);
  line-height: 16px;
  color: var(--text-2);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
}
.datepicker-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.datepicker-legend .dot { width: 5px; height: 5px; border-radius: 50%; }
.heat-legend i { width: 10px; height: 10px; border-radius: 50%; }
.heat-legend i.heat-1 { background: var(--heat-1); }
.heat-legend i.heat-2 { background: var(--heat-2); }
.heat-legend i.heat-3 { background: var(--heat-3); }
.heat-legend i.heat-4 { background: var(--heat-4); }
.datepicker-legend .today-dot { width: 10px; height: 10px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6); }
.date-actions {
  background: var(--surface-2);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.date-summary {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding-left: 10px;
  font-size: var(--fs-sm);
  line-height: 16px;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
}
.date-summary b { color: var(--text); font-weight: 600; }
.date-summary b + span::before { content: " · "; }
.date-summary.error, .date-summary.error b { color: var(--danger); }
.date-actions button {
  flex: none;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--text-2);
}
.date-actions button:not(:disabled):hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}
#clear-dates:disabled { color: var(--muted); opacity: 0.6; cursor: default; }
#close-dates {
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0 20px;
}
#close-dates:hover {
  background: var(--accent-strong);
  color: var(--accent-ink);
}
/* Phones and touch tablets: a bottom sheet over "Filtry" (placed by
   fitDatePanel), 44 px targets, no typed fields. */
@media (max-width: 700px), (pointer: coarse) and (max-width: 1024px) {
  .date-panel {
    padding: 4px 12px 0;
    max-width: none;
    border-bottom: 0;
    border-radius: 20px 20px 0 0;
  }
  /* Header and footer stay put; on a short screen only the calendar between them scrolls. */
  .date-sheet-header {
    position: sticky;
    top: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 48px;
    margin: -4px -6px 0 -12px;
    padding: 4px 0 0 12px;
    background: var(--surface-2);
  }
  .date-sheet-header h2 { margin: 0; font-size: var(--fs-lg); font-weight: 650; }
  .date-body { display: block; }
  .date-quick { padding: 0; border: 0; }
  .date-kicker, .date-fields { display: none; }
  .date-presets {
    display: flex;
    flex-direction: row;
    gap: 6px;
    overflow-x: auto;
    margin: 0 -12px;
    padding: 0 12px;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }
  .date-presets::-webkit-scrollbar { display: none; }
  /* A faded edge where more chips sit (filters.mjs syncPresetFade). */
  .date-presets.fade-end { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); }
  .date-presets.fade-start { -webkit-mask-image: linear-gradient(to right, transparent, #000 40px); mask-image: linear-gradient(to right, transparent, #000 40px); }
  .date-presets.fade-start.fade-end { -webkit-mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent); }
  /* A 36 px chip inside a 44 px target. */
  .date-presets button {
    position: relative;
    isolation: isolate;
    flex: none;
    height: 44px;
    padding: 0 14px;
    gap: 6px;
    background: none;
  }
  .date-presets button::before { content: ""; position: absolute; z-index: -1; inset: 4px 0; border-radius: 18px; background: var(--surface); }
  .date-presets button:hover, .date-presets button[aria-pressed="true"] { background: none; }
  .date-presets button[aria-pressed="true"]::before { background: var(--accent-soft); }
  .preset-long { display: none; }
  .preset-short { display: inline; }
  .datepicker-head { height: 44px; margin-bottom: 0; }
  #dp-prev, #dp-next { width: 44px; height: 44px; }
  #dp-today { height: 28px; }
  #dp-today::after { content: ""; position: absolute; inset: -8px -4px; }
  .datepicker-weekdays { margin-bottom: 0; }
  .datepicker-weekdays span { line-height: 18px; }
  .datepicker-grid { touch-action: pan-y; }
  .day-cell { --cell: 44px; --circle: 38px; font-size: var(--fs-md); }
  .datepicker-legend { margin: 2px 4px 0; justify-content: flex-end; }
  /* Pinned footer: on a short screen only the middle of the sheet scrolls. */
  .date-actions {
    position: sticky;
    z-index: 3;
    bottom: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 8px;
    margin: 6px -12px 0;
    padding: 10px 12px max(12px, env(safe-area-inset-bottom));
  }
  .date-summary { grid-column: 1 / -1; padding-left: 2px; white-space: normal; }
  .date-actions button { height: 46px; padding: 0 10px; }
  #clear-dates { background: var(--surface-3); color: var(--text); }
  #close-dates { padding: 0 18px; }
}

/* Calendar listing ------------------------------------------------------- */
.catalog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 272px;
  gap: 44px;
  align-items: start;
}
.catalog-layout.favorites-layout { grid-template-columns: minmax(0, 1fr); }
.favorites-layout #upcoming { display: none; }
.favorites-layout #calendar > .empty { margin-top: 24px; }
.recent-day { margin-bottom: 8px; }
.recent-status-heading small,.favorite-heading small { margin-left:auto; color:var(--muted); font-size:var(--fs-sm); font-weight:400; white-space:nowrap; font-variant-numeric:tabular-nums; }
.recent-cards { margin-bottom: 24px; }
.recent-window-note { margin: 8px 10px 24px; color: var(--muted); font-size: var(--fs-sm); line-height: 1.5; }
.recent-card-note { display: grid; gap: 3px; margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.45; }
.recent-card-event { color: var(--text-2); }
.recent-status-heading,.favorite-heading { display:flex; align-items:baseline; flex-wrap:wrap; gap:6px 12px; margin:18px 10px 8px; font-size:var(--fs-base); font-weight:650; }

.favorite-section { margin-bottom: 32px; }
.singles-row.is-found { background:var(--accent-soft); box-shadow:inset 0 0 0 1px rgb(31 215 102 / .45); transition:background .6s ease, box-shadow .6s ease; }
/* Singles in search results (15 XI 2026): compact rows like the Singles list. */
.search-singles-list { display:grid; grid-template-columns:repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap:4px 16px; margin:0; padding:0 0 0 0; list-style:none; }
.search-single { display:grid; grid-template-columns:48px minmax(0, 1fr) auto; align-items:center; gap:12px; padding:4px 6px 4px 4px; border-radius:10px; }
.search-single:hover { background:var(--surface); }
.search-single.is-current { background:var(--accent-soft); }
.search-single-link { display:grid; grid-template-columns:minmax(0, 1fr) auto; align-items:center; gap:12px; min-width:0; color:inherit; text-decoration:none; border-radius:8px; }
.search-single-link:focus-visible, .search-single-spotify:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.search-single-art { display:grid; place-items:center; width:48px; height:48px; overflow:hidden; border-radius:6px; background:var(--surface-2); }
.search-single-art .icon { width:20px; height:20px; color:var(--muted); }
.search-single-art img { display:block; width:100%; height:100%; object-fit:cover; }
/* The cover is the play control: the icon shows on hover, focus, touch and while current. */
.search-single-art.singles-play .singles-play-icon { padding:7px; box-sizing:content-box; border-radius:50%; background:rgb(0 0 0 / .55); color:#fff; opacity:0; transition:opacity .15s; }
.search-single-art.singles-play:not(:has(img)) .singles-play-icon { opacity:1; background:none; color:var(--text); }
.search-single-art.singles-play:not(:has(img)) .icon { display:none; }
.search-single:hover .search-single-art.singles-play .singles-play-icon, .search-single-art.singles-play:focus-visible .singles-play-icon, .search-single.is-current .search-single-art.singles-play .singles-play-icon { opacity:1; }
@media (hover: none) { .search-single-art.singles-play .singles-play-icon { opacity:1; } }
.search-single-text { display:grid; min-width:0; }
.search-single-title { overflow:hidden; font-weight:600; text-overflow:ellipsis; white-space:nowrap; }
.search-single-artists { overflow:hidden; color:var(--text-2); font-size:var(--fs-sm); text-overflow:ellipsis; white-space:nowrap; }
.search-single-date { color:var(--muted); font-size:var(--fs-sm); font-variant-numeric:tabular-nums; white-space:nowrap; }
.search-single-spotify { display:grid; place-items:center; width:40px; height:40px; border-radius:50%; }
.search-single-spotify:hover { background:var(--surface-2); }
.search-singles-more { margin:10px 10px 0; color:var(--muted); font-size:var(--fs-sm); }
.search-pending { margin:32px 0; color:var(--muted); }
@media (max-width: 520px) {
  .search-single-link { grid-template-columns:minmax(0, 1fr); row-gap:0; }
  .search-single-date { font-size:12px; }
}
.favorite-heading { margin-top:24px; }
#favorite-sort { display: inline-grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 100%; padding: 2px; gap: 2px; border: 1px solid rgba(255,255,255,.06); border-radius: 9px; background: rgba(255,255,255,.025); }
#favorite-sort button { min-width: 0; min-height: 30px; padding: 5px 12px; border: 0; border-radius: 6px; background: transparent; color: var(--text-2); font: inherit; font-size: 13px; line-height: 20px; cursor: pointer; }
#favorite-sort button[aria-pressed="true"] { color: var(--text); background: rgba(255,255,255,.055); }
#favorite-sort button:hover { color: var(--text); }
@media (max-width: 700px), (pointer: coarse) and (max-width: 1024px) {
  #favorite-sort { display: grid; width: 100%; padding: 0; border: 0; }
  #favorite-sort button { min-height: 44px; padding-inline: 8px; }
  .favorite-heading { margin-top:20px; }
}
.day {
  margin-bottom: 8px;
}
.day-heading {
  position: sticky;
  top: var(--topbar);
  z-index: 3;
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  padding: 14px 0 14px;
  font-size: var(--fs-base);
  font-weight: 500;
  color: var(--text-2);
  white-space: nowrap;
  background: linear-gradient(var(--bg) 82%, transparent);
}
.day-heading-date { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.day-heading strong {
  font-size: 32px;
  line-height: 1;
  font-weight: 750;
  letter-spacing: -0.04em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.day-heading .weekday {
  color: var(--muted);
}
.day-heading .weekday::before {
  content: "· ";
}
.day-heading small {
  margin-left: auto;
  font-size: var(--fs-sm);
  color: var(--muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 10px;
  padding-bottom: 20px;
}
#editorial { margin: 0 0 8px; border-bottom: 1px solid var(--line); }
#editorial h2 { font-size:22px; line-height:1.2; min-height:40px; display:flex; align-items:flex-end; margin:0 0 12px; }
.editorial-slider { position:relative; }
.editorial-controls { position:absolute; inset:0 0 12px; pointer-events:none; }
.editorial-controls button { position:absolute; top:50%; z-index:3; width:44px; height:44px; border:0; border-radius:4px; background:transparent; box-shadow:none; color:var(--accent); cursor:pointer; pointer-events:auto; font-size:0; display:grid; place-items:center; padding:0; }
.editorial-controls button::before { content:''; width:14px; height:14px; border-top:2px solid currentColor; border-right:2px solid currentColor; transform:rotate(45deg); }
.editorial-controls button:first-child::before { transform:rotate(-135deg); }
.editorial-controls button:first-child { left:-16px; transform:translate(-50%, -50%); }
.editorial-controls button:last-child { right:-16px; transform:translate(50%, -50%); }
.editorial-controls button:hover { color:var(--accent-strong); }
.editorial-controls button[aria-disabled="true"] { color:var(--muted); opacity:.3; cursor:default; }
/* All cards fit (a wide screen): no arrows at all instead of two dead ones. */
.editorial-controls:not(:has(button:not([aria-disabled="true"]))) { display:none; }
.editorial-controls button:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.editorial-dots { display:none; }
.cards.editorial-cards { display:flex; gap:16px; width:100%; overflow-x:auto; scroll-snap-type:x mandatory; overscroll-behavior-x:contain; position:relative; scrollbar-width:none; padding-bottom:12px; }
.editorial-cards::-webkit-scrollbar { display:none; }
/* Slider cards, variant B (user decision 15 XI 2026), shared with featured singles:
   a square cover with the genre pill, service logos and play, then a band in the
   cover's own dark colour (--tint: editorial `color`, else prepared from the cover,
   else neutral) with title and heart, artist and type; announcements add the date. */
.editorial-slider { container-type:inline-size; }
.editorial-cards .card { --tint:var(--editorial-color, #343942); flex:0 0 64%; scroll-snap-align:start; display:flex; flex-direction:column; padding:0; overflow:hidden; isolation:isolate; border:1px solid var(--line); border-radius:var(--radius-l); }
/* The album in the player: an outline drawn inside the card, over the cover (an inset
   shadow would sit under it), so the slider's scroll box never clips the ring. */
.editorial-cards .card.is-current { border-color:var(--accent); outline:2px solid var(--accent); outline-offset:-2px; }
.editorial-cards .card, .editorial-cards .card:is(:hover, :focus-within) { background:linear-gradient(180deg, color-mix(in srgb, var(--tint) 85%, #000), color-mix(in srgb, var(--tint) 60%, #000)); }
.editorial-cards .card:is(:hover, :focus-within) { border-color:var(--line-strong); }
/* Hover and focus never grey out the ring of the album in the player. */
.editorial-cards .card.is-current:is(:hover, :focus-within) { border-color:var(--accent); }
/* The track width, not the viewport, sets the count: n whole cards and about 0.3 of
   the next as a hint that more follow (user decision 16 XI 2026, no motion), or one
   card with the next peeking on a narrow track. Eight cards fit whole on the widest. */
@container (min-width: 440px) { .editorial-cards .card, .singles-cards.is-slider .singles-card { flex-basis:calc((100% - 32px) / 2.3); } }
@container (min-width: 600px) { .editorial-cards .card, .singles-cards.is-slider .singles-card { flex-basis:calc((100% - 48px) / 3.3); } }
@container (min-width: 760px) { .editorial-cards .card, .singles-cards.is-slider .singles-card { flex-basis:calc((100% - 64px) / 4.3); } }
/* A wide screen shows more cards instead of stretching them (about 300 px at most). */
@container (min-width: 1220px) { .editorial-cards .card, .singles-cards.is-slider .singles-card { flex-basis:calc((100% - 80px) / 5.3); } }
@container (min-width: 1480px) { .editorial-cards .card, .singles-cards.is-slider .singles-card { flex-basis:calc((100% - 96px) / 6.3); } }
@container (min-width: 1720px) { .editorial-cards .card, .singles-cards.is-slider .singles-card { flex-basis:calc((100% - 112px) / 7.3); } }
@container (min-width: 1960px) { .editorial-cards .card, .singles-cards.is-slider .singles-card { flex-basis:calc((100% - 112px) / 8); } }
/* Without container queries: the viewport steps used before them. */
@supports not (container-type: inline-size) {
  .editorial-cards .card, .singles-cards.is-slider .singles-card { flex-basis:calc((100% - 64px) / 4.3); }
  @media (max-width: 1000px) { .editorial-cards .card, .singles-cards.is-slider .singles-card { flex-basis:calc((100% - 48px) / 3.3); } }
  @media (max-width: 600px) { .editorial-cards .card, .singles-cards.is-slider .singles-card { flex-basis:64%; } }
}
/* While more cards wait on the right, the peeking card fades into the page; not on
   narrow screens, whose single 64% card keeps a plain peeking neighbour (and dots on touch). */
@media (min-width: 601px) {
  .editorial-slider:has(> .editorial-controls button:last-child[aria-disabled="false"])::after { content:''; position:absolute; top:0; right:0; bottom:12px; width:48px; z-index:2; pointer-events:none; background:linear-gradient(90deg, transparent, var(--bg)); }
}
/* A bright editorial colour is darkened so the white band text keeps its contrast. */
@supports (color: oklch(from red min(l, .42) c h)) {
  .editorial-cards .card { --tint:oklch(from var(--editorial-color, #343942) min(l, .42) c h); }
}
.editorial-cards .card-visual { margin:0; }
/* The title link stretches over the whole card (static .card-copy); play stays above it. */
.editorial-cards .play-badge { z-index:2; }
.editorial-cards :is(.card-link, .art) { border-radius:0; box-shadow:none; }
.editorial-cards .card-copy { position:static; display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; padding:6px 2px 10px 12px; }
.editorial-cards .card-copy h3 { grid-row:1; margin:0; color:#fff; font-size:15px; font-weight:700; line-height:1.25; -webkit-line-clamp:1; text-shadow:0 1px 2px rgb(0 0 0 / .35); }
.editorial-cards .card-copy > .favorite { position:relative; top:auto; right:auto; grid-row:1; width:40px; min-width:40px; min-height:40px; margin:-4px 0; color:rgb(255 255 255 / .85); }
/* The card clips overflow; keep the focus ring inside the heart. */
.editorial-cards .card-copy > .favorite:focus-visible { outline-offset:-2px; }
.editorial-byline { grid-column:1 / -1; display:flex; min-width:0; padding-right:10px; }
/* Artist and type: a short one keeps its full width, two long ones share the band. */
.editorial-byline:has(.card-type) { display:grid; grid-template-columns:minmax(0, max-content) minmax(0, max-content); justify-content:space-between; align-items:baseline; column-gap:8px; }
.editorial-cards .artist { min-width:0; color:rgb(255 255 255 / .8); font-size:13px; line-height:1.35; }
.editorial-cards .card-type { min-width:0; overflow:hidden; text-overflow:ellipsis; margin:0; color:rgb(255 255 255 / .7); font-size:12px; white-space:nowrap; }
/* Announcement premiere on the cover (variant C, user decision 15 XI 2026): a green
   countdown and the date in one label at the bottom left; the whole label opens
   "add to calendar". Same height as released cards, no extra row. */
.editorial-cards .card-visual { container-type:inline-size; }
.editorial-cards .cover-countdown { position:absolute; left:10px; bottom:10px; z-index:2; display:inline-flex; align-items:stretch; justify-content:flex-start; gap:0; min-width:0; min-height:0; max-width:calc(100% - 20px); padding:0; border:0; border-radius:10px; background:rgb(0 0 0 / .62); -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px); color:#fff; font:inherit; font-size:12.5px; font-weight:750; line-height:1.2; white-space:nowrap; box-shadow:0 4px 14px rgb(0 0 0 / .3); }
.editorial-cards .cover-countdown > :is(span, time) { display:flex; align-items:center; padding:6px 9px; }
.editorial-cards .cover-countdown-days { border-radius:10px 0 0 10px; background:var(--accent); color:var(--accent-ink); }
.editorial-cards .cover-countdown .icon { flex:none; align-self:center; width:14px; height:14px; margin:0 9px 0 -3px; padding:0; color:var(--accent); }
.editorial-cards button.cover-countdown:hover { background:rgb(0 0 0 / .78); color:#fff; }
.editorial-cards button.cover-countdown:focus-visible { outline:2px solid #fff; outline-offset:2px; box-shadow:0 0 0 4px rgb(0 0 0 / .7); }
.editorial-cards button.cover-countdown:disabled { cursor:default; }
/* The full label needs up to 153 px ("Za 54 dni", "08.01", icon) plus 20 px of
   margin; a narrower cover (320 px phones) gets a compact label without the icon,
   and the whole label still opens the calendar. */
@container (max-width: 179px) {
  .editorial-cards .cover-countdown { left:8px; bottom:8px; max-width:calc(100% - 16px); font-size:12px; }
  .editorial-cards .cover-countdown > :is(span, time) { padding:5px 7px; }
  .editorial-cards .cover-countdown .icon { display:none; }
}
/* Without container queries the window thresholds (3 cards up to 1000 px, 64%
   up to 600 px) can leave a cover near 157 px: the compact label applies there. */
@supports not (container-type: inline-size) {
  @media (max-width: 1000px) {
    .editorial-cards .cover-countdown { left:8px; bottom:8px; max-width:calc(100% - 16px); font-size:12px; }
    .editorial-cards .cover-countdown > :is(span, time) { padding:5px 7px; }
    .editorial-cards .cover-countdown .icon { display:none; }
  }
}
/* Genre pill on the cover; it leaves room for the logos on the right. */
.editorial-cards .cover-genres { position:absolute; top:10px; left:10px; right:auto; z-index:2; width:auto; max-width:calc(100% - 20px); overflow:hidden; padding:3px 8px; border-radius:999px; background:rgb(0 0 0 / .55); -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px); color:#fff; font-size:10px; font-weight:800; letter-spacing:.08em; line-height:1.4; text-overflow:ellipsis; text-transform:uppercase; white-space:nowrap; opacity:1; }
/* Room for 1–3 logos (32 px each, 6 px apart) at the top right. */
.editorial-cards .card-visual:has(.cover-services) .cover-genres { max-width:calc(100% - 66px); }
.editorial-cards .card-visual:has(.cover-services > :nth-child(2)) .cover-genres { max-width:calc(100% - 104px); }
.editorial-cards .card-visual:has(.cover-services > :nth-child(3)) .cover-genres { max-width:calc(100% - 142px); }
.cover-services { position:absolute; top:8px; right:8px; z-index:2; display:flex; gap:6px; }
.cover-services .service-icon { display:grid; place-items:center; width:32px; height:32px; border-radius:50%; background:rgb(0 0 0 / .5); -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px); }
.cover-services .service-icon:hover { background:rgb(0 0 0 / .72); }
.cover-services .service-icon img { width:16px; height:16px; }
.cover-services .service-icon-bandcamp img { width:22px; height:14px; }
.cover-services .service-icon-youtube img { width:18px; height:13px; }
.release-calendar-button { position:relative; z-index:2; display:inline-flex; flex-shrink:0; align-items:center; justify-content:center; gap:8px; min-width:36px; min-height:36px; padding:6px; border:0; border-radius:8px; background:transparent; color:var(--accent-strong); cursor:pointer; }
.release-calendar-button .icon { width:18px; height:18px; }
.release-calendar-button:hover { color:var(--text); }
.release-calendar-button:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.card-release-date { display:flex; align-items:center; gap:4px; margin-top:4px; color:var(--text-2); font-size:12px; }
.announcement-date { justify-content: space-between; gap: 2px; min-height: 28px; }
/* Keep short type labels intact beside the compact date action. */
.announcement-type { flex-shrink:0; margin-left:auto; font-size:11px; color:var(--muted); text-align:right; line-height:1.2; white-space:nowrap; }
.announcement-services { position: absolute; left: 8px; bottom: 8px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px; border-radius: 6px; background: rgba(12,13,16,.88); }
.announcement-services .service-icon { width: 18px; height: 18px; }
.announcement-services .service-icon-bandcamp { width: 27px; height: 18px; }
.announcement-services .service-icon-youtube { width: 25px; height: 18px; }
.announcement-date-action { display: inline-flex; align-items: center; gap: 3px; min-width: 0; }
.announcement-date-action time { min-width: 0; overflow-wrap: anywhere; }
.announcement-date-action .exact-date { white-space: nowrap; }
.announcement-date-action:has(.exact-date) { flex-shrink: 0; }
.announcement-date-action .release-calendar-button { flex-shrink: 0; min-width: 20px; width: 20px; min-height: 20px; height: 20px; padding: 0; border-radius: 4px; }
.announcement-date-action .release-calendar-button .icon { width: 16px; height: 16px; }
.announcement-date-action .release-calendar-button::before { content: ''; position: absolute; inset: -12px; }
@media (max-width: 600px) {
  .announcement-date { gap:0; }
  .announcement-date-action { gap:0; }
  .announcement-date-action time { font-size:11px; }
  .announcement-date-action .release-calendar-button { min-width:16px; width:16px; }
  .announcement-date-action .release-calendar-button .icon { width:14px; height:14px; }
  .announcement-type { font-size:10px; letter-spacing:-.01em; }
}
.card-release-date .release-calendar-button { color:var(--text-2); }
.card-release-date .release-calendar-button:hover { color:var(--text); }
.card-copy:has(.card-release-date) { padding-right:0; }
.card-copy:has(.card-release-date) :is(h3, h4), .card-copy:has(.card-release-date) .artist { padding-right:var(--card-favorite-clearance); }
.album-calendar { width:fit-content; max-width:100%; margin:8px 0 12px; }
.album-calendar .release-calendar-button {
  max-width:100%; min-height:44px; padding:8px 14px; gap:8px;
  border:1px solid var(--line-strong); border-radius:999px;
  background:rgba(255,255,255,.04); color:var(--text-2);
  font-size:13px; font-weight:500; line-height:1.4; text-align:left;
  transition:background .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease);
}
.album-calendar .release-calendar-button .icon { flex-shrink:0; }
.album-calendar .release-calendar-button:hover {
  background:rgba(255,255,255,.08); border-color:rgba(255,255,255,.28); color:var(--text);
}
.album-calendar .release-calendar-button:active { background:var(--surface-2); }
.release-calendar-dialog { position:fixed; inset:12px auto auto 12px; margin:0; width:304px; max-width:calc(100vw - 24px); padding:22px; overflow:auto; border:1px solid var(--line-strong); border-radius:16px; background:var(--surface); color:var(--text); box-shadow:var(--shadow-3); }
.release-calendar-dialog::backdrop { background:rgb(0 0 0 / .35); }
.release-calendar-dialog { scrollbar-width:none; }
.release-calendar-dialog::-webkit-scrollbar { display:none; }
.release-calendar-dialog h2 { margin:0 24px 12px 0; font-size:18px; }
.calendar-scope { display:flex; flex-wrap:wrap; gap:4px; padding:4px; margin:0 0 16px; background:var(--bg); border:1px solid var(--line); border-radius:10px; }
.calendar-scope button { flex:1 1 auto; padding:8px; border:0; border-radius:6px; color:var(--text-2); background:transparent; font:inherit; font-size:13px; cursor:pointer; white-space:normal; }
.calendar-scope button[aria-pressed="true"] { color:var(--accent-strong); background:var(--accent-soft); }
.calendar-context { display:flex; align-items:flex-start; gap:8px; }
.calendar-context .release-calendar-album { flex:1; min-width:0; }
.calendar-copy { position:relative; display:inline-flex; flex:none; align-items:center; justify-content:center; width:24px; height:24px; padding:3px; border:0; border-radius:4px; background:transparent; color:var(--text-2); cursor:pointer; }
.calendar-copy::before { content:''; position:absolute; inset:-8px; }
.calendar-copy:hover { color:var(--accent-strong); }
.calendar-copy.is-copied { color:var(--accent-strong); }
.calendar-copy svg { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.6; }
.calendar-copy-status { overflow-wrap:anywhere; }
.calendar-copy.is-hidden { visibility:hidden; pointer-events:none; }
.release-calendar-note:empty { display:none; }
.calendar-subscribe-trigger { padding:9px 12px; border:1px solid var(--line-strong); border-radius:8px; background:transparent; color:var(--text); font:inherit; font-size:13px; cursor:pointer; }
.release-calendar-close { position:absolute; right:8px; top:8px; }
.release-calendar-album { margin:0; font-size:14px; overflow-wrap:anywhere; }
.release-calendar-day { margin:6px 0 18px; font-size:12px; color:var(--accent-strong); }
.release-calendar-option { display:block; margin-top:8px; padding:12px; border:1px solid var(--line-strong); border-radius:8px; font-size:14px; }
.release-calendar-option:hover { background:var(--surface-2); border-color:var(--accent-line); }
.release-calendar-option small { display:block; margin-top:2px; color:var(--text-2); font-size:12px; }
.release-calendar-note { margin:16px 0 0; color:var(--text-2); font-size:12px; line-height:1.5; }
@media (max-width:600px) {
  .release-calendar-button { min-width:44px; min-height:44px; }
  /* A 44 px touch target around the compact cover label. */
  .editorial-cards button.cover-countdown::before { content:''; position:absolute; left:-4px; right:-4px; top:50%; height:44px; transform:translateY(-50%); }
  .album-calendar { grid-column:2; margin:0; }
}
@media (min-width:601px) and (max-width:1150px) {
  .editorial-controls button:first-child { left:-6px; }
  .editorial-controls button:last-child { right:-6px; }
}
@media (max-width: 700px), (pointer: coarse) and (max-width: 1024px) {
  /* The compact gutter is 16px; leave room for the outside 44px arrow targets. */
  .editorial-slider { margin-inline:12px; }
}
@media (max-width: 600px) {
  .editorial-slider { margin-inline:16px; }
  .editorial-controls button:first-child { left:-4px; }
  .editorial-controls button:last-child { right:-4px; }
}
/* Touch phones: swipe with a peeking next card, no side buttons, position dots in flow below the track. */
@media (max-width: 600px) and (pointer: coarse) {
  .editorial-slider { margin-inline:0; }
  .editorial-controls button { display:none; }
  .editorial-cards { padding-bottom:10px; }
  .editorial-dots { display:flex; justify-content:center; gap:6px; padding:0 0 12px; }
  .editorial-dots span { width:6px; height:6px; border-radius:50%; background:var(--line-strong); }
  .editorial-dots span[data-active="true"] { background:var(--accent); }
}

.card {
  position: relative;
  min-width: 0;
  padding: 12px 12px 10px;
  border-radius: var(--radius-m);
  transition: background 0.2s var(--ease);
}
.card:hover,
.card:focus-within {
  background: var(--surface);
}
.card-link {
  display: block;
  border-radius: var(--radius-s);
}
.card-visual { position: relative; }
.cover-genres { position:absolute; top:8px; left:8px; right:8px; width:fit-content; max-width:calc(100% - 16px); padding:4px 7px; border-radius:7px; background:#101014e8; color:#fff; font-size:11px; line-height:1.35; pointer-events:none; z-index:2; opacity:0; }
.card:hover .cover-genres, .card:focus-within .cover-genres { opacity:1; }
@media (max-width: 700px), (hover: none) {
  .card .cover-genres { opacity:1; }
}
#listen, #video { scroll-margin-top: calc(var(--topbar) + 16px); }
.static-catalog-list { list-style:none; padding:0; display:grid; grid-template-columns:repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap:16px 24px; }
.static-catalog-list li { min-width:0; overflow-wrap:anywhere; }
.static-catalog-list a { display:block; color:var(--text); }
.static-catalog-list span { display:block; color:var(--muted); font-size:var(--fs-sm); }
#static-content > section + section { margin-top:32px; }
#static-content > .release-info { margin-top:20px; }
.art {
  position: relative;
  aspect-ratio: 1;
  background:
    linear-gradient(145deg, var(--surface-2), var(--surface));
  display: grid;
  place-items: center;
  border-radius: var(--radius-s);
  overflow: hidden;
  color: var(--muted);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    var(--shadow-1);
}
.art .icon {
  width: 34%;
  height: 34%;
  stroke-width: 1.2;
  opacity: 0.7;
}
.art.cover-loading::after {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}
.art.cover-loading img { opacity: 0; }
.art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s var(--ease);
}
.card:hover .art img {
  transform: scale(1.03);
}
.play-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  border: 0;
  padding: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-2);
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.2s var(--ease),
    transform 0.2s var(--ease);
}
.player-open-icon { font-size: 24px; line-height: 1; }
.play-badge .icon {
  width: 22px;
  height: 22px;
  fill: currentColor;
  stroke: none;
  margin-left: 2px;
}
.card-playback-pause { display: none; width: 22px; height: 22px; }
.play-badge[data-playback="playing"] .icon { display: none; }
.play-badge[data-playback="playing"] .card-playback-pause { display: block; }
.card .play-badge[data-playback="playing"] { opacity: 1; transform: none; }
.card:hover .play-badge,
.card:focus-within .play-badge {
  opacity: 1;
  transform: none;
}
@media (hover: none) {
  .play-badge {
    opacity: 1;
    transform: none;
  }
}
.card-copy {
  --card-favorite-clearance: 52px;
  position: relative;
  padding: 10px var(--card-favorite-clearance) 0 0;
}
.card :is(h3, h4) {
  font-size: var(--fs-base);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.005em;
  text-wrap: pretty;
  margin: 0 0 2px;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card :is(h3, h4) a::after {
  content: "";
  position: absolute;
  inset: 0;
}
.card :is(h3, h4) a:focus-visible {
  outline: none;
}
.card:has(:is(h3, h4) a:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.artist {
  font-size: var(--fs-sm);
  color: var(--text-2);
  margin: 0;
  overflow-wrap: anywhere;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: var(--fs-xs);
  color: var(--muted);
}
.card-meta .service-icons {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.card-meta .card-type { margin-left:auto; }
.service-icon { position:relative; z-index:2; display:inline-flex; width:20px; height:20px; }
.service-icon img { width:100%; height:100%; object-fit:contain; }
.service-icon-bandcamp { width:36px; height:24px; }
.service-icon-youtube { width:28px; height:20px; }
.favorite {
  position: relative;
  z-index: 2;
  min-width: 44px;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: var(--fs-base);
  font-weight: 600;
  padding: 0 18px;
  transition:
    background 0.15s var(--ease),
    border-color 0.15s var(--ease),
    color 0.15s var(--ease),
    transform 0.15s var(--ease);
}
.favorite .icon {
  width: 20px;
  height: 20px;
  stroke-width: 1.8;
  transition: transform 0.2s var(--ease);
}
.favorite:hover {
  background: var(--surface-2);
  border-color: rgba(255, 255, 255, 0.28);
}
.favorite:active .icon {
  transform: scale(0.85);
}
.favorite[aria-pressed="true"] {
  color: var(--accent-strong);
  border-color: var(--accent-line);
  background: var(--accent-soft);
}
.favorite[aria-pressed="true"] .icon {
  fill: currentColor;
  stroke: currentColor;
}
.card-copy > .favorite {
  position: absolute;
  right: -8px;
  top: 4px;
  width: 40px;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  background: transparent;
  border-color: transparent;
  color: var(--text-2);
}
.card-copy > .favorite:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}
.card-copy > .favorite[aria-pressed="true"] {
  color: var(--accent-strong);
  background: transparent;
}
.empty {
  min-width: 0;
  overflow-wrap: anywhere;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 56px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-l);
  color: var(--text-2);
  font-size: var(--fs-base);
  text-align: center;
}
.empty .icon {
  width: 36px;
  height: 36px;
  color: var(--muted);
  stroke-width: 1.3;
  margin-bottom: 6px;
}
.empty strong {
  color: var(--text);
  font-size: var(--fs-xl);
  letter-spacing: -0.02em;
}
.empty span { max-width: 44ch; }
.empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 10px; max-width: 100%; }
.empty-clear-search { min-height: 44px; max-width: 100%; padding: 9px 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
.empty-clear-search:hover { background: var(--surface-2); border-color: var(--accent-line); }
.empty-clear-filters { background: var(--surface-2); border-color: var(--accent-line); }
@media (max-width: 600px) {
  .empty-actions { flex-direction: column; width: 100%; max-width: 280px; }
  .empty-clear-search { width: 100%; min-height: 48px; }
}

/* Upcoming rail ---------------------------------------------------------- */
#upcoming {
  position: sticky;
  top: calc(var(--topbar) + 20px);
  padding: 18px;
  border-radius: var(--radius-l);
  background: var(--surface);
  border: 1px solid var(--line);
}
#upcoming h2 {
  font-size: var(--fs-md);
  font-weight: 650;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
#upcoming h2 .icon {
  width: 18px;
  height: 18px;
  color: var(--accent);
}
.upcoming-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px 8px;
  margin: 0 -8px;
  border-radius: var(--radius-m);
  transition: background 0.15s var(--ease);
}
.upcoming-item:hover {
  background: rgba(255, 255, 255, 0.05);
}
.upcoming-item .art {
  border-radius: 6px;
}
.upcoming-item time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-strong);
  margin-bottom: 3px;
}
.upcoming-item strong {
  display: block;
  font-size: var(--fs-base);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.upcoming-item p {
  color: var(--text-2);
  font-size: var(--fs-sm);
  line-height: 1.35;
  margin: 2px 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.text-link {
  color: var(--accent-strong);
  font-size: var(--fs-sm);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
#upcoming > .text-link {
  margin-top: 10px;
  padding: 4px 0;
}
#upcoming > .muted {
  font-size: var(--fs-sm);
  margin: 10px 0;
}
.calendar-subscribe {
  grid-column: 1/-1;
  margin-top: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.calendar-subscribe h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  font-size: var(--fs-base);
  font-weight: 650;
}
.calendar-subscribe h3 .icon { width: 18px; height: 18px; color: var(--accent); }
.calendar-subscribe p {
  margin: 0 0 12px;
  color: var(--text-2);
  font-size: var(--fs-sm);
  line-height: 1.4;
}

/* Album page ------------------------------------------------------------- */
#album-page {
  position: relative;
}
.album-backdrop {
  position: absolute;
  inset: calc(-1 * var(--topbar) - 32px) calc(-1 * var(--gutter)) auto;
  height: 520px;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.album-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(80px) saturate(140%);
  transform: scale(1.3);
  opacity: 0.32;
}
.album-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(11, 11, 12, 0.15),
    rgba(11, 11, 12, 0.6) 55%,
    var(--bg)
  );
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px 0 8px;
  margin: -6px 0 12px -8px;
  border-radius: 999px;
  color: var(--text-2);
  font-size: var(--fs-base);
  font-weight: 500;
  transition:
    background 0.15s var(--ease),
    color 0.15s var(--ease);
}
.back-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}
.back-link .icon {
  width: 18px;
  height: 18px;
}
.album-mobile-meta { display: none; }
.album-title-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  grid-column: 2;
}
.album-title-row > h1 { flex: 1; min-width: 0; }
.album-title-row > .favorite {
  margin-left: 0;
  flex: 0 0 44px; width: 44px; height: 44px;
  padding: 0; background: transparent; border: 0;
}
.album-title-row > .favorite .icon { width: 24px; height: 24px; }
.service-label-short { display: none; }
.album-hero {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 20px 32px;
  align-items: start;
  padding-bottom: 18px;
}
.album-hero .art {
  border-radius: var(--radius-m);
  box-shadow: none;
}
.album-share-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; gap: 8px; padding: 0 20px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; background: rgba(17,19,21,.48); color: var(--text); font: inherit; font-size: 14px; font-weight: 500; white-space: nowrap; cursor: pointer; }
.album-share-button:hover { border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.075); }
.album-share-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.album-share-button svg, .album-share-dialog svg { width: 18px; height: 18px; flex-shrink: 0; }
.album-share-dialog { position: fixed; inset: 0; width: min(492px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 28px; border: 1px solid #343839; border-radius: 20px; background: #151719; color: #f5f5f7; box-shadow: 0 32px 120px #0009; margin: auto; overflow: auto; }
.album-share-dialog::backdrop { background: #030605b8; backdrop-filter: blur(5px); }
.album-share-dialog h2 { margin: 0 40px 5px 0; font-size: 23px; letter-spacing: -.6px; }
.album-share-intro { margin: 0 25px 24px 0; color: #b3b3b8; font-size: 14px; }
.album-close { position: absolute; top: 16px; right: 16px; }
.album-link-card { border: 1px solid #ffffff16; border-radius: 12px; overflow: hidden; margin-bottom: 20px; background: #202424; }
.album-link-card img { width: 100%; display: block; aspect-ratio: 1200 / 630; }
.album-link-caption { padding: 13px 16px 15px; }
.album-link-caption small { display: block; color: #b2b9b5; font-size: 10px; letter-spacing: 1px; margin-bottom: 5px; }
.album-link-caption strong { display: block; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.album-link { display: block; width: 100%; min-width: 0; border: 1px solid #ffffff1a; border-radius: 10px; padding: 11px 13px; background: #0d1011; color: #b1b9b5; font-size: 16px; }
.album-copy-primary { margin-top: 12px; display: flex; justify-content: center; align-items: center; gap: 9px; width: 100%; min-height: 46px; border-radius: 999px; background: #1fd766; color: #06140b; font-weight: 650; }
.album-copy-primary:hover { background: #3ee281; }
.album-native-share { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 44px; margin-top: 6px; color: #c5cec8; font-size: 13px; }
.album-native-share:hover { color: #1fd766; }
.album-status { margin: 8px 0 0; font-size: 12px; color: #91e7ab; }
.album-status:empty { display: none; }
.album-preview-note { margin: 14px 0 0; font-size: 11px; color: #8c9490; text-align: center; }
@media (max-width: 600px) {
  .album-share-button { padding: 0 14px; font-size: 13px; gap: 6px; }
  .album-share-button svg { width: 16px; height: 16px; }
  .album-share-dialog { inset: auto 0 0; width: 100%; max-width: 100%; max-height: calc(100dvh - 16px); margin: 0; padding: 25px 20px max(24px, env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; border-bottom: 0; }
  .album-share-intro { font-size: 13px; }
}
.cover-zoom { position: relative; }
.cover-zoom img { transition: transform 220ms ease; }
.cover-zoom-trigger { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; background: transparent; cursor: zoom-in; border-radius: inherit; }
.cover-zoom-trigger span { position: absolute; bottom: 7px; right: 7px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 5px; background: #10121699; color: white; }
.cover-zoom-trigger svg { display: block; width: 13px; height: 13px; }
@media (hover: hover) {
  .cover-zoom-trigger span { opacity: 0; }
  .cover-zoom:hover .cover-zoom-trigger span,
  .cover-zoom-trigger:focus-visible span { opacity: 1; }
}
.cover-zoom-trigger:focus-visible { outline: 3px solid var(--accent); outline-offset: -4px; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .cover-zoom:hover img { transform: scale(1.025); }
}
.cover-viewer { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 64px 20px 40px; border: 0; background: transparent; color: white; overflow: auto; }
.cover-viewer[open] { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 16px; }
.cover-viewer::backdrop { background: rgb(5 7 9 / 94%); backdrop-filter: blur(12px); }
.cover-viewer-image { display: block; width: auto; height: auto; max-width: min(88vw, 1000px); max-height: 76dvh; object-fit: contain; border-radius: 4px; box-shadow: 0 24px 100px #0009; flex-shrink: 0; }
.cover-viewer-caption { margin: 0; max-width: 80vw; text-align: center; font-size: 13px; color: #b8bdc5; }
/* The one larger variant: on the near-black backdrop beside a big image the
   button needs a full 44 px circle with an edge; cross and colours stay shared. */
.cover-viewer-close { position: absolute; top: max(14px, env(safe-area-inset-top)); right: max(14px, env(safe-area-inset-right)); color: white; }
.cover-viewer-close::before { inset: 0; border: 1px solid rgb(255 255 255 / 20%); background: #202328; }
@media (hover: hover) { .cover-viewer-close:hover::before { background: #2e3238; } }
.cover-viewer-close:active::before { background: #34383f; }
button.cover-viewer-close:focus-visible { outline-offset: 3px; }
.cover-viewer-close svg { width: 20px; height: 20px; }
body:has(.cover-viewer[open]) { overflow: hidden; }
.album-kicker {
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-2);
  margin: 0 0 8px;
}
.album-hero h1 {
  font-size: clamp(32px, 3.8vw, 60px);
  letter-spacing: -0.04em;
  margin: 0 0 12px;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.album-artist {
  font-size: var(--fs-lg);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}
.album-date {
  color: var(--text-2);
  font-size: var(--fs-base);
  margin: 4px 0 0;
}
.tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 14px 0 0;
}
.tags:empty {
  display: none;
}
.tag {
  font-size: var(--fs-sm);
  font-weight: 500;
  border-radius: 999px;
  padding: 5px 11px;
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.07);
}
a.tag {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  text-decoration: none;
}
a.tag:hover { color: var(--text); }
a.tag:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.album-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  margin-top: 0;
}
.album-actions > .album-calendar { margin: 0; }
.album-actions:empty { display: none; }
.spotify-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 22px 0 18px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: var(--fs-base);
  font-weight: 700;
  transition:
    transform 0.15s var(--ease),
    background 0.15s var(--ease);
}
.spotify-button .icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
}
.spotify-button:hover {
  background: var(--accent-strong);
  transform: scale(1.03);
}
.album-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: start;
}
.album-columns.youtube-active { grid-template-columns: minmax(0, 1fr); }
.album-columns.youtube-active .release-info { display: none; }
.album-columns h2 {
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 0 0 14px;
}
.edition {
  margin-bottom: 16px;
}
.edition h3 {
  font-size: var(--fs-sm);
  color: var(--text-2);
  font-weight: 500;
  margin: 0 0 10px;
}
.edition iframe {
  display: block;
  width: 100%;
  border: 0;
  border-radius: var(--radius-m);
  background: var(--surface);
  margin: 0;
}
.edition iframe[src^="https://open.spotify.com/embed/"] {
  border-radius: 12px;
  background: transparent;
}
.fallback-box {
  display: grid;
  gap: 12px;
  justify-items: start;
  padding: 24px;
  border-radius: var(--radius-m);
  background: var(--surface);
  border: 1px solid var(--line);
}
.fallback {
  font-size: var(--fs-base);
  color: var(--text-2);
  line-height: 1.6;
  margin: 0;
}
.player-load-error :is(button, a) { display:inline-flex; align-items:center; min-height:44px; }
.player-load-error a { color:var(--accent); text-decoration:underline; text-underline-offset:3px; }
.playback-help {
  margin-top: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.playback-help summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-sm);
  color: var(--text-2);
  min-height: 48px;
  padding: 8px 14px;
  cursor: pointer;
  border-radius: var(--radius-s);
}
.playback-help summary::-webkit-details-marker {
  display: none;
}
.playback-help summary::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-left: auto;
  flex: 0 0 6px;
  transition: transform 0.15s var(--ease);
}
.playback-help[open] summary::after {
  transform: rotate(225deg);
}
.playback-help summary:hover {
  color: var(--text);
}
.playback-note {
  font-size: var(--fs-sm);
  color: var(--text-2);
  line-height: 1.6;
  margin: 0 14px 14px;
  max-width: 64ch;
}
.playback-help[open] { background: var(--surface); }
.playback-help-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; margin: 0 14px 16px; border: 1px solid var(--line-strong); border-radius: 8px; font-size: var(--fs-sm); }
.playback-help-link .icon { width: 16px; height: 16px; }
.release-info {
  position: sticky;
  top: calc(var(--topbar) + 20px);
  padding: 22px;
  border-radius: var(--radius-l);
  background: var(--surface);
  border: 1px solid var(--line);
}
.release-info > dl:not(:last-child) {
  margin-bottom: 20px;
}
dl {
  margin: 0;
}
dl > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  font-size: var(--fs-base);
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
dl > div:last-child {
  border-bottom: 0;
}
dt {
  color: var(--muted);
  flex: 0 0 auto;
}
dd {
  margin: 0;
  text-align: right;
  overflow-wrap: anywhere;
}
.sources {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}
.sources a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 0 4px;
  margin: 0 -4px;
  border-radius: var(--radius-s);
  font-size: var(--fs-base);
  font-weight: 500;
  overflow-wrap: anywhere;
  transition: background 0.15s var(--ease);
}
.sources a .icon {
  width: 16px;
  height: 16px;
  color: var(--muted);
}
.sources a:hover {
  background: rgba(255, 255, 255, 0.06);
}
.sources a:hover .icon {
  color: var(--text);
}
/* "Inne albumy wykonawcy" (19 XI 2026): two columns of small list cards; the
   whole tile opens the album, the cover's play works like a list card's. */
.related-albums { list-style:none; margin:0 0 14px; padding:0; display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:6px; }
.related-album { position:relative; min-width:0; padding:6px 6px 8px; border-radius:var(--radius-m); transition:background .15s var(--ease); }
.related-album:nth-child(odd) { margin-left:-6px; }
.related-album:nth-child(even) { margin-right:-6px; }
.related-album:is(:hover, :focus-within) { background:rgba(255, 255, 255, 0.06); }
.related-album.is-current { background:var(--accent-soft); }
.related-album.is-current h3 { color:var(--accent-strong); }
.related-visual { position:relative; }
.related-cover { display:block; border-radius:var(--radius-s); }
.related-album .art { background:linear-gradient(145deg, var(--surface-3), var(--surface-2)); }
.related-album:hover .art img { transform:scale(1.03); }
.related-album h3 { margin:8px 0 1px; font-size:13px; font-weight:600; line-height:1.3; letter-spacing:-0.005em; text-wrap:pretty;
  overflow-wrap:anywhere; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.related-album h3 a::after { content:""; position:absolute; inset:0; border-radius:inherit; }
.related-album h3 a:focus-visible { outline:none; }
.related-album:has(h3 a:focus-visible) { outline:2px solid var(--accent); outline-offset:2px; }
.related-album .artist { font-size:var(--fs-sm); white-space:normal; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
/* The static page has no side column: keep the panel's tile size before the app takes over. */
@media (min-width: 901px) { #static-content .related-albums { max-width:256px; } }
.related-date { margin:3px 0 0; font-size:var(--fs-xs); color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.related-date.is-announced { color:var(--accent-strong); font-weight:600; }
/* A ~100 px cover gets a 34 px control with a 44 px target. */
.related-album .play-badge { z-index:2; right:6px; bottom:6px; width:34px; height:34px; }
.related-album .play-badge::before { content:""; position:absolute; inset:-5px; }
.related-album .play-badge :is(.icon, .card-playback-pause) { width:16px; height:16px; }
.related-album .play-badge .player-open-icon { font-size:18px; }
.related-album .play-badge:is([data-playback="loading"], [data-playback="buffering"])::after { width:16px; height:16px; }
.related-album:is(:hover, :focus-within, .is-current) .play-badge,
.related-album .play-badge:is([data-playback="playing"], [data-playback="loading"], [data-playback="buffering"]) { opacity:1; transform:none; }
@media (max-width: 900px) and (min-width: 560px) {
  .related-albums { grid-template-columns:repeat(4, minmax(0, 1fr)); }
  .related-album:nth-child(n) { margin:0; }
}
/* An expanded long tracklist must not stay pinned as sticky. */
.release-info:has(> .tracklist-details[open]) {
  position: static;
}
/* The summary „Utwory (n)” continues the fact rows: the facts above keep their
   last separator, the summary itself has none (the cover credit has its own). */
.release-info > dl:has(+ .tracklist-details) {
  margin-bottom: 0;
}
.release-info > dl:has(+ .tracklist-details) > div:last-child {
  border-bottom: 1px solid var(--line);
}
/* The 44px summary already brings its own air; the cover credit adds its padding. */
.tracklist-details {
  margin: 0 0 6px;
}
.tracklist-details > summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 44px;
  cursor: pointer;
  list-style: none;
  font-size: var(--fs-base);
}
.tracklist-details > summary::-webkit-details-marker {
  display: none;
}
.tracklist-details > summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}
.tracklist-label {
  color: var(--muted);
  transition: color 0.15s var(--ease);
}
.tracklist-details[open] > summary .tracklist-label {
  color: var(--text);
}
@media (hover: hover) {
  .tracklist-details > summary:hover .tracklist-label {
    color: var(--text);
  }
}
.tracklist-count {
  color: var(--muted);
}
.tracklist-chevron {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 9px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.2s var(--ease);
}
.tracklist-details[open] .tracklist-chevron {
  transform: translateY(1px) rotate(225deg);
}
.tracklist-length {
  text-align: right;
}
@media (prefers-reduced-motion: reduce) {
  .tracklist-label,
  .tracklist-chevron {
    transition: none;
  }
}
@supports selector(::details-content) {
  @media (prefers-reduced-motion: no-preference) {
    .tracklist-details {
      interpolate-size: allow-keywords;
    }
    /* clip + margin: the focus ring of the source link stays whole. */
    .tracklist-details::details-content {
      block-size: 0;
      overflow: clip;
      overflow-clip-margin: 6px;
      transition: block-size 0.25s var(--ease), content-visibility 0.25s allow-discrete;
    }
    .tracklist-details[open]::details-content {
      block-size: auto;
    }
  }
}
.tracklist {
  list-style: none;
  padding: 0 0 0 10px;
  margin: 0 0 0 2px;
  border-left: 1px solid var(--line-strong);
  font-variant-numeric: tabular-nums;
}
.tracklist li {
  display: grid;
  grid-template-columns: 2ch minmax(0, 1fr) auto;
  gap: 10px;
  align-items: baseline;
  padding: 6px 0;
  font-size: var(--fs-base);
  line-height: 1.4;
}
.track-number,
.track-duration {
  color: var(--muted);
  text-align: right;
}
.track-main {
  min-width: 0;
  overflow-wrap: anywhere;
}
.track-title,
.track-artists {
  display: block;
}
.track-artists {
  margin-top: 2px;
  color: var(--text-2);
  font-size: var(--fs-sm);
}
.tracklist-source {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: var(--fs-sm);
}
.tracklist-source a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 32px;
  color: var(--text-2);
}
.tracklist-source a .icon {
  width: 12px;
  height: 12px;
}
.tracklist-source a:hover {
  color: var(--text);
}
.cover-credit {
  font-size: var(--fs-sm);
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.cover-open {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: var(--fs-base);
  font-weight: 500;
  cursor: pointer;
}
.cover-open .icon {
  width: 15px;
  height: 15px;
}
.cover-open:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Toast ------------------------------------------------------------------ */
.notice {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #f5f5f7;
  color: #0b0b0c;
  box-shadow: var(--shadow-3);
  border-radius: 999px;
  padding: 12px 20px;
  font-size: var(--fs-base);
  font-weight: 500;
  z-index: 50;
  max-width: calc(100% - 32px);
  width: max-content;
  animation: toast-in 0.22s var(--ease);
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translate(-50%, 10px);
  }
}

/* Compact, non-modal privacy controls; both choices have equal prominence. */
.privacy-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; width: 100%; max-width: 2100px; margin: 0 auto; padding: 12px var(--gutter) 24px; }
.privacy-footer a, .privacy-settings { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 0; border: 0; border-radius: 0; background: transparent; color: var(--muted); font-size: 13px; line-height: 1.5; text-align: left; }
.privacy-footer a:hover, .privacy-settings:hover { color: var(--text); text-decoration: underline; }
.privacy-document + .privacy-footer { max-width: 780px; padding-inline: 24px; }
.privacy-panel { position: fixed; bottom: 12px; right: 12px; z-index: 41; width: min(420px, calc(100% - 24px)); padding: 20px; border: 1px solid #555; border-radius: 16px; background: #202024; color: #eee; box-shadow: 0 8px 32px #0008; max-height: calc(100dvh - 24px); overflow: auto; }
.privacy-panel[hidden] { display: none; }
.privacy-panel p { font-size: 14px; line-height: 1.5; margin: 10px 0; }
.privacy-actions { display: flex; gap: 8px; margin-top: 16px; }
.privacy-panel button { flex: 1; padding: 10px; border: 1px solid #888; border-radius: 8px; background: #303035; color: white; font-size: 14px; }
.privacy-actions button { min-height: 44px; font-weight: 600; }
.privacy-custom { margin: 12px 0; border-top: 1px solid var(--line-strong); }
.privacy-custom summary { cursor: pointer; padding: 12px 0; font-size: 14px; }
.privacy-custom[open] summary { font-weight: 650; }
.privacy-panel:has(.privacy-custom[open]) .privacy-actions { display: none; }
.privacy-service { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; min-height: 52px; border-top: 1px solid var(--line); font-size: 15px; cursor: pointer; }
.privacy-service input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.privacy-choice { min-width: 66px; font-size: 12px; color: var(--text-2); }
.privacy-choice::after { content: 'Wyłączony'; }
.privacy-service input:checked + .privacy-choice::after { content: 'Włączony'; color: var(--accent); }
.privacy-panel .privacy-save { width: 100%; min-height: 44px; margin-top: 12px; font-weight: 650; }
.privacy-panel .privacy-hint { color: var(--text-2); font-size: 12px; }
.privacy-panel a { font-size: 12px; }
.privacy-panel :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.privacy-status:empty { display: none; }
/* .privacy-panel button styles the consent buttons; the close button keeps the shared look. */
.privacy-panel .privacy-close { position: absolute; top: 6px; right: 6px; flex: none; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--text-2); font-size: inherit; }
@media (hover: hover) { .privacy-panel .privacy-close:hover { color: var(--text); } }
.privacy-panel > strong { display: block; padding-right: 28px; }
.privacy-document { max-width: 780px; margin: 0 auto; padding: 32px 24px 24px; line-height: 1.7; }
.privacy-document > a:first-child { display: inline-block; margin-bottom: 20px; }
.privacy-document h1 { margin-top: 0; font-size: 32px; }
.privacy-document h2 { font-size: 22px; margin-top: 28px; }
.privacy-document a, .privacy-panel a { color: #62eaa0; text-decoration: underline; }

/* Mobile: keep layout inside the device, but preserve deliberate pinch zoom. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.workspace, #content, .filter-group, .select-field, .date-filter { min-width: 0; }
.release-info, .privacy-document { overflow-wrap: anywhere; }
/* Breakpoints ------------------------------------------------------------ */
@media (min-width: 1750px) {
  .cards {
    grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
  }
  .catalog-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 56px;
  }
}
@media (max-width: 1150px) {
  :root {
    --sidebar: 212px;
    --gutter: 28px;
  }
  .sidebar {
    padding: 24px 12px 16px;
  }
  .catalog-layout {
    grid-template-columns: minmax(0, 1fr) 232px;
    gap: 28px;
  }
  .cards {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
  .album-columns {
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 26px;
  }
  .select-field {
    width: 170px;
  }
}
@media (max-width: 900px) {
  .album-columns { row-gap: 20px; }
  .listening > .edition:last-child { margin-bottom: 0; }
  .album-columns,
  .catalog-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .release-info,
  #upcoming {
    position: static;
  }
  #upcoming {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
  }
  #upcoming h2,
  #upcoming > .text-link,
  #upcoming > .muted {
    grid-column: 1/-1;
  }
  .album-hero {
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 24px;
  }
}
@media (max-width: 700px), (pointer: coarse) and (max-width: 1024px) {
  :root {
    --gutter: 16px;
    --topbar: 60px;
    --control-h: 44px;
  }
  .sidebar {
    position: fixed;
    inset: auto 0 0 0;
    width: auto;
    padding: 0;
    display: block;
    border-right: 0;
    border-top: 1px solid var(--line);
    background: rgba(11, 11, 12, 0.86);
    -webkit-backdrop-filter: saturate(160%) blur(18px);
    backdrop-filter: saturate(160%) blur(18px);
    overflow: visible;
    z-index: 25;
  }
  .sidebar > .brand,
  .genre-navigation,
  .sidebar-note {
    display: none;
  }
  .primary-nav {
    flex-direction: row;
    gap: 0;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  }
  .primary-nav .singles-nav-row { display:none; }
  .mobile-format-nav { display:flex; gap:6px; margin:0 0 24px; padding:4px; width:fit-content; border:1px solid var(--line-strong); border-radius:9px; }
  .mobile-format-row { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:0 0 24px; }
  .mobile-format-row .mobile-format-nav { margin:0; }
  .mobile-instagram { display:flex; flex:none; align-items:center; gap:8px; min-height:44px; padding:0 16px 0 12px; font-size:14px; }
  .mobile-instagram .instagram-mark { width:20px; height:20px; }
  .mobile-instagram:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
  /* Below 360 px the format switch needs the room: the pill keeps its brand border and glyph, the aria-label names it. */
  @media (max-width: 359px) {
    .mobile-instagram { justify-content:center; width:44px; padding:0; }
    .mobile-instagram > span:not(.instagram-mark) { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
  }
  .mobile-format-nav a { display:flex; align-items:center; min-height:44px; padding:8px 14px; border-radius:6px; font-size:13px; color:var(--text-2); }
  .mobile-format-nav .is-current, .mobile-format-nav [aria-current="page"] { background:var(--accent-soft); color:var(--accent); }
  .primary-nav :is(a, button) {
    position: relative;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    min-height: 52px;
    padding: 6px 4px;
    font-size: var(--fs-xs);
    border-radius: var(--radius-s);
  }
  .primary-nav a[aria-current="page"] {
    background: transparent;
  }
  .primary-nav :is(a, button) .icon {
    width: 22px;
    height: 22px;
  }
  .recent-nav-full { display: none; }
  .recent-nav-short { display: inline; white-space: nowrap; }
  .primary-nav small {
    position: absolute;
    margin: 0;
    transform: translate(16px, -14px);
    min-width: 18px;
    height: 18px;
    font-size: var(--fs-xs);
    padding: 0 5px;
  }
  #mobile-genres { display: flex; }
  .workspace {
    margin: 0;
    padding-bottom: calc(84px + env(safe-area-inset-bottom));
  }
  .has-player .workspace { padding-bottom: calc(84px + var(--player-space, 0px) + env(safe-area-inset-bottom)); }
  .topbar {
    height: auto;
    min-height: var(--topbar);
    padding: 10px max(var(--gutter), env(safe-area-inset-right)) 10px max(var(--gutter), env(safe-area-inset-left));
    gap: 12px;
  }
  .mobile-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    font-size: var(--fs-md);
    font-weight: 700;
    letter-spacing: -0.3px;
    white-space: nowrap;
  }
  .mobile-brand .brand-mark {
    width: 29px;
    height: 32px;
  }
  #search {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    height: 44px;
  }
  .account-information { display: grid; gap: 0; margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--line-strong); }
  .account-information :is(a, button) { display: block; min-height: 44px; padding: 11px 0; border: 0; background: transparent; color: var(--text-2); font: inherit; font-size: 14px; line-height: 1.5; text-align: left; text-decoration: none; cursor: pointer; }
  /* The mobile menu keeps its plain text list; Instagram stays before privacy settings. */
  .account-information :is(.icon, .instagram-mark) { display: none; }
  .account-information .info-instagram { order: 1; }
  .account-information .sidebar-info-settings { order: 2; }
  .account-information :is(a, button):hover { color: var(--text); }
  .account-information :is(a, button):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  .search-hint {
    display: none;
  }
  #content {
    padding: 22px max(var(--gutter), env(safe-area-inset-right)) 24px max(var(--gutter), env(safe-area-inset-left));
  }
  .page-heading {
    margin-bottom: 12px;
  }
  h1 {
    font-size: 32px;
  }
  #view-description {
    font-size: var(--fs-base);
  }
  .filter-toolbar {
    padding: 10px 0 14px;
    margin-bottom: 8px;
    gap: 10px;
  }
  #mobile-filters { display: flex; align-items: center; gap: 12px; flex: 1 1 0; min-width: 0; min-height: 48px; text-align: left; }
  #mobile-filter-label { flex: none; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); padding: 12px 16px; }
  #mobile-filter-summary { color: var(--text-2); font-size: 13px; line-height: 1.5; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .filter-toolbar > #count { flex: none; margin-left: auto; }
  .filter-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }
  .select-field,
  .platform-picker,
  .date-filter {
    width: 100%;
    max-width: 100%;
  }
  select {
    padding: 0 34px 0 14px;
    background-position: right 11px center;
  }
  .reset {
    grid-column: 1 / -1;
    justify-content: center;
    width: 100%;
  }
  #count {
    font-size: var(--fs-sm);
  }
  body:has(.date-filter[open]) .filter-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 49;
    background: rgba(0, 0, 0, 0.55);
    animation: fade-in 0.2s var(--ease);
  }
  @keyframes fade-in {
    from {
      opacity: 0;
    }
  }
  @keyframes sheet-in {
    from {
      transform: translateY(24px);
      opacity: 0;
    }
  }
  .day-heading {
    padding: 10px 0;
    font-size: var(--fs-sm);
  }
  .day-heading-date { gap: 8px; }
  .day-heading strong {
    font-size: 28px;
  }
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 8px;
  }
  .card {
    padding: 6px 6px 8px;
  }
  .card h3 {
    font-size: var(--fs-base);
  }
  .card .artist {
    font-size: var(--fs-sm);
  }
  .card-copy > .favorite {
    right: -6px;
  }
  .play-badge {
    width: 44px;
    height: 44px;
    right: 8px;
    bottom: 8px;
    opacity: 1;
    transform: none;
  }
  .album-backdrop {
    height: 380px;
  }
  .album-hero {
    grid-template-columns: 148px minmax(0, 1fr);
    gap: 8px 16px;
    align-items: start;
    padding-bottom: 16px;
  }
  .album-hero > .art {
    width: 100%;
    grid-column: 1;
    grid-row: 3 / 5;
    margin: 0;
  }
  .album-hero > .album-copy {
    display: contents;
    text-align: left;
  }
  .album-identity { display: contents; }
  .album-title-row { grid-column: 1 / -1; grid-row: 1; position: relative; display: block; padding-right: 52px; }
  .album-title-row > .favorite { position: absolute; right: 0; top: -5px; }
  .album-identity .album-title-row { margin-bottom: 0; }
  .album-hero h1 {
    grid-column: 2;
    font-size: 24px;
    margin: 0;
    text-wrap: initial;
  }
  .album-hero .album-kicker, .album-hero .album-date { display: none; }
  .album-hero .album-artist { grid-column: 1 / -1; grid-row: 2; font-size: 16px; margin: 0 0 8px; }
  .album-mobile-meta { display: block; grid-column: 2; grid-row: 3; align-self: end; margin: 0; color: var(--text-2); font-size: 13px; }
  .album-mobile-status { display: block; font-size: 12px; line-height: 1.5; }
  .album-mobile-date { display: block; margin-top: 4px; font-size: 18px; line-height: 1.3; font-weight: 600; color: var(--text); }
  .album-hero .tags { grid-column: 2; grid-row: 4; margin: 0; gap: 4px 6px; justify-content: flex-start; }
  .album-hero .tag { padding: 0; background: none; border-radius: 0; font-size: 12px; }
  .album-hero .tag:not(:last-child)::after { content: ' ·'; }
  .album-hero a.tag { min-height: 32px; padding: 3px 9px; border-radius: 8px; background: rgba(255,255,255,.07); }
  .album-hero a.tag:not(:last-child)::after { content: none; }
  .album-hero .album-actions { grid-column: 1 / -1; margin-top: 10px; justify-content: flex-start; container-type: inline-size; container-name: album-actions; }
  .album-actions .service-label-full { display: none; }
  .album-actions .service-label-short { display: inline; }
  .album-actions .spotify-button { padding: 0 14px; font-size: 14px; gap: 6px; }
  .album-actions:has(a:nth-of-type(2)) { gap: 8px; }
  .album-actions:has(a:nth-of-type(2)) .spotify-button { padding: 0 12px; font-size: 13px; }
  /* The row's available width and service count determine label length. */
  @container album-actions (min-width: 260px) {
    .album-actions:not(:has(a:nth-of-type(2))) .service-label-full { display: inline; }
    .album-actions:not(:has(a:nth-of-type(2))) .service-label-short { display: none; }
  }
  @container album-actions (min-width: 440px) {
    .album-actions:has(a:nth-of-type(2)) .service-label-full { display: inline; }
    .album-actions:has(a:nth-of-type(2)) .service-label-short { display: none; }
  }
  .release-info {
    padding: 18px;
  }
  .tracklist li { gap: 8px; }
  .tracklist-source a { min-height: 44px; }
  .upcoming-item {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 10px;
  }
  .notice {
    bottom: calc(84px + env(safe-area-inset-bottom));
    font-size: var(--fs-sm);
  }
  .empty {
    padding: 36px 16px;
  }

  /* Touch targets, safe areas and persistent playback. */

  /* 16px avoids iOS focusing a small input by zooming the whole page. */
  #query, .genre-panel input, select, input[type="date"] { font-size: 16px; }
  input[type="date"] { height: 44px; max-width: 100%; padding: 0 6px; appearance: none; }
  select, .genre-trigger { max-width: 100%; }
  #upcoming { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .genre-panel {
    border-radius: var(--radius-l);
    padding: 10px max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  }
  /* Thin touch scrollbars; the panel padding here is only 12 px. */
  .genre-panel { --genre-gutter: 10px; }
  .genre-options { margin-right: -10px; padding-right: max(0px, calc(10px - var(--genre-scrollbar, 0px))); }
  .genre-option { min-height: 44px; }
  .privacy-footer { flex-direction: column; align-items: stretch; gap: 0; padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .privacy-footer a, .privacy-footer .privacy-settings { width: 100%; gap: 6px; }
  .privacy-panel { bottom: calc(76px + env(safe-area-inset-bottom)); max-height: calc(var(--viewport-height, 100dvh) - 96px); }
  /* Search should not compete with fixed navigation/privacy for keyboard space. */
  body:has(#query:focus, input[type="date"]:focus) .sidebar,
  body:has(#query:focus, input[type="date"]:focus, .genre-panel input:focus) .privacy-panel { visibility: hidden; }
  body:not(:has(.sidebar)) .privacy-panel { bottom: 12px; max-height: calc(var(--viewport-height, 100dvh) - 24px); }
  .privacy-document + .privacy-footer { padding-bottom: max(24px, env(safe-area-inset-bottom)); }
  .mobile-brand span:not(.brand-mark) { display: none; }
  .day-heading .weekday { display: none; }
  .persistent-player { position: absolute; inset: auto 0 100%; margin: 0; padding: 12px max(20px, env(safe-area-inset-right)) 10px max(20px, env(safe-area-inset-left)); grid-template-columns: var(--player-cover, 40px) minmax(0, 1fr) auto; gap: 6px 10px; background: var(--bg); border-radius: 10px 10px 0 0; }
  .persistent-player-title { font-size: 13px; line-height: 1.35; }
  .persistent-player-artist { font-size: 11px; line-height: 1.4; }
  .persistent-player-in-window { font-size: 11px; }
  .persistent-player .persistent-player-close { width: 32px; height: 28px; }
  .persistent-player-hint { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; padding: 0 0 2px; margin: -7px 0 0; border-top: 0; border-bottom: 1px solid var(--line); }
  .persistent-player:has(.persistent-player-hint:not([hidden])) .persistent-player-hint { grid-row: 1; }
  .persistent-player:has(.persistent-player-hint:not([hidden])) :is(.persistent-player-artwork-wrap, .persistent-player-album, .persistent-player-controls) { grid-row: 2; }
  .persistent-player:has(.persistent-player-hint:not([hidden])) .persistent-player-timeline,
  .persistent-player:has(.persistent-player-hint:not([hidden])) .persistent-player-close { grid-row: 3; }
  .persistent-player:has(.persistent-player-hint:not([hidden])):has(.persistent-player-timeline[hidden]) .persistent-player-close { grid-row: 2; }
  .persistent-player-hint > a { margin-left: auto; min-height: 28px; white-space: nowrap; }
  .persistent-player-hint > button { flex: 0 0 32px; width: 32px; height: 28px; }
  .persistent-player-timeline { margin-right: 38px; }
  .persistent-player-play { width: 40px; height: 40px; }
  .persistent-player .persistent-player-next { width: 40px; height: 40px; }
  .persistent-player .persistent-player-prev { display: none; }
  .persistent-player-return { width: 40px; height: 40px; }
  .persistent-player-failure { row-gap: 2px; }
  .persistent-player-failure button, .persistent-player-failure a { min-height: 44px; }
  .persistent-player[data-service="bandcamp"] .persistent-player-close { width: 32px; transform: none; }
  .has-player .privacy-footer { padding-bottom: calc(84px + var(--player-space, 0px) + env(safe-area-inset-bottom)); }
  .has-player .privacy-panel { z-index: 100; }
}
@media (max-width: 360px) {
  :root {
    --gutter: 12px;
  }
  .mobile-brand {
    gap: 0;
  }
  select {
    padding: 0 32px 0 12px;
    background-position: right 9px center;
  }
}
@media (max-width: 300px) {
  .cards:not(.editorial-cards) { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

/* Odkrywaj: a separate catalog view with a stable artwork frame. */
#discovery-page { max-width:1180px; margin:0 auto; }
#discovery-page .page-heading { margin-bottom:28px; }
#discovery-page .discovery-lead { color:var(--text-2); }
.discovery-card { border:1px solid #2b3b32; border-radius:20px; background:linear-gradient(145deg,#1b2420,#111414 63%); box-shadow:var(--shadow-2); overflow:visible; }
.discovery-heading { display:flex; justify-content:space-between; align-items:start; gap:28px; padding:26px 34px 20px; }
.discovery-kicker { display:flex; align-items:center; gap:9px; margin:0 0 8px; color:var(--accent); font-size:12px; font-weight:700; }
.discovery-kicker .icon { width:20px; height:20px; }
.discovery-heading h2 { margin:0; font-size:clamp(28px,3vw,39px); line-height:1.13; letter-spacing:-.045em; }
.discovery-heading > div:first-child > p:last-child { max-width:590px; margin:9px 0 0; color:var(--text-2); font-size:14px; }
.discovery-genre { position:relative; display:grid; gap:7px; width:220px; flex:none; color:var(--text-2); font-size:12px; }
#discovery-genre-trigger { display:flex; justify-content:space-between; align-items:center; gap:14px; width:100%; min-height:44px; padding:0 14px; border:1px solid #465148; border-radius:8px; background:#1c2420; color:var(--text); text-align:left; font-size:14px; }
#discovery-genre-trigger::after { width:8px; height:8px; margin:-4px 2px 0; border-right:1.5px solid var(--text-2); border-bottom:1.5px solid var(--text-2); content:""; transform:rotate(45deg); flex:none; }
#discovery-genre-trigger[aria-expanded="true"] { border-color:#6d8a75; }
#discovery-genre-trigger:disabled { opacity:.55; cursor:default; }
.discovery-genre-options { position:absolute; top:calc(100% + 6px); right:0; z-index:20; width:max(100%,220px); max-height:min(320px,58vh); overflow:auto; padding:5px; border:1px solid #4a5a4e; border-radius:9px; background:#1c2420; box-shadow:0 18px 42px #000a; }
.discovery-genre-options button { display:block; width:100%; min-height:38px; padding:7px 10px; border-radius:5px; color:var(--text-2); text-align:left; font-size:13px; }
.discovery-genre-options button:hover,.discovery-genre-options button:focus-visible { background:#2a3d2e; color:var(--text); }
.discovery-genre-options button[aria-pressed="true"] { color:var(--accent); font-weight:700; }
.discovery-body { display:grid; grid-template-columns:minmax(220px,36%) minmax(0,1fr); gap:clamp(24px,4vw,55px); align-items:center; min-height:420px; padding:0 34px 26px; }
.discovery-cover-column { display:flex; flex-direction:column; align-items:stretch; gap:12px; width:min(100%,300px); }
#discovery-draw { display:flex; align-items:center; justify-content:center; gap:9px; min-height:48px; padding:8px 15px; border:1px solid var(--accent); border-radius:8px; background:#184029; color:var(--accent); font-size:14px; font-weight:750; }
#discovery-draw:hover:not(:disabled) { background:#225033; }
#discovery-draw:disabled { opacity:.45; cursor:default; }
#discovery-draw .icon { width:18px; height:18px; }
.discovery-cover { position:relative; width:100%; aspect-ratio:1; overflow:hidden; border-radius:12px; background:#222a25; box-shadow:0 18px 45px #0007; }
.discovery-cover a { display:block; width:100%; height:100%; }
.discovery-cover img { display:block; width:100%; height:100%; object-fit:contain; }
#discovery-cover-placeholder { display:grid; place-items:center; width:100%; height:100%; color:#608b6d; background:radial-gradient(circle at 35% 30%,#2b4234,#17241d 65%); }
#discovery-cover-placeholder .icon { width:88px; height:88px; stroke-width:1; }
#discovery-page[data-drawing="true"] #discovery-cover-placeholder { color:var(--accent); }
.discovery-result { min-width:0; }
.discovery-result-kicker { margin:0 0 20px; color:#8cbf99; text-transform:uppercase; letter-spacing:.14em; font-size:11px; font-weight:700; }
.discovery-result h3 { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; max-width:690px; margin:0; font-size:clamp(29px,4vw,55px); line-height:1.08; letter-spacing:-.05em; overflow-wrap:anywhere; }
#discovery-artist { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; overflow:hidden; margin:14px 0 0; color:#d1d7d2; font-size:clamp(17px,1.8vw,22px); }
.discovery-release-meta { display:flex; align-items:baseline; gap:12px; min-height:22px; margin-top:18px; }
#discovery-date { margin:0; color:#a6aea9; font-size:13px; white-space:nowrap; }
#discovery-category { min-width:0; overflow:hidden; color:var(--accent); font-size:13px; font-weight:650; text-overflow:ellipsis; white-space:nowrap; }
.discovery-actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:28px; }
.discovery-actions a { display:inline-flex; align-items:center; justify-content:center; gap:12px; min-height:45px; padding:10px 17px; border-radius:8px; font-size:13px; font-weight:700; }
#discovery-detail { background:var(--accent); color:var(--accent-ink); }
#discovery-detail:hover { background:var(--accent-strong); }
#discovery-listen { border:1px solid #536358; color:#e7f2e9; }
#discovery-listen:hover { background:#26382b; }
@keyframes discovery-shuffle { to { transform:rotate(360deg); } }
@media (prefers-reduced-motion:no-preference) { #discovery-page[data-drawing="true"] #discovery-cover-placeholder .icon { animation:discovery-shuffle .55s ease-in-out; } }
@media (max-width:900px) {
  .discovery-heading { display:block; padding-inline:24px; }
  .discovery-genre { width:min(100%,320px); margin-top:20px; }
  .discovery-body { display:block; min-height:0; padding-inline:24px; }
  .discovery-cover-column { margin-bottom:24px; }
}
@media (max-width:700px), (pointer:coarse) and (max-width:1024px) {
  .discovery-genre-options { position:fixed; top:auto; right:12px; bottom:calc(76px + env(safe-area-inset-bottom)); left:12px; width:auto; max-height:min(360px,58dvh); padding:8px; z-index:40; }
  .discovery-genre-options button { min-height:44px; }
}
@media (max-width:600px) {
  #discovery-page .page-heading { margin-bottom:22px; }
  #discovery-page .discovery-lead { font-size:14px; }
  .discovery-card { border-radius:14px; }
  .discovery-heading { display:block; padding:22px 20px 18px; }
  .discovery-heading h2 { font-size:25px; }
  .discovery-heading > div:first-child > p:last-child { font-size:13px; }
  .discovery-genre { width:100%; margin-top:20px; }
  .discovery-body { display:block; min-height:0; padding:0 20px 23px; }
  .discovery-cover-column { width:min(100%,480px); margin:0 auto 16px; }
  .discovery-cover-column .discovery-cover { width:min(100%,240px,32svh); margin-inline:auto; }
  .discovery-result { width:min(100%,480px); margin-inline:auto; }
  .discovery-result-kicker { display:none; }
  .discovery-result h3 { font-size:31px; }
  #discovery-artist { margin-top:8px; font-size:17px; }
  .discovery-release-meta { margin-top:11px; }
  .discovery-actions { margin-top:18px; }
  .discovery-actions a { width:100%; }
}
@media (max-width:360px) { .discovery-heading,.discovery-body { padding-left:14px; padding-right:14px; } .discovery-actions a { width:100%; } }
@media (max-width:300px) {
  .discovery-release-meta { flex-wrap:wrap; }
  .primary-nav :is(a,button) { min-width:0; font-size:9px; }
  .primary-nav :is(a,button) span { max-width:100%; overflow-wrap:anywhere; text-align:center; }
  .primary-nav .recent-nav-short { white-space:normal; }
}
/* A quiet, standalone error page; root-relative links also work on nested URLs. */
.not-found-page { min-height: 100svh; margin: 0; display: flex; flex-direction: column; }
.not-found-header, .not-found-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 40px; }
.not-found-brand { display: inline-flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 750; color: var(--text); text-decoration: none; }
.not-found-header > span, .not-found-eyebrow { font-size: 11px; letter-spacing: .16em; color: var(--muted); }
.not-found-main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 24px 72px; text-align: center; }
.not-found-art { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; justify-content: center; gap: 14px; margin-bottom: 32px; color: #38383e; font-size: clamp(112px, 16vw, 200px); font-weight: 800; line-height: 1; letter-spacing: 0; }
/* Light and shadow stay still while the record turns underneath. */
.not-found-turntable { position: relative; width: clamp(120px, 17vw, 204px); height: clamp(120px, 17vw, 204px); border-radius: 50%; box-shadow: 0 14px 24px -5px #0009, 0 3px 5px #0008; }
.not-found-turntable::after { content: ""; position: absolute; inset: 1%; border-radius: 50%; pointer-events: none; background: conic-gradient(from -40deg, #fff0 0deg, #fff2 35deg, #fff0 75deg, #fff0 180deg, #ffffff12 215deg, #fff0 255deg); mask-image: radial-gradient(circle closest-side, transparent 40%, #000 43%, #000 97%, transparent 100%); }
.not-found-record { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 50%; transform: rotate(-12deg); animation: vinyl-spin 1.8s linear infinite; }
@keyframes vinyl-spin { from { transform: rotate(-12deg); } to { transform: rotate(348deg); } }
.not-found-eyebrow { color: var(--accent); margin: 0 0 16px; }
.not-found-main h1 { font-size: clamp(36px, 5vw, 60px); letter-spacing: -.04em; line-height: 1.05; margin: 0 0 20px; }
.not-found-copy { font-size: 17px; line-height: 1.65; color: var(--text-2); margin: 0; }
.not-found-actions { display: flex; gap: 12px; align-items: center; margin-top: 32px; }
.not-found-actions a { display: flex; justify-content: center; align-items: center; gap: 22px; min-height: 48px; padding: 12px 20px; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--text); font-weight: 650; text-decoration: none; }
.not-found-actions .not-found-primary { background: var(--accent); color: #052610; border-color: var(--accent); }
.not-found-actions a:hover { border-color: var(--accent); background: var(--accent-soft); }
.not-found-actions .not-found-primary:hover { background: var(--accent-strong); }
.not-found-page a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.not-found-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.not-found-footer a { color: var(--text-2); }
@media (max-width: 600px) {
  .not-found-header { padding: 20px; }
  .not-found-header > span { display: none; }
  .not-found-main { padding: 28px 20px 48px; }
  .not-found-art { margin-bottom: 28px; gap: 8px; }
  .not-found-copy { font-size: 15px; }
  .not-found-actions { flex-direction: column; width: 100%; max-width: 320px; gap: 10px; margin-top: 28px; }
  .not-found-actions a { width: 100%; }
  .not-found-footer { padding: 20px; flex-direction: column; gap: 12px; text-align: center; }
}
