/* ===== 贊助主播（Twitch 導流） ===== */
.st {
  --st-ink: #eef1f7;
  --st-muted: #9aa3b5;
  --st-line: rgba(255, 255, 255, .1);
  --st-card: rgba(255, 255, 255, .04);
  --st-live: #ef4444;
  --st-twitch: #9146ff;
  --st-gold: #fbbf24;

  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 16px 90px;
  color: var(--st-ink);
}
.st * { box-sizing: border-box; }
.st [hidden] { display: none !important; }

.st-hero { text-align: center; padding: 28px 12px 12px; }
.st-hero__tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; letter-spacing: 2px; color: #c4a8ff;
  border: 1px solid rgba(145, 70, 255, .45); background: rgba(145, 70, 255, .12);
  padding: 4px 12px; border-radius: 999px; margin-bottom: 10px;
}
.st-hero__title { font-size: 28px; font-weight: 800; margin: 0 0 6px; color: #fff; }
.st-hero__desc { margin: 0; color: var(--st-muted); font-size: 14px; }

.st-section { margin-top: 24px; }
.st-section__title {
  display: flex; align-items: center; gap: 8px;
  font-size: 18px; font-weight: 700; margin: 0 0 12px; color: #fff;
}
.st-count { color: var(--st-muted); font-weight: 500; font-size: 15px; }
.st-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--st-live); box-shadow: 0 0 0 3px rgba(239, 68, 68, .25); }

.st-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }

.st-card {
  display: flex; flex-direction: column;
  background: var(--st-card);
  border: 1px solid var(--st-line);
  border-radius: 14px;
  overflow: hidden;
}
.st-card.is-live { border-color: rgba(239, 68, 68, .55); box-shadow: 0 0 0 1px rgba(239, 68, 68, .25), 0 8px 24px rgba(239, 68, 68, .12); }
.st-card.is-soon { border-color: rgba(251, 191, 36, .45); }

.st-card__media { position: relative; display: block; aspect-ratio: 16 / 9; background: #111; overflow: hidden; }
.st-card__img { width: 100%; height: 100%; object-fit: cover; display: block; }

.st-badge {
  position: absolute; top: 8px; left: 8px;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 8px; border-radius: 6px;
  font-size: 12px; font-weight: 700; line-height: 1.4; color: #fff;
  background: rgba(0, 0, 0, .65);
}
.st-badge i { width: 7px; height: 7px; border-radius: 50%; background: #6b7280; display: inline-block; }
.st-badge--live { background: var(--st-live); letter-spacing: 1px; }
.st-badge--live i { background: #fff; animation: st-pulse 1.6s ease-in-out infinite; }
.st-badge--soon { background: var(--st-gold); color: #1f1300; }

.st-viewers {
  position: absolute; bottom: 8px; left: 8px;
  padding: 2px 8px; border-radius: 6px; font-size: 12px; color: #fff;
  background: rgba(0, 0, 0, .65);
}

@keyframes st-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .st-badge--live i { animation: none; } }

.st-card__body { display: flex; flex-direction: column; gap: 8px; padding: 12px; flex: 1; }
.st-card__head { display: flex; align-items: center; gap: 8px; }
.st-card__avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex: none; background: #222; }
.st-card__name { margin: 0; font-size: 16px; font-weight: 700; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-card__title {
  margin: 0; font-size: 14px; color: var(--st-ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.st-card__game, .st-card__note { margin: 0; font-size: 13px; color: var(--st-muted); }
.st-card__desc {
  margin: 0; font-size: 12px; color: var(--st-muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.st-next { display: flex; flex-direction: column; gap: 2px; }
.st-next__label { font-size: 12px; color: var(--st-muted); }
.st-next__time { font-size: 18px; color: var(--st-gold); font-variant-numeric: tabular-nums; }
.st-next__title { margin: 0; font-size: 13px; color: var(--st-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.st-btn {
  margin-top: auto;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 10px; border-radius: 8px;
  font-size: 14px; font-weight: 700; text-decoration: none;
  color: #fff; background: rgba(145, 70, 255, .22); border: 1px solid rgba(145, 70, 255, .6);
}
.st-btn:hover { color: #fff; background: rgba(145, 70, 255, .4); }
.st-btn--live { background: var(--st-twitch); border-color: var(--st-twitch); }
.st-btn--live:hover { background: #a970ff; }

.st-empty-page { text-align: center; padding: 60px 12px; color: var(--st-muted); }

@media (max-width: 1100px) {
  .st-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .st { padding: 8px 10px 90px; }
  .st-hero { padding: 16px 8px 4px; }
  .st-hero__title { font-size: 22px; }
  .st-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .st-card__body { padding: 10px; gap: 6px; }
  .st-card__name { font-size: 14px; }
  .st-card__avatar { width: 26px; height: 26px; }
  .st-card__desc { display: none; }
  .st-next__time { font-size: 16px; }
  .st-btn { font-size: 13px; padding: 8px 6px; }
  .st-badge { font-size: 11px; }
}
@media (max-width: 360px) {
  .st-grid { grid-template-columns: 1fr; }
}
