/* De Platenman — gebouwd op het logo:
   links hemelsblauw (de draaitafel), rechts lichtgrijsblauw (de bak),
   dikke navy contouren, oranje als accent. */

:root {
  --blue: #7fb4f8;
  --blue-deep: #2f5fb8;
  --sky: #d5e1ef;
  --paper: #f3f7fc;
  --ink: #07101f;
  --ink-soft: #3a465c;
  --orange: #ffa43f;
  --line: 3px solid var(--ink);

  /* vinylkleur per genre */
  --g-electronic: #4f86e8;
  --g-pop: #ffa43f;
  --g-indie: #6aa58a;
  --g-rock: #d9534a;
  --g-hiphop: #8a6fd1;
  --g-soul: #e2b93b;
  --g-bkant: #2a2f3d;

  --f: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
  --split: clamp(360px, 40vw, 600px);
  --pad: clamp(16px, 3.4vw, 48px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--f);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: linear-gradient(90deg, var(--blue) 0 var(--split), var(--sky) var(--split));
  font-optical-sizing: auto;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: var(--blue-deep); text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }

/* ---------- Masthead ---------- */
.masthead-in { display: grid; grid-template-columns: var(--split) 1fr; align-items: end; }
.brand { justify-self: center; padding: clamp(24px, 4vw, 48px) var(--pad) 0; }
.brand img { width: clamp(96px, 10vw, 136px); height: auto; }
.intro { padding: clamp(24px, 4vw, 48px) var(--pad) 0; }
.intro h1 {
  margin: 0;
  font-size: clamp(3rem, 8.4vw, 7.4rem);
  line-height: .86;
  font-weight: 800;
  font-variation-settings: "wdth" 78;
  letter-spacing: -.03em;
}
.intro p { max-width: 54ch; margin: 1rem 0 0; color: var(--ink-soft); font-size: 1.06rem; }
.intro strong { color: var(--ink); }

/* ---------- Shop layout ---------- */
.shop { display: grid; grid-template-columns: var(--split) 1fr; align-items: start; }
.deck { padding: clamp(28px, 4vw, 48px) var(--pad) 64px; }
.deck-sticky { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 22px; max-width: 460px; margin: 0 auto; }
.crate { padding: clamp(28px, 4vw, 48px) var(--pad) 72px; min-width: 0; }

/* ---------- Draaitafel ---------- */
.turntable {
  position: relative;
  aspect-ratio: 1 / .86;
  background: var(--paper);
  border: 4px solid var(--ink);
  border-radius: 26px;
  box-shadow: inset 0 -10px 0 rgba(7,16,31,.07);
}
.platter {
  position: absolute; left: 6%; top: 7%; width: 74%; aspect-ratio: 1;
  border-radius: 50%; background: var(--ink);
  border: 4px solid var(--ink);
  box-shadow: 0 0 0 6px var(--sky), 0 0 0 9px var(--ink);
}
/* lichtreflectie: draait niet mee met de plaat */
.platter::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: conic-gradient(from 20deg, transparent 0 8%, rgba(255,255,255,.22) 12%, transparent 17% 55%, rgba(255,255,255,.14) 60%, transparent 66%);
  opacity: 0; transition: opacity .3s;
}
.vinyl {
  --vc: #141a26;
  position: absolute; inset: 2%; border-radius: 50%;
  background:
    repeating-radial-gradient(circle, rgba(0,0,0,0) 0 2px, rgba(0,0,0,.2) 2.5px 3px),
    radial-gradient(circle, var(--vc) 0 55%, color-mix(in srgb, var(--vc) 62%, #000) 100%);
  display: grid; place-items: center;
  opacity: 0; transform: scale(.92) translateY(-14px);
  transition: opacity .35s ease, transform .35s ease;
  animation: spin 1.8s linear infinite; animation-play-state: paused;
}
.label { width: 38%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 3px solid var(--ink); background: var(--orange); }
.label img { width: 100%; height: 100%; object-fit: cover; }
.spindle { position: absolute; width: 4%; aspect-ratio: 1; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }

.turntable:not([data-state="empty"]):not([data-state="loading"]) .vinyl { opacity: 1; transform: none; }
.turntable:not([data-state="empty"]) .platter::after { opacity: 1; }
.turntable[data-state="playing"] .vinyl { animation-play-state: running; }

.arm {
  position: absolute; right: 3%; top: 3%; height: 80%; width: auto; overflow: visible;
  transform-origin: 50% 13.3%; transform: rotate(-15deg);
  transition: transform .7s cubic-bezier(.5, 0, .2, 1);
}
.turntable[data-state="playing"] .arm { transform: rotate(-3deg); }
.arm-base { fill: var(--sky); stroke: var(--ink); stroke-width: 5; }
.arm-pivot { fill: var(--orange); stroke: var(--ink); stroke-width: 4; }
.arm-tube { fill: none; stroke: var(--ink); stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; }
.arm-head { fill: var(--orange); stroke: var(--ink); stroke-width: 4; }

.rpm { position: absolute; right: 6%; bottom: 6%; font-weight: 700; font-size: .85rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.power {
  position: absolute; left: 6%; bottom: 5%;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--sky); border: 3px solid var(--ink); cursor: pointer; display: grid; place-items: center;
}
.power span { width: 14px; height: 14px; border-radius: 50%; background: var(--ink-soft); }
.power[aria-pressed="true"] { background: var(--orange); }
.power[aria-pressed="true"] span { background: var(--ink); box-shadow: 0 0 0 3px var(--paper); }
.power:disabled { opacity: .45; cursor: default; }

@media (prefers-reduced-motion: reduce) {
  .vinyl, .arm, .platter::after { transition: none; }
  .turntable[data-state="playing"] .vinyl { animation: none; }
}

/* ---------- Nu op de draaitafel ---------- */
.now { min-height: 120px; }
.now-empty { margin: 0; color: var(--ink); font-size: 1.05rem; max-width: 38ch; }
.now-genre { margin: 0 0 .3rem; display: flex; gap: 8px; flex-wrap: wrap; }
.now-genre span { font-size: .82rem; font-weight: 700; padding: 2px 10px; border-radius: 99px; background: var(--paper); border: 2px solid var(--ink); }
.now-title { margin: 0; font-size: clamp(1.5rem, 2.4vw, 2.1rem); line-height: 1.02; font-weight: 800; font-variation-settings: "wdth" 80; overflow-wrap: anywhere; }
.now-track { display: block; font-weight: 400; margin-top: .12em; }
.now-date { margin: .5rem 0 0; color: var(--ink-soft); font-size: .92rem; }
.now-excerpt { margin: .7rem 0 1rem; max-width: 52ch; }
.now-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Knoppen ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 0 16px; border-radius: 12px;
  font: inherit; font-weight: 700; font-size: .95rem; text-decoration: none; cursor: pointer;
  border: var(--line); transition: transform .08s;
}
.btn:active { transform: translateY(2px); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { color: #fff; background: #1d2a44; }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--paper); color: var(--ink); }
.btn-orange { background: var(--orange); color: var(--ink); }
.btn-orange:hover { background: #ffb766; }
.btn-big { min-height: 56px; padding: 0 26px; font-size: 1.08rem; border-radius: 16px; }
.btn svg { width: 22px; height: 22px; fill: currentColor; }
#surprise { align-self: flex-start; }

/* ---------- Bak ---------- */
.crate-title { margin: 0 0 1rem; font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 800; font-variation-settings: "wdth" 80; line-height: 1; }

.dividers { display: flex; flex-wrap: wrap; gap: 8px 6px; align-items: flex-end; margin-bottom: 18px; }
.divider {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 8px 14px 10px;
  font: inherit; font-weight: 700; font-size: .95rem; color: var(--ink);
  background: var(--paper); border: var(--line); border-radius: 14px 14px 4px 4px; cursor: pointer;
}
.divider .n { font-weight: 400; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.divider .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--c); border: 2px solid var(--ink); }
.divider[aria-pressed="true"] { background: var(--ink); color: #fff; padding-top: 14px; }
.divider[aria-pressed="true"] .n { color: var(--sky); }
.divider[aria-pressed="true"] .dot { border-color: #fff; }
.divider:hover:not([aria-pressed="true"]) { background: #fff; }

.search { position: relative; max-width: 520px; }
.search svg { position: absolute; left: 14px; top: 50%; width: 22px; height: 22px; transform: translateY(-50%); fill: var(--ink-soft); pointer-events: none; }
.search input {
  width: 100%; min-height: 52px; padding: 0 16px 0 46px;
  font: inherit; font-size: 1.02rem; color: var(--ink);
  background: #fff; border: var(--line); border-radius: 14px;
}
.search input::placeholder { color: #7a879c; }
.search input:focus { outline: 3px solid var(--orange); outline-offset: 2px; }

.status { margin: 14px 0 18px; color: var(--ink-soft); min-height: 1.55em; }

.sleeves {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 26px 20px;
}
.sleeve { all: unset; display: block; width: 100%; cursor: pointer; border-radius: 8px; }
.sleeve:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
.art { position: relative; aspect-ratio: 1; }
.art .disc {
  position: absolute; inset: 4%; border-radius: 50%;
  background:
    radial-gradient(circle, var(--paper) 0 4%, var(--ink) 4.5% 5.5%, transparent 6%),
    radial-gradient(circle, var(--orange) 0 20%, transparent 20.5%),
    repeating-radial-gradient(circle, rgba(0,0,0,0) 0 2px, rgba(0,0,0,.22) 2.5px 3px),
    var(--vc, #141a26);
  border: 2px solid var(--ink);
  transition: transform .3s cubic-bezier(.3, .7, .3, 1);
}
.art .cover {
  position: relative; width: 100%; height: 100%; object-fit: cover;
  border: var(--line); border-radius: 6px; background: var(--paper);
}
.sleeve:hover .disc, .sleeve:focus-visible .disc { transform: translateX(24%); }
.sleeve[aria-current="true"] .disc { opacity: 0; }
.sleeve[aria-current="true"] .cover { opacity: .5; }
.sleeve .tag {
  position: absolute; left: 8px; bottom: 8px; display: none;
  background: var(--ink); color: #fff; font-size: .78rem; font-weight: 700; padding: 3px 9px; border-radius: 99px;
}
.sleeve[aria-current="true"] .tag { display: block; }
.meta { display: block; margin-top: 10px; }
.meta .a { display: block; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.meta .t { display: block; color: var(--ink-soft); font-size: .92rem; line-height: 1.3; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.meta .d { display: block; color: #66748b; font-size: .8rem; margin-top: 4px; }

.sleeves .ghost .art { background: rgba(255,255,255,.45); border: 3px dashed rgba(7,16,31,.25); border-radius: 6px; }
.sleeves .ghost .meta span { height: .9em; background: rgba(7,16,31,.12); border-radius: 4px; margin-top: 8px; display: block; width: 70%; }

.more-wrap { margin-top: 36px; }

/* ---------- Footer ---------- */
.foot { background: var(--ink); color: #c8d3e3; }
.foot-in { padding: 36px var(--pad) 44px; max-width: 1100px; display: grid; gap: 10px; }
.foot p { margin: 0; max-width: 72ch; }
.foot a { color: var(--blue); }
.foot a:hover { color: #fff; }
.foot strong { color: #fff; }
.foot .copy { color: #7d8aa1; font-size: .88rem; margin-top: 8px; }

/* ---------- Mobiel / tablet ---------- */
@media (max-width: 860px) {
  body { background: var(--sky); }
  .masthead { background: var(--blue); }
  .masthead-in, .shop { grid-template-columns: 1fr; }
  .masthead-in { grid-template-columns: auto 1fr; align-items: center; gap: 0 4px; }
  .brand { padding: 20px 0 0 var(--pad); justify-self: start; }
  .brand img { width: 84px; }
  .intro { display: contents; }
  .intro h1 { padding: 20px var(--pad) 0 12px; font-size: clamp(2.6rem, 12vw, 4.2rem); }
  .intro p { grid-column: 1 / -1; padding: 0 var(--pad); margin-top: 14px; }
  .deck { background: var(--blue); padding-top: 24px; padding-bottom: 40px; }
  .deck-sticky { position: static; max-width: 420px; }
  .turntable { max-width: 360px; width: 100%; }
}

/* ---------- YouTube-scherm + afspeelknop ---------- */
.screen { margin: 2px 0 14px; aspect-ratio: 16 / 9; border: var(--line); border-radius: 12px; overflow: hidden; background: var(--ink); }
.screen .np-yt, .screen .np-sc { width: 100%; height: 100%; }
.screen iframe { width: 100%; height: 100%; display: block; border: 0; }
.now-hint { margin: 0 0 12px; padding: 10px 14px; background: var(--paper); border: 2px solid var(--ink); border-radius: 10px; font-size: .95rem; }
#now-play svg { width: 18px; height: 18px; }
#now-play .i-pause, #now-play[aria-pressed="true"] .i-play { display: none; }
#now-play[aria-pressed="true"] .i-pause { display: block; }
#now-play:disabled { opacity: .45; cursor: default; }

/* ---------- Tip de Platenman (contact) ---------- */
.tip { background: var(--paper); border-top: 4px solid var(--ink); }
.tip-in { display: grid; grid-template-columns: var(--split) 1fr; }
.tip-text { padding: clamp(36px, 5vw, 64px) var(--pad); }
.tip-text h2 { margin: 0 0 .5rem; font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 800; font-variation-settings: "wdth" 80; line-height: 1; }
.tip-text p { margin: 0; max-width: 40ch; color: var(--ink-soft); }
.form { padding: clamp(36px, 5vw, 64px) var(--pad); display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; max-width: 760px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: .95rem; }
.field label span { font-weight: 400; color: var(--ink-soft); }
.field input, .field textarea {
  font: inherit; color: var(--ink); background: #fff;
  border: var(--line); border-radius: 12px; padding: 12px 14px; min-height: 50px; width: 100%;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--orange); outline-offset: 2px; }
.field [aria-invalid="true"] { border-color: #b3261e; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.form-status { margin: 0; font-weight: 600; }
.form-status.ok { color: #1f6b3a; }
.form-status.err { color: #b3261e; }

@media (max-width: 860px) {
  .tip-in { grid-template-columns: 1fr; }
  .tip-text { padding-bottom: 0; }
  .form { grid-template-columns: 1fr; }
}
