/* One transport owner; provider frames remain unobscured. */
.sf-video-block{position:relative}
.sf-video-block>.sf-media-audio{min-height:144px;background:#11232b}
.sf-stream-controls{--player-ink:#fff;position:absolute;inset:auto 0 0;z-index:4;display:grid;grid-template-columns:48px minmax(0,1fr) auto;grid-template-rows:48px 48px;min-width:0;width:100%;height:96px;box-sizing:border-box;color:var(--player-ink);background:linear-gradient(transparent,rgba(5,18,23,.78));text-align:start;isolation:isolate}
.sf-stream-controls:is([data-provider=youtube],[data-provider=facebook]){position:relative;inset:auto;--player-ink:var(--sf-ink,#203d47);background:transparent;flex:none}
.sf-stream-controls [hidden]{display:none!important}
.sf-stream-controls .sf-transport-button{display:grid;place-items:center;flex:none;width:48px;min-width:48px;min-height:48px;height:48px;border:0;border-radius:0;padding:12px;margin:0;color:inherit;background:transparent;touch-action:manipulation;cursor:pointer}
.sf-stream-controls .sf-transport-button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.sf-stream-controls .sf-play-toggle{grid-area:1/1}
.sf-stream-controls .sf-control-identity{grid-area:1/2;min-width:0;align-self:center;line-height:1.25;overflow:hidden}
.sf-stream-controls .sf-control-author,.sf-stream-controls .sf-control-title{display:block;margin:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:.8rem}
.sf-stream-controls .sf-control-title{font-weight:400;font-size:.84rem}
.sf-stream-controls .sf-control-actions{grid-area:1/3;display:flex;align-items:center;gap:0;min-width:0}
.sf-stream-controls .sf-controls-reveal{opacity:.85}
.sf-stream-controls:not(.sf-controls-hidden) .sf-controls-reveal{display:none}
.sf-stream-controls .sf-control-timeline{grid-area:2/1/3/4;display:grid;grid-template-columns:48px minmax(32px,1fr) 48px auto 48px;align-items:center;gap:4px;min-width:0;padding-inline-start:0}
.sf-stream-controls[data-seekable=false] .sf-control-timeline{grid-template-columns:minmax(48px,1fr) auto 48px;padding-inline-start:12px}
.sf-stream-controls .sf-video-seek{width:100%;min-width:0;min-height:48px;height:48px;margin:0;padding:0;accent-color:#33becd;touch-action:none}
.sf-stream-controls .sf-video-time{font-size:.72rem;white-space:nowrap;font-variant-numeric:tabular-nums}
.sf-stream-controls.sf-controls-hidden{background:transparent;pointer-events:none}
.sf-stream-controls.sf-controls-hidden>:is(.sf-play-toggle,.sf-control-identity,.sf-control-timeline){visibility:hidden}
.sf-stream-controls.sf-controls-hidden .sf-control-actions{pointer-events:auto;margin-inline-start:auto}
.sf-stream-controls.sf-provider-native>:is(.sf-play-toggle,.sf-control-timeline){visibility:hidden;pointer-events:none}
.sf-stream-controls.sf-provider-native .sf-control-identity{grid-column:1/3;padding-inline-start:12px}
.sf-stream-controls .sf-video-state{position:absolute;inset:0 auto auto 48px;right:var(--player-actions-width,144px);height:48px;z-index:2;display:flex;align-items:center;gap:4px;font-size:.78rem;line-height:1.2;overflow:auto}
.sf-stream-controls .sf-video-state>span{min-width:0;flex:1}
.sf-stream-controls.sf-has-player-status .sf-control-identity{visibility:hidden}
.sf-stream-controls[data-state=blocked],.sf-stream-controls[data-state=error],.sf-stream-controls[data-state=waiting]{pointer-events:auto}
.sf-stream-controls:not(.sf-provider-native)[data-state=blocked]>.sf-play-toggle,.sf-stream-controls:not(.sf-provider-native)[data-state=error]>.sf-play-toggle,.sf-stream-controls:not(.sf-provider-native)[data-state=waiting]>.sf-play-toggle{visibility:visible}
.sf-stream-controls .sf-control-details{position:absolute;z-index:5;left:48px;right:48px;bottom:100%;width:auto;max-height:min(45dvh,20rem);padding:10px 12px;white-space:pre-line;overflow:auto;overscroll-behavior:contain;background:rgba(8,24,30,.88);color:#fff;font-size:.9rem;line-height:1.4;pointer-events:auto}
.sf-stream-controls:is([data-provider=youtube],[data-provider=facebook]) .sf-control-details{bottom:0;height:96px;max-height:96px;left:48px;right:144px;background:var(--paper,#fff);color:var(--sf-ink,#203d47)}
.sf-stream-controls .sf-transport-button:focus-visible,.sf-stream-controls .sf-video-seek:focus-visible{outline:2px solid currentColor;outline-offset:-3px}
.sf-facebook-viewport{position:absolute;inset:0;display:grid;place-items:center;container-type:size;min-width:0;min-height:0;overflow:hidden;overscroll-behavior:contain}
.sf-facebook-viewport>.fb-video{display:block;position:relative;width:min(100%,177.778cqh)!important;height:min(100cqh,56.25cqw)!important;min-width:0!important;min-height:0!important;max-width:100%;max-height:100%;aspect-ratio:16/9}
.sf-portrait .sf-facebook-viewport>.fb-video{width:min(100%,56.25cqh)!important;height:min(100cqh,177.778cqw)!important;aspect-ratio:9/16}
.sf-facebook-viewport>.fb-video>span,.sf-facebook-viewport>.fb-video iframe{display:block;width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;max-width:100%;max-height:100%;border:0}
.sf-media-facebook{min-height:220px;aspect-ratio:16/9;background:#071217}
.sf-media-facebook>.sf-facebook-cover{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;width:100%;height:100%;max-width:none;border:0;border-radius:0;background:#eef6f7;color:#08788b;font-size:1rem;font-weight:650;cursor:pointer}
.sf-facebook-cover>svg{width:52px;height:52px;fill:currentColor;stroke:none}
.sf-facebook-cover>span{padding:0 16px;text-align:center}
.sf-media-facebook.sf-portrait{aspect-ratio:9/16}
.sf-yt-viewport{position:absolute;inset:0;display:grid;place-items:center;container-type:size;min-width:0;min-height:0}
.sf-yt-viewport>iframe{display:block;width:100%;width:min(100%,177.778cqh);height:auto;aspect-ratio:16/9;min-height:200px;min-width:min(200px,100%);max-height:100%;border:0}
.sf-portrait .sf-yt-viewport>iframe{width:min(100%,56.25cqh);aspect-ratio:9/16}
.sf-media-youtube{min-height:200px}
.sf-stream-open{overflow:hidden!important}
body:fullscreen{width:100vw;height:100dvh;overflow:hidden}
.sf-stream-expanded.sf-video-block{position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;max-width:none!important;max-height:none!important;margin:0!important;padding:calc(48px + env(safe-area-inset-top)) 0 calc(48px + env(safe-area-inset-bottom))!important;border:0!important;border-radius:0!important;display:flex!important;flex-direction:column!important;gap:0!important;background:#071217!important;color:#fff;z-index:2147483000;overflow:hidden;overscroll-behavior:contain;box-sizing:border-box;isolation:isolate}
.sf-stream-expanded::backdrop{background:#071217}
.sf-stream-expanded>.sf-media{position:relative;flex:1 1 0;width:100%;height:auto;min-height:0;max-height:none;aspect-ratio:auto;overflow:hidden;touch-action:pinch-zoom}
.sf-stream-expanded>.sf-media>:is(video,img){position:absolute;inset:0;width:100%;height:100%;max-height:100%;object-fit:contain}
.sf-stream-expanded>.sf-media-audio{background:#11232b}
.sf-stream-expanded>.sf-media-audio>audio{position:absolute;inset:0;width:100%;height:100%}
.sf-stream-expanded>.sf-stream-controls{bottom:calc(48px + env(safe-area-inset-bottom));--player-ink:#fff}
.sf-stream-expanded>.sf-stream-controls:is([data-provider=youtube],[data-provider=facebook]){position:relative;bottom:auto;background:transparent}
.sf-stream-expanded>.sf-stream-controls:is([data-provider=youtube],[data-provider=facebook]) .sf-control-details{color:#fff;background:#071217}
.sf-stream-expanded>.sf-player-head{position:absolute;inset:0 0 auto;height:calc(48px + env(safe-area-inset-top));padding:env(safe-area-inset-top) 6px 0;display:flex;align-items:center;justify-content:flex-end;z-index:8;background:transparent;pointer-events:auto}
.sf-stream-expanded>.sf-player-head button{width:48px;height:48px;background:transparent}
.sf-stream-expanded .sf-deck-notice{align-self:center;max-width:36rem;margin:0;margin-inline-end:auto;padding:5px 9px;color:white;font-size:.875rem;overflow-wrap:anywhere}
.sf-stream-expanded .sf-deck-notice:empty{display:none}
.sf-stream-expanded>.sf-player-head button:focus-visible{outline:2px solid white;outline-offset:-3px}
.sf-stream-expanded>.sf-stream-footer{position:absolute;inset:auto 0 0;height:calc(48px + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:0;z-index:8;background:transparent;touch-action:pan-y}
.sf-stream-expanded .sf-stream-footer>:is(.sf-deck-nav,.sf-deck-actions,.sf-deck-slides){position:static!important;inset:auto!important;transform:none!important;display:flex;flex-direction:row!important;align-items:center;justify-content:center;gap:0;max-height:none;margin:0;padding:0;overflow:visible;pointer-events:auto}
.sf-stream-expanded .sf-stream-footer .sf-deck-actions{--sf-media-action-ink:#b6eeea;--sf-media-action-bg:#0b222de6;--sf-media-action-radius:.5rem;--sf-media-action-size:16px}
.sf-stream-expanded .sf-stream-footer button{display:grid;place-items:center;flex:none;min-width:48px;min-height:48px;width:48px;height:48px;padding:12px;margin:0;border:0;border-radius:var(--sf-media-action-radius,0);background:var(--sf-media-action-bg,transparent);color:var(--sf-media-action-ink,white);touch-action:manipulation}
.sf-stream-expanded .sf-stream-footer .sf-deck-actions button[aria-pressed=true]{--sf-media-action-ink:#65dfdc;--sf-media-action-bg:#0c485de6}
.sf-stream-expanded .sf-stream-footer button svg{width:var(--sf-media-action-size,22px);height:var(--sf-media-action-size,22px)}
.sf-stream-expanded .sf-stream-footer button[aria-pressed=true]>svg:not([data-reaction-icon]),.sf-stream-expanded .sf-stream-footer button[aria-pressed=true]>svg[data-reaction-icon=like],.sf-stream-expanded .sf-stream-footer button[aria-pressed=true]>svg[data-reaction-icon=heart]{fill:currentColor}
.sf-stream-expanded .sf-stream-footer button:focus-visible{outline:2px solid currentColor;outline-offset:-3px}
.sf-stream-expanded .sf-stream-footer button:disabled{opacity:.35}
.sf-stream-expanded .sf-stream-footer .sf-deck-nav button svg{transform:rotate(90deg)}
.sf-stream-expanded .sf-stream-expand{display:none}
.sf-stream-expanded .sf-media-hud .sf-hud-summary{bottom:12px}
.sf-stream-expanded .sf-video-tools{position:absolute;z-index:6;inset:auto 0 52px auto;background:transparent}
.sf-stream-placeholder{width:100%;pointer-events:none}
/* Story transport shares the controller; provider controls have their own row. */
.sf-story-stage>.sf-video-block{position:relative;width:100%;height:100%;min-height:0;display:flex;flex-direction:column}
.sf-story-stage>.sf-video-block>.sf-media{flex:1 1 0;min-height:0;max-height:none;aspect-ratio:auto;height:auto}
.sf-story-stage>.sf-video-block>.sf-media>video{height:100%;width:100%;object-fit:contain}
.sf-story-stage .sf-stream-controls{--player-ink:#fff}
.sf-viewer:has(.sf-stream-controls){display:grid;grid-template-columns:48px 48px minmax(0,1fr) 48px;grid-template-rows:auto 48px minmax(0,1fr) 48px;grid-template-areas:'progress progress progress progress' 'head head head head' 'stage stage stage stage' 'prev next actions actions';padding:env(safe-area-inset-top) 0 env(safe-area-inset-bottom);gap:0}
.sf-viewer:has(.sf-stream-controls)>.sf-bars{grid-area:progress;position:static}
.sf-viewer:has(.sf-stream-controls)>.sf-story-head{grid-area:head;position:static;height:48px;padding:0 4px;gap:4px;background:transparent}
.sf-viewer:has(.sf-stream-controls)>.sf-story-head .sf-story-tool{flex:none;width:48px;height:48px;padding:12px}
.sf-viewer:has(.sf-stream-controls)>:is(.sf-prev,.sf-next){width:48px;height:48px;margin:0}
.sf-viewer:has(.sf-stream-controls)>.sf-story-stage{grid-area:stage;position:relative;min-height:0;overflow:hidden}
.sf-viewer:has(.sf-stream-controls)>.sf-prev{grid-area:prev;position:static;transform:none}
.sf-viewer:has(.sf-stream-controls)>.sf-next{grid-area:next;position:static;transform:none}
.sf-viewer:has(.sf-stream-controls)>.sf-story-actions{grid-area:actions;position:static;display:flex;justify-content:flex-end;align-items:center;gap:0;min-width:0}
.sf-viewer:has(.sf-stream-controls)>.sf-story-actions button{flex:none;min-width:48px;min-height:48px;width:48px;height:48px;margin:0;padding:12px}
.sf-viewer:has(.sf-stream-controls)>.sf-story-options{z-index:9;top:48px}
.sf-story-stage .sf-stream-controls:is([data-provider=youtube],[data-provider=facebook]) .sf-control-details{background:#071217;color:#fff}
@media(max-width:420px){.sf-stream-expanded.sf-video-block{padding-bottom:calc(96px + env(safe-area-inset-bottom))!important}.sf-stream-expanded>.sf-stream-footer{height:calc(96px + env(safe-area-inset-bottom));grid-template-rows:48px 48px}.sf-stream-expanded .sf-stream-footer>.sf-deck-nav{grid-area:1/1}.sf-stream-expanded .sf-stream-footer>.sf-deck-slides{grid-area:1/3}.sf-stream-expanded .sf-stream-footer>.sf-deck-actions{grid-area:2/1/3/4}.sf-stream-expanded>.sf-stream-controls:not(:is([data-provider=youtube],[data-provider=facebook])){bottom:calc(96px + env(safe-area-inset-bottom))}.sf-stream-controls .sf-control-author{font-size:.75rem}.sf-stream-controls .sf-control-title{font-size:.78rem}}
/* Short landscape screens keep a 200px provider viewport. If browser safe areas
   leave less room, the surrounding rows scroll instead of clipping the frame. */
@media(orientation:landscape) and (max-height:430px) and (min-width:421px){
 .sf-stream-expanded.sf-video-block{padding:0!important;overflow:auto}
 .sf-stream-expanded>.sf-player-head{position:relative;inset:auto;flex:none;order:-1}
 .sf-stream-expanded>.sf-stream-footer{position:relative;inset:auto;flex:none;width:100%}
 .sf-stream-expanded>:is(.sf-media-youtube,.sf-media-facebook){flex:1 0 200px;min-height:200px}
 .sf-stream-expanded>.sf-stream-controls,.sf-story-stage .sf-stream-controls{height:48px;grid-template-rows:48px;grid-template-columns:48px minmax(0,1fr) minmax(190px,2fr) auto}
 .sf-stream-expanded>.sf-stream-controls .sf-control-actions,.sf-story-stage .sf-stream-controls .sf-control-actions{grid-area:1/4}
 .sf-stream-expanded>.sf-stream-controls .sf-control-timeline,.sf-story-stage .sf-stream-controls .sf-control-timeline{grid-area:1/3}
 .sf-stream-expanded>.sf-stream-controls.sf-has-player-status .sf-control-timeline,.sf-story-stage .sf-stream-controls.sf-has-player-status .sf-control-timeline{visibility:hidden}
 .sf-stream-expanded>.sf-stream-controls:is([data-provider=youtube],[data-provider=facebook]) .sf-control-details,.sf-story-stage .sf-stream-controls:is([data-provider=youtube],[data-provider=facebook]) .sf-control-details{height:48px;max-height:48px}
 .sf-viewer:has(:is(.sf-media-youtube,.sf-media-facebook)){grid-template-rows:3px 48px minmax(248px,1fr) 48px;overflow:auto}
 .sf-story-stage>.sf-video-block>:is(.sf-media-youtube,.sf-media-facebook){min-height:200px}
}
@media(prefers-reduced-motion:reduce){.sf-stream-expanded,.sf-stream-controls{transition:none}}
