.social-profile {box-sizing:border-box;width:min(520px,calc(100vw - 28px));max-width:none;height:min(820px,calc(100dvh - 28px));max-height:none;margin:auto;padding:0;overflow:hidden;border:1px solid var(--border);border-radius:24px;background:var(--surface);color:var(--text);box-shadow:0 28px 90px #0005;}
.social-profile:not([open]){display:none}.social-profile::backdrop{background:#060d1b99;backdrop-filter:blur(5px)}
.social-profile *{box-sizing:border-box}.social-profile [hidden]{display:none!important}
.social-profile__bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 16px;border-bottom:1px solid var(--border);font-size:15px;font-weight:600}
.social-profile button,.social-profile__full{font:inherit;color:inherit;cursor:pointer;min-width:44px;min-height:44px;border:1px solid var(--border);border-radius:14px;background:var(--surface-2);padding:10px 14px;text-decoration:none;transition:background .16s ease,transform .16s ease;}
.social-profile button:active{transform:scale(.97)}.social-profile button:disabled{opacity:.55;cursor:default}
.social-profile :is(button,a):focus-visible,.social-profile-link:focus-visible,#thread-name:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
.social-profile__bar button{display:grid;place-items:center;border:0;background:transparent;padding:10px}
.social-profile__scroll{height:calc(100% - 61px);overflow:auto;overscroll-behavior:contain;padding:20px 20px max(24px,env(safe-area-inset-bottom));}
.social-profile__hero{text-align:center;padding:8px 0 10px}.social-profile__hero h2{font-size:24px;line-height:1.22;letter-spacing:-.5px;margin:14px 0 4px;overflow-wrap:anywhere}
.social-profile__handle{color:var(--text-muted);font-size:14px;margin:4px 0}.social-profile__bio{font-size:14px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere;margin:12px 0 0}.social-profile__bio:empty,.social-profile__handle:empty,[data-sp-status]:empty{display:none}
.social-profile__portrait{position:relative;display:grid;place-items:center;width:92px;height:92px;margin:auto;border-radius:50%;background:var(--accent-soft,var(--surface-2));color:var(--text);font-size:32px;font-weight:650;overflow:hidden}
.social-profile__portrait img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.social-profile .social-profile__avatar-story{border:3px solid var(--accent);background:transparent;padding:4px;border-radius:50%;box-shadow:0 0 0 4px var(--accent-soft,var(--surface-2));}
.social-profile__actions{display:flex;justify-content:center;flex-wrap:wrap;gap:8px;margin:14px 0 24px}.social-profile .social-profile__primary{background:var(--accent);color:var(--accent-ink,#fff);border-color:transparent;font-weight:600}
.social-profile section{margin:24px 0}.social-profile h3{font-size:16px;letter-spacing:-.15px;margin:0 0 12px}.social-profile__empty{grid-column:1/-1;margin:0;padding:16px;border:1px dashed var(--border);border-radius:16px;color:var(--text-muted);font-size:14px;line-height:1.5;width:100%}
.social-profile__stories{display:flex;gap:14px;overflow:auto;padding:3px 1px 6px;scrollbar-width:thin}.social-profile .social-profile__story{display:flex;flex-direction:column;align-items:center;gap:6px;flex:0 0 66px;padding:0;background:transparent;border:0;font-size:12px}
.social-profile__story-ring{display:grid;place-items:center;width:62px;height:62px;border:2px solid var(--accent);border-radius:50%;padding:3px;background:var(--surface-2);overflow:hidden}.social-profile__story-ring img{width:100%;height:100%;object-fit:cover;border-radius:50%}
.social-profile__videos{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.social-profile .social-profile__video{position:relative;isolation:isolate;aspect-ratio:3/4;min-width:0;padding:0;border:0;border-radius:14px;overflow:hidden;background:var(--surface-2);color:var(--text);}
.social-profile__video video{display:block;width:100%;height:100%;object-fit:cover;pointer-events:none}.social-profile__play{position:absolute;inset:0;display:grid;place-items:center;color:white;filter:drop-shadow(0 1px 3px #000a);pointer-events:none}.social-profile__caption{position:absolute;inset:auto 0 0;background:linear-gradient(transparent,#000c);color:#fff;text-align:left;font-size:11px;line-height:1.35;padding:24px 8px 8px;max-height:75%;overflow:hidden;overflow-wrap:anywhere;pointer-events:none}.social-profile__video--unavailable .social-profile__play{color:var(--text)}
.social-profile [data-sp-more]{width:100%;margin-top:12px}.social-profile__full{display:flex;align-items:center;justify-content:center;gap:8px;text-align:center;font-size:13px!important;margin-top:24px}.social-profile [data-sp-status]{color:var(--text-muted);font-size:14px;line-height:1.5}
.social-profile-link{font:inherit;color:inherit;background:transparent;border:0;padding:0;min-height:32px;text-align:left;cursor:pointer}.settings-profile button.settings-profile__avatar{border:0;padding:0;cursor:pointer;flex-shrink:0}
#thread-name{display:block;width:100%;text-align:left;padding:0;border:0;background:transparent;color:inherit;font:inherit;font-weight:600;min-height:28px;cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#thread-name:disabled{cursor:default}
@media(max-width:600px){.social-profile{width:100vw;height:100dvh;border:0;border-radius:0}.social-profile__bar{padding-top:max(8px,env(safe-area-inset-top))}.social-profile__scroll{padding:16px 16px max(24px,env(safe-area-inset-bottom));height:calc(100% - 61px - env(safe-area-inset-top))}.social-profile__portrait{width:84px;height:84px}}
@media(prefers-reduced-motion:reduce){.social-profile *{animation:none!important;transition:none!important;scroll-behavior:auto!important}.social-profile button:active{transform:none}}

/* Keep author actions interactive over the non-interactive video shade. */
.clip-slide__author { pointer-events: auto; }

.clip-slide__follow:not(.is-busy) { pointer-events: auto; }
