/* 参考：refs/cartesia、refs/upload-zone-x，加上现站 santacam.org（evergreen + red CTA + Bree/Nunito）。
   Draft B "Your photo → your video": two portrait 9:16 frames side by side. Left: the empty
   porch (the clip's own last frame after Santa vanishes, same camera, same framing; the repo
   keeps no record of the portrait clip's source photo). Right: the clip playing. */

.hero {
  padding-top: 12px;
}
.media {
  margin-top: 16px;
}
.pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr);
  gap: 4px;
  align-items: center;
}
.frame {
  position: relative;
  margin: 0;
  aspect-ratio: 9 / 16;
  border-radius: var(--r-btn);
  border: 1px solid var(--line-soft);
  overflow: hidden;
  background: #000;
}
.frame img,
.frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.frame.cam::after {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), transparent 22%);
}
.frame .tag {
  position: absolute;
  z-index: 3;
  top: 8px;
  left: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--scrim);
  font: 700 16px/1.2 var(--body);
  color: #fff;
}
.frame .tag.on {
  background: var(--accent);
}
.arrow {
  display: grid;
  place-items: center;
  color: var(--text);
}
.arrow svg {
  width: 24px;
  height: 24px;
}
.frame .sound {
  top: auto;
  bottom: 8px;
  right: 8px;
}
.media.blocked .frame .sound {
  background: var(--accent);
  border-color: transparent;
}

/* What Santa says, under the pair (a frame this narrow is too small for a caption). */
.says {
  position: static;
  margin: 8px 0 0;
  max-width: none;
  min-height: 52px;
  padding: 4px 0 0;
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  text-align: left;
  font: 600 17px/1.4 var(--body);
  color: var(--text);
  opacity: 0.6;
  transform: none;
}
.says.on {
  opacity: 1;
}
.says .who {
  display: inline;
  font-size: 17px;
}
.actions .ctas {
  margin-top: 8px;
}

@media (min-width: 900px) {
  .hero {
    grid-template-rows: auto auto;
    align-items: start;
  }
  .hero .actions {
    grid-column: 1;
    grid-row: 2;
  }
  .hero .media {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    margin: 0 auto;
    width: min(560px, calc((100vh - 220px) * 9 / 8 + 32px));
  }
}
