/* Folknity ORBIT Build 06 — unified public branding, story overlay, reels and chat UX. */
body.folknity-v6 .public-header .brand-image{height:35px;max-width:102px;width:auto;object-fit:contain;border-radius:9px}
body.folknity-v6 .v6-hero-brand{display:block;max-width:85%;max-height:85%;width:auto;height:auto;object-fit:contain;filter:drop-shadow(0 8px 22px rgba(27,9,66,.35))}
body.folknity-v6 .bubble-xl .bubble-core:has(.v6-hero-brand){display:grid;place-items:center;overflow:hidden}
.v6-story-open{overflow:hidden!important}
.v6-story-modal:not([hidden]){position:fixed;inset:0;z-index:1500;display:grid;place-items:center;padding:16px;isolation:isolate}
.v6-story-modal[hidden]{display:none!important}
.v6-story-backdrop{position:absolute;inset:0;background:rgba(2,3,15,.9);backdrop-filter:blur(16px)}
.v6-story-panel{position:relative;width:min(445px,100%);height:min(790px,calc(100dvh - 32px));display:grid;grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden;border:1px solid rgba(168,143,255,.42);border-radius:24px;background:#080e22;box-shadow:0 16px 90px rgba(0,0,0,.65),0 0 70px rgba(139,92,246,.16)}
.v6-story-toolbar{display:flex;align-items:center;gap:9px;padding:14px 16px 9px;background:linear-gradient(180deg,#121735 55%,#12173577);z-index:2}
.v6-story-toolbar button,.v6-story-navigation button{border:1px solid #ffffff30;border-radius:10px;padding:8px 10px;color:#f6f2ff;background:#ffffff11;font:inherit;cursor:pointer;min-height:36px}
.v6-story-toolbar button:hover,.v6-story-navigation button:hover:not(:disabled){background:#a786ff30}
.v6-story-navigation button:disabled{opacity:.35;cursor:not-allowed}
.v6-story-progress{flex:1;height:4px;overflow:hidden;border-radius:999px;background:#ffffff32}
.v6-story-progress span{display:block;width:0%;height:100%;border-radius:inherit;background:linear-gradient(90deg,#77d9ff,#9b72ff);transition:width .09s linear}
.v6-story-content{min-height:0;display:grid;place-items:center;overflow:auto;color:#f7f3ff}
.v6-story-content .story-view{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;margin:0;max-height:100%;width:100%;min-width:0;padding:12px;background:transparent!important;box-shadow:none!important}
.v6-story-content .story-view>.row{width:100%;padding:0 5px}
.v6-story-content .story-view img:not(.avatar),.v6-story-content .story-view video{display:block;max-width:100%;width:auto;max-height:65dvh;object-fit:contain;margin:auto;border-radius:10px}
.v6-story-content .story-view p{margin:0;max-height:100px;overflow:auto;text-align:center;color:#f4f1ff;font-size:14px}
.v6-story-content .v6-story-route-close{display:none}
.v6-story-author{color:#f0eeff;text-decoration:none}.v6-story-author:hover{text-decoration:underline}
.v6-story-navigation{display:flex;justify-content:space-between;padding:10px 16px 15px;gap:12px;background:#0c1330}
.v6-story-navigation button{flex:1}
body.folknity-v6 .v6-reel-card .post-media{padding:0;overflow:hidden;background:#020513}
.v6-reel-stage{position:relative;max-height:min(76vh,680px);min-height:230px;display:flex;justify-content:center;align-items:center;background:radial-gradient(circle at 40% 30%,#241a49,#040513 75%);overflow:hidden}
.v6-reel-stage video{max-height:min(76vh,680px);height:auto;width:100%;max-width:430px;object-fit:contain;background:#000;cursor:pointer}
.v6-reel-controls{position:absolute;left:10px;right:10px;bottom:10px;z-index:3;display:flex;align-items:center;gap:7px;border:1px solid #ffffff35;padding:7px 8px;border-radius:13px;background:rgba(9,12,31,.84);backdrop-filter:blur(12px)}
.v6-reel-controls button{flex:0 0 36px;width:36px;height:36px;border-radius:10px;background:#ffffff1b;color:#fff;border:1px solid #ffffff24;cursor:pointer;font-size:15px}
.v6-reel-controls button:hover{background:#9870fb75}
.v6-reel-controls [type=range]{min-width:0;flex:1;accent-color:#a887fa;cursor:pointer}
.v6-reel-time{color:#e5e0f7;font-size:11px;min-width:32px;text-align:right;font-variant-numeric:tabular-nums}
.v6-chat-peer{color:inherit;text-decoration:none}.v6-chat-peer:hover{color:var(--orbit-accent);text-decoration:underline}
.v6-chat-search-toggle{min-height:35px;flex-shrink:0;cursor:pointer}
.v6-chat-search-panel:not([hidden]){display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:12px 15px;margin:0 0 6px;background:var(--orbit-panel-deep,#0b1430);border:1px solid var(--orbit-line,#ffffff28);border-radius:15px}
.v6-chat-search-panel label{font-size:12px;color:#b9c7ea}
.v6-chat-search-panel input{flex:1;min-width:110px;max-width:320px;min-height:36px;padding:5px 12px;border-radius:10px}
.v6-chat-search-panel [data-chat-matches]{flex:1 1 100%;font-size:11px}
.v6-chat-search-panel[hidden],.chat-bubble-wrap[hidden]{display:none!important}
@media(max-width:600px){.v6-story-modal:not([hidden]){padding:0}.v6-story-panel{width:100%;height:100dvh;border:0;border-radius:0}.v6-story-content .story-view img:not(.avatar),.v6-story-content .story-view video{max-height:71dvh}.v6-chat-search-toggle{font-size:11px;padding:6px 8px}.chat-head{gap:6px}.v6-reel-stage{max-height:71vh}}
@media(prefers-reduced-motion:reduce){.v6-story-progress span{transition:none}}
