.artist-detail-page {
  padding-bottom: 40px;
}

.artist-detail-wrap {
  max-width: 1200px;
}

.artist-detail-back {
  font-weight: 600;
  text-decoration: none;
}

.artist-hero-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 28px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.06);
  padding: 28px;
}

.artist-hero-card__content {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}

.artist-hero-card__identity {
  flex: 0 0 auto;
}

.artist-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
}

.artist-hero-card__main {
  min-width: 0;
  flex: 1 1 auto;
}

.artist-hero-card__eyebrow {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  margin-bottom: 10px;
}

.artist-hero-card__title {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.03em;
  margin: 0;
}

.artist-hero-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.artist-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid rgba(37, 99, 235, 0.12);
}

.artist-hero-card__bio {
  max-width: 760px;
  color: #475569;
  font-size: 1rem;
  line-height: 1.7;
}

.artist-hero-card__stats {
  width: 260px;
  flex: 0 0 260px;
  display: grid;
  gap: 14px;
}

.artist-hero-stat {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 22px;
  background: #ffffff;
  padding: 16px 18px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.artist-hero-stat__label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  margin-bottom: 8px;
}

.artist-hero-stat__value {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.artist-hero-stat__value--small {
  font-size: 0.95rem;
  word-break: break-word;
}

.artist-harmonic-panel {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.06);
  padding: 24px;
}

.artist-harmonic-overview .row {
  margin-left: -8px;
  margin-right: -8px;
}

.artist-harmonic-overview .row > * {
  padding-left: 8px;
  padding-right: 8px;
}

.artist-harmonic-stat {
  height: 100%;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  padding: 18px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.artist-harmonic-stat__label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  margin-bottom: 8px;
}

.artist-harmonic-stat__value {
  font-size: 1.65rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.15;
}

.artist-harmonic-box {
  height: 100%;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 24px;
  background: #ffffff;
  padding: 18px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.artist-harmonic-box__title {
  font-size: 0.98rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 14px;
}

.artist-harmonic-box__hint {
  margin: 0 0 12px;
  font-size: 0.82rem;
  color: #64748b;
}

.artist-harmonic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.artist-harmonic-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  background: #f8fafc;
  color: #334155;
  border: 1px solid rgba(15, 23, 42, 0.08);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1;
}

.artist-harmonic-tag strong {
  font-weight: 800;
  color: #0f172a;
}

.artist-harmonic-tag--filter {
  cursor: pointer;
  transition: all 0.18s ease;
}

.artist-harmonic-tag--filter:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, 0.24);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.artist-harmonic-tag--filter.is-active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.artist-harmonic-tag--filter.is-active strong {
  color: #ffffff;
}

.artist-harmonic-tag--static {
  cursor: default;
}

.artist-harmonic-patterns {
  display: none !important;
}

.artist-harmonic-pattern-bars {
  width: 100%;
}

.artist-harmonic-pattern-bars__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.artist-harmonic-pattern-bar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  min-width: 0;
  text-align: left;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: #ffffff;
  padding: 12px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.artist-harmonic-pattern-bar:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, 0.18);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.artist-harmonic-pattern-bar.is-active {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.08);
}

.artist-harmonic-pattern-bar__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.artist-harmonic-pattern-bar__name {
  min-width: 0;
  flex: 1 1 auto;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.25;
  color: #0f172a;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.artist-harmonic-pattern-bar__count {
  flex: 0 0 auto;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: #e5e7eb;
  color: #0f172a;
  font-size: 0.76rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.artist-harmonic-pattern-bar__track {
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: #eef2f7;
  overflow: hidden;
}

.artist-harmonic-pattern-bar__fill {
  display: block;
  width: var(--bar-width, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #93c5fd 0%, #3b82f6 100%);
}

.artist-harmonic-pattern-bar.is-active .artist-harmonic-pattern-bar__count {
  background: #0f172a;
  color: #ffffff;
}

.artist-harmonic-pattern-bar.is-active .artist-harmonic-pattern-bar__fill {
  background: linear-gradient(90deg, #1d4ed8 0%, #0f172a 100%);
}

.artist-harmonic-songmap__top {
  margin-bottom: 16px;
}

.artist-harmonic-pattern-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.artist-harmonic-mode-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.artist-harmonic-mode-filter {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  background: #fff;
  color: #0f172a;
  padding: 8px 12px;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: all 0.18s ease;
}

.artist-harmonic-mode-filter:hover {
  border-color: rgba(37, 99, 235, 0.24);
  color: #1d4ed8;
}

.artist-harmonic-mode-filter.is-active {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
}

.artist-harmonic-clear-btn {
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 999px;
  background: #ffffff;
  color: #0f172a;
  padding: 8px 14px;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1;
  transition: all 0.18s ease;
}

.artist-harmonic-clear-btn:hover {
  border-color: rgba(37, 99, 235, 0.24);
  color: #1d4ed8;
  background: #f8fbff;
}

.artist-harmonic-clear-btn.is-disabled,
.artist-harmonic-clear-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.artist-harmonic-song-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.artist-harmonic-song-card {
  display: block;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 22px;
  background: #ffffff;
  padding: 16px;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.artist-harmonic-song-card:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.24);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
  text-decoration: none;
}

.artist-harmonic-song-card__title {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.35;
  color: #0f172a;
  margin-bottom: 8px;
}

.artist-harmonic-song-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.84rem;
  color: #64748b;
  margin-bottom: 10px;
}

.artist-harmonic-song-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.artist-harmonic-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 10px;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid rgba(37, 99, 235, 0.12);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.2;
}

.artist-harmonic-song-card__cta-wrap {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.artist-harmonic-song-card__cta {
  font-size: 0.88rem;
  font-weight: 800;
  color: #1d4ed8;
}

.artist-harmonic-song-card__cta-note {
  font-size: 0.78rem;
  color: #64748b;
}

.artist-song-section {
  margin-top: 8px;
}

.artist-song-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}

.artist-song-card__body {
  padding: 18px;
}

.artist-song-card__title {
  font-size: 1.05rem;
  line-height: 1.35;
  font-weight: 800;
}

.artist-song-card__link {
  color: #0f172a;
  text-decoration: none;
}

.artist-song-card__link:hover {
  color: #1d4ed8;
}

.artist-song-card__genre {
  color: #64748b;
  font-weight: 600;
  text-decoration: none;
}

.artist-song-card__genre:hover {
  color: #1d4ed8;
}

.artist-song-card__genre--muted {
  color: #94a3b8;
}

.artist-song-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.artist-song-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  background: #f8fafc;
  color: #334155;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.artist-song-card__excerpt {
  font-size: 0.94rem;
  line-height: 1.65;
  color: #475569;
}

.artist-song-card__excerpt--muted {
  color: #94a3b8;
}

.artist-song-card__actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.artist-song-card__cta {
  font-size: 0.9rem;
  font-weight: 800;
  color: #1d4ed8;
  text-decoration: none;
}

.artist-song-card__cta:hover {
  color: #1e40af;
}

.artist-song-card__cta-note {
  font-size: 0.8rem;
  color: #64748b;
}

.artist-empty-card {
  border: 1px dashed rgba(15, 23, 42, 0.12);
  border-radius: 22px;
  background: #f8fafc;
  color: #64748b;
  padding: 20px;
}

@media (max-width: 1199.98px) {
  .artist-harmonic-pattern-bars__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .artist-hero-card__content {
    flex-direction: column;
  }

  .artist-hero-card__stats {
    width: 100%;
    flex: 1 1 auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .artist-harmonic-song-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .artist-harmonic-pattern-bars__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .artist-hero-card,
  .artist-harmonic-panel {
    padding: 18px;
    border-radius: 22px;
  }

  .artist-avatar {
    width: 68px;
    height: 68px;
    font-size: 1.6rem;
  }

  .artist-hero-card__stats {
    grid-template-columns: 1fr;
  }

  .artist-harmonic-song-grid {
    grid-template-columns: 1fr;
  }

  .artist-harmonic-tags,
  .artist-song-card__chips {
    gap: 8px;
  }

  .artist-harmonic-pattern-head {
    flex-direction: column;
    align-items: stretch;
  }

  .artist-harmonic-clear-btn,
  .js-artist-harmonic-clear-filters {
    width: fit-content;
  }

  .artist-song-card__actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 575.98px) {
  .artist-harmonic-panel {
    padding: 16px;
  }

  .artist-harmonic-box {
    padding: 16px;
    border-radius: 20px;
  }

  .artist-harmonic-pattern-bars__grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .artist-harmonic-pattern-bar {
    padding: 10px;
    border-radius: 14px;
    gap: 7px;
  }

  .artist-harmonic-pattern-bar__name {
    font-size: 0.88rem;
    line-height: 1.2;
  }

  .artist-harmonic-pattern-bar__count {
    min-width: 22px;
    height: 22px;
    font-size: 0.72rem;
    padding: 0 6px;
  }

  .artist-harmonic-pattern-bar__track {
    height: 4px;
  }
}