/* =============================================================================
   Artist Profile Page — Premium UI  (Spotify / Apple Music inspired)
   All layout, spacing, colour and typography is here — zero inline styles.
   ============================================================================= */

/* ── CSS custom properties scoped to this page ───────────────────────────── */
.artist-hero,
.artist-bio,
.artist-streaming,
.artist-discography,
.artist-events,
.artist-vidz,
.artist-fans-also-watch,
.artist-related-rail {
  --ap-section-pad: clamp(2.5rem, 5vw, 4rem);
}

/* ═══════════════════════════════════════════════════════════════════════════
   HERO  — Facebook/YouTube channel style
   ═══════════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════════════
   HERO  — Full-bleed cover with content overlaid at bottom
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Hero wrapper ── */
.artist-hero {
  color: #fff;
  position: relative;
  overflow: hidden;
  min-height: 460px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  margin-top: calc(-1 * var(--header-height, 72px));
  padding-top: var(--header-height, 72px);
}

/* Cover fills entire hero — no cropping, top-anchored */
.artist-hero__banner {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  z-index: 0;
}

/* Gradient scrim — dark at bottom so text is readable */
.artist-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.05) 0%,
    rgba(0,0,0,.2)  40%,
    rgba(0,0,0,.75) 80%,
    rgba(0,0,0,.92) 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* No cover: brand gradient fallback */
.artist-hero:not(.artist-hero--has-cover) {
  background: linear-gradient(160deg, #0d0d1a 0%, #1a1a2e 50%, #16213e 100%);
}
.artist-hero:not(.artist-hero--has-cover) .artist-hero__overlay {
  background: linear-gradient(135deg, rgba(233,69,96,.12) 0%, transparent 60%);
}

/* Remove below-cover white section — everything sits on the image */
.artist-hero__below {
  position: relative;
  z-index: 2;
}

/* Centered inner layout */
.artist-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 0 16px 32px;
  position: relative;
  z-index: 2;
}

/* Avatar — white border, centered */
.artist-hero__photo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}

.artist-hero__photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255,255,255,.9);
  box-shadow: 0 4px 24px rgba(0,0,0,.5);
  background: #1a1a2e;
  display: block;
}

.artist-hero__photo-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a1a2e, #e94560);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid rgba(255,255,255,.9);
  box-shadow: 0 4px 24px rgba(0,0,0,.5);
}

/* Info section — centered, white text on dark image */
.artist-hero__info {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* Artist name — white on image */
.artist-hero__name {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 900;
  line-height: 1.15;
  color: #fff;
  letter-spacing: -.02em;
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}

.artist-hero__name .role-badge,
.artist-hero__name .creator-tick,
.artist-hero__name .badge-cluster {
  flex-shrink: 0;
}

/* Hybrid pill — on dark background */
.artist-hero__hybrid-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.88);
  border: 1px solid rgba(255,255,255,.22);
  padding: 4px 12px 4px 10px;
  border-radius: 99px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin: 0 0 12px;
  backdrop-filter: blur(4px);
}

/* Genre tags */
.artist-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
  justify-content: center;
}

.artist-hero__tag {
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.85);
  padding: 3px 11px;
  border-radius: 99px;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,.18);
}

/* Country */
.artist-profile__country {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .8125rem;
  color: rgba(255,255,255,.65);
  font-weight: 500;
  margin-bottom: 10px;
}

/* Follow row */
.artist-hero__follow-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.artist-hero__follower-count {
  font-size: .875rem;
  color: rgba(255,255,255,.75);
  font-weight: 500;
}

.artist-hero__follower-count strong {
  color: #fff;
  font-weight: 800;
}

/* Follow button */
.artist-follow-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 28px;
  border-radius: 99px;
  border: 2px solid rgba(255,255,255,.8);
  background: transparent;
  color: #fff;
  font-size: .875rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: .04em;
  text-decoration: none;
  transition: background .15s, border-color .15s, transform .1s;
  white-space: nowrap;
  line-height: 1;
}
.artist-follow-btn:hover {
  background: rgba(255,255,255,.15);
  border-color: #fff;
  color: #fff;
  transform: scale(1.03);
}
.artist-follow-btn.is-following {
  background: rgba(255,255,255,.2);
  border-color: rgba(255,255,255,.5);
}
.artist-follow-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none;
}

/* Social icon row — on dark image */
.artist-hero__social {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
}

.artist-hero__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  color: #fff;
  text-decoration: none;
  flex-shrink: 0;
  border: 1.5px solid rgba(255,255,255,.35);
  transition: background .18s, transform .15s, border-color .18s;
  backdrop-filter: blur(6px);
}
.artist-hero__social-link:hover {
  background: var(--social-color, rgba(255,255,255,.3));
  border-color: var(--social-color, rgba(255,255,255,.7));
  transform: translateY(-3px) scale(1.08);
  color: #fff;
}
.artist-hero__social-link svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: block;
  fill: #fff;
  color: #fff;
}

/* Share button */
.artist-hero__share { display: inline-flex; }
.artist-hero__share .share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 99px;
  border: 1.5px solid rgba(255,255,255,.4);
  background: rgba(0,0,0,.4);
  color: rgba(255,255,255,.85);
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, border-color .15s;
  height: 40px;
  backdrop-filter: blur(4px);
}
.artist-hero__share .share-btn:hover {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.7);
  color: #fff;
}

/* Stats bar — sits below the hero section, always visible */
.artist-hero__stats-bar {
  position: relative;
  z-index: 10;
  background: #fff;
  border-bottom: 1px solid #e4e6eb;
  padding: 14px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.07);
}

.artist-hero__stats-bar-placeholder {
  display: none;
}

.artist-hero__stats-inner {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  align-items: center;
}

.artist-hero__stat {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .8125rem;
  color: #555;
}

.artist-hero__stat--muted {
  opacity: .7;
  padding-left: 16px;
  border-left: 1px solid #e0e0e0;
}

.artist-hero__stat-value {
  font-weight: 800;
  font-size: 1.0625rem;
  color: #1a1a2e;
  letter-spacing: -.01em;
}

.artist-hero__stat-label {
  color: #888;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .02em;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SECTION HEADINGS (shared rule)
   ═══════════════════════════════════════════════════════════════════════════ */
.artist-bio        .section-title,
.artist-streaming  .section-title,
.artist-discography .section-title,
.artist-events     .section-title,
.artist-vidz       .section-title,
.artist-fans-also-watch .section-title,
.artist-related-rail .section-title {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 800;
  letter-spacing: -.015em;
  margin: 0 0 24px;
  color: var(--color-text, #1a1a1a);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Sub-section heading — Music Videos inside Discography */
.artist-discography .section-title + .section-title,
.artist-discography .section-title--sub {
  margin-top: 2.5rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   BIO
   ═══════════════════════════════════════════════════════════════════════════ */
.artist-bio {
  padding: var(--ap-section-pad) 0;
  background: #fff;
}

.artist-bio__text {
  font-size: 1.0625rem;
  line-height: 1.9;
  color: var(--color-text, #333);
  max-width: 720px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   STREAMING PLATFORMS
   ═══════════════════════════════════════════════════════════════════════════ */
.artist-streaming {
  padding: var(--ap-section-pad) 0;
  background: var(--color-bg-light, #f5f5f5);
}

/* The view uses .streaming-link (from streaming.css); no overrides needed.
   Add margin-top to the grid wrapper for consistency. */
.artist-streaming__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Icon inside each streaming pill — strip the inline style from the view */
.artist-streaming .streaming-link__icon {
  background: none !important;
  padding: 0;
  overflow: hidden;
  border-radius: 6px;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   DISCOGRAPHY
   ═══════════════════════════════════════════════════════════════════════════ */
.artist-discography {
  padding: var(--ap-section-pad) 0;
  background: #fff;
  overflow-x: hidden;
}

.discog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  box-sizing: border-box;
  width: 100%;
  margin-bottom: 40px;
}

@media (max-width: 1100px) { .discog-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  { .discog-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
@media (max-width: 420px)  { .discog-grid { grid-template-columns: 1fr; } }

/* Music card — inside discography */
.artist-discography .music-card {
  padding: 0;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  background: var(--color-bg-light, #f5f5f5);
  border-radius: 10px;
  overflow: visible;
  transition: transform .2s, box-shadow .2s;
}
.artist-discography .music-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(0,0,0,.1);
}

.artist-discography .music-card__art-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
}

.artist-discography .music-card__art,
.artist-discography .card-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.artist-discography .card-body {
  padding: 10px 12px 14px;
}

.artist-discography .card-title,
.artist-discography .card-title a {
  font-size: .875rem;
  font-weight: 700;
  color: var(--color-text, #1a1a1a);
  text-decoration: none;
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}
.artist-discography .card-title a:hover { color: var(--color-accent); }

.artist-discography .card-text {
  font-size: .72rem;
  color: var(--color-text-muted, #888);
  margin: 0 0 7px;
}

/* Badge + streaming icons row inside card body */
.artist-discography .card-body > div,
.artist-discography .card-body__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}

/* Play button overlay */
.artist-discography .music-stream-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 40px !important;
  height: 40px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-highlight, #e94560) !important;
  border-radius: 50%;
  color: #fff;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .18s, transform .18s, background .25s, box-shadow .18s;
  box-shadow: 0 4px 14px rgba(0,0,0,.35);
  text-decoration: none;
  padding-left: 2px;
  flex-shrink: 0;
  z-index: 2;
}
.artist-discography .music-card:hover .music-stream-btn,
.artist-discography .music-card:focus-within .music-stream-btn {
  opacity: 1;
  transform: translateY(0);
}
@media (max-width: 768px) {
  .artist-discography .music-stream-btn {
    opacity: 1 !important;
    transform: translateY(0) !important;
    width: 34px !important;
    height: 34px !important;
    bottom: 8px;
    right: 8px;
  }
}

/* Streaming icons inside cards */
.artist-discography .streaming-icons {
  flex-wrap: wrap !important;
  overflow: visible !important;
  gap: 4px !important;
}
.artist-discography .streaming-icons a {
  flex-shrink: 0;
  transition: opacity .15s, transform .18s !important;
}
.artist-discography .streaming-icons a:hover {
  opacity: .82;
  transform: scale(1.08) !important;
}

/* Music Videos grid inside Discography */
.artist-discography .videos-grid,
.artist-discography .videos-grid--no-stretch {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px 16px;
  padding: 0;
}
@media (max-width: 900px) {
  .artist-discography .videos-grid,
  .artist-discography .videos-grid--no-stretch { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .artist-discography .videos-grid,
  .artist-discography .videos-grid--no-stretch { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ARTIST VIDZ (portrait 9:16 cards)
   ═══════════════════════════════════════════════════════════════════════════ */
.artist-vidz {
  padding: var(--ap-section-pad) 0;
  background: #fff;
}

.artist-vidz .videos-section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--color-text, #1a1a1a);
  margin-bottom: 20px;
  letter-spacing: -.01em;
}

/* Remove left/right padding the global vidz row may add */
.artist-vidz .vidz-shorts-row { padding: 0; }

/* Keep source badges visible inside artist page */
.artist-vidz .vidz-source-badge,
.artist-vidz .vidz-source-badge--vidz,
.artist-vidz .vidz-source-badge--clip { display: inline-flex !important; }

/* ═══════════════════════════════════════════════════════════════════════════
   UPCOMING EVENTS
   ═══════════════════════════════════════════════════════════════════════════ */
.artist-events {
  padding: var(--ap-section-pad) 0;
  background: var(--color-bg-light, #f5f5f5);
}

.artist-events .events-list {
  margin-top: var(--space-6, 1.5rem);
}

.artist-events .text-muted {
  margin-top: var(--space-4, 1rem);
}

/* ═══════════════════════════════════════════════════════════════════════════
   FANS ALSO WATCH
   ═══════════════════════════════════════════════════════════════════════════ */
.artist-fans-also-watch {
  padding: var(--ap-section-pad) 0;
  background: #fff;
}

.artist-fans-also-watch .vidz-short-card-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 1.5rem;
}

@media (max-width: 900px) {
  .artist-fans-also-watch .vidz-short-card-row {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 600px) {
  .artist-fans-also-watch .vidz-short-card-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}
@media (max-width: 380px) {
  .artist-fans-also-watch .vidz-short-card-row {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   RELATED ARTISTS RAIL
   ═══════════════════════════════════════════════════════════════════════════ */
.artist-related-rail {
  padding: var(--ap-section-pad) 0;
  background: var(--color-bg-light, #f5f5f5);
}

.artist-related__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 1.5rem;
}

.artist-related__card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.artist-related__photo-link {
  display: block;
  text-decoration: none;
}

.artist-related__photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 8px;
  border: 2.5px solid var(--color-border, #e0e0e0);
  transition: border-color .18s, transform .18s;
}
.artist-related__card:hover .artist-related__photo {
  border-color: var(--color-accent);
  transform: scale(1.05);
}

.artist-related__photo-placeholder {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--color-bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  border: 2.5px solid var(--color-border);
  color: var(--color-text-muted);
}

.artist-related__info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.artist-related__name {
  display: block;
  font-weight: 700;
  font-size: .875rem;
  color: var(--color-text);
  text-decoration: none;
}
.artist-related__name:hover { color: var(--color-accent); }

.artist-related__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
}

.artist-related__tag {
  font-size: .63rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  background: rgba(0,0,0,.05);
  color: var(--color-text-muted);
  padding: 2px 7px;
  border-radius: 99px;
  border: 1px solid var(--color-border);
}

/* Small follow button — used in related rail */
.artist-follow-btn--sm {
  padding: 5px 14px;
  font-size: .75rem;
  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 .18s, color .18s;
  display: inline-flex;
  align-items: center;
  line-height: 1;
  white-space: nowrap;
}
.artist-follow-btn--sm:hover {
  background: var(--color-accent);
  color: #fff;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE — HERO
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .artist-hero__banner { min-height: 180px; }
  .artist-hero__photo,
  .artist-hero__photo-placeholder {
    width: 90px;
    height: 90px;
  }
  .artist-hero__photo-wrap { margin-top: -45px; }
  .artist-hero__name {
    font-size: 1.25rem;
    gap: 8px;
  }
  .artist-hero__stats-inner { gap: 20px; }

  /* Discography */
  .discog-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .artist-discography .streaming-icons {
    flex-wrap: wrap !important;
    gap: 3px !important;
    overflow: visible !important;
  }
  .artist-discography .streaming-icons a {
    width: 22px !important;
    height: 22px !important;
    border-radius: 50% !important;
    flex-shrink: 0 !important;
  }

  /* Related artists */
  .artist-related__grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 480px) {
  .discog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
  .artist-related__grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .artist-hero__follow-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}
