/* MYB News v2: /shorts/ only (loaded after /css/myb2.css by functions/shorts/index.js).
   1. the grid: the Shorts tab of a channel. Each Short's own upright picture, edge to edge on a phone, tight gaps,
      only "2 hrs ago" on it
   2. the feed: full screen, one Short at a time, swipe for the next (/js/shorts2.js). Always dark, like the apps.
   3. a shared link's first paint (html.sf-boot): black, the Short's picture and the play sign, until the feed is up
   House rules hold here too: no text-transform, no all-caps, no emoji; red is the one primary action (Subscribe).
   2026-11-11 (the flat look): no layout change; rectangles keep corners of 4px at most (--r, --r-img for pictures), no
   blur; a round button or avatar stays round.
   Cache-busted as /css/shorts2.css?v=N in functions/shorts/index.js. */

/* ======================================================================= 1. grid */
.sg-head{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding:16px 0 12px; }   /* clear of the section row above */
.sg-head h1{ font:800 24px/1.08 var(--head); font-stretch:84%; }
.sg-sub{ position:relative; }
.sg-sub::after{ content:""; position:absolute; left:0; right:0; top:-4px; bottom:-4px; }   /* 44px to tap */
.sg-sub{ flex:none; display:inline-flex; align-items:center; height:36px; padding:0 14px; border-radius:var(--r); background:var(--red-fill); color:#fff; font:600 14px/1 var(--sans);
  transition:background-color 140ms, transform 140ms var(--ease); }
.sg-sub:hover{ background:var(--red-hover); }
.sg-sub:active{ background:var(--red-press); transform:scale(.96); }
.sg-sub:focus-visible{ outline:2px solid var(--red-text); outline-offset:3px; border-radius:var(--r); }

/* a phone: two across, edge to edge (2px from the screen's sides), as on YouTube */
.sg{ list-style:none; margin:0 calc(2px - var(--gutter)); padding:0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:3px; }
.sg > li{ min-width:0; }
.st{ position:relative; display:block; aspect-ratio:9/16; border-radius:var(--r-img); overflow:hidden; isolation:isolate; background:var(--sunk-2); color:#fff;
  -webkit-tap-highlight-color:transparent; -webkit-touch-callout:none; }
.st__img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block; z-index:-1;
  font:500 12px/16px var(--sans); color:var(--ink-2); transition:transform 600ms var(--ease), filter 200ms; }
/* a soft shade at the foot, so the time reads on a white picture too */
.st::after{ content:""; position:absolute; left:0; right:0; bottom:0; height:30%; pointer-events:none;
  background:linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.16) 45%, rgba(0,0,0,.46) 100%); }
.st__when{ position:absolute; z-index:1; left:8px; bottom:6px; font:500 12px/16px var(--sans); letter-spacing:.005em; color:#fff;
  text-shadow:0 1px 2px rgba(0,0,0,.5); white-space:nowrap; }
.st:active .st__img{ filter:brightness(.88); }
.st:focus-visible{ outline:2.5px solid var(--red-text); outline-offset:2px; }
@media (hover:hover){ .st:hover .st__img{ transform:scale(1.035); } }

/* more of the site, as small chips under the grid (and for search engines, links into the rest of it) */
.sg-more{ display:flex; flex-wrap:wrap; gap:8px; margin:22px 0 6px; }
.sg-more a{ display:inline-flex; align-items:center; gap:3px; height:40px; padding:0 10px 0 14px; border-radius:var(--r); background:var(--fill-2); color:var(--ink);
  font:500 14px/1 var(--sans); transition:background-color 140ms; }
.sg-more a:hover{ background:var(--fill); }
.sg-more .chev{ width:14px; height:14px; color:var(--ink-3); stroke-width:2; }

@media (min-width:600px){
  .sg{ margin:0; grid-template-columns:repeat(3,minmax(0,1fr)); gap:4px; }
  .st{ border-radius:var(--r-img); }
  .st__when{ left:10px; bottom:8px; font-size:12.5px; }
}
@media (min-width:900px){ .sg{ grid-template-columns:repeat(4,minmax(0,1fr)); } }
@media (min-width:1100px){
  .sg-head{ padding:22px 0 14px; }
  .sg-head h1{ font-size:24px; line-height:30px; }
  .sg{ grid-template-columns:repeat(5,minmax(0,1fr)); }
}
@media (min-width:1360px){ .sg{ grid-template-columns:repeat(6,minmax(0,1fr)); } }

/* ======================================================================= 2. the feed
   One fixed layer over the page. A vertical scroller snaps one Short per screen; the YouTube player is ONE iframe
   that lives in the scroller and is moved under the Short on screen (moving it never reloads it). Layers, bottom up:
   the player -> the Short's picture (until the video plays) -> its controls and the touch layer. Geometry comes from
   /js/shorts2.js as px custom properties:
   --h  one screen          --cw/--ch  the 9:16 column (full screen on phones)     --ct/--cl  the column's top and left
   --vw/--vh/--vx/--vy  the video's box inside the column (the picture is drawn to the same box) */
html.sf-on, html.sf-on body{ overflow:hidden; }
html.sf-on .tabbar, html.sf-on .tabbar-edge{ visibility:hidden; }
.sf{ position:fixed; inset:0; z-index:100; background:#000; color:#fff; overscroll-behavior:contain; color-scheme:dark;
  -webkit-tap-highlight-color:transparent; -webkit-touch-callout:none; -webkit-user-select:none; user-select:none;
  touch-action:manipulation;   /* no double-tap zoom: two taps like the Short */
  --cw:100vw; --ch:100vh; --ct:0px; --cl:0px; --h:100vh; --kb:0px; --r:0px;
  --safe-t:env(safe-area-inset-top,0px); --safe-b:env(safe-area-inset-bottom,0px);
  --glow:drop-shadow(0 1px 1.5px rgba(0,0,0,.42)) drop-shadow(0 0 6px rgba(0,0,0,.16));
  --sheet:#1F1F21; --line:rgba(255,255,255,.1); --soft:rgba(255,255,255,.62); }
.sf[hidden]{ display:none!important; }
.sf:focus{ outline:none; }   /* the feed itself takes focus on open (so Space pauses); it is not a control */
.sf.is-col{ --r:4px; }
/* the scroller ends above Safari's own bottom bar where that bar overlaps the page (--vv-gap, set by /js/myb2.js) */
.sf__scroll{ position:absolute; inset:0; bottom:var(--vv-gap,0px); overflow-y:auto; overflow-x:hidden; scroll-snap-type:y mandatory; overscroll-behavior:contain;
  scrollbar-width:none; -webkit-overflow-scrolling:touch; touch-action:pan-y; outline:none; }
.sf__scroll::-webkit-scrollbar{ display:none; }
.sf__track{ position:relative; }
.sf__s{ position:relative; height:var(--h); scroll-snap-align:start; scroll-snap-stop:always; overflow:hidden; background:#000; }
.sf.is-col .sf__s{ background:#0F0F0F; }
.sf__col{ position:absolute; top:var(--ct); left:var(--cl); width:var(--cw); height:var(--ch); overflow:hidden; border-radius:var(--r); }
/* the Short's own picture, over the player until the video is playing */
.sf__s > .sf__col{ z-index:2; pointer-events:none; }
.sf__poster{ position:absolute; left:var(--vx,0px); top:var(--vy,0px); width:var(--vw,100%); height:var(--vh,100%); object-fit:cover; display:block; opacity:1; background:#000;
  max-width:none; }   /* (myb2.css caps every img at 100% of its box: the video is up to 4.5% wider than the screen on each side) */
.sf__poster:not([src]){ visibility:hidden; }
.sf__s.is-live .sf__poster, .sf__s.is-paused .sf__poster{ opacity:0; transition:opacity 120ms linear; }

/* the one player */
.sf__player{ position:absolute; left:0; right:0; top:0; height:var(--h); z-index:1; pointer-events:none; transform:translateY(var(--y,0px)); }
.sf__player .sf__col{ background:#000; }
.sf__player iframe{ position:absolute; border:0; pointer-events:none; left:var(--fx,0px); top:var(--fy,0px); width:var(--fw,100%); height:var(--fh,100%); }
.sf__player.is-wait .sf__col{ opacity:0; }

/* ----------------------------------------------------------------------- the controls on a Short */
.sf__ui{ position:absolute; inset:0; z-index:3; pointer-events:none; }
.sf__ui > *{ pointer-events:auto; }
.sf__shade{ position:absolute; left:var(--cl); top:var(--ct); width:var(--cw); height:var(--ch); border-radius:var(--r); pointer-events:none!important;
  background:linear-gradient(180deg, rgba(0,0,0,.3) 0, rgba(0,0,0,0) 96px), linear-gradient(0deg, rgba(0,0,0,.52) 0, rgba(0,0,0,.2) 120px, rgba(0,0,0,0) 240px);
  transition:background-color 220ms; }
.sf__s.has-open .sf__shade{ background-color:rgba(0,0,0,.42); }
/* the touch layer: swipes scroll the feed through it, a tap pauses or plays, two taps like */
.sf__tap{ position:absolute; left:var(--cl); top:var(--ct); width:var(--cw); height:var(--ch); border-radius:var(--r); cursor:pointer; }
/* paused, or waiting for a first tap: YouTube's own soft play symbol in the middle */
.sf__pz{ position:absolute; left:calc(var(--cl) + var(--cw) / 2); top:calc(var(--ct) + var(--ch) / 2); width:68px; height:68px; margin:-34px 0 0 -34px; border-radius:999px;
  display:grid; place-items:center; color:#fff; background:rgba(0,0,0,.36); opacity:0; transform:scale(1.18); pointer-events:none!important;
  transition:opacity 160ms, transform 240ms var(--ease); }
.sf__pz .i{ width:30px; height:30px; margin-left:3px; }
.sf__s.is-paused .sf__pz, .sf__s.needs-tap .sf__pz{ opacity:1; transform:none; }
/* waiting for its first tap (a shared link, or a phone that would not start it): a bigger, clearer play sign; the
   whole video is the button */
.sf__s.needs-tap .sf__pz, .sf-cover__pz{ width:84px; height:84px; margin:-42px 0 0 -42px; background:rgba(0,0,0,.42);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.14); }
.sf__s.needs-tap .sf__pz .i, .sf-cover__pz .i{ width:38px; height:38px; margin-left:5px; }
/* with YouTube's Shorts player (.is-yts) a tap pauses at once and its symbol comes a moment later, so a double tap
   (pause, then play straight back) never flashes it. (With its older player the tap itself waits: see shorts2.js) */
.sf.is-yts .sf__s.is-paused .sf__pz{ transition-delay:170ms; }

/* bottom left: only the title (two lines, a tap shows all of it) and how long ago; clear of the scrubber below it */
.sf__info{ position:absolute; left:calc(var(--cl) + 12px); right:76px; bottom:calc(28px + var(--safe-b)); display:grid; gap:4px; justify-items:start;
  pointer-events:none!important; text-shadow:0 1px 2px rgba(0,0,0,.42); transition:opacity 160ms; }
.sf__info > *{ pointer-events:none; }
.sf__t{ display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; max-width:100%; margin:0; padding:0; border:0; background:none;
  color:#fff; text-align:left; font:400 14.5px/20px var(--sans); text-wrap:pretty; text-shadow:inherit; cursor:default; }
.sf__info.can-open .sf__t{ pointer-events:auto; cursor:pointer; }
.sf__info.is-open .sf__t{ display:block; -webkit-line-clamp:none; max-height:min(38vh, 240px); overflow-y:auto; overscroll-behavior:contain; touch-action:pan-y; }
.sf__w{ font:500 12.5px/16px var(--sans); color:rgba(255,255,255,.78); }

/* the right rail, small, as on YouTube Shorts and TikTok: Like, Comment, Share, and the round logo with the red "+"
   (Subscribe). Outline signs; the heart fills red once liked. */
.sf__rail{ position:absolute; right:4px; bottom:calc(34px + var(--safe-b)); width:60px; display:grid; gap:10px; justify-items:center; transition:opacity 160ms; }
.sf__act{ display:grid; justify-items:center; gap:1px; width:60px; padding:0; border:0; background:none; color:#fff; cursor:pointer;
  font:600 12px/15px var(--sans); letter-spacing:.005em; text-shadow:0 1px 2px rgba(0,0,0,.55); }
.sf__ic{ width:48px; height:38px; display:grid; place-items:center; border-radius:999px; transition:background-color 140ms; }
.sf__act .i{ width:28px; height:28px; stroke-width:1.75; filter:var(--glow); transition:transform 160ms var(--ease), color 160ms; }
.sf__act:active .i{ transform:scale(.86); }
.sf__n{ white-space:nowrap; font-variant-numeric:tabular-nums; }
.i.is-fill{ fill:currentColor; }
.sf__like.is-on .i{ color:var(--red,#ED1C24); stroke:var(--red,#ED1C24); }
.sf__like.pop .i{ animation:sf-pop 420ms var(--ease); }
@keyframes sf-pop{ 0%{ transform:scale(1); } 30%{ transform:scale(1.32); } 60%{ transform:scale(.92); } 100%{ transform:scale(1); } }
/* the round logo; the red "+" on its lower edge, as TikTok draws Follow */
.sf__av{ position:relative; display:block; width:40px; height:40px; margin:6px 0 2px; border-radius:999px; background:#fff;
  box-shadow:0 0 0 1.5px rgba(255,255,255,.95), 0 2px 8px rgba(0,0,0,.35); transition:transform 140ms var(--ease); }
.sf__av::before{ content:""; position:absolute; inset:-6px -10px -12px; }   /* a finger-sized target, the "+" included */
.sf__av:active{ transform:scale(.92); }
.sf__av img{ width:100%; height:100%; display:block; border-radius:999px; }
.sf__plus{ position:absolute; left:50%; bottom:-8px; width:18px; height:18px; margin-left:-9px; border-radius:999px; display:grid; place-items:center;
  background:var(--red-fill,#E3141B); color:#fff; box-shadow:0 1px 3px rgba(0,0,0,.3); }
.sf__plus .i{ width:12px; height:12px; stroke-width:3; }
.sf__av:focus-visible{ outline:2px solid #fff; outline-offset:3px; }

/* the progress line, at the very foot of the video, and the strip round it that drags (the scrubber, /js/shorts2.js):
   held, the line thickens and grows a knob, the time shows over it, the title and the rail step aside. --p (0..1) is
   set on the strip; --pb is how far the line sits above the strip's foot. Only the strip takes the finger
   (touch-action:none), and only while the Short on screen is playing or paused. */
.sf__scrub{ position:absolute; left:var(--cl); width:var(--cw); top:calc(var(--ct) + var(--ch) - var(--safe-b) - 24px); height:24px; --pb:0px;
  touch-action:none; cursor:pointer; pointer-events:none!important; }
.sf__s.is-cur.is-live .sf__scrub, .sf__s.is-cur.is-paused .sf__scrub{ pointer-events:auto!important; }
.sf__prog{ position:absolute; left:0; right:0; bottom:var(--pb); height:2px; background:rgba(255,255,255,.24); overflow:hidden;
  opacity:0; transition:opacity 200ms, height 140ms var(--ease), bottom 140ms var(--ease), background-color 140ms; }
.sf__prog i{ position:absolute; inset:0; transform-origin:left center; transform:scaleX(var(--p,0)); background:#fff; }
.sf__s.is-cur.is-live .sf__prog, .sf__s.is-cur.is-paused .sf__prog, .sf__s.is-cur.is-slow .sf__prog{ opacity:1; }
.sf__s.is-paused .sf__prog{ height:3px; }
.sf__knob{ position:absolute; left:calc(var(--p,0) * 100% - 6.5px); bottom:calc(var(--pb) - 4px); width:13px; height:13px; border-radius:999px; background:#fff;
  box-shadow:0 1px 4px rgba(0,0,0,.4); transform:scale(0); transition:transform 140ms var(--ease), bottom 140ms var(--ease); pointer-events:none; }
.sf__s.is-scrub .sf__prog, .sf__s.is-seek .sf__prog{ height:5px; background:rgba(255,255,255,.34); }
/* held at the screen's very foot (no home bar below it), the line lifts 4 px so the whole knob shows */
.sf__s.is-scrub .sf__scrub, .sf__s.is-seek .sf__scrub{ --pb:max(0px, 4px - var(--safe-b)); }
.sf.is-col .sf__s.is-scrub .sf__scrub, .sf.is-col .sf__s.is-seek .sf__scrub{ --pb:10px; }
.sf__s.is-scrub .sf__knob, .sf__s.is-seek .sf__knob{ transform:none; }
@media (hover:hover){
  .sf__s.is-cur .sf__scrub:hover .sf__prog{ height:4px; }
  .sf__s.is-cur .sf__scrub:hover .sf__knob{ transform:scale(.85); }
}
/* the time while it is held: "0:12 / 0:45" over the middle of the line */
.sf__tm{ position:absolute; left:var(--cl); width:var(--cw); top:calc(var(--ct) + var(--ch) - var(--safe-b) - 96px); text-align:center; pointer-events:none!important;
  font:600 20px/26px var(--sans); font-variant-numeric:tabular-nums; color:rgba(255,255,255,.7); text-shadow:0 1px 3px rgba(0,0,0,.55); opacity:0; transition:opacity 140ms; }
.sf__tm b{ font-weight:700; color:#fff; }
.sf__s.is-scrub .sf__tm, .sf__s.is-seek .sf__tm{ opacity:1; }
.sf__s.is-scrub .sf__info, .sf__s.is-scrub .sf__rail{ opacity:0; pointer-events:none!important; }
.sf__s.is-scrub .sf__shade{ background-color:rgba(0,0,0,.18); }
/* a slow line: a soft light runs along it (never a spinner) */
.sf__s.is-slow .sf__prog::after{ content:""; position:absolute; top:0; bottom:0; left:0; width:34%; background:linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.85), rgba(255,255,255,0));
  animation:sf-run 1.2s linear infinite; }
@keyframes sf-run{ from{ transform:translateX(-100%); } to{ transform:translateX(300%); } }

/* a Short YouTube will not play here */
.sf__err{ position:absolute; left:calc(var(--cl) + 24px); width:calc(var(--cw) - 48px); top:calc(var(--ct) + var(--ch) / 2); translate:0 -50%; display:none; justify-items:center; gap:12px; text-align:center; }
.sf__err p{ margin:0; font:600 16px/22px var(--sans); }
.sf__s.is-err .sf__err{ display:grid; }
.sf__s.is-err .sf__poster{ filter:brightness(.32); }
.sf__s.is-err .sf__info, .sf__s.is-err .sf__shade{ visibility:hidden; }

/* round pills: the end card, a Short that will not play (Next Short) */
.sf__pill{ display:inline-flex; align-items:center; justify-content:center; gap:7px; height:40px; padding:0 18px; border:0; border-radius:4px; cursor:pointer;
  background:rgba(255,255,255,.14); color:#fff; font:600 14.5px/1 var(--sans); transition:background-color 140ms, transform 140ms var(--ease); }
.sf__pill:hover{ background:rgba(255,255,255,.22); }
.sf__pill:active{ transform:scale(.97); }
.sf__pill .i{ width:18px; height:18px; }
.sf__pill--red{ background:var(--red-fill,#E3141B); }
.sf__pill--red:hover{ background:var(--red-hover,#CF1218); }
.sf__pill--ghost{ background:none; color:rgba(255,255,255,.78); }
.sf__pill--ghost:hover{ background:rgba(255,255,255,.08); }

/* ----------------------------------------------------------------------- the fixed controls (one set for the feed) */
.sf__top{ position:absolute; z-index:6; left:var(--cl); width:var(--cw); top:calc(var(--ct) + var(--safe-t)); display:flex; align-items:center; justify-content:space-between;
  padding:4px 2px; box-sizing:border-box; pointer-events:none; }
.sf__top > *{ pointer-events:auto; }
.sf__tr{ display:flex; }
.sf__btn{ width:44px; height:44px; display:grid; place-items:center; padding:0; border:0; border-radius:999px; background:none; color:#fff; cursor:pointer;
  transition:transform 140ms var(--ease), background-color 140ms, opacity 200ms; }
.sf__btn .i{ width:24px; height:24px; stroke-width:2; filter:var(--glow); }
.sf__btn:active{ transform:scale(.9); }
.sf.at-end .sf__tr, .sf.at-end .sf__sound{ visibility:hidden; }
/* "Tap for sound": small, under the back arrow, as YouTube's own */
.sf__sound{ position:absolute; z-index:6; left:calc(var(--cl) + 12px); top:calc(var(--ct) + var(--safe-t) + 54px); display:inline-flex; align-items:center; gap:6px; height:32px; padding:0 13px 0 10px;
  border:0; border-radius:4px; background:rgba(255,255,255,.94); color:#0F0F0F; font:600 13px/1 var(--sans); box-shadow:0 4px 14px rgba(0,0,0,.28); cursor:pointer; }
.sf__sound .i{ width:18px; height:18px; flex:none; }
.sf__sound[hidden]{ display:none; }
/* a computer: up and down at the right of the screen */
.sf__nav{ position:absolute; z-index:6; right:calc(24px + env(safe-area-inset-right, 0px)); top:50%; translate:0 -50%; display:none; gap:12px; }
.sf.is-col .sf__nav{ display:grid; }
.sf__nav .sf__btn{ width:48px; height:48px; background:rgba(255,255,255,.1); }
.sf__nav .sf__btn:hover{ background:rgba(255,255,255,.2); }
.sf__nav .sf__btn .i{ filter:none; }
.sf__nav .sf__btn[disabled]{ opacity:.3; pointer-events:none; }
.sf :focus-visible{ outline:2px solid #fff; outline-offset:2px; }
.sf__act:focus-visible{ outline:none; }
.sf__act:focus-visible .sf__ic{ box-shadow:0 0 0 2px #fff; }

/* the heart a double tap leaves where the finger was */
.sf__burst{ position:absolute; z-index:7; width:104px; height:104px; margin:-64px 0 0 -52px; pointer-events:none; animation:sf-burst 840ms cubic-bezier(.2,.8,.2,1) forwards; }
.sf__burst svg{ width:100%; height:100%; display:block; fill:var(--red,#ED1C24); transform:rotate(var(--r,0deg)); filter:drop-shadow(0 8px 18px rgba(0,0,0,.32)); }
@keyframes sf-burst{ 0%{ transform:scale(.25); opacity:0; } 14%{ transform:scale(1.16); opacity:1; } 28%{ transform:scale(.94); } 42%{ transform:scale(1.02); } 68%{ transform:scale(1); opacity:1; } 100%{ transform:translateY(-80px) scale(1.3); opacity:0; } }

/* ----------------------------------------------------------------------- sheets: comments, share */
.sf__dim{ position:absolute; inset:0; z-index:8; background:rgba(0,0,0,.28); opacity:0; pointer-events:none; transition:opacity 240ms; }
.sf.has-sheet .sf__dim{ opacity:1; pointer-events:auto; }
.sf__sheet{ position:absolute; z-index:9; left:0; right:0; bottom:var(--kb,0px); max-height:calc(var(--vvh,100vh) - 56px); display:flex; flex-direction:column; box-sizing:border-box;
  background:var(--sheet); color:#F5F5F7; border-radius:4px 4px 0 0; box-shadow:0 -10px 40px rgba(0,0,0,.42); padding-bottom:var(--safe-b);
  transform:translateY(105%); transition:transform 300ms var(--ease); outline:none; -webkit-user-select:text; user-select:text; }
.sf__sheet.is-in{ transform:none; }
.sf__sheet.is-drag{ transition:none; }
.sf__sheet[hidden]{ display:none; }
.sf__sheet--cm{ height:min(62%, calc(var(--vvh,100vh) - 56px)); }
.sf__grab{ flex:none; height:22px; display:grid; place-items:center; touch-action:none; cursor:grab; }
.sf__grab span{ width:36px; height:4px; border-radius:2px; background:rgba(255,255,255,.26); }
.sf__sh{ flex:none; display:flex; align-items:center; justify-content:space-between; gap:8px; padding:0 6px 6px 16px; touch-action:none; }
.sf__sh h2{ margin:0; font:700 16px/22px var(--sans); letter-spacing:-.005em; }
.sf__cn{ margin-left:4px; font-weight:500; color:var(--soft); }
.sf__shx{ width:40px; height:40px; display:grid; place-items:center; flex:none; padding:0; border:0; border-radius:999px; background:none; color:#fff; cursor:pointer; }
.sf__shx:hover{ background:rgba(255,255,255,.08); }
.sf__shx .i{ width:22px; height:22px; stroke-width:2; }
.sf__sheet--cm .sf__sh{ border-bottom:.5px solid var(--line); }

/* the comments */
.sf__cl{ flex:1; min-height:0; overflow-y:auto; overscroll-behavior:contain; -webkit-overflow-scrolling:touch; touch-action:pan-y; padding:6px 0; outline:none; }
.sf__c{ display:grid; grid-template-columns:32px minmax(0,1fr); gap:10px; padding:9px 16px 4px; }
.sf__cav{ width:32px; height:32px; border-radius:999px; display:grid; place-items:center; background:var(--ac,#5B5B60); color:#fff; font:600 14px/1 var(--sans); }
.sf__chd{ margin:0; display:flex; gap:6px; align-items:baseline; min-width:0; font:400 12.5px/16px var(--sans); color:var(--soft); }
.sf__chd b{ font-weight:600; color:rgba(255,255,255,.88); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.sf__ct{ margin:3px 0 0; font:400 14.5px/20px var(--sans); color:#F5F5F7; overflow-wrap:anywhere; white-space:pre-line; }
.sf__ca{ display:flex; align-items:center; gap:2px; margin:2px 0 0 -9px; min-height:32px; }
.sf__clk, .sf__crp{ display:inline-flex; align-items:center; gap:5px; height:32px; padding:0 9px; border:0; border-radius:4px; background:none; color:var(--soft); font:500 12.5px/1 var(--sans); cursor:pointer; }
.sf__clk:hover, .sf__crp:hover{ background:rgba(255,255,255,.06); }
.sf__clk .i{ width:17px; height:17px; stroke-width:1.9; }
.sf__clk.is-on .i{ color:var(--red,#ED1C24); stroke:var(--red,#ED1C24); }
.sf__crp[disabled]{ cursor:default; opacity:.7; background:none; }
.sf__crp--yes{ color:#FF7A7E; font-weight:600; }
.sf__cask{ padding:0 9px; font:500 12.5px/1 var(--sans); color:rgba(255,255,255,.86); }
.sf__cnone{ display:grid; justify-items:center; gap:10px; padding:44px 24px; text-align:center; color:var(--soft); }
.sf__cnone .i{ width:30px; height:30px; opacity:.7; }
.sf__cnone p{ margin:0; font:500 15px/20px var(--sans); }
/* write one */
.sf__cf{ flex:none; display:grid; gap:8px; padding:10px 12px 12px; border-top:.5px solid var(--line); }
.sf__cname, .sf__ctext{ display:block; width:100%; box-sizing:border-box; margin:0; border:0; outline:none; border-radius:4px; background:rgba(255,255,255,.08); color:#fff;
  font:400 16px/20px var(--sans); padding:8px 14px; -webkit-appearance:none; appearance:none; }
.sf__cname{ height:36px; }
.sf__cname::placeholder, .sf__ctext::placeholder{ color:rgba(255,255,255,.45); }
.sf__cname:focus-visible, .sf__ctext:focus-visible, .sf__cname:focus, .sf__ctext:focus{ outline:none; box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.4); }
.sf__crow{ display:flex; gap:8px; align-items:flex-end; }
.sf__ctext{ flex:1; min-height:36px; max-height:120px; resize:none; overflow-y:auto; }
.sf__send{ flex:none; width:36px; height:36px; display:grid; place-items:center; padding:0; border:0; border-radius:999px; background:var(--red-fill,#E3141B); color:#fff; cursor:pointer; transition:background-color 140ms, transform 140ms var(--ease); }
.sf__send .i{ width:20px; height:20px; stroke-width:2.2; }
.sf__send:disabled{ background:rgba(255,255,255,.1); color:rgba(255,255,255,.38); cursor:default; }
.sf__send:not(:disabled):active{ transform:scale(.92); }
.sf__says{ margin:0 2px; font:500 13px/18px var(--sans); color:var(--soft); }
.sf__says.bad{ color:#FF8A8E; }
.sf__says[hidden]{ display:none; }

/* share (where the phone has no share sheet of its own) */
.sf__apps{ display:flex; gap:22px; padding:12px 20px 10px; }
.sf__app{ display:grid; justify-items:center; gap:8px; width:72px; padding:0; border:0; background:none; color:#F5F5F7; font:500 12.5px/16px var(--sans); cursor:pointer; }
.sf__appi{ width:56px; height:56px; border-radius:999px; display:grid; place-items:center; background:rgba(255,255,255,.12); color:#fff; transition:transform 140ms var(--ease), filter 140ms; }
.sf__appi--wa{ background:#25D366; }
.sf__appi .i{ width:28px; height:28px; stroke-width:1.8; }
.sf__app:active .sf__appi{ transform:scale(.93); }
.sf__app:hover .sf__appi{ filter:brightness(1.1); }
.sf__url{ display:block; margin:6px 16px 16px; width:calc(100% - 32px); box-sizing:border-box; height:40px; padding:0 14px; border:0; border-radius:4px; background:rgba(255,255,255,.08); color:#fff; font:400 15px/1 var(--sans); }
.sf__url[hidden]{ display:none; }
.sf__sheet--share{ padding-bottom:calc(var(--safe-b) + 12px); }

.sf__toast{ position:absolute; z-index:12; left:calc(var(--cl) + var(--cw) / 2); top:calc(var(--ct) + var(--safe-t) + 58px); transform:translate(-50%, -6px); max-width:calc(100vw - 32px); box-sizing:border-box;
  padding:9px 16px; border-radius:4px; background:rgba(44,44,46,.97); color:#fff; font:600 14px/18px var(--sans); text-align:center; box-shadow:0 8px 24px rgba(0,0,0,.4);
  opacity:0; transition:opacity 200ms, transform 240ms var(--ease); pointer-events:none; }
.sf__toast.is-in{ opacity:1; transform:translate(-50%, 0); }
.sf__toast[hidden]{ display:none; }

/* ----------------------------------------------------------------------- the end: every Short seen */
.sf__end{ position:absolute; left:var(--cl); top:var(--ct); width:var(--cw); height:var(--ch); box-sizing:border-box; border-radius:var(--r); display:flex; flex-direction:column;
  align-items:center; justify-content:center; gap:10px; padding:64px 28px calc(48px + var(--safe-b)); text-align:center; }
.sf.is-col .sf__end{ background:#161617; }
.sf__end img{ width:64px; height:64px; border-radius:999px; margin-bottom:6px; box-shadow:0 0 0 1.5px rgba(255,255,255,.9); }
.sf__end h2{ margin:0; font:700 22px/28px var(--display); letter-spacing:-.016em; }
.sf__end p{ margin:0; max-width:30ch; font:400 15px/21px var(--sans); color:rgba(255,255,255,.7); text-wrap:pretty; }
.sf__endb{ display:grid; gap:8px; width:min(100%, 260px); margin-top:14px; }
.sf__endb .sf__pill{ width:100%; height:44px; font-size:15px; }

/* ----------------------------------------------------------------------- a wider screen: a 9:16 column, the rail beside it */
.sf.is-col .sf__x{ position:fixed; left:calc(16px + env(safe-area-inset-left, 0px)); top:calc(16px + var(--safe-t)); width:44px; height:44px; background:rgba(255,255,255,.1); }
.sf.is-col .sf__x:hover{ background:rgba(255,255,255,.2); }
.sf.is-col .sf__x .i{ filter:none; }
/* Mute at the video's top left (as on YouTube on a computer): his logo, top right on every Short, stays clear */
.sf.is-col .sf__top{ padding:8px 6px; justify-content:flex-start; }
.sf.is-col .sf__rail{ right:auto; left:calc(var(--cl) + var(--cw) + 12px); bottom:calc(var(--ct) + 10px); gap:14px; }
.sf.is-col .sf__ic{ width:48px; height:48px; background:rgba(255,255,255,.1); margin-bottom:4px; }
.sf.is-col .sf__act:hover .sf__ic{ background:rgba(255,255,255,.18); }
.sf.is-col .sf__act .i{ width:24px; height:24px; filter:none; }
.sf.is-col .sf__act{ text-shadow:none; }
.sf.is-col .sf__info{ right:auto; width:calc(var(--cw) - 28px); left:calc(var(--cl) + 14px); bottom:calc(var(--ct) + 20px); }
/* the line at the column's foot, the strip reaching a little below it (into the margin) */
.sf.is-col .sf__scrub{ left:calc(var(--cl) + var(--r)); width:calc(var(--cw) - var(--r) * 2); top:calc(var(--ct) + var(--ch) - 14px); height:24px; --pb:10px; }
.sf.is-col .sf__tm{ top:calc(var(--ct) + var(--ch) - 80px); }
.sf.is-col .sf__sheet{ --sw:max(var(--cw), min(420px, calc(100vw - 24px))); left:max(12px, calc(var(--cl) + var(--cw) / 2 - var(--sw) / 2)); right:auto; width:var(--sw);
  bottom:var(--ct); border-radius:4px; max-height:calc(var(--ch) - 24px); }
.sf.is-col .sf__sheet--cm{ height:min(66%, calc(var(--ch) - 24px)); }
/* room beside the column (a computer): the comments open there, as on YouTube, and the video stays in full view */
.sf.cm-side .sf__sheet--cm{ left:calc(var(--cl) + var(--cw) + 88px); width:min(400px, calc(100% - var(--cl) - var(--cw) - 112px)); top:var(--ct); bottom:auto; height:var(--ch); max-height:none;
  border-radius:4px; box-shadow:none; transform:translateX(16px); opacity:0; transition:transform 260ms var(--ease), opacity 200ms; }
.sf.cm-side .sf__sheet--cm.is-in{ transform:none; opacity:1; }
.sf.cm-side .sf__sheet--cm .sf__grab{ display:none; }
.sf.cm-side .sf__sheet--cm .sf__sh{ padding-top:10px; }
.sf.cm-side[data-open-sheet="cm"] .sf__dim{ display:none; }
.sf.cm-side[data-open-sheet="cm"] .sf__nav{ display:none; }

/* small or short screens */
@media (max-height:700px){
  .sf__rail{ gap:6px; }
  .sf__ic{ height:36px; }
  .sf__act .i{ width:26px; height:26px; }
  .sf__av{ width:36px; height:36px; }
}
/* a phone held sideways: a small column, so everything gets compact */
@media (max-height:560px){
  .sf.is-col .sf__nav{ top:auto; bottom:12px; translate:none; display:flex; }
  .sf.is-col .sf__nav .sf__btn{ width:40px; height:40px; }
  .sf.is-col .sf__rail{ gap:4px; }
  .sf.is-col .sf__ic{ width:40px; height:40px; }
  .sf.is-col .sf__act .i{ width:20px; height:20px; }
  .sf.is-col .sf__av{ width:30px; height:30px; margin-top:2px; }
  .sf.is-col .sf__plus{ width:15px; height:15px; margin-left:-7.5px; bottom:-6px; }
  .sf.is-col .sf__plus .i{ width:10px; height:10px; }
  .sf.is-col .sf__info{ bottom:calc(var(--ct) + 14px); gap:3px; }
  .sf.is-col .sf__t{ font-size:13px; line-height:17px; }
  .sf__end{ padding:20px; gap:6px; }
  .sf__end img{ width:44px; height:44px; }
  .sf__end h2{ font-size:18px; line-height:23px; }
  .sf__end p{ font-size:13px; line-height:18px; }
  .sf__endb{ margin-top:6px; gap:4px; }
  .sf__endb .sf__pill{ height:36px; font-size:14px; }
}
@media (max-width:359px){
  .sf__info{ right:66px; }
  .sf__rail, .sf__act{ width:56px; }
  .sf__act .i{ width:26px; height:26px; }
}
/* a tablet or a phone held sideways: swipe, as on a phone (no up and down buttons) */
@media (hover:none) and (pointer:coarse){ .sf.is-col .sf__nav{ display:none; } }
@media (prefers-reduced-motion: reduce){
  .sf__scroll{ scroll-behavior:auto; }
  .sf__sheet, .sf.cm-side .sf__sheet--cm{ transition:none; }
  .sf__burst{ animation:sf-fade 700ms ease forwards; }
  .sf__s.is-slow .sf__prog::after{ animation-duration:3s; }
  .st__img{ transition:none; }
}
@keyframes sf-fade{ 0%{ opacity:0; } 20%{ opacity:1; } 100%{ opacity:0; } }
.sf__s.is-scrub .sf__knob, .sf__s.is-seek .sf__knob{ transition:none; }
@media (forced-colors: active){ .sf__btn, .sf__ic, .sf__pill, .sg-sub, .sf__plus{ border:1px solid CanvasText; } .sf__prog i, .sf__knob{ background:CanvasText; } }

/* ======================================================================= 3. a shared link's first paint
   /shorts/?v=<id> sets html.sf-boot before the body is drawn (functions/shorts/index.js): black, that Short's picture
   where the feed will draw it (the same sizes as layout() in /js/shorts2.js: the video fills the screen, losing at
   most 4.5% of a side; on a wide screen the 9:16 column) and the play sign; /js/shorts2.js lifts it under the feed. */
.sf-cover{ display:none; }
html.sf-boot, html.sf-boot body{ background:#000; overflow:hidden; }
html.sf-boot .sf-cover{ display:block; position:fixed; inset:0; z-index:300; background:#000; --vh1:100vh; }
@supports (height:100dvh){ html.sf-boot .sf-cover{ --vh1:100dvh; } }
.sf-cover img{ position:absolute; left:50%; top:50%; transform:translate(-50%, -50%); object-fit:cover; background:#000; max-width:none;
  --s:min(max(100vw / 9, var(--vh1) / 16), min(100vw / 9, var(--vh1) / 16) / .91); width:calc(var(--s) * 9); height:calc(var(--s) * 16); }
.sf-cover__pz{ position:absolute; left:50%; top:50%; border-radius:999px; display:grid; place-items:center; color:#fff; }
@media (min-width:600px) and (min-aspect-ratio:62/100){
  html.sf-boot .sf-cover{ background:#0F0F0F; }
  .sf-cover img{ width:min(calc((var(--vh1) - 40px) * 9 / 16), calc(100vw - 260px)); height:auto; aspect-ratio:9 / 16; border-radius:4px; }
}
@media (min-width:600px) and (min-aspect-ratio:62/100) and (max-height:559px){
  .sf-cover img{ width:min(calc((var(--vh1) - 20px) * 9 / 16), calc(100vw - 260px)); }
}
