.social-stack {background:#fbfbfa;border:1px solid #dededb;color:#18191b;border-radius:22px;overflow:hidden;font-family:Inter,Arial,sans-serif;--device:clamp(220px,21.4vw,254px);--height:calc(var(--device)*2.03)}
.stack-toolbar,.stack-footer {display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px clamp(16px,3.2vw,44px)}
.stack-toolbar {padding-bottom:0}.stack-toolbar label,.stack-number,.stack-original,.stack-byline {font-size:.875rem}
.stack-toolbar label {display:flex;align-items:center;gap:9px;font-weight:550}.stack-toolbar select {color:#202124;background:white;border:1px solid #d5d5d3;border-radius:18px;padding:7px 10px;font:inherit}
.stack-number {margin-left:auto;font-family:ui-monospace,monospace;font-variant-numeric:tabular-nums;letter-spacing:.04em}.stack-number i {font-style:normal;color:#737478}
.stack-display {height:calc(var(--height) + 75px);position:relative;isolation:isolate;touch-action:pan-y;user-select:none;overflow:hidden;background:radial-gradient(ellipse at 50% 85%,#dededb 0%,#f7f7f5 33%,#fbfbfa 72%);}
.stack-display:after {content:"";position:absolute;inset:0;z-index:12;pointer-events:none;background:linear-gradient(to right,#fbfbfa 0%,transparent 8%,transparent 92%,#fbfbfa)}
.stack-slot,.stack-rim {position:absolute;left:50%;top:50%;height:var(--height);width:var(--device);box-sizing:border-box;transform:translate(-50%,-50%)}
.stack-slot {padding:0;overflow:hidden;box-shadow:0 10px 24px #15171d35;transition:transform .42s cubic-bezier(.2,.77,.22,1),filter .4s}.stack-side {border:none;border-radius:18px;display:block;background:#ccc;cursor:pointer;z-index:3}
.stack-slot[data-position="-1"] {transform:translate(-112%,-50%) scale(.80)}.stack-slot[data-position="1"] {transform:translate(12%,-50%) scale(.80)}
.stack-slot[data-position="-2"] {transform:translate(-175%,-50%) scale(.72);z-index:2;filter:brightness(.82)}.stack-slot[data-position="2"] {transform:translate(75%,-50%) scale(.72);z-index:2;filter:brightness(.82)}
.stack-slot[data-position="-3"] {transform:translate(-231%,-50%) scale(.65);z-index:1;filter:brightness(.71)}.stack-slot[data-position="3"] {transform:translate(131%,-50%) scale(.65);z-index:1;filter:brightness(.71)}
.stack-side:hover {filter:brightness(1.06)}.stack-active {z-index:6;border-radius:calc(var(--device)*.17);border:6px solid #151619;background:#191b1d;}
.stack-rim {z-index:8;border-radius:calc(var(--device)*.17);border:3px solid #383d44;outline:1px solid #777a7e;box-shadow:inset 1px 1px 3px #b4b6b7,0 14px 22px #11121745;pointer-events:none}
.stack-rim i,.stack-rim b {position:absolute;left:50%;transform:translateX(-50%);border-radius:25px;display:block}
.stack-rim i {top:3.2%;width:31%;height:4.4%;background:radial-gradient(circle at 84% 45%,#313547,#0c0c0d 11%);box-shadow:0 0 1px #292929}
.stack-rim b {bottom:2.8%;width:29%;height:3px;background:#fff;box-shadow:0 0 2px #0007}
.stack-screen,.stack-face {display:block;width:100%;height:100%;position:relative;overflow:hidden}
.stack-face img {display:block;width:100%;height:100%;object-fit:cover;pointer-events:none}
.stack-picture {background:#252a2e}.stack-picture:after {content:"";position:absolute;inset:45% 0 0;background:linear-gradient(transparent,#0006)}
.stack-network {position:absolute;z-index:1;left:9%;bottom:7%;padding:5px 9px;border-radius:20px;display:inline-flex;align-items:center;gap:5px;color:#fff;background:#171719e8;font:600 .8rem/1.3 Inter,Arial,sans-serif}
.stack-network svg {width:16px;height:16px}
.stack-paper {color:#202124;background:linear-gradient(140deg,#e7e5dd,#fafaf6 57%,#dbdad3);display:grid;align-content:center;text-align:left}
.stack-quote {padding:0 10%;overflow:hidden}.stack-quote>span {display:block;font:4rem/.65 Georgia,serif;color:#61605b}.stack-quote p {margin:0!important;font:550 clamp(.9rem,1.45vw,1.25rem)/1.21 Inter,Arial,sans-serif;letter-spacing:-.035em;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:8;-webkit-box-orient:vertical;overflow:hidden}
.stack-quote b {display:block;margin-top:1em;font:.8rem/1.3 Inter,Arial,sans-serif}.stack-active .stack-face {animation:social-reveal .38s ease-out}
@keyframes social-reveal {from{opacity:.68;transform:scale(1.045)}to{opacity:1;transform:scale(1)}}
.stack-footer {align-items:center;border-top:1px solid #e1e2de;min-height:96px;background:#fff}.stack-story{max-width:72ch;min-width:0}.stack-byline{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;margin:0 0 5px}.stack-byline time{color:#626365}
.stack-caption {margin:0;font:500 clamp(1rem,1.4vw,1.16rem)/1.45 Inter,Arial,sans-serif;overflow-wrap:anywhere}.stack-original{display:inline-block;margin-top:6px;color:inherit;text-underline-offset:3px}
.stack-controls {display:flex;flex:none;gap:5px}.stack-controls button {width:44px;height:44px;display:grid;place-items:center;border:1px solid #d4d5d1;background:white;color:#18191b;border-radius:50%;cursor:pointer}.stack-controls button:hover {background:#eeefec}
.stack-screen:focus-visible {outline:4px solid white;outline-offset:-9px}.social-stack :is(button,select,a):focus-visible{outline:3px solid #2471a9;outline-offset:-3px}
@media(max-width:600px){.social-stack{--device:clamp(220px,55vw,240px);border-radius:15px}.stack-display{height:calc(var(--height) + 48px)}.stack-toolbar{padding-top:12px}.stack-toolbar label{font-size:.82rem}.stack-footer{flex-wrap:wrap;gap:12px;padding-top:14px;padding-bottom:14px}.stack-controls{margin-left:auto}.stack-controls button{width:42px;height:42px}.stack-side{border-radius:12px}}
@media(prefers-reduced-motion:reduce){.stack-slot{transition:none}.stack-active .stack-face{animation:none}}

.stack-network{padding:6px;left:auto;right:8%;bottom:6%;border-radius:50%;width:27px;height:27px;box-sizing:border-box;justify-content:center}
.stack-video-screen{background:#111}.stack-inline-player,.stack-inline-player .social-video-youtube,.stack-inline-player iframe,.stack-inline-player video{position:absolute;inset:0;width:100%;height:100%;border:0}
.stack-inline-player video{object-fit:contain;background:#121212}.stack-video-screen .stack-network{z-index:3}
.stack-video-screen:not(.youtube-surface) .stack-face{overflow:visible}.stack-video-screen:not(.youtube-surface) .stack-network{position:absolute}
.youtube-surface .stack-inline-player{inset:12% 0 14%;height:74%;background:#111}
.youtube-surface:has(.stack-inline-player) .stack-face>img,.youtube-surface:has(.stack-inline-player) .stack-face:after{opacity:0}
.youtube-surface:has(.stack-inline-player) .stack-face{background:#141414}
.stack-controls .stack-motion{width:auto;min-width:56px;padding:0 10px;border-radius:24px;font:550 .82rem Inter,Arial,sans-serif}
