body[data-page=videos] .page-heading{margin-bottom:16px}body[data-page=videos] .page-heading h1{letter-spacing:-1px;font-size:28px}body[data-page=videos] #page-subtitle{color:#8d9db1;font-size:13px}body[data-page=videos] .feed-layout{display:grid;grid-template-columns:minmax(0,510px) minmax(180px,260px);justify-content:center;gap:32px}body[data-page=videos] .feed-toolbar{max-width:802px;margin:0 auto 16px;flex-wrap:nowrap}body[data-page=videos] .feed-tabs{border:0;background:#ffffff05;border-radius:24px;padding:4px;gap:2px;width:auto}body[data-page=videos] .feed-tabs button{border:0;border-radius:20px;color:#95a5ba;font-size:12px;min-height:36px;padding:8px 16px}body[data-page=videos] .feed-tabs button.selected{color:#edf5ff;background:#ffffff0c}body[data-page=videos] .feed-toolbar>.primary{width:auto;min-height:40px;border-radius:24px;background:#b6d6ff;color:#102035;font-size:12px;padding:10px 18px}body[data-page=videos] .shorts-feed{height:calc(100dvh - 228px);min-height:400px;max-height:860px;width:100%;border-radius:24px;border:1px solid #ffffff10;scroll-snap-type:y mandatory;scroll-padding:0;overflow-y:auto;overscroll-behavior:contain;background:#090d13}body[data-page=videos] .immersive-post{height:100%;min-height:0;max-width:none;margin:0;border:0;border-radius:0;scroll-snap-stop:always;scroll-snap-align:start;position:relative;isolation:isolate;overflow:hidden;background:radial-gradient(ellipse at 50% 30%,#243043,#090d13 70%)}.immersive-post .short-player{position:absolute;inset:0;height:100%;width:100%}.immersive-post .short-video{width:100%;height:100%;object-fit:contain}.immersive-post .short-badge{top:16px;left:16px;font-size:10px;letter-spacing:.3px;padding:6px 10px;background:#11192580;backdrop-filter:blur(12px);border:1px solid #ffffff13;border-radius:20px;z-index:1;color:#d2dfed}.immersive-post .short-info{position:absolute;left:0;right:0;bottom:44px;padding:65px 74px 16px 18px;background:linear-gradient(transparent,#060a12dd);pointer-events:none;z-index:2}.immersive-post .short-info button,.immersive-post .short-info details{pointer-events:auto}.immersive-post .short-creator{gap:9px;align-items:center}.video-creator-avatar{flex:0 0 36px;width:36px;height:36px;border-radius:50%;background:#304964;border:1px solid #b3d8ff50;color:#deecff;font-size:11px;display:grid;place-items:center;padding:0}.immersive-post .creator-name-button{font-size:14px;color:#fff;text-shadow:0 1px 4px #0006}.immersive-post .short-creator small{font-size:10px;color:#a3b5c9;line-height:1.4;display:block;margin-top:3px}.immersive-post .follow{border:1px solid #ffffff40;border-radius:7px;padding:5px 8px;min-height:30px;font-size:10px;background:#ffffff10;color:#fff;white-space:nowrap}.immersive-post .own-post{font-size:10px;border:1px solid #ffffff20;padding:3px 6px;border-radius:5px;color:#a8bfd5}.video-caption{margin-top:12px!important;border:0!important;padding:0!important;background:transparent!important}.video-caption summary{font-size:13px;line-height:1.5;color:#e1e8f1;list-style:none;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;padding:0!important;margin:0!important;cursor:pointer}.video-caption summary::-webkit-details-marker{display:none}.video-caption[open] summary{display:none}.video-caption p{font-size:13px;line-height:1.5;max-height:130px;overflow-y:auto;white-space:pre-wrap;overflow-wrap:anywhere;color:#e1e8f1}.video-footnote{display:flex;justify-content:space-between;gap:8px;font-size:9px;color:#8fabc6;letter-spacing:.2px;margin-top:12px}.video-action-rail{position:absolute;right:12px;bottom:182px;z-index:4;display:flex;flex-direction:column;align-items:center;gap:14px}.rail-action{width:48px;min-height:50px;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:10px;color:#fff;background:#10172280;border:1px solid #ffffff15;border-radius:16px;backdrop-filter:blur(12px);padding:8px 3px;cursor:pointer}.rail-action[data-cloud-like]:before{content:'♡';font-size:24px;line-height:1;margin-bottom:4px}.rail-action[data-cloud-like][aria-pressed=true]:before{content:'♥';color:#ff789f}.rail-action[data-cloud-like][aria-pressed=true]{color:#ffc7d7}.rail-repost span{font-size:24px;line-height:1;margin-bottom:4px}.video-options{position:relative}.video-options summary{list-style:none;cursor:pointer;color:#fff;display:grid;place-items:center;width:44px;height:38px;font-size:14px;letter-spacing:2px;border-radius:15px;background:#10172280}.video-options summary::-webkit-details-marker{display:none}.video-options>div{position:absolute;right:50px;bottom:0;width:175px;padding:5px;border:1px solid #ffffff20;border-radius:14px;background:#1b2634;box-shadow:0 6px 24px #0006}.video-options button{display:block;text-align:left;width:100%;font-size:12px;padding:12px;color:#dce8f7;border:0;background:transparent;margin:0;border-radius:8px}.video-options button:hover{background:#ffffff09}.video-step-controls{position:absolute;right:13px;top:16px;z-index:3;display:flex;gap:5px}.video-step-controls button{width:34px;height:34px;border-radius:50%;background:#11192590;border:1px solid #ffffff18;color:#e5f0ff;font-size:16px}.video-unfinished{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#b7cce3;padding:20px;text-align:center}.video-unfinished>span{font-size:40px}.video-unfinished small{font-size:12px}.immersive-post .playback-error{z-index:5;top:65px;font-size:12px;background:#152130ef;border:1px solid #fff2}.feed-aside .panel{background:transparent;border:0;padding:18px 0}.feed-aside .panel h2{font-size:30px;line-height:1.2;letter-spacing:-1.2px}.feed-aside .panel p{font-size:13px;line-height:1.7;color:#98a9bf}.feed-aside .notice{font-size:11px;background:#ffffff03;border:1px solid #ffffff09;border-radius:14px}.feed-aside .primary{border-radius:24px}@media(max-width:1100px){body[data-page=videos] .feed-layout{grid-template-columns:minmax(0,510px)}body[data-page=videos] .feed-toolbar{max-width:510px}}@media(max-width:600px){body[data-page=videos] main{padding:8px 0 0!important}body[data-page=videos] .page-heading{display:none}body[data-page=videos] header{display:none}body[data-page=videos] .feed-toolbar{height:52px;margin:0;padding:4px 12px;gap:8px}body[data-page=videos] .feed-tabs button{padding:8px 10px;font-size:11px}body[data-page=videos] .feed-toolbar>.primary{font-size:11px;padding:8px 14px;min-height:36px}body[data-page=videos] .shorts-feed{height:calc(100dvh - 126px - env(safe-area-inset-bottom));min-height:280px;max-height:none;border:0;border-radius:0}body[data-page=videos] .feed-layout{display:block}.immersive-post .short-info{padding-left:15px;padding-right:73px;bottom:44px}.video-step-controls{display:none}.video-action-rail{right:10px;bottom:185px}.video-footnote{font-size:9px}.immersive-post .short-badge{top:12px;left:15px}.immersive-post .short-creator small{font-size:10px}}@media(prefers-reduced-motion:reduce){.shorts-feed{scroll-behavior:auto!important}}
.video-caption[open] summary{display:block;font-size:0}.video-caption[open] summary:after{content:'⌃';font-size:18px;color:#bbd7f3}.video-caption summary:focus-visible,.video-options summary:focus-visible{outline:2px solid #badbff;outline-offset:4px}
.video-tap-heart{position:absolute;z-index:8;pointer-events:none;color:#ff729c;font-size:88px;line-height:1;text-shadow:0 3px 22px #4a102b70;transform:translate(-50%,-50%);animation:video-heart-pop .8s ease-out both}.immersive-post .short-video{touch-action:pan-y pinch-zoom}@keyframes video-heart-pop{0%{opacity:0;transform:translate(-50%,-50%) scale(.35) rotate(-15deg)}25%{opacity:1;transform:translate(-50%,-50%) scale(1.15) rotate(6deg)}45%{opacity:1;transform:translate(-50%,-50%) scale(1)}100%{opacity:0;transform:translate(-50%,-85%) scale(1.05)}}@media(prefers-reduced-motion:reduce){.video-tap-heart{animation:none;font-size:64px}}
/* Consistent vector actions; a red filled heart marks a saved like. */
.rail-action[data-cloud-like]:before{content:none!important}.rail-action svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;margin-bottom:5px}.rail-action[data-cloud-like][aria-pressed=true]{color:#ff3b4f}.rail-action[data-cloud-like][aria-pressed=true] svg{fill:currentColor;stroke:currentColor}.rail-action[data-cloud-like][aria-pressed=true] span{color:#f7f9fc}.rail-action{background:#141b2580;border-color:#ffffff13;border-radius:16px;font-size:10px}.rail-repost span{font-size:10px;line-height:1.4;margin:0}.video-tap-heart{width:86px;height:86px;font-size:0;color:#ff3045;filter:drop-shadow(0 4px 12px #7f092940)}.video-tap-heart svg{width:100%;height:100%;fill:currentColor;stroke:none}.immersive-post .video-footnote{color:#a1b8ce}@media(prefers-reduced-motion:reduce){.video-tap-heart{width:64px;height:64px}}
.video-heart-surface{position:absolute;inset:0 0 70px;z-index:1;touch-action:pan-y pinch-zoom}.immersive-post .short-badge{z-index:2}

.video-comments-dialog{width:min(540px,100%);max-height:82dvh;border-radius:24px 24px 0 0}.video-comments-dialog h2{font-size:19px}.video-comments-dialog .community-comments{border:0;padding:0}.video-comments-dialog .community-comment{padding:16px 0;border-bottom:1px solid #ffffff0d}.video-comments-dialog .community-gif-options{display:none}.video-comments-dialog .community-comment-form{position:sticky;bottom:0;background:#131a24;padding-top:12px}.rail-action span{font-variant-numeric:tabular-nums}@media(max-width:700px){.video-comments-dialog{margin:auto 0 0;max-width:100%;padding:24px 20px;padding-bottom:calc(20px + env(safe-area-inset-bottom))}.video-action-rail{gap:12px}}

/* Comments scroll over the playing post; leave its upper portion visible. */
#modal.video-comments-dialog{margin:auto 0 0 auto;width:min(460px,100%);height:62dvh;max-height:62dvh;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}#modal.video-comments-dialog::backdrop{background:#0002;backdrop-filter:none}.video-comments-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-right:24px}.video-comments-heading button{min-height:44px;flex-shrink:0}.video-comments-dialog .community-comments{overflow-wrap:anywhere}@media(max-width:700px){#modal.video-comments-dialog{margin:auto 0 0;width:100%;height:58dvh;max-height:58dvh}}

#modal.video-comments-dialog{position:fixed;inset:auto 0 0 auto;z-index:30;box-shadow:0 -12px 50px #0005}.video-comments-open #shorts-feed{overflow:hidden;touch-action:none}.video-comments-dialog{touch-action:pan-y}.video-comments-open{overflow:hidden}

.video-heart-surface{inset:0;cursor:pointer}.video-heart-surface:focus-visible{outline:2px solid #a3ceff;outline-offset:-4px}.video-sound-toggle{position:absolute;top:52px;left:16px;z-index:3;border:1px solid #ffffff25;border-radius:20px;background:#10182099;color:#fff;font-size:11px;padding:9px 12px;min-height:40px}

/* Dedicated watch-and-read layout: video stays fully visible beside/above discussion. */
.video-comments-open .comments-active-post .short-player{position:fixed!important;inset:0 430px 0 0!important;width:auto!important;height:100dvh!important;aspect-ratio:auto!important;border-radius:0!important;z-index:21;background:#080a0d!important;transform:none!important}
.video-comments-open .comments-active-post .short-video{width:100%!important;height:100%!important;object-fit:contain!important;border-radius:0!important}
.video-comments-open .comments-active-post .short-badge{display:none}.video-comments-open .comments-active-post .video-sound-toggle{top:18px;left:18px}.video-comments-open .comments-active-post .video-heart-surface{touch-action:manipulation}
#modal.video-comments-dialog{inset:0 0 0 auto;margin:0;width:430px;max-width:100vw;height:100dvh;max-height:100dvh;padding:0!important;border-radius:0;border:0;border-left:1px solid #ffffff10;background:#15171c;box-shadow:none;overflow:hidden;color:#eef0f4}
.video-comments-dialog #modal-content{height:100%;display:flex;flex-direction:column;min-height:0}.video-comments-dialog .modal-close{top:17px;right:16px;background:#ffffff08;border:0;width:32px;height:32px;z-index:3;color:#b9bec9;font-size:23px}
.video-comments-heading{padding:24px 58px 20px 24px;border-bottom:1px solid #ffffff08;flex-shrink:0}.video-comments-heading h2{margin:0!important;font-size:16px!important;letter-spacing:-.25px;font-weight:650!important}
.video-comments-dialog .community-comments{display:flex;flex-direction:column;flex:1;min-height:0;margin:0!important;padding:0!important;background:none!important}.video-comments-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:0 22px;scrollbar-width:thin;scrollbar-color:#363a43 transparent}.comments-list-meta{display:flex;align-items:center;justify-content:space-between;padding:13px 0;color:#858c9b;font-size:11px}.comments-list-meta button{padding:8px}.comments-list-meta svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.6}
.video-comment-row{display:flex;gap:11px;align-items:flex-start;padding:14px 0}.comment-avatar{flex:0 0 34px;height:34px;border-radius:50%;border:1px solid #ffffff0a;background:#2b3440;color:#bcd6ee;font-size:12px}.comment-content{flex:1;min-width:0}.comment-content .creator-name-button{color:#a5adbd;font-size:12px;font-weight:550}.comment-content p{margin:5px 0 8px;color:#f0f2f6;font-size:13px;line-height:1.55;overflow-wrap:anywhere}.comment-content time{font-size:10px;color:#686f7f}.comment-options{position:relative;flex-shrink:0}.comment-options summary{cursor:pointer;color:#77808e;list-style:none;padding:4px;font-size:11px}.comment-options>div{position:absolute;right:0;top:22px;width:150px;z-index:4;background:#272b33;padding:12px;border-radius:12px;box-shadow:0 6px 25px #0005}.comment-options button{display:block;padding:8px 0}
.video-comments-empty{display:flex;align-items:center;justify-content:center;flex-direction:column;min-height:220px;text-align:center;padding:30px 15px;color:#626a79}.video-comments-empty>svg{width:38px;height:38px;fill:none;stroke:#778298;stroke-width:1.2;margin-bottom:14px}.video-comments-empty h3{font-size:14px;color:#d7dce5;margin:0 0 8px}.video-comments-empty p{font-size:12px;line-height:1.6;color:#858d9c;margin:0}
.video-comments-dialog .video-comment-composer{position:static;flex-shrink:0;display:grid;grid-template-columns:1fr 36px;align-items:center;gap:8px;padding:14px 18px calc(14px + env(safe-area-inset-bottom));margin:0;background:#191c22;border-top:1px solid #ffffff08}.comment-input-wrap{min-width:0}.video-comment-composer textarea{display:block!important;box-sizing:border-box;width:100%;height:42px;min-height:42px;max-height:100px;resize:vertical;margin:0;border:1px solid #ffffff08;border-radius:22px;background:#252931;color:#f2f4f8;padding:12px 16px;font:inherit;font-size:12px}.video-comment-composer textarea::placeholder{color:#939bad}.comment-send{border:0;border-radius:50%;height:36px;width:36px;display:grid;place-items:center;background:#b6dafa;color:#182d41}.comment-send svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2}.video-comment-composer .community-feedback{grid-column:1/-1;margin:0;font-size:11px}.community-feedback:empty{display:none}.comments-drag-handle{display:none}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
@media(max-width:700px){.video-comments-open .comments-active-post .short-player{inset:0 0 auto!important;height:40dvh!important;width:100vw!important}#modal.video-comments-dialog{inset:40dvh 0 0;height:60dvh;max-height:60dvh;width:100%;border-left:0;border-radius:22px 22px 0 0}.comments-drag-handle{display:block;flex-shrink:0;width:32px;height:4px;border-radius:4px;background:#414650;margin:9px auto 0}.video-comments-heading{padding:14px 55px 16px 20px}.video-comments-dialog .modal-close{top:19px;right:14px}.video-comments-scroll{padding:0 18px}.video-comments-empty{min-height:160px}.video-comments-open .mobile-nav{visibility:hidden}}

/* Shared Fadhi monogram treatment; retains the existing avatar dimensions. */
.short-creator .video-creator-avatar,.video-comment-row .comment-avatar,.community-comment .comment-avatar,.community-byline .avatar{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;padding:0;border-radius:50%;border:1px solid #a8d4ff35;background:radial-gradient(ellipse at 25% 0%,#91caff22,transparent 70%),linear-gradient(145deg,#284a65,#172e45);color:#e0f0ff;font-family:inherit;font-size:12px;font-weight:650;letter-spacing:.025em;line-height:1;text-transform:uppercase;box-shadow:inset 0 1px 0 #d9edff14,0 2px 7px #06132120;isolation:isolate}
.short-creator .video-creator-avatar{font-size:14px}.short-creator .video-creator-avatar:focus-visible,.video-comment-row .comment-avatar:focus-visible,.community-comment .comment-avatar:focus-visible,.community-byline .avatar:focus-visible{outline:2px solid #acd7ff;outline-offset:3px}

/* Contain the composer and prevent iOS focus zoom from hiding Send. */
#modal.video-comments-dialog,#modal.video-comments-dialog #modal-content,#modal.video-comments-dialog .community-comments{box-sizing:border-box;min-width:0;max-width:100%}
#modal.video-comments-dialog .video-comment-composer{box-sizing:border-box;width:100%;min-width:0;max-width:100%;grid-template-columns:minmax(0,1fr) 44px;padding-inline:12px}
#modal.video-comments-dialog .comment-input-wrap{display:block;width:100%;min-width:0;margin:0}
#modal.video-comments-dialog textarea{width:100%;min-width:0;max-width:100%;font-size:16px;resize:none}
#modal.video-comments-dialog .comment-send{box-sizing:border-box;width:44px;min-width:44px;height:44px;padding:0;justify-self:end}
.immersive-post .video-action-rail .video-options{display:block!important;visibility:visible!important;padding:0;border:0;background:transparent;z-index:8}
.immersive-post .video-options summary{display:grid!important;width:44px;height:44px;min-height:44px;padding:0;touch-action:manipulation}

/* Lighter mobile feed chrome, with full-size accessible touch targets. */
@media(max-width:600px){
 .immersive-post .video-action-rail{right:8px;bottom:150px;gap:6px}
 .immersive-post .rail-action{width:44px;min-height:52px;padding:5px 0;background:transparent;border:0;backdrop-filter:none;border-radius:12px;text-shadow:0 1px 5px #0009}
 .immersive-post .rail-action svg{width:26px;height:26px;stroke-width:1.8;filter:drop-shadow(0 1px 3px #0009);margin-bottom:3px}
 .immersive-post .video-options summary{background:#10172245;border-radius:50%;font-size:14px}
 .immersive-post .short-info{bottom:0;padding:48px 64px 18px 14px;background:linear-gradient(transparent,#060a1280);text-shadow:0 1px 4px #0008}
 .immersive-post .short-creator{gap:8px}.immersive-post .video-creator-avatar{width:32px;height:32px;flex-basis:32px;font-size:12px}
 .immersive-post .creator-name-button{font-size:13px}.immersive-post .video-caption{margin-top:8px!important}
 .immersive-post .video-footnote{margin-top:8px}.immersive-post .video-footnote span:last-child{display:none}
 .immersive-post .short-badge{top:10px;left:12px;padding:4px 8px;background:#11192550}
 .immersive-post .video-sound-toggle{top:40px;left:12px;min-height:44px;padding:8px 10px;background:#10182060;font-size:10px}
 body[data-page=videos] .feed-tabs{flex:1;min-width:0}body[data-page=videos] .feed-tabs button{flex:1;padding-inline:7px}
}

.video-pause-toggle{position:absolute;z-index:3;top:52px;right:12px;width:44px;height:44px;border:1px solid #ffffff20;border-radius:50%;background:#10182060;color:#fff;display:grid;place-items:center}.video-pause-toggle svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}.video-comments-open .video-pause-toggle{top:18px}

@media(max-width:700px){
 .video-comments-open .comments-active-post .short-player{top:var(--comment-view-top,0px)!important;height:var(--comment-video-height,36dvh)!important}
 #modal.video-comments-dialog{top:calc(var(--comment-view-top,0px) + var(--comment-video-height,36dvh));bottom:auto;height:calc(var(--comment-view-height,100dvh) - var(--comment-video-height,36dvh));max-height:calc(var(--comment-view-height,100dvh) - var(--comment-video-height,36dvh))}
 #modal.video-comments-dialog .video-comments-heading{padding-block:10px}
 #modal.video-comments-dialog .video-comment-composer{padding-block:8px}
}
