/* Real screen recordings stay inside the original device artwork. */
.device-video {
  position: absolute;
  inset: 0;
  display: block;
  object-fit: contain;
  background: #000;
}
.device-video[hidden],
.preview-playback[hidden] {
  display: none;
}
.preview-playback {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: 500 11px/1.4 var(--font);
}
.preview-playback:hover {
  background: var(--surface-strong);
}
.preview-playback [data-preview-symbol] {
  width: 12px;
  text-align: center;
}
.detail-gallery, .detail-copy, [data-product-gallery] { min-width: 0; }
.gallery-thumbnails {
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 4px 2px 10px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}
.gallery-thumbnails .media-thumbnail {
  flex: 0 0 70px;
  scroll-snap-align: start;
}
.gallery-thumbnails .media-thumbnail {
  position: relative;
  height: 92px;
  gap: 5px;
}
.gallery-thumbnails .media-thumbnail img {
  height: 52px;
}
.media-thumbnail-label {
  color: var(--muted);
  font-size: 9px;
  white-space: nowrap;
}
.media-thumbnail-play {
  position: absolute;
  top: 26px;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #000b;
  color: #fff;
  font-size: 10px;
}
.media-thumbnail.is-active .media-thumbnail-label {
  color: var(--ink);
}

[data-product-gallery][hidden] { display: none; }
.media-platforms { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.media-platforms button { flex: 1; min-height: 46px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font: 500 13px/1.4 var(--font); }
.media-platforms button span { display: block; color: var(--muted); font-size: 10px; }
.media-platforms button[aria-pressed="true"] { border-color: var(--ink); background: var(--surface-strong); }
