.subpage-main {
  width: 100%;
  margin-top: 64px;
  padding-bottom: 36px;
}
.subpage-band {
  width: 100%;
  padding: 0 48px;
  background: #171a20;
}
.subpage-band-muted {
  background: #1d2128;
}
.subpage-band-grid {
  background: #171a20;
}
.explore-page .subpage-hero-band { background: #171b22; }
.explore-page .subpage-band-muted { background: #1c1f2a; }
.artists-page .subpage-hero-band { background: #1a1c23; }
.artists-page .subpage-band-muted { background: #1f1c24; }
.subpage-frame {
  width: min(1360px, 100%);
  margin: 0 auto;
  padding: 24px 0;
}
.subpage-hero-band .subpage-frame {
  padding-top: 24px;
  padding-bottom: 18px;
}
.subpage-title {
  color: var(--ink);
  font-family: var(--font-sora);
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.04;
}
.subpage-copy {
  max-width: 720px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}
.explore-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: 38px;
  align-items: center;
}
.explore-hero--compact {
  grid-template-columns: 1fr;
  padding-top: 8px;
  padding-bottom: 8px;
}
.explore-hero-copy {
  min-width: 0;
}
.explore-hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.explore-hero-media {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #090a0d;
  overflow: hidden;
  border-radius: 14px;
  border: 2px solid rgba(79,195,220,.2);
}
.explore-hero-link {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
.explore-hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.explore-hero-meta {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(8,8,10,.2), rgba(8,8,10,.88));
  border-radius: 10px;
}
.explore-hero-meta strong {
  color: #fff !important;
  font: 700 18px 'Sora', Arial, Helvetica, sans-serif;
}
.explore-hero-meta span {
  color: #c0c4cb;
  font-size: 12px;
}
.explore-filters { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.explore-filter-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.explore-filter-label { font: 700 10px 'Space Mono', monospace; text-transform: uppercase; letter-spacing: .08em; color: #6B7280; white-space: nowrap; min-width: 46px; }
.explore-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.explore-pills::-webkit-scrollbar { display: none; }
.explore-pill { display: inline-flex; align-items: center; white-space: nowrap; padding: 5px 12px; border-radius: 20px; border: 1.5px solid #e5e7eb; background: #fff; color: #374151; font: 600 12px 'Space Grotesk', sans-serif; text-decoration: none; cursor: pointer; transition: all .12s; }
.explore-pill:hover { border-color: var(--accent); color: var(--accent); }
.explore-pill.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.explore-filter-btn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px; border: 2px solid #111827; border-radius: 6px; background: #fff; font: 700 12px 'Space Mono', monospace; cursor: pointer; box-shadow: 2px 2px 0 #111827; }
.explore-filter-badge { background: var(--accent); color: #fff; border-radius: 10px; padding: 1px 6px; font-size: 10px; }
.explore-filter-clear { font-size: 12px; color: #9CA3AF; text-decoration: none; }
.explore-filter-clear:hover { color: var(--accent); }
.explore-meta-inline { font-size: 13px; color: #6B7280; margin-left: auto; }
.explore-modal-backdrop { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.5); z-index: 9000; }
.explore-modal-backdrop[hidden] { display: none; }
.explore-modal-sheet { position: fixed; bottom: 0; left: 0; right: 0; top: auto; background: #fff; border-radius: 16px 16px 0 0; z-index: 9001; max-height: 85vh; display: flex; flex-direction: column; }
.explore-modal-sheet[hidden] { display: none; }
@media (min-width: 640px) {
  .explore-modal-sheet { top: 50%; bottom: auto; left: 50%; right: auto; width: 480px; transform: translate(-50%, -50%); border-radius: 12px; max-height: 80vh; }
}
.explore-modal-handle { width: 36px; height: 4px; background: #e5e7eb; border-radius: 2px; margin: 12px auto 0; flex-shrink: 0; }
.explore-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px 10px; border-bottom: 1px solid #f3f4f6; flex-shrink: 0; }
.explore-modal-head strong { font-size: 15px; color: #111827; }
.explore-modal-close { background: none; border: none; font-size: 16px; color: #9CA3AF; cursor: pointer; padding: 4px; }
.explore-modal-body { overflow-y: auto; padding: 16px 20px; flex: 1; }
.explore-modal-group { margin-bottom: 20px; }
.explore-modal-label { font: 700 10px 'Space Mono', monospace; text-transform: uppercase; letter-spacing: .08em; color: #9CA3AF; margin-bottom: 10px; }
.explore-pills-genre { flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.explore-genre-search { width: 100%; padding: 8px 12px; border: 1.5px solid #e5e7eb; border-radius: 8px; font-size: 13px; outline: none; box-sizing: border-box; }
.explore-genre-search:focus { border-color: var(--accent); }
.explore-modal-footer { padding: 14px 20px; border-top: 1px solid #f3f4f6; flex-shrink: 0; }
.explore-modal-footer .profile-create { width: 100%; justify-content: center; }

.explore-toolbar {
  display: flex;
  align-items: end;
  gap: 14px;
  flex-wrap: wrap;
}
.explore-toolbar label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 190px;
}
.explore-toolbar span {
  color: #d3d5da;
  font: 500 11px 'Space Grotesk', Arial, Helvetica, sans-serif;
  text-transform: uppercase;
}
.explore-toolbar select {
  min-height: 42px;
  padding: 0 14px;
  border: 2px solid #111827;
  background: #FFFFFF;
  color: #111827;
  border-radius: 6px;
  box-shadow: 3px 3px 0 #111827;
  font: 700 11px/1 'Space Mono', monospace;
  letter-spacing: .5px;
}
.explore-toolbar input {
  min-height: 42px;
  padding: 0 14px;
  border: 2px solid #111827;
  background: #FFFFFF;
  color: #111827;
  border-radius: 6px;
  box-shadow: 3px 3px 0 #111827;
  font: 700 11px/1 'Space Mono', monospace;
  letter-spacing: .5px;
}
.explore-toolbar .profile-create {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: end;
  min-height: 42px;
  padding: 0 18px;
  border-width: 2px;
  border-style: solid;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  appearance: none;
}
.artists-page .artists-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 26px;
}
.explore-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 18px;
  color: var(--muted);
}
.explore-meta strong {
  color: var(--ink);
  font: 700 24px 'Sora', Arial, Helvetica, sans-serif;
}
.explore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 30px 24px;
  margin-top: 26px;
}
.explore-load-sentinel {
  width: 100%;
  height: 1px;
  margin-top: 12px;
}
.explore-card {
  min-width: 0;
}
.explore-card .lib-card,
.explore-card .lib-card-shell {
  width: 100%;
  flex: 1 1 auto;
}
.explore-card .lib-book {
  justify-content: center;
}

.explore-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}
.explore-card-foot .book-card-actions {
  margin-top: 0;
  padding-left: 0;
}
.explore-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 2px solid #111827;
  background: #FFFFFF;
  color: #111827;
  font: 700 11px/1 'Space Mono', monospace;
  letter-spacing: .5px;
  text-transform: uppercase;
  border-radius: 6px;
  box-shadow: 3px 3px 0 #111827;
}
.explore-empty {
  margin-top: 18px;
}
.artists-hero {
  width: min(100%, 1120px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 24px;
  align-items: stretch;
}
.artists-hero-panel {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 20px 22px;
  background: #1f232b;
  border-left: 3px solid rgba(255,122,89,.5);
}
.artists-hero-panel p {
  color: #fff;
  font: 700 clamp(22px, 3vw, 34px) 'Sora', Arial, Helvetica, sans-serif;
  line-height: 1.05;
}
.artists-hero-panel p:last-child {
  color: rgba(255,255,255,.46);
}
.artists-frame {
  width: min(100%, 1120px);
  margin: 0 auto;
}
.artists-toolbar {
  margin-bottom: 18px;
}
.artists-search {
  min-width: 240px;
}
@media (max-width: 720px) {
  .subpage-band { padding: 0 14px; }
  .subpage-frame {
    padding: 16px 0;
  }
  .explore-hero,
  .artists-hero {
    grid-template-columns: 1fr;
  }
  .explore-hero-media {
    min-height: 360px;
  }
  .explore-toolbar label,
  .artists-search {
    min-width: 100%;
  }
  .artists-page .artists-grid { justify-content: center; }
}

@media (max-width: 480px) {
  .explore-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 10px;
    margin-top: 16px;
  }
  .explore-grid .lib-book-cover {
    width: 100%;
    height: auto;
    aspect-ratio: 9/13;
  }
  .explore-grid .lib-book-spine { height: auto; }
  .explore-grid .lib-card-shell,
  .explore-grid .lib-card { width: 100%; flex: unset; }
  .explore-grid .lib-card-meta { padding-left: 0; margin-top: 4px; }
  .explore-grid .lib-card-name { font-size: 9px; }
  .explore-grid .lib-card-sub  { font-size: 8px; }
  .explore-grid .book-card-actions { padding-left: 0; gap: 6px; }
  .explore-grid .explore-card-foot { flex-wrap: wrap; gap: 6px; }
}

/* ── Artists page: compact 2-col grid on mobile ── */
@media (max-width: 640px) {
  .artists-page .artists-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    justify-content: unset;
  }
  .artists-page .artists-grid .creator-card {
    width: 100%;
    flex: none;
    box-shadow: 2px 2px 0 #171214;
  }
  .artists-page .artists-grid .creator-card-head { height: 52px; }
  .artists-page .artists-grid .creator-card-avatar {
    width: 44px;
    height: 44px;
    margin-top: -22px;
    font-size: 16px;
  }
  .artists-page .artists-grid .creator-card-body {
    padding: 0 8px 10px;
    gap: 2px;
  }
  .artists-page .artists-grid .creator-card-name  { font-size: 18px !important; }
  .artists-page .artists-grid .creator-card-handle { display: none; }
  .artists-page .artists-grid .creator-card-stat  { font-size: 9px; }
  .artists-page .artists-grid .creator-card-cta {
    font-size: 8px !important;
    min-height: 24px !important;
    padding: 0 8px !important;
    margin-top: 6px !important;
    box-shadow: 2px 2px 0 #171214 !important;
  }
}
