/* S8 data-sync homepage overlay (local candidate only).
   Featured streamers restyle: teal / cream / mint. Does not replace
   s8-home-design-1124.css or s8-v2-ia-1125.css. Scoped to homepage showcase. */

.s8v2-disc #streamers.s8ds {
  grid-column: 1 / -1;
  margin: 8px 0 6px;
  padding: 8px 0 18px;
  background: transparent;
  color: #12382f;
}

.s8ds-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px 16px;
  margin: 0 0 14px;
}

.s8ds-head h2 {
  margin: 0 0 4px;
  font-size: 1.45rem;
  line-height: 1.3;
  color: #12382f;
}

.s8ds-head p {
  margin: 0;
  color: #3d5c55;
  line-height: 1.55;
  max-width: 36rem;
}

.s8ds-more {
  color: #12382f;
  font-weight: 700;
  text-decoration: none;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}

.s8ds-more:hover,
.s8ds-more:focus-visible {
  color: #0b2f28;
}

.s8ds-more:focus-visible {
  outline: 2px solid #12382f;
  outline-offset: 2px;
}

.s8ds-row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
}

.s8ds-card {
  flex: 0 0 100%;
  max-width: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  box-sizing: border-box;
  background: #fffdf8;
  border: 1px solid #d7efe8;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  box-shadow: 0 1px 0 #7dffd122;
}

.s8ds-cover {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  background: #e7f7f2;
  overflow: hidden;
}

.s8ds-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.s8ds-live {
  position: absolute;
  inset-block-start: 10px;
  inset-inline-start: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #12382f;
  color: #9ef0d8;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1;
  padding: 5px 8px;
  border-radius: 999px;
  pointer-events: none;
  animation: s8ds-live 2.2s ease-in-out infinite;
}

.s8ds-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3ee0a0;
  box-shadow: 0 0 0 0 rgba(62, 224, 160, .55);
  animation: s8ds-dot 2.2s ease-in-out infinite;
}

@keyframes s8ds-live {
  0%, 100% { opacity: 1; }
  50% { opacity: .82; }
}

@keyframes s8ds-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(62, 224, 160, .55); }
  50% { box-shadow: 0 0 0 5px rgba(62, 224, 160, 0); }
}

.s8ds-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 12px 14px;
  min-width: 0;
}

.s8ds-info .name {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.3;
  color: #12382f;
  overflow-wrap: anywhere;
}

.s8ds-info .meta,
.s8ds-info .pf {
  margin: 0;
  color: #3d5c55;
  font-size: .88rem;
  line-height: 1.45;
}

.s8ds-info .pf b {
  color: #12382f;
  font-weight: 700;
}

.s8ds-cta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.s8ds-details,
.s8ds-start {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .92rem;
  text-decoration: none;
  text-align: center;
}

.s8ds-details {
  color: #12382f;
  background: #fff;
  border: 1px solid #1a6b5c;
}

.s8ds-details:hover,
.s8ds-details:focus-visible {
  background: #f4fffb;
}

.s8ds-start {
  background: #12382f;
  color: #f4fffb !important;
  border: 1px solid #12382f;
  direction: ltr;
  font-family: inherit;
}

.s8ds-start:hover,
.s8ds-start:focus-visible {
  background: #0b2f28;
  border-color: #0b2f28;
}

.s8ds-details:focus-visible,
.s8ds-start:focus-visible {
  outline: 2px solid #12382f;
  outline-offset: 2px;
}

@media (min-width: 760px) {
  .s8ds-card {
    flex-basis: calc(50% - 7px);
    max-width: calc(50% - 7px);
  }
}

@media (min-width: 900px) {
  .s8ds-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: visible;
    scroll-snap-type: none;
  }
  .s8ds-card {
    flex: unset;
    max-width: none;
  }
}

/* Keep featured streamers after the three video cards when "all" or "video" is on;
   hide the band when a non-video category is filtered. */
.s8v2-disc:has(#f-ai-chat:checked) #streamers.s8ds,
.s8v2-disc:has(#f-ai-comp:checked) #streamers.s8ds,
.s8v2-disc:has(#f-msg:checked) #streamers.s8ds,
.s8v2-disc:has(#f-priv:checked) #streamers.s8ds,
.s8v2-disc:has(#f-soc:checked) #streamers.s8ds {
  display: none;
}

@media (max-width: 759px) {
  .s8ds-head h2 { font-size: 1.2rem; }
  .s8ds-info .name { font-size: 1rem; }
}

.s8ds-cover.s8ds-has-video img,
.s8ds-cover video.s8ds-vid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.s8ds-cover video.s8ds-vid {
  z-index: 1;
  background: transparent;
  pointer-events: none;
}
.s8ds-cover.s8ds-has-video img { z-index: 0; }
.s8ds-live { z-index: 2; }
.s8ds-note {
  margin: 12px 0 0;
  color: #3d5c55;
  font-size: .88rem;
  line-height: 1.55;
  max-width: 40rem;
}
@media (prefers-reduced-motion: reduce) {
  .s8ds-cover video.s8ds-vid,
  .s8ds-cover video.s8ds-vid-reduced { display: none !important; }
}
