/* Team Monitoring full product demo — top autoplay + mute only */
.eh-tm-demo {
  padding: 18px 0 8px;
}

.eh-tm-demo--top {
  padding-top: 12px;
}

.eh-tm-demo .site-shell {
  max-width: var(--site-width, min(1440px, calc(100% - 48px)));
}

.eh-tm-demo-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  background:
    radial-gradient(900px 320px at 12% 0%, rgba(9, 92, 255, 0.12), transparent 55%),
    linear-gradient(160deg, #ffffff, #eef4ff 55%, #f7f9ff);
  box-shadow: 0 28px 70px rgba(20, 48, 110, 0.14);
  padding: 22px 22px 18px;
}

.eh-tm-demo-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 16px;
}

.eh-tm-demo-head .section-label {
  display: inline-flex;
  margin-bottom: 8px;
}

.eh-tm-demo-head h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.04em;
  color: #14233f;
}

.eh-tm-demo-head p {
  margin: 8px 0 0;
  max-width: 560px;
  color: #5a6b86;
  font-size: 14px;
  line-height: 1.5;
}

.eh-tm-demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: linear-gradient(120deg, #4ea0ff, #095cff 50%, #4f46e5);
  color: #fff;
  font-size: 11px;
  font-weight: 780;
  box-shadow: 0 12px 28px rgba(9, 92, 255, 0.28);
}

.eh-tm-demo-frame {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #0b1630;
  aspect-ratio: 16 / 9;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.eh-tm-demo-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #0b1630;
  /* Hide any native controls UI */
  pointer-events: none;
}

.eh-tm-mute {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  background: rgba(10, 22, 48, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  transition: background 0.2s ease, transform 0.15s ease;
  pointer-events: auto;
}

.eh-tm-mute:hover {
  background: rgba(9, 92, 255, 0.92);
  transform: translateY(-1px);
}

.eh-tm-mute:focus-visible {
  outline: 2px solid #4ea0ff;
  outline-offset: 2px;
}

.eh-tm-mute-ico {
  width: 16px;
  height: 16px;
  display: inline-block;
  background: center / contain no-repeat;
}

.eh-tm-mute.is-muted .eh-tm-mute-ico {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M11 5L6 9H3v6h3l5 4V5z'/%3E%3Cpath d='M23 9l-6 6M17 9l6 6'/%3E%3C/svg%3E");
}

.eh-tm-mute.is-unmuted .eh-tm-mute-ico {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 5L6 9H3v6h3l5 4V5z'/%3E%3Cpath d='M15.5 8.5a5 5 0 010 7'/%3E%3Cpath d='M19 5a9 9 0 010 14'/%3E%3C/svg%3E");
}

.eh-tm-demo-note {
  margin: 12px 2px 0;
  color: #7a8aa3;
  font-size: 12px;
}

@media (max-width: 700px) {
  .eh-tm-demo-card { padding: 16px; border-radius: 22px; }
  .eh-tm-demo-frame { border-radius: 14px; }
  .eh-tm-mute { right: 10px; bottom: 10px; padding: 9px 12px; }
}
