:root { --cover-top-shade: linear-gradient(180deg, #050409b8, #05040938 16%, transparent 34%); }

/* Keep profile cards non-modal so the map and its existing tools remain usable. */
.artist-profile-panel {
  --profile-paper: #faf8f5;
  --profile-red: #e60012;
  --profile-ink: #191919;
  --profile-muted: #938a80;
  position: fixed;
  z-index: 1450;
  top: var(--map-panel-top, 78px);
  bottom: 36px;
  left: 24px;
  display: flex;
  flex-direction: column;
  width: min(374px, calc(100vw - 48px));
  border: 1px solid #ffffffd9;
  border-radius: 28px;
  background: var(--profile-paper);
  color: var(--profile-ink);
  font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
  box-shadow: 0 14px 50px #30251c24, 0 2px 8px #30251c0a;
  overflow: hidden;
  animation: profile-enter .22s ease-out both;
}
.artist-profile-panel[hidden] { display: none; }
.artist-profile-panel, .artist-profile-panel * { box-sizing: border-box; }
.artist-profile-panel button, .artist-profile-panel a { font: inherit; -webkit-tap-highlight-color: transparent; }
.profile-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-shrink: 0; padding: 15px 19px 11px; }
.profile-toolbar-label { margin-right: auto; color: #938a80; font-size: 12px; letter-spacing: 1px; }
.profile-back { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; gap: 1px; min-width: 36px; height: 36px; padding: 0 5px 0 1px; border: 0; border-radius: 8px; background: transparent; color: #655e56; cursor: pointer; white-space: nowrap; }
.profile-back span { font-size: 13px; font-weight: 650; }
.profile-back :is(svg, span) { filter: drop-shadow(0 1px 2px #000b); }
.profile-back[hidden] { display: none; }
.profile-back:hover { opacity: .8; }
#artist-profile-panel button.profile-back.profile-back-circle {
  width: 36px; min-width: 36px; height: 36px; padding: 0; border-radius: 50%;
  color: #fff; background: #201822a6;
}
#artist-profile-panel button.profile-back.profile-back-circle :is(svg, span) { filter: none; }
.profile-back-circle span { display: none; }
#artist-profile-panel button.profile-back.profile-back-circle:is(:hover, :focus-visible) { opacity: 1; background: #201822e0; }
@media (max-width: 480px) {
  #artist-profile-panel[data-profile-sheet] button.profile-back.profile-back-circle { color: var(--profile-ink); background: var(--night-wash); }
}
.profile-close { margin-left: auto; }
.profile-close { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: #eeeae4; color: #655e56; font-size: 24px !important; line-height: 1; padding: 0; cursor: pointer; }
.profile-close:hover { background: #e8e1d9; color: #191919; }
.profile-scroll { overflow-y: auto; overscroll-behavior: contain; min-height: 0; padding: 0 13px 14px; scrollbar-width: none; }
.profile-scroll::-webkit-scrollbar { display: none; }
.profile-content { display: flow-root; }
/* The floating thumb never reserves space beside the cover or profile sections. */
.profile-scrollbar { position: absolute; z-index: 4; top: 8px; right: 1px; bottom: 8px; width: 12px; opacity: 0; transition: opacity .18s ease; touch-action: none; }
.profile-scrollbar[hidden] { display: none; }
.profile-scrollbar:hover, .profile-scrollbar:has(:focus-visible), .profile-scrollbar.is-active, .profile-scrollbar.is-dragging { opacity: 1; }
.profile-scrollbar-thumb { position: absolute; top: 0; right: 3px; width: 5px; border-radius: 999px; background: #655e5680; cursor: grab; }
.profile-scrollbar.is-dragging .profile-scrollbar-thumb { cursor: grabbing; background: #655e56b3; }
.profile-hero { position: relative; text-align: center; padding: 25px 19px 22px; background: #fff; border-radius: 23px; }
.profile-kind { position: absolute; top: 14px; left: 17px; margin: 0; color: var(--profile-red); font-size: 11px; font-weight: 700; }
.profile-avatar-frame { position: relative; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; border-radius: 50%; background: #eeeae4; vertical-align: middle; }
.profile-avatar-frame img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.profile-avatar-frame img[hidden] { display: none; }
.profile-avatar-fallback { font-size: 15px; font-weight: 800; color: #b4a89a; }
.profile-hero-avatar { width: 102px; height: 102px; border: 5px solid var(--profile-paper); }
.profile-hero-avatar .profile-avatar-fallback { font-size: 34px; }
.profile-title { margin: 17px 0 10px; font-size: 28px; font-weight: 900; line-height: 1.22; letter-spacing: -.7px; overflow-wrap: anywhere; }
.profile-metric { color: var(--profile-red); font-size: 29px; font-weight: 900; line-height: 1.1; }
.profile-metric-label { display: block; color: var(--profile-muted); font-size: 11px; font-weight: 400; margin-top: 6px; }
.profile-description { margin: 18px 0 0; text-align: left; color: #777; font-size: 13px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.profile-only-note { margin: 16px 0 0; border-radius: 11px; padding: 9px; background: var(--profile-paper); color: var(--profile-muted); font-size: 11px; }
.profile-actions { display: flex; gap: 8px; margin-top: 22px; }
.profile-actions > * { flex: 1; min-width: 0; display: flex; justify-content: center; align-items: center; padding: 12px 7px; border: 0; border-radius: 12px; background: #eeeae4; color: #463d33; text-decoration: none; font-size: 12px !important; line-height: 1.3; font-weight: 700 !important; cursor: pointer; }
.profile-actions > *:hover { filter: brightness(.96); }
/* Full-bleed covers are square for artists and landscape for groups. */
.artist-profile-panel .profile-toolbar { position: absolute; inset: 0 0 auto; z-index: 3; justify-content: flex-end; padding: 12px; pointer-events: none; }
.artist-profile-panel .profile-toolbar-label { display: none; }
.artist-profile-panel .profile-close { pointer-events: auto; background: #0005; color: #fff; backdrop-filter: blur(8px); }
.artist-profile-panel .profile-back { pointer-events: auto; color: #fff; }
.artist-profile-panel .profile-scroll { padding: 0 0 14px; }
.artist-profile-panel .profile-section { margin-left: 13px; margin-right: 13px; }
.profile-hero-cover { isolation: isolate; aspect-ratio: 1; width: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; padding: 22px; border-radius: 0; text-align: left; background: #302a27; overflow: hidden; }
.artist-profile-panel[data-profile-type="label"] .profile-hero-cover { aspect-ratio: 4 / 3; }
.profile-hero-cover::after { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--cover-top-shade), linear-gradient(180deg, #0000 25%, #0003 48%, #000c 100%); pointer-events: none; }
.profile-cover-avatar { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; border: 0; border-radius: 0; background: #b8bdc4; }
.profile-cover-loading { position: absolute; top: 36%; left: 0; right: 0; display: grid; justify-items: center; gap: 10px; transform: translateY(-50%); color: #ffffffed; pointer-events: none; }
.profile-cover-spinner { width: 28px; height: 28px; border: 3px solid #ffffff4d; border-top-color: #fff; border-radius: 50%; }
.profile-cover-avatar.is-loading .profile-cover-spinner { animation: profile-avatar-spin .9s linear infinite; }
.profile-cover-loading-text { font-size: 12px; line-height: 1.5; font-weight: 500; }
.profile-cover-loading[hidden], .profile-cover-spinner[hidden] { display: none; }
.profile-hero-cover .profile-title { margin: 0; color: #fff; font-size: 32px; line-height: 1.16; letter-spacing: -.5px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.profile-hero-cover .profile-metric { display: flex; align-items: baseline; margin-top: 8px; color: #fff; font-size: 14px; line-height: 1.4; font-weight: 600; }
.profile-hero-cover .profile-metric-label { display: inline; margin: 0; color: inherit; font-size: inherit; font-weight: inherit; }
.artist-profile-panel .profile-rank-badge {
  display: inline-flex; flex-shrink: 0; align-items: center; gap: 5px; min-height: 29px;
  padding: 4px 9px; border: 0; border-radius: 13px; color: #fff; background: #ffffff1c;
  font-size: 11px; font-weight: 650; line-height: 1.35; white-space: nowrap; cursor: pointer;
}
.artist-profile-panel .profile-rank-badge:is(:hover, :focus-visible) { background: #ffffff30; }
.profile-rank-badge:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.profile-rank-badge-arrow { color: #ffffffcb; font-size: 15px; line-height: .8; }
.artist-profile-panel[data-profile-type="singer"] .profile-rank-badge { border-radius: 999px; }
.profile-rank-badge-label { font-weight: 400; }
.artist-profile-panel [data-disclosure="collaborators"]::after {
  content: ''; display: inline-block; width: 5px; height: 5px; margin: 0 2px 2px 6px;
  border: solid currentColor; border-width: 0 1px 1px 0; transform: rotate(45deg);
}
.artist-profile-panel [data-disclosure="collaborators"][aria-expanded="true"]::after { transform: rotate(225deg); margin-bottom: 0; }
.profile-hero-cover .profile-description { margin-top: 8px; color: #ffffffe0; font-size: 11px; line-height: 1.5; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.profile-hero-cover .profile-only-note { position: absolute; top: 14px; left: 16px; max-width: calc(100% - 76px); margin: 0; padding: 5px 8px; border-radius: 7px; background: #0005; color: #fff; font-size: 10px; }
.artist-profile-panel[data-profile-history="true"] .profile-only-note { left: 56px; max-width: calc(100% - 112px); }
.profile-hero-cover .profile-actions, .profile-group-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.profile-group-actions { margin: 12px 21px 4px; }
.profile-actions > * { gap: 6px; min-height: 42px; padding: 11px 8px; border: 1px solid transparent; border-radius: 11px; color: #fff; }
.profile-actions .profile-music-link { background: var(--profile-red); }
.profile-actions .profile-network { border-color: #ffffff70; background: #ffffff12; }
.profile-actions .profile-network svg { flex-shrink: 0; width: 16px; height: 16px; }
.profile-actions > *:disabled { opacity: .45; cursor: not-allowed; }
.profile-section { margin-top: 12px; padding: 20px 17px; border-radius: 20px; background: #fff; }
.profile-section-title { margin: 0 0 17px; font-size: 15px; font-weight: 800; line-height: 1.4; }
.profile-catalogue-heading, .profile-bio-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 17px; }
.profile-bio-heading { align-items: center; }
:is(.profile-catalogue-heading, .profile-bio-heading) .profile-section-title { margin: 0; }
.artist-profile-panel .profile-catalogue-open {
  display: inline-flex; align-items: center; gap: 4px; min-height: 28px; margin-block: -5px;
  padding: 0 6px 0 0; border: 0; border-radius: 4px; background: none; color: inherit; cursor: pointer;
}
.profile-catalogue-open::after {
  content: ''; width: 8px; height: 8px; border: solid currentColor; border-width: 2px 2px 0 0;
  transform: translateY(-1px) rotate(45deg);
}
.artist-profile-panel .profile-catalogue-open:is(:hover, :focus-visible) { color: var(--night-accent, var(--profile-red)); }
.profile-catalogue-open:focus-visible, .profile-catalogue-tab:focus-visible,
.profile-catalogue-results:focus-visible { outline: 2px solid var(--night-accent, var(--profile-red)); outline-offset: 2px; }
.profile-catalogue-view { padding: 3px 16px 12px; }
.profile-catalogue-summary { display: flex; align-items: center; gap: 12px; min-width: 0; margin: 4px 2px 15px; }
.profile-catalogue-avatar { height: 48px; width: 48px; }
.profile-catalogue-copy { min-width: 0; }
.profile-catalogue-title { margin: 0; font-size: 24px; line-height: 1.2; font-weight: 800; overflow-wrap: anywhere; }
.profile-catalogue-fans { margin: 3px 0 0; font-size: 12px; line-height: 1.4; font-weight: 400; color: var(--profile-muted); font-variant-numeric: tabular-nums; }
.profile-catalogue-switch {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
}
.profile-catalogue-switch.is-tracks-only { grid-template-columns: minmax(0, 1fr); }
.artist-profile-panel .profile-catalogue-tab[hidden] { display: none; }
.artist-profile-panel .profile-catalogue-tab {
  display: flex; align-items: center; justify-content: center; min-height: 40px;
  padding: 2px 5px 8px; border: 0; background: transparent; color: var(--profile-muted);
  cursor: pointer; font-size: 14px; font-weight: 700;
}
.artist-profile-panel .profile-catalogue-tab:is([aria-selected="true"], :hover, :focus-visible) { color: var(--profile-ink); }
.profile-catalogue-tab-label { position: relative; white-space: nowrap; }
.profile-catalogue-tab[aria-selected="true"] .profile-catalogue-tab-label::after {
  content: ''; position: absolute; inset: auto 0 -5px; height: 2px; background: var(--profile-red);
}
.profile-catalogue-results { padding: 14px 1px 2px; min-height: 100px; }
.profile-catalogue-position { width: 22px; flex: 0 0 22px; color: var(--profile-muted); font-size: 11px; font-variant-numeric: tabular-nums; text-align: right; }
.profile-catalogue-results .profile-song { gap: 8px; padding-block: 9px; }
.profile-catalogue-results .profile-song:first-child { padding-top: 0; }
.profile-catalogue-results .profile-album-grid { row-gap: 15px; }
.profile-catalogue-status { padding: 6px 2px; color: var(--profile-muted); }
.artist-profile-panel .profile-catalogue-retry {
  padding: 6px 12px; border: 1px solid var(--night-border, #ded5d0); border-radius: 7px;
  color: var(--profile-ink); background: var(--night-wash, #1919190a); font-size: 12px; cursor: pointer;
}
#artist-profile-panel[data-profile-type="catalogue"][data-profile-sheet] .profile-back { width: auto; min-width: 40px; }
@media (min-width: 481px) {
  .artist-profile-panel[data-profile-type="catalogue"] .profile-toolbar { position: relative; inset: auto; height: 52px; padding: 7px 11px; justify-content: space-between; }
  .artist-profile-panel[data-profile-type="catalogue"] .profile-scroll { flex: 1; }
}
.grid-disclosure-list > [hidden] { display: none !important; }
#home-topics .grid-disclosure-toggle, .artist-profile-panel .grid-disclosure-toggle {
  flex-shrink: 0; appearance: none; padding: 4px 7px; border: 0; border-radius: 6px;
  background: none; color: var(--night-muted, #6d625a); font: inherit; font-size: 11px; cursor: pointer;
}
#home-topics .grid-disclosure-toggle:is(:hover, :focus-visible),
.artist-profile-panel .grid-disclosure-toggle:is(:hover, :focus-visible) { color: var(--night-accent, #e60012); }
.profile-section-count { margin-left: 9px; color: #aaa299; font-size: 11px; font-weight: 400; }
/* Group members are one uninterrupted vertical list, not the artist's collaborator grid. */
.profile-members { display: flex; flex-direction: column; gap: 6px; }
.profile-member { min-width: 0; width: 100%; display: flex; align-items: center; gap: 12px; padding: 8px 6px; border: 0; border-radius: 9px; background: none; color: #302a24; text-align: left; text-decoration: none; cursor: pointer; transition: background-color .16s ease; }
button.profile-member:focus-visible { background: #f2f2f2; }
@media (hover: hover) {
  button.profile-member:hover { background: #f2f2f2; }
}
.profile-member .profile-person-avatar { width: 44px; height: 44px; }
.profile-member .profile-person-name { flex: 1; font-size: 14px; font-weight: 600; }
.profile-member .profile-person-status { flex-shrink: 0; }
.profile-person-name { min-width: 0; line-height: 1.4; overflow-wrap: anywhere; font-size: 12px; }
.profile-person-status { font-size: 10px; color: var(--profile-muted); }
.profile-relations { display: flex; flex-wrap: wrap; gap: 8px; }
.profile-membership-inline { display: flex; align-items: center; gap: 12px; margin: 12px 13px 0; padding: 14px 17px; }
.profile-membership-inline .profile-section-title { margin: 0; flex-shrink: 0; }
.profile-membership-inline .profile-relation { min-width: 0; }
.profile-relation { max-width: 100%; display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px 5px 5px; border: 0; border-radius: 999px; background: #f4f1ec; color: #463d33; text-align: left; cursor: pointer; }
.profile-relation .profile-person-avatar { width: 28px; height: 28px; }
.profile-relation .profile-avatar-fallback { font-size: 10px; }
.profile-relation:hover .profile-person-name { color: var(--profile-red); }
.profile-duo-row { justify-content: space-between; gap: 8px; }
.profile-duo-members { display: flex; justify-content: flex-end; gap: 5px; min-width: 0; }
.profile-duo-link { min-width: 0; gap: 4px; padding: 4px 7px 4px 4px; }
.profile-duo-link .profile-person-avatar { width: 23px; height: 23px; flex: 0 0 23px; }
.profile-duo-link .profile-person-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.profile-duo-bio-heading .profile-section-title { flex-shrink: 0; }
.profile-duo-affiliation { display: flex; align-items: center; gap: 5px; min-width: 0; }
.profile-duo-affiliation-label { flex: none; font-size: 11px; font-weight: 700; white-space: nowrap; }
/* Collaborators use a separate grid so membership chips remain unchanged. */
.profile-collaborators { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; gap: 20px 10px; }
.profile-collaborator { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0; border: 0; background: none; color: #302a24; cursor: pointer; text-align: center; text-decoration: none; }
.profile-collaborator .profile-person-avatar { width: 52px; height: 52px; }
.profile-collaborator .profile-person-name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 11px; line-height: 1.4; }
.profile-collaborator:not(.is-static):hover .profile-person-name { color: var(--profile-red); }
.is-unresolved, .is-static { cursor: default; }
.profile-song-list { margin: 0; padding: 0; list-style: none; }
.profile-song { display: flex; align-items: center; gap: 11px; padding: 13px 0; border-bottom: 1px solid #f0ede8; }
.profile-song:first-child { padding-top: 0; }
.profile-song:last-child { border-bottom: 0; padding-bottom: 0; }
.profile-song-cover { display: block; width: 44px; height: 44px; flex: 0 0 44px; overflow: hidden; border-radius: 6px; background: #eeeae4; }
.profile-song-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.profile-song-cover img[hidden] { display: none; }
.profile-song-copy { min-width: 0; flex: 1; }
.profile-song-name { display: block; font-size: 13px; line-height: 1.5; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-song-artists { display: block; margin-top: 1px; color: #938a80; font-size: 12px; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-song-open { width: 32px; height: 32px; border: 1px solid var(--profile-red); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--profile-red); }
.profile-song-open::after { content: ''; width: 0; height: 0; margin-left: 3px; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 7px solid #fff; }
.profile-song-open:hover { background: #cf0010; }
.profile-album-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.profile-album-card { display: flex; flex-direction: column; align-items: stretch; min-width: 0; gap: 7px; padding: 0; border: 0; color: var(--profile-ink); background: transparent; text-align: left; text-decoration: none; cursor: pointer; }
.profile-album-cover { position: relative; display: block; width: 100%; aspect-ratio: 1; overflow: hidden; border-radius: 8px; background: #eeeae4; }
.profile-album-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.profile-album-cover img[hidden] { display: none; }
.profile-group-album-badge { position: absolute; bottom: 5px; left: 5px; padding: 3px 5px; border-radius: 4px; color: #fff; background: #000a; font-size: 10px; line-height: 1.2; white-space: nowrap; }
.profile-album-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; font-size: 12px; line-height: 1.4; font-weight: 700; }
.profile-album-card:is(:hover, :focus-visible) .profile-album-name { color: var(--profile-red); }
#artist-profile-panel.artist-profile-panel[data-profile-type="album"] {
  --profile-ink: #f8f6f4;
  --album-copy: #e7e2de;
  --album-muted: #c6bfb9;
  --album-accent: var(--night-accent, #e60012);
  --album-wash: #ffffff12;
  isolation: isolate;
  border-width: 0;
  background: linear-gradient(155deg, #25232ae0, #141317ed);
  backdrop-filter: blur(18px);
}
/* Reuse the cover as a soft, fixed tint behind the scrolling content. */
#artist-profile-panel[data-profile-type="album"]::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -60px;
  pointer-events: none;
  background: linear-gradient(160deg, #08070c55, #08070cb8), var(--album-cover-backdrop, none) center 35% / cover no-repeat;
  filter: blur(48px) saturate(.85);
  opacity: .7;
}
.artist-profile-panel[data-profile-type="album"] :is(.profile-back, .profile-close) { height: 36px; color: #fff; background: transparent; backdrop-filter: none; }
.artist-profile-panel[data-profile-type="album"] .profile-close { width: 36px; }
.artist-profile-panel[data-profile-type="album"] .profile-close:is(:hover, :focus-visible) { background: #0005; }
.artist-profile-panel[data-profile-type="album"] :focus-visible { outline-color: var(--album-accent); }
#artist-profile-panel[data-profile-type="album"][data-profile-sheet] :is(.profile-back, .profile-close) { color: var(--profile-ink); }
#artist-profile-panel[data-profile-type="album"] .profile-sheet-handle::before { background: #ffffff70; }
#artist-profile-panel[data-profile-type="album"] :is(.profile-sheet-meta, .profile-sheet-hint) { color: var(--album-muted); }
.artist-profile-panel[data-profile-type="album"] .profile-back svg { width: 24px; height: 24px; }
.artist-profile-panel[data-profile-type="album"] .profile-close { font-size: 22px !important; text-shadow: 0 1px 3px #000a; }
.profile-album-hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.profile-album-hero .profile-album-cover {
  --album-cover-inset: 6px;
  width: calc(100% - 2 * var(--album-cover-inset));
  margin: var(--album-cover-inset) var(--album-cover-inset) 0;
  border-radius: 22px 22px 16px 16px;
  background: var(--album-wash);
}
.profile-album-hero .profile-album-cover::after {
  content: ''; position: absolute; inset: 0; background: var(--cover-top-shade); pointer-events: none;
}
.profile-album-identity { margin-inline: 20px; }
.profile-album-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 12px; }
.profile-album-title { margin: 0; font-size: clamp(18px, 5vw, 23px); line-height: 1.23; font-weight: 850; overflow-wrap: anywhere; }
.profile-album-date { color: var(--album-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.profile-album-date:not([hidden]) { display: block; margin-top: 2px; }
.profile-album-listen { display: inline-flex; align-items: center; gap: 6px; color: var(--profile-ink); text-decoration: none; }
.profile-album-listen-icon { width: 34px; height: 34px; }
.profile-album-listen-icon::after { border-top-width: 6px; border-bottom-width: 6px; border-left-width: 8px; }
.profile-album-listen-label { font-size: 12px; opacity: .68; white-space: nowrap; }
.profile-album-listen:is(:hover, :focus-visible) .profile-album-listen-icon { background: #cf0010; }
.profile-album-stats { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 14px; margin: 8px 0 0; color: var(--album-muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.profile-album-stats[hidden] { display: none; }
.artist-profile-panel[data-profile-type="album"] .profile-rank-badge {
  margin-top: 10px; gap: 7px; color: #ffffffcc; font-weight: 400;
}
.profile-rank-badge strong { color: #fff; font-size: 13px; font-weight: 750; font-variant-numeric: tabular-nums; }
.profile-rank-badge-chevron { width: 13px; height: 13px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.profile-album-stat { display: inline-flex; align-items: center; gap: 5px; line-height: 1.35; }
.profile-album-stat svg { width: 17px; height: 17px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.profile-album-favorite svg { fill: #f0b519; stroke: none; }
.profile-album-stat-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.artist-profile-panel .profile-album-favorite { margin-left: -6px; padding: 4px 6px; border: 0; border-radius: 6px; color: inherit; line-height: 1.35; background: none; }
.profile-album-favorite:enabled { cursor: pointer; }
.profile-album-favorite:enabled:hover { background: var(--album-wash); }
.artist-profile-panel[data-profile-type="album"] .profile-section { background: transparent; }
.artist-profile-panel[data-profile-type="album"] .profile-biography { color: var(--album-copy); }
.artist-profile-panel[data-profile-type="album"] .profile-biography-toggle { color: var(--album-accent); }
.artist-profile-panel[data-profile-type="album"] .profile-empty { color: var(--album-muted); }
.artist-profile-panel[data-profile-type="album"] .profile-scrollbar-thumb { background: #ffffff65; }
.profile-line-intro-copy.is-collapsed { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
.profile-line-intro-toggle[hidden] { display: none; }
.profile-album-details { padding-block: 0; border-radius: 0; background: none; }
.profile-album-detail-section { padding-block: 16px; }
.profile-album-detail-section + .profile-album-detail-section { border-top: 1px solid var(--album-wash); }
.profile-album-people { display: grid; gap: 4px; }
.profile-album-people .profile-album-person { display: flex; align-items: center; gap: 10px; width: 100%; min-width: 0; min-height: 46px; padding: 5px 8px; border: 0; border-radius: 9px; background: transparent; color: var(--profile-ink); text-align: left; text-decoration: none; }
.profile-album-person:is(a, button) { cursor: pointer; }
.profile-album-person:is(a, button):is(:hover, :focus-visible) .profile-person-name { color: var(--album-accent); }
.profile-album-person .profile-person-avatar { width: 36px; height: 36px; }
.profile-album-person .profile-person-name { font-size: 13px; font-weight: 650; }
.profile-album-collaborators .profile-album-people { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 4px; }
.profile-album-collaborators .profile-album-person { min-width: 0; flex-direction: column; justify-content: flex-start; gap: 5px; text-align: center; padding-inline: 1px; }
.profile-album-collaborators .profile-person-avatar { width: 43px; height: 43px; }
.profile-album-collaborators .profile-person-name { max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 11px; }
.profile-album-creators { display: grid; grid-template-columns: max-content minmax(0, 1fr); align-items: center; gap: 10px; }
.profile-album-creators .profile-section-title { margin: 0; }
.profile-album-creators .profile-album-people { display: flex; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #ffffff40 transparent; }
.profile-album-creators .profile-album-person { flex: 0 0 auto; width: auto; min-height: 40px; padding: 3px 6px; gap: 7px; white-space: nowrap; }
.profile-album-creators .profile-person-avatar { width: 34px; height: 34px; }
.profile-album-creators .profile-person-name { font-size: 14px; }
.profile-album-creators .profile-album-person:is(a, button):is(:hover, :focus-visible) { background: var(--album-wash); }
.profile-album-creators .profile-album-person:focus-visible { outline-offset: -2px; }
.profile-album-track-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.profile-album-track-count { color: var(--album-muted); font-size: 12px; font-weight: 400; white-space: nowrap; font-variant-numeric: tabular-nums; }
.profile-album-tracks { margin: 0; padding-inline-start: 26px; }
.profile-album-track { padding: 6px 0 6px 5px; font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.profile-album-track:first-child { padding-top: 0; }
.profile-album-track:last-child { padding-bottom: 0; }
.profile-album-track::marker { color: var(--album-muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.profile-album-body .profile-album-message { margin-top: 12px; padding: 0 20px 12px; }
.profile-biography { margin: 0; color: #665e57; font-size: 13px; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; }
.profile-biography-toggle { display: block; margin-top: 9px; padding: 0; border: 0; background: none; color: var(--profile-red); font-size: 12px !important; cursor: pointer; }
.profile-empty { margin: 0; color: #938a80; font-size: 12px; line-height: 1.8; }
.artist-profile-panel :focus-visible, .member-profile-link:focus-visible { outline: 2px solid #e60012; outline-offset: 3px; }
.profile-preview { align-items: center; gap: 0; min-width: min(320px, calc(100vw - 40px)); }
.profile-preview .singer-card-btn { border: 0; white-space: nowrap; cursor: pointer; }
.profile-preview .preview-network-btn { width: 34px; height: 34px; padding: 0; border-radius: 50%; }
.profile-preview .preview-network-btn svg { display: block; pointer-events: none; }
.profile-preview .singer-card-btn:focus-visible { outline: 2px solid #e60012; outline-offset: 2px; }
.member-profile-link { border: 0; padding: 2px 0; background: transparent; color: inherit; font: inherit; text-decoration: underline; text-decoration-color: #ddd; text-underline-offset: 3px; cursor: pointer; }
.member-profile-link:hover { color: #e60012; }
@keyframes profile-enter { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: translateX(0); } }
@keyframes profile-avatar-spin { to { transform: rotate(360deg); } }
@media (max-width: 600px) {
  .artist-profile-panel { top: auto; bottom: 0; left: 0; right: 0; width: 100%; max-height: 72dvh; border-bottom: 0; border-radius: 26px 26px 0 0; z-index: 1700; animation: profile-rise .22s ease-out both; }
  .profile-toolbar { padding: 15px 18px 11px; }
  .profile-scroll { padding: 0 12px calc(14px + env(safe-area-inset-bottom)); }
  .profile-hero { padding-top: 22px; }
  .profile-title { font-size: 28px; }
  .profile-hero-avatar { width: 94px; height: 94px; }
  @keyframes profile-rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
}
@media (prefers-reduced-motion: reduce) {
  .artist-profile-panel, .profile-cover-avatar.is-loading .profile-cover-spinner { animation: none; }
  .profile-scrollbar, .profile-member { transition: none; }
}
