/* ==========================================================================
   COMPONENTS — cards, media, facades, stats, gallery, buttons, motion
   ========================================================================== */

/* --------------------------------------------------------------------------
   PLACEHOLDER — stands in for art that has not been supplied yet.
   Deliberately looks unfinished so nothing fake ships by accident.
   -------------------------------------------------------------------------- */

.ph {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 80px;
  color: var(--white-30);
  background-color: #1d1e22;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255,255,255,.028) 0 10px,
    transparent 10px 20px
  );
  box-shadow: inset 0 0 0 1px var(--line-soft);
  overflow: hidden;
}
.ph__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: center;
  padding: 8px 14px;
  max-width: 90%;
}

/* --------------------------------------------------------------------------
   MEDIA — fixed-ratio wrapper used by every card type
   -------------------------------------------------------------------------- */

.media {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 4px;
  background: #1d1e22;
}
.media--16x9   { aspect-ratio: 16 / 9; }
.media--editor { aspect-ratio: 1.45; }
.media--square { aspect-ratio: 1; }
.media--portrait { aspect-ratio: 4 / 5; }

.media img,
.media .ph {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease-out);
}

/* --------------------------------------------------------------------------
   CARD — image + title + meta. The workhorse of every grid.
   -------------------------------------------------------------------------- */

.card { display: flex; flex-direction: column; gap: 16px; }
.card__body { display: flex; flex-direction: column; gap: 2px; }
.card__title { font-size: var(--fs-h6); font-weight: 400; letter-spacing: -.01em; color: var(--white); }
.card__meta  { font-size: var(--fs-h6); font-weight: 400; letter-spacing: -.01em; color: var(--white-70); }
.card__credit { font-family: var(--font-mono); font-size: 11px; letter-spacing: .05em; color: var(--white-30); text-transform: uppercase; }

a.card:hover { color: inherit; }
a.card:hover .media img { transform: scale(1.04); }

/* --------------------------------------------------------------------------
   VIDEO / AUDIO FACADE
   The iframe is only injected on click — keeps the page fast and means no
   request reaches YouTube, Spotify or SoundCloud until the visitor asks.
   -------------------------------------------------------------------------- */

.facade {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  cursor: pointer;
  background: #1d1e22;
  border: 0;
  padding: 0;
  overflow: hidden;
}
.facade img,
.facade .ph { width: 100%; height: 100%; object-fit: cover; }

.facade::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.25);
  transition: background var(--dur-fast) var(--ease-out);
}
.facade:hover::after { background: rgba(0,0,0,.1); }

.facade__play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 74px; height: 74px;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.45);
  transition: transform var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out);
}
.facade:hover .facade__play {
  transform: translate(-50%, -50%) scale(1.09);
  background: rgba(255,255,255,.24);
}
.facade__play svg { width: 22px; height: 22px; fill: var(--white); margin-left: 3px; }

/* Small source tag, bottom-left of a facade */
.facade__src {
  position: absolute;
  left: 12px; bottom: 12px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(0,0,0,.5);
  padding: 5px 9px;
  border-radius: 2px;
}

.facade__frame { width: 100%; height: 100%; border: 0; display: block; }

/* Consent sheet shown on first play */
.consent {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 16px;
  background: rgba(10,10,12,.94);
  border-top: 1px solid var(--line);
}
.consent__text { flex: 1 1 240px; font-size: 14px; line-height: 1.4; color: var(--white-70); }

/* --------------------------------------------------------------------------
   BUTTONS
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 2px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -.01em;
  line-height: 1;
  white-space: nowrap;
  background: transparent;
  color: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
}
.btn:hover {
  color: var(--white);
  background: rgba(255,255,255,.07);
  box-shadow: inset 0 0 0 1px var(--white-30);
}
.btn--solid { background: var(--white); color: var(--bg); box-shadow: none; }
.btn--solid:hover { color: var(--bg); background: rgba(255,255,255,.86); }
.btn--sm { padding: 9px 14px; font-size: 13px; }
.btn svg { width: 15px; height: 15px; fill: currentColor; flex: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* --------------------------------------------------------------------------
   STATS — follower / streaming numbers with count-up
   -------------------------------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 40px var(--grid-gap-col);
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}
.stat { display: flex; flex-direction: column; gap: 10px; }
.stat__value {
  font-size: var(--fs-stat);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: .95;
  font-variant-numeric: tabular-nums;
}
.stat__label {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--white-50);
}
a.stat:hover .stat__value { color: var(--white-70); }

.stats__note {
  width: 100%;
  max-width: var(--container);
  margin: 30px auto 0;
  padding-inline: var(--pad-x);
}

@media (max-width: 809.98px) {
  .stats { grid-template-columns: repeat(2, 1fr); gap: 30px 16px; }
}

/* --------------------------------------------------------------------------
   LIST ROWS — sets, shows, tracklists
   -------------------------------------------------------------------------- */

.rows {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
  border-top: 1px solid var(--line);
}
.row {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  align-items: baseline;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left var(--dur-fast) var(--ease-out);
}
a.row:hover { padding-left: 10px; color: inherit; }
.row__date {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--white-50);
}
.row__main { font-size: var(--fs-h6); color: var(--white); }
.row__sub  { font-size: var(--fs-small); color: var(--white-70); margin-top: 4px; }
.row__end  { font-size: var(--fs-small); color: var(--white-50); text-align: right; }

@media (max-width: 809.98px) {
  .row { grid-template-columns: 1fr; gap: 6px; padding: 18px 0; }
  .row__end { text-align: left; }
}

/* --------------------------------------------------------------------------
   PRESS GALLERY + LIGHTBOX
   -------------------------------------------------------------------------- */

.shot { display: flex; flex-direction: column; gap: 10px; }
.shot__btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.shot__foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  place-items: center;
  padding: 40px var(--pad-x);
  background: rgba(8,8,10,.96);
}
.lightbox[data-open="true"] { display: grid; }
.lightbox__img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  margin-inline: auto;
}
.lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  max-width: 1100px;
  margin: 18px auto 0;
}
.lightbox__close {
  position: absolute;
  top: 20px; right: 20px;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--line);
}
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
}
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }

/* --------------------------------------------------------------------------
   MISC BLOCKS
   -------------------------------------------------------------------------- */

/* Small pill, e.g. "Resident Advisor" or a genre tag */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--white-70);
}
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* Two-column prose block used for the long bio */
.prose { display: flex; flex-direction: column; gap: 1.1em; max-width: 720px; }
.prose p { font-size: var(--fs-body); line-height: 1.55; color: var(--white-70); }
.prose p strong { color: var(--white); font-weight: 500; }

/* Copy-to-clipboard field for the booking address */
.copyfield {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px var(--line);
  background: rgba(255,255,255,.03);
}
.copyfield__value {
  flex: 1 1 200px;
  font-size: var(--fs-h6);
  letter-spacing: -.01em;
  word-break: break-all;
}

/* Definition pairs (booking territories, imprint details) */
.pairs { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
.pair {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.pair__k {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--white-50);
}
.pair__v { font-size: var(--fs-body); color: var(--white); }
@media (max-width: 809.98px) {
  .pair { grid-template-columns: 1fr; gap: 6px; }
}

/* Empty-state note rendered when a content.js list is still empty */
.empty {
  grid-column: 1 / -1;
  padding: 40px;
  text-align: center;
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--white-30);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   MOTION
   Mirrors the reference's appear values: blur + lift + scale, spring-ish ease.
   -------------------------------------------------------------------------- */

/* Section / block reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity .9s var(--ease-spring),
              transform .9s var(--ease-spring);
  transition-delay: var(--d, 0ms);
}
.reveal--card { transform: translateY(60px); }
.reveal.is-in { opacity: 1; transform: none; }

/* Full-bleed image appear: opacity .001 -> 1, scale 1.2 -> 1, y 40 -> 0 */
.appear-img {
  opacity: .001;
  transform: translateY(40px) scale(1.2);
  transition: opacity var(--dur-reveal) var(--ease-spring),
              transform var(--dur-reveal) var(--ease-spring);
  will-change: transform, opacity;
}
.appear-img.is-in { opacity: 1; transform: none; }

/* Per-word reveal (headlines, nav): blur 10px + 10px lift */
.words > span {
  display: inline-block;
  opacity: .001;
  filter: blur(10px);
  transform: translateY(10px);
  transition: opacity .8s var(--ease-out),
              filter .8s var(--ease-out),
              transform .8s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 55ms + var(--d, 0ms));
}
.words.is-in > span { opacity: 1; filter: blur(0); transform: none; }

/* Per-letter reveal (sticky card titles): blur 3px + lift + scale .8 */
.letters > span {
  display: inline-block;
  opacity: .001;
  filter: blur(3px);
  transform: translateY(10px) scale(.8);
  transition: opacity .55s var(--ease-out),
              filter .55s var(--ease-out),
              transform .55s var(--ease-out);
  transition-delay: calc(var(--i, 0) * var(--stagger));
}
.letters.is-in > span,
.is-in .letters > span { opacity: 1; filter: blur(0); transform: none; }
.letters > span.is-space { width: .3em; }

/* --------------------------------------------------------------------------
   CUSTOM CURSOR — desktop pointer devices only
   -------------------------------------------------------------------------- */

.cursor {
  position: fixed;
  top: 0; left: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  width: 12px; height: 12px;
  border-radius: 999px;
  background: var(--white);
  color: var(--bg);
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-50%, -50%, 0);
  transition: width .35s var(--ease-out),
              height .35s var(--ease-out),
              opacity .25s var(--ease-out),
              background .25s var(--ease-out);
  mix-blend-mode: difference;
}
.cursor.is-visible { opacity: 1; }
.cursor.is-active {
  width: 92px; height: 92px;
  mix-blend-mode: normal;
}
.cursor__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity .2s var(--ease-out);
  white-space: nowrap;
}
.cursor.is-active .cursor__label { opacity: 1; }

@media (hover: none), (pointer: coarse) {
  .cursor { display: none; }
}

/* --------------------------------------------------------------------------
   REDUCED MOTION — show everything immediately, no blur, no drift
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .appear-img,
  .words > span, .letters > span {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
  }
  .stack__line { transform: scaleX(1) !important; }
  .cursor { display: none; }
  .scroll-cue__dot { animation: none; }
}
