/* The original key art remains beneath the recording until an actual frame is playing. */
.game-preview__video { pointer-events: none; opacity: 0; transition: opacity .16s ease-out; }
.game-preview__video[data-visible] { opacity: 1; }
.game-preview__video--card, .game-preview__video--spotlight {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.game-preview__video--spotlight { left: auto; width: 78%; }
.game-preview__video--spotlight[data-portrait] {
  inset: 5% 6% auto auto; width: auto; max-width: 45%; height: 83%; object-fit: contain;
  border-radius: 10px; box-shadow: 0 3px 18px #0a100f40;
}
.spotlight:has(.game-preview__video--spotlight[data-portrait]) .spotlight__copy { max-width: 48%; }
.spotlight:has(.game-preview__video--spotlight[data-portrait]) > .game-preview__control { top: auto; bottom: 8px; }
.game-preview__control {
  z-index: 5; display: inline-flex; gap: 7px; align-items: center; justify-content: center;
  min-height: 30px; padding: 0 11px; border: 1px solid #ffffff48; border-radius: 30px;
  color: #fff; background: #101611db; font: 650 11px/1 var(--ui-font); pointer-events: auto;
}
.game-preview__control::before {
  content: ""; width: 0; height: 0; border-top: 4px solid transparent;
  border-bottom: 4px solid transparent; border-left: 7px solid currentColor;
}
.game-preview__control[data-playing]::before {
  width: 7px; height: 9px; border: 0; border-inline: 2px solid currentColor;
}
.game-preview__control::after { content: ""; position: absolute; inset: -7px -2px; }
.spotlight > .game-preview__control { position: absolute; top: 14px; right: 14px; }
.gp-transport > .game-preview__control { position: relative; margin-left: auto; }
.game-preview__control:hover { background: #213425; border-color: #aeed9c; }
.spotlight__expand { display: none; }
@media (max-width: 760px) {
  .game-preview__video--spotlight { width: 86%; }
  /* Keep the portrait frame against the right edge, clear of the subject and the primary action. Tap it for the full recording. */
  .game-preview__video--spotlight[data-portrait], .spotlight__expand {
    position: absolute; inset: 4% 3% auto auto; width: auto;
    height: 53%; aspect-ratio: 1 / 2; border-radius: 7px;
  }
  .game-preview__video--spotlight[data-portrait] { background: #0e1513; }
  .spotlight:has(.game-preview__video--spotlight[data-portrait]):has(.game-preview__control[data-playing]) .spotlight__expand {
    z-index: 3; display: grid; place-items: start end; padding: 3px;
    color: white; border: 1px solid #ffffff73; background: transparent;
  }
  .spotlight__expand .icon {
    width: 20px; height: 20px; padding: 3px; border-radius: 4px; background: #0b1114ba;
  }
  .spotlight__expand:focus-visible { outline: 2px solid white; outline-offset: 2px; }
  .spotlight:has(.game-preview__video--spotlight[data-portrait]) .spotlight__copy { max-width: 57%; }
  .spotlight:has(.game-preview__video--spotlight[data-portrait]) .spotlight__hook { max-width: 88%; }
  .spotlight > .game-preview__control { top: 12px; right: 12px; }
}

#design-previews {
  margin-block: 18px; border: 1px solid var(--rule); border-radius: 14px; background: var(--panel);
  scroll-margin-block-start: calc(var(--header) + 12px);
}
#design-previews > summary {
  display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 16px;
  list-style: none; font-size: 15px; font-weight: 650; cursor: pointer;
}
#design-previews > summary::-webkit-details-marker { display: none; }
#design-previews > summary small { margin-left: auto; color: var(--muted); font-size: 12px; font-weight: 500; }
#design-previews > summary::after {
  content: ""; width: 8px; height: 8px; margin: -3px 2px 0 4px; border: solid currentColor;
  border-width: 0 1.5px 1.5px 0; transform: rotate(45deg);
}
#design-previews[open] > summary::after { transform: rotate(225deg); margin-top: 4px; }
.preview-archive__body { display: grid; gap: 14px; border-top: 1px solid var(--rule); padding: 16px; }
.preview-archive__picker { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; color: var(--muted); font-size: 13px; }
.preview-archive__picker select {
  min-height: 44px; min-width: min(100%, 204px); max-width: 100%; padding: 0 10px; border: 1px solid #475249;
  border-radius: 8px; color: var(--text); background: var(--panel-hi); font: 600 15px/1 var(--ui-font);
}
.preview-archive__stage { overflow: hidden; position: relative; border-radius: 10px; background: #0b0e0c; }
.preview-archive__stage video { width: 100%; height: min(55svh, 510px); object-fit: contain; }
.preview-archive__error { margin: 10px 16px; color: var(--muted); font-size: 14px; }
