/* S6 homepage featured streamer cards — R2 compact hierarchy.
   Scoped to #streamers only. Does not load on /streamers/ directory pages and does not style the Choose how you chat module. */

/* Module-level Start Chat note (not per card). Visible on all widths. */
#streamers .sd-start-note{
  margin:0 0 14px;
  font-size:13px;
  line-height:1.4;
  color:var(--mute, #a49eae);
  max-width:42rem;
}

#streamers .sd-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:12px;
}
@media (min-width:700px){
  #streamers .sd-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:16px;
  }
}
@media (min-width:1040px){
  #streamers .sd-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:18px;
  }
}

/* Horizontal compact card: photo ~40%, identity + CTA on the right. */
#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;
}
#streamers .sc:hover{
  transform:translateY(-2px);
}

#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;
}
#streamers .sc .main img.m{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:none;
}
#streamers .sc:hover .main img.m{
  transform:none;
}
#streamers .sc .main:after{
  content:"";
  position:absolute;
  inset:auto 0 0;
  height:28%;
  background:linear-gradient(transparent,#0007);
  pointer-events:none;
}

#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;
}
#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;
}
#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;
}

#streamers .sc .cta{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:6px;
  margin-top:12px;
  padding:0;
}
#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;
}
#streamers a.sc-start:hover,
#streamers a.sc-start:focus-visible{
  filter:brightness(1.06);
  color:#fff;
  outline:2px solid #fff;
  outline-offset:2px;
}
#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;
}
#streamers a.sc-profile:hover,
#streamers a.sc-profile:focus-visible{
  color:var(--txt, #f1eef4);
  outline:none;
}

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

/* R2.1 narrow only (max-width: 374px). 375+ keeps the accepted R2 rules above,
   including clamp(120px, 40%, 152px), info padding, and line-clamp.
   At 320 a 241px card with a 120px photo floor left only ~91px of text, which
   ellipsized ANITA's English Spanish Italian and cramped Beba’s Arabic name. */
@media (max-width: 374px){
  #streamers .sc{
    grid-template-columns:minmax(0,40%) minmax(0,1fr);
  }
  #streamers .sc .info{
    padding:12px 10px 14px;
  }
  #streamers .sc .name,
  #streamers .sc .meta{
    display:block;
    -webkit-line-clamp:unset;
    overflow:visible;
    text-overflow:unset;
    white-space:normal;
  }
}
