/* =========================================================
   amebe — public artists page (/artists/)
   Uses the design tokens from main.css (dark, --accent, radii).
   ========================================================= */

/*
  Paint fix (blank content below sticky nav):
  main.css sets overflow-x:hidden on html/body. Combined with the sticky
  .site-nav backdrop-filter AND nested overflow-x:auto rows (filters / videos),
  Chromium/Safari can fail to paint .page-section — navbar stays, rest is black.
  overflow-x: clip still clips bleed without creating a scroll container.
*/
html:has(body.artists-page),
body.artists-page {
  overflow-x: clip;
}

@supports not (overflow: clip) {
  html:has(body.artists-page),
  body.artists-page {
    overflow-x: visible;
  }
}

/* Stable stacking context so content below the sticky nav keeps painting. */
.artists-page .bg-class,
.artists-page .page-section {
  position: relative;
  isolation: isolate;
  transform: translateZ(0);
}

.artists-page .page-section {
  /* Horizontal breathing room on every viewport below --container-wide.
     Content width stays 1080px on large screens (padding added on top). */
  --artists-pad-x: 24px;
  max-width: calc(var(--container-wide) + 2 * var(--artists-pad-x));
  margin: 0 auto;
  padding-left: var(--artists-pad-x);
  padding-right: var(--artists-pad-x);
}

@media (max-width: 600px) {
  .artists-page .page-section {
    --artists-pad-x: 16px;
  }
}

/* The container already provides the side padding now. */
.artists-page .section-header {
  padding-left: 0;
  padding-right: 0;
}

/* Anchor targets (#likes / #community) must not hide under the sticky nav. */
.artists-like,
.artists-community {
  scroll-margin-top: 80px;
}

/* ── Overview grid ─────────────────────────────────────── */

.artists-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.artists-card[hidden],
.artists-grid[hidden],
.artists-empty[hidden],
.artists-browse-active[hidden],
.artists-filter-chip[hidden],
.artists-filter-more-btn[hidden] {
  display: none !important;
}

@media (max-width: 900px) {
  .artists-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .artists-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.artists-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 28px 22px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

@media (max-width: 560px) {
  .artists-card {
    padding: 24px 18px 20px;
  }
}

/* Lift/shadow effects only where a real pointer hovers — avoids the
   "sticky hover" state after tapping on touch screens. */
@media (hover: hover) {
  .artists-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  }

  .artists-card:hover .artists-card-photo,
  .artists-card:hover .artists-avatar {
    border-color: var(--accent);
  }
}

/* Touch feedback instead of hover. */
@media (hover: none) {
  .artists-card:active {
    border-color: var(--border-strong);
  }

  .artists-filter-chip:active,
  a.artists-genre-chip:active,
  .artists-browse-active-chip:active {
    border-color: var(--accent);
    color: var(--text);
  }
}

.artists-card-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  width: 100%;
  color: inherit;
  text-decoration: none;
}

.artists-card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
  width: 100%;
}

.artists-card-crew {
  margin: -2px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

.artists-card-crew i {
  margin-right: 4px;
}

.artists-card-photo,
.artists-avatar {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-strong);
  flex: none;
  transition: border-color 0.25s ease;
}

.artists-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  font-weight: 700;
  color: #fff;
  /* Brand red only — no purple, keeps the placeholder on-brand. */
  background: linear-gradient(145deg, #3a1216 0%, var(--accent) 100%);
  box-sizing: border-box;
}

/* No photo: show the display name (or artist name) instead of a lone letter. */
.artists-avatar--name {
  padding: 14px 12px;
  text-align: center;
}

.artists-avatar-label {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  max-width: 100%;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.01em;
  word-break: break-word;
  hyphens: auto;
}

.artists-card-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.artists-card-tagline {
  color: var(--text-secondary);
  font-size: 14px;
  margin: 0;
}

.artists-card-likes {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.artists-card-likes i {
  font-size: 12px;
  color: var(--accent);
  opacity: 0.85;
}

.artists-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 2px;
}

.artists-card-views {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.artists-card-views i {
  font-size: 12px;
  opacity: 0.8;
}

.artists-genres {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.artists-genre-chip {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 12.5px;
  border: 1px solid var(--border-strong);
  color: var(--text-secondary);
  white-space: nowrap;
}

a.artists-genre-chip {
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

a.artists-genre-chip:hover {
  color: var(--text);
  border-color: var(--accent);
}

.artists-genre-chip--active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.artists-genre-chip--active:hover {
  color: #fff;
}

.artists-card-socials {
  display: flex;
  gap: 14px;
  color: var(--text-muted);
  font-size: 16px;
}

.artists-grid--list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.artists-grid--list .artists-card {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  text-align: left;
  gap: 12px 18px;
  padding: 12px 16px;
}

.artists-grid--list .artists-card:hover {
  transform: none;
}

.artists-grid--list .artists-card-main {
  flex-direction: row;
  align-items: center;
  text-align: left;
  gap: 14px;
  flex: 1 1 16rem;
  min-width: 0;
}

.artists-grid--list .artists-card-body {
  align-items: flex-start;
  gap: 2px;
  width: auto;
  flex: 1 1 auto;
}

.artists-grid--list .artists-card-photo,
.artists-grid--list .artists-avatar {
  width: 56px;
  height: 56px;
}

.artists-grid--list .artists-avatar {
  font-size: 22px;
}

/* List tiles are too small for a full name — fall back to the initial. */
.artists-grid--list .artists-avatar--name {
  padding: 0;
}

.artists-grid--list .artists-avatar--name .artists-avatar-label {
  display: none;
}

.artists-grid--list .artists-avatar--name::before {
  content: attr(data-initial);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

.artists-grid--list .artists-card-name {
  font-size: 17px;
}

.artists-grid--list .artists-card-crew {
  margin: 0;
}

.artists-grid--list .artists-card-likes {
  margin-top: 0;
  font-size: 12.5px;
}

.artists-grid--list .artists-card-meta {
  margin-top: 0;
}

.artists-grid--list .artists-card-views {
  margin-top: 0;
  font-size: 12.5px;
}

.artists-grid--list .artists-card-socials {
  flex: none;
  gap: 10px;
  font-size: 14px;
}

.artists-grid--list .artists-genres {
  justify-content: flex-end;
  flex: 1 1 12rem;
}

@media (max-width: 700px) {
  .artists-grid--list .artists-genres {
    justify-content: flex-start;
    flex: 1 1 100%;
    padding-left: 70px;
  }

  .artists-grid--list .artists-card-socials {
    display: none;
  }
}

.artists-empty {
  text-align: center;
  padding: 64px 20px;
  color: var(--text-muted);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
}

@media (max-width: 560px) {
  .artists-empty {
    padding: 44px 16px;
  }
}

.artists-empty i {
  font-size: 34px;
  display: block;
  margin-bottom: 14px;
}

.artists-header-actions {
  margin: 24px 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.artists-dashboard-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.artists-detail-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 28px;
}

.artists-detail-toolbar .artists-back {
  margin-bottom: 0;
}

.artists-dashboard-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.artists-dashboard-link:hover {
  color: var(--text);
}

/* ── Detail: hero ──────────────────────────────────────── */

.artists-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 28px;
  transition: color 0.2s ease;
}

.artists-back:hover {
  color: var(--text);
}

.artists-hero {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  margin-bottom: 48px;
}

.artists-hero-media img,
.artists-hero-media .artists-avatar {
  width: 100%;
  max-width: 320px;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  object-fit: cover;
}

.artists-hero-media .artists-avatar {
  display: flex;
  font-size: 96px;
}

.artists-hero-media .artists-avatar--name {
  font-size: inherit;
  padding: 28px 24px;
}

.artists-hero-media .artists-avatar--name .artists-avatar-label {
  -webkit-line-clamp: 4;
  font-size: clamp(22px, 4.2vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.artists-hero-name {
  font-size: clamp(30px, 5vw, 44px);
  margin-bottom: 6px;
}

.artists-hero-pronouns {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 400;
  margin-left: 8px;
}

.artists-hero-tagline {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.artists-hero .artists-genres {
  justify-content: flex-start;
  margin-bottom: 18px;
}

/* Mobile hero: centered profile header (photo, name, genres, likes, facts),
   more compact photo so the content above the fold stays visible.
   Scoped to .artists-hero — the videographers page uses its own
   .videographers-hero and is not affected. */
@media (max-width: 760px) {
  .artists-hero {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 40px;
    text-align: center;
  }
  .artists-hero-media {
    max-width: 240px;
    margin: 0 auto;
  }
  .artists-hero-media .artists-avatar:not(.artists-avatar--name) {
    font-size: 72px;
  }
  .artists-hero-media .artists-avatar--name {
    padding: 20px 16px;
  }
  .artists-hero-media .artists-avatar--name .artists-avatar-label {
    font-size: clamp(18px, 5vw, 26px);
  }
  .artists-hero .artists-genres {
    justify-content: center;
  }
  .artists-hero .artists-like-row,
.artists-hero .artists-watch-row {
    justify-content: center;
  }
}

.artists-like {
  margin: 0 0 10px;
}

.artists-profile-views {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted, var(--text-secondary));
}

.artists-profile-views i {
  font-size: 13px;
  opacity: 0.85;
}

.artists-like-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.artists-like-form {
  margin: 0;
  display: inline-flex;
}

.artists-like-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.artists-like-btn:hover {
  color: var(--text);
  border-color: var(--accent);
}

.artists-like-btn--on {
  background: rgba(230, 57, 70, 0.12);
  border-color: var(--accent);
  color: var(--accent);
}

.artists-like-btn--on:hover {
  color: var(--accent);
}

.artists-like-count {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.artists-like-static,
.artists-like-login {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}

.artists-like-login:hover {
  color: var(--text);
}

.artists-like-flash {
  margin: 0 0 10px;
  font-size: 13.5px;
}

.artists-like-flash--ok {
  color: #7dcea0;
}

.artists-like-flash--err {
  color: var(--accent);
}

.artists-watch {
  margin: 0 0 16px;
}

.artists-watch-hint {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
}

.artists-watch-hint a {
  color: var(--text-secondary);
}

.artists-watch-modal .artists-access-modal-dialog {
  width: min(420px, 100%);
}

.artists-watch-modal-flash {
  margin: 0 0 14px;
  font-size: 14px;
}

.artists-watch-switch {
  margin: 18px 0 0;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

.artists-watch-switch-btn {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.artists-watch-switch-btn:hover {
  color: var(--accent);
}

.artists-access-form[hidden],
.artists-watch-switch[hidden] {
  display: none !important;
}

.artists-watch-modal-flash--ok { color: #7dcea0; }
.artists-watch-modal-flash--err { color: var(--accent); }

.artists-watch-modal .artists-access-label {
  display: block;
  margin: 10px 0 6px;
  font-size: 13px;
  font-weight: 600;
}

.artists-watch-modal .artists-access-label span {
  font-weight: 400;
  color: var(--text-muted);
}

.artists-watch-modal .artists-access-form input[type="email"],
.artists-watch-modal .artists-access-form input[type="password"],
.artists-watch-modal .artists-access-form input[type="text"] {
  width: 100%;
  box-sizing: border-box;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  margin-bottom: 4px;
}

.artists-facts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  color: var(--text-secondary);
  font-size: 14.5px;
}

.artists-facts i {
  width: 20px;
  color: var(--text-muted);
  text-align: center;
  margin-right: 6px;
}

/* ── Detail: bio, socials, booking ─────────────────────── */

.artists-bio {
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 720px;
  margin-bottom: 26px;
}

/* Long bios on mobile: JS clamps to 6 lines and adds a "Read more" toggle.
   Progressive enhancement — without JS (or on desktop, where the media query
   does not clamp) the full bio is simply shown and no button appears. */
.artists-bio-toggle {
  display: none;
}

@media (max-width: 600px) {
  .artists-bio--clamped {
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .artists-bio-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: -18px 0 26px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--accent);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
  }
}

.artists-social-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.artists-social-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--text-secondary);
  font-size: 14px;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.artists-social-chip:hover {
  border-color: var(--accent);
  color: var(--text);
}

/* Brand colors for the platform icons on hover (pointer devices only). */
@media (hover: hover) {
  .artists-social-chip:hover .fa-instagram { color: #e1306c; }
  .artists-social-chip:hover .fa-soundcloud { color: #ff5500; }
  .artists-social-chip:hover .fa-spotify { color: #1db954; }
  .artists-social-chip:hover .fa-facebook { color: #1877f2; }
  .artists-social-chip:hover .fa-tiktok { color: #69c9d0; }
  .artists-social-chip:hover .fa-youtube { color: #ff0000; }
  .artists-social-chip:hover .fa-mixcloud { color: #52aad8; }
  .artists-social-chip:hover .fa-bandcamp { color: #629aa9; }
}

.artists-booking-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 26px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (hover: hover) {
  .artists-booking-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(230, 57, 70, 0.35);
    color: #fff;
  }
}

@media (max-width: 560px) {
  .artists-hero .artists-booking-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ── Detail: videos ────────────────────────────────────── */

.artists-videos-title {
  font-size: 22px;
  margin: 32px 0 20px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}

@media (max-width: 600px) {
  .artists-videos-title {
    font-size: 19px;
    margin: 24px 0 16px;
    padding-top: 20px;
    gap: 10px;
  }
}

/* ── Detail: Upcoming on amebe (Upload Plan soft-match) ── */
.artists-upcoming {
  /* Section title inside carries the divider + spacing now. */
  margin-top: 0;
}
.artists-upcoming-lead {
  margin: -8px 0 16px;
  color: var(--text-muted, #a0a0a0);
  font-size: 0.95rem;
  max-width: 42rem;
}
.artists-upcoming-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.artists-upcoming-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}
.artists-upcoming-thumb {
  flex: 0 0 120px;
  width: 120px;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: #111;
}
.artists-upcoming-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.artists-upcoming-body {
  min-width: 0;
  flex: 1;
}
.artists-upcoming-when {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  margin-bottom: 6px;
}
.artists-upcoming-date {
  font-weight: 600;
  letter-spacing: 0.02em;
}
.artists-upcoming-time {
  color: var(--text-muted, #a0a0a0);
  font-variant-numeric: tabular-nums;
}
.artists-upcoming-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent, #e63946);
  border: 1px solid rgba(230, 57, 70, 0.4);
  background: rgba(230, 57, 70, 0.1);
}
.artists-upcoming-title {
  display: flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1.35;
}
.artists-upcoming-artist {
  font-weight: 600;
}
.artists-upcoming-details {
  color: var(--text-muted, #a0a0a0);
  font-size: 0.95em;
}
.artists-upcoming-more {
  margin: 14px 0 0;
  font-size: 0.92rem;
}
.artists-upcoming-more a {
  color: var(--accent, #e63946);
  text-decoration: none;
}
.artists-upcoming-more a:hover {
  text-decoration: underline;
}
@media (max-width: 560px) {
  .artists-upcoming-item {
    flex-direction: column;
  }
  .artists-upcoming-thumb {
    width: 100%;
    flex-basis: auto;
  }
}

.artists-videos-title i {
  color: var(--accent);
}

.artists-videos-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.artists-videos-grid--shorts {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .artists-videos-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .artists-videos-grid--shorts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Mobile: video sections become horizontally scrollable rows (like YouTube)
   instead of one long vertical stack — keeps profiles with many videos short.
   Edge-bleed + scroll padding mirror the filter rows. */
@media (max-width: 560px) {
  .artists-videos-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    margin-left: calc(-1 * var(--artists-pad-x, 16px));
    margin-right: calc(-1 * var(--artists-pad-x, 16px));
    padding: 2px var(--artists-pad-x, 16px) 8px;
    scroll-padding-left: var(--artists-pad-x, 16px);
  }

  .artists-videos-grid::-webkit-scrollbar {
    display: none;
  }

  .artists-videos-grid > * {
    flex: 0 0 auto;
    width: min(260px, 74vw);
    scroll-snap-align: start;
  }

  .artists-videos-grid--shorts > * {
    width: 150px;
  }
}

.artists-video-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

@media (hover: hover) {
  .artists-video-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-strong);
  }
}

.artists-video-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--surface-alt);
}

.artists-video-card--short .artists-video-thumb {
  aspect-ratio: 9 / 16;
}

.artists-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.artists-video-duration {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.artists-video-title {
  display: block;
  padding: 12px 14px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.artists-all-videos {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  color: var(--text-secondary);
  font-size: 14.5px;
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.artists-all-videos:hover {
  color: var(--text);
  border-color: var(--accent);
}

/* --- Browse: search + filters (overview) ----------------------------- */

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

.artists-browse {
  margin: 0 auto 28px;
  max-width: 860px;
}

.artists-browse-search {
  position: relative;
  margin: 0 auto 22px;
  max-width: 480px;
  text-align: center;
}

.artists-browse-search input[type="search"] {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  /* Inputs don't inherit the page font by default (was browser default). */
  font: inherit;
  /* 16px minimum keeps iOS Safari from auto-zooming on focus. */
  font-size: 16px;
  -webkit-appearance: none;
  appearance: none;
}

.artists-browse-search-icon {
  position: absolute;
  left: 17px;
  top: 26px; /* vertical center of the input (not the form: the no-JS
                Search button below would skew a 50% offset) */
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
  pointer-events: none;
}

/* Indent only when the icon is actually present in the markup. */
.artists-browse-search-icon ~ input[type="search"] {
  padding-left: 42px;
}

.artists-browse-search input[type="search"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.15);
}

.artists-browse-search-submit {
  display: inline-flex;
  margin: 10px auto 0;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}

.artists-browse.is-js .artists-browse-search-submit {
  display: none;
}

.artists-browse-group {
  margin: 0 0 18px;
}

.artists-browse-label {
  margin: 0 0 8px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.artists-browse-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 16px;
  margin: 6px 0 0;
}

.artists-browse-count {
  margin: 0;
  text-align: center;
  font-size: 13.5px;
  color: var(--text-muted);
}

.artists-view-toggle {
  display: inline-flex;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  overflow: hidden;
}

.artists-view-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 36px;
  color: var(--text-muted);
  background: transparent;
  border-right: 1px solid var(--border-strong);
}

.artists-view-btn:last-child {
  border-right: 0;
}

.artists-view-btn:hover {
  color: var(--text);
}

.artists-view-btn--active {
  background: var(--accent);
  color: #fff;
}

.artists-view-btn--active:hover {
  color: #fff;
}

.artists-browse-active {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 4px 0 14px;
}

.artists-browse-active-chip,
.artists-browse-clear {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  border: 1px solid var(--border-strong);
  color: var(--text-secondary);
  background: var(--surface-alt);
}

.artists-browse-active-chip:hover,
.artists-browse-clear:hover {
  color: var(--text);
  border-color: var(--accent);
}

.artists-browse-clear {
  background: transparent;
  font-weight: 700;
}

.artists-filter-more-btn {
  font: inherit;
  cursor: pointer;
  background: transparent;
}

/* --- Genre filter (overview) ----------------------------------------- */

.artists-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 auto;
  max-width: 860px;
}

.artists-filter-chip {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  border: 1px solid var(--border-strong);
  color: var(--text-secondary);
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.artists-filter-chip:hover {
  color: var(--text);
  border-color: var(--accent);
}

.artists-filter-chip--active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.artists-filter-chip--active:hover {
  color: #fff;
}

/* Mobile: each filter group becomes one horizontally scrollable row that
   bleeds to the screen edges — saves a lot of vertical space compared to
   several wrapped chip rows. Chips stay plain links, nothing functional
   changes. Hidden chips (More…) keep display:none via [hidden]. */
@media (max-width: 600px) {
  .artists-browse {
    margin-bottom: 22px;
  }

  .artists-browse-search {
    margin-bottom: 18px;
  }

  .artists-browse-group {
    margin-bottom: 14px;
  }

  .artists-browse-label {
    text-align: left;
    margin-bottom: 6px;
  }

  .artists-filter {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-left: calc(-1 * var(--artists-pad-x, 16px));
    margin-right: calc(-1 * var(--artists-pad-x, 16px));
    padding: 2px var(--artists-pad-x, 16px) 6px;
    scroll-padding-left: var(--artists-pad-x, 16px);
  }

  .artists-filter::-webkit-scrollbar {
    display: none;
  }

  /* Larger touch targets for the tiles/list toggle. */
  .artists-view-btn {
    width: 44px;
    height: 40px;
  }
}

/* --- Events (detail) --------------------------------------------------- */

.artists-events-section {
  margin: 0 0 8px;
}

.artists-events-section .artists-videos-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
}

.artists-events-count {
  margin-left: auto;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted, var(--text-secondary));
}

.artists-events-list {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  max-width: 720px;
}

.artists-events-list li {
  padding: 11px 0;
  border-bottom: 1px solid var(--border-strong);
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 1.5;
}

.artists-events-list li:first-child {
  border-top: 1px solid var(--border-strong);
}

.artists-events-list > .artists-event[hidden] {
  display: none !important;
}

.artists-event {
  display: grid;
  grid-template-columns: 7.4rem minmax(0, 1fr);
  gap: 4px 16px;
  align-items: start;
}

.artists-event time,
.artists-event-nodate {
  font-variant-numeric: tabular-nums;
  color: var(--text);
  font-weight: 650;
  font-size: 14px;
  padding-top: 1px;
}

.artists-event-nodate { color: var(--text-muted, var(--text-secondary)); font-weight: 500; }

.artists-event-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

.artists-event-club { color: var(--text); }

.artists-event-place {
  color: var(--text-muted, var(--text-secondary));
  font-size: 13px;
}

.artists-events-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  max-width: 720px;
  margin: 4px 0 18px;
  padding-top: 10px;
}

.artists-events-pager[hidden] { display: none !important; }

.artists-events-pager-meta {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted, var(--text-secondary));
}

.artists-events-pager-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
}

.artists-events-pager-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.artists-events-pager-btn:hover {
  color: var(--text);
}

.artists-events-pager-btn[hidden] { display: none !important; }

.artists-events-pager-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

@media (max-width: 520px) {
  .artists-event { grid-template-columns: 1fr; gap: 4px; }
  .artists-events-count { margin-left: 0; width: 100%; }
  .artists-events-pager { flex-direction: column; align-items: flex-start; }
}

.artists-events-list--past li {
  color: var(--text-muted, var(--text-secondary));
}

/* --- SoundCloud mixes (detail) ----------------------------------------- */

.artists-mixes {
  display: grid;
  gap: 20px;
  max-width: 860px;
}

.artists-mix-embed iframe {
  display: block;
  width: 100%;
  border: 0;
  border-radius: var(--radius-lg, 12px);
  background: var(--surface-alt);
}

.artists-mix-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.artists-mix-link:hover {
  color: var(--text);
}

/* --- Public stats (detail) --------------------------------------------- */

.artists-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  max-width: 860px;
  margin-bottom: 8px;
}

.artists-stat-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg, 12px);
  background: var(--surface-alt);
}

.artists-stat-card--featured {
  border-color: var(--accent);
}

.artists-stat-value {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
}

.artists-stat-card--featured .artists-stat-value {
  color: var(--accent);
}

.artists-stat-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--text-secondary);
}

@media (max-width: 600px) {
  .artists-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .artists-stat-card {
    padding: 14px 16px;
  }

  .artists-stat-value {
    font-size: 22px;
  }
}

/* --- Rider (detail) ----------------------------------------------------- */

.artists-rider {
  max-width: 720px;
  padding: 18px 22px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg, 12px);
  background: var(--surface-alt);
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 1.7;
  white-space: normal;
}

/* --- Community comments (detail) --------------------------------------- */

.artists-community {
  /* Section title inside carries the divider + spacing now. */
  margin-top: 0;
  max-width: 720px;
}

.artists-community-count {
  margin-left: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.artists-community-flash {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  margin: 0 0 16px;
}

.artists-community-flash--ok {
  border: 1px solid var(--accent);
  color: var(--text);
}

.artists-community-flash--err {
  border: 1px solid #e63946;
  color: #ffb4b8;
}

.artists-community-login,
.artists-community-empty {
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 1.6;
}

.artists-community-login a {
  color: var(--accent);
  font-weight: 600;
  border-bottom: 1px solid transparent;
}

.artists-community-login a:hover {
  border-bottom-color: var(--accent);
}

.artists-comment-form {
  margin: 8px 0 28px;
}

.artists-comment-label {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.artists-comment-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--surface-alt);
  color: var(--text);
  font: inherit;
  font-size: 14.5px;
  line-height: 1.5;
  resize: vertical;
  min-height: 88px;
}

.artists-comment-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.artists-comment-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.artists-comment-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.artists-comment-hint {
  font-size: 12.5px;
  color: var(--text-muted, var(--text-secondary));
}

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

.artists-comment {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--border-strong);
}

.artists-comment-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--surface-alt);
}

.artists-comment-avatar--fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--text);
}

.artists-comment-main { flex: 1; min-width: 0; }

.artists-comment-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  margin: 0 0 6px;
  font-size: 13px;
}

.artists-comment-author {
  font-weight: 700;
  color: var(--text);
}

a.artists-comment-author:hover { color: var(--accent); }

.artists-comment-meta time {
  color: var(--text-muted, var(--text-secondary));
  font-size: 12.5px;
}

.artists-comment-body {
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 1.65;
}

.artists-comment-delete {
  margin-top: 8px;
}

.artists-comment-delete button {
  background: none;
  border: 0;
  padding: 0;
  color: var(--text-muted, var(--text-secondary));
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.artists-comment-delete button:hover { color: #e63946; }

.artists-admin-preview-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 920px;
  margin: 0 auto 22px;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(230, 57, 70, 0.45);
  background: rgba(230, 57, 70, 0.1);
  color: var(--text);
  font-size: 15px;
  line-height: 1.45;
}

.artists-admin-preview-banner i { color: #e63946; margin-top: 3px; }

/* ── Request access modal ──────────────────────────────── */

.artists-access-btn {
  background: transparent;
  color: var(--text);
  border-color: var(--text);
}

.artists-access-btn:hover {
  background: var(--text);
  color: var(--bg);
}

.artists-access-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 720px;
  margin: 0 auto 28px;
  padding: 14px 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(46, 204, 113, 0.45);
  background: rgba(46, 204, 113, 0.08);
  color: var(--text);
  font-size: 15px;
  line-height: 1.45;
}

.artists-access-banner i { color: #7fd99a; margin-top: 3px; }

body.artists-access-open { overflow: hidden; }

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

.artists-access-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
}

.artists-access-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.artists-access-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: min(92vh, 820px);
  overflow: auto;
  padding: 28px 26px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}

.artists-access-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 18px;
}

.artists-access-modal-close:hover,
.artists-access-modal-close:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.artists-access-modal-eyebrow {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.artists-access-modal-title {
  margin: 0 0 10px;
  font-size: 1.55rem;
  font-weight: 700;
}

.artists-access-modal-lead {
  margin: 0 0 18px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.5;
}

.artists-access-alert {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(230, 57, 70, 0.45);
  background: rgba(230, 57, 70, 0.08);
  color: var(--text);
  font-size: 14px;
}

.artists-access-form { display: flex; flex-direction: column; gap: 4px; }
.artists-access-form[hidden] { display: none !important; }

.artists-access-field { margin-bottom: 12px; }

.artists-access-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
}

.artists-access-field input {
  width: 100%;
  box-sizing: border-box;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
}

.artists-access-field input:focus {
  outline: none;
  border-color: var(--text);
}

.artists-access-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}

.artists-access-hint,
.artists-access-legal {
  margin: -4px 0 14px;
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.45;
}

.artists-access-legal a { color: var(--text-secondary); text-decoration: underline; text-underline-offset: 2px; }
.artists-access-legal a:hover { color: var(--text); }

.artists-access-submit {
  margin-top: 6px;
  width: 100%;
  text-align: center;
  border: 0;
}

.artists-access-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 560px) {
  .artists-access-field-row { grid-template-columns: 1fr; }
  .artists-access-modal {
    padding: 0;
    align-items: flex-end;
  }
  .artists-access-modal-dialog {
    width: 100%;
    max-height: 94vh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 22px 18px 28px;
  }
}
