/* Profile composes the library shell, role badges, and playlist cards. */
.profile-container {
  --nav-surface: #f2f7ff;
  --nav-gradient: linear-gradient(90deg, var(--bsc-blue), var(--plum-dark));
}
.profile-summary {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 16px;
  border-radius: 12px;
  background: var(--panel);
  box-shadow: 0 2px 8px #0000001a;
}
.profile-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 141px;
  height: 141px;
  border: 5px solid transparent;
  border-radius: 50%;
  background: linear-gradient(var(--nav-surface), var(--nav-surface)) padding-box,
              var(--nav-gradient) border-box;
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
}
.profile-avatar > span {
  background: linear-gradient(252.63deg, var(--plum), #3485fe);
  background-clip: text;
  color: transparent;
}
.profile-info { display: flex; flex: 1; flex-direction: column; gap: 16px; min-width: 0; }
.profile-identity-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-width: 0; }
.profile-identity { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.profile-name { margin: 0; overflow-wrap: anywhere; font-size: 24px; font-weight: 600; line-height: 24px; }
.profile-email { margin: 0; overflow-wrap: anywhere; color: #666; font-size: 16px; font-weight: 500; line-height: 24px; }
.profile-identity-row > .nav-role-badge { margin: 2px; }
.profile-roles { display: flex; flex-wrap: wrap; gap: 6px; }
.profile-guidance { margin: 0; overflow-wrap: anywhere; color: #666; font-size: 14px; line-height: 21px; }
.profile-stats { display: flex; gap: 8px; margin: 0; padding: 8px; border-radius: 8px; background: var(--nav-surface); }
.profile-stat { flex: 1; min-width: 0; padding: 8px 16px; }
.profile-stat dt { margin-bottom: 6px; color: #666; font-size: 10px; font-weight: 700; line-height: 12px; text-transform: uppercase; }
.profile-stat dd { margin: 0; overflow-wrap: anywhere; font-size: 16px; line-height: 19px; }
.profile-section-title { margin: 0 0 24px; font-size: 16px; font-weight: 700; line-height: 19px; }

@media (max-width: 760px) {
  .profile-summary { flex-direction: column; gap: 16px; }
  .profile-info { width: 100%; }
  .profile-avatar { width: 100px; height: 100px; font-size: 44px; }
  .profile-identity-row { flex-wrap: wrap; }
  .profile-stats { flex-direction: column; }
}
