.agent-demo {
  position: relative;
  margin: 0;
  border: 6px solid #ffffff;
  background: #231811;
  box-shadow: 0 16px 36px rgba(62, 37, 20, 0.18);
}

.agent-demo picture,
.agent-demo-media {
  display: block;
  width: 100%;
  height: 100%;
}

.agent-demo-media {
  object-fit: cover;
  object-position: center;
}

.agent-demo figcaption,
.agent-demo-toggle {
  position: absolute;
  bottom: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 29px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(35, 24, 17, 0.82);
  box-shadow: 0 8px 22px rgba(35, 24, 17, 0.2);
  font: inherit;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.04em;
  backdrop-filter: blur(8px);
}

.agent-demo figcaption {
  left: 12px;
}

.agent-demo figcaption span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff9b38;
  box-shadow: 0 0 0 4px rgba(255, 155, 56, 0.16);
}

.agent-demo-toggle {
  right: 12px;
  cursor: pointer;
}

.agent-demo-toggle:hover {
  background: rgba(35, 24, 17, 0.96);
}

.agent-demo-toggle:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.agent-demo.is-paused figcaption span {
  background: #d8cbbf;
  box-shadow: 0 0 0 4px rgba(216, 203, 191, 0.16);
}

@media (max-width: 620px) {
  .agent-demo {
    min-height: 224px;
    border-width: 5px;
  }

  .agent-demo figcaption,
  .agent-demo-toggle {
    bottom: 9px;
  }

  .agent-demo figcaption {
    left: 9px;
  }

  .agent-demo-toggle {
    right: 9px;
  }
}
