.demo-video-frame {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  background: #1a1c1b;
  isolation: isolate;
  box-shadow: 0 24px 48px -12px rgba(26, 28, 27, 0.18), 0 0 0 1px rgba(119, 118, 123, 0.12);
}
.demo-video-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(231, 189, 177, 0.6), rgba(255, 255, 255, 0.2) 40%, rgba(231, 122, 77, 0.35));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 30;
}
.demo-video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.demo-video-frame .demo-video {
  position: absolute;
  inset: 0;
}
.demo-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease;
}
.demo-video-frame.is-loaded .demo-poster,
.demo-video-frame.is-loaded .demo-poster-overlay {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}
.demo-controls {
  display: none;
  align-items: center;
  gap: 0.75rem;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  padding: 0.5rem 1rem;
}
.demo-video-frame.is-loaded .demo-controls {
  display: flex;
}
.demo-control-btn {
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: background 0.2s ease, transform 0.2s ease;
}
.demo-control-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: scale(1.05);
}
.demo-play-btn {
  background: rgba(26, 28, 27, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: transform 0.3s ease, background 0.3s ease;
  box-shadow: 0 8px 32px rgba(26, 28, 27, 0.25);
}
.demo-play-btn:hover {
  background: rgba(56, 13, 0, 0.92);
  transform: scale(1.08);
}
.demo-video-frame.is-loading .demo-play-btn {
  pointer-events: none;
  opacity: 0.6;
}
.demo-video-frame.is-loading .demo-play-btn .material-symbols-outlined {
  animation: demoSpin 0.8s linear infinite;
}
@keyframes demoSpin {
  to { transform: rotate(360deg); }
}
.demo-scanline {
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255, 255, 255, 0.015) 2px,
    rgba(255, 255, 255, 0.015) 4px
  );
  pointer-events: none;
}
.demo-corner {
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: rgba(255, 255, 255, 0.4);
  z-index: 25;
  pointer-events: none;
}
.demo-corner-tl { top: 12px; left: 12px; border-top: 2px solid; border-left: 2px solid; }
.demo-corner-tr { top: 12px; right: 12px; border-top: 2px solid; border-right: 2px solid; }
.demo-corner-bl { bottom: 12px; left: 12px; border-bottom: 2px solid; border-left: 2px solid; }
.demo-corner-br { bottom: 12px; right: 12px; border-bottom: 2px solid; border-right: 2px solid; }
