.twitch-brand {
  display: grid;
  gap: 2px;
}
#twitch-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font: 10px Inter, sans-serif;
}
#twitch-status::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #aaa493;
}
#twitch-status[data-state="online"]::before {
  background: #4ade80;
  animation: twitch-pulse 1.6s ease-in-out infinite;
}
#twitch-status[data-state="offline"]::before {
  background: #fb6262;
}
@keyframes twitch-pulse {
  50% { opacity: .4; }
}
@media (prefers-reduced-motion: reduce) {
  #twitch-status[data-state="online"]::before { animation: none; }
}
#twitch-stream { position: relative; min-width: 0; overflow: clip; }
#twitch-frame { display: block; min-height: 316px; }
#twitch-frame::before, #twitch-frame::after { content: none; }
#twitch-player { position: absolute; inset: 0; }
#twitch-player iframe { width: 100%; height: 100%; display: block; border: 0; }
#twitch-link { display: inline-block; margin-top: 12px; }
#twitch-stream[data-state="offline"] { position: absolute; }
#twitch-stream[data-state="offline"] #twitch-link { display: none; }
#twitch-stream:is([data-state="offline"], [data-state="unavailable"]) #twitch-frame,
#twitch-stream[data-compact] #twitch-frame {
  position: absolute;
  inset: 0 auto auto 0;
  width: 416px;
  height: 316px;
  clip-path: inset(100%);
  visibility: hidden;
  pointer-events: none;
}
