/* Scopri: a bright frame around an immersive vertical video feed. */
.rail{gap:28px}.rail nav{gap:10px}
.social-view{flex:1;display:flex;flex-direction:column;min-height:0;overflow:hidden;padding:24px 4% 12px;background:radial-gradient(ellipse at 100% 0,#eee4ff,transparent 65%),#fcfaff}
.social-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-shrink:0}
.social-heading h1{font-family:var(--heading);font-weight:850;font-size:35px;letter-spacing:-1.5px;margin:9px 0 0}.social-heading h1 span{color:var(--orange)}
.social-upload-button{display:flex;align-items:center;justify-content:center;gap:8px;background:var(--orange);color:var(--orange-ink);border:1.5px solid #ed8951;padding:13px 18px;border-radius:14px;box-shadow:0 4px 0 #f1d0bd;font-size:13px;white-space:nowrap;min-height:46px}
.social-upload-button svg{height:19px;width:19px}
.social-tabs{display:flex;align-items:center;gap:8px;margin:18px 0;flex-shrink:0}
.social-tabs button{padding:10px 16px;min-height:42px;background:white;border:1.5px solid #e3d9f0;border-radius:12px;color:#755e86;font-size:12px;font-weight:800}
.social-tabs button.active{background:var(--violet);border-color:var(--violet);color:#fff;box-shadow:0 3px 0 #d9c7f7}
.social-tabs button span{margin-left:5px;padding:2px 6px;border-radius:5px;background:#bda3f12b}
.social-session-label{margin-left:auto;color:#8c7b9a;font-size:9px;font-weight:800;letter-spacing:1.2px}
.social-layout{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) 265px;gap:30px;max-width:1080px;width:100%;margin:0 auto}
.social-stage{position:relative;min-height:0;width:min(100%,420px);height:100%;margin:0 auto}
.social-feed{position:relative;width:100%;height:100%;overflow-y:auto;overflow-x:hidden;scroll-snap-type:y mandatory;overscroll-behavior:contain;scrollbar-width:none;border-radius:26px;background:#20172f;box-shadow:0 8px 28px #49327925}
.social-feed::-webkit-scrollbar{display:none}.social-feed:focus-visible{outline:3px solid #a586f1;outline-offset:4px}
.short-card{isolation:isolate;height:100%;min-height:350px;position:relative;scroll-snap-align:start;scroll-snap-stop:always;overflow:hidden;border-radius:26px;background:#20172f;margin-bottom:12px;color:#fff}
.short-card:last-child{margin-bottom:0}.short-video{width:100%;height:100%;display:block;object-fit:contain;background:#211530}
.short-shade{position:absolute;inset:0 0 48px;background:linear-gradient(180deg,#170a2533,transparent 26%,transparent 38%,#170a25bb 90%);pointer-events:none;z-index:1}
.short-topline{position:absolute;top:17px;left:16px;right:16px;display:flex;align-items:center;justify-content:space-between;gap:7px;pointer-events:none;z-index:2}
.short-topline>span:first-child{display:flex;gap:6px;align-items:center;font-size:10px;font-weight:750;padding:7px 9px;background:#2c1b4e66;border:1px solid #ffffff33;border-radius:20px;backdrop-filter:blur(8px)}
.short-topline svg{width:14px;height:14px}.short-demo-badge{font-size:8px;letter-spacing:.7px;font-weight:750;text-shadow:0 1px 5px #000}
.short-copy{position:absolute;left:22px;right:78px;bottom:65px;z-index:2;pointer-events:none;text-shadow:0 1px 8px #0004}
.short-author{display:flex;align-items:center;gap:9px;margin-bottom:14px}.short-author>span{height:34px;width:34px;display:grid;place-items:center;border:1.5px solid #ffffff99;border-radius:12px;background:#f7b194;color:#532d24;font-size:12px;font-weight:850;text-shadow:none}
.short-author b{font-size:12px;display:block}.short-author small{font-size:10px;color:#f1e3fa;display:block;margin-top:3px}
.short-copy h2{font-family:var(--heading);font-size:clamp(21px,2.2vw,30px);font-weight:800;line-height:1.18;letter-spacing:-.8px;margin:0 0 10px;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.short-copy>p{font-size:12px;line-height:1.6;margin:0 0 12px;color:#fff4fd}.short-sound{font-size:9px;color:#e8d5f2;line-height:1.5}
.short-actions{position:absolute;right:12px;bottom:85px;z-index:3;display:grid;gap:14px}.short-actions>button{display:flex;flex-direction:column;align-items:center;gap:5px;color:white;min-width:48px;min-height:46px;padding:3px;border-radius:10px;text-shadow:0 1px 6px #1c0a33}
.short-actions svg{width:29px;height:29px;stroke-width:2.2;filter:drop-shadow(0 2px 4px #0004)}.short-actions span{font-size:9px;font-weight:750}
.short-actions button[aria-pressed=true]{color:#ffb398}.short-actions button[aria-pressed=true] svg{fill:#ffb398;stroke:#ffb398}.short-actions button:hover{background:#ffffff20}
.social-scroll-controls{position:absolute;right:-60px;top:50%;transform:translateY(-50%);display:grid;gap:12px}.social-scroll-controls button{background:#eee5fa;border:1.5px solid #dbc8ee;color:#73518c;width:42px;height:42px;border-radius:50%;display:grid;place-items:center;box-shadow:0 3px 0 #e1d3ee}
.social-scroll-controls svg{width:20px;height:20px}
.social-sidebar{padding:4px 0 0;overflow:auto}.social-invite{padding:25px 22px;border-radius:22px;background:linear-gradient(140deg,#ede1ff,#fff0de);border:1.5px solid #dfc9ef;box-shadow:0 4px 0 #efe4f8}
.social-invite-icon{display:grid;place-items:center;background:var(--violet);color:white;width:49px;height:49px;border-radius:16px;box-shadow:4px 4px 0 #cfb3f6;margin-bottom:25px}.social-invite-icon svg{width:26px;height:26px}.social-invite>.eyebrow{font-size:8px;display:block}
.social-invite h2{font-family:var(--heading);font-size:25px;line-height:1.22;letter-spacing:-.9px;font-weight:850;margin:13px 0}.social-invite p{color:#79618c;font-size:12px;line-height:1.8;margin-bottom:22px}.social-invite .main-button{width:100%;font-size:12px;justify-content:center;padding:13px 10px}.social-invite>span:last-child{display:block;font-size:9px;line-height:1.5;color:#8b719c;margin-top:14px;text-align:center}
.social-privacy{display:flex;gap:12px;margin:25px 0 16px}.social-privacy>svg{color:#8a65b2;width:22px;height:22px}.social-privacy b{font-size:12px;font-weight:800}.social-privacy p,.social-footnote{font-size:10px;line-height:1.8;color:#8a7598;margin-top:7px}.social-footnote{padding-top:13px;border-top:1px solid #e8def0}
.social-mobile-note{font-size:9px;color:#9982a8;text-align:center;margin:10px 0 0;flex-shrink:0}
.social-empty{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:30px;color:#f1e6ff;background:linear-gradient(140deg,#3f2c64,#21182e)}.social-empty>svg{width:46px;height:46px;color:#c4a5f4;margin-bottom:20px}.social-empty h2{font-size:24px;letter-spacing:-.6px;margin:0 0 14px}.social-empty p{font-size:13px;line-height:1.8;color:#d0bedf;max-width:270px;margin-bottom:25px}
.short-error{position:absolute;top:30%;left:20px;right:20px;z-index:5;background:#ffeddb;color:#613c23;border-radius:13px;padding:18px;font-size:13px;line-height:1.7}.short-error[hidden]{display:none}
.social-file-picker{position:relative;display:flex;flex-direction:column;align-items:center;gap:10px;padding:26px 20px;border:2px dashed #c7ade5;border-radius:17px;background:#f6efff;text-align:center;margin:20px 0;cursor:pointer;color:#775190}.social-file-picker>svg{width:32px;height:32px}.social-file-picker>b{font-size:15px;font-weight:800}.social-file-picker>span{font-size:10px;line-height:1.6;color:#8b759b}.social-file-picker input{width:100%;font-size:11px;min-height:35px;margin-top:4px}.social-file-picker input::file-selector-button{border:0;border-radius:7px;background:#e0d0f4;padding:9px;color:#654486;font-weight:700;margin-right:8px}
#social-upload-preview video{display:block;width:100%;max-height:260px;border-radius:14px;background:#241933}#social-upload-preview p{font-size:11px;color:#8a719c;overflow-wrap:anywhere;line-height:1.6}.social-upload-limits{font-size:10px;color:#8a719c;line-height:1.7}.social-upload button:disabled{opacity:.5;cursor:not-allowed;transform:none}
.social-comment-list{max-height:300px;overflow:auto;margin:18px 0}.social-comment{padding:14px 15px;margin-bottom:10px;border-radius:12px;background:#f5effb}.social-comment b{font-size:11px;color:#74558d}.social-comment p{font-size:13px;line-height:1.6;margin:7px 0 0;overflow-wrap:anywhere;white-space:pre-wrap}
@media(min-width:1400px){.social-layout{grid-template-columns:minmax(0,1fr) 300px;gap:70px}.social-stage{max-width:440px}.social-sidebar{padding-top:15px}.social-invite{padding:30px}}
@media(max-width:1050px){.social-layout{grid-template-columns:minmax(0,1fr) 225px;gap:50px}.social-stage{width:100%;max-width:375px}.social-scroll-controls{right:-45px}.social-scroll-controls button{width:34px;height:34px}.social-invite{padding:22px 17px}.social-invite h2{font-size:22px}}
@media(max-width:800px){.social-sidebar{display:none}.social-layout{display:block;max-width:420px}.social-scroll-controls{right:-50px}.social-view{padding:18px 25px 10px}.social-heading h1{font-size:30px}}
@media(max-width:650px){.social-view{padding:12px 12px 6px}.social-heading{padding:0 5px}.social-heading .eyebrow{font-size:8px;letter-spacing:1.4px}.social-heading h1{font-size:25px;margin-top:4px}.social-upload-button{padding:9px 12px;border-radius:12px;font-size:11px;min-height:42px}.social-upload-button svg{width:16px;height:16px}.social-tabs{margin:12px 5px;gap:7px}.social-tabs button{min-height:38px;padding:8px 14px;font-size:11px}.social-session-label{display:none}.social-layout{max-width:420px}.social-stage{max-width:none}.social-scroll-controls{display:none}.social-feed,.short-card{border-radius:21px}.short-card{min-height:280px}.short-topline{top:13px;left:14px;right:14px}.short-copy{left:18px;right:70px;bottom:58px}.short-copy h2{font-size:23px;margin-bottom:8px;-webkit-line-clamp:3}.short-copy>p{font-size:11px;margin-bottom:6px;line-height:1.5}.short-author{margin-bottom:10px}.short-actions{right:9px;bottom:74px;gap:10px}.short-sound{font-size:8px}.social-mobile-note{font-size:8px;margin-top:7px}.social-upload .form-field input{font-size:16px}.social-comments input{font-size:16px}}
@media(max-height:740px) and (max-width:650px){.social-heading .eyebrow{display:none}.social-heading h1{font-size:24px}.social-heading{min-height:40px}.social-tabs{margin:8px 5px}.social-mobile-note{display:none}.short-copy h2{font-size:20px;-webkit-line-clamp:2}.short-copy>p{display:none}.short-author{margin-bottom:7px}.short-actions{gap:6px;bottom:66px}.short-topline>span:first-child{font-size:9px}.social-view{padding-top:8px}.short-sound{display:none}}
@media(max-height:650px) and (min-width:651px){.rail{gap:18px;padding-top:18px;padding-bottom:16px}.rail nav{gap:5px}.nav-item{padding:9px 3px}.social-heading .eyebrow{display:none}.social-heading h1{font-size:27px}.social-tabs{margin:12px 0}.social-view{padding-top:15px}.short-copy h2{font-size:22px}.short-copy>p{display:none}.short-card{min-height:260px}.social-mobile-note{display:none}}

/* Revision 6: reclaim vertical space and keep an actual portrait frame. */
.workspace:has(#social-view:not([hidden]))>.topbar,
.workspace:has(#social-view:not([hidden]))>.demo-note{display:none}
.social-view{padding:14px 3% 8px}
.social-heading .eyebrow{display:none}
.social-heading h1{font-size:28px;margin:0}
.social-header-actions{display:flex;align-items:center;gap:10px}
.social-expand-button{display:flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:10px 13px;background:#eee5fb;color:#70518b;border:1.5px solid #d8c3ef;border-radius:12px;font-size:12px;white-space:nowrap}
.social-expand-button svg{width:19px;height:19px}
.social-tabs{margin:10px 0 12px}
.social-layout{grid-template-columns:minmax(0,1fr) 260px;gap:64px;max-width:1200px}
.social-viewport{position:relative;display:flex;align-items:center;justify-content:center;min-width:0;min-height:0;height:100%;overflow:visible}
.social-viewport .social-stage{aspect-ratio:9/16;flex:none;max-width:none;width:100%;height:100%;margin:0}
.social-stage .short-card{height:100%;min-height:0}
.social-stage .short-video{object-fit:contain}
.social-mobile-note{margin-top:7px}
#social-view.social-expanded{position:fixed;inset:0;z-index:100;background:#171121;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}
.social-expanded .social-heading{position:absolute;right:max(12px,env(safe-area-inset-right));top:max(12px,env(safe-area-inset-top));z-index:10;padding:0;min-height:0}
.social-expanded .social-heading>div:not(.social-header-actions),
.social-expanded .social-upload-button,
.social-expanded .social-tabs,
.social-expanded .social-sidebar,
.social-expanded .social-mobile-note{display:none}
.social-expanded .social-expand-button{background:#21182be6;color:white;border-color:#ffffff60;backdrop-filter:blur(12px)}
.social-expanded .social-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:0;max-width:none;width:100%;height:100%;margin:0}
.social-expanded .social-feed,.social-expanded .short-card{border-radius:0}
.social-expanded .short-topline{top:64px}
@media(max-width:1050px){.social-layout{grid-template-columns:minmax(0,1fr) 225px;gap:50px}}
@media(max-width:800px){.social-layout{display:block;max-width:none}.social-scroll-controls{right:-48px}.social-view{padding:10px 24px 8px}}
@media(max-width:650px){
 .social-view{padding:8px 8px 4px}
 .social-heading{padding:0 5px;min-height:44px;gap:8px}
 .social-heading h1{font-size:25px}
 .social-header-actions{gap:7px}
 .social-upload-button{min-height:42px;padding:9px 10px;font-size:10px}
 .social-expand-button{min-height:42px;padding:9px 10px;font-size:10px;gap:5px}
 .social-expand-button svg{width:17px;height:17px}
 .social-tabs{margin:8px 5px;gap:7px}
 .social-tabs button{min-height:38px;padding:8px 14px}
 .social-feed,.short-card{border-radius:18px}
 .social-mobile-note{display:none}
 .short-copy h2{font-size:23px;-webkit-line-clamp:3}
 .short-copy>p{display:block}
 .social-expanded .short-copy{bottom:66px}
}
@media(max-width:360px){.social-heading h1{font-size:22px}.social-expand-button,.social-upload-button{padding-left:8px;padding-right:8px;font-size:9px}.social-header-actions{gap:5px}}
@media(max-height:600px){.short-copy>p,.short-sound{display:none}.short-copy h2{font-size:18px;-webkit-line-clamp:2}.short-author{margin-bottom:7px}.short-actions{gap:5px}.social-mobile-note{display:none}}
