/* =============================================================================
   Artist Profile Page
   ============================================================================= */

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.artist-hero {
  background: var(--color-accent);
  color: #fff;
  padding: var(--space-16) 0 0;
  position: relative;
  overflow: hidden;
}

/* Blurred cover art banner */
.artist-hero__banner {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  filter: blur(18px) brightness(0.45) saturate(1.4);
  transform: scale(1.08); /* prevent blur edge bleed */
  z-index: 0;
}

/* Dark overlay so text always readable */
.artist-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,.45) 0%,
    rgba(0,0,0,.65) 60%,
    rgba(0,0,0,.85) 100%
  );
  z-index: 0;
}

/* Without cover art — keep original gradient */
.artist-hero:not(.artist-hero--has-cover)::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(233,69,96,.15) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.artist-hero__inner {
  display: flex;
  align-items: center;
  gap: var(--space-10);
  position: relative;
  z-index: 1;
  padding-bottom: var(--space-12);
}

.artist-hero__photo {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 4px solid rgba(255,255,255,.2);
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
}

.artist-hero__photo-placeholder {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 4px solid rgba(255,255,255,.2);
}

.artist-hero__info { flex: 1; min-width: 0; }

.artist-hero__name {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  margin-bottom: var(--space-3);
}

.artist-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.artist-hero__tag {
  background: rgba(255,255,255,.15);
  color: rgba(255,255,255,.9);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ── Social links ───────────────────────────────────────────────────────── */
.artist-hero__social {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.artist-hero__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--social-color, rgba(255,255,255,.15));
  color: #fff;
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
.artist-hero__social-link:hover {
  opacity: .85;
  transform: scale(1.12);
  box-shadow: 0 4px 12px rgba(0,0,0,.35);
}
.artist-hero__social-link svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: block;
}

/* ── Bio section ─────────────────────────────────────────────────────────── */
.artist-bio {
  padding: var(--space-16) 0;
  background: #fff;
}

.artist-bio__text {
  font-size: var(--font-size-md);
  line-height: 1.9;
  color: var(--color-text);
  max-width: 760px;
}

/* ── Streaming links ─────────────────────────────────────────────────────── */
.artist-streaming {
  padding: var(--space-10) 0;
  background: var(--color-bg-light);
}

.artist-streaming__grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.artist-streaming__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-full);
  background: var(--color-accent);
  color: #fff;
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-decoration: none;
  transition: opacity var(--transition-fast);
}
.artist-streaming__link:hover { opacity: 0.85; color: #fff; }

/* ── Discography ─────────────────────────────────────────────────────────── */
.artist-discography {
  padding: var(--space-16) 0;
  background: #fff;
  overflow-x: hidden;
}

/* Discography grid — responsive, never overflows */
.discog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  box-sizing: border-box;
  width: 100%;
}

@media (max-width: 1024px) {
  .discog-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .discog-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

@media (max-width: 400px) {
  .discog-grid { grid-template-columns: 1fr; }
}

/* Discography cards — no extra padding, let the grid control spacing */
.artist-discography .music-card {
  padding: 8px;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
}

/* Override .card overflow:hidden so streaming icons row is never clipped */
.artist-discography .card,
.artist-discography .music-card {
  overflow: visible !important;
}

/* But keep the art image clipped to its border-radius */
.artist-discography .music-card__art-wrap {
  overflow: hidden;
  border-radius: var(--radius-sm);
}

/* ── Events ──────────────────────────────────────────────────────────────── */
.artist-events {
  padding: var(--space-16) 0;
  background: var(--color-bg-light);
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .artist-hero__inner {
    flex-direction: column;
    text-align: center;
    gap: var(--space-6);
  }
  .artist-hero__social { justify-content: center; }
  .artist-hero__tags   { justify-content: center; }

  /* Ensure social icons never stack vertically */
  .artist-hero__social {
    flex-direction: row !important;
    flex-wrap: wrap !important;
  }
}

/* ── Social icons always in a horizontal row ─────────────────────────────── */
.artist-hero__social {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: var(--space-2);
}

/* ── Follow row ─────────────────────────────────────────────────────────────── */
.artist-hero__follow-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-4);
  flex-wrap: wrap;
}

.artist-hero__follower-count {
  font-size: var(--font-size-sm);
  color: rgba(255,255,255,.75);
}

.artist-hero__follower-count strong {
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
}

.artist-follow-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 22px;
  border-radius: 99px;
  border: 2px solid #fff;
  background: transparent;
  color: #fff;
  font-size: var(--font-size-sm);
  font-weight: 700;
  cursor: pointer;
  letter-spacing: .04em;
  text-decoration: none;
  transition: background .2s, color .2s, transform .15s;
}

.artist-follow-btn:hover {
  background: #fff;
  color: var(--color-accent);
  transform: scale(1.04);
}

.artist-follow-btn.is-following {
  background: rgba(255,255,255,.2);
  color: #fff;
  border-color: rgba(255,255,255,.5);
}

.artist-follow-btn.is-following:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.3);
}

.artist-follow-btn:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 768px) {
  .artist-hero__follow-row { justify-content: center; }
}

/* ── Hero stats bar ──────────────────────────────────────────────────────── */
.artist-hero__stats-bar {
  position: relative;
  z-index: 1;
  background: rgba(0,0,0,.35);
  border-top: 1px solid rgba(255,255,255,.1);
  padding: var(--space-4) 0;
}

.artist-hero__stats-inner {
  display: flex;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.artist-hero__stat {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
  color: rgba(255,255,255,.85);
}

.artist-hero__stat-value {
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
}

.artist-hero__stat-label {
  color: rgba(255,255,255,.65);
  font-size: var(--font-size-xs);
}

/* ── Discography card body — streaming icons single row ──────────────────── */
.artist-discography .card-body > div {
  flex-wrap: nowrap !important;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  gap: var(--space-2) !important;
}
.artist-discography .card-body > div::-webkit-scrollbar { display: none; }

/* Never clip streaming icons — always show in a tight horizontal row */
.streaming-icons {
  flex-wrap: wrap !important;
  overflow: visible !important;
}

.artist-discography .streaming-icons {
  flex-wrap: wrap !important;
}
.artist-discography .streaming-icons a {
  flex-shrink: 0;
}

/* ── Discography platform icon pill ─────────────────────────────────────── */
.discog-platform-icon {
  transition: opacity .15s, transform .2s, box-shadow .2s !important;
}
.discog-platform-icon:hover {
  opacity: .85;
  transform: scale(1.1) !important;
}
.artist-discography .music-card {
  position: relative;
}

.artist-discography .music-card__art-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.artist-discography .music-card__art {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.artist-discography .music-card__play-overlay {
  position: absolute;
  bottom: 10px;
  right: 10px;
  top: auto;
  left: auto;
  width: 46px !important;
  height: 46px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-highlight, #e94560);
  border-radius: 50%;
  color: #fff;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .2s, transform .2s, background .3s, box-shadow .2s;
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
  text-decoration: none;
  padding-left: 2px;
}

.artist-discography .music-card:hover .music-card__play-overlay,
.artist-discography .music-card:focus-within .music-card__play-overlay {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile touch — always show, no hover needed */
@media (max-width: 768px) {
  .artist-discography .music-card__play-overlay {
    opacity: 1 !important;
    transform: translateY(0) !important;
    width: 32px !important;
    height: 32px !important;
    bottom: 6px;
    right: 6px;
  }
}

/* ── Artist Videos (Vidz) section ───────────────────────────────────────── */
.artist-vidz {
  padding: var(--space-14) 0;
  background: #fff;
}

.artist-vidz__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

.artist-vidz__card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-bg-light);
  transition: transform .2s, box-shadow .2s;
}

.artist-vidz__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}

.artist-vidz__thumb-wrap {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #1a1a1a;
}

.artist-vidz__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}

.artist-vidz__card:hover .artist-vidz__thumb {
  transform: scale(1.05);
}

.artist-vidz__thumb-empty {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.3);
}

.artist-vidz__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.4);
  opacity: 0;
  transition: opacity .2s;
  color: #fff;
}

.artist-vidz__card:hover .artist-vidz__play {
  opacity: 1;
}

.artist-vidz__info {
  padding: var(--space-3);
}

.artist-vidz__title {
  font-size: var(--font-size-sm);
  font-weight: 700;
  margin: 0 0 var(--space-1);
  line-height: 1.35;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.artist-vidz__title a {
  color: var(--color-text);
  text-decoration: none;
}
.artist-vidz__title a:hover { color: var(--color-accent); }

.artist-vidz__views {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.artist-vidz__thumb-link { display: block; }

/* ── Related Artists grid ───────────────────────────────────────────────── */
.artist-related__card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

.artist-related__photo-link {
  display: block;
  text-decoration: none;
}

.artist-related__photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto var(--space-2);
  border: 3px solid var(--color-border);
  transition: border-color .2s, transform .2s;
}

.artist-related__card:hover .artist-related__photo {
  border-color: var(--color-accent);
  transform: scale(1.05);
}

.artist-related__photo-placeholder {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--color-bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-2);
  border: 3px solid var(--color-border);
  color: var(--color-text-muted);
}

.artist-related__info {
  width: 100%;
}

.artist-related__name {
  display: block;
  font-weight: 700;
  font-size: var(--font-size-sm);
  color: var(--color-text);
  text-decoration: none;
  margin-bottom: var(--space-1);
}
.artist-related__name:hover { color: var(--color-accent); }

.artist-related__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
  margin-bottom: var(--space-2);
}

.artist-related__tag {
  font-size: .65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  background: var(--color-bg-light);
  color: var(--color-text-muted);
  padding: 2px 7px;
  border-radius: 99px;
  border: 1px solid var(--color-border);
}

.artist-follow-btn--sm {
  padding: 5px 14px;
  font-size: var(--font-size-xs);
  border: 1.5px solid var(--color-accent);
  background: transparent;
  color: var(--color-accent);
  border-radius: 99px;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  transition: background .2s, color .2s;
  display: inline-block;
}
.artist-follow-btn--sm:hover {
  background: var(--color-accent);
  color: #fff;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .artist-vidz__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .artist-hero__stats-inner {
    gap: var(--space-6);
  }
  .artist-vidz__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .artist-related__grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  /* Discography — 2 columns on tablet, tight gap */
  .discog-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  /* Streaming icons in discography cards — wrap so Boomplay goes to next line */
  .artist-discography .streaming-icons {
    flex-wrap: wrap !important;
    gap: 3px !important;
    overflow: visible !important;
  }
  .artist-discography .streaming-icons a {
    width: 24px !important;
    height: 24px !important;
    border-radius: 50% !important;
    flex-shrink: 0 !important;
  }
  .artist-discography .streaming-icons img {
    width: 24px !important;
    height: 24px !important;
  }

  /* Event rows — compact date block */
  .event-row__date {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    flex-wrap: nowrap;
  }
  .event-row__date-day {
    font-size: var(--font-size-2xl);
  }
  .event-row__date-month {
    font-size: var(--font-size-xs);
  }
  .event-row__date-year {
    font-size: var(--font-size-xs);
  }
}

@media (max-width: 480px) {
  .artist-vidz__grid {
    grid-template-columns: 1fr 1fr;
  }
  .artist-related__grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Discography — 2 columns on small phones */
  .discog-grid {
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
    gap: 8px !important;
  }
  .artist-discography .streaming-icons {
    gap: 3px !important;
    flex-wrap: wrap !important;
  }
  .artist-discography .streaming-icons a {
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0 !important;
  }
  .artist-discography .streaming-icons img {
    width: 20px !important;
    height: 20px !important;
  }

  /* Streaming badge + icons row — keep nowrap, let it scroll */
  .artist-discography .card-body > div {
    gap: var(--space-2) !important;
  }
}
