
:root{color-scheme:dark}
*{box-sizing:border-box}
html,body.stories-page{margin:0;width:100%;height:100%;overflow:hidden;background:#080808;color:#fff;font-family:Arial,Helvetica,sans-serif}
button{font:inherit;cursor:pointer}
button:disabled{opacity:.25;cursor:default}
.stories-shell{width:100%;height:100dvh;position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden;background:radial-gradient(ellipse at center,#242124 0%,#080808 72%)}
.brand{position:fixed;left:20px;top:18px;z-index:30;margin:0;padding:0;display:flex;align-items:center}
.brand a{display:flex;align-items:center;justify-content:flex-start;gap:8px;color:#fff;text-decoration:none;font-size:14px;font-weight:800;line-height:1.2}
.brand img{display:block;width:28px;height:28px;min-width:28px;min-height:28px;max-width:28px;max-height:28px;padding:4px;background:#fff;object-fit:contain;border-radius:50%;flex-shrink:0;box-sizing:border-box;margin:0 8px 0 0}
.brand span,.brand b{font-size:14px;font-weight:800;letter-spacing:0;line-height:1.2}
.close-viewer{position:fixed;right:25px;top:17px;z-index:110;background:#ffffff17;border:1px solid #ffffff25;border-radius:50%;width:42px;height:42px;color:#fff;font-size:30px;line-height:1}
.stories-home{position:fixed;top:18px;right:80px;z-index:110;display:flex;align-items:center;justify-content:center;width:42px;height:42px;border:1px solid #ffffff25;border-radius:50%;background:#ffffff17;color:#fff;text-decoration:none;transition:background .2s}
.stories-home:hover,.close-viewer:hover{background:#ffffff35}
.stories-home svg{display:block;width:20px;height:20px}
.stage{height:min(88dvh,790px);width:100%;display:flex;align-items:center;justify-content:center;gap:16px;position:relative}
.player-layout{height:100%;aspect-ratio:9/16;max-width:calc(100vw - 160px);flex:none;position:relative;z-index:5}
.reel-container{height:100%;width:100%;position:relative;background:#000;overflow:hidden;border-radius:0px;box-shadow:0 20px 70px #0009}
.reel-container>video{height:100%;width:100%;object-fit:cover;display:block}
.top-overlay{position:absolute;top:0;left:0;right:0;padding:13px 13px 30px;background:linear-gradient(#0009,transparent);z-index:10;pointer-events:none}
.segments{display:flex;gap:4px;width:100%;height:3px}
.segment{height:100%;flex:1;background:#ffffff60;border-radius:4px;overflow:hidden}
.segment-fill{height:100%;width:0;background:#fff}
.top-controls{display:flex;align-items:center;justify-content:space-between;margin-top:15px;gap:8px}
.story-count{font-size:12px;color:#fffd;font-weight:600}
.top-buttons{display:flex;gap:7px;pointer-events:auto}
.top-buttons button{border:0;color:#fff;background:#0007;width:35px;height:35px;border-radius:50%;font-size:20px;display:grid;place-items:center}
.reel-bottom-wrapper{position:absolute;bottom:0;left:0;right:0;z-index:10;pointer-events:none;background:linear-gradient(transparent,#000c 70%,#000e)}
.reel-caption{padding:85px 20px 23px;overflow-wrap:anywhere}
.reel-caption strong{display:block;font-size:16px}
#reel-user{display:flex!important;align-items:center!important;gap:5px!important}
#reel-user .verified-badge{display:inline-block!important;width:16px!important;height:16px!important;min-width:16px!important;object-fit:contain!important;vertical-align:middle!important;flex-shrink:0!important}
.reel-caption p{white-space:pre-line;line-height:1.4;font-size:14px;margin:9px 0 0;max-height:25vh;overflow:auto;pointer-events:auto}
.reel-caption a{display:flex;align-items:center;justify-content:center;min-height:45px;margin-top:14px;background:#fff;border-radius:7px;color:#111;text-decoration:none;font-weight:800;font-size:14px;pointer-events:auto;padding:10px}
.reel-caption a[hidden]{display:none}
.tap-zones{position:absolute;inset:95px 0 110px;display:flex;z-index:4;pointer-events:none}
.tap-zones button{width:30%;border:0;background:transparent;pointer-events:auto}
.tap-zones button:last-child{margin-left:auto;width:30%}
.side-preview{height:84%;aspect-ratio:9/16;max-width:calc((100vw - 500px)/2);position:relative;flex:none;padding:0;border:0;border-radius:9px;background:#111;overflow:hidden;opacity:.48;transition:opacity .25s,transform .25s}
.side-preview:not(:disabled):hover{opacity:.8;transform:scale(1.015)}
.side-preview video{width:100%;height:100%;object-fit:cover}
.preview-shade{position:absolute;inset:0;background:#0005}
.side-preview:disabled{visibility:hidden}
body.stories-page .nav-controls{position:fixed!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;margin:0!important;padding:0!important;transform:none!important;display:block!important;z-index:25!important;pointer-events:none!important}
body.stories-page .nav-controls #prev,body.stories-page .nav-controls #next{position:absolute!important;top:50%!important;right:auto!important;bottom:auto!important;display:grid!important;place-items:center!important;flex:none!important;width:60px!important;height:60px!important;min-width:60px!important;min-height:60px!important;max-width:60px!important;max-height:60px!important;margin:0!important;padding:0!important;border:0!important;border-radius:50%!important;background:#fff!important;color:transparent!important;font-size:0!important;line-height:0!important;transform:translateY(-50%)!important;pointer-events:auto!important;overflow:hidden!important}
body.stories-page .nav-controls #prev{left:calc(50% - min(min(88dvh,790px)*9/16,100vw - 160px)/2 - 90px)!important}
body.stories-page .nav-controls #next{left:calc(50% + min(min(88dvh,790px)*9/16,100vw - 160px)/2 + 30px)!important}
body.stories-page .nav-controls #prev svg,body.stories-page .nav-controls #next svg{display:none!important}
body.stories-page .nav-controls #prev::before,body.stories-page .nav-controls #next::before{content:""!important;position:absolute!important;top:50%!important;left:50%!important;width:12px!important;height:12px!important;border:solid #111!important;border-width:0 3px 3px 0!important;transform:translate(-35%,-50%) rotate(135deg)!important}
body.stories-page .nav-controls #next::before{transform:translate(-65%,-50%) rotate(-45deg)!important}
body.stories-page .nav-controls #prev::after,body.stories-page .nav-controls #next::after{content:none!important;display:none!important}
body.stories-page .nav-controls #sound{display:none!important}
body.stories-page .nav-controls #prev:hover:not(:disabled),body.stories-page .nav-controls #next:hover:not(:disabled){background:#eee!important}
body.stories-page .nav-controls button:disabled{opacity:.25!important}
#status{position:fixed;bottom:7px;left:10px;right:10px;text-align:center;font-size:13px;color:#ddd;z-index:30;pointer-events:none}
.stories-page button:focus-visible,.stories-page a:focus-visible{outline:2px solid #b9775f;outline-offset:3px}
@media(max-width:700px){
.stories-shell{background:#000}
.brand{top:calc(14px + env(safe-area-inset-top));left:12px;z-index:30}
.brand a,.brand span,.brand b{font-size:12px;font-weight:800}
.brand img{width:26px;height:26px;min-width:26px;min-height:26px;max-width:26px;max-height:26px;padding:4px;margin-right:8px}
.close-viewer{top:calc(9px + env(safe-area-inset-top));right:10px;width:35px;height:35px;font-size:25px}
.stories-home{top:calc(9px + env(safe-area-inset-top));right:55px;width:35px;height:35px}
.stories-home svg{width:18px;height:18px}
.stage{height:100dvh;gap:0}
.player-layout{height:100dvh;width:100vw;max-width:none;aspect-ratio:auto}
.reel-container{border-radius:0}
.side-preview{display:none}
.top-overlay{padding-top:calc(58px + env(safe-area-inset-top))}
.top-controls{margin-top:12px}
.reel-caption{padding:80px 16px calc(22px + env(safe-area-inset-bottom))}
.reel-caption p{max-height:22vh}
body.stories-page .nav-controls{position:fixed!important;inset:auto 12px auto auto!important;top:50%!important;width:46px!important;height:auto!important;max-width:46px!important;margin:0!important;padding:0!important;transform:translateY(-50%)!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:14px!important;z-index:100!important;pointer-events:none!important}
body.stories-page .nav-controls #prev,body.stories-page .nav-controls #next{position:relative!important;top:auto!important;left:auto!important;right:auto!important;bottom:auto!important;width:46px!important;height:46px!important;min-width:46px!important;min-height:46px!important;max-width:46px!important;max-height:46px!important;margin:0!important;padding:0!important;transform:none!important;pointer-events:auto!important}
body.stories-page .nav-controls #prev::before{width:10px!important;height:10px!important;border-width:0 2.5px 2.5px 0!important;transform:translate(-50%,-30%) rotate(225deg)!important}
body.stories-page .nav-controls #next::before{width:10px!important;height:10px!important;border-width:0 2.5px 2.5px 0!important;transform:translate(-50%,-70%) rotate(45deg)!important}
body.stories-page .nav-controls #prev:hover:not(:disabled),body.stories-page .nav-controls #next:hover:not(:disabled){transform:scale(1.05)!important}
#status{bottom:calc(6px + env(safe-area-inset-bottom))}
}
@media(prefers-reduced-motion:reduce){.side-preview,.stories-home{transition:none}}

/* Fix logo and title spacing */
.stories-page .brand a{
  gap:0!important;
}

.stories-page .brand img{
  margin:0 8px 0 0!important;
}
