/* Artist detail redesign — Mifa dark + amber gold */
.artist-page {
  --ap-gold: #f5c518;
  --ap-amber: #ff9f1a;
  --ap-ink: #0b0b10;
  --ap-panel: rgba(22, 22, 30, 0.88);
  --ap-line: rgba(245, 197, 24, 0.28);
  --ap-muted: #9aa0b4;
  --ap-soft: rgba(255, 255, 255, 0.06);
  position: relative;
}

.artist-page .wp-block-media-text img,
.artist-page .has-luminous-dusk-gradient-background a {
  display: none !important;
}

/* Hero */
.artist-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 22px;
  min-height: 280px;
  margin-bottom: 1.25rem;
  background: #12121a;
  animation: artistFadeUp 0.7s ease both;
}

.artist-hero__bg {
  position: absolute;
  inset: -20px;
  background-size: cover;
  background-position: center top;
  filter: blur(28px) saturate(1.15);
  transform: scale(1.12);
  opacity: 0.45;
  z-index: 0;
}

.artist-hero__wash {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(115deg, rgba(11, 11, 16, 0.92) 8%, rgba(11, 11, 16, 0.55) 48%, rgba(245, 197, 24, 0.12) 100%),
    linear-gradient(0deg, rgba(11, 11, 16, 0.85) 0%, transparent 55%);
}

.artist-hero__grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.07;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.artist-hero__inner {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 1.75rem;
  align-items: flex-end;
  padding: 1.5rem 1.35rem 1.4rem;
}

.artist-hero__portrait {
  width: 148px;
  height: 148px;
  border-radius: 28px;
  object-fit: cover;
  box-shadow:
    0 0 0 3px rgba(245, 197, 24, 0.55),
    0 18px 40px rgba(0, 0, 0, 0.55);
  background: #1a1a24;
  animation: artistPortraitIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
  transition: transform 0.35s ease;
}

.artist-hero__portrait:hover {
  transform: scale(1.03) rotate(-1deg);
}

.artist-hero__meta {
  flex: 1 1 220px;
  min-width: 0;
}

.artist-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--ap-gold);
  margin-bottom: 0.45rem;
  font-weight: 600;
}

.artist-hero__eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: linear-gradient(90deg, var(--ap-gold), transparent);
  border-radius: 2px;
}

.artist-hero__name {
  margin: 0;
  font-size: clamp(1.55rem, 4.2vw, 2.35rem);
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.artist-hero__name-en {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ap-muted);
  letter-spacing: 0.02em;
}

.artist-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.artist-stat {
  display: inline-flex;
  flex-direction: column;
  min-width: 72px;
  padding: 0.45rem 0.7rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--ap-line);
  backdrop-filter: blur(8px);
}

.artist-stat__n {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ap-gold);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.artist-stat__l {
  font-size: 0.68rem;
  color: var(--ap-muted);
  margin-top: 0.15rem;
}

.artist-hero__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.95rem;
}

.artist-social {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none !important;
}

.artist-social:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
  color: #fff !important;
}

.artist-social svg {
  display: block;
  width: 18px;
  height: 18px;
}

.artist-social--ig { background: linear-gradient(135deg, #833ab4, #fd1d1d 70%, #fcb045); }
.artist-social--tg { background: #229ed9; }
.artist-social--yt { background: #ff0000; }
.artist-social--sp { background: #1db954; }
.artist-social--sc { background: #ff5500; }

/* Breadcrumb */
.artist-crumb {
  margin-bottom: 1rem;
  font-size: 0.9rem;
  animation: artistFadeUp 0.55s ease 0.08s both;
}

.artist-crumb a { color: var(--ap-gold) !important; }
.artist-crumb .sep { color: #666; margin: 0 0.45rem; }
.artist-crumb .cur { color: #cfcfd8; }

/* Tabs */
.artist-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.4rem;
  margin-bottom: 1.1rem;
  border-radius: 16px;
  background: rgba(18, 18, 26, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.06);
  animation: artistFadeUp 0.6s ease 0.12s both;
  position: sticky;
  top: 72px;
  z-index: 20;
}

.artist-tabs .show-artist {
  border: 0 !important;
  border-radius: 12px !important;
  padding: 0.55rem 0.95rem !important;
  font-weight: 700 !important;
  font-size: 0.86rem !important;
  background: transparent !important;
  color: var(--ap-muted) !important;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.artist-tabs .show-artist:hover {
  color: #fff !important;
  background: var(--ap-soft) !important;
}

.artist-tabs .show-artist.is-active,
.artist-tabs .show-artist.btn-dark {
  background: linear-gradient(135deg, var(--ap-amber), var(--ap-gold)) !important;
  color: #1a1200 !important;
  box-shadow: 0 6px 16px rgba(245, 197, 24, 0.28);
}

/* Panels */
.artist-card {
  border-radius: 18px !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  background: var(--ap-panel) !important;
  overflow: hidden;
  animation: artistFadeUp 0.65s ease 0.16s both;
}

.artist-card .card-header {
  background: transparent !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  padding: 1rem 1.25rem !important;
}

.artist-section-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff !important;
}

.artist-section-title__icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 197, 24, 0.14);
  color: var(--ap-gold);
}

/* Long grids: internal scroll so page sections stay reachable (desktop + mobile) */
#artist-music .card-body,
#artist-album .card-body,
#artist-videos .card-body {
  max-height: min(70vh, 640px);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 179, 71, 0.5) rgba(255, 255, 255, 0.06);
}
#artist-music .card-body::-webkit-scrollbar,
#artist-album .card-body::-webkit-scrollbar,
#artist-videos .card-body::-webkit-scrollbar { width: 6px; }
#artist-music .card-body::-webkit-scrollbar-thumb,
#artist-album .card-body::-webkit-scrollbar-thumb,
#artist-videos .card-body::-webkit-scrollbar-thumb {
  background: rgba(255, 179, 71, 0.5);
  border-radius: 999px;
}

.artist-bio {
  position: relative;
  padding: 0.25rem 0 0.5rem;
}

.artist-bio__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ap-gold);
  margin-bottom: 0.75rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(245, 197, 24, 0.12);
  border: 1px solid var(--ap-line);
}

.artist-bio__body {
  font-size: 1.02rem;
  line-height: 2;
  text-align: justify;
  color: #d8dae3;
}

.artist-bio__body img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  margin: 0.75rem 0;
}

.artist-bio__empty {
  color: var(--ap-muted);
  font-size: 0.95rem;
  padding: 1rem;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
}

/* Player rail */
.artist-player-card {
  border-radius: 18px !important;
  border: 1px solid rgba(245, 197, 24, 0.18) !important;
  background: linear-gradient(180deg, #17171f 0%, #101018 100%) !important;
  overflow: hidden;
  position: sticky;
  top: 88px;
  animation: artistFadeUp 0.7s ease 0.2s both;
}

.artist-player-card .player-image {
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.artist-player-card .progress-bar-wrapper {
  background: linear-gradient(90deg, var(--ap-amber), var(--ap-gold)) !important;
}

/* Empty states */
.artist-empty {
  color: var(--ap-muted);
  text-align: center;
  padding: 1.5rem 1rem;
  margin: 0;
  font-size: 0.95rem;
}

@keyframes artistFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes artistPortraitIn {
  from { opacity: 0; transform: scale(0.88) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@media (max-width: 991.98px) {
  .artist-hero__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.35rem 1rem 1.25rem;
  }
  .artist-hero__portrait {
    width: 132px;
    height: 132px;
  }
  .artist-hero__stats,
  .artist-hero__socials {
    justify-content: center;
  }
  .artist-tabs {
    top: 64px;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .artist-tabs::-webkit-scrollbar { display: none; }
  #artist-music .card-body,
  #artist-album .card-body,
  #artist-videos .card-body {
    max-height: min(62vh, 520px);
  }

  .artist-tabs .show-artist {
    white-space: nowrap;
    flex: 0 0 auto;
  }
  .artist-player-card {
    position: static;
  }
}


/* Artist left playlist — open song/album page */
.artist-tracklist .artist-track {
  border: 1px solid transparent !important;
  border-radius: 12px !important;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.artist-tracklist .artist-track:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(245, 197, 24, 0.2) !important;
}
.artist-tracklist .artist-track.is-active,
.artist-tracklist .artist-track.bg-dark {
  background: rgba(245, 197, 24, 0.1) !important;
  border-color: rgba(245, 197, 24, 0.35) !important;
}
.artist-track__title {
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.35;
}
.artist-track__artist {
  color: rgba(255, 255, 255, 0.62);
  font-size: 11.5px;
  margin-top: 2px;
}
.artist-track__open {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-right: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 153, 20, 0.16);
  border: 1px solid rgba(255, 153, 20, 0.45);
  color: #ffb347 !important;
  text-decoration: none !important;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.artist-track__open:hover {
  background: rgba(255, 153, 20, 0.32);
  color: #fff !important;
  border-color: rgba(255, 153, 20, 0.75);
}
.artist-track__open svg {
  display: block;
  flex: 0 0 auto;
}
@media (max-width: 575.98px) {
  .artist-track__open-text {
    display: none;
  }
  .artist-track__open {
    padding: 8px;
    border-radius: 10px;
  }
}
