/**
 * [아티스트 상세]
 * - 역할: 공개 작가 프로필·탭·작품·경력의 단일 스타일 출처
 * - 작성/수정일: 2026-09-24
 */

/* =========================================================
 * [작가 상세 프로필]
 * - 역할: sticky 레일 + 탭 패널 (소개/작품/전시/경력)
 * - 작성/수정일: 2026-08-08
 * ========================================================= */
.an-ar-profile {
  color: var(--title-color, #171717);
}

/* [상세 프로필 공통 폭] 역할: 아티스트 레일을 갤러리 상세와 동일한 260~300px 규격으로 구성 · 작성/수정일: 2026-09-24 */
.an-ar-profile__layout {
  display: grid;
  grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
  gap: clamp(32px, 3.8vw, 56px);
  align-items: start;
}

.an-ar-profile__rail {
  position: sticky;
  top: 100px;
}

.an-ar-profile__identity {
  text-align: left;
}

.an-ar-profile__avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--light-color, #f5f5f5);
  border: 1px solid var(--border-color, #e5e5e5);
  margin-bottom: var(--space-20, 20px);
}

/* [작가 썸네일] 역할: 버튼 기본 스타일을 걷고 확대 커서를 준다 — 작성/수정일: 2026-10-01 */
button.an-ar-profile__avatar {
  display: block;
  padding: 0;
  cursor: zoom-in;
  font: inherit;
  color: inherit;
  appearance: none;
}

.an-ar-profile__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.an-ar-profile__avatar-fallback {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  font-weight: 700;
  color: var(--muted-color, #7c7c7c);
}

.an-ar-profile__name {
  margin: 0;
  font-size: var(--fs-h4, 24px);
  font-weight: 700;
  letter-spacing: var(--letter-tight, -0.02em);
  line-height: 1.3;
}

.an-ar-profile__name-en {
  margin: 6px 0 0;
  font-size: var(--fs-body, 15px);
  font-style: italic;
  color: var(--muted-color, #7c7c7c);
}

.an-ar-profile__meta {
  margin: 10px 0 0;
  font-size: var(--fs-caption, 12px);
  color: var(--muted-color, #7c7c7c);
}

.an-ar-profile__tagline {
  margin: 14px 0 0;
  font-size: var(--fs-body, 15px);
  line-height: 1.6;
  color: var(--text-color, #444);
}

.an-ar-profile__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: var(--space-25, 24px) 0 0;
  padding: 14px 0;
  border-top: 1px solid var(--border-color, #e5e5e5);
  border-bottom: 1px solid var(--border-color, #e5e5e5);
}

.an-ar-profile__stats div {
  text-align: center;
}

.an-ar-profile__stats dt {
  margin: 0;
  font-size: var(--fs-xs, 11px);
  color: var(--muted-color, #7c7c7c);
}

.an-ar-profile__stats dd {
  margin: 4px 0 0;
  font-size: var(--fs-label, 14px);
  font-weight: 700;
}

.an-ar-profile__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: var(--space-25, 24px);
}

/* [아티스트 액션] 갤러리 an-gl-action과 동일 — 작성/수정일: 2026-08-16 */
.an-ar-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-sm, 6px);
  font-family: inherit;
  font-size: var(--fs-label, 14px);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    opacity 0.2s ease;
}

.an-ar-action i {
  font-size: 16px;
  line-height: 1;
}

.an-ar-action--follow {
  border: 1px solid var(--primary-color, #171717);
  background: var(--primary-color, #171717);
  color: var(--white-color, #fff);
}

.an-ar-action--follow:hover {
  opacity: 0.88;
}

.an-ar-action--follow.is-on {
  background: transparent;
  color: var(--title-color, #171717);
  border-color: var(--border-color, #eeeeee);
}

.an-ar-action--share {
  border: 1px solid var(--border-color, #eeeeee);
  background: var(--surface-color, #fff);
  color: var(--title-color, #171717);
}

.an-ar-action--share:hover {
  background: var(--chip-color, #f2f2f2);
}

.an-ar-action--share.is-liked,
.an-ar-action--share.is-active {
  background: var(--surface-color, #fff);
  border-color: var(--border-color, #eeeeee);
  color: var(--title-color, #171717);
}

html.dark .an-ar-action--follow,
body.dark .an-ar-action--follow {
  background: var(--cta-surface, #2a2a2a);
  border-color: var(--border-color, #333);
  color: var(--on-dark, #f5f5f5);
}

html.dark .an-ar-action--follow.is-on,
body.dark .an-ar-action--follow.is-on {
  background: transparent;
  color: var(--title-color, #f5f5f5);
}

html.dark .an-ar-action--share,
body.dark .an-ar-action--share {
  background: var(--surface-color, #1c1c1c);
  border-color: var(--border-color, #333);
  color: var(--title-color, #f5f5f5);
}

html.dark .an-ar-action--share.is-liked,
html.dark .an-ar-action--share.is-active,
body.dark .an-ar-action--share.is-liked,
body.dark .an-ar-action--share.is-active {
  background: var(--surface-color, #1c1c1c);
  border-color: var(--border-color, #333);
  color: var(--title-color, #f5f5f5);
}

.an-ar-profile__manage {
  position: relative;
  margin-top: 16px;
}

.an-ar-profile__manage-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-color, #e5e5e5);
  border-radius: var(--radius-sm, 6px);
  background: transparent;
  color: var(--title-color, #171717);
  cursor: pointer;
}

.an-ar-profile__manage-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 5;
  min-width: 120px;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: var(--white-color, #fff);
  border: 1px solid var(--border-color, #e5e5e5);
  border-radius: var(--radius-sm, 6px);
  box-shadow: var(--shadow-md, 0 8px 24px rgba(0, 0, 0, 0.08));
}

.an-ar-profile__manage-menu a {
  display: block;
  padding: 8px 14px;
  color: var(--title-color, #171717);
  text-decoration: none;
  font-size: var(--fs-label, 14px);
}

.an-ar-profile__manage-menu a:hover {
  background: var(--light-color, #f5f5f5);
}

.an-ar-profile__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin-bottom: var(--space-30, 30px);
  border-bottom: 1px solid var(--border-color, #e5e5e5);
}

.an-ar-profile__tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 2px 14px;
  color: var(--muted-color, #7c7c7c);
  text-decoration: none;
  font-size: var(--fs-label, 14px);
  font-weight: 600;
}

.an-ar-profile__tab.is-active {
  color: var(--title-color, #171717);
}

.an-ar-profile__tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--title-color, #171717);
}

.an-ar-profile__tab-count {
  font-size: var(--fs-xs, 11px);
  font-weight: 500;
  color: var(--muted-color, #7c7c7c);
}

.an-ar-profile__hero {
  margin: 0 0 var(--space-30, 30px);
  border-radius: var(--radius-md, 10px);
  overflow: hidden;
  background: var(--light-color, #f5f5f5);
}

.an-ar-profile__hero img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
}

.an-ar-profile__block {
  margin-bottom: var(--space-40, 40px);
}

.an-ar-profile__block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.an-ar-profile__block-head .an-ar-profile__block-title {
  margin: 0;
}

.an-ar-profile__block-head a {
  font-size: var(--fs-caption, 12px);
  color: var(--muted-color, #7c7c7c);
  text-decoration: none;
}

.an-ar-profile__block-head a:hover {
  color: var(--title-color, #171717);
}

.an-ar-profile__block-title {
  margin: 0 0 14px;
  font-size: var(--fs-h5, 18px);
  font-weight: 700;
  letter-spacing: var(--letter-tight, -0.02em);
}

/* [작가소개] gurumi 본문(.g5-gurumi-view)은 에디터 CSS가 전담 — 스킨 타이포 제외 — 작성/수정일: 2026-08-12 */
.an-ar-profile__prose:not(.g5-gurumi-view) {
  font-size: var(--fs-body, 15px);
  line-height: 1.75;
  color: var(--text-color, #444);
}

.an-ar-profile__prose:not(.g5-gurumi-view) img {
  max-width: 100%;
  height: auto;
}

.an-ar-profile__empty {
  margin: 0;
  color: var(--muted-color, #7c7c7c);
  font-size: var(--fs-body, 15px);
}

/* [아티스트 키워드] 역할: 칩 대신 #장르, #장르 한 줄 — 작성/수정일: 2026-10-01 */
.an-ar-profile__keywords {
  margin: 0;
  font-size: var(--fs-body, 15px);
  line-height: 1.6;
  color: var(--text-color, #444);
}

.an-ar-profile__works-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.an-ar-profile__works-grid.is-full {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.an-ar-profile__work {
  display: block;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.an-ar-profile__work-thumb {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--light-color, #f5f5f5);
  border-radius: var(--radius-sm, 6px);
}

.an-ar-profile__work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.an-ar-profile__work:hover .an-ar-profile__work-thumb img {
  transform: scale(1.03);
}

.an-ar-profile__work-title {
  display: block;
  margin-top: 10px;
  font-size: var(--fs-label, 14px);
  font-weight: 600;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.an-ar-profile__work-meta {
  display: block;
  margin-top: 4px;
  font-size: var(--fs-caption, 12px);
  color: var(--muted-color, #7c7c7c);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.an-ar-profile__ex-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.an-ar-profile__ex-list li + li {
  border-top: 1px solid var(--border-color, #e5e5e5);
}

.an-ar-profile__ex-list a {
  display: grid;
  gap: 4px;
  padding: 16px 0;
  color: inherit;
  text-decoration: none;
}

.an-ar-profile__ex-list a:hover strong {
  text-decoration: underline;
}

.an-ar-profile__ex-status {
  display: inline-block;
  width: fit-content;
  padding: 2px 8px;
  font-size: var(--fs-xs, 11px);
  font-weight: 600;
  border-radius: 4px;
  background: var(--light-color, #f5f5f5);
  color: var(--muted-color, #7c7c7c);
}

.an-ar-profile__ex-status.is-ongoing {
  background: rgba(23, 23, 23, 0.08);
  color: var(--title-color, #171717);
}

.an-ar-profile__ex-status.is-upcoming {
  background: rgba(23, 23, 23, 0.04);
}

.an-ar-profile__ex-meta {
  font-size: var(--fs-caption, 12px);
  color: var(--muted-color, #7c7c7c);
}

.an-ar-profile__career-sec {
  margin-bottom: var(--space-25, 24px);
}

.an-ar-profile__career-sec h3 {
  margin: 0 0 8px;
  font-size: var(--fs-label, 14px);
  font-weight: 700;
}

.an-ar-profile__career-sec.is-full {
  margin-bottom: var(--space-40, 40px);
}

.an-ar-profile__career-sec ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.an-ar-profile__career-sec li {
  position: relative;
  padding: 6px 0 6px 14px;
  font-size: var(--fs-body, 15px);
  line-height: 1.55;
  color: var(--text-color, #444);
}

.an-ar-profile__career-sec li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--muted-color, #7c7c7c);
}

.an-ar-profile__cta {
  margin-top: var(--space-25, 24px);
  padding-top: 0;
  border-top: 0;
}

/* [프로필 CTA]
 * - 역할: intro 하단 아트워크 유도 카드
 * - 작성/수정일: 2026-09-01
 */
.an-ar-profile__cta-inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px 22px;
  border: 1px solid var(--border-color, #eee);
  border-radius: var(--radius-lg, 12px);
  background: linear-gradient(
    180deg,
    rgba(249, 249, 249, 0.95) 0%,
    var(--surface-color, #fff) 100%
  );
}

.an-ar-profile__cta-copy {
  min-width: 0;
}

.an-ar-profile__cta-eyebrow {
  margin: 0 0 8px;
  font-size: var(--fs-xs, 11px);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-color, #7c7c7c);
}

.an-ar-profile__cta-title {
  margin: 0;
  font-size: var(--fs-h6, 18px);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.02em;
  color: var(--title-color, #171717);
  word-break: keep-all;
}

.an-ar-profile__cta-meta {
  margin: 8px 0 0;
  font-size: var(--fs-caption, 13px);
  line-height: 1.5;
  color: var(--muted-color, #7c7c7c);
}

.an-ar-profile__cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.an-ar-profile__cta-actions .an-ar-profile__cta-btn {
  gap: var(--space-6, 6px);
  min-height: 44px;
  padding: 11px 16px;
  font-size: var(--fs-label, 14px);
}

.an-ar-profile__cta-actions .secondary-btn.an-ar-profile__cta-btn {
  border-color: var(--border-color, #e5e5e5);
  color: var(--text-color, #444);
}

.an-ar-profile__cta-actions .secondary-btn.an-ar-profile__cta-btn:hover,
.an-ar-profile__cta-actions
  .secondary-btn.an-ar-profile__cta-btn:focus-visible {
  border-color: var(--primary-color, #171717);
  background-color: var(--primary-color, #171717);
  color: var(--white-color, #fff);
}

.an-ar-profile__cta-actions i {
  font-size: var(--fs-label, 14px);
  line-height: 1;
}

@media (min-width: 768px) {
  .an-ar-profile__cta-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 24px 28px;
  }

  .an-ar-profile__cta-actions {
    flex: 0 0 auto;
    justify-content: flex-end;
  }
}

/* [작품 무한스크롤]
 * - 역할: 더보기 + 센티널
 * - 작성/수정일: 2026-08-08
 */
.an-ar-profile__works-more {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: var(--space-30, 30px);
}

.an-ar-profile__works-status {
  margin: 0;
  font-size: var(--fs-caption, 12px);
  color: var(--muted-color, #7c7c7c);
}

.an-ar-profile__works-sentinel {
  width: 100%;
  height: 1px;
  pointer-events: none;
}

html.dark .an-ar-profile__avatar,
body.dark .an-ar-profile__avatar,
html.dark .an-ar-profile__manage-btn,
body.dark .an-ar-profile__manage-btn,
html.dark .an-ar-profile__manage-menu,
body.dark .an-ar-profile__manage-menu {
  border-color: var(--border-color, #333);
}

html.dark .an-ar-profile__manage-menu,
body.dark .an-ar-profile__manage-menu {
  background: var(--white-color, #1a1a1a);
}

/* [프로필 CTA]
 * - 역할: 다크모드에서 CTA 카드 배경(그라데이션) 제거
 * - 작성/수정일: 2026-09-02
 */
html.dark .an-ar-profile__cta-inner,
body.dark .an-ar-profile__cta-inner {
  background: none;
}

@media (max-width: 991.98px) {
  .an-ar-profile__layout {
    grid-template-columns: 1fr;
    gap: var(--space-30, 30px);
  }

  .an-ar-profile__rail {
    position: static;
  }

  .an-ar-profile__identity {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    column-gap: 16px;
    align-items: center;
  }

  .an-ar-profile__avatar {
    width: 88px;
    height: 88px;
    margin: 0;
    grid-row: 1 / span 3;
  }

  .an-ar-profile__name {
    font-size: var(--fs-h5, 18px);
  }

  .an-ar-profile__stats {
    margin-top: 18px;
  }

  .an-ar-profile__actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .an-ar-profile__actions .an-ar-action {
    width: auto;
    flex: 1 1 calc(50% - 5px);
  }

  .an-ar-profile__works-grid,
  .an-ar-profile__works-grid.is-full {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .an-ar-profile__tabs {
    gap: 4px 14px;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .an-ar-profile__tab {
    white-space: nowrap;
  }

  .an-ar-profile__actions .an-ar-action {
    flex: 1 1 100%;
  }

  .an-ar-profile__cta-inner {
    gap: 16px;
    padding: 18px 16px;
  }

  .an-ar-profile__cta-title {
    font-size: var(--fs-body, 16px);
  }

  .an-ar-profile__cta-actions {
    flex-direction: column;
    width: 100%;
  }

  .an-ar-profile__cta-actions .an-ar-profile__cta-btn {
    width: 100%;
  }
}

/* =========================================================
 * [아티스트 상세 디자인 개선]
 * - 역할: 프로필 위계·개요/작가소개·작품·경력·반응형 레이아웃 재구성
 * - 작성/수정일: 2026-09-24
 * ========================================================= */
/* [아티스트 프로필 카드] 역할: 정체성·통계·액션을 하나의 안정적인 sticky 레일로 구성 · 작성/수정일: 2026-09-24 */
.an-ar-profile__rail {
  padding: 42px 22px;
  border: 1px solid var(--border-color, #e5e5e5);
  border-radius: var(--radius-lg, 12px);
  background: var(--surface-color, #fff);
}

.an-ar-profile__avatar {
  width: 104px;
  height: 104px;
  margin-bottom: 18px;
}

.an-ar-profile__tagline {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.an-ar-profile__stats {
  margin-top: 20px;
}

.an-ar-profile__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 20px;
}

.an-ar-profile__actions .an-ar-action {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding-inline: 10px;
  font-size: var(--fs-caption, 12px);
}

.an-ar-profile__actions .an-ar-action--follow {
  grid-column: 1 / -1;
}

.an-ar-action__count {
  margin-left: 2px;
  font: inherit;
}

.an-ar-profile__back:focus-visible,
.an-ar-profile__tab:focus-visible,
.an-ar-profile__work:focus-visible,
.an-ar-profile__summary-link:focus-visible {
  outline: 2px solid var(--title-color, #171717);
  outline-offset: 4px;
}

/* [아티스트 상세 탭] 역할: 화면 상단의 빈틈 없이 고정되어 섹션 이동 문맥을 유지 · 작성/수정일: 2026-09-24 */
.an-ar-profile__tabs {
  position: sticky;
  top: 57px;
  z-index: 4;
  margin-bottom: var(--space-30, 30px);
  padding-top: 4px;
  background: var(--surface-color, #fff);
}

/* [아티스트 대표 스테이지] 역할: 대표 작품이 카드 내부를 여백 없이 채우도록 표시 · 작성/수정일: 2026-09-24 */
.an-ar-profile__hero {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border-color, #e5e5e5);
  background: var(--section-bg-color, #f7f7f7);
}

.an-ar-profile__hero img {
  width: 100%;
  height: 100%;
  max-height: none;
  padding: 0;
  object-fit: cover;
}

/* [아티스트 개요 요약] 역할: 전체 소개를 대체하는 핵심 문장과 독립 소개 탭 진입점 제공 · 작성/수정일: 2026-09-24 */
.an-ar-profile__summary {
  padding: clamp(20px, 2.5vw, 30px);
  border: 1px solid var(--border-color, #e5e5e5);
  border-radius: var(--radius-lg, 12px);
  background: var(--surface-color, #fff);
}

.an-ar-profile__summary-eyebrow,
.an-ar-profile__statement-head p {
  margin: 0 0 8px;
  color: var(--muted-color, #7c7c7c);
  font-size: var(--fs-xs, 11px);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.an-ar-profile__summary-text {
  max-width: 720px;
  margin: 0;
  color: var(--text-color, #444);
  font-size: var(--fs-body, 15px);
  line-height: 1.8;
  word-break: keep-all;
}

.an-ar-profile__summary-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  color: var(--title-color, #171717);
  font-size: var(--fs-label, 14px);
  font-weight: 600;
  text-decoration: none;
}

.an-ar-profile__summary-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* [아티스트 작가소개] 역할: 전체 소개를 독립 문서 폭과 타이포로 표시 · 작성/수정일: 2026-09-24 */
.an-ar-profile__panel--statement {
  max-width: 820px;
}

.an-ar-profile__statement-head {
  margin-bottom: 26px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-color, #e5e5e5);
}

.an-ar-profile__statement-head h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.3;
  letter-spacing: var(--letter-tight, -0.03em);
}

.an-ar-profile__statement-body {
  color: var(--text-color, #444);
  font-size: var(--fs-body, 15px);
  line-height: 1.85;
}

.an-ar-profile__statement-body p {
  margin-block: 0 1.15em;
}

/* [아티스트 작품 카드] 역할: 4:5 스테이지에 원본 비율을 보존하고 제원 정보를 함께 제공 · 작성/수정일: 2026-09-24 */
.an-ar-profile__works-grid,
.an-ar-profile__works-grid.is-full {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 16px;
}

.an-ar-profile__work-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 5;
  padding: 8px;
  border: 1px solid var(--border-color, #e5e5e5);
  background: var(--section-bg-color, #f7f7f7);
}

.an-ar-profile__work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: none;
}

.an-ar-profile__work:hover .an-ar-profile__work-thumb img {
  transform: none;
}

.an-ar-profile__work-title {
  display: -webkit-box;
  overflow: hidden;
  text-overflow: initial;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.an-ar-profile__work-meta {
  line-height: 1.5;
  white-space: normal;
}

.an-ar-profile__work:hover .an-ar-profile__work-title {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* [아티스트 경력 카드] 역할: 경력 분류와 연도·내용을 카드형 2열 행으로 정돈 · 작성/수정일: 2026-09-24 */
.an-ar-profile__career-sec {
  margin-bottom: 20px;
  padding: 20px;
  border: 1px solid var(--border-color, #e5e5e5);
  border-radius: var(--radius-md, 10px);
  background: var(--surface-color, #fff);
}

.an-ar-profile__career-sec.is-full {
  margin-bottom: 20px;
}

.an-ar-profile__career-sec h3,
.an-ar-profile__career-sec .an-ar-profile__block-title {
  margin: 0 0 14px;
}

.an-ar-profile__career-list li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  padding: 11px 0;
  border-top: 1px solid var(--border-color, #e5e5e5);
  line-height: 1.55;
}

.an-ar-profile__career-list li::before {
  display: none;
}

.an-ar-profile__career-list time {
  color: var(--muted-color, #7c7c7c);
  font-size: var(--fs-caption, 12px);
  font-weight: 600;
}

.an-ar-profile__career-list span {
  min-width: 0;
  word-break: keep-all;
}

/* [아티스트 상세 다크모드] 역할: 프로필·요약·경력 카드와 sticky 탭의 표면 대비 유지 · 작성/수정일: 2026-09-24 */
html.dark .an-ar-profile__rail,
body.dark .an-ar-profile__rail,
html.dark .an-ar-profile__summary,
body.dark .an-ar-profile__summary,
html.dark .an-ar-profile__career-sec,
body.dark .an-ar-profile__career-sec,
html.dark .an-ar-profile__tabs,
body.dark .an-ar-profile__tabs {
  border-color: var(--border-color, #333);
  background: var(--surface-color, #171717);
}

html.dark .an-ar-profile__hero,
body.dark .an-ar-profile__hero,
html.dark .an-ar-profile__work-thumb,
body.dark .an-ar-profile__work-thumb {
  border-color: var(--border-color, #333);
  background: #1e1e1e;
}

/* [아티스트 상세 태블릿] 역할: 프로필과 본문을 한 열로 전환하고 액션·카드를 압축 · 작성/수정일: 2026-09-24 */
@media (max-width: 991.98px) {
  .an-ar-profile__layout {
    grid-template-columns: 1fr;
    gap: var(--space-30, 30px);
  }

  .an-ar-profile__rail {
    position: static;
  }

  .an-ar-profile__identity {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .an-ar-profile__actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .an-ar-profile__actions .an-ar-action {
    width: 100%;
    flex: none;
  }

  .an-ar-profile__actions .an-ar-action--follow {
    grid-column: 1 / -1;
  }

  .an-ar-profile__works-grid,
  .an-ar-profile__works-grid.is-full {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* [아티스트 상세 모바일] 역할: 압축 프로필·2열 액션·일반 흐름 탭으로 초기 세로 길이를 축소 · 작성/수정일: 2026-09-24 */
@media (max-width: 767.98px) {
  .an-ar-profile__rail {
    padding: 16px;
  }

  .an-ar-profile__identity {
    grid-template-columns: 72px minmax(0, 1fr);
    column-gap: 14px;
  }

  .an-ar-profile__avatar {
    width: 72px;
    height: 72px;
  }

  .an-ar-profile__tagline,
  .an-entity-claim-inline {
    grid-column: 1 / -1;
  }

  .an-ar-profile__actions .an-ar-action {
    flex: none;
  }

  .an-ar-profile__tabs {
    /* [아티스트 상세 모바일 탭] 역할: 모바일에서 sticky를 해제해 콘텐츠 가림과 이중 고정을 방지 — 작성/수정일: 2026-09-24 */
    position: static;
    top: auto;
    z-index: auto;
    gap: 4px 16px;
    margin-inline: -2px;
  }

  .an-ar-profile__hero {
    aspect-ratio: 4 / 3;
  }

  .an-ar-profile__hero img {
    padding: 10px;
  }

  .an-ar-profile__summary {
    padding: 18px 16px;
  }

  .an-ar-profile__career-list li {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 10px;
  }

  .an-ar-profile__cta-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .an-ar-profile__works-grid,
  .an-ar-profile__works-grid.is-full {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 12px;
  }

  .an-ar-profile__work-thumb {
    padding: 6px;
  }
}
