.product-capture {
  position: relative;
  width: min(1120px, 94vw);
  margin-top: 46px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 24px;
  background: #05070c;
  box-shadow: 0 38px 110px rgba(0, 0, 0, .7), inset 0 1px rgba(255, 255, 255, .1);
  isolation: isolate;
}

.product-capture::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,.08), transparent 22%, transparent 78%, rgba(110,149,255,.06));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.025);
}

.product-capture__top {
  position: relative;
  z-index: 3;
  height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  color: #74809a;
  font: 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .07em;
  background: rgba(13, 16, 24, .94);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.product-capture__dot { width: 10px; height: 10px; border-radius: 50%; }
.product-capture__dot:nth-child(1) { background: #ff5f57; }
.product-capture__dot:nth-child(2) { background: #febc2e; }
.product-capture__dot:nth-child(3) { background: #28c840; }
.product-capture__url { margin-left: 12px; }
.product-capture__truth { margin-left: auto; color: #91a9d7; }

.product-capture__viewport {
  position: relative;
  aspect-ratio: 16 / 10;
  background: radial-gradient(circle at 50% 46%, rgba(74,107,194,.16), transparent 56%), #000;
}

.product-capture video,
.product-capture__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-capture video { z-index: 1; cursor: pointer; }
.product-capture__poster { z-index: 0; }

.product-capture__controls {
  position: relative;
  z-index: 2;
  width: max-content;
  max-width: calc(100% - 32px);
  margin: 16px auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px;
  background: rgba(8,11,18,.62);
  -webkit-backdrop-filter: blur(22px) saturate(1.45);
  backdrop-filter: blur(22px) saturate(1.45);
  box-shadow: 0 12px 36px rgba(0,0,0,.38), inset 0 1px rgba(255,255,255,.13);
}

.product-capture__button {
  border: 0;
  border-radius: 999px;
  padding: 10px 17px;
  color: #07090e;
  background: #f5f7fb;
  font: 650 12px/1 system-ui, sans-serif;
  letter-spacing: .025em;
  cursor: pointer;
}

.product-capture__button[data-sound='on'] { background: linear-gradient(120deg,#8ab4f8,#b79cff); }
.product-capture__credit { padding: 0 10px 0 5px; color: #aeb9ce; font-size: 11px; white-space: nowrap; }
.product-capture__credit a { color: #cfdbf2; text-decoration: none; border-bottom: 1px solid rgba(207,219,242,.35); }

.product-capture__caption {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 20px 17px;
  color: #7d89a2;
  font-size: 12px;
  line-height: 1.5;
  text-align: left;
  background: rgba(10,13,20,.88);
  border-top: 1px solid rgba(255,255,255,.07);
}
.product-capture__caption strong { color: #d7e1f4; font-weight: 620; }

/* Terminal View 的網格就是展示本體：裁掉錄屏裡的產品 chrome，並移除行銷視窗外框。 */
.product-capture--terminal-naked {
  width: min(1180px, 100vw);
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.product-capture--terminal-naked::after { display: none; }
.product-capture--terminal-naked .product-capture__viewport {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}
.product-capture--terminal-naked video,
.product-capture--terminal-naked .product-capture__poster {
  transform: scale(1.305);
  transform-origin: 50% 50%;
  pointer-events: none;
}

@media (max-width: 720px) {
  .product-capture__truth, .product-capture__credit { display: none; }
  .product-capture__caption { flex-direction: column; gap: 4px; }
  .product-capture { width: 100%; }
  .product-capture--terminal-naked { width: 100%; }
  .product-capture--terminal-naked video,
  .product-capture--terminal-naked .product-capture__poster { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .product-capture video { display: none; }
  .product-capture__controls { display: none; }
}
