/* ============================================================================
   WRETCHED RHYTHMS — artists.css  (v1.0.0)
   Styles for /artists.html (containment roster) and /artist.html (profile).
   Requires main.css to be loaded first for CSS variables and base styles.
   ============================================================================ */

/* ── Artists hero (roster page) ─────────────────────────────────────────── */
.artists-hero {
  padding: clamp(5rem,12vw,9rem) clamp(1rem,5vw,4rem) clamp(2rem,4vw,3rem);
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.artists-hero .sec-head {
  flex-direction: column;
}

/* ── Roster list ────────────────────────────────────────────────────────── */
.artists-list {
  display: flex;
  flex-direction: column;
}

/* ── Roster item ────────────────────────────────────────────────────────── */
.apl-item {
  display: grid;
  grid-template-columns: clamp(200px,30vw,400px) 1fr;
  min-height: 340px;
  border-bottom: 1px solid rgba(255,255,255,.05);
  transition: background .2s;
}
.apl-item:hover {
  background: rgba(255,255,255,.02);
}
.apl-item--incoming .apl-img-wrap {
  opacity: .5;
}

/* Alternate image side every other item */
.apl-item:nth-child(even) {
  direction: rtl;
}
.apl-item:nth-child(even) > * {
  direction: ltr;
}

.apl-img-wrap {
  position: relative;
  overflow: hidden;
}
.apl-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: grayscale(20%) contrast(1.05);
  transition: filter .4s, transform .5s;
}
.apl-item:hover .apl-img {
  filter: grayscale(0%) contrast(1.1);
  transform: scale(1.03);
}

/* Placeholder for artists without a photo */
.apl-img-none {
  background: rgba(10,10,8,.8);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}
.apl-none-mark {
  font-size: 4rem;
  color: var(--ash-dim);
  opacity: .3;
}

/* ── Roster item body ───────────────────────────────────────────────────── */
.apl-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  padding: clamp(2rem,4vw,3.5rem) clamp(1.5rem,4vw,3.5rem);
}
.apl-id {
  font-family: 'Space Mono', monospace;
  font-size: .65rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--ash-dim);
  display: flex;
  align-items: center;
  gap: .8rem;
}
.apl-name {
  font-family: 'Anton', sans-serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  letter-spacing: .04em;
  line-height: 1;
  color: var(--ash);
  margin: 0;
}
.apl-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.apl-note {
  font-family: 'Space Mono', monospace;
  font-size: .78rem;
  color: var(--ash);
  line-height: 1.6;
  max-width: 52ch;
  margin: 0;
}
.apl-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: .5rem;
}

/* ── Individual artist page layout ─────────────────────────────────────── */
#artist-root {
  display: flex;
  flex-direction: column;
}

/* ── Artist hero ────────────────────────────────────────────────────────── */
.aph-hero {
  position: relative;
  min-height: clamp(360px, 55vh, 620px);
  background-size: cover;
  background-position: center 20%;
  background-color: #0a0a08;
  display: flex;
  align-items: flex-end;
}
.aph-hero--no-img {
  background: linear-gradient(160deg, #0f0f0b 0%, #1a1409 100%);
  min-height: 320px;
}
.aph-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.1) 0%,
    rgba(0,0,0,.35) 40%,
    rgba(0,0,0,.85) 100%
  );
}
.aph-hero-body {
  position: relative;
  z-index: 1;
  padding: clamp(2rem,5vw,4rem) clamp(1rem,5vw,4rem);
  display: flex;
  flex-direction: column;
  gap: .9rem;
  width: 100%;
}
.aph-id {
  font-family: 'Space Mono', monospace;
  font-size: .65rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--ash);
  display: flex;
  align-items: center;
  gap: .8rem;
}
.aph-name {
  font-family: 'Anton', sans-serif;
  font-size: clamp(3rem, 8vw, 7rem);
  letter-spacing: .03em;
  line-height: 1;
  color: var(--ash);
  margin: 0;
  text-shadow: 0 2px 24px rgba(0,0,0,.9);
}
.aph-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

/* ── Page sections ──────────────────────────────────────────────────────── */
.aph-section {
  padding: clamp(2.5rem,5vw,4rem) clamp(1rem,5vw,4rem);
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.aph-section.glass {
  background: rgba(10,10,8,.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.aph-section .sec-head {
  margin-bottom: 2rem;
  flex-direction: column;
}

/* ── Bio body ───────────────────────────────────────────────────────────── */
.aph-bio-body {
  max-width: 72ch;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.aph-bio-body p {
  font-family: 'Space Mono', monospace;
  font-size: .88rem;
  line-height: 1.85;
  color: var(--ash);
  margin: 0;
}

/* ── Classified placeholder ─────────────────────────────────────────────── */
.aph-classified {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  padding: 2.5rem;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 4px;
  background: rgba(0,0,0,.3);
  max-width: 52ch;
}
.aph-classified-label {
  font-family: 'Space Mono', monospace;
  font-size: .65rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--rot);
  margin: 0;
}
.aph-classified p:last-child {
  font-family: 'Space Mono', monospace;
  font-size: .8rem;
  color: var(--ash-dim);
  margin: 0;
}

/* ── Media grid ─────────────────────────────────────────────────────────── */
.aph-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.aph-media-item {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(0,0,0,.3);
}
.aph-media-photo,
.aph-media-video {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  border-radius: 4px 4px 0 0;
}
.aph-media-video {
  height: auto;
  max-height: 380px;
}
.aph-media-cap {
  font-family: 'Space Mono', monospace;
  font-size: .65rem;
  letter-spacing: .1em;
  color: var(--ash-dim);
  padding: 0 .75rem .75rem;
  margin: 0;
}

/* ── Releases ───────────────────────────────────────────────────────────── */
.aph-releases {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.aph-release-card {
  display: grid;
  grid-template-columns: clamp(120px,18vw,200px) 1fr;
  gap: clamp(1.5rem,3vw,2.5rem);
  align-items: start;
}
.aph-rel-cover {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 4px;
  display: block;
  border: 1px solid rgba(255,255,255,.06);
}
.aph-rel-cover--none {
  aspect-ratio: 1;
  background: rgba(0,0,0,.5);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--ash-dim);
  opacity: .4;
}
.aph-release-info {
  display: flex;
  flex-direction: column;
  gap: .8rem;
}
.aph-release-title {
  font-family: 'Anton', sans-serif;
  font-size: clamp(1.4rem,3vw,2.2rem);
  letter-spacing: .04em;
  color: var(--ash);
  margin: 0;
  text-transform: uppercase;
}
.aph-release-sub {
  font-family: 'Space Mono', monospace;
  font-size: .7rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ash-dim);
  margin: 0;
}

/* ── Track list ─────────────────────────────────────────────────────────── */
.aph-track-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.aph-track-btn {
  display: grid;
  grid-template-columns: 4rem 1fr auto auto;
  align-items: center;
  gap: .8rem;
  width: 100%;
  padding: .7rem .8rem;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.05);
  border-radius: 3px;
  cursor: pointer;
  text-align: left;
  transition: background .15s, border-color .15s;
  font-family: 'Space Mono', monospace;
}
.aph-track-btn:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.12);
}
.aph-track-id {
  font-size: .62rem;
  letter-spacing: .18em;
  color: var(--rot);
  text-transform: uppercase;
  white-space: nowrap;
}
.aph-track-name {
  font-size: .8rem;
  color: var(--ash);
}
.aph-track-bpm {
  font-size: .62rem;
  letter-spacing: .1em;
  color: var(--ash-dim);
  white-space: nowrap;
}
.aph-track-play {
  font-size: .7rem;
  color: var(--ash-dim);
  transition: color .15s;
}
.aph-track-btn:hover .aph-track-play {
  color: var(--rot);
}

/* ── Platform links ─────────────────────────────────────────────────────── */
.aph-links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .2rem;
}
.aph-link-btn {
  font-family: 'Space Mono', monospace;
  font-size: .62rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ash-dim);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 3px;
  padding: .3rem .65rem;
  text-decoration: none;
  transition: color .15s, border-color .15s;
}
.aph-link-btn:hover {
  color: var(--ash);
  border-color: rgba(255,255,255,.28);
}

/* ── CTA section ────────────────────────────────────────────────────────── */
.aph-cta {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  align-items: center;
  padding-top: 3rem;
  padding-bottom: 3rem;
  border-bottom: none;
}

/* ── Roster page hero back-link ─────────────────────────────────────────── */
.artists-back {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: 'Space Mono', monospace;
  font-size: .65rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ash-dim);
  text-decoration: none;
  margin-bottom: 1.5rem;
  transition: color .15s;
}
.artists-back:hover { color: var(--ash); }

/* ── Mobile ─────────────────────────────────────────────────────────────── */
@media (max-width: 760px) {
  .apl-item {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .apl-item:nth-child(even) {
    direction: ltr;
  }
  .apl-img-wrap {
    max-height: 260px;
  }
  .apl-img {
    height: 260px;
  }
  .apl-img-none {
    min-height: 160px;
  }

  .aph-hero {
    min-height: 280px;
  }
  .aph-name {
    font-size: clamp(2.4rem, 10vw, 4rem);
  }

  .aph-release-card {
    grid-template-columns: 90px 1fr;
    gap: 1rem;
  }

  .aph-track-btn {
    grid-template-columns: 3.5rem 1fr auto;
  }
  .aph-track-bpm { display: none; }

  .aph-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}
