/* The approved A cover is an actual artwork; keep it visible above the avatar. */
body .dc-starmist-profile-card .dc-uip-cover-wrap { --profile-cover-height: 174px; height: var(--profile-cover-height); background: #21182f url('/h5/assets/starmist-profile-cover-afb8cec69241.webp') center 42% / cover no-repeat; }
body .dc-starmist-profile-card .dc-uip-cover-default {
  width: 100%; height: var(--profile-cover-height);
  background: #21182f url('/h5/assets/starmist-profile-cover-afb8cec69241.webp') center 42% / cover no-repeat;
}
body .dc-starmist-profile-card .dc-uip-cover-default::before,
body .dc-starmist-profile-card .dc-uip-cover-default::after { content: none; }
body .dc-starmist-profile-card .dc-uip-cover-img {
  display: block; width: 100%; height: var(--profile-cover-height); object-fit: cover;
  filter: none; opacity: 1; background: transparent;
}
/* The profile API supplies this legacy stock image for users without a cover.
   Treat it as an empty cover so the shared star artwork remains visible. */
body .dc-starmist-profile-card .dc-uip-cover-img[src*="images.unsplash.com/photo-1557683316-973673baf926"] { display: none; }
body .dc-starmist-profile-card .dc-uip-cover-tint { height: var(--profile-cover-height); background: none; }
body .dc-starmist-profile-card .dc-uip-cover-fade {
  height: 60px; background: linear-gradient(180deg,transparent 0%,#21182f66 45%,#21182f 100%);
}
/* Both levels belong to the identity block, between the name and ID. */
body .dc-starmist-profile-content > .flex.justify-between > div > .flex {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 5px 16px; margin: 9px 0 0;
}
body .dc-starmist-profile-content > .flex.justify-between > div > .flex:empty { display: none; }
body .dc-starmist-profile-card .dc-uip-lv {
  display: inline-flex; align-items: center; gap: 5px; padding: 0;
  border: 0; border-radius: 0; background: none; box-shadow: none;
  font-family: inherit; font-size: 12px; font-weight: 600; font-style: normal;
  line-height: 20px; letter-spacing: .03em; white-space: nowrap;
}
body .dc-starmist-profile-card .dc-uip-lv--viewer { color: #c4b2ed; }
body .dc-starmist-profile-card .dc-uip-lv--streamer { color: #edb8dd; }
body .dc-starmist-profile-card .dc-uip-id { margin-top: 8px; }
/* Reuse dc-nav-title typography, exactly as on the voice-room list. */
body .dc-profile-page .dc-profile-center-title {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  margin: 0; max-width: calc(100% - 228px); text-align: center;
  overflow: hidden; text-overflow: ellipsis; pointer-events: none;
}
body .dc-profile-page .dc-mp-nav > .flex > .flex { margin-inline-start: auto; gap: 10px; }
@media (max-height: 700px) {
  body .dc-starmist-profile-card .dc-uip-cover-wrap { --profile-cover-height: 144px; }
}

/* Compact identity card: keep the artwork, put follow beside the name,
   and share the bottom row between calls and profile actions. */
body .dc-starmist-profile.dc-uip-overlay {
  align-items: center; justify-content: center;
  padding: max(16px, env(safe-area-inset-top), env(safe-area-inset-bottom)) 12px;
}
body .dc-starmist-profile > .dc-starmist-profile-card {
  max-width: 400px; max-height: calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  border-radius: 24px;
}
body .dc-starmist-profile-card .dc-uip-cover-wrap { --profile-cover-height: 108px; }
body .dc-starmist-profile-card .dc-uip-cover-fade { height: 40px; }
body .dc-starmist-profile-card .dc-uip-avatar-pos { left: 20px; transform: none; }
body .dc-starmist-profile-card .dc-uip-avatar-pos:has(.dc-av__frame) { left: 44px; }
body .dc-starmist-profile-card .dc-uip-avatar-pos::before { inset: -6px; }
body .dc-starmist-profile-card .dc-uip-icon-btn { width: 44px; height: 44px; }
body .dc-starmist-profile-card .dc-starmist-profile-content {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 8px;
  padding-right: 18px; padding-bottom: 18px; padding-left: 18px;
}
body .dc-starmist-profile-content > * { grid-column: 1 / -1; margin-top: 0; }
body .dc-starmist-profile-content > .flex.justify-between {
  flex-direction: row; align-items: center; justify-content: space-between;
  gap: 12px; text-align: start;
}
body .dc-starmist-profile-content > .flex.justify-between > div { flex: 1; min-width: 0; }
body .dc-starmist-profile-content > .flex.justify-between > div > .flex {
  justify-content: flex-start; gap: 4px 10px; margin-top: 4px;
}
body .dc-starmist-profile-card .dc-uip-name {
  font-size: 20px; line-height: 26px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
body .dc-starmist-profile-card .dc-uip-id { font-size: 11px; line-height: 16px; margin-top: 2px; }
body .dc-starmist-profile-card .dc-uip-lv { font-size: 11px; line-height: 18px; }
body .dc-starmist-profile-card .dc-uip-follow-btn {
  min-width: 80px; height: 44px; padding: 0 12px; flex-shrink: 0; font-size: 12px;
}
body .dc-starmist-profile-card .dc-uip-stats { margin-top: 0; padding: 12px 0; border-radius: 14px; }
body .dc-starmist-profile-card .dc-uip-stat-item { display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; }
body .dc-starmist-profile-card .dc-uip-stat-num { font-size: 18px; line-height: 24px; }
body .dc-starmist-profile-card .dc-uip-stat-label { margin-top: 0; font-size: 10px; }
body .dc-starmist-profile-card .dc-sm-invitation {
  margin: 0; padding: 0; min-height: 24px; gap: 8px; border: 0; border-radius: 0; background: none;
  font-size: 12px; line-height: 20px;
}
body .dc-starmist-profile-card .dc-uip-bio {
  margin-top: 0; font-size: 12px; line-height: 20px; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
body .dc-starmist-profile-content > .mt-3 > .w-1\/2 { width: 100%; }
body .dc-starmist-profile-content > .mt-4.pt-4 { margin-top: 0; padding-top: 10px; }
body .dc-starmist-profile-content > .mt-5.flex { margin-top: 0; gap: 8px; min-width: 0; }
body .dc-starmist-profile-card .dc-uip-action-btn {
  min-height: 44px; padding: 10px 6px; font-size: 12px; line-height: 18px; border-radius: 13px; min-width: 0;
}
body .dc-starmist-profile-card .dc-uip-call-shortcuts { grid-column: 1; gap: 6px; margin-top: 0; align-items: center; }
body .dc-starmist-profile-card .dc-uip-call-circle { width: 44px; height: 44px; flex-basis: 44px; font-size: 16px; }
body .dc-starmist-profile-content > .dc-uip-call-shortcuts + .mt-5.flex { grid-column: 2; }
@media (max-height: 700px) {
  body .dc-starmist-profile-card .dc-uip-cover-wrap { --profile-cover-height: 88px; }
  body .dc-starmist-profile-card .dc-starmist-profile-content { gap: 10px 6px; padding-bottom: 14px; }
}
