/* S1 homepage featured streamer cards — compact hierarchy.
   Scoped to #s1-home-streamers only. Linked from the homepage alone.
   Keeps this site's existing .sd rose/berry tokens and 3/2/1 column
   breakpoints (default / max 1020 / max 640). Does not restyle Blog,
   ranking cards, FAQ, or /streamers/ directory pages. */

/* Module-level Start Chat note (not per card). Visible on all widths,
   including ≤640px where the original .sd-head p is hidden. */
#s1-home-streamers .sd-start-note{
  display:block;
  margin:0 0 14px;
  font-size:13px;
  line-height:1.4;
  color:var(--mute, #a49eae);
  max-width:42rem;
}

#s1-home-streamers .sd-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:22px;
}
@media (max-width:1020px){
  #s1-home-streamers .sd-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}
@media (max-width:640px){
  #s1-home-streamers .sd-grid{
    grid-template-columns:minmax(0, 1fr);
    gap:16px;
  }
}

/* Horizontal compact card: photo ~40%, identity + CTA on the right. */
#s1-home-streamers .sc{
  display:grid;
  grid-template-columns:clamp(120px, 40%, 152px) minmax(0, 1fr);
  align-items:stretch;
  gap:0;
  padding:0;
  overflow:hidden;
  position:relative;
  background:var(--card, #211e26);
  border:1px solid var(--line, #2f2b36);
  border-radius:16px;
  min-width:0;
}
#s1-home-streamers .sc:hover{
  transform:translateY(-2px);
}

#s1-home-streamers .sc .main{
  position:relative;
  aspect-ratio:3/4;
  width:100%;
  height:auto;
  min-height:0;
  align-self:stretch;
  border-radius:0;
  overflow:hidden;
  cursor:default;
  background:#111;
}
#s1-home-streamers .sc .main img.m{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:none;
}
#s1-home-streamers .sc:hover .main img.m{
  transform:none;
}
#s1-home-streamers .sc .main:after{
  content:"";
  position:absolute;
  inset:auto 0 0;
  height:28%;
  background:linear-gradient(transparent,#0007);
  pointer-events:none;
}

#s1-home-streamers .sc .info{
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:stretch;
  gap:0;
  padding:12px 14px 14px;
  min-width:0;
  min-height:0;
}
#s1-home-streamers .sc .name{
  margin:0;
  font-size:16px;
  line-height:1.25;
  font-weight:750;
  color:var(--txt, #f1eef4);
  white-space:normal;
  overflow:hidden;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  text-overflow:ellipsis;
}
#s1-home-streamers .sc .name bdi{
  unicode-bidi:isolate;
}
#s1-home-streamers .sc .meta{
  margin:4px 0 0;
  font-size:13px;
  line-height:1.35;
  color:var(--mute, #a49eae);
  white-space:normal;
  overflow:hidden;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  text-overflow:ellipsis;
}

#s1-home-streamers .sc .cta{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:6px;
  margin-top:12px;
  padding:0;
}
#s1-home-streamers a.sc-start{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-sizing:border-box;
  width:100%;
  flex:0 0 auto;
  min-height:44px;
  height:auto;
  padding:8px 12px;
  border-radius:12px;
  font-weight:800;
  font-size:14px;
  line-height:1.2;
  text-align:center;
  text-decoration:none;
  white-space:nowrap;
  background:var(--berry, #b2416c);
  background:linear-gradient(135deg,var(--rose,#e0698f),var(--berry,#b2416c));
  color:#fff;
  border:0;
  overflow-wrap:normal;
  word-break:normal;
}
#s1-home-streamers a.sc-start:hover,
#s1-home-streamers a.sc-start:focus-visible{
  filter:brightness(1.06);
  color:#fff;
  outline:2px solid #fff;
  outline-offset:2px;
}
#s1-home-streamers a.sc-profile{
  appearance:none;
  align-self:center;
  background:none;
  border:0;
  box-shadow:none;
  padding:4px 2px;
  min-height:24px;
  font:inherit;
  font-size:13px;
  font-weight:600;
  line-height:1.3;
  color:var(--mute, #a49eae);
  text-decoration:underline;
  text-underline-offset:3px;
  text-align:center;
}
#s1-home-streamers a.sc-profile:hover,
#s1-home-streamers a.sc-profile:focus-visible{
  color:var(--txt, #f1eef4);
  outline:none;
}

/* Safety: leftover original controls stay unrendered if markup drifts. */
#s1-home-streamers .sc .thumbs,
#s1-home-streamers .sc .watch,
#s1-home-streamers .sc .count,
#s1-home-streamers .sc .go,
#s1-home-streamers .sc .pfl,
#s1-home-streamers .sc .sc-more,
#s1-home-streamers .sc .sc-start-note,
#s1-home-streamers .sc .sc-aux-row,
#s1-home-streamers .sc .sc-aux{
  display:none !important;
}

/* Narrow only (max-width: 374px). 375+ keeps clamp(120px, 40%, 152px),
   info padding, and line-clamp. At 320 a 120px photo floor would take
   about half the card and leave too little text for full language lines
   or a name that includes Arabic letters. */
@media (max-width: 374px){
  #s1-home-streamers .sc{
    grid-template-columns:minmax(0, 40%) minmax(0, 1fr);
  }
  #s1-home-streamers .sc .info{
    padding:12px 10px 14px;
  }
  #s1-home-streamers .sc .name,
  #s1-home-streamers .sc .meta{
    display:block;
    -webkit-line-clamp:unset;
    overflow:visible;
    text-overflow:unset;
    white-space:normal;
  }
}


/* R1.1 language wrap only. Frozen R1 prefix above is unchanged.
   Does not change font-size, photo column, padding, radius, or grid.
   At 13px Inter, "English · Spanish · French" is ~158px. Arithmetic
   .meta content width is ~142px at 320 and ~147px at 1024, so the last
   word sat alone on the second line. text-wrap: balance evens that
   already-wrapping line (typically English · / Spanish · French).
   When the line already fits (measured ~180px at 1280 / ~183px at 400)
   there is no wrap, so the accepted one-line layout is unchanged.
   pretty is a fallback if balance is ignored. Not a visual pass. */
#s1-home-streamers .sc .meta{
  text-wrap: pretty;
  text-wrap: balance;
}
