: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);
  --danger: #ff8a80;
  --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):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-s);
}
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: #06140b;
  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: 40px minmax(0, 1fr) auto; gap: 7px 8px; margin: 12px 0 4px; padding: 10px; background: #161618; border: 1px solid var(--line); border-radius: 10px; flex: 0 0 auto; min-width: 0; }
.persistent-player[hidden] { display: none; }
.persistent-player-artwork { position: relative; grid-column: 1; grid-row: 1; width: 40px; height: 40px; }
.persistent-player-album { grid-column: 2; grid-row: 1; align-self: center; min-width: 0; }
.persistent-player-cover { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; flex: 0 0 auto; }
.persistent-player-meta { display: grid; gap: 3px; min-width: 0; }
.persistent-player-title { font-size: 11px; line-height: 1.2; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.persistent-player-artist { 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-controls { grid-column: 3; grid-row: 1; display: flex; align-items: center; min-width: 0; }
.persistent-player-provider { position: absolute; right: -4px; bottom: -3px; display: grid; place-items: center; padding: 2px; border-radius: 50%; background: #161618; }
.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; }
.persistent-player-timeline progress { display: block; appearance: none; width: 100%; height: 3px; border: 0; border-radius: 4px; background: #363639; overflow: hidden; accent-color: var(--accent); }
.persistent-player-timeline progress::-webkit-progress-bar { background: #363639; }
.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-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: end; 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="bandcamp"] { grid-template-columns: 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; }
.persistent-player-return { display: none; color: var(--accent); width: 32px; height: 32px; place-items: center; font-size: 22px; }
.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; }
.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); } }
@media (prefers-reduced-motion: reduce) {
  .persistent-player[data-playback="playing"] .player-levels rect { animation: none; }
}
.persistent-player-full { width: 600px; z-index: 5; }
.persistent-player-host iframe { display: block; width: 100%; border: 0; border-radius: 12px; }
.persistent-player-full .playback-help { margin-top: 12px; }
.player-slot { width: 100%; }
.listening-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.player-switch { cursor: pointer; background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: 8px 0; min-height: 44px; color: var(--muted); font: inherit; font-size: 13px; }
.player-switch:hover { color: var(--text); border-color: var(--accent); }
.player-switch:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.listening-actions[hidden], .listening-actions [hidden] { display: none; }

/* 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;
}
.brand-name {
  position: relative;
  font-size: var(--fs-xl);
  font-weight: 750;
  line-height: 1.02;
  letter-spacing: -0.5px;
}
.brand-domain {
  font-size: 0.8em;
  letter-spacing: 0;
}
.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);
}
#mobile-genres { 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; }
.genre-nav-heading .nav-caption { margin: 0; }
#sidebar-genres { display: grid; place-items: center; width: 32px; height: 32px; 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; }
.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;
}
.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);
}
.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);
  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);
}
#query:focus {
  outline: none;
}
#query::placeholder {
  color: var(--muted);
}
#query::-webkit-search-cancel-button {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b3b3b8' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E") center / contain no-repeat;
}
.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;
}

/* Page heading ----------------------------------------------------------- */
#content {
  padding: 32px var(--gutter) 24px;
  max-width: 2100px;
  margin: auto;
  outline: none;
}
#listing { scroll-margin-top: calc(var(--topbar) + 16px); }
.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 {
  color: var(--text-2);
  margin: 0;
  font-size: var(--fs-md);
  line-height: 1.55;
  max-width: 60ch;
}

/* Toolbar ---------------------------------------------------------------- */
#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 { width: 44px; height: 44px; border-radius: 50%; background: var(--surface-2); font-size: 28px; }
#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; }
.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 { font-size: 20px; vertical-align: -1px; }
#filter-sheet-apply { min-height: 50px; border-radius: 12px; background: var(--accent); color: #07160d; font-weight: 700; }
#filter-sheet-apply:disabled { opacity: .5; }
@media (max-width: 700px), (pointer: coarse) and (max-width: 1024px) {
  #mobile-filters { display: flex; align-items: center; gap: 12px; width: 100%; 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; }
}
.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);
}
.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: 100%; 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: center; justify-content: space-between; gap: 8px; flex: none; margin-bottom: 8px; }
.genre-search-row h2 { font-size: 18px; margin: 0; }
.genre-panel > input { flex: none; }
.genre-close { position: relative; display: grid; place-items: center; flex: 0 0 44px; height: 44px; padding: 0; margin: -8px -8px 0 0; border-radius: 50%; color: var(--text-2); }
.genre-close::before { content: ''; position: absolute; width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); }
.genre-close:hover { color: var(--text); }
.genre-close-icon { position: relative; width: 14px; height: 14px; }
.genre-close-icon::before, .genre-close-icon::after { content: ''; position: absolute; top: 6px; left: 0; width: 14px; height: 2px; border-radius: 1px; background: currentColor; transform: rotate(45deg); }
.genre-close-icon::after { transform: rotate(-45deg); }
.genre-options { position: relative; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin-top: 8px; }
.genre-group-label { padding: 12px 10px 6px; color: var(--muted); font-size: var(--fs-sm); }
.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: 4px 10px; font-size: var(--fs-sm); }
.genre-result-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-option { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.genre-sheet .genre-option[aria-selected="true"]::after { content: '✓'; }
.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, [aria-current="true"]) .genre-count { opacity: 1; }
.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: #07160d; 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-panel {
  position: fixed;
  width: 304px;
  max-height: min(480px, calc(100dvh - 24px));
  overflow-y: auto;
  overscroll-behavior: contain;
  max-width: calc(100vw - 24px);
  z-index: 60;
  padding: 8px;
  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);
  }
}
.date-presets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 8px;
}
.date-presets button {
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.06);
  transition:
    background 0.15s var(--ease),
    color 0.15s var(--ease);
}
.date-presets button:hover {
  background: rgba(255, 255, 255, 0.11);
  color: var(--text);
}
.date-presets button[aria-pressed="true"] {
  background: var(--accent-soft);
  color: var(--accent-strong);
}
.date-inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.date-inputs label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
input[type="date"] {
  height: 38px;
  width: 100%;
  min-width: 0;
  padding: 0 10px;
  border-radius: var(--radius-s);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-size: var(--fs-sm);
  font-variant-numeric: tabular-nums;
}
input[type="date"]:hover {
  border-color: var(--line-strong);
}
input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.75);
  opacity: 0.8;
  cursor: pointer;
}
.datepicker {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.datepicker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.datepicker-head span {
  font-size: var(--fs-base);
  font-weight: 600;
  letter-spacing: -0.005em;
  text-transform: capitalize;
}
.datepicker-head button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text-2);
}
.datepicker-head button:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}
.datepicker-weekdays,
.datepicker-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.datepicker-weekdays span {
  text-align: center;
  font-size: var(--fs-xs);
  color: var(--muted);
  padding: 2px 0 6px;
}
.datepicker-grid {
  row-gap: 0;
}
.day-cell {
  position: relative;
  height: 32px;
  display: grid;
  place-items: center;
  font-size: var(--fs-sm);
  font-variant-numeric: tabular-nums;
  color: var(--text);
  border-radius: 0;
}
.day-cell:hover {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}
.day-cell:focus-visible {
  outline-offset: -2px;
  border-radius: 50%;
}
.day-cell.outside {
  color: var(--muted);
  opacity: 0.6;
}
.day-cell.today::after {
  content: "";
  position: absolute;
  bottom: 5px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}
.day-cell.has-releases::before {
  content: "";
  position: absolute;
  top: 5px;
  right: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.day-cell.in-range {
  background: var(--accent-soft);
}
.day-cell.range-start {
  border-radius: 50% 0 0 50%;
}
.day-cell.range-end {
  border-radius: 0 50% 50% 0;
}
.day-cell.range-start.range-end {
  border-radius: 50%;
}
.day-cell.range-start,
.day-cell.range-end {
  background: var(--accent);
  color: #06140b;
  font-weight: 700;
}
.day-cell.range-start.has-releases::before,
.day-cell.range-end.has-releases::before {
  background: #06140b;
}
.datepicker-legend {
  margin: 6px 0 0;
  font-size: var(--fs-xs);
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.datepicker-legend .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.date-actions {
  position: sticky;
  bottom: -8px;
  background: var(--surface-2);
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.date-actions button {
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-2);
}
.date-actions button:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}
#close-dates {
  background: var(--text);
  color: #0b0b0c;
  padding: 0 20px;
}
#close-dates:hover {
  background: #fff;
  color: #0b0b0c;
}
#date-error {
  font-size: var(--fs-sm);
  color: var(--danger);
  margin: 10px 0 0;
}

/* Calendar listing ------------------------------------------------------- */
.catalog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 272px;
  gap: 44px;
  align-items: start;
}
.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 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: "·";
  margin-right: 10px;
}
.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:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.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; }
.editorial-cards .card { flex:0 0 clamp(310px, 32%, 440px); scroll-snap-align:start; display:grid; grid-template-columns:44% minmax(0,1fr); gap:0 16px; padding:18px; border:1px solid color-mix(in srgb,var(--editorial-color) 75%,#ffffff 25%); border-radius:12px; background:linear-gradient(120deg,var(--editorial-color),color-mix(in srgb,var(--editorial-color) 65%,#101114)); }
.editorial-cards .card-visual { grid-row:1; margin:0; align-self:center; }
.editorial-cards .card-copy { position:static; align-self:stretch; display:flex; flex-direction:column; justify-content:center; min-width:0; min-height:200px; padding-right:0; }
.editorial-cards .card-copy h3 { font-size:clamp(18px,1.5vw,22px); line-height:1.2; margin:8px 0; }
.editorial-cards .artist { font-size:14px; margin-bottom:12px; color:#e0e5df; }
.editorial-kicker { font-size:11px; color:#e0e5df; }
.editorial-cards .card-meta { color:#d8dcd6; }
.editorial-play { position:relative; z-index:2; display:inline-flex; align-items:center; align-self:flex-start; margin-top:auto; min-height:40px; gap:6px; padding:10px 14px; border-radius:999px; background:var(--accent); color:#08140c; font-size:13px; font-weight:600; }
.editorial-cards .card-meta { grid-column:1 / -1; min-height:20px; margin-top:14px; justify-content:flex-start; gap:12px; }
/* The title stretches over the card, beneath the two independent actions. */
.editorial-cards .card h3 a::after { z-index:1; }
.editorial-cards .card-copy > .favorite { position:absolute; top:12px; right:12px; }
.editorial-date-block { margin-top:auto; min-height:40px; display:flex; flex-wrap:wrap; align-items:center; align-content:center; gap:2px 8px; }
.editorial-date-label { font-size:11px; text-transform:uppercase; letter-spacing:.08em; color:var(--text-2); }
.editorial-date { font-size:clamp(16px,1.3vw,19px); font-weight:650; line-height:1.4; color:var(--accent-strong); }
.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 { background:var(--accent-soft); }
.release-calendar-button:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.editorial-date-action { display:inline-flex; align-items:center; white-space:nowrap; }
.editorial-date-action .editorial-date { font-size:16px; }
.editorial-date-action .release-calendar-button { min-width:32px; padding:4px; }
.card-release-date { display:flex; align-items:center; gap:4px; margin-top:4px; color:var(--text-2); font-size:12px; }
.card-release-date .release-calendar-button { color:var(--text-2); }
.card-release-date .release-calendar-button:hover { color:var(--text); background:rgba(255,255,255,.08); }
.card-copy:has(.card-release-date) { padding-right:0; }
.card-copy:has(.card-release-date) h3, .card-copy:has(.card-release-date) .artist { padding-right:36px; }
.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 h2 { margin:0 24px 12px 0; font-size:18px; }
.release-calendar-close { position:absolute; right:8px; top:8px; width:36px; height:36px; border:0; border-radius:8px; background:transparent; color:var(--text-2); font-size:24px; cursor:pointer; }
.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; }
  .editorial-date-action .release-calendar-button { min-width:44px; }
  .editorial-date-action .editorial-date { font-size:14px; }
  .album-calendar { grid-column:2; margin:0; }
  .release-calendar-close { width:44px; height:44px; right:4px; top:4px; }
}
@media (max-width:380px) {
  .editorial-cards .editorial-announced .card-copy { padding-bottom:64px; }
  .editorial-cards .editorial-announced .card-visual { align-self:start; margin-top:32px; }
  .editorial-cards .editorial-announced .editorial-date-block {
    position:absolute; left:12px; right:12px; bottom:44px; margin:0; gap:4px;
  }
  .editorial-announced .editorial-date-label { font-size:10px; letter-spacing:.04em; }
  .editorial-announced .editorial-date-action .editorial-date { font-size:13px; }
}
@media (max-width: 1000px) {
  .editorial-cards .card { flex-basis:clamp(300px, 46%, 400px); }
}
@media (min-width:601px) and (max-width:1100px) {
  .editorial-controls button:first-child { left:-6px; }
  .editorial-controls button:last-child { right:-6px; }
}
@media (max-width: 600px) {
  .editorial-slider { margin-inline:32px; }
  .editorial-cards .card { flex-basis:90%; padding:12px; gap:0 12px; }
  .editorial-cards .card-copy h3 { font-size:18px; }
  .editorial-cards .artist { font-size:13px; margin-bottom:10px; }
  .editorial-play { margin-top:4px; padding:8px 10px; gap:4px; font-size:12px; }
  .editorial-play .icon { width:16px; height:16px; flex-shrink:0; }
  .editorial-date-block { margin-top:4px; }
}

.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; }
.editorial-cards .cover-genres { display:none; }
#listen { scroll-margin-top: calc(var(--topbar) + 16px); }
.autoplay-status { color: var(--text-2); font-size: 14px; margin: 0 0 12px; }
.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 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: #06140b;
  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; }
.editorial-play .player-open-icon { font-size: 20px; }
.play-badge .icon {
  width: 22px;
  height: 22px;
  fill: currentColor;
  stroke: none;
  margin-left: 2px;
}
.card:hover .play-badge,
.card:focus-within .play-badge {
  opacity: 1;
  transform: none;
}
.card-copy {
  position: relative;
  padding: 10px 36px 0 0;
}
.card h3 {
  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 h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}
.card h3 a:focus-visible {
  outline: none;
}
.card:has(h3 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 .announcement-badge {
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 11px;
  line-height: 1.4;
}
.card-meta .service-icons {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.card-meta .card-type { margin-left:auto; }
.service-icon { display:inline-flex; width:20px; height:20px; }
.service-icon img { width:100%; height:100%; object-fit:contain; }
.service-icon-bandcamp { width:36px; height:24px; }
.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 {
  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;
}

/* 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;
}

/* 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: 30px;
}
.album-hero .art {
  border-radius: var(--radius-m);
  box-shadow: none;
}
.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; }
.cover-viewer-close { position: absolute; top: max(14px, env(safe-area-inset-top)); right: max(14px, env(safe-area-inset-right)); width: 44px; height: 44px; padding: 0; border: 1px solid #ffffff35; border-radius: 50%; background: #202328; color: white; font-size: 28px; cursor: pointer; }
.cover-viewer-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
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: #06140b;
  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 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;
}
.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);
}
.info-edition {
  margin-bottom: 20px;
}
.info-edition h3 {
  font-size: var(--fs-base);
  color: var(--text);
  font-weight: 600;
  margin: 0 0 8px;
}
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);
}
.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-credit a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-size: var(--fs-base);
  font-weight: 500;
  margin-bottom: 4px;
}
.cover-credit a .icon {
  width: 15px;
  height: 15px;
}
.cover-credit a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cover-credit span {
  display: block;
}

/* 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 .privacy-close { position: absolute; top: 4px; right: 4px; width: 44px; height: 44px; border: 0; background: transparent; font-size: 24px; }
.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 h1 { 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,
.date-inputs label { 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;
  }
  .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 :is(a, button) {
    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;
  }
  .primary-nav small {
    position: absolute;
    margin: 0;
    transform: translate(16px, -14px);
    min-width: 18px;
    height: 18px;
    font-size: var(--fs-xs);
    padding: 0 5px;
  }
  .primary-nav :is(a, button) {
    position: relative;
  }
  #mobile-genres { display: flex; }
  .workspace {
    margin: 0;
  }
  .topbar {
    height: auto;
    min-height: var(--topbar);
    padding: 10px var(--gutter);
    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;
  }
  .search-hint {
    display: none;
  }
  #content {
    padding: 22px var(--gutter) 24px;
  }
  .page-heading {
    margin-bottom: 12px;
  }
  h1 {
    font-size: 32px;
  }
  #view-description {
    font-size: var(--fs-base);
  }
  .toolbar {
    padding: 10px 0 14px;
    margin-bottom: 8px;
    gap: 10px;
  }
  .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);
  }
  .date-panel {
    padding: 8px;
  }
  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 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: 22px;
  }
  .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; }
  /* 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;
  }
  .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. */

  :root { --control-h: 44px; }
  /* 16px avoids iOS focusing a small input by zooming the whole page. */
  #query, .genre-panel input, select, input[type="date"] { font-size: 16px; }
  #search { height: 44px; }
  input[type="date"] { height: 44px; max-width: 100%; padding: 0 6px; appearance: none; }
  select, .genre-trigger { max-width: 100%; }
  .topbar { padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
  #content { padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
  #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));
  }
  .genre-option { min-height: 44px; }
  .date-actions button { min-height: 40px; }
  .date-presets button { height: 32px; padding: 0 6px; }
  .datepicker-head button { width: 36px; height: 36px; }
  .day-cell { height: 32px; font-size: 14px; }
  .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: 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 .persistent-player-close { width: 32px; height: 28px; }
  .persistent-player-timeline { margin-right: 38px; }
  .persistent-player-play { width: 40px; height: 40px; }
  .persistent-player-return { width: 40px; height: 40px; }
  .persistent-player[data-service="bandcamp"] .persistent-player-close { width: 32px; }
  .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 span:not(.brand-mark),
  .day-heading .weekday {
    display: none;
  }
  .mobile-brand {
    gap: 0;
  }
  .date-filter summary {
    font-size: var(--fs-sm);
  }
  select {
    padding: 0 32px 0 12px;
    background-position: right 9px center;
  }
  .date-filter summary {
    padding: 0 10px;
    gap: 6px;
  }
  .primary-nav a {
    font-size: var(--fs-xs);
  }
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
/* 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); } }
@media (prefers-reduced-motion: reduce) { .not-found-record { animation: none; } }
.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; }
}
