/* GotSoul MNL listening site */
:root {
  --bg: #0c0a09;
  --bg-2: #171311;
  --ink: #f4ead9;
  --ink-dim: rgba(244, 234, 217, .62);
  --ink-faint: rgba(244, 234, 217, .34);
  --red: #d8232a;
  --red-deep: #8e1419;
  --amber: #e2a85a;
  --wood: #5b3a24;
  --vinyl: #0a0a0a;
  --font-script: 'Yellowtail', 'Brush Script MT', cursive;
  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Figtree', 'Avenir Next', 'Helvetica Neue', sans-serif;
  --spin-period: 1.8s; /* 33 1/3 rpm */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh;
  background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 16px; line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; }

.wordmark {
  font-family: var(--font-script); font-weight: 400; color: var(--red);
  font-size: clamp(3.2rem, 12vw, 5.5rem); line-height: 1; margin: 0; letter-spacing: -.01em;
  text-shadow: 0 0 40px rgba(216, 35, 42, .35);
}
.wordmark.small { font-size: 1.9rem; text-shadow: none; }

.loading, .notice {
  min-height: 60dvh; display: grid; place-content: center; text-align: center;
  color: var(--ink-dim); padding: 2rem; gap: 1rem;
}
.loading::after {
  content: ''; width: 46px; height: 46px; border-radius: 50%; margin: 1rem auto 0;
  background: radial-gradient(circle, var(--red) 0 14%, #000 15% 100%);
  animation: spin var(--spin-period) linear infinite;
}
.notice p { font-family: var(--font-display); font-size: 1.4rem; color: var(--ink); margin: 0; }
.btn {
  display: inline-block; padding: .8rem 1.6rem; border-radius: 999px;
  background: var(--red); color: #fff; font-weight: 600; justify-self: center;
}

/* ---------- Shelf ---------- */
body.shelf {
  background:
    radial-gradient(ellipse 90% 40% at 50% -5%, rgba(226, 168, 90, .22), transparent 70%),
    linear-gradient(180deg, var(--bg-2), var(--bg) 40%);
}
.shelf-head { text-align: center; padding: clamp(2.5rem, 8vw, 5rem) 1.25rem 1.5rem; }
.tagline {
  font-family: var(--font-display); font-weight: 300; font-style: italic;
  font-size: clamp(1.25rem, 4.5vw, 1.8rem); margin: .75rem 0 .25rem; color: var(--ink);
}

.shelf-grid {
  list-style: none; margin: 0 auto; padding: 1rem 1rem 3rem; max-width: 1180px;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem 1rem;
}
@media (min-width: 640px) { .shelf-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem 1.5rem; } }
@media (min-width: 1024px) { .shelf-grid { grid-template-columns: repeat(4, 1fr); } }

.sleeve {
  opacity: 0; transform: translateY(18px);
  animation: rise .7s cubic-bezier(.2, .7, .2, 1) forwards;
  animation-delay: calc(var(--i) * 60ms + 120ms);
}
.sleeve a { display: block; }
.sleeve img {
  width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; background: var(--bg-2);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .05) inset;
  transition: transform .4s cubic-bezier(.2, .7, .2, 1), box-shadow .4s;
}
.sleeve a:hover img, .sleeve a:focus-visible img {
  transform: translateY(-6px) rotate(-1deg);
  box-shadow: 0 30px 50px -18px rgba(0, 0, 0, .95), 0 0 0 1px rgba(226, 168, 90, .35) inset;
}
.sleeve-meta { display: grid; gap: .1rem; padding: .7rem .1rem 0; }
.sleeve-meta strong { font-family: var(--font-display); font-weight: 500; font-size: 1rem; line-height: 1.25; }
.sleeve-meta span { color: var(--ink-dim); font-size: .85rem; }

/* shelf plank under each row */
.shelf-grid::after { content: none; }

.shelf-foot {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  max-width: 1180px; margin: 0 auto; padding: 1rem 1.25rem 2.5rem;
  color: var(--ink-faint); font-size: .8rem;
}
.shelf-foot a { color: var(--ink-dim); border-bottom: 1px solid var(--ink-faint); }

/* ---------- Player ---------- */
body.player { background: var(--bg); overflow-x: hidden; }
.bg {
  position: fixed; inset: -10%; z-index: -2; opacity: 0; transition: opacity 1.2s ease;
}
.bg.in { opacity: 1; }
.bg img {
  width: 100%; height: 100%; object-fit: cover;
  filter: blur(30px) brightness(.5) saturate(1.2); transform: scale(1.15);
}
.vignette {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 50% 30%, transparent 40%, rgba(0, 0, 0, .55) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, .25), transparent 25%, transparent 60%, rgba(12, 10, 9, .9));
}

.player-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem; max-width: 1180px; margin: 0 auto;
}
.back { color: var(--ink-dim); font-size: .9rem; padding: .4rem .2rem; }
.back:hover { color: var(--ink); }

.player-body { max-width: 1180px; margin: 0 auto; padding: 0 1.25rem 3rem; display: grid; gap: 1.5rem; }
@media (min-width: 900px) {
  .player-body { grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: start; padding-top: 1rem; }
  .deck { position: sticky; top: 2rem; justify-items: start; }
}

.deck { display: grid; place-items: center; padding: .5rem 0 0; position: relative; }

/* Turntable */
.turntable {
  --size: min(72vw, 420px);
  position: relative; width: var(--size); height: var(--size); margin: 1.2rem auto .4rem;
}
@media (min-width: 900px) { .turntable { --size: min(34vw, 460px); margin-left: 0; } }
.platter {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #1d1917, #0f0d0c 70%);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .95), 0 0 0 1px rgba(255, 255, 255, .04);
  display: grid; place-items: center;
}
.record {
  position: relative; width: 94%; height: 94%; border-radius: 50%; cursor: pointer;
  background:
    radial-gradient(circle, transparent 0 17.5%, rgba(255,255,255,.06) 17.6% 18%, transparent 18.1%),
    repeating-radial-gradient(circle at 50% 50%,
      #0b0b0b 0px, #0b0b0b 1.2px, #161616 1.6px, #0e0e0e 2.4px, #121212 3px),
    var(--vinyl);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .05), inset 0 0 60px rgba(0, 0, 0, .9);
  animation: spin var(--spin-period) linear infinite; animation-play-state: paused;
  will-change: transform;
}
.record::before { /* sheen */
  content: ''; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background:
    conic-gradient(from 200deg, transparent 0 8%, rgba(255,255,255,.07) 14%, transparent 22%, transparent 55%, rgba(255,255,255,.05) 62%, transparent 70%);
  mix-blend-mode: screen;
}
.record::after { /* lead-in / dead wax ring */
  content: ''; position: absolute; inset: 1.5%; border-radius: 50%; pointer-events: none;
  border: 1px solid rgba(255, 255, 255, .06);
}
body.playing .record { animation-play-state: running; }
.label {
  position: absolute; inset: 32%; border-radius: 50%; overflow: hidden;
  box-shadow: 0 0 0 2px #050505, 0 0 0 3px rgba(255, 255, 255, .08);
}
.label img { width: 100%; height: 100%; object-fit: cover; }
.spindle {
  position: absolute; left: 50%; top: 50%; width: 3.2%; height: 3.2%; transform: translate(-50%, -50%);
  border-radius: 50%; background: radial-gradient(circle, #d9d5cc, #7a7570 60%, #3b3835);
  box-shadow: 0 0 0 1.5px #000;
}

/* Tonearm */
.tonearm {
  position: absolute; top: -4%; right: -9%; width: 16%; height: 70%;
  pointer-events: none;
}
.pivot {
  position: absolute; top: 0; right: 0; width: 100%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #3b3733, #16130f 70%);
  box-shadow: 0 10px 25px -8px rgba(0,0,0,.9), inset 0 0 0 1px rgba(255,255,255,.06);
}
.pivot::after {
  content: ''; position: absolute; inset: 28%; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #c9c3b8, #6b665f 70%);
}
.arm {
  position: absolute; top: calc(var(--size) * .08); left: 50%;
  width: 9%; height: calc(var(--size) * .62);
  transform-origin: 50% 0;
  transform: translateX(-50%) rotate(-20deg); transition: transform .9s cubic-bezier(.4, 0, .2, 1);
  background: linear-gradient(90deg, #8e8a83, #d7d2c8 45%, #7e7a73);
  border-radius: 999px; box-shadow: 0 6px 14px -4px rgba(0,0,0,.8);
}
.headshell {
  position: absolute; bottom: -2%; left: 50%; width: 260%; height: 11%;
  transform: translateX(-50%); transform-origin: 50% 0;
  background: linear-gradient(180deg, #2a2623, #0f0d0b); border-radius: 3px 3px 5px 5px;
  box-shadow: 0 6px 12px -4px rgba(0,0,0,.9);
}
.headshell::after {
  content: ''; position: absolute; left: 50%; bottom: -30%; width: 14%; height: 30%; transform: translateX(-50%);
  background: var(--red); border-radius: 1px;
}
body.playing .arm { transform: translateX(-50%) rotate(14deg); }

.blocked {
  position: absolute; inset: 0; margin: auto; width: max-content; height: max-content;
  padding: 1rem 1.8rem; border-radius: 999px; background: var(--red); color: #fff; font-weight: 600;
  box-shadow: 0 20px 40px -12px rgba(216, 35, 42, .7);
}

/* Now playing + transport */
.now { text-align: center; padding: .25rem 0 0; }
@media (min-width: 900px) { .now { text-align: left; } }
.now-title {
  font-family: var(--font-display); font-weight: 500; font-size: clamp(1.45rem, 5.5vw, 2.1rem);
  line-height: 1.15; letter-spacing: -.01em; text-wrap: balance;
}
.now-sub { color: var(--ink-dim); margin-top: .35rem; font-size: .95rem; }

.transport { margin-top: 1.1rem; display: grid; gap: .9rem; }
.ctls { display: flex; align-items: center; justify-content: center; gap: 1.5rem; }
@media (min-width: 900px) { .ctls { justify-content: flex-start; } }
.ctl {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  font-size: 2rem; line-height: 1; color: var(--ink-dim); transition: color .2s, transform .2s;
}
.ctl:hover { color: var(--ink); }
.ctl:active { transform: scale(.94); }
.ctl.play {
  width: 64px; height: 64px; background: var(--red); color: #fff;
  box-shadow: 0 16px 36px -14px rgba(216, 35, 42, .9);
}
.ctl.play::before {
  content: ''; width: 0; height: 0; margin-left: 4px;
  border-style: solid; border-width: 11px 0 11px 19px; border-color: transparent transparent transparent #fff;
}
body.playing .ctl.play::before {
  width: 18px; height: 20px; margin-left: 0; border: 0;
  background: linear-gradient(90deg, #fff 0 36%, transparent 36% 64%, #fff 64%);
}
.seek { display: grid; grid-template-columns: auto 1fr auto; gap: .7rem; align-items: center; }
.time { font-variant-numeric: tabular-nums; font-size: .8rem; color: var(--ink-faint); min-width: 2.6em; }
.time:last-child { text-align: right; }
.progress { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .14); cursor: pointer; position: relative; }
.progress::before { content: ''; position: absolute; inset: -10px 0; }
.fill { height: 100%; width: 0; border-radius: 2px; background: var(--red); transition: width .25s linear; }

/* Track list */
.side-label {
  margin: 1.8rem 0 .4rem; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink-faint); font-weight: 600;
}
.tracks { list-style: none; margin: 0; padding: 0; }
.track {
  display: grid; grid-template-columns: 2.2rem 1fr auto; align-items: center; gap: .6rem;
  padding: .8rem .5rem; border-top: 1px solid rgba(255, 255, 255, .07); cursor: pointer;
  transition: background .2s;
}
.track:last-child { border-bottom: 1px solid rgba(255, 255, 255, .07); }
.track:hover { background: rgba(255, 255, 255, .04); }
.track.unavailable { cursor: default; opacity: .4; }
.track .num { font-variant-numeric: tabular-nums; color: var(--ink-faint); font-size: .85rem; }
.track .name { font-size: 1rem; }
.track .dur { font-variant-numeric: tabular-nums; color: var(--ink-faint); font-size: .85rem; }
.track .bars { display: none; height: 14px; align-items: flex-end; gap: 2px; }
.track .bars i { width: 3px; height: 30%; background: var(--red); border-radius: 1px; }
.track.active { color: var(--ink); }
.track.active .num { display: none; }
.track.active .bars { display: flex; }
.track.active .name { color: var(--red); font-weight: 600; }
body.playing .track.active .bars i { animation: eq .9s ease-in-out infinite; }
body.playing .track.active .bars i:nth-child(2) { animation-delay: -.3s; }
body.playing .track.active .bars i:nth-child(3) { animation-delay: -.6s; }
body.playing .track.active .bars i:nth-child(4) { animation-delay: -.15s; }

/* ---------- QR sheet ---------- */
body.qr { background: #fff; color: #111; }
.qr-head { display: flex; justify-content: space-between; align-items: baseline; padding: 1.5rem 1.5rem .5rem; max-width: 1100px; margin: 0 auto; }
.qr-head .wordmark { font-size: 2.6rem; text-shadow: none; margin-bottom: .5rem; }
.qr-head p { margin: 0; color: #666; font-size: .9rem; }
.qr-grid {
  list-style: none; margin: 0 auto; padding: 1rem 1.5rem 3rem; max-width: 1100px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.25rem;
}
.qr-card {
  border: 1px solid #ddd; border-radius: 10px; padding: 1rem; display: grid; gap: .6rem; justify-items: center; text-align: center;
  break-inside: avoid; page-break-inside: avoid;
}
.qr-card img.qr { width: 180px; height: 180px; image-rendering: pixelated; }
.qr-card .cover { width: 64px; height: 64px; object-fit: cover; border-radius: 4px; }
.qr-card strong { font-family: var(--font-display); font-weight: 500; font-size: 1rem; line-height: 1.2; }
.qr-card span { color: #555; font-size: .85rem; }
.qr-card .mark { font-family: var(--font-script); color: var(--red); font-size: 1.3rem; line-height: 1; }
@media print {
  @page { size: A4; margin: 12mm; }
  .no-print { display: none !important; }
  .qr-grid { grid-template-columns: repeat(3, 1fr); gap: 8mm; padding: 0; }
  .qr-card { border-color: #bbb; }
}

/* ---------- Motion ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes eq { 0%, 100% { height: 30%; } 50% { height: 100%; } }
@media (prefers-reduced-motion: reduce) {
  .record { animation: none; }
  .sleeve { animation: none; opacity: 1; transform: none; }
  .bg { transition: none; }
}
