:root {
  --bg: #050505;
  --fg: #e8e8e8;
  --muted: rgba(232, 232, 232, 0.62);
  --line: rgba(232, 232, 232, 0.22);
  --accent: #c8c8c8;
  --font: "Courier New", Courier, monospace;
  --intro-ms: 1800ms;
  --reveal-ms: 700ms;
  --site-social-h: 3.25rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--fg);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--site-social-h) + env(safe-area-inset-bottom, 0px));
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* —— Intro: chip failure —— */
.intro {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  height: 100dvh;
  background: #000;
  overflow: hidden;
  transition: opacity var(--reveal-ms) ease, visibility var(--reveal-ms) ease;
}

.intro > svg {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.intro.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Full load only: hide page under boot overlay until site.js reveals it */
html.js body.has-intro:not(.is-ready) .site {
  opacity: 0 !important;
}

.intro__stage {
  position: relative;
  width: min(72vw, 420px);
  aspect-ratio: 1;
}

.intro__logo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  mix-blend-mode: screen;
  filter: contrast(1.15) brightness(1.05);
  animation: chip-boot var(--intro-ms) steps(2, end) forwards;
}

.intro__logo--r,
.intro__logo--g,
.intro__logo--b {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: screen;
  opacity: 0;
  pointer-events: none;
}

.intro__logo--r {
  filter: url(#intro-channel-r);
  animation: channel-r var(--intro-ms) steps(1) forwards;
}

.intro__logo--g {
  filter: url(#intro-channel-g);
  animation: channel-g var(--intro-ms) steps(1) forwards;
}

.intro__logo--b {
  filter: url(#intro-channel-b);
  animation: channel-b var(--intro-ms) steps(1) forwards;
}

.intro__scan {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 2px,
    rgba(0, 0, 0, 0.35) 2px,
    rgba(0, 0, 0, 0.35) 3px
  );
  mix-blend-mode: multiply;
  opacity: 0.45;
  pointer-events: none;
  animation: scan-roll var(--intro-ms) linear forwards;
}

.intro__noise {
  position: absolute;
  inset: -10%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  opacity: 0;
  mix-blend-mode: overlay;
  pointer-events: none;
  animation: noise-burst var(--intro-ms) steps(3) forwards;
}

.intro__hud {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 10%;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(200, 255, 210, 0.75);
  text-align: center;
  opacity: 0;
  animation: hud-blink var(--intro-ms) steps(1) forwards;
}

@keyframes chip-boot {
  0% {
    opacity: 0;
    transform: scale(0.96);
    filter: contrast(2) brightness(2) saturate(0);
    clip-path: inset(42% 0 42% 0);
  }
  8% {
    opacity: 1;
    clip-path: inset(18% 0 55% 0);
  }
  14% {
    clip-path: inset(60% 0 10% 0);
    transform: translateX(-6px) scale(1.02);
  }
  22% {
    clip-path: inset(0 0 0 0);
    transform: translateX(4px);
    filter: contrast(1.4) brightness(1.3);
  }
  35% {
    transform: translateX(0);
    filter: contrast(1.15) brightness(1.05);
  }
  48% {
    opacity: 0.35;
    transform: translateY(2px);
  }
  52% {
    opacity: 1;
    transform: translateX(-3px);
  }
  68% {
    clip-path: inset(0 12% 0 0);
  }
  72% {
    clip-path: inset(0 0 0 0);
  }
  88% {
    opacity: 1;
    filter: contrast(1.15) brightness(1.05);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: contrast(1.1) brightness(1);
  }
}

@keyframes channel-r {
  0%,
  20% {
    opacity: 0;
  }
  24% {
    opacity: 0.85;
    transform: translate(-7px, 1px);
  }
  32% {
    opacity: 0;
  }
  55% {
    opacity: 0.7;
    transform: translate(9px, -2px);
  }
  62% {
    opacity: 0;
  }
  78% {
    opacity: 0.55;
    transform: translate(-4px, 0);
  }
  86%,
  100% {
    opacity: 0;
  }
}

@keyframes channel-g {
  0%,
  28% {
    opacity: 0;
  }
  30% {
    opacity: 0.6;
    transform: translate(5px, -3px);
  }
  38% {
    opacity: 0;
  }
  70% {
    opacity: 0.5;
    transform: translate(-8px, 2px);
  }
  76%,
  100% {
    opacity: 0;
  }
}

@keyframes channel-b {
  0%,
  40% {
    opacity: 0;
  }
  44% {
    opacity: 0.75;
    transform: translate(6px, 2px);
  }
  50% {
    opacity: 0;
  }
  82% {
    opacity: 0.45;
    transform: translate(-5px, -1px);
  }
  90%,
  100% {
    opacity: 0;
  }
}

@keyframes scan-roll {
  0% {
    transform: translateY(-8%);
    opacity: 0.2;
  }
  40% {
    opacity: 0.55;
  }
  100% {
    transform: translateY(8%);
    opacity: 0.15;
  }
}

@keyframes noise-burst {
  0%,
  18% {
    opacity: 0;
  }
  20%,
  26% {
    opacity: 0.35;
  }
  27% {
    opacity: 0;
  }
  48%,
  54% {
    opacity: 0.4;
  }
  55% {
    opacity: 0;
  }
  74%,
  80% {
    opacity: 0.25;
  }
  100% {
    opacity: 0;
  }
}

@keyframes hud-blink {
  0%,
  12% {
    opacity: 0;
  }
  14%,
  30% {
    opacity: 1;
  }
  32%,
  44% {
    opacity: 0;
  }
  46%,
  70% {
    opacity: 0.85;
  }
  72%,
  84% {
    opacity: 0.2;
  }
  86%,
  100% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .intro__logo,
  .intro__logo--r,
  .intro__logo--g,
  .intro__logo--b,
  .intro__scan,
  .intro__noise,
  .intro__hud {
    animation: none !important;
  }

  .intro__logo {
    opacity: 1;
  }

  .intro {
    transition-duration: 0.01ms;
  }
}

/* —— Site shell —— */
.site {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  background: var(--bg);
  opacity: 0;
  transition: opacity var(--reveal-ms) ease;
}

.site.is-visible {
  opacity: 1;
  /* no transform — breaks <video> compositing (black picture, audio only) */
  transform: none;
}

.site__bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-color: #050505;
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.82) 45%, rgba(0, 0, 0, 0.94) 100%),
    var(--site-bg-image, url("../assets/bg-forest.jpg"));
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  pointer-events: none;
}

.site__grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.site > .topbar,
.site > .hero,
.site > .page,
.site > .footer,
.site > main {
  position: relative;
  z-index: 2;
}

.topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: clamp(1.25rem, 3vw, 2rem) clamp(1.25rem, 4vw, 3rem) 0;
}

.brand-mark {
  width: var(--brand-size, clamp(52px, 8vw, 72px));
  height: auto;
  display: block;
  background: transparent;
}

.primary-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem 1.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.primary-nav a {
  opacity: 0.55;
  transition: opacity 0.2s ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible,
.primary-nav a[aria-current="page"] {
  opacity: 1;
}

.lang {
  display: flex;
  gap: 0.65rem;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  justify-self: end;
}

.lang a {
  opacity: 0.45;
  transition: opacity 0.2s ease;
}

.lang a:hover,
.lang a[aria-current="page"] {
  opacity: 1;
}

.site--page {
  opacity: 1;
  transform: none;
}

.page {
  padding: clamp(2rem, 5vh, 3.5rem) clamp(1.25rem, 4vw, 3rem) 4rem;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.page--wide {
  max-width: 1200px;
}

.page__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.page__subtitle {
  margin: 2rem 0 1rem;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.page__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.page__toolbar .page__lead {
  margin: 0;
}

.sort-toggle {
  display: flex;
  gap: 0.4rem;
}

.sort-toggle .btn.is-active {
  border-color: rgba(200, 255, 210, 0.45);
  color: #c8ffd2;
}

/* —— Mixes list —— */
.page__note {
  max-width: 36rem;
  line-height: 1.5;
}

html.is-navigating {
  cursor: progress;
}

.mix-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 0.85rem 1rem;
  align-items: center;
  padding: 0.55rem 0.35rem;
  border-bottom: 1px solid rgba(232, 232, 232, 0.08);
}

.mix-row.is-playing {
  background: rgba(200, 255, 210, 0.04);
}

.mix-row__art {
  display: block;
  width: 72px;
  height: 72px;
  overflow: hidden;
  background: #111;
}

.mix-row__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mix-row__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

.mix-row__title a {
  color: inherit;
  text-decoration: none;
}

.mix-row__title a:hover,
.mix-row__title a:focus-visible {
  color: #c8ffd2;
}

.mix-row__meta {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.mix-row__actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

.mix-row__play.is-active {
  border-color: rgba(200, 255, 210, 0.45);
  color: #c8ffd2;
}

.tracklist--static li {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(232, 232, 232, 0.06);
  color: var(--text);
}

@media (max-width: 640px) {
  .mix-row {
    grid-template-columns: 56px minmax(0, 1fr);
  }
  .mix-row__art {
    width: 56px;
    height: 56px;
  }
  .mix-row__actions {
    grid-column: 1 / -1;
    justify-content: stretch;
  }
  .mix-row__actions .btn {
    flex: 1;
    text-align: center;
  }
}

.track-row.is-active .track-row__title {
  color: #c8ffd2;
}

.page a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.backlink {
  margin: 0 0 1.25rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.backlink a {
  text-decoration: none;
  opacity: 0.7;
}

.backlink a:hover {
  opacity: 1;
}

.muted {
  color: var(--muted);
}

.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.hero {
  padding: clamp(2.5rem, 8vh, 5rem) clamp(1.25rem, 4vw, 3rem) 2rem;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.hero__welcome {
  margin: 0 0 1.75rem;
  font-size: clamp(1.05rem, 2.6vw, 1.55rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  text-shadow: 0 0 24px rgba(0, 0, 0, 0.85);
}

.hero__welcome span {
  letter-spacing: 0.14em;
}

.nav-sections {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
  margin: 0;
  padding: 0 0 1.25rem;
  list-style: none;
  border-bottom: 1px solid var(--line);
}

.nav-sections a {
  font-size: clamp(0.85rem, 1.8vw, 1rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.nav-sections a:hover,
.nav-sections a:focus-visible {
  opacity: 1;
}

main {
  /* content sections use .page for layout */
}

.section {
  padding: clamp(2.5rem, 6vh, 4rem) 0;
  border-bottom: 1px solid var(--line);
}

.section:last-child {
  border-bottom: 0;
}

.section h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.section p {
  margin: 0;
  max-width: 42rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.stub {
  margin-top: 1.25rem;
  padding: 1rem 0;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer {
  padding: 2rem clamp(1.25rem, 4vw, 3rem) 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* In-page footers replaced by persistent social bar */
.site > .footer {
  display: none;
}

/* —— Persistent social footer (under player when open) —— */
.site-social {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  min-height: var(--site-social-h);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.45rem clamp(0.6rem, 2vw, 1.25rem);
  padding-bottom: max(0.45rem, env(safe-area-inset-bottom));
  background: rgba(0, 0, 0, 0.92);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(10px);
  box-sizing: border-box;
}

.site-social__links {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0.15rem 0.35rem;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.site-social__links::-webkit-scrollbar {
  display: none;
}

.site-social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  color: var(--muted);
  opacity: 0.75;
  border-radius: 2px;
  transition: color 0.15s ease, opacity 0.15s ease, background 0.15s ease;
}

.site-social__link:hover,
.site-social__link:focus-visible {
  color: var(--fg);
  opacity: 1;
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.site-social__link svg {
  width: 1.05rem;
  height: 1.05rem;
  display: block;
  fill: currentColor;
}

.site-social__mail {
  margin: 0;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-align: center;
  line-height: 1.2;
}

.site-social__mail a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.site-social__mail a:hover,
.site-social__mail a:focus-visible {
  color: var(--fg);
  border-bottom-color: rgba(232, 232, 232, 0.35);
  outline: none;
}

@media (max-width: 520px) {
  :root {
    --site-social-h: 3.6rem;
  }

  .site-social__link {
    width: 1.85rem;
    height: 1.85rem;
  }

  .site-social__link svg {
    width: 0.95rem;
    height: 0.95rem;
  }

  .site-social__mail {
    font-size: 0.58rem;
  }
}

/* —— Releases grid (Bandcamp-like, centered) —— */
.releases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1.35rem 1.1rem;
  width: 100%;
  margin: 0 auto;
  justify-content: center;
}

@media (min-width: 720px) {
  .releases-grid {
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 1.6rem 1.25rem;
  }
}

.release {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 0;
}

.release__cover {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  background: #111;
  cursor: pointer;
  overflow: hidden;
  user-select: none;
  -webkit-user-drag: none;
  text-decoration: none !important;
}

.release__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  transition: transform 0.35s ease, opacity 0.25s ease;
}

/* default hover scale — disabled on catalog glitch hover */
.release__cover:hover img,
.release.is-playing .release__cover img {
  transform: scale(1.04);
}

/* Catalog-only chip glitch on hover (loop 2s) */
[data-releases] .release:hover .release__cover img,
[data-releases] .release.is-playing .release__cover img {
  transform: none;
  transition: none;
}

[data-releases] .release__cover {
  isolation: isolate;
}

[data-releases] .release__glitch,
[data-releases] .release__scan,
[data-releases] .release__noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
}

[data-releases] .release__glitch {
  background-size: cover;
  background-position: center;
  mix-blend-mode: screen;
}

[data-releases] .release__scan {
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 2px,
    rgba(0, 0, 0, 0.35) 2px,
    rgba(0, 0, 0, 0.35) 3px
  );
  mix-blend-mode: multiply;
}

[data-releases] .release__noise {
  inset: -8%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

[data-releases] .release:hover .release__cover img {
  animation: release-chip-glitch 2s steps(2, end) infinite;
}

[data-releases] .release:hover .release__glitch--r {
  animation: release-channel-r 2s steps(1) infinite;
}

[data-releases] .release:hover .release__glitch--g {
  animation: release-channel-g 2s steps(1) infinite;
}

[data-releases] .release:hover .release__glitch--b {
  animation: release-channel-b 2s steps(1) infinite;
}

[data-releases] .release:hover .release__scan {
  animation: release-scan-roll 2s linear infinite;
}

[data-releases] .release:hover .release__noise {
  animation: release-noise-burst 2s steps(3) infinite;
}

@keyframes release-chip-glitch {
  0% {
    opacity: 0.35;
    transform: scale(0.98);
    filter: contrast(2) brightness(1.8) saturate(0);
    clip-path: inset(42% 0 42% 0);
  }
  8% {
    opacity: 1;
    clip-path: inset(18% 0 55% 0);
  }
  14% {
    clip-path: inset(60% 0 10% 0);
    transform: translateX(-5px) scale(1.02);
  }
  22% {
    clip-path: inset(0 0 0 0);
    transform: translateX(4px);
    filter: contrast(1.4) brightness(1.25);
  }
  35% {
    transform: translateX(0);
    filter: contrast(1.15) brightness(1.05);
  }
  48% {
    opacity: 0.4;
    transform: translateY(2px);
  }
  52% {
    opacity: 1;
    transform: translateX(-3px);
  }
  68% {
    clip-path: inset(0 12% 0 0);
  }
  72% {
    clip-path: inset(0 0 0 0);
  }
  88%,
  100% {
    opacity: 1;
    transform: scale(1);
    filter: contrast(1.1) brightness(1);
    clip-path: inset(0 0 0 0);
  }
}

@keyframes release-channel-r {
  0%,
  20% {
    opacity: 0;
  }
  24% {
    opacity: 0.75;
    transform: translate(-6px, 1px);
    filter: url(#channel-r);
  }
  32% {
    opacity: 0;
  }
  55% {
    opacity: 0.6;
    transform: translate(8px, -2px);
    filter: url(#channel-r);
  }
  62% {
    opacity: 0;
  }
  78% {
    opacity: 0.45;
    transform: translate(-3px, 0);
    filter: url(#channel-r);
  }
  86%,
  100% {
    opacity: 0;
  }
}

@keyframes release-channel-g {
  0%,
  28% {
    opacity: 0;
  }
  30% {
    opacity: 0.55;
    transform: translate(4px, -3px);
    filter: url(#channel-g);
  }
  38% {
    opacity: 0;
  }
  70% {
    opacity: 0.45;
    transform: translate(-7px, 2px);
    filter: url(#channel-g);
  }
  76%,
  100% {
    opacity: 0;
  }
}

@keyframes release-channel-b {
  0%,
  40% {
    opacity: 0;
  }
  44% {
    opacity: 0.65;
    transform: translate(5px, 2px);
    filter: url(#channel-b);
  }
  50% {
    opacity: 0;
  }
  82% {
    opacity: 0.4;
    transform: translate(-4px, -1px);
    filter: url(#channel-b);
  }
  90%,
  100% {
    opacity: 0;
  }
}

@keyframes release-scan-roll {
  0% {
    transform: translateY(-8%);
    opacity: 0.2;
  }
  40% {
    opacity: 0.5;
  }
  100% {
    transform: translateY(8%);
    opacity: 0.15;
  }
}

@keyframes release-noise-burst {
  0%,
  18% {
    opacity: 0;
  }
  20%,
  26% {
    opacity: 0.3;
  }
  27% {
    opacity: 0;
  }
  48%,
  54% {
    opacity: 0.35;
  }
  55% {
    opacity: 0;
  }
  74%,
  80% {
    opacity: 0.22;
  }
  100% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-releases] .release:hover .release__cover img,
  [data-releases] .release:hover .release__glitch--r,
  [data-releases] .release:hover .release__glitch--g,
  [data-releases] .release:hover .release__glitch--b,
  [data-releases] .release:hover .release__scan,
  [data-releases] .release:hover .release__noise {
    animation: none !important;
  }
}

.release__meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.release__title {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.release__title a {
  text-decoration: none !important;
}

.release__artist,
.release__date {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.release__date {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.68rem;
}

.release__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.35rem;
}

.btn {
  appearance: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--fg);
  font: inherit;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.45rem 0.65rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
  text-decoration: none !important;
}

.btn:hover,
.btn:focus-visible {
  border-color: rgba(232, 232, 232, 0.55);
}

.btn--solid {
  background: rgba(232, 232, 232, 0.1);
}

.btn--ghost.is-active,
.release.is-playing .btn--ghost {
  border-color: rgba(200, 255, 210, 0.45);
  color: #c8ffd2;
}

.releases__error {
  color: var(--muted);
}

/* —— Release detail —— */
.release-hero {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: 1.75rem 2rem;
  align-items: start;
  margin-bottom: 2.5rem;
}

.release-hero__art {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1;
  background: #111;
  overflow: hidden;
}

.release-hero__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.release-hero__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.15;
}

.release-hero__artist {
  margin: 0 0 1rem;
  color: var(--muted);
}

.release-hero__artists {
  margin-bottom: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.release-hero__artists .label {
  width: 100%;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.15rem;
}

.chip {
  display: inline-block;
  padding: 0.3rem 0.55rem;
  border: 1px solid var(--line);
  font-size: 0.75rem;
  text-decoration: none !important;
  letter-spacing: 0.04em;
}

.release-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.release-block {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.release-block h2 {
  margin: 0 0 0.85rem;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.prose {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
  max-width: 42rem;
  word-break: break-word;
}

.tracklist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.track-row {
  width: 100%;
  display: grid;
  grid-template-columns: 2.2rem 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.65rem 0;
  border: 0;
  border-bottom: 1px solid rgba(232, 232, 232, 0.1);
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.track-row:hover {
  color: #fff;
}

.track-row__num,
.track-row__dur {
  color: var(--muted);
  font-size: 0.78rem;
}

.artist-index {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  gap: 1.5rem;
}

.artist-index li {
  break-inside: avoid;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(232, 232, 232, 0.1);
}

.artist-index a {
  text-decoration: none !important;
}

/* —— Artists catalog grid —— */
.artists-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1.35rem 1.1rem;
  width: 100%;
  margin: 1.25rem auto 0;
}

@media (min-width: 720px) {
  .artists-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.6rem 1.25rem;
  }
}

.artist-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 0;
  text-decoration: none !important;
  color: inherit;
}

.artist-card__photo {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  background: #141414;
  border: 1px solid rgba(232, 232, 232, 0.12);
  overflow: hidden;
  isolation: isolate;
}

.artist-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

[data-artists] .artist-card__glitch,
[data-artists] .artist-card__scan,
[data-artists] .artist-card__noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
}

[data-artists] .artist-card__glitch {
  background-size: cover;
  background-position: center;
  mix-blend-mode: screen;
}

[data-artists] .artist-card__scan {
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 2px,
    rgba(0, 0, 0, 0.35) 2px,
    rgba(0, 0, 0, 0.35) 3px
  );
  mix-blend-mode: multiply;
}

[data-artists] .artist-card__noise {
  inset: -8%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

[data-artists] .artist-card:hover .artist-card__photo img,
[data-artists] .artist-card:focus-visible .artist-card__photo img {
  animation: release-chip-glitch 2s steps(2, end) infinite;
}

[data-artists] .artist-card:hover .artist-card__glitch--r,
[data-artists] .artist-card:focus-visible .artist-card__glitch--r {
  animation: release-channel-r 2s steps(1) infinite;
}

[data-artists] .artist-card:hover .artist-card__glitch--g,
[data-artists] .artist-card:focus-visible .artist-card__glitch--g {
  animation: release-channel-g 2s steps(1) infinite;
}

[data-artists] .artist-card:hover .artist-card__glitch--b,
[data-artists] .artist-card:focus-visible .artist-card__glitch--b {
  animation: release-channel-b 2s steps(1) infinite;
}

[data-artists] .artist-card:hover .artist-card__scan,
[data-artists] .artist-card:focus-visible .artist-card__scan {
  animation: release-scan-roll 2s linear infinite;
}

[data-artists] .artist-card:hover .artist-card__noise,
[data-artists] .artist-card:focus-visible .artist-card__noise {
  animation: release-noise-burst 2s steps(3) infinite;
}

@media (prefers-reduced-motion: reduce) {
  [data-artists] .artist-card:hover .artist-card__photo img,
  [data-artists] .artist-card:focus-visible .artist-card__photo img,
  [data-artists] .artist-card:hover .artist-card__glitch--r,
  [data-artists] .artist-card:hover .artist-card__glitch--g,
  [data-artists] .artist-card:hover .artist-card__glitch--b,
  [data-artists] .artist-card:hover .artist-card__scan,
  [data-artists] .artist-card:hover .artist-card__noise {
    animation: none !important;
  }
}

.artist-card__name {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  line-height: 1.35;
  text-align: center;
}

/* —— Artist profile photo —— */
.artist-photo {
  margin: 0 auto 1.35rem;
  max-width: min(560px, 100%);
}

.artist-photo__link {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-decoration: none;
  color: inherit;
  cursor: zoom-in;
  font: inherit;
  text-align: left;
}

html.has-artist-lightbox {
  overflow: hidden;
}

.artist-photo img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  border: 1px solid var(--line);
  background: #0a0a0a;
}

.artist-photo__link:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
}

.artist-lightbox {
  position: fixed;
  inset: 0;
  z-index: 220;
  margin: 0;
  padding: clamp(0.75rem, 3vw, 1.5rem);
  border: 0;
  background: rgba(0, 0, 0, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.artist-lightbox[hidden] {
  display: none;
}

.artist-lightbox__img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  width: auto;
  height: auto;
  object-fit: contain;
  pointer-events: none;
}

.artist-lightbox__close {
  position: absolute;
  top: max(0.75rem, env(safe-area-inset-top));
  right: max(0.75rem, env(safe-area-inset-right));
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.7);
  color: var(--fg);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.artist-lightbox__close:hover,
.artist-lightbox__close:focus-visible {
  background: #111;
}

/* —— Custom full-width player —— */
.player-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(var(--site-social-h) + env(safe-area-inset-bottom, 0px));
  z-index: 80;
  padding: 0.75rem clamp(0.75rem, 3vw, 1.5rem) 0.85rem;
  background: rgba(0, 0, 0, 0.94);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(10px);
  color: var(--fg);
  display: none;
}

.player-dock.is-open {
  display: block;
}

.player-dock__main {
  display: grid;
  grid-template-columns: auto minmax(0, 1.1fr) minmax(0, 1.6fr) auto;
  gap: 0.75rem 1rem;
  align-items: center;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.player-dock__art {
  width: 64px;
  height: 64px;
  object-fit: cover;
  background: #111;
}

.player-dock__meta {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
  font-size: 0.8rem;
}

.player-dock__meta strong,
.player-dock__title-link {
  font-weight: 400;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: inherit;
  text-decoration: none;
  display: block;
  min-width: 0;
}

.player-dock__title-link:hover,
.player-dock__title-link:focus-visible {
  color: #c8ffd2;
  text-decoration: underline;
}

.player-dock__title-link.is-nolink {
  pointer-events: none;
  cursor: default;
}

.player-dock__title-link.is-nolink:hover {
  color: inherit;
  text-decoration: none;
}

.player-dock__meta span,
.player-dock__meta em {
  color: var(--muted);
  font-style: normal;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-dock__controls {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.45rem 0.55rem;
  align-items: center;
  min-width: 0;
}

.player-dock__controls .player-seek {
  flex: 1 1 auto;
  min-width: 140px;
  width: auto;
}

.player-dock__controls .player-time {
  flex: 0 0 auto;
}

.player-dock__controls .player-vol {
  flex: 0 0 64px;
}

.player-btn {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--fg);
  width: 2rem;
  height: 2rem;
  padding: 0;
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1;
}

.player-btn--play {
  width: 2.35rem;
  height: 2.35rem;
}

.player-seek {
  width: 100%;
  min-width: 0;
  accent-color: #c8c8c8;
}

.player-vol input {
  width: 64px;
  max-width: 64px;
  accent-color: #c8c8c8;
}

.player-time {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  white-space: nowrap;
}

.player-vol {
  display: flex;
  align-items: center;
  width: 64px;
  min-width: 64px;
  max-width: 64px;
}

.player-dock__side {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.player-dock__tracks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  max-width: 1400px;
  margin: 0.65rem auto 0;
  max-height: 4.5rem;
  overflow: auto;
}

.player-dock__track {
  appearance: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.5rem;
  cursor: pointer;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-dock__track.is-active {
  color: #c8ffd2;
  border-color: rgba(200, 255, 210, 0.45);
}

body.has-player {
  padding-bottom: calc(var(--site-social-h) + env(safe-area-inset-bottom, 0px) + 170px);
}

@media (max-width: 900px) {
  .release-hero {
    grid-template-columns: 1fr;
  }

  .release-hero__art {
    max-width: 280px;
  }

  .player-dock__main {
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "art meta side"
      "controls controls controls";
  }

  .player-dock__art { grid-area: art; }
  .player-dock__meta { grid-area: meta; }
  .player-dock__side { grid-area: side; }
  .player-dock__controls {
    grid-area: controls;
    display: flex;
    flex-wrap: wrap;
  }

  .player-dock__controls .player-seek {
    flex: 1 1 100%;
    order: 10;
    min-width: 0;
  }

  .player-dock__controls .player-time {
    order: 2;
  }

  .player-dock__controls .player-vol {
    order: 3;
    margin-left: auto;
  }
}

@media (max-width: 860px) {
  .topbar {
    grid-template-columns: auto auto;
    grid-template-rows: auto auto;
  }

  .primary-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    order: 3;
  }
}

body.has-yt-player {
  padding-bottom: 0;
}

.yt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem 1rem;
  width: 100%;
  margin: 0 auto;
}

.yt-card__thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  background: #111;
  cursor: pointer;
  overflow: hidden;
}

.yt-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.yt-card__dur {
  position: absolute;
  right: 0.4rem;
  bottom: 0.4rem;
  padding: 0.15rem 0.35rem;
  font-size: 0.7rem;
  background: rgba(0, 0, 0, 0.75);
  letter-spacing: 0.06em;
}

.yt-card__title {
  margin: 0.55rem 0 0;
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.35;
}

.yt-card__title button {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  padding: 0;
}

.yt-footer-link {
  margin-top: 2rem;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

/* Inline player — transparent stage so site background shows through */
.yt-stage {
  display: none;
  width: 100%;
  margin: 0 0 1.75rem;
  padding: 0.85rem 0 1rem;
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.yt-stage.is-open {
  display: block;
}

.yt-stage__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  max-width: 720px;
  margin-inline: auto;
  width: 100%;
}

.yt-stage__bar strong {
  font-weight: 400;
  font-size: 0.95rem;
}

.yt-stage__actions {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.yt-stage__layout {
  display: grid;
  gap: 1rem;
  align-items: start;
}

.yt-stage__layout--media-top,
.yt-stage__layout--media-bottom,
.yt-stage__layout--center {
  grid-template-columns: 1fr;
  justify-items: center;
}

.yt-stage__layout--center {
  text-align: center;
}

.yt-stage__layout--media-left {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  justify-items: stretch;
  max-width: 960px;
  margin-inline: auto;
}

.yt-stage__layout--media-right {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  justify-items: stretch;
  max-width: 960px;
  margin-inline: auto;
}

.yt-stage__layout--media-bottom .yt-stage__text {
  order: -1;
}

.yt-stage__media {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin-inline: auto;
  background: transparent;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.yt-stage__text {
  width: 100%;
  max-width: 720px;
  margin-inline: auto;
}

.yt-stage__release {
  margin: 0.35rem 0 0.65rem;
}

.yt-stage__release[hidden] {
  display: none !important;
}

.btn--small {
  padding: 0.28rem 0.55rem;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.85;
  width: auto;
}

.btn--small:hover,
.btn--small:focus-visible {
  opacity: 1;
}

.yt-stage__layout--media-left .yt-stage__media,
.yt-stage__layout--media-right .yt-stage__media,
.yt-stage__layout--media-left .yt-stage__text,
.yt-stage__layout--media-right .yt-stage__text {
  max-width: none;
  margin-inline: 0;
}

.yt-stage__layout--media-left .yt-stage__bar,
.yt-stage__layout--media-right .yt-stage__bar {
  max-width: 960px;
}

.yt-stage__video,
.yt-stage__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: transparent;
  object-fit: contain;
  object-position: center center;
}

.yt-stage__video[hidden],
.yt-stage__iframe[hidden],
.yt-stage[hidden],
.yt-stage__desc[hidden] {
  display: none !important;
}

.yt-stage__desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  white-space: pre-wrap;
  max-height: 40vh;
  overflow: auto;
  text-align: left;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 720px) {
  .yt-stage__layout--media-left,
  .yt-stage__layout--media-right {
    grid-template-columns: 1fr;
  }

  .yt-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.85rem 0.65rem;
  }

  .yt-card__title {
    font-size: 0.72rem;
  }

  .yt-stage {
    margin: 0 0 1.1rem;
    padding: 0.55rem 0 0.75rem;
  }

  .yt-stage__bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .yt-stage__bar strong {
    font-size: 0.82rem;
    line-height: 1.35;
  }

  .yt-stage__desc {
    max-height: 28vh;
    font-size: 0.74rem;
  }

  .page--wide {
    padding-inline: clamp(0.85rem, 4vw, 1.25rem);
  }

  .page-youtube .primary-nav,
  .page-interview .primary-nav,
  .page-podcasts .primary-nav {
    gap: 0.55rem 0.85rem;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
  }
}

/* legacy dock hidden (kept for old markup) */
.yt-dock {
  display: none !important;
}

/* CMS split layouts */
.split {
  display: grid;
  gap: 1.25rem;
  align-items: start;
  margin: 1.5rem 0;
}

.split--media-left {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
}

.split--media-right {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
}

.split--media-top,
.split--media-bottom,
.split--center {
  grid-template-columns: 1fr;
}

.split--media-bottom .split__text {
  order: 1;
}

.split--media-bottom .split__media {
  order: 2;
}

.split--center {
  justify-items: center;
  text-align: center;
}

.split__media video,
.split__media img,
.split__media audio,
.split__media iframe {
  width: 100%;
  max-width: 720px;
  display: block;
}

@media (max-width: 720px) {
  .split--media-left,
  .split--media-right {
    grid-template-columns: 1fr;
  }
}

/* —— Merch (same grid language as releases) —— */
.page-merch .page {
  max-width: 1200px;
}

.merch-grid.releases-grid,
.merch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1.35rem 1.1rem;
  width: 100%;
  margin: 1.25rem auto 0;
  justify-content: center;
}

@media (min-width: 720px) {
  .merch-grid.releases-grid,
  .merch-grid {
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 1.6rem 1.25rem;
  }
}

.merch-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.merch-card.is-buyable {
  cursor: default;
}

.merch-card__gallery {
  position: relative;
  z-index: 2;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: #111;
  border: 1px solid var(--line);
}

.merch-card__media {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  color: inherit;
}

.merch-card__media img,
.merch-card__gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  user-select: none;
}

.merch-card__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 2rem;
  height: 2rem;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.72);
  color: var(--fg);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.merch-card__nav--prev {
  left: 0.4rem;
}

.merch-card__nav--next {
  right: 0.4rem;
}

.merch-card__nav:hover,
.merch-card__nav:focus-visible {
  background: #111;
}

.merch-card__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.45rem;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 0.3rem;
  pointer-events: none;
}

.merch-card__dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  pointer-events: auto;
  cursor: pointer;
}

.merch-card__dot.is-active {
  background: #c8ffd2;
}

.merch-card__cover {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: #111;
  padding: 0;
  border: 0;
  color: inherit;
}

.merch-card__meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.merch-card__title {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.04em;
  cursor: default;
}

.merch-lightbox {
  position: fixed;
  inset: 0;
  z-index: 230;
  margin: 0;
  padding: clamp(0.75rem, 3vw, 1.5rem);
  background: rgba(0, 0, 0, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
}

.merch-lightbox[hidden] {
  display: none;
}

.merch-lightbox__img {
  display: block;
  max-width: min(100%, 1100px);
  max-height: calc(100vh - 3rem);
  max-height: calc(100dvh - 3rem);
  width: auto;
  height: auto;
  object-fit: contain;
}

.merch-lightbox__close,
.merch-lightbox__nav {
  position: absolute;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.75);
  color: var(--fg);
  cursor: pointer;
}

.merch-lightbox__close {
  top: max(0.75rem, env(safe-area-inset-top));
  right: max(0.75rem, env(safe-area-inset-right));
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.35rem;
  line-height: 1;
}

.merch-lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  font-size: 1.6rem;
  line-height: 1;
}

.merch-lightbox__nav--prev {
  left: max(0.5rem, env(safe-area-inset-left));
}

.merch-lightbox__nav--next {
  right: max(0.5rem, env(safe-area-inset-right));
}

.merch-lightbox__count {
  position: absolute;
  left: 50%;
  bottom: max(0.75rem, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  opacity: 0.7;
}

html.has-merch-lightbox,
body.has-merch-lightbox {
  overflow: hidden;
}

/* —— Radio collage tiles —— */
.radio-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.75rem auto 1.25rem;
  max-width: 920px;
  width: 100%;
}

@media (max-width: 720px) {
  .radio-actions {
    grid-template-columns: 1fr;
  }
}

.radio-tile {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  background: #0a0a0a;
  color: var(--fg);
  cursor: pointer;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  text-align: center;
  font: inherit;
}

.radio-tile__art {
  position: absolute;
  inset: 0;
  display: block;
  /* Keep RGB mix-blend glitch inside the image layer so labels stay clean */
  isolation: isolate;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.radio-tile__img,
.radio-tile__glitch {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  display: block;
}

.radio-tile__glitch {
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: screen;
}

.radio-tile__scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(0, 0, 0, 0.38);
  pointer-events: none;
}

.radio-tile__label {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: max-content;
  max-width: calc(100% - 1.5rem);
  margin: 0;
  padding: 0.55rem 0.85rem;
  transform: translate(-50%, -50%);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f2f2f2;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(242, 242, 242, 0.35);
  /* Own stacking context — not affected by art mix-blend */
  isolation: isolate;
  opacity: 1;
}

.radio-tile:hover .radio-tile__img,
.radio-tile:focus-visible .radio-tile__img,
.radio-tile.is-active .radio-tile__img {
  animation: release-chip-glitch 2s steps(2, end) infinite;
}

.radio-tile:hover .radio-tile__glitch--r,
.radio-tile:focus-visible .radio-tile__glitch--r,
.radio-tile.is-active .radio-tile__glitch--r {
  animation: release-channel-r 2s steps(1) infinite;
}

.radio-tile:hover .radio-tile__glitch--g,
.radio-tile:focus-visible .radio-tile__glitch--g,
.radio-tile.is-active .radio-tile__glitch--g {
  animation: release-channel-g 2s steps(1) infinite;
}

.radio-tile:hover .radio-tile__glitch--b,
.radio-tile:focus-visible .radio-tile__glitch--b,
.radio-tile.is-active .radio-tile__glitch--b {
  animation: release-channel-b 2s steps(1) infinite;
}

.radio-tile.is-active {
  border-color: rgba(200, 255, 210, 0.55);
}

.radio-tile.is-active .radio-tile__label {
  color: #c8ffd2;
  border-color: rgba(200, 255, 210, 0.55);
}

@media (prefers-reduced-motion: reduce) {
  .radio-tile__glitch {
    display: none;
  }
  .radio-tile:hover .radio-tile__img,
  .radio-tile:focus-visible .radio-tile__img,
  .radio-tile.is-active .radio-tile__img {
    animation: none;
  }
}

.merch-card__price {
  margin: 0;
  font-size: 0.72rem;
  opacity: 0.8;
  letter-spacing: 0.06em;
}

.merch-card__desc {
  margin: 0.15rem 0 0;
  font-size: 0.68rem;
  line-height: 1.4;
  opacity: 0.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.merch-card__stock {
  display: inline-block;
  color: #ff6b6b;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.merch-card.is-unavailable .merch-card__cover {
  opacity: 0.72;
}

.merch-card__actions {
  margin-top: 0.35rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.4rem;
  position: relative;
  z-index: 2;
}

.merch-card__actions .btn {
  pointer-events: auto;
  cursor: pointer;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}

.merch-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.merch-modal[hidden] {
  display: none !important;
}

.merch-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  cursor: pointer;
}

.merch-modal__panel {
  position: relative;
  z-index: 1;
  width: min(460px, 100%);
  max-height: min(92vh, 760px);
  overflow: auto;
  padding: 1.25rem 1.15rem 1.35rem;
  background: #0e0e0e;
  border: 1px solid var(--line);
}

.merch-modal__x {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  z-index: 5;
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.75;
  pointer-events: auto;
}

.merch-modal__x:hover,
.merch-modal__x:focus-visible {
  opacity: 1;
}

.merch-modal__photo {
  margin: 0 0 0.85rem;
}

.merch-modal__photo img {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  background: #111;
  display: block;
}

.merch-modal__photo-link {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.75;
}

.merch-modal__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.55;
}

.merch-modal__title {
  margin: 0 1.5rem 0.2rem 0;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.merch-modal__price {
  margin: 0 0 1rem;
  opacity: 0.8;
  font-size: 0.9rem;
}

.merch-form label {
  display: block;
  margin: 0.65rem 0;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(232, 232, 232, 0.7);
}

.merch-form input,
.merch-form textarea {
  display: block;
  width: 100%;
  margin-top: 0.3rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  background: #151515;
  color: inherit;
  font: inherit;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.9rem;
}

.merch-form .req {
  color: #ff6b6b;
}

.merch-form__prefer {
  margin: 0.85rem 0;
  padding: 0;
  border: 0;
}

.merch-form__prefer legend {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(232, 232, 232, 0.7);
  margin-bottom: 0.4rem;
}

.merch-check {
  display: flex !important;
  align-items: center;
  gap: 0.45rem;
  margin: 0.35rem 0 !important;
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 0.85rem !important;
  color: inherit !important;
}

.merch-check input {
  width: auto;
  margin: 0;
}

.merch-form__notice {
  margin: 0.85rem 0 0.5rem;
  color: #ff6b6b;
  font-size: 0.78rem;
  line-height: 1.45;
  letter-spacing: 0.02em;
  text-transform: none;
}

.merch-form__errors {
  color: #ff6b6b;
  font-size: 0.8rem;
  margin: 0.4rem 0;
}

.merch-form__success {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  line-height: 1.45;
}

.merch-pay--iframe iframe {
  width: 100%;
  min-height: 420px;
  border: 1px solid var(--line);
  background: #111;
}

body.has-merch-modal {
  overflow: hidden;
}
