/* Social look pass, Feed, Explore and Shots (24 Nov 2026, docs/SOCIAL-DESIGN-REVIEW.md items 1 to 8, 13, 14, 16 and 24).
   Loaded after social-system.css. Tokens only; no gradients, scrims or glows. Media overlays (play disc, chips, the reel's text panel)
   are black with white text in every theme, as the Shot stage always was, so they need no light value. */

/* Item 1: the lead post shows its picture first. social.js puts the headline under the actions; here it is the 18px post title. */
.sc-lead .sc-lead-head h2 { font-size:18px; line-height:24px; }

/* Item 3: no glow on any button or selected tab. Flat fills only. */
.w-btn--primary-teal, .w-btn--gold, .w-btn--purple, .w-tab[aria-selected="true"] { box-shadow:none; }

/* Item 3: the first-run card is a slim strip. One scrolling row of sports and two buttons side by side. */
.sn-first { gap:8px; margin:8px 0; padding:10px 12px; border-radius:12px; }
.sn-first .sn-step { font-size:11px; }
.sn-first .sn-first-h { font-size:16px; line-height:22px; }
.sn-first .sn-note { font-size:13px; line-height:18px; }
.sn-first .sn-picks { flex-wrap:nowrap; overflow-x:auto; scrollbar-width:none; margin-inline:-12px; padding-inline:12px; scroll-padding-inline:12px; }
.sn-first .sn-picks .sn-chip { flex:0 0 auto; }
.sn-first .sn-note[data-sn-first-say] { position:absolute; width:1px; height:1px; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.sn-first .sn-actions { flex-wrap:nowrap; }
.sn-first .sn-actions .w-btn { flex:1 1 0; min-width:0; }

/* Item 4 on phones: a Shot is full bleed. No inset and no rounded corners, so the picture runs edge to edge under the header row. */
@media (max-width:767px) {
  .sc-shots { width:auto; max-width:none; margin-inline:calc(-1 * var(--s3,12px)); }
  .sc-shots .ssh-stage, .sc-shots .ssh-stage[data-shape] { border-radius:0; }
  .sc-shots .ssh-card > .ssh-body { border-radius:0; }
}

/* Item 4 on wide screens: a 9:16 player, centred, with the words beside it. The sticky tabs above hold the Shots and Stories switch. */
@media (min-width:900px) {
  .sc-shots .ssh-card { grid-template-columns:auto minmax(0,340px); justify-content:center; align-items:end; gap:var(--s5,24px); }
  .sc-shots .ssh-card > .ssh-empty { grid-column:1 / -1; }
  .sc-shots .ssh-stage, .sc-shots .ssh-stage[data-shape] { width:auto; height:min(calc(100dvh - 250px),760px); min-height:420px; aspect-ratio:9 / 16; max-width:100%; margin-inline:0; }
  .sc-shots .ssh-stage[data-state=error] { aspect-ratio:9 / 16; }
  .sc-shots .ssh-body { padding-bottom:var(--s2); }
  .sc-shots .ssh-title { font-size:1.125rem; }
}

/* Item 5: on phones the caption stays to a line and the credit sits behind a 48px "i" chip in the right rail. Opened, the credit is a solid
   dark panel (no fade) above the text band. Wide screens show the credit as plain text under the Shot, so no chip there. */
.ssh-info { display:grid; place-items:center; min-width:48px; min-height:48px; padding:0; border:1px solid rgba(255,255,255,.4); border-radius:var(--r-lg,12px);
  background:rgba(10,10,10,.7); color:#fff; font:700 1rem/1 var(--font-heading); cursor:pointer; }
.ssh-info[aria-expanded="true"] { background:#fff; border-color:#fff; color:#000; }
@media (min-width:900px) { .ssh-info { display:none; } }
@media (max-width:899px) {
  .ssh-card > .ssh-body:not([data-credit]) .ssh-src { display:none; }
  .ssh-card > .ssh-body[data-credit] .ssh-src { position:absolute; left:var(--s3); right:calc(var(--s2) + 48px + var(--s2)); bottom:calc(100% + var(--s2)); z-index:4;
    padding:var(--s2) var(--s3); border-radius:var(--r-lg,12px); background:#0b0b0c; border:1px solid rgba(255,255,255,.28); color:#fff; font-size:.75rem; line-height:1.4; }
  .ssh-card > .ssh-body[data-credit] .ssh-src a { margin-block:0; }
  .ssh-card:has(.ssh-stage[data-state=error]) > .ssh-body .ssh-info { display:none; }
  .ssh-card:has(.ssh-stage[data-state=error]) > .ssh-body .ssh-src { display:block; position:static; }
}

/* Item 6: a focal point per picture. Each media file names the point that must stay in frame (x y, as object-position), so a landscape still
   cropped into a tall slot keeps the athlete or the ball. Images and clips share the rule; no new stock images. */
:is(img,video)[src*="matchday-goal"] { --fx:54%; --fy:50%; }
:is(img,video)[src*="matchday-crowd"] { --fx:45%; --fy:68%; }
:is(img,video)[src*="football-poster"], :is(img,video)[src*="/football.mp4"] { --fx:64%; --fy:58%; }
:is(img,video)[src*="/football.jpg"] { --fx:62%; --fy:48%; }
:is(img,video)[src*="football-training"] { --fx:47%; --fy:55%; }
:is(img,video)[src*="boxing-poster"], :is(img,video)[src*="/boxing.mp4"] { --fx:22%; --fy:30%; }
:is(img,video)[src*="athletics-start"] { --fx:50%; --fy:58%; }
:is(img,video)[src*="hoops"] { --fx:45%; --fy:55%; }
:is(img,video)[src*="match-action"] { --fx:32%; --fy:55%; }
:is(img,video)[src*="volleyball-net"] { --fx:56%; --fy:50%; }
:is(img,video)[src*="wheelchair-basketball"] { --fx:62%; --fy:50%; }
:is(img,video)[src*="/basketball.jpg"] { --fx:52%; --fy:45%; }
:is(img,video)[src*="athlete-profile"] { --fx:50%; --fy:38%; }
:is(img,video)[src*="/world-stands"], :is(img,video)[src*="/terrace"] { --fx:50%; --fy:50%; }
.sc-preview-frame :is(img,video), .sc-image-link img, .sc-xf-shot img, .sc-spotlight :is(img,video) { object-position:var(--fx,50%) var(--fy,50%); }
.ssh-stage[data-fit=cover] .ssh-media { object-position:var(--fx,50%) var(--fy,40%); }

/* Item 7: the caption under a full-bleed clip lines up with the actions and the words, not the screen edge. */
@media (max-width:767px) {
  .sc-clip figcaption { padding-inline:var(--s3,12px); line-height:16px; }
}

/* Item 8: one play control everywhere. 48px disc, 50% black, 2px white ring, white glyph. Teal stays for actions. */
.sc .sc-preview-play > span, .sc-md-hero .sc-preview-play span, .ssh-play-i { width:48px; height:48px; padding-left:3px; border:2px solid #fff; border-radius:50%;
  background:rgba(0,0,0,.5); color:#fff; font-size:18px; }
.sc .sc-preview-play:hover > span { background:rgba(0,0,0,.5); }
.ssh-play-i { padding-left:0; }
.ssh-play-i svg { width:22px; height:22px; }

/* Item 13: Explore's Live now. A 72px card per Huddle: up to three faces, a red Live pill, the room and the listeners. Stronger headings. */
.sc .sc-xf-head h2, .sc .sc-explore-more .sc-search-group { color:var(--shot-text); font-size:18px; line-height:24px; font-weight:700; letter-spacing:0; }
.sc .sc-live-strip.sc-live-cards { gap:8px; margin:0; border-block:0; }
.sc .sc-live-card { min-height:72px; padding:12px; border:1px solid var(--shot-border); border-radius:var(--r-lg,12px); background:var(--shot-surface); }
.sc .sc-live-card + .sc-live-card { border-top:1px solid var(--shot-border); }
.sc .sc-live-faces { display:flex; flex:none; align-items:center; width:88px; }
.sc .sc-live-faces .sch-face { width:40px; height:40px; border:2px solid var(--shot-surface); box-shadow:none; font-size:13px; }
.sc .sc-live-faces .sch-face + .sch-face { margin-left:-12px; }
.sc .sc-live-card > span:nth-child(2) { gap:3px; }
.sc .sc-live-pill { display:inline-flex; align-items:center; justify-self:start; min-height:20px; padding:0 8px; border-radius:999px; background:var(--shot-live); color:#000;
  font:700 11px/1 var(--font-body); letter-spacing:.06em; text-transform:uppercase; }

/* Item 14: Explore tiles. Smaller one-line titles, a kind chip top left and the sport top right, so the picture carries the tile. */
.sc .sc-xf-shot strong { font-size:13px; line-height:16px; -webkit-line-clamp:1; }
.sc .sc-xf-chip { position:absolute; z-index:1; top:8px; left:8px; display:inline-flex; align-items:center; min-height:24px; max-width:calc(50% - 12px); padding:0 8px; border-radius:999px;
  background:rgba(0,0,0,.72); color:#fff; font:600 12px/1 var(--font-body); font-style:normal; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.sc .sc-xf-chip--sport { left:auto; right:8px; }

/* Item 16: under 768px a post is not a card inside a page. The outer card goes, media runs edge to edge and a hairline separates the posts.
   Cards stay on desktop. */
@media (max-width:767px) {
  .sc-thread > .sc-post, .sc-thread > .sc-panel, .sc-watch-library > .sc-post { background:transparent; border-radius:0; padding:12px 0; box-shadow:none; }
  .sc-thread > .sc-post, .sc-watch-library > .sc-post { padding-inline:0; }
  .sc-thread > .sc-panel { border-top:1px solid var(--shot-border); }
  .sc-watch-library { gap:0; }
  .sc-watch-library > .sc-post { padding-block:12px; border-bottom:1px solid var(--shot-border); }
  :is(.sc-thread,.sc-watch-library) > .sc-post :is(.sc-clip,.sc-image-link,.sc-local-figure) { margin-inline:calc(-1 * var(--s3,12px)); }
  :is(.sc-thread,.sc-watch-library) > .sc-post :is(.sc-preview-frame,.sc-image-link,.sc-image-link img) { border-radius:0; }
}

/* Item 2: on phones the tabs and chips slide away on scroll down and return on scroll up (social.js sets data-away). 200ms ease-out, none under
   reduced motion. Focus inside the header always shows it, so a keyboard never lands on something out of sight. */
@media (max-width:767px) {
  .sc-sticky { transition:transform 200ms ease-out; }
  /* A header that carries the Back control never slides away: Back stays visible and tappable on every deep page. */
  .sc-sticky[data-away]:not(:has([data-act="shell:back"])) { transform:translateY(-101%); }
  .sc-sticky[data-away]:focus-within { transform:none; }
}
@media (prefers-reduced-motion:reduce) { .sc-sticky { transition:none; } }

/* Item 24: wide screens. The sticky tabs dock under the breadcrumb bar instead of covering it. */
@media (min-width:541px) {
  .sc-sticky { top:var(--sc-crumb-h,53px); }
}
.sc-rail { display:none; }
/* At 1200px and up a 300px rail sits beside the 600px feed: Live now, Clubhouses to join, Suggested Athletes. */
@media (min-width:1200px) {
  .sc-grid:has(> .sc-rail) { grid-template-columns:minmax(0,600px) 300px; justify-content:center; gap:32px; }
  .sc:has(.sc-rail) :is(.sc-nav,.sc-context,.sc-stories,.sc-feed-intro) { max-width:932px; }
  .sc-rail { display:grid; gap:20px; align-content:start; position:sticky; top:calc(var(--sc-crumb-h,53px) + 117px); min-width:0; }
  .sc-rail-box { display:grid; gap:8px; min-width:0; }
  .sc-rail-box h2 { font-size:18px; line-height:24px; }
  .sc-rail-box ul { display:grid; gap:0; margin:0; padding:0; list-style:none; }
  .sc-rail-row { display:flex; align-items:center; gap:12px; min-height:56px; padding:6px 0; color:var(--shot-text); text-decoration:none; }
  .sc-rail-row > span:last-child { display:grid; gap:2px; min-width:0; }
  .sc-rail-row strong { font-size:14px; line-height:18px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .sc-rail-row small { color:var(--shot-text-secondary); font-size:12px; line-height:16px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .sc-rail-row .sc-avatar { flex:none; width:44px; height:44px; }
  .sc-rail-row:hover strong { text-decoration:underline; }
  .sc-rail-row:focus-visible { outline-offset:-3px; }
}

/* Item 24: the toast sits at the bottom left of the content area on web, clear of the feed's centre. (app.js also clears it when the page changes.) */
@media (min-width:1024px) {
  .toast:not([style*="left"]) { left:calc(var(--sidebar-w,240px) + var(--s6,32px)); transform:translate(0,20px); text-align:left; }
  .toast.show:not([style*="left"]) { transform:translate(0,0); }
}
