.sp-public-profile {
  --sp-profile-ink: var(--sp-ink, #111318);
  --sp-profile-muted: var(--sp-muted, #657080);
  --sp-profile-surface: var(--sp-surface, #fff);
  --sp-profile-raised: var(--sp-surface-raised, #f5f7fa);
  --sp-profile-line: var(--sp-line-soft, #d7dce3);
  --sp-profile-blue: var(--sp-blue, #12d8ff);
  --sp-profile-pink: var(--sp-pink, #ff3eb5);
  width: min(100% - 32px, 1120px);
  margin: clamp(24px, 4vw, 48px) auto;
  color: var(--sp-profile-ink);
  font-family: var(--sp-font-body, Inter, system-ui, sans-serif);
}
.sp-public-profile *,
.sp-public-profile *::before,
.sp-public-profile *::after { box-sizing: border-box; }
.sp-profile-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr);
  gap: clamp(22px, 4vw, 48px);
  align-items: center;
  min-height: 250px;
  padding: clamp(22px, 4vw, 44px);
  border: 1px solid var(--sp-profile-line);
  border-top: 5px solid var(--sp-profile-blue);
  background: var(--sp-profile-surface);
  box-shadow: 6px 6px 0 color-mix(in srgb, var(--sp-profile-pink) 82%, transparent);
}
.sp-profile-identity { display: flex; align-items: center; gap: clamp(18px, 3vw, 34px); min-width: 0; }
.sp-profile-avatar {
  width: clamp(96px, 13vw, 144px);
  height: clamp(96px, 13vw, 144px);
  flex: 0 0 auto;
  object-fit: cover;
  border: 5px solid var(--sp-profile-blue);
  border-radius: 50%;
  box-shadow: 5px 5px 0 var(--sp-profile-pink);
}
.sp-profile-intro { min-width: 0; }
.sp-profile-kicker { display: block; color: var(--sp-profile-muted); font-size: .68rem; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.sp-profile-intro h1 { margin: 9px 0 12px; color: var(--sp-profile-ink); font-family: var(--sp-font-display, Georgia, serif); font-size: clamp(2rem, 4.2vw, 3.5rem); font-weight: 850; line-height: 1.02; overflow-wrap: anywhere; }
.sp-profile-meta { display: flex; flex-wrap: wrap; gap: 7px; }
.sp-profile-meta span { padding: 6px 9px; border: 1px solid var(--sp-profile-line); background: var(--sp-profile-raised); color: var(--sp-profile-muted); font-size: .7rem; font-weight: 750; }
.sp-profile-mood { margin: 12px 0 0; color: var(--sp-profile-ink); font-size: .87rem; font-weight: 750; }
.sp-profile-mood span { color: var(--sp-profile-pink); }
.sp-profile-interests { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.sp-profile-interests span { padding: 5px 8px; border-left: 3px solid var(--sp-profile-blue); background: var(--sp-profile-raised); color: var(--sp-profile-ink); font-size: .67rem; font-weight: 850; }
.sp-profile-feature { position: relative; min-width: 0; overflow: hidden; aspect-ratio: 16 / 9; background: #0e1118; border: 1px solid var(--sp-profile-ink); }
.sp-profile-feature-link { position: absolute; inset: 0; display: block; color: inherit; text-decoration: none; }
.sp-profile-feature > img,
.sp-profile-feature-link > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sp-profile-feature-caption { position: absolute; right: 0; bottom: 0; left: 0; display: flex; flex-direction: column; gap: 5px; padding: 34px 16px 14px; color: #fff; background: linear-gradient(transparent, rgba(4, 8, 14, .88)); }
.sp-profile-feature-caption small { color: var(--sp-profile-blue); font-size: .6rem; font-weight: 950; letter-spacing: .18em; }
.sp-profile-feature-caption b { color: #fff; font-size: clamp(.9rem, 1.7vw, 1.2rem); line-height: 1.2; text-shadow: 0 1px 8px #000; }
.sp-profile-inline-editor { margin: 16px 0 22px; border: 1px solid var(--sp-profile-line); background: var(--sp-profile-surface); }
.sp-profile-inline-editor > summary { display: flex; min-height: 48px; align-items: center; gap: 9px; padding: 12px 16px; color: var(--sp-profile-ink); cursor: pointer; font-weight: 900; }
.sp-profile-inline-editor > summary span { color: var(--sp-profile-blue); font-size: 1.2rem; }
.sp-profile-inline-editor[open] > summary { border-bottom: 1px solid var(--sp-profile-line); }
.sp-profile-inline-editor .sp-core-shell { width: 100%; max-width: none; margin: 0; border: 0; border-radius: 0; box-shadow: none; }
.sp-profile-song { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 13px 0 0; }
.sp-profile-song-button { display: inline-flex; min-height: 39px; align-items: center; gap: 8px; padding: 8px 13px; color: var(--sp-profile-ink); background: var(--sp-profile-raised); border: 1px solid var(--sp-profile-line); border-radius: 999px; cursor: pointer; font: inherit; font-size: .75rem; font-weight: 850; }
.sp-profile-song-button:hover, .sp-profile-song-button[aria-pressed="true"] { color: #111; background: var(--sp-profile-blue); }
.sp-profile-song-hint { color: var(--sp-profile-muted); font-size: .72rem; }
.sp-profile-song-player { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sp-profile-content { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(260px, .85fr); gap: 20px; margin-top: 22px; align-items: start; }
.sp-profile-main-column,
.sp-profile-side-column { display: grid; gap: 20px; }
.sp-profile-panel { min-width: 0; padding: clamp(20px, 3vw, 30px); border: 1px solid var(--sp-profile-line); background: var(--sp-profile-surface); }
.sp-profile-panel > header { margin-bottom: 18px; }
.sp-profile-panel h2 { margin: 5px 0 0; color: var(--sp-profile-ink); font-family: var(--sp-font-display, Georgia, serif); font-size: clamp(1.4rem, 2.5vw, 1.85rem); line-height: 1.1; }
.sp-profile-wall-form { display: grid; gap: 9px; margin: 0 0 20px; }
.sp-profile-wall-form label { font-size: .86rem; font-weight: 800; }
.sp-profile-wall-form textarea { width: 100%; min-height: 86px; padding: 11px 12px; color: var(--sp-profile-ink); background: var(--sp-profile-raised); border: 1px solid var(--sp-profile-line); border-radius: 7px; font: inherit; resize: vertical; }
.sp-profile-wall-form textarea:focus { outline: 3px solid color-mix(in srgb, var(--sp-profile-blue) 55%, transparent); outline-offset: 2px; }
.sp-profile-wall-form small { color: var(--sp-profile-muted); }
.sp-profile-button { justify-self: start; min-height: 40px; padding: 9px 14px; color: #111; background: var(--sp-profile-blue); border: 1px solid var(--sp-profile-ink); border-radius: 5px; cursor: pointer; font: inherit; font-size: .72rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.sp-profile-wall-status { padding: 11px 13px; border-left: 4px solid var(--sp-profile-blue); background: var(--sp-profile-raised); font-weight: 700; }
.sp-profile-wall-list { display: grid; gap: 12px; }
.sp-profile-wall-note { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 12px; padding: 13px; background: var(--sp-profile-raised); border-radius: 8px; }
.sp-profile-wall-note > img { width: 42px; height: 42px; border-radius: 50%; }
.sp-profile-wall-note header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; }
.sp-profile-wall-note time, .sp-profile-wall-note p { color: var(--sp-profile-muted); font-size: .86rem; }
.sp-profile-wall-note p { margin: 7px 0 0; white-space: pre-wrap; }
.sp-profile-medals { display: grid; gap: 13px; }
.sp-profile-medal { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--sp-profile-line); border-radius: 8px; background: var(--sp-profile-raised); }
.sp-profile-medal-mark { display: grid; width: 48px; height: 48px; place-items: center; color: #fff; background: linear-gradient(145deg, #d5ad52, #8f651e); border: 3px double #f8e3a6; border-radius: 50% 50% 48% 48%; box-shadow: 0 4px 0 #75521b; font-size: 1.3rem; }
.sp-profile-medal b, .sp-profile-medal strong, .sp-profile-medal small { display: block; }
.sp-profile-medal b { color: var(--sp-profile-muted); font-size: .63rem; letter-spacing: .08em; text-transform: uppercase; }
.sp-profile-medal strong { margin-top: 2px; font-size: .94rem; }
.sp-profile-medal small { margin-top: 2px; color: var(--sp-profile-muted); }
.sp-profile-about > p { margin: 0; color: var(--sp-profile-ink); line-height: 1.7; }
.sp-profile-muted { color: var(--sp-profile-muted) !important; }
.sp-profile-website { display: inline-flex; gap: 7px; margin-top: 16px; color: var(--sp-profile-ink); font-weight: 850; text-decoration-color: var(--sp-profile-pink); text-underline-offset: 3px; }
.sp-profile-post-list { display: grid; gap: 12px; }
.sp-profile-post { padding: 17px; border: 1px solid var(--sp-profile-line); border-left: 4px solid var(--sp-profile-blue); background: var(--sp-profile-raised); }
.sp-profile-post time { color: var(--sp-profile-muted); font-size: .7rem; font-weight: 800; }
.sp-profile-post h3 { margin: 8px 0; font-family: var(--sp-font-display, Georgia, serif); font-size: 1.12rem; line-height: 1.25; }
.sp-profile-post h3 a { color: var(--sp-profile-ink); text-decoration-thickness: 2px; text-decoration-color: var(--sp-profile-pink); text-underline-offset: 3px; }
.sp-profile-post p { margin: 0 0 12px; color: var(--sp-profile-muted); line-height: 1.55; }
.sp-profile-post-link { color: var(--sp-profile-ink); font-size: .7rem; font-weight: 900; letter-spacing: .04em; text-decoration: none; text-transform: uppercase; }
.sp-profile-managed ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.sp-profile-managed li { display: grid; gap: 5px; padding: 12px; border: 1px solid var(--sp-profile-line); background: var(--sp-profile-raised); }
.sp-profile-managed li > span { color: var(--sp-profile-muted); font-size: .63rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.sp-profile-managed li a { color: var(--sp-profile-ink); font-weight: 850; text-decoration: none; }
.sp-profile-managed li a b { color: var(--sp-profile-pink); }
.sp-profile-note { padding: 22px; border-top: 4px solid var(--sp-profile-pink); background: var(--sp-profile-ink); color: #fff; }
.sp-profile-note > span { display: block; color: var(--sp-profile-blue); font-size: 2.1rem; font-weight: 950; letter-spacing: -.08em; line-height: 1; }
.sp-profile-note p { margin: 12px 0 0; color: #fff; font-size: .9rem; font-weight: 650; line-height: 1.55; }
.sp-profile-private { max-width: 700px; margin: 60px auto; padding: clamp(28px, 5vw, 54px); border: 1px solid var(--sp-profile-line); border-top: 5px solid var(--sp-profile-pink); background: var(--sp-profile-surface); }
.sp-profile-private h1 { margin: 10px 0; font-family: var(--sp-font-display, Georgia, serif); }
.sp-profile-private p { color: var(--sp-profile-muted); }
@media (max-width: 780px) {
  .sp-profile-hero { grid-template-columns: 1fr; gap: 22px; padding: 20px; }
  .sp-profile-feature { width: 100%; }
  .sp-profile-content { grid-template-columns: 1fr; }
  .sp-profile-side-column { grid-row: 1; }
}
@media (max-width: 480px) {
  .sp-public-profile { width: min(100% - 20px, 1120px); margin: 18px auto 28px; }
  .sp-profile-identity { align-items: flex-start; gap: 15px; }
  .sp-profile-avatar { width: 82px; height: 82px; border-width: 4px; }
  .sp-profile-intro h1 { font-size: 2rem; }
  .sp-profile-meta { gap: 5px; }
  .sp-profile-meta span { font-size: .62rem; }
  .sp-profile-panel { padding: 18px; }
}
