/* Collection viewer. Calm on purpose: covers carry the colour, the interface
   stays neutral, and the accent marks only what can be acted on. */

:root {
  --bg: #f6f4f0;
  --surface: #ffffff;
  --surface-2: #efece6;
  --text: #1b1a17;
  --muted: #6b675f;
  --faint: #9a958b;
  --line: #e4dfd5;
  --accent: #c4501c;
  --accent-text: #ffffff;
  --accent-soft: #fbeee6;
  --fav: #d6336c;
  --shadow: 0 1px 2px rgba(27, 26, 23, .06), 0 4px 16px rgba(27, 26, 23, .06);
  --shadow-lift: 0 2px 4px rgba(27, 26, 23, .08), 0 12px 32px rgba(27, 26, 23, .12);
  --radius: 14px;
  --radius-sm: 10px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: 16px;
  --topbar-h: 60px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121110;
    --surface: #1c1b19;
    --surface-2: #26241f;
    --text: #f2efe9;
    --muted: #a7a196;
    --faint: #7a756b;
    --line: #302d28;
    --accent: #f08a4b;
    --accent-text: #1b1208;
    --accent-soft: #3a2418;
    --fav: #ff6b9a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 16px rgba(0, 0, 0, .25);
    --shadow-lift: 0 2px 4px rgba(0, 0, 0, .35), 0 12px 32px rgba(0, 0, 0, .45);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--topbar-h) + 12px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
svg { flex: none; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ------------------------------------------------------------ top bar */

.topbar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1280px; margin: 0 auto; height: var(--topbar-h);
  padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.brand-mark { width: 30px; height: 30px; }
.bm-disc { fill: var(--text); }
.bm-groove { fill: none; stroke: var(--bg); stroke-opacity: .22; stroke-width: .8; }
.bm-label { fill: var(--accent); }
.bm-hole { fill: var(--bg); }

.tabs { display: flex; gap: 4px; margin-left: auto; }
.tab {
  position: relative;
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  text-decoration: none; color: var(--muted); font-weight: 550;
}
.tab svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.tab:hover { color: var(--text); background: var(--surface-2); }
.tab.active { color: var(--text); background: var(--surface); box-shadow: var(--shadow); }
.tab.active svg { stroke: var(--accent); }
.badge {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: var(--fav); color: #fff; font-size: 12px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; line-height: 1;
}
.lang {
  border: 1px solid var(--line); background: transparent; border-radius: 999px;
  padding: 5px 11px; font-size: 13px; font-weight: 650; color: var(--muted);
}
.lang:hover { color: var(--text); border-color: var(--faint); }

/* ---------------------------------------------------------------- page */

.main { flex: 1; width: 100%; max-width: 1280px; margin: 0 auto; padding: 28px var(--gutter) 40px; outline: none; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head h1 { margin: 0; font-size: clamp(26px, 4vw, 36px); line-height: 1.1; letter-spacing: -.02em; }
.page-sub { margin: 6px 0 0; color: var(--muted); }

.footer { max-width: 1280px; width: 100%; margin: 0 auto; padding: 8px var(--gutter) 32px; color: var(--faint); font-size: 13px; }
.footer p { margin: 0; border-top: 1px solid var(--line); padding-top: 16px; }

/* ------------------------------------------------------------- toolbar */

.search {
  position: relative; display: flex; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); transition: border-color .15s;
}
.search:focus-within { border-color: var(--accent); }
.search svg { position: absolute; left: 16px; width: 20px; height: 20px; fill: none; stroke: var(--faint); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.search input {
  width: 100%; min-width: 0; border: 0; background: transparent; outline: none;
  padding: 15px 48px 15px 48px; font-size: 16px;
}
.search input::placeholder { color: var(--faint); }
.search input::-webkit-search-cancel-button { display: none; }
.search .clear {
  position: absolute; right: 8px; width: 34px; height: 34px; border-radius: 50%;
  border: 0; background: var(--surface-2); display: grid; place-items: center; color: var(--muted);
}
.search .clear svg { position: static; width: 16px; height: 16px; stroke: currentColor; }

.toolbar { display: flex; align-items: center; gap: 10px; margin: 16px 0 12px; flex-wrap: wrap; }
.types { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex: 1 1 auto; min-width: 0; padding: 2px; margin: -2px; }
.types::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); background: var(--surface); border-radius: 999px;
  padding: 7px 14px; font-size: 14px; font-weight: 550; color: var(--text); white-space: nowrap;
}
.chip .count { color: var(--faint); font-weight: 500; font-variant-numeric: tabular-nums; }
.chip:hover { border-color: var(--faint); }
.chip[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
.chip[aria-pressed="true"] .count { color: color-mix(in srgb, var(--bg) 65%, transparent); }
.chip:disabled { opacity: .45; cursor: default; }

.tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--line); background: var(--surface); border-radius: 999px;
  padding: 8px 14px; font-size: 14px; font-weight: 600; white-space: nowrap; text-decoration: none;
}
.btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover { border-color: var(--faint); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; }
.btn.big { padding: 12px 20px; font-size: 15px; }
.btn .badge { background: var(--accent); color: var(--accent-text); }
.btn.danger { color: var(--fav); }

.select {
  appearance: none; -webkit-appearance: none;
  border: 1px solid var(--line); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239a958b' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 16px;
  border-radius: 999px; padding: 8px 32px 8px 14px; font-size: 14px; font-weight: 600; max-width: 210px;
}

.viewtoggle { display: flex; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); padding: 2px; }
.viewtoggle button { border: 0; background: transparent; border-radius: 999px; width: 34px; height: 32px; display: grid; place-items: center; color: var(--faint); }
.viewtoggle button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linejoin: round; }
.viewtoggle button[aria-pressed="true"] { background: var(--surface-2); color: var(--text); }

.active-filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent-soft); color: var(--text); border: 0; border-radius: 999px;
  padding: 5px 8px 5px 12px; font-size: 13px; font-weight: 550;
}
.pill svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; opacity: .7; }
.linkbtn { border: 0; background: none; color: var(--accent); font-weight: 600; font-size: 13px; padding: 5px 6px; }

.result-row { display: flex; align-items: center; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; margin: 6px 0 14px; }
.result-line { color: var(--muted); font-size: 14px; margin: 0; font-variant-numeric: tabular-nums; }
.result-row .switch { margin-left: auto; }

/* --------------------------------------------------------------- grid */

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 22px 18px; }

.card { position: relative; min-width: 0; }
.card-open {
  display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left;
}
.cover {
  position: relative; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden;
  background: var(--surface-2); box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card-open:hover .cover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.cover img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; }
.cover img.loaded { opacity: 1; }
.cover.noimg img { display: none; }
.cover.noimg::before, .cover:not(:has(img))::before {
  content: ""; position: absolute; inset: 14%;
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--surface-2) 0 5%, var(--accent) 5.5% 22%, transparent 22.5%),
    repeating-radial-gradient(circle, #2b2926 0 2px, #3a3733 2px 3px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .25);
}
.copies {
  position: absolute; left: 8px; top: 8px;
  background: rgba(20, 18, 16, .78); color: #fff; font-size: 12px; font-weight: 700;
  padding: 3px 8px; border-radius: 999px; pointer-events: none;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.card-body { padding: 10px 2px 0; min-width: 0; }
.card .artist { font-weight: 650; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .title { color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .meta { margin-top: 6px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12.5px; color: var(--faint); }
.tag { display: inline-block; border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; font-size: 11.5px; font-weight: 650; color: var(--muted); line-height: 18px; }
.price { margin-left: auto; color: var(--text); font-weight: 650; font-size: 13.5px; font-variant-numeric: tabular-nums; }

.fav {
  position: absolute; right: 8px; top: 8px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%; border: 0;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .9); color: #6b675f;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .18);
  transition: transform .15s ease, color .15s;
}
.fav svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.fav:hover { transform: scale(1.08); color: var(--fav); }
.fav[aria-pressed="true"] { color: var(--fav); }
.fav[aria-pressed="true"] svg { fill: currentColor; }
.fav.pop { animation: pop .32s ease; }
@keyframes pop { 40% { transform: scale(1.3); } }

/* --------------------------------------------------------------- list */

.list { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.list .card { border-top: 1px solid var(--line); }
.list .card:first-child { border-top: 0; }
.list .card-open { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 10px 60px 10px 12px; }
.list .card-open:hover { background: var(--surface-2); }
.list .cover { width: 56px; border-radius: 6px; box-shadow: none; }
.list .card-open:hover .cover { transform: none; box-shadow: none; }
.list .cover.noimg::before, .list .cover:not(:has(img))::before { inset: 8%; }
.list .card-body { padding: 0; }
.list .meta { margin-top: 2px; }
.list .side { text-align: right; font-size: 13px; color: var(--faint); }
.list .side .price { display: block; margin: 0; font-size: 14.5px; }
.list .copies { position: static; display: inline-block; background: var(--surface-2); color: var(--muted); margin-left: 6px; }
.list .fav { top: 50%; right: 12px; transform: translateY(-50%); background: transparent; box-shadow: none; }
.list .fav:hover { transform: translateY(-50%) scale(1.08); }
.list .card .title { display: inline; }
.list .line1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list .line1 .artist { display: inline; }
.list .line1 .sep { color: var(--faint); margin: 0 6px; }

.sentinel { height: 1px; }
.more-hint { text-align: center; color: var(--faint); font-size: 13px; padding: 18px 0 0; }

/* ------------------------------------------------------ empty / states */

.empty { text-align: center; padding: 56px 16px; color: var(--muted); max-width: 440px; margin: 0 auto; }
.empty svg { width: 56px; height: 56px; fill: none; stroke: var(--faint); stroke-width: 1.4; margin: 0 auto 12px; }
.empty h2 { color: var(--text); font-size: 19px; margin: 0 0 6px; }
.empty p { margin: 0 0 18px; }

.skeleton .cover { animation: shimmer 1.4s ease-in-out infinite; box-shadow: none; }
.skeleton .bar { height: 12px; border-radius: 6px; background: var(--surface-2); margin-top: 10px; animation: shimmer 1.4s ease-in-out infinite; }
.skeleton .bar.short { width: 60%; margin-top: 8px; }
@keyframes shimmer { 50% { opacity: .55; } }

/* ------------------------------------------------------------- sheets */

.sheet {
  border: 0; padding: 0; color: var(--text); background: var(--surface);
  border-radius: 20px; box-shadow: var(--shadow-lift);
  width: min(920px, calc(100vw - 32px)); max-height: calc(100vh - 48px);
}
.sheet::backdrop { background: rgba(12, 11, 10, .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.sheet[open] { animation: sheet-in .22s ease; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(12px) scale(.985); } }
.close-label { display: none; }
.detail-bar { position: absolute; right: 14px; top: 14px; z-index: 3; }
.detail-bar .sheet-close { position: static; }
html.sheet-open, html.sheet-open body { overflow: hidden; }
.sheet-close {
  position: absolute; right: 14px; top: 14px; z-index: 3;
  width: 38px; height: 38px; border-radius: 50%; border: 0;
  background: var(--surface-2); display: grid; place-items: center; color: var(--muted);
}
.sheet-close svg, .navbtn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.detail-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.detail-art { position: relative; background: var(--surface-2); padding: 28px; display: flex; flex-direction: column; justify-content: center; }
.detail-art .cover { box-shadow: var(--shadow-lift); border-radius: 8px; }
.detail-art .navrow { display: flex; justify-content: space-between; margin-top: 18px; }
.navbtn { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 7px 12px; display: inline-flex; gap: 6px; align-items: center; font-size: 13px; font-weight: 600; color: var(--muted); }
.navbtn:disabled { opacity: .35; cursor: default; }
.detail-info { padding: 30px 30px 26px; overflow: auto; max-height: calc(100vh - 48px); }
.detail-kicker { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; padding-right: 44px; }
.detail-info h2:focus { outline: none; }
.detail-info h2 { margin: 0; font-size: 26px; line-height: 1.15; letter-spacing: -.015em; }
.detail-info .by { margin: 4px 0 0; font-size: 17px; color: var(--muted); }
.by a, .facts a { text-decoration: none; border-bottom: 1px solid color-mix(in srgb, currentColor 35%, transparent); }
.by a:hover, .facts a:hover { color: var(--accent); }

.value-card { margin: 22px 0 6px; padding: 16px 18px; border-radius: var(--radius); background: var(--surface-2); }
.value-card .label { font-size: 12.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.value-card .amount { font-size: 28px; font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.range { margin-top: 12px; }
.range-track { position: relative; height: 6px; border-radius: 3px; background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 25%, transparent), var(--accent)); }
.range-dot { position: absolute; top: 50%; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 3px solid var(--accent); transform: translate(-50%, -50%); }
.range-ends { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin-top: 6px; font-variant-numeric: tabular-nums; }
.value-note { font-size: 12.5px; color: var(--faint); margin: 8px 0 0; }

.facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 18px; margin: 18px 0 0; font-size: 14.5px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }

.detail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.detail-actions .fav-wide[aria-pressed="true"] { color: var(--fav); border-color: color-mix(in srgb, var(--fav) 45%, transparent); }
.detail-actions .fav-wide[aria-pressed="true"] svg { fill: currentColor; }
.detail-links { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 14px; font-size: 13.5px; }
.detail-links a, .detail-links button { color: var(--muted); text-decoration: none; background: none; border: 0; padding: 0; display: inline-flex; gap: 6px; align-items: center; }
.detail-links a:hover, .detail-links button:hover { color: var(--accent); }
.detail-links svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* filter sheet */
.filters { width: min(560px, calc(100vw - 32px)); }
.filters-inner { display: flex; flex-direction: column; max-height: calc(100vh - 48px); }
.filters-head { padding: 22px 24px 8px; }
.filters-head h2 { margin: 0; font-size: 21px; }
.filters-body { padding: 4px 24px 12px; overflow: auto; }
.fgroup { padding: 14px 0; border-bottom: 1px solid var(--line); }
.fgroup:last-child { border-bottom: 0; }
.fgroup h3 { margin: 0 0 10px; font-size: 14px; color: var(--muted); font-weight: 650; }
.fchips { display: flex; flex-wrap: wrap; gap: 6px; }
.fchips .chip { padding: 6px 12px; font-size: 13.5px; }
/* The on/off switch ("Alle exemplaren tonen"): label first, then the track. */
.switch {
  display: inline-flex; align-items: center; gap: 10px; border: 0; background: none; padding: 4px 0;
  color: var(--text); font-size: 14px; font-weight: 600; text-align: left; cursor: pointer;
}
.switch-track {
  position: relative; flex: none; width: 44px; height: 26px; border-radius: 999px;
  background: var(--faint); transition: background .15s;
}
.switch-track::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .15s;
}
.switch[aria-checked="true"] .switch-track { background: var(--accent); }
.switch[aria-checked="true"] .switch-track::after { transform: translateX(18px); }
.switch:focus-visible { outline: none; }
.switch:focus-visible .switch-track { outline: 2px solid var(--accent); outline-offset: 2px; }
.fgroup .switch { display: flex; width: 100%; justify-content: space-between; font-size: 15px; font-weight: 550; }
.filters-foot { display: flex; gap: 10px; justify-content: space-between; padding: 14px 24px 20px; border-top: 1px solid var(--line); }
.filters-foot .btn.primary { flex: 1; }

/* ---------------------------------------------------------- favourites */

.fav-summary {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; margin-bottom: 22px;
}
.fav-summary .stat { font-size: 14px; color: var(--muted); }
.fav-summary .stat strong { display: block; color: var(--text); font-size: 20px; font-variant-numeric: tabular-nums; }
.fav-summary .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.note { color: var(--faint); font-size: 13px; margin: -8px 0 18px; }

/* The contact form's card: on a seller's page under the seller, on
   Favorieten and a shared list under the buttons, where every way the list
   leaves needs it. */
.email-msg { margin: 6px 0 0; font-size: 13.5px; color: var(--fav); }
.email-msg[hidden] { display: none; }
.email-note { margin: 6px 0 0; font-size: 12.5px; color: var(--faint); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.email-card {
  margin-top: 18px; padding: 20px 22px 18px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); min-width: 0;
}
.email-card h2 { margin: 0 0 12px; font-size: 18px; letter-spacing: -.01em; }
.email-card.on-list { margin: 0 0 22px; }
.about > .email-card { margin-top: 28px; }

/* The form: two columns of fields, one on a phone; the types as ticks, any number. */
.contact-form { max-width: 560px; }
.cf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.cf-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.contact-form > .cf-field { margin-top: 16px; }
.cf-field label, .cf-types legend { font-size: 14px; font-weight: 600; }
.cf-input {
  width: 100%; min-width: 0; font: inherit; font-size: 16px; color: var(--text);
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 9px 12px; outline: none;
}
.cf-input:focus { border-color: var(--accent); }
textarea.cf-input { resize: vertical; min-height: 84px; line-height: 1.45; }
.cf-types { border: 0; margin: 16px 0 0; padding: 0; min-width: 0; }
.cf-types legend { padding: 0; margin-bottom: 8px; }
.cf-ticks { display: flex; flex-wrap: wrap; gap: 8px; }
.cf-tick {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 15px;
  padding: 7px 14px 7px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg);
}
.cf-tick input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.cf-tick:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.cf-tick:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.cf-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 16px; }
.cf-foot .email-note { margin: 0; }
.cf-foot .btn:disabled { background: var(--accent-soft); border-color: transparent; color: var(--accent); filter: none; cursor: default; }
@media (max-width: 560px) { .cf-grid { grid-template-columns: minmax(0, 1fr); } .email-card { padding: 18px 16px 16px; } }

/* ------------------------------------------------------------- contact */

.contact { max-width: 760px; margin: 8px auto 0; }
.contact-card {
  display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
  padding: 32px; box-shadow: var(--shadow);
}
.contact-photo { width: 220px; height: auto; aspect-ratio: 1; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow-lift); filter: grayscale(1) contrast(1.02); }
.contact-card h1 { margin: 0; font-size: 30px; letter-spacing: -.02em; }
.contact-role { color: var(--muted); margin: 2px 0 16px; }
.contact-lines { display: flex; flex-direction: column; gap: 10px; margin: 0 0 22px; }
.contact-line { display: flex; align-items: center; gap: 12px; text-decoration: none; font-size: 16px; width: fit-content; max-width: 100%; }
.contact-line .ico { width: 38px; height: 38px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.contact-line .ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contact-line span:last-child { overflow-wrap: anywhere; }
.contact-line:hover span:last-child { color: var(--accent); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.contact-intro { font-size: 17px; color: var(--muted); margin: 0 0 22px; max-width: 60ch; }
.tipbox { margin-top: 18px; display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius); background: var(--accent-soft); }
.tipbox svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 2; margin-top: 2px; }
.tipbox p { margin: 0 0 10px; }
.tipbox p:last-child { margin: 0; }

/* ------------------------------------------------------- intro (about) */

.about { max-width: 1080px; margin: 0 auto; }
.about-hero {
  position: relative; overflow: hidden;
  padding: 48px 44px; border-radius: 24px;
  background: linear-gradient(135deg, var(--accent-soft), var(--surface) 70%);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.about-hero-text { position: relative; z-index: 1; max-width: 620px; }
.about-kicker { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.about-hero h1 { margin: 0 0 26px; font-size: clamp(28px, 4.6vw, 46px); line-height: 1.08; letter-spacing: -.025em; text-wrap: balance; }
.about-disc {
  position: absolute; right: -90px; top: 50%; width: 360px; height: 360px; transform: translateY(-50%);
  opacity: .9; filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .18));
}
.about-stats {
  display: flex; flex-wrap: wrap; gap: 1px; /* an odd last tile stretches instead of leaving a hole */
  margin: 16px 0 0; border-radius: var(--radius); overflow: hidden;
  background: var(--line); border: 1px solid var(--line);
}
.about-stats div { flex: 1 1 130px; background: var(--surface); padding: 16px 18px; }
.about-stats strong { display: block; font-size: 26px; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.about-stats span { color: var(--muted); font-size: 13.5px; }
.about-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; margin-top: 36px; }
.about-text p { margin: 0 0 18px; font-size: 17px; line-height: 1.7; color: var(--muted); max-width: 66ch; }
.about-text .about-lead { font-size: 19.5px; line-height: 1.6; color: var(--text); }
.about-text strong { color: var(--text); font-weight: 650; }
.about-text .about-note { margin: 26px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13.5px; line-height: 1.55; color: var(--faint); }
.about-text .about-note strong { color: var(--muted); }
.about-contact {
  position: sticky; top: calc(var(--topbar-h) + 20px);
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: 24px; box-shadow: var(--shadow);
}
.about-person { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.about-person img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; filter: grayscale(1) contrast(1.02); flex: none; }
.about-person h2 { margin: 0; font-size: 19px; letter-spacing: -.01em; }
.about-person p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.about-contact-text { margin: 0 0 16px; color: var(--muted); font-size: 15px; }
.about-contact .contact-lines { width: auto; margin: 0 0 18px; }
.about-contact .contact-line { font-size: 15px; }
.about-contact .contact-actions .btn { flex: 1 1 auto; justify-content: center; padding-left: 12px; padding-right: 12px; }

/* --------------------------------------------------------------- toast */

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 50;
  background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 600; box-shadow: var(--shadow-lift); max-width: calc(100vw - 32px);
}

/* ------------------------------------------------------ Discogs figures */

.tag-community { border-style: dotted; font-variant-numeric: tabular-nums; }

/* Have and want under the asking price: two figures, the source beside them. */
.community { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 20px; margin: 12px 2px 0; }
.community div { display: flex; align-items: baseline; gap: 6px; }
.community strong { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.community span { color: var(--muted); font-size: 13.5px; }
.community .community-src { color: var(--faint); font-size: 12.5px; }

/* One series of horizontal bars. The rows share the list's columns
   (subgrid), so every track starts and ends at the same place whatever the
   width of its figure. */
.bars { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 7.5em) minmax(0, 1fr) auto; gap: 7px 10px; }
.bars li { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: center; font-size: 13.5px; }
.bar-label { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { height: 10px; border-radius: 0 4px 4px 0; background: var(--surface-2); overflow: hidden; }
.bar { display: block; height: 100%; border-radius: 0 4px 4px 0; background: color-mix(in srgb, var(--accent) 70%, var(--surface)); }
.bar-value { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }

/* "De collectie in cijfers" on a seller's page. */
.figures { margin-top: 48px; }
.figures > h2 { margin: 0; font-size: clamp(22px, 3vw, 28px); letter-spacing: -.02em; }
.fig-key { margin-top: 14px; }
.fig-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 12px; margin-top: 12px; }
.fig-tile { display: flex; flex-direction: column; min-width: 0; padding: 16px 18px; border-radius: var(--radius); background: var(--surface-2); }
.fig-tile strong { font-size: 28px; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.fig-tile-label { margin-top: 4px; font-weight: 650; font-size: 14px; }
.fig-tile-text { color: var(--muted); font-size: 13px; }
.fig-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 12px; margin-top: 12px; }
.fig-card { min-width: 0; padding: 16px 18px 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.fig-card h3 { margin: 0 0 12px; font-size: 15px; }
.toplist { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.toplist button {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 10px;
  width: 100%; padding: 4px; border: 0; border-radius: var(--radius-sm); background: none; text-align: left;
}
.toplist button:hover { background: var(--surface-2); }
.toplist .cover { width: 40px; border-radius: 6px; box-shadow: none; }
.top-text { display: flex; flex-direction: column; min-width: 0; }
.top-title, .top-artist { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-title { font-size: 14px; font-weight: 600; }
.top-artist { font-size: 12.5px; color: var(--muted); }
.top-figure { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.figures .discogs-credit { margin-top: 12px; }

/* -------------------------------------------------------------- mobile */

@media (max-width: 760px) {
  .detail-inner { grid-template-columns: minmax(0, 1fr); }
  .detail-art { padding: 22px 22px 16px; }
  .detail-art .cover { max-width: 300px; width: 100%; margin: 0 auto; }
  .detail-info { max-height: none; overflow: visible; padding: 20px 20px 24px; }
  /* On a phone a record is a full-screen page: a fixed bar with "Sluiten" on
     top, and only the part below it scrolls. A sheet sized in vh was taller
     than an iPhone's visible screen (vh counts the browser bars as gone), so
     its top — and the X — sat above the screen (2026-10-25). inset: 0 is
     always exactly the visible screen. */
  .detail[open] {
    position: fixed; inset: 0; width: auto; height: auto; max-width: none; max-height: none;
    margin: 0; border-radius: 0;
    display: flex; flex-direction: column; overflow: hidden;
  }
  .detail-bar {
    position: static; flex: none;
    display: flex; justify-content: flex-end;
    padding: calc(8px + env(safe-area-inset-top)) 12px 8px;
    background: var(--surface); border-bottom: 1px solid var(--line);
  }
  .detail-bar .sheet-close {
    width: auto; height: 40px; border-radius: 999px; padding: 0 16px 0 12px;
    display: inline-flex; align-items: center; gap: 6px;
    font-weight: 650; color: var(--text);
  }
  .close-label { display: inline; }
  .detail-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  .contact-card { grid-template-columns: minmax(0, 1fr); text-align: center; padding: 28px 20px; gap: 18px; }
  .contact-photo { width: 168px; margin: 0 auto; }
  .contact-lines { width: fit-content; max-width: 100%; margin-left: auto; margin-right: auto; text-align: left; }
  .contact-actions { justify-content: center; }
  .about-hero { padding: 32px 22px 28px; }
  .about-hero .btn { width: 100%; justify-content: center; }
  .about-disc { width: 220px; height: 220px; right: -80px; top: -50px; transform: none; opacity: .14; }
  .about-body { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 24px; }
  .about-text p { font-size: 16px; }
  .about-text .about-lead { font-size: 17.5px; }
  .about-contact { position: static; padding: 20px; }
}

@media (max-width: 640px) {
  :root { --topbar-h: 54px; }
  /* A backdrop-filter makes the bar the containing block of fixed children,
     which pinned the bottom tab bar to the top bar. Solid instead. */
  .topbar { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--bg); }
  body { font-size: 15px; padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .tabs {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; margin: 0; gap: 0;
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
    border-top: 1px solid var(--line);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    justify-content: space-around;
  }
  .tab { flex-direction: column; gap: 2px; padding: 6px 8px; font-size: 11.5px; border-radius: 12px; flex: 1; }
  .tab svg { width: 22px; height: 22px; }
  .tab.active { background: transparent; box-shadow: none; color: var(--accent); }
  .tab .badge { position: absolute; top: 2px; left: calc(50% + 6px); min-width: 18px; height: 18px; font-size: 11px; }
  .lang { margin-left: auto; }
  .main { padding-top: 20px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .toolbar { gap: 8px; }
  .types { flex-basis: 100%; }
  .tools { margin-left: 0; width: 100%; }
  .tools .select { flex: 1; min-width: 0; max-width: none; text-overflow: ellipsis; }
  .btn-label-sm { display: none; }
  .list .card-open { grid-template-columns: 48px minmax(0, 1fr); padding-right: 52px; }
  .list .cover { width: 48px; }
  .list .side { display: none; }
  .list .price-inline { display: inline; }
  /* dvh, not vh: on an iPhone vh is the screen without the browser bars. */
  .sheet { width: 100vw; max-width: 100vw; max-height: 85vh; max-height: 85dvh; margin: auto 0 0; border-radius: 20px 20px 0 0; }
  .sheet[open] { animation: sheet-up .25s ease; }
  .filters-inner { max-height: 85vh; max-height: 85dvh; }
  .fav-summary .actions { margin-left: 0; width: 100%; }
  .fav-summary .actions .btn { flex: 1 1 auto; }
  .toast { bottom: calc(80px + env(safe-area-inset-bottom)); }
}
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } }

.price-inline { display: none; color: var(--text); font-weight: 650; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------------------------------------------------- copies and boxes */

/* The box a copy is in: where it is in the physical collection. */
.tag-box { border-style: dashed; }

/* A title with several copies, some of them favourites: the heart half full. */
.fav.partial { color: var(--fav); }
.fav.partial svg { fill: color-mix(in srgb, currentColor 40%, transparent); }

/* The detail's list of copies, each with its own heart. */
.copies-list { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.copies-list h3 { margin: 0; font-size: 15px; font-weight: 700; }
.copies-list h3 .count { color: var(--faint); font-weight: 600; margin-left: 4px; }
.copies-note { margin: 2px 0 10px; color: var(--muted); font-size: 13px; }
.copies-list ul { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.copy-row {
  display: flex; align-items: center; gap: 12px; min-height: 48px;
  padding: 4px 4px 4px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface);
}
.copy-row.current { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.copy-no { flex: 0 0 auto; font-size: 12.5px; color: var(--faint); font-weight: 600; min-width: 74px; }
.copy-info { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 14px; color: var(--muted); }
.copy-info strong { color: var(--text); }
.copy-box { color: var(--text); }
/* The copy's heart sits in its row, not over a cover. */
.copy-row .fav { position: static; flex: 0 0 auto; box-shadow: none; background: transparent; }

/* "Bewaar alle 24": every copy the page shows now into the favourites. */
.page-favs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: -6px 0 14px; }
/* What the favourites hold already, and are worth: a link to them. */
.fav-summary-link { display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; font-weight: 600; color: var(--muted); text-decoration: none; font-variant-numeric: tabular-nums; }
.fav-summary-link:hover { color: var(--accent); }
.fav-summary-link svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fav-summary-link[hidden] { display: none; }
/* The worth of what the list shows, after its count. */
.result-value { color: var(--text); font-weight: 600; }
.fav-page { padding: 7px 14px; font-size: 13.5px; }
.fav-page svg { stroke: var(--fav); }
.fav-page[aria-pressed="true"] { color: var(--fav); border-color: color-mix(in srgb, var(--fav) 45%, transparent); }
.fav-page[aria-pressed="true"] svg { fill: var(--fav); }

/* ------------------------------------------------------------- the market */

.footer .footer-links { border-top: 0; padding-top: 8px; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.footer .footer-links a { color: var(--muted); }
.footer .footer-discogs { border-top: 0; padding-top: 8px; font-size: 12px; }

.tag-seller { max-width: 12em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.about-text-wide { margin-top: 32px; }
.sellers { margin-top: 36px; }
.sellers h2 { font-size: 22px; margin: 0 0 14px; letter-spacing: -.01em; }
.seller-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.seller-card { display: flex; flex-direction: column; gap: 3px; padding: 16px 18px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); text-decoration: none; min-width: 0; }
.seller-card strong { font-size: 17px; overflow-wrap: anywhere; }
.seller-card span { color: var(--muted); font-size: 14px; }
.seller-card .seller-card-n { color: var(--faint); font-size: 13px; }
.seller-card:hover strong { color: var(--accent); }

.seller-name { margin: 0 0 6px; font-size: clamp(28px, 4.6vw, 42px); line-height: 1.1; letter-spacing: -.02em; overflow-wrap: anywhere; }
.seller-where { color: var(--muted); margin: 0 0 22px !important; font-size: 15px !important; }
.consumer-note { margin: 20px 0 0 !important; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13.5px !important; line-height: 1.55 !important; color: var(--faint) !important; }

.seller-box { margin-top: 20px; padding: 14px 16px; border-radius: var(--radius); background: var(--surface-2); font-size: 15px; }
.seller-box .label { color: var(--muted); font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; margin-right: 6px; }
.seller-box .consumer-note { margin-top: 10px !important; padding-top: 10px; }

.discogs-credit { margin: 8px 0 0; font-size: 12.5px; }
.discogs-credit a { color: var(--faint); }
.copy-price { font-variant-numeric: tabular-nums; font-weight: 600; }

.seller-group { margin: 26px 0 0; }
.seller-group-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 10px; }
.seller-group-head h2 { margin: 0; font-size: 20px; }
.seller-group-head h2 a { text-decoration: none; }
.seller-group-sub { color: var(--muted); font-size: 14px; }
.seller-group .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }

.report-form { margin-top: 16px; padding: 16px; border-radius: var(--radius); background: var(--surface-2); display: grid; gap: 12px; }
.report-form h3 { margin: 0; font-size: 16px; }
.report-form label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.report-form select, .report-form textarea, .report-form input {
  font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; min-height: 44px; width: 100%;
}
.report-form textarea { min-height: 90px; resize: vertical; }
.report-error { margin: 0; color: var(--fav); font-size: 14px; }
.report-error:empty { display: none; }
.report-done { margin-top: 16px; color: var(--muted); }

.legal { max-width: 760px; margin: 8px auto 0; }
.legal h1 { font-size: clamp(26px, 4vw, 34px); margin: 0 0 16px; letter-spacing: -.02em; }
.legal h2 { font-size: 18px; margin: 26px 0 8px; }
.legal p { color: var(--muted); line-height: 1.65; margin: 0 0 12px; max-width: 70ch; }
.legal a { color: var(--accent); }
