/* Shared post page (sarely.online/p/<id>). 342: the video plays as a short preview, the author has a photo and a "Follow in the app" button, the numbers sit
   next to the icons, photos are large and swipeable. Mobile first; light and dark follow the visitor's system (the tokens come from styles.css). */
.shared-page{max-width:640px;margin:auto;padding:14px 0 24px;min-height:100dvh}
.shared-header{display:flex;align-items:center;justify-content:space-between;padding:0 16px 10px;gap:16px}
.shared-header>a:first-child{display:flex;align-items:center;gap:9px;font-weight:650;letter-spacing:3px;text-decoration:none;color:var(--ink)}
.shared-enter{font-size:13px;padding:10px 15px;border:1px solid var(--line);border-radius:24px;color:var(--ink);text-decoration:none;min-height:44px;display:flex;align-items:center}
.shared-page a:focus-visible,.shared-page button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}

/* Author: photo (or the initial), name, @username, and the button to the app. */
.shared-author{display:flex;align-items:center;gap:12px;padding:10px 16px 12px}
.shared-avatar342{position:relative;flex:none;width:56px;height:56px;border-radius:50%;overflow:hidden;display:grid;place-items:center;background:var(--soft);color:var(--ink);font-size:22px;font-weight:650;text-decoration:none}
.shared-avatar342 img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:50%;background:var(--soft)}
.shared-who342{min-width:0;flex:1}
.shared-who342 .shared-name348{margin:0;font-size:19px;line-height:1.25;font-weight:650;letter-spacing:-.2px;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden}
.shared-who342 p{margin:2px 0 0;font-size:15px;color:var(--muted);overflow-wrap:anywhere}
.shared-follow342{flex:none;display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 16px;border-radius:22px;background:var(--ink);color:var(--bg);font-size:14px;font-weight:650;text-decoration:none;white-space:nowrap}
@media(max-width:359px){.shared-author{flex-wrap:wrap}.shared-follow342{width:100%}}

/* Media: one strip you can swipe. A photo is shown as large as the screen allows; the video has its own box. */
.shared-stage342{position:relative;background:#000}
.shared-media{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:none;background:#000}
.shared-media::-webkit-scrollbar{display:none}
.shared-media>img{flex:0 0 100%;width:100%;scroll-snap-align:start;object-fit:contain;max-height:min(72dvh,820px);background:#000}
.shared-video{position:relative;flex:0 0 100%;width:100%;scroll-snap-align:start;background:#000;overflow:hidden}
.shared-video video{display:block;width:100%;height:100%;object-fit:contain;background:#000}
.shared-player342{min-height:min(58dvh,500px);max-height:min(68dvh,700px);display:grid;align-items:center}
.shared-player342 [hidden]{display:none!important}
.shared-poster342{position:absolute;inset:0;display:grid;place-items:center;background:radial-gradient(circle at 50% 45%,#1d2733,#06090d 72%)}
.shared-mute{position:absolute;right:14px;bottom:14px;width:44px;height:44px;display:grid;place-items:center;color:#fff;border:1px solid #ffffff32;border-radius:50%;background:#151c24b3;backdrop-filter:blur(12px)}
.shared-mute svg{width:22px;height:22px}
.shared-playbtn342{position:absolute;inset:0;margin:auto;width:72px;height:72px;display:grid;place-items:center;border-radius:50%;border:1px solid #ffffff40;background:#151c24b3;color:#fff;backdrop-filter:blur(12px)}
.shared-playbtn342 svg{width:30px;height:30px}
.shared-pager342{position:absolute;top:12px;right:12px;margin:0;padding:4px 10px;border-radius:14px;background:#0009;color:#fff;font-size:12px;font-weight:650;font-variant-numeric:tabular-nums;pointer-events:none}
.shared-media-error{position:absolute;bottom:8px;left:12px;right:12px;padding:16px;background:var(--surface);border-radius:12px}
.shared-media-error a{color:inherit}

/* The download notice that replaces the video after the preview (and the box that only offers the app). It is calm: a title, one button, one quiet link. */
.shared-notice342{position:absolute;inset:0;display:grid;align-content:center;justify-items:center;gap:12px;padding:24px;text-align:center;background:#060a0ec7;backdrop-filter:blur(10px);color:#fff}
.shared-notice-title342{margin:0;max-width:320px;font-size:19px;line-height:1.3;font-weight:650}
.shared-notice342 .button.primary{min-height:48px;padding:0 26px;display:inline-flex;align-items:center;justify-content:center;border-radius:24px;background:#fff;color:#0b1015;text-decoration:none;font-weight:650}
.shared-notice-keep342{min-height:44px;padding:0 16px;background:none;border:0;color:#ffffffd9;font-size:15px;font-weight:600;text-decoration:underline;text-underline-offset:4px}
.shared-noscript342{margin:16px;display:flex;justify-content:center;text-decoration:none}

/* Numbers next to the icons (public totals); the two quiet icons on the right have none. */
.shared-actions{display:flex;align-items:center;gap:2px;margin:6px 8px 0}
.shared-stat342{display:inline-flex;align-items:center;gap:6px;min-height:44px;min-width:44px;padding:0 10px;border-radius:14px;color:var(--ink);text-decoration:none;font-size:14px;font-weight:600;font-variant-numeric:tabular-nums;justify-content:center}
.shared-stat342 svg{width:24px;height:24px}
.shared-stat342:active{background:var(--surface);transform:scale(.97)}
.shared-spacer342{flex:1}
.shared-caption{padding:6px 16px 0;margin:0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:16px;line-height:1.5}
h1.shared-caption{font-weight:400;letter-spacing:normal;text-transform:none;font-family:inherit;font-size:16px;line-height:1.5}
.shared-bio348{padding:6px 16px 0;margin:0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:16px;line-height:1.5}
.shared-counts348{display:flex;gap:20px;padding:10px 16px 0;margin:0;color:var(--muted);font-size:15px}
.shared-counts348 strong{color:var(--text,inherit);font-weight:650}
.shared-date{padding:4px 16px 0;margin:6px 0 0;color:var(--muted);font-size:13px}
.shared-join{margin:20px 16px;padding:18px;border-radius:22px;background:var(--surface);border:1px solid var(--line)}
.shared-join p{font-size:14px;line-height:1.5;margin-top:0;color:var(--muted)}
.shared-join .button{width:100%;text-align:center;text-decoration:none;display:block}
.shared-creator2099,.shared-store2099{display:flex;align-items:center;min-height:44px;margin-top:10px;color:var(--ink);font-size:14px;font-weight:600;text-underline-offset:4px}
.shared-join .shared-install2099{font-size:12px;margin:12px 0 0;overflow-wrap:anywhere}
.shared-unavailable{padding:32px 18px}
.shared-unavailable h1{font-size:23px}
.shared-page .legal-links{padding:12px 18px}

/* 320: the box that only offers the app (video switch off, or a 360 / immersive video). */
.shared-media>.shared-locked320,.shared-fallback342>.shared-locked320{flex:0 0 100%;width:100%;scroll-snap-align:start;display:grid;place-content:center;justify-items:center;gap:10px;min-height:min(62dvh,460px);padding:28px 22px;text-align:center;background:var(--surface);color:var(--ink);border-block:1px solid var(--line)}
.shared-fallback342{position:absolute;inset:0;display:grid}
.shared-play320{display:grid;place-items:center;width:64px;height:64px;border-radius:50%;background:var(--ink);color:var(--bg)}
.shared-play320 svg{width:28px;height:28px}
.shared-poster342 .shared-play320{background:#ffffff1f;color:#fff}
.shared-locked-kind320{margin:0;font-size:12px;letter-spacing:.04em;color:var(--muted)}
.shared-locked-text320{margin:0;font-size:15px;line-height:1.5;max-width:300px;color:var(--ink)}
.shared-locked-cta320{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 22px;margin-top:4px;text-decoration:none}
@media(prefers-reduced-motion:reduce){.shared-stat342:active{transform:none}}
@media(min-width:720px){.shared-page{padding-top:30px}.shared-post{border:1px solid var(--line);border-radius:24px;overflow:hidden}}

/* 2229: the shared PROFILE page (/u/<user>): photo, name, numbers, the grid of public posts and the «open in SARELY» card. Same tokens as above
   (light and dark follow the visitor's system); thin lines, nothing big. */
.profile2229{padding-top:4px}
.head2229{display:flex;align-items:center;gap:16px;padding:6px 16px 2px}
.avatar2229{position:relative;flex:none;width:84px;height:84px;border-radius:50%;border:1px solid var(--line);padding:2px;display:grid;place-items:center;background:var(--soft);color:var(--ink);font-size:30px;font-weight:650;overflow:hidden}
.avatar2229 img{position:absolute;inset:2px;width:calc(100% - 4px);height:calc(100% - 4px);border-radius:50%;object-fit:cover;background:var(--soft)}
.head2229 .shared-name348{font-size:20px}
.profile2229 .shared-counts348{display:flex;flex-wrap:wrap;gap:6px 20px;margin:0;padding:12px 16px 0;font-size:14px;color:var(--muted)}
.profile2229 .shared-counts348 strong{color:var(--ink);font-weight:650;margin-right:3px}
.profile2229 .shared-bio348{margin:0;padding:10px 16px 0;font-size:14px;line-height:1.45;white-space:pre-line;overflow-wrap:anywhere;color:var(--ink)}
.actions2229{display:flex;gap:8px;padding:14px 16px 16px}
.actions2229 .main2229{flex:1;border-radius:12px}
.actions2229 .alt2229{flex:none;min-height:44px;padding:0 18px;border:1px solid var(--line);border-radius:12px;background:transparent;color:var(--ink);font:inherit;font-size:14px;cursor:pointer}
.actions2229 .alt2229[hidden]{display:none}
.grid2229{display:grid;grid-template-columns:repeat(3,1fr);gap:2px;border-top:1px solid var(--line);padding-top:2px}
.tile2229{position:relative;display:block;aspect-ratio:3/4;overflow:hidden;background:var(--soft)}
.tile2229 img{display:block;width:100%;height:100%;object-fit:cover}
.blank2229{position:absolute;inset:0;background:linear-gradient(160deg,var(--soft),var(--surface))}
.play2229{position:absolute;top:7px;right:7px;width:16px;height:16px;fill:#fff;filter:drop-shadow(0 1px 2px rgba(0,0,0,.6))}
.empty2229{margin:0;padding:28px 16px;text-align:center;color:var(--muted);font-size:14px;border-top:1px solid var(--line)}
.dim2229{position:fixed;inset:0;z-index:20;background:rgba(0,0,0,.5)}
.sheet2229{position:fixed;left:0;right:0;bottom:0;z-index:21;max-width:640px;margin:0 auto;padding:10px 22px calc(24px + env(safe-area-inset-bottom));text-align:center;
 background:var(--surface);background:color-mix(in srgb,var(--surface) 88%,transparent);backdrop-filter:blur(24px) saturate(1.4);-webkit-backdrop-filter:blur(24px) saturate(1.4);
 border-top:1px solid var(--line);border-radius:22px 22px 0 0;box-shadow:0 -10px 40px rgba(0,0,0,.25)}
.dim2229[hidden],.sheet2229[hidden]{display:none}
.handle2229{display:block;width:36px;height:4px;margin:0 auto 12px;border-radius:2px;background:var(--line)}
.close2229{position:absolute;top:10px;right:12px;width:32px;height:32px;border:0;border-radius:50%;background:var(--soft);color:var(--muted);font-size:15px;line-height:1;cursor:pointer}
.sheet2229 .avatar2229{width:64px;height:64px;margin:4px auto 12px;font-size:24px}
.sheet2229 h2{margin:0 0 6px;font-size:19px;font-weight:650;letter-spacing:-.2px;color:var(--ink)}
.sheet2229 p{margin:0 0 18px;font-size:14px;color:var(--muted);overflow-wrap:anywhere}
.open2229{display:flex;align-items:center;justify-content:center;min-height:48px;border-radius:14px;background:var(--ink);color:var(--bg);font-size:15px;font-weight:650;text-decoration:none}
.more2229{display:inline-flex;align-items:center;min-height:44px;margin-top:6px;color:var(--ink);font-size:14px;text-decoration:none;opacity:.85}
@media(prefers-reduced-transparency:reduce){.sheet2229{background:var(--surface);backdrop-filter:none;-webkit-backdrop-filter:none}}
