/* Soundkin fixes and additions that came out of testing in a real browser. Loaded last. */

/* Edit profile photo. The frame is a plain block with a fixed square, the picture fills it from an
   absolutely positioned layer and is clipped by its own wrapper, so any photo shape stays round and inside. */
.sk-set-avatar{display:block;overflow:visible}
.sk-set-avatar-img{position:absolute;inset:0;display:grid;place-items:center;overflow:hidden;border-radius:50%;background:var(--sk-grad-btn)}
.sk-set-avatar .sk-set-avatar-img img{position:absolute;inset:0;width:100%;height:100%;max-width:none;border-radius:0;object-fit:cover}

/* sign in and sign up hero */
.sk-auth-sub{max-width:30em;margin:18px 0 0;color:var(--sk-text-2);font:400 clamp(15px,1.5vw,18px)/1.55 var(--sk-font)}

/* upload progress when the size is not known */
.sk-composer-progress.is-indeterminate span{width:38%;animation:sk-indeterminate 1.1s ease-in-out infinite}
@keyframes sk-indeterminate{0%{transform:translateX(-110%)}100%{transform:translateX(280%)}}

/* the lockup line under the wordmark: tighter spacing so Music, Creators, Connections fits the wordmark width */
.sk-lockup-line{letter-spacing:.2em;gap:.55em}

/* Empty states. The neon illustrations replace the small icon circle where there is a matching picture.
   Written as a style rule on the icon name, so the pages that show empty states do not each need changing.
   Browsers without :has() keep the plain icon circle. */
.sk-empty-icon:has(svg[data-icon="note"]),
.sk-empty-icon:has(svg[data-icon="market"]),
.sk-empty-icon:has(svg[data-icon="search"]),
.sk-empty-icon:has(svg[data-icon="messages"]),
.sk-empty-icon:has(svg[data-icon="bell"]),
.sk-empty-icon:has(svg[data-icon="download"]){width:168px;height:168px;margin:-8px 0 0;border-radius:0;background:center / contain no-repeat;mix-blend-mode:lighten;-webkit-mask-image:radial-gradient(closest-side,#000 70%,transparent 100%);mask-image:radial-gradient(closest-side,#000 70%,transparent 100%)}
.sk-empty-icon:has(svg[data-icon="note"]),.sk-empty-icon:has(svg[data-icon="market"]){background-image:url(/empty/feed.webp)}
.sk-empty-icon:has(svg[data-icon="search"]){background-image:url(/empty/search.webp)}
.sk-empty-icon:has(svg[data-icon="messages"]){background-image:url(/empty/messages.webp)}
.sk-empty-icon:has(svg[data-icon="bell"]){background-image:url(/empty/notifications.webp)}
.sk-empty-icon:has(svg[data-icon="download"]){background-image:url(/empty/upload.webp)}
.sk-empty-icon:has(svg[data-icon="note"]) svg,.sk-empty-icon:has(svg[data-icon="market"]) svg,.sk-empty-icon:has(svg[data-icon="search"]) svg,
.sk-empty-icon:has(svg[data-icon="messages"]) svg,.sk-empty-icon:has(svg[data-icon="bell"]) svg,.sk-empty-icon:has(svg[data-icon="download"]) svg{display:none}
.sk-msg-empty .sk-empty-icon:has(svg[data-icon="messages"]){width:168px;height:168px;margin:-8px auto 0}
/* the same art on the 404 and error screens */
.sk-state-art{display:block;width:160px;height:160px;margin:-12px 0 4px -8px;mix-blend-mode:lighten;-webkit-mask-image:radial-gradient(closest-side,#000 70%,transparent 100%);mask-image:radial-gradient(closest-side,#000 70%,transparent 100%)}
