/* ============================================================
   DIRTY BASTARDS — neon black & purple, aggressive
   ============================================================ */

:root {
  --void: #050208;
  --void-2: #0b0410;
  --panel: #100618;
  --line: #2a1140;

  /* Sampled from the hero artwork so the site and the key art agree. */
  --purple: #b026ff;
  --purple-hot: #d264ff;
  --purple-dim: #6b1aa8;
  --magenta: #ff1ad9;
  --acid: #8dff1a;

  --text: #efe6f8;
  --text-dim: #9a86ad;

  --glow: 0 0 12px rgba(160, 32, 255, 0.55), 0 0 34px rgba(160, 32, 255, 0.22);
  --glow-hot: 0 0 16px rgba(201, 92, 255, 0.8), 0 0 48px rgba(160, 32, 255, 0.4);

  --mono: 'Courier New', ui-monospace, monospace;
  --display: 'Arial Black', 'Helvetica Neue', Impact, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--void);
  color: var(--text);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Grain + scanline overlay ------------------------------------ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background-image: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.22) 0px,
    rgba(0, 0, 0, 0.22) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: multiply;
  opacity: 0.5;
}

a { color: var(--purple-hot); text-decoration: none; }
a:hover { color: var(--magenta); }

.wrap {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

/* NAV ---------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 2, 8, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}
.nav-logo {
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  text-shadow: var(--glow);
  white-space: nowrap;
}
.nav-links { display: flex; gap: 22px; flex-wrap: wrap; }
.nav-links a {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 0.15s, border-color 0.15s, text-shadow 0.15s;
}
.nav-links a:hover {
  color: var(--purple-hot);
  border-color: var(--purple);
  text-shadow: var(--glow);
}

/* HERO --------------------------------------------------------- */
/* The key art carries the branding — the wordmark is baked into the image,
   so the H1 is screen-reader-only rather than duplicated on screen. */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-art { display: block; position: relative; }
.hero-art picture { display: block; }

/* The loop sits exactly over the static art and fades in when ready, so the
   swap is invisible and a failed load simply leaves the artwork showing. */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}
.hero-video.is-ready { opacity: 1; }

/* No wordmark overlay here: the loop animates in its own "DIRTY BASTARDS" and
   release titles, so anything added on top collides with them. */

.sound-toggle {
  position: absolute;
  right: clamp(10px, 2vw, 20px);
  bottom: clamp(10px, 2vw, 20px);
  z-index: 3;
  background: rgba(5, 2, 8, 0.72);
  border: 1px solid var(--purple);
  color: var(--purple-hot);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 8px 14px;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.sound-toggle:hover,
.sound-toggle[aria-pressed='true'] {
  background: var(--purple);
  border-color: var(--purple);
  color: #0a0210;
}

.hero-art img {
  display: block;
  width: 100%;
  height: auto;
  /* On tall/narrow screens, crop rather than shrink the art to a sliver.
     object-position sits high so the pigs' faces survive the crop. */
  max-height: 82vh;
  object-fit: cover;
  object-position: center 32%;
}
/* Fade only the very bottom into the page — a taller fade eats the artwork.
   z-index keeps it above the video layer. */
.hero-art::after {
  content: '';
  position: absolute;
  inset: auto 0 -1px 0;
  height: 12%;
  z-index: 2;
  background: linear-gradient(to bottom, transparent, var(--void));
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding-top: clamp(22px, 3vw, 34px);
  padding-bottom: clamp(38px, 7vw, 74px);
}

.hero-cta {
  display: inline-block;
  margin-top: 22px;
  background: var(--purple);
  color: #0a0210;
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 13px 26px;
  border: 1px solid var(--purple);
  box-shadow: var(--glow);
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.hero-cta:hover {
  background: var(--acid);
  border-color: var(--acid);
  color: #0a0210;
  box-shadow: 0 0 18px rgba(141, 255, 26, 0.65);
}

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

.hero-blurb {
  margin: 0;
  max-width: 60ch;
  color: var(--text-dim);
  font-size: 15px;
}
.hero-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}
.hero-genres span {
  border: 1px solid var(--purple-dim);
  color: var(--purple-hot);
  padding: 6px 14px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* MARQUEE ------------------------------------------------------ */
.marquee {
  border-bottom: 1px solid var(--line);
  background: var(--void-2);
  overflow: hidden;
  padding: 11px 0;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: scroll-x 26s linear infinite;
}
.marquee-track span {
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--purple);
  padding: 0 26px;
  white-space: nowrap;
}
.marquee-track span em { color: var(--text-dim); font-style: normal; }
@keyframes scroll-x {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* SECTIONS ----------------------------------------------------- */
section { padding: clamp(56px, 9vw, 104px) 0; }
.section-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 34px;
  flex-wrap: wrap;
}
.section-head h2 {
  font-family: var(--display);
  font-size: clamp(28px, 5.5vw, 54px);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0;
  color: #fff;
  text-shadow: var(--glow);
}
.section-head .count {
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* FILTERS ------------------------------------------------------ */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}
.filter {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 9px 18px;
  cursor: pointer;
  transition: all 0.15s;
}
.filter:hover { border-color: var(--purple); color: var(--purple-hot); }
.filter[aria-pressed='true'] {
  background: var(--purple);
  border-color: var(--purple);
  color: #0a0210;
  font-weight: bold;
  box-shadow: var(--glow);
}

/* RELEASE GRID ------------------------------------------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
  gap: 20px;
}

/* While the catalogue is small, let a lone release run wide as a feature
   rather than stranding one narrow card in an empty row. */
.grid.is-single {
  grid-template-columns: minmax(0, 1fr);
  max-width: 820px;
}
.grid.is-single .card {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
}
.grid.is-single .card-art { border-bottom: 0; border-right: 1px solid var(--line); }
.grid.is-single .card-body { padding: 26px 28px; align-self: center; }
.grid.is-single .card h3 { font-size: 30px; }
.grid.is-single .card .artist { font-size: 15px; margin-top: 2px; }

@media (max-width: 620px) {
  .grid.is-single .card { grid-template-columns: minmax(0, 1fr); }
  .grid.is-single .card-art { border-right: 0; border-bottom: 1px solid var(--line); }
  .grid.is-single .card-body { padding: 16px 17px 18px; }
  .grid.is-single .card h3 { font-size: 21px; }
}

.card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 0;
  overflow: hidden;
  transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s;
}
.card:hover {
  border-color: var(--purple);
  transform: translateY(-3px);
  box-shadow: var(--glow);
}

.card-art {
  position: relative;
  aspect-ratio: 1 / 1;
  background:
    radial-gradient(circle at 50% 42%, rgba(176, 38, 255, 0.34), transparent 62%),
    linear-gradient(135deg, rgba(176, 38, 255, 0.2), rgba(255, 26, 217, 0.08)),
    var(--void-2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
/* Faint scanlines, but only on the empty placeholder panel — never over real
   cover art, which shouldn't be veiled. */
.card-art:not(:has(img))::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg, rgba(0,0,0,0.28) 0px, rgba(0,0,0,0.28) 1px, transparent 1px, transparent 4px
  );
  pointer-events: none;
}

.card-art picture { display: block; width: 100%; height: 100%; }
.card-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card-art .cat-ghost {
  font-family: var(--display);
  font-size: clamp(38px, 8vw, 62px);
  letter-spacing: 0.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(160, 32, 255, 0.65);
  user-select: none;
}

.card-body { padding: 16px 17px 18px; }

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 9px;
}
.card-meta .bpm { color: var(--text-dim); }

.card h3 {
  margin: 0 0 4px;
  font-family: var(--display);
  font-size: 19px;
  line-height: 1.15;
  text-transform: uppercase;
  color: #fff;
}
.card .artist {
  margin: 0;
  font-size: 13px;
  color: var(--purple-hot);
  letter-spacing: 0.06em;
}
.card .blurb {
  margin: 11px 0 0;
  font-size: 12.5px;
  color: var(--text-dim);
  line-height: 1.55;
}

.tag-genre {
  display: inline-block;
  margin-top: 13px;
  border: 1px solid var(--purple-dim);
  color: var(--purple-hot);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 3px 10px;
}

.tag-placeholder {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  background: var(--acid);
  color: #0a0210;
  font-size: 9.5px;
  font-weight: bold;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 4px 9px;
}

/* Announced but unreleased: badge on the sleeve, note in place of the player. */
.tag-soon {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  background: var(--magenta);
  color: #0a0210;
  font-size: 9.5px;
  font-weight: bold;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 4px 9px;
}

.card .soon {
  margin: 14px 0 0;
  border: 1px dashed var(--purple-dim);
  color: var(--purple-hot);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-align: center;
  padding: 10px 12px;
}

.card audio {
  width: 100%;
  margin-top: 14px;
  height: 36px;
  border-radius: 2px;
  /* The native player renders light; invert it to sit on the dark card. */
  filter: invert(0.92) hue-rotate(190deg) saturate(1.5) contrast(1.05);
}

.card .duration { color: var(--text-dim); }

.card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.card-links a {
  border: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 5px 11px;
  transition: all 0.15s;
}
.card-links a:hover {
  border-color: var(--purple);
  color: #0a0210;
  background: var(--purple);
}

/* MERCH -------------------------------------------------------- */
.merch-note {
  margin: -14px 0 28px;
  max-width: 62ch;
  color: var(--text-dim);
  font-size: 13px;
}

.merch-card { color: inherit; text-decoration: none; display: block; }
.merch-card .card-art { background: var(--void-2); }

.merch-meta {
  margin: 10px 0 0;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.merch-buy {
  display: inline-block;
  margin-top: 14px;
  background: var(--purple);
  color: #0a0210;
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 9px 20px;
}
.merch-card.is-buyable:hover .merch-buy {
  background: var(--acid);
  box-shadow: 0 0 16px rgba(141, 255, 26, 0.6);
}

/* EMPTY STATE -------------------------------------------------- */
.empty {
  border: 1px dashed var(--line);
  padding: 44px 26px;
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
  letter-spacing: 0.1em;
}

/* ABOUT -------------------------------------------------------- */
.about { border-top: 1px solid var(--line); background: var(--void-2); }
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 26px;
}
.about-grid p { margin: 0; color: var(--text-dim); max-width: 62ch; }
.about-grid strong { color: var(--text); }

/* FOOTER ------------------------------------------------------- */
footer {
  border-top: 1px solid var(--line);
  padding: 46px 0 60px;
}
.foot-inner {
  display: flex;
  justify-content: space-between;
  gap: 26px;
  flex-wrap: wrap;
  align-items: flex-end;
}
.foot-logo {
  font-family: var(--display);
  font-size: 26px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  text-shadow: var(--glow);
  margin: 0;
}
.foot-links { display: flex; gap: 16px; flex-wrap: wrap; }
.foot-links a {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.foot-links a:hover { color: var(--purple-hot); }
.copy {
  margin: 22px 0 0;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: #4d3b60;
  text-transform: uppercase;
}

:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 3px;
}

/* MOBILE ------------------------------------------------------- */
@media (max-width: 620px) {
  /* Stack the nav instead of letting the logo and links collide. */
  .nav-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    padding: 11px 0;
  }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 11px; letter-spacing: 0.16em; }
  .nav-logo { font-size: 16px; }

  .hero { padding-top: 62px; }
  .hero-tag { letter-spacing: 0.24em; }
  .grid { grid-template-columns: 1fr; }
  .foot-inner { align-items: flex-start; }
}
