/* Holiday gift: mirror Videos clip wizard chrome inside product shell */

.page-holiday-gift {
  --hg-ink: #F2E8E3;
  --hg-muted: rgba(242, 232, 227, 0.62);
  --hg-border: rgba(242, 232, 227, 0.14);
  --hg-radius: 13px;
}

/* Same as albums / videos: in document flow, not absolute over empty viewport. */
.page-holiday-gift .footer {
  position: relative;
  background-color: #000;
  margin-top: 8px;
}

.page-content-holiday-gift {
  max-width: 920px;
  width: auto;
  box-sizing: border-box;
  padding-bottom: 48px;
}

/* Signed-in boot: hide step panels until wizard_json resume finishes. */
.page-content-holiday-gift.is-booting > .holiday-gift-panel,
.page-content-holiday-gift.is-booting > .construction-step,
.page-content-holiday-gift.is-booting > [data-step] {
  visibility: hidden;
}

.page-content-holiday-gift.is-booting > .holiday-gift-steps {
  visibility: hidden;
}

.page-content-holiday-gift .video-page-title {
  margin: 0;
}

/* Same chrome as Videos — compact width, same height as stock .btn-alt. */
.page-content-holiday-gift .video-wizard-toolbar .nav-back-btn,
.page-content-holiday-gift .video-wizard-toolbar .video-wizard-discard {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  padding: 6px 10px;
  font-size: 12px;
  line-height: 1.2;
  opacity: 0.7;
}

.page-content-holiday-gift .video-wizard-toolbar .nav-back-btn:hover,
.page-content-holiday-gift .video-wizard-toolbar .video-wizard-discard:hover {
  opacity: 1;
}

.page-content-holiday-gift .video-wizard-toolbar .video-wizard-discard {
  margin-left: auto;
  margin-right: 0;
}

.page-content-holiday-gift .holiday-gift-steps.construction-step-nav {
  margin: 0 0 14px;
}

.page-content-holiday-gift .construction-step-nav-btn.is-reachable {
  cursor: pointer;
}

/* Same warm tracks/album card as video wizard, not Write collaborate teal */
.page-content-holiday-gift .video-wizard-step.construction-step {
  margin-top: 0;
  text-align: left;
  padding: 18px var(--construction-step-pad-x, 18px) 18px;
  background: linear-gradient(165deg, #3a2c28 0%, #241816 72%);
  border: 1px solid #ffffff2e;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  overflow: visible;
}

.page-content-holiday-gift .video-wizard-step.construction-step:has(> .construction-step-footer) {
  padding-bottom: 14px;
}

.page-content-holiday-gift .video-wizard-step .construction-step-prompt {
  margin: 0 0 10px !important;
  text-align: left;
}

.page-content-holiday-gift .video-wizard-step .video-step-hint:empty {
  display: none;
}

.page-content-holiday-gift .video-wizard-step .video-step-hint {
  margin: 0 0 14px;
  text-align: left;
  max-width: 640px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.45;
}

.page-content-holiday-gift .construction-step-footer {
  margin: 18px 0 0;
  padding-top: 4px;
  padding-bottom: 4px;
}

/* Match video wizard: secondary mid-step actions sit above the footer CTA */
.page-content-holiday-gift .video-ref-generate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
}

.page-content-holiday-gift .hg-status,
.page-content-holiday-gift .hg-error {
  margin: 10px 0 0;
}

.page-content-holiday-gift .hg-status:empty,
.page-content-holiday-gift .hg-error:empty {
  display: none;
}

.page-content-holiday-gift .hg-error {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 143, 122, 0.38);
  background: rgba(180, 60, 48, 0.22);
  color: #ffcfc4;
  font-size: 14px;
  line-height: 1.45;
}

.page-content-holiday-gift .hg-share-secondary {
  margin-top: 12px;
}

.page-content-holiday-gift .construction-step.is-busy .video-step-hint {
  margin-bottom: 8px;
}

.page-content-holiday-gift .hg-step-work {
  width: 100%;
}

.page-content-holiday-gift .video-generate-loading--detail {
  margin-top: 6px;
}

.page-content-holiday-gift .video-social-builder {
  margin: 4px 0 16px;
  width: 100%;
}

.page-content-holiday-gift .video-social-waveform-wrap {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 12px;
}

/* Waveform gets its own full-width row — don't squeeze beside the clip. */
.hg-finish-stage {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: stretch;
  margin: 4px 0 8px;
  width: 100%;
}

.hg-finish-clip {
  margin: 0;
  width: min(100%, 148px);
}

.hg-finish-clip-video {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(32vh, 260px);
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #0a0a0a;
}

.hg-finish-clip-label {
  display: block;
  margin: 8px 0 0;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: rgba(242, 232, 227, 0.72);
}

.hg-finish-mix {
  margin: 0;
  width: 100%;
  min-width: 0;
}

.hg-finish-mix .video-ref-section-head {
  margin-top: 0;
}

.page-content-holiday-gift .hg-finish-mix .video-social-waveform {
  width: 100%;
  min-height: 96px;
  margin-bottom: 12px;
  touch-action: none;
}

.page-content-holiday-gift .hg-finish-mix .video-social-trim-bar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  width: 100%;
}

.page-content-holiday-gift .hg-finish-mix .video-social-trim-bar .btn-alt {
  width: 100%;
  max-width: 220px;
  justify-content: center;
  min-height: 40px;
}

.page-content-holiday-gift .hg-finish-mix .video-social-selection {
  flex: none;
  width: 100%;
  margin: 0;
}

.hg-finish-lyrics {
  margin: 12px 0 0;
  text-align: left;
}

.hg-finish-lyrics.hg-hidden,
.hg-finish-lyrics[hidden] {
  display: none;
}

.hg-finish-lyrics-head {
  margin: 0 0 6px;
  color: rgba(242, 232, 227, 0.72);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.hg-finish-lyrics-body {
  max-height: 9.5em;
  overflow: auto;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
  color: rgba(242, 232, 227, 0.88);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  -webkit-overflow-scrolling: touch;
}

.hg-finish-stage.hg-hidden,
.hg-finish-clip.hg-hidden,
.hg-finish-review.hg-hidden {
  display: none;
}

.hg-finish-review {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
}

.hg-finish-review-title {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
  color: #fff;
}

/* Own label stack — don’t inherit .video-name-label / construction-step gaps. */
.hg-finish-title-label {
  display: block;
  margin: 0;
  padding: 0;
  max-width: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  line-height: 1.2;
}

.hg-finish-title-label > span {
  display: block;
  margin: 0 0 4px;
  padding: 0;
  line-height: 1.2;
}

.hg-finish-title-label > input {
  display: block;
  margin: 0 !important;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  padding: 10px 12px;
  line-height: 1.4;
  font-size: 15px;
  font-weight: 400;
}

/* Space sits ABOVE the People divider (border is on the row, not below the input). */
.hg-finish-review .video-review-summary {
  margin: 14px 0 0;
  padding: 0;
}

.hg-finish-review .video-review-row {
  align-items: baseline;
  padding: 10px 0;
}

.hg-finish-review .video-review-row:first-child {
  padding-top: 10px;
}

.hg-finish-review .video-review-row:last-child {
  padding-bottom: 10px;
}

.hg-finish-review .video-review-k {
  padding-top: 0;
}

@media (min-width: 701px) {
  .page-content-holiday-gift .hg-finish-mix .video-social-trim-bar {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  .page-content-holiday-gift .hg-finish-mix .video-social-trim-bar .btn-alt {
    width: auto;
  }

  .page-content-holiday-gift .hg-finish-mix .video-social-selection {
    flex: 1 1 auto;
    width: auto;
  }
}

.page-content-holiday-gift .hg-context-chip.video-context-chip {
  display: block;
  margin: 0 0 10px;
  padding: 8px 12px;
}

.page-content-holiday-gift .hg-context-line {
  display: block;
  color: rgba(242, 232, 227, 0.78);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  word-break: break-word;
}

.hg-scene-fit-note {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.22);
  color: rgba(242, 232, 227, 0.88);
  font-size: 0.9rem;
  line-height: 1.4;
}

.hg-scene-fit-note.is-mismatch {
  border-color: rgba(253, 205, 170, 0.45);
  color: #FDCDAA;
}

.hg-template-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  pointer-events: none;
}

.hg-template-card.is-fit .hg-template-badge {
  background: rgba(46, 125, 90, 0.9);
}

.hg-template-title {
  display: block;
  color: rgba(255, 255, 255, 0.94);
  font-weight: 600;
  font-size: 13px;
  line-height: 1.25;
}

.hg-template-blurb {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.62);
}

.hg-template-fit {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.3;
  color: rgba(253, 205, 170, 0.95);
}

.page-content-holiday-gift .video-ref-section-head {
  margin: 16px 0 8px;
}

.page-content-holiday-gift .video-ref-section-head:first-child {
  margin-top: 4px;
}

.page-content-holiday-gift .video-ref-section-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

.page-content-holiday-gift .video-ref-section-head > span {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.35;
}

.page-content-holiday-gift .video-ref-section-head h3 > span {
  display: inline;
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  color: rgba(255, 255, 255, 0.55);
  line-height: inherit;
}

.page-content-holiday-gift .video-direction-ref {
  margin: 4px 0 14px;
  align-items: center;
}

.page-content-holiday-gift .video-direction-ref-art {
  width: 72px;
  height: auto;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid #ffffff2e;
  background: #0a0a0a;
}

.page-content-holiday-gift .video-direction-ref-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* New take: source still is the lead visual — give it room once Takes are gone. */
.page-content-holiday-gift #hg-animate-still-row.video-direction-ref {
  margin: 0 0 16px;
  padding: 12px 14px;
  align-items: center;
}

.page-content-holiday-gift #hg-animate-still.video-direction-ref-art {
  width: 96px;
  height: auto;
  aspect-ratio: 9 / 16;
}

.page-content-holiday-gift .construction-step-footer {
  justify-content: flex-end;
}

/* No hover nudge — translateX(2px) on Continue reads as a 1–2px wiggle. */
.page-content-holiday-gift .opening-step-continue,
.page-content-holiday-gift .opening-step-continue:hover:not(:disabled),
.page-content-holiday-gift .construction-step-footer .opening-step-continue:hover:not(:disabled) {
  transform: none;
}

.page-content-holiday-gift .hg-export-result {
  margin: 0;
  padding: 0;
  border: 0;
}

.page-content-holiday-gift .hg-send-layout {
  display: grid;
  gap: 18px;
  align-items: start;
}

@media (min-width: 701px) {
  .page-content-holiday-gift .hg-send-layout {
    grid-template-columns: minmax(150px, 200px) minmax(0, 1fr);
    gap: 22px;
  }
}

.page-content-holiday-gift .hg-send-preview {
  margin: 0;
}

.page-content-holiday-gift .hg-send-panel {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  text-align: left;
}

.page-content-holiday-gift .hg-send-panel .video-ref-section-head {
  margin: 0 0 10px;
}

.page-content-holiday-gift .hg-send-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.page-content-holiday-gift .hg-send-actions .btn,
.page-content-holiday-gift .hg-send-actions .btn-alt,
.page-content-holiday-gift .hg-email-box > .btn-alt,
.page-content-holiday-gift .hg-send-secondary .btn-alt {
  min-height: 40px;
}

.page-content-holiday-gift #hg-share-footer .opening-step-continue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.page-content-holiday-gift #hg-share-footer .opening-step-continue svg {
  flex-shrink: 0;
}

.page-content-holiday-gift .hg-send-actions .btn {
  min-width: 160px;
  justify-content: center;
}

.page-content-holiday-gift .hg-email-box {
  margin: 0;
  padding: 16px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.page-content-holiday-gift .hg-email-box .video-ref-section-head {
  margin: 0 0 10px;
}

.page-content-holiday-gift .hg-email-box input,
.page-content-holiday-gift .hg-email-box textarea {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0 0 8px;
}

.page-content-holiday-gift .hg-email-box textarea {
  margin-top: 0;
  min-height: 64px;
}

.page-content-holiday-gift .hg-email-box > .btn-alt {
  margin: 4px 0 0;
}

.page-content-holiday-gift .hg-inline-feedback {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.4;
  color: rgba(242, 232, 227, 0.88);
}

.page-content-holiday-gift .hg-inline-feedback[hidden] {
  display: none !important;
}

.page-content-holiday-gift .hg-inline-feedback.is-ok {
  color: #c8e6c0;
}

.page-content-holiday-gift .hg-inline-feedback.is-err {
  color: #ffcfc4;
}

.page-content-holiday-gift .btn.is-busy,
.page-content-holiday-gift .btn-alt.is-busy,
.page-content-holiday-gift a.btn.is-busy,
.page-content-holiday-gift a.btn-alt.is-busy {
  pointer-events: none;
  cursor: wait;
  opacity: 0.88;
}

.page-content-holiday-gift .btn.is-busy .construction-clip-loading-spinner,
.page-content-holiday-gift .btn-alt.is-busy .construction-clip-loading-spinner,
.page-content-holiday-gift a.btn.is-busy .construction-clip-loading-spinner,
.page-content-holiday-gift a.btn-alt.is-busy .construction-clip-loading-spinner {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.page-content-holiday-gift .hg-photo-drop.is-busy {
  pointer-events: none;
  cursor: wait;
  border-color: rgba(253, 205, 170, 0.45);
  background: rgba(0, 0, 0, 0.34);
}

.page-content-holiday-gift .hg-photo-drop.is-busy .hg-photo-drop-icon {
  animation: hg-crop-spin 0.9s linear infinite;
}

.page-content-holiday-gift .hg-inline-loading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.page-content-holiday-gift .hg-inline-loading .construction-clip-loading-spinner {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.page-content-holiday-gift .hg-send-secondary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.page-content-holiday-gift #hg-song-loading.hg-hidden,
.page-content-holiday-gift #hg-song-loading[hidden] {
  display: none !important;
}

.page-content-holiday-gift .construction-step-footer .opening-step-continue:disabled {
  opacity: 0.28;
  pointer-events: none;
}

.page-content-holiday-gift .construction-step-footer .opening-step-continue.hg-hidden {
  display: none !important;
}

.page-content-holiday-gift a.opening-step-continue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-sizing: border-box;
}

.page-content-holiday-gift .video-start-choices {
  text-align: left;
}

.page-content-holiday-gift .video-song-picker {
  margin-top: 8px;
  max-height: min(48vh, 460px);
}

.page-content-holiday-gift .video-song-tools {
  margin: 0 0 10px;
}

.page-content-holiday-gift input[type="text"],
.page-content-holiday-gift input[type="email"],
.page-content-holiday-gift input[type="number"],
.page-content-holiday-gift textarea,
.page-content-holiday-gift select {
  background-color: #0000003d;
  border: 1px solid #ffffff33;
  border-radius: 4px;
  padding: 7px 10px;
  outline: none;
  font-family: "Lato", serif;
  color: #F2E8E3;
  font-weight: 300;
  font-size: 15px;
  color-scheme: dark;
  max-width: 100%;
  box-sizing: border-box;
}

/* Signed-in Faces: short showcase before upload (hides once they add a photo). */
.hg-faces-intro {
  margin: 0 0 14px;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--hg-border);
}
.hg-faces-intro-line {
  margin: 0;
  font-family: "Syne", "Lato", sans-serif;
  font-size: clamp(18px, 4.2vw, 24px);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #fff;
}
.hg-faces-intro-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  margin: 6px 0 0;
}
.hg-faces-intro-sub {
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
  color: var(--hg-muted);
}
.hg-faces-intro-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin: 0;
  font-family: "Syne", "Lato", sans-serif;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: rgba(253, 205, 170, 0.92);
}
.hg-faces-intro-flow span[aria-hidden="true"] {
  font-weight: 500;
  color: rgba(242, 232, 227, 0.35);
}
.hg-faces-intro-strip {
  display: flex;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0 0 2px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  /* bleed so edge cards don’t clip in padded step */
  margin-left: calc(-1 * var(--construction-step-pad-x, 18px));
  margin-right: calc(-1 * var(--construction-step-pad-x, 18px));
  padding-left: var(--construction-step-pad-x, 18px);
  padding-right: var(--construction-step-pad-x, 18px);
}
.hg-faces-intro-strip::-webkit-scrollbar {
  display: none;
}
.hg-faces-intro-card {
  flex: 0 0 auto;
  width: min(118px, 34vw);
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 11px;
  overflow: hidden;
  background: #0a0a0a;
}
.hg-faces-intro-card img {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}
.hg-faces-intro-card figcaption {
  padding: 5px 6px 6px;
  font-size: 10px;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.62);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 700px) {
  .hg-faces-intro-strip {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    overflow: visible;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .hg-faces-intro-card {
    width: auto;
    min-width: 0;
  }

  .hg-faces-intro-card figcaption {
    font-size: 11px;
    padding: 6px 7px 7px;
  }
}

@media (max-width: 699px) {
  .hg-faces-intro {
    margin: 0 0 10px;
    padding: 0 0 10px;
  }

  .hg-faces-intro-line {
    font-size: 17px;
  }

  .hg-faces-intro-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    margin-top: 4px;
  }

  .hg-faces-intro-sub,
  .hg-faces-intro-flow {
    font-size: 13px;
  }

  .hg-faces-intro-strip {
    gap: 6px;
    margin-top: 8px;
  }

  .hg-faces-intro-card {
    width: 72px;
    border-radius: 9px;
  }

  .hg-faces-intro-card figcaption {
    display: none;
  }
}

/* Signed-out discovery landing — one hero composition, then short below-fold */
.page-content-holiday-gift.is-discover {
  max-width: 960px;
  padding-bottom: calc(48px + env(safe-area-inset-bottom, 0px));
}

/* Discover has its own brand — never show wizard exit chrome */
.page-content-holiday-gift.is-discover .video-wizard-header {
  display: none !important;
}

.hg-discover {
  margin: 0;
}

.hg-discover-hero {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  text-align: center;
}

/* Mobile DOM order: brand → phone → pitch/CTA */
.hg-discover-phone {
  width: min(100%, 220px);
  margin: 0 auto;
  padding: 8px;
  border-radius: 24px;
  border: 1px solid rgba(253, 205, 170, 0.22);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(253, 205, 170, 0.16), transparent 55%),
    linear-gradient(165deg, #3a2c28 0%, #1a1210 70%);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4);
  box-sizing: border-box;
}

.hg-discover-phone-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(42vh, 360px);
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: center center;
  border-radius: 18px;
  background: #0a0a0a;
}

.hg-discover-copy {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

.hg-discover-brand {
  margin: 0;
  font-family: "Syne", "Lato", sans-serif;
  font-size: clamp(30px, 8vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #F2E8E3;
}

.hg-discover-headline {
  margin: 0;
  font-family: "Syne", "Lato", sans-serif;
  font-size: clamp(20px, 5vw, 28px);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #fff;
}

.hg-discover-support {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.45;
  color: rgba(242, 232, 227, 0.72);
}

.hg-discover-cta {
  margin: 16px 0 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.hg-discover-cta .btn {
  display: inline-flex;
  width: 100%;
  min-height: 48px;
  margin: 0;
  justify-content: center;
  box-sizing: border-box;
}

.hg-discover-below {
  margin: 36px 0 0;
  padding-top: 28px;
  border-top: 1px solid rgba(242, 232, 227, 0.12);
  text-align: left;
}

.hg-discover-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 0;
  font-family: "Syne", "Lato", sans-serif;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: rgba(253, 205, 170, 0.92);
}

.hg-discover-flow span[aria-hidden="true"] {
  font-weight: 500;
  color: rgba(242, 232, 227, 0.35);
}

.hg-discover-strip {
  display: flex;
  gap: 10px;
  margin: 18px 0 0;
  padding: 2px 2px 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.hg-discover-strip::-webkit-scrollbar {
  display: none;
}

.hg-discover-strip-card {
  flex: 0 0 auto;
  width: 108px;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  overflow: hidden;
  background: #0a0a0a;
}

.hg-discover-strip-card img {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.hg-discover-strip-card figcaption {
  padding: 6px 8px 8px;
  font-size: 11px;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.62);
}

@media (min-width: 860px) {
  .hg-discover-hero {
    display: grid;
    grid-template-columns: minmax(200px, 240px) minmax(0, 1fr);
    grid-template-areas:
      "phone brand"
      "phone copy";
    align-items: start;
    column-gap: 40px;
    row-gap: 8px;
    text-align: left;
  }

  .hg-discover-brand {
    grid-area: brand;
    align-self: end;
    font-size: 40px;
  }

  .hg-discover-phone {
    grid-area: phone;
    width: min(100%, 240px);
    margin: 0;
    padding: 8px;
    align-self: start;
  }

  .hg-discover-phone-img {
    max-height: min(48vh, 400px);
  }

  .hg-discover-copy {
    grid-area: copy;
    align-self: start;
    margin: 0;
    width: auto;
    max-width: 460px;
  }

  .hg-discover-cta {
    align-items: flex-start;
  }

  .hg-discover-cta .btn {
    width: auto;
    min-width: 220px;
  }

  .hg-discover-flow {
    font-size: 16px;
    gap: 10px 12px;
  }

  .hg-discover-strip {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    overflow: visible;
    padding: 0;
  }

  .hg-discover-strip-card {
    width: auto;
    min-width: 0;
  }
}

/* Land: template strip + how-it-works */
.hg-land-preview {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 4px 0 18px;
}

.hg-land-preview-card {
  margin: 0;
  min-width: 0;
  border: 1px solid #ffffff2e;
  border-radius: 12px;
  overflow: hidden;
  background: #0a0a0a;
}

.hg-land-preview-card img {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.hg-land-preview-card figcaption {
  padding: 6px 8px 8px;
  font-size: 11px;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.65);
}

.hg-how-choices.release-choices {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: none;
  margin-top: 4px;
  margin-bottom: 4px;
}

.hg-subprompt {
  font-size: 16px !important;
  margin-top: 14px !important;
  margin-bottom: 8px !important;
  text-align: left !important;
}

.hg-song-panel {
  margin-top: 18px;
}

/* Selected artist — mirrors Write opening artist chrome */
.hg-selected-artist {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 14px;
  padding: 10px 12px;
  border: 1px solid #ffffff2e;
  border-radius: 13px;
  background: rgba(0, 0, 0, 0.2);
}

.hg-selected-artist-photo {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #1a1513;
  background-size: cover;
  background-position: center;
  border: 2px solid rgba(253, 205, 170, 0.55);
}

.hg-selected-artist-photo.is-empty {
  border-color: rgba(255, 255, 255, 0.2);
}

.hg-selected-artist-copy {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hg-selected-artist-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}

.hg-selected-artist-copy strong {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hg-selected-artist-copy > span:last-child {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.62);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hg-selected-artist .btn-alt {
  flex: 0 0 auto;
}

.hg-artist-picker {
  margin: 0 0 16px;
  padding: 10px 0 4px;
}

.hg-artist-slider {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  padding: 4px 2px 10px;
  margin: 0;
  scrollbar-width: thin;
  scrollbar-color: #ffffff5c transparent;
}

.hg-artist-slider::-webkit-scrollbar {
  height: 6px;
}

/* Circular face picker — same language as Write cowriter options */
.hg-artist-card {
  flex: 0 0 auto;
  width: 84px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 4px;
  margin: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  opacity: 0.72;
  position: relative;
  z-index: 2;
  pointer-events: auto;
  touch-action: manipulation;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.hg-artist-card:hover,
.hg-artist-card:focus-visible {
  opacity: 1;
}

.hg-artist-card.is-selected {
  opacity: 1;
}

.hg-artist-photo {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background-color: #1a1513;
  background-size: cover;
  background-position: center;
  border: 3px solid rgba(255, 255, 255, 0.22);
  box-sizing: border-box;
  pointer-events: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.hg-artist-card:hover .hg-artist-photo,
.hg-artist-card:focus-visible .hg-artist-photo {
  border-color: rgba(253, 205, 170, 0.7);
}

.hg-artist-card.is-selected .hg-artist-photo {
  border-color: #FDCDAA;
  box-shadow: 0 0 0 3px rgba(253, 205, 170, 0.55);
  transform: scale(1.04);
}

.hg-artist-card strong {
  display: block;
  width: 100%;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
  pointer-events: none;
}

.hg-artist-card .hg-artist-genre {
  display: block;
  width: 100%;
  margin: -4px 0 0;
  font-size: 10px;
  font-style: normal;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.48);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
  pointer-events: none;
}

.hg-artist-card.is-selected strong {
  color: #FDCDAA;
}

.page-content-holiday-gift .hg-song-prompt.opening-chat-textarea,
.page-content-holiday-gift .hg-custom-prompt.opening-chat-textarea,
.page-content-holiday-gift .hg-animate-motion.opening-chat-textarea {
  display: block;
  width: 100%;
  max-width: none;
  min-height: 7rem;
  resize: vertical;
  margin: 0 0 4px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.28);
  color: #F2E8E3;
  font-size: 15px;
  line-height: 1.45;
  font-family: "Lato", serif;
  box-sizing: border-box;
}

.page-content-holiday-gift .hg-custom-prompt.opening-chat-textarea {
  min-height: 9.5rem;
  margin-top: 8px;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.34);
  border-color: rgba(255, 255, 255, 0.2);
}

.page-content-holiday-gift .hg-song-prompt.opening-chat-textarea:focus,
.page-content-holiday-gift .hg-custom-prompt.opening-chat-textarea:focus,
.page-content-holiday-gift .hg-animate-motion.opening-chat-textarea:focus {
  outline: none;
  border-color: rgba(253, 205, 170, 0.7);
}

.page-content-holiday-gift .hg-animate-motion.opening-chat-textarea {
  min-height: 5.5rem;
  margin-top: 8px;
}

.hg-animate-compose.hg-hidden,
.hg-animate-ready.hg-hidden {
  display: none;
}

.hg-animate-ready {
  margin: 0 0 12px;
}

.page-content-holiday-gift .hg-animate-cost.video-review-cost {
  margin: 14px 0 0;
  padding: 0;
  text-align: left;
  font-size: 14px;
  line-height: 1.35;
}

.page-content-holiday-gift .hg-animate-cost[hidden] {
  display: none !important;
}

#hg-animate-motion-hint {
  margin: 6px 0 0;
}

.page-content-holiday-gift .hg-animate-length-tip {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(253, 205, 170, 0.88);
}

.page-content-holiday-gift .hg-custom-prompt-label {
  display: block;
  width: 100%;
  margin: 14px 0 0;
}

.page-content-holiday-gift .hg-custom-prompt-label > span {
  display: block;
  margin: 0 0 2px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
}

.page-content-holiday-gift .hg-animate-motion-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 6px;
}

.page-content-holiday-gift .hg-text-btn {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 214, 170, 0.92);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.page-content-holiday-gift .hg-text-btn:hover {
  color: #fff;
}

.page-content-holiday-gift #hg-custom-prompt-hint {
  margin-top: 8px;
}

.hg-artist-style-wrap {
  margin: 0 0 12px;
}

.hg-artist-photo--none {
  position: relative;
  background-color: rgba(255, 255, 255, 0.06);
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.32);
}

.hg-artist-photo--none::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34%;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.55);
  transform: translate(-50%, -50%);
}

.hg-artist-card.is-none.is-selected .hg-artist-photo--none {
  border-style: solid;
  border-color: #FDCDAA;
  background-color: rgba(253, 205, 170, 0.12);
}

.hg-artist-card.is-none.is-selected .hg-artist-photo--none::before {
  background: #FDCDAA;
}

.hg-song-ready {
  margin: 0 0 16px;
}

.hg-song-ready-player {
  margin-top: 4px;
}

/* Ready player = stock video/album song row from styles.css — no custom card chrome. */
.page-content-holiday-gift .hg-song-ready-player .album-available-song {
  margin-bottom: 0;
}

.page-content-holiday-gift .hg-song-ready-player .video-available-song .song-main-controls {
  grid-template-columns: 44px minmax(0, 1fr) auto;
}

.hg-song-compose.hg-hidden {
  display: none;
}

.page-content-holiday-gift #hg-song-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.page-content-holiday-gift #hg-song-footer .btn-alt {
  margin-right: auto;
}

.page-content-holiday-gift #hg-song-footer .opening-step-continue {
  min-width: 9rem;
}

.holiday-gift-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  align-items: center;
}

.holiday-gift-actions .btn,
.holiday-gift-actions .btn-alt,
.holiday-gift-actions .hg-upload-label,
.holiday-gift-actions .opening-step-continue {
  margin-right: 0;
  width: auto;
}

.hg-upload-label {
  cursor: pointer;
}

.hg-photo-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  min-height: 160px;
  margin: 8px 0 10px;
  padding: 22px 18px;
  box-sizing: border-box;
  border: 2px dashed rgba(255, 255, 255, 0.28);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.18);
  color: rgba(255, 255, 255, 0.78);
  text-align: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.hg-photo-drop:hover,
.hg-photo-drop:focus-visible {
  outline: none;
  border-color: rgba(253, 205, 170, 0.7);
  background: rgba(253, 205, 170, 0.08);
  color: #fff;
}

.hg-photo-drop.is-dragover {
  border-color: #FDCDAA;
  background: rgba(253, 205, 170, 0.14);
  color: #fff;
}

.hg-photo-drop-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 4px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: #FDCDAA;
}

.hg-photo-drop-title {
  font-size: 17px;
  font-weight: 600;
  color: #fff;
}

.hg-photo-drop-sub {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.hg-photo-drop-meta {
  margin-top: 4px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}

.hg-photo-drop.is-compact {
  min-height: 0;
  margin: 12px 0 4px;
  padding: 10px 12px;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  justify-content: flex-start;
  text-align: left;
  border-width: 1px;
  border-style: dashed;
  border-radius: 12px;
}

.hg-photo-drop.is-compact .hg-photo-drop-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 0;
  border-radius: 9px;
  flex-shrink: 0;
}

.hg-photo-drop.is-compact .hg-photo-drop-icon svg {
  width: 16px;
  height: 16px;
}

.hg-photo-drop.is-compact .hg-photo-drop-title {
  font-size: 14px;
  font-weight: 600;
}

.hg-photo-drop.is-compact .hg-photo-drop-sub {
  display: none;
}

.hg-photo-drop.is-compact .hg-photo-drop-meta {
  display: none;
}

.hg-chip-row,
.hg-vibe-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

/* Style filters: one swipe row (Videos-style), never wrap into a chip jungle. */
.hg-template-filters {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin: 0 0 12px;
  padding: 2px 0 6px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.hg-template-filters::-webkit-scrollbar {
  display: none;
}

.hg-template-filters .hg-filter-chip {
  appearance: none;
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: auto;
  max-width: none;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid #ffffff2e;
  background: #ffffff14;
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.1;
  white-space: nowrap;
  cursor: pointer;
  box-sizing: border-box;
}

.hg-template-filters .hg-filter-chip.is-selected {
  border-color: #FDCDAA;
  background: rgba(253, 205, 170, 0.14);
  color: #FDCDAA;
}

@media (hover: hover) {
  .hg-template-filters .hg-filter-chip:hover {
    border-color: rgba(253, 205, 170, 0.55);
  }
}

.page-content-holiday-gift .hg-pick-slider {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  margin: 0 0 16px;
  padding: 2px 2px 10px;
  scrollbar-width: thin;
  scrollbar-color: #ffffff5c transparent;
}

.page-content-holiday-gift .hg-pick-slider::-webkit-scrollbar {
  height: 6px;
}

.page-content-holiday-gift .hg-pick-card {
  flex: 0 0 auto;
  width: 96px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  font: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  opacity: 0.78;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.page-content-holiday-gift .hg-pick-card img {
  display: block;
  width: 96px;
  height: auto;
  /* Template stills are 2:3 — never force square or 9:16 stretch. */
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.35);
  box-sizing: border-box;
}

.page-content-holiday-gift .hg-pick-card span {
  display: block;
  padding: 0 2px;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 600;
  color: inherit;
}

.page-content-holiday-gift .hg-pick-card:hover {
  opacity: 1;
}

.page-content-holiday-gift .hg-pick-card.is-selected {
  opacity: 1;
  color: #FDCDAA;
}

.page-content-holiday-gift .hg-pick-card.is-selected img {
  border-color: #FDCDAA;
  box-shadow: 0 0 0 1px rgba(185, 128, 90, 0.55);
}

@media (max-width: 700px) {
  .page-content-holiday-gift .hg-pick-card {
    width: 84px;
  }

  .page-content-holiday-gift .hg-pick-card img {
    width: 84px;
    border-radius: 11px;
  }

  .page-content-holiday-gift .hg-pick-card span {
    font-size: 11px;
  }
}

.page-content-holiday-gift #hg-song-progress.ai-working-loading {
  margin: 12px 0;
}

.hg-faces-step-label {
  margin: 4px 0 8px !important;
  font-size: 15px !important;
  font-weight: 600;
  color: #fff;
  text-align: left !important;
}

.hg-face-pack-wrap {
  margin: 2px 0 0;
}

.hg-face-names-note {
  margin: 2px 0 0;
  max-width: 34em;
}

.page-content-holiday-gift [data-step="faces"] > .video-step-hint {
  margin-bottom: 12px;
}

.hg-crop-secondary {
  margin-top: 10px;
}

.hg-consent {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 14px 0 0;
  padding: 14px 16px;
  border: 1px solid #ffffff2e;
  border-radius: var(--hg-radius);
  background: #ffffff0a;
}

.hg-consent .hg-faces-step-label {
  margin: 0 0 2px !important;
}

.hg-consent label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.45;
  cursor: pointer;
}

.hg-consent input {
  margin-top: 3px;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  accent-color: #B9805A;
}

.hg-consent-minors {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.68);
}

.hg-consent-guardian {
  margin-left: 28px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(253, 205, 170, 0.08);
  border: 1px solid rgba(253, 205, 170, 0.22);
}

.hg-face-pack {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 8px 0 0;
}

.hg-face-pack:empty {
  display: none;
  margin: 0;
}

.page-content-holiday-gift #hg-faces-status:empty {
  display: none;
}

#hg-crop-wrap {
  margin-bottom: 4px;
}

#hg-crop-wrap .holiday-gift-actions {
  margin-top: 10px;
}

#hg-crop-wrap .video-step-hint {
  margin: 8px 0 0;
}

.hg-face-card {
  width: 136px;
  text-align: center;
  position: relative;
  background: transparent;
}

#hg-custom-face-pick .hg-face-pick {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent !important;
  box-shadow: none !important;
  cursor: pointer;
  color: inherit;
}

#hg-custom-face-pick .hg-face-pick:focus-visible {
  outline: 2px solid rgba(253, 205, 170, 0.7);
  outline-offset: 3px;
}

.hg-face-card img,
.hg-face-purged {
  width: 136px;
  height: 136px;
  object-fit: cover;
  object-position: center top;
  border-radius: 12px;
  border: 1px solid #ffffff2e;
  display: block;
  background: #1a1513;
}

#hg-custom-face-pick .hg-face-card-name {
  display: block;
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.25;
  color: rgba(242, 232, 227, 0.72);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hg-face-purged {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 10px;
  font-size: 12px;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.06);
  text-align: center;
}

.hg-face-card.is-picked img {
  outline: 2px solid #B9805A;
  outline-offset: 2px;
}

.hg-face-card.needs-name img {
  border-color: rgba(253, 205, 170, 0.55);
  box-shadow: 0 0 0 1px rgba(185, 128, 90, 0.35);
}

.hg-face-name-label {
  display: block;
  margin: 8px 0 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  text-align: left;
}

.hg-face-card.needs-name .hg-face-name-label {
  color: #fdcdaa;
}

.hg-face-card input[type="text"] {
  width: 100%;
  margin-top: 0;
  background: #ffffff14;
  border: 1px solid #ffffff2e;
  border-radius: 8px;
  color: #fff;
  padding: 6px 8px;
  font-size: 13px;
  box-sizing: border-box;
}

.hg-face-card.needs-name input[type="text"] {
  border-color: rgba(253, 205, 170, 0.65);
  background: rgba(253, 205, 170, 0.12);
}

.hg-face-card.needs-name input[type="text"]::placeholder {
  color: rgba(253, 205, 170, 0.78);
}

.hg-face-card .hg-face-remove {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: #3a2a26;
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  line-height: 22px;
  padding: 0;
}

.hg-crop-stage {
  position: relative;
  display: block;
  width: 100%;
  max-width: 520px;
  margin: 14px 0 8px;
  line-height: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #140c0a;
  user-select: none;
  touch-action: none;
  box-sizing: border-box;
}

.hg-crop-stage img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 0;
}

.hg-crop-stage.is-detecting img {
  filter: brightness(0.55);
}

/* While detecting, hide premature confirm chrome */
#hg-crop-wrap.is-detecting .video-ref-section-head,
#hg-crop-wrap.is-detecting .hg-crop-secondary {
  display: none;
}

.hg-crop-detecting {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  background: rgba(20, 12, 10, 0.55);
  color: #fff;
  text-align: center;
  pointer-events: none;
}

.hg-crop-detecting[hidden] {
  display: none !important;
}

.hg-crop-detecting strong {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
}

.hg-crop-detecting-note:empty,
.hg-crop-detecting span:last-child:empty {
  display: none;
}

.hg-crop-detecting span:last-child {
  font-size: 12px;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.72);
}

.hg-crop-detecting-spin {
  width: 28px;
  height: 28px;
  margin-bottom: 4px;
  border: 2px solid rgba(253, 205, 170, 0.28);
  border-top-color: #fdcdaa;
  border-radius: 50%;
  animation: hg-crop-spin 0.7s linear infinite;
}

@keyframes hg-crop-spin {
  to { transform: rotate(360deg); }
}

.hg-crop-box {
  position: absolute;
  border: 2px solid #B9805A;
  background: rgba(185, 128, 90, 0.18);
  box-sizing: border-box;
  cursor: move;
  min-width: 36px;
  min-height: 36px;
}

.hg-crop-box-remove {
  position: absolute;
  top: -10px;
  right: -10px;
  z-index: 3;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 50%;
  background: #2a1c18;
  color: #fff;
  font-size: 14px;
  line-height: 22px;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.hg-crop-box-remove:hover,
.hg-crop-box-remove:focus-visible {
  background: #5a2f28;
  outline: none;
}

.hg-crop-handle {
  position: absolute;
  width: 12px;
  height: 12px;
  background: #fff;
  border: 2px solid #B9805A;
  border-radius: 2px;
  box-sizing: border-box;
}

.hg-crop-handle.se { right: -7px; bottom: -7px; cursor: nwse-resize; }
.hg-crop-handle.ne { right: -7px; top: -7px; cursor: nesw-resize; }
.hg-crop-handle.sw { left: -7px; bottom: -7px; cursor: nesw-resize; }
.hg-crop-handle.nw { left: -7px; top: -7px; cursor: nwse-resize; }

.hg-mode-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

/* Compact mode chips — never the Videos duration 100%-width mobile grid. */
.page-content-holiday-gift .hg-mode-tabs.video-duration-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: auto;
  max-width: 100%;
}

.page-content-holiday-gift .hg-mode-tabs .video-duration-option {
  width: auto !important;
  flex: 0 0 auto;
  min-height: 0;
  padding: 7px 12px;
  font-size: 13px;
  line-height: 1.2;
  justify-content: center;
  text-align: center;
}

.hg-mode-tabs .btn-alt {
  margin-right: 0;
}

.hg-template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 14px;
  max-height: min(56vh, 520px);
  overflow: auto;
  padding: 2px 2px 8px;
}

.hg-template-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid #ffffff2e;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  background: #14110f;
  margin: 0;
  padding: 0;
  color: inherit;
  text-align: left;
  font: inherit;
  line-height: normal;
}

.hg-template-card.is-selected {
  outline: 2px solid #B9805A;
  outline-offset: 1px;
}

.hg-template-art {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  line-height: 0;
  background: #1a1512;
}

.hg-template-art img,
.hg-template-card img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  border: 0;
  vertical-align: top;
}

.hg-template-card figcaption,
.hg-template-copy {
  display: flex;
  flex-direction: column;
  padding: 10px 11px 12px;
  color: var(--hg-muted);
  background: #14110f;
}

.hg-assign-layout {
  display: grid;
  grid-template-columns: minmax(120px, 168px) minmax(0, 1fr);
  gap: 18px 22px;
  align-items: start;
  margin: 4px 0 2px;
}

.hg-assign-ref {
  margin: 0;
  padding: 0;
  min-width: 0;
}

.hg-assign-ref.is-text-only .hg-assign-ref-art {
  display: none;
}

.hg-assign-ref.is-text-only .hg-assign-ref-copy {
  margin-top: 0;
  padding: 12px 14px;
  border: 1px solid #ffffff2e;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.hg-assign-ref-art {
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid #ffffff2e;
  background: #0a0a0a;
}

.hg-assign-ref-art img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  vertical-align: top;
}

.hg-assign-ref-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 10px;
  min-width: 0;
}

.hg-assign-ref-copy strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.92);
}

.hg-assign-ref-copy span {
  display: block;
  font-size: 12px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.58);
}

.hg-assign-cast {
  min-width: 0;
}

.hg-assign-cast .video-ref-section-head {
  margin-top: 0;
}

.hg-slots {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 10px 0 4px;
  max-width: 320px;
}

.hg-cast-details-label {
  display: block;
  width: 100%;
  max-width: 320px;
  margin: 12px 0 0;
}

.hg-cast-details-label > span {
  display: block;
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.78);
}

.hg-cast-details-label > span em {
  font-style: normal;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.42);
}

.page-content-holiday-gift .hg-cast-details.opening-chat-textarea {
  display: block;
  width: 100%;
  max-width: none;
  min-height: 4.2rem;
  resize: vertical;
  margin: 0;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid #ffffff2e;
  background: rgba(0, 0, 0, 0.28);
  color: #F2E8E3;
  font-size: 14px;
  line-height: 1.4;
  font-family: "Lato", serif;
  box-sizing: border-box;
}

.page-content-holiday-gift .hg-cast-details.opening-chat-textarea:focus {
  outline: none;
  border-color: rgba(253, 205, 170, 0.7);
}

.hg-slot-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  cursor: pointer;
}

.hg-slot-row .hg-slot-label {
  display: block;
  min-width: 0;
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.78);
}

.hg-slot-row.is-omitted .hg-slot-label {
  color: rgba(255, 255, 255, 0.42);
  text-decoration: line-through;
}

.hg-slot-row.is-omitted .hg-slot-select {
  opacity: 0.7;
}

.hg-slots > .video-step-hint {
  margin: 0 0 4px;
}

.hg-slot-row .hg-slot-select {
  display: block;
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  background-color: #ffffff14;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.72)' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
  color: #fff;
  border: 1px solid #ffffff2e;
  border-radius: 10px;
  padding: 11px 36px 11px 12px;
  font: inherit;
  font-size: 15px;
  line-height: 1.3;
  box-sizing: border-box;
}

.hg-slot-row .hg-slot-select:hover {
  border-color: #ffffff45;
}

.hg-slot-row .hg-slot-select:focus {
  outline: none;
  border-color: rgba(253, 205, 170, 0.55);
  box-shadow: 0 0 0 2px rgba(253, 205, 170, 0.18);
}

.hg-slot-row .hg-slot-select option {
  color: #1a1614;
  background: #fff;
}

.holiday-gift-panel input[type="text"],
.holiday-gift-panel input[type="email"],
.holiday-gift-panel textarea,
.hg-email-box input,
.hg-email-box textarea,
.hg-report-box select,
.hg-report-box textarea {
  background: #ffffff14;
  color: #fff;
  border: 1px solid #ffffff2e;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  width: 100%;
  max-width: 420px;
  box-sizing: border-box;
}

.holiday-gift-panel textarea,
.hg-email-box textarea {
  margin-top: 8px;
  display: block;
  min-height: 64px;
  resize: vertical;
}

.hg-storyboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin: 8px 0 16px;
}

.hg-story-slot {
  border: 1px dashed #ffffff2e;
  border-radius: 12px;
  min-height: 180px;
  padding: 10px;
  background: #ffffff0a;
}

.hg-story-slot strong {
  font-size: 13px;
  color: #fff;
}

.hg-story-slot video,
.hg-story-slot img {
  width: 100%;
  border-radius: 8px;
  display: block;
  margin-top: 8px;
}

.hg-song-cast {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: auto;
  max-width: 100%;
  margin: 0 0 16px;
  padding: 10px 12px;
  border: 1px solid #ffffff2e;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.18);
}

.hg-song-cast-people {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0;
  min-width: 0;
  flex: 0 1 auto;
}

.hg-song-cast-face {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  width: 52px;
  flex-shrink: 0;
}

.hg-song-cast-face + .hg-song-cast-face {
  margin-left: -10px;
}

.hg-song-cast-face img {
  width: 48px;
  height: 48px;
  border-radius: 11px;
  object-fit: cover;
  border: 2px solid #2a201c;
  background: #1a1513;
  position: relative;
  z-index: 1;
}

.hg-song-cast-face:nth-child(1) img { z-index: 3; }
.hg-song-cast-face:nth-child(2) img { z-index: 2; }
.hg-song-cast-face:nth-child(3) img { z-index: 1; }

.hg-song-cast-face span {
  font-size: 10px;
  line-height: 1.15;
  color: rgba(255, 255, 255, 0.78);
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hg-song-cast-arrow {
  color: #FDCDAA;
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
  margin: 0 2px;
}

.hg-song-cast-scene {
  flex: 0 0 auto;
  width: 72px;
  text-align: center;
}

.hg-song-cast-scene img,
.hg-song-cast-scene-placeholder {
  display: block;
  width: 72px;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #ffffff2e;
  background: #0a0a0a;
}

.hg-song-cast-scene-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hg-song-cast-scene span {
  display: block;
  margin-top: 5px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.25;
  max-height: 2.5em;
  overflow: hidden;
}

/* Retired: duplicated face/slot pickers and confused the Still step. */
#hg-still-map,
.hg-still-map {
  display: none !important;
}

.hg-still-map-cast {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  flex: 1 1 180px;
}

.hg-still-map-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.hg-still-map-face {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid #ffffff2e;
  flex-shrink: 0;
  background: #1a1513;
}

.hg-still-map-arrow {
  color: #FDCDAA;
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
}

.hg-still-map-role {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.88);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hg-still-map-omit {
  margin: 2px 0 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.35;
}

.hg-still-map-scene {
  flex: 0 0 auto;
  width: 96px;
  text-align: center;
}

.hg-still-map-scene img {
  display: block;
  width: 96px;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #ffffff2e;
  background: #0a0a0a;
}

.hg-still-map-scene span {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.3;
}

.hg-still-map-empty {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.62);
}

.page-content-holiday-gift #hg-still-versions-wrap,
.page-content-holiday-gift #hg-song-takes-wrap,
.page-content-holiday-gift #hg-clip-versions-wrap {
  margin: 10px 0 4px;
}

.page-content-holiday-gift .hg-still-take img,
.page-content-holiday-gift .hg-clip-take img,
.page-content-holiday-gift .hg-clip-take video,
.page-content-holiday-gift .hg-clip-take-fallback {
  aspect-ratio: 2 / 3;
  height: auto;
  min-height: 0;
  object-fit: cover;
  object-position: center top;
}

.page-content-holiday-gift .hg-clip-take video {
  display: block;
  width: 100%;
  pointer-events: none;
  background: #0a0a0a;
}

.page-content-holiday-gift .hg-clip-playing-label {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(253, 205, 170, 0.92);
}

.page-content-holiday-gift .hg-song-take img,
.page-content-holiday-gift .hg-song-take-fallback {
  aspect-ratio: 1 / 1;
  height: auto;
  min-height: 0;
  object-fit: cover;
  object-position: center;
}

.page-content-holiday-gift .hg-song-take-fallback,
.page-content-holiday-gift .hg-clip-take-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 108px;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(165deg, #3a2c28 0%, #1a1210 72%);
  box-sizing: border-box;
  font-size: 28px;
  font-weight: 700;
  color: rgba(253, 205, 170, 0.85);
  line-height: 1;
}

.page-content-holiday-gift .hg-still-take,
.page-content-holiday-gift .hg-song-take,
.page-content-holiday-gift .hg-clip-take {
  width: 84px;
}

.page-content-holiday-gift .hg-still-take img,
.page-content-holiday-gift .hg-song-take img,
.page-content-holiday-gift .hg-clip-take img,
.page-content-holiday-gift .hg-clip-take video {
  width: 84px;
}

@media (max-width: 700px) {
  .page-content-holiday-gift .hg-still-take,
  .page-content-holiday-gift .hg-song-take,
  .page-content-holiday-gift .hg-clip-take {
    width: 72px;
  }

  .page-content-holiday-gift .hg-still-take img,
  .page-content-holiday-gift .hg-song-take img,
  .page-content-holiday-gift .hg-song-take-fallback,
  .page-content-holiday-gift .hg-clip-take img,
  .page-content-holiday-gift .hg-clip-take video,
  .page-content-holiday-gift .hg-clip-take-fallback {
    width: 72px;
  }
}

.hg-still-refine {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 4px;
}

.hg-still-refine .video-direction-ref {
  margin: 0;
}

.hg-still-feedback {
  min-height: 96px;
}

.hg-still-feedback-log {
  margin-top: 2px;
}

.hg-still-feedback-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hg-still-feedback-list li {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #ffffff1f;
  background: #ffffff0a;
  color: #ffffffd6;
  font-size: 0.92rem;
  line-height: 1.35;
}

/* Keep 9:16 previews compact so steps stay scannable */
.hg-still-preview,
.hg-clip-preview {
  margin: 12px 0 4px;
  width: min(100%, 200px);
  max-height: min(42vh, 320px);
}

.hg-still-preview img,
.hg-clip-preview video {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(42vh, 320px);
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #ffffff2e;
  background: #0a0a0a;
}

/* On animate, the source still is just a reference thumb */
#hg-animate-still.hg-still-preview {
  width: min(100%, 140px);
  max-height: 220px;
}

#hg-animate-still.hg-still-preview img {
  max-height: 220px;
}

.hg-export-preview {
  display: block;
  width: 100%;
  max-width: 200px;
  max-height: min(46vh, 360px);
  margin: 0;
  border-radius: 12px;
  background: #000;
  border: 1px solid #ffffff2e;
  object-fit: cover;
  aspect-ratio: 9 / 16;
}

.hg-status {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--hg-muted, rgba(242, 232, 227, 0.7));
}

.hg-status:empty {
  display: none;
}

.hg-hidden {
  display: none !important;
}

/* Public share view — one composition: brand + phone clip + short copy + CTA */
.page-holiday-gift.page-content-holiday-gift-public,
.page-content-holiday-gift-public {
  max-width: none;
  width: 100%;
  margin: 0 auto;
  padding: 8px 18px 48px;
  box-sizing: border-box;
}

.hg-public-shell {
  width: min(100%, 920px);
  margin: 0 auto;
  text-align: center;
}

.hg-public-brand {
  margin: 4px 0 18px;
  font-family: "Syne", "Lato", sans-serif;
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #F2E8E3;
}

.hg-public-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.hg-public-phone {
  width: min(100%, 320px);
  margin: 0 auto;
  padding: 10px;
  border-radius: 28px;
  border: 1px solid rgba(253, 205, 170, 0.22);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(253, 205, 170, 0.14), transparent 55%),
    linear-gradient(165deg, #3a2c28 0%, #1a1210 70%);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
  box-sizing: border-box;
}

.hg-public-player {
  position: relative;
  display: block;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  background: #0a0a0a;
}

.hg-public-video {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: min(68vh, 640px);
  object-fit: cover;
  border-radius: 20px;
  background: #0a0a0a;
}

.page-content-holiday-gift video:focus,
.page-content-holiday-gift video:focus-visible,
.hg-public-video:focus,
.hg-public-video:focus-visible,
.hg-export-preview:focus,
.hg-export-preview:focus-visible,
.hg-finish-clip-video:focus,
.hg-finish-clip-video:focus-visible {
  outline: none;
}

/* Same play mark as songs (.song-play-pause-btn / play-btn.svg). */
.hg-public-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 56px;
  height: 56px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-color: transparent;
  background-image: url('/img/play-btn.svg');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  box-shadow: none;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.hg-public-play:hover,
.hg-public-play:focus-visible {
  transform: translate(-50%, -50%) scale(1.06);
  outline: none;
}

.hg-public-play:active {
  transform: translate(-50%, -50%) scale(0.96);
}

.hg-public-player.is-playing .hg-public-play {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.88);
}

.hg-public-player:not(.is-playing) .hg-public-video {
  cursor: pointer;
}

.hg-public-copy {
  width: min(100%, 420px);
  margin: 0 auto;
  text-align: center;
}

.hg-public-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(253, 205, 170, 0.82);
}

.hg-public-title {
  margin: 0;
  font-family: "Syne", "Lato", sans-serif;
  font-size: clamp(26px, 4.5vw, 36px);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #fff;
}

.hg-public-from {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.4;
  color: rgba(242, 232, 227, 0.68);
}

.hg-public-cta {
  margin: 18px 0 0;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 10px;
  align-items: stretch;
  justify-content: center;
  width: 100%;
}

.hg-public-cta .btn,
.hg-public-cta .btn-alt {
  display: inline-flex;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  margin: 0;
  justify-content: center;
  box-sizing: border-box;
}

.hg-public-copy .hg-status {
  margin-top: 10px;
  text-align: center;
}

.hg-public-empty {
  width: min(100%, 420px);
  margin: 40px auto 0;
  text-align: center;
}

/* Report — quiet text control under the CTAs */
.hg-public-flag {
  width: 100%;
  margin: 18px 0 0;
  text-align: center;
}

.hg-public-flag-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: auto;
  min-height: 36px;
  margin: 0;
  padding: 6px 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(242, 232, 227, 0.55);
  font: inherit;
  font-size: 13px;
  line-height: 1.2;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.hg-public-flag-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.hg-public-flag-btn::-webkit-details-marker {
  display: none;
}

.hg-public-flag-btn:hover,
.hg-public-flag[open] > .hg-public-flag-btn {
  color: rgba(242, 232, 227, 0.92);
  background: transparent;
}

.hg-public-flag-panel {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  margin-top: 10px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
  text-align: left;
  box-sizing: border-box;
}

.hg-public-flag-lead {
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
  color: rgba(242, 232, 227, 0.88);
}

.hg-public-flag-label {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(253, 205, 170, 0.78);
}

.hg-public-flag-panel select {
  width: 100%;
  max-width: none;
  min-height: 44px;
  margin: 0;
  box-sizing: border-box;
  background: #ffffff14;
  color: #fff;
  border: 1px solid #ffffff2e;
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
}

.hg-public-flag-panel .btn-alt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin: 0;
  min-height: 44px;
  padding: 8px 14px;
  font-size: 13px;
  box-sizing: border-box;
}

.hg-public-flag-panel .hg-status {
  width: 100%;
  margin: 0;
  text-align: left;
  font-size: 13px;
  color: rgba(242, 232, 227, 0.78);
}

/* Keep legacy report selectors harmless if reused */
.hg-report-box {
  margin-top: 28px;
  text-align: left;
  padding: 14px 16px;
  border: 1px solid #ffffff2e;
  border-radius: var(--hg-radius);
  background: #ffffff0a;
}

@media (min-width: 860px) {
  .hg-public-stage {
    display: grid;
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
    align-items: center;
    gap: 40px 48px;
    text-align: left;
  }

  .hg-public-phone {
    margin: 0;
  }

  .hg-public-copy {
    margin: 0;
    text-align: left;
    width: auto;
    max-width: 440px;
  }

  .hg-public-cta {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
  }

  .hg-public-cta .btn,
  .hg-public-cta .btn-alt {
    width: auto;
    min-width: 220px;
  }

  .hg-public-copy .hg-status {
    text-align: left;
  }

  .hg-public-brand {
    text-align: left;
  }

  .hg-public-flag {
    margin-left: 0;
    text-align: left;
  }

  .hg-public-flag-btn {
    margin-left: 0;
    justify-content: flex-start;
  }

  .hg-public-flag-panel {
    max-width: 320px;
  }

  .hg-public-flag-panel .btn-alt {
    width: auto;
    align-self: flex-start;
  }
}

/* Mobile: compact chrome, no spill, 16px inputs (no iOS zoom), stacked CTAs */
@media (max-width: 700px) {
  .page-content-holiday-gift,
  .page-content-holiday-gift-public {
    width: auto;
    max-width: 100%;
    box-sizing: border-box;
    padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  }

  .page-content-holiday-gift .video-wizard-header {
    margin: 0 0 2px;
  }

  .page-content-holiday-gift .video-wizard-toolbar {
    margin: 0 0 10px;
    gap: 8px;
  }

  .page-content-holiday-gift .video-wizard-toolbar .nav-back-btn,
  .page-content-holiday-gift .video-wizard-toolbar .video-wizard-discard {
    min-height: 0;
    margin: 0;
    padding: 6px 10px;
    font-size: 12px;
    line-height: 1.2;
    box-sizing: border-box;
  }

  .page-content-holiday-gift .video-wizard-toolbar .video-wizard-discard {
    margin-left: auto;
  }

  .page-content-holiday-gift .video-wizard-title-row {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0 0 4px;
  }

  .page-content-holiday-gift .video-page-title {
    font-size: 20px;
    line-height: 1.15;
  }

  .page-content-holiday-gift .video-wizard-title-actions {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
  }

  .page-content-holiday-gift .video-wizard-balance-line {
    justify-content: flex-start;
    text-align: left;
    font-size: 12px;
    gap: 6px 8px;
    line-height: 1.3;
  }

  .page-content-holiday-gift .video-add-funds-btn {
    min-height: 0;
    padding: 0;
    font-size: 12px;
    line-height: inherit;
    box-sizing: border-box;
  }

  .page-content-holiday-gift .video-wizard-lead,
  .page-content-holiday-gift .video-step-hint {
    max-width: none;
    font-size: 13px;
    line-height: 1.35;
    margin-bottom: 10px;
  }

  .page-content-holiday-gift .video-wizard-step.construction-step {
    --construction-step-pad-x: 12px;
    padding: 12px var(--construction-step-pad-x) 14px;
  }

  .hg-land-preview {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 14px;
  }

  .hg-land-preview-card:nth-child(n + 4) {
    display: none;
  }

  .hg-how-choices.release-choices {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hg-artist-card {
    width: 76px;
  }

  .hg-artist-photo {
    width: 64px;
    height: 64px;
  }

  .hg-selected-artist {
    flex-wrap: wrap;
  }

  .hg-selected-artist .btn-alt {
    width: 100%;
    min-height: 44px;
    justify-content: center;
    margin: 4px 0 0;
    box-sizing: border-box;
  }

  .page-content-holiday-gift .holiday-gift-steps.construction-step-nav {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    margin: 0 0 10px;
    padding: 0 0 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  .page-content-holiday-gift .holiday-gift-steps.construction-step-nav::-webkit-scrollbar {
    display: none;
  }

  .page-content-holiday-gift .holiday-gift-steps .construction-step-nav-sep {
    margin: 0 3px;
    font-size: 11px;
    flex: 0 0 auto;
  }

  .page-content-holiday-gift .holiday-gift-steps .construction-step-nav-item {
    flex: 0 0 auto;
  }

  .page-content-holiday-gift .holiday-gift-steps .construction-step-nav-btn {
    position: relative;
    padding: 6px 6px;
    font-size: 12px;
    white-space: nowrap;
    min-height: 0;
    box-sizing: border-box;
  }

  .holiday-gift-panel {
    max-width: 100%;
    box-sizing: border-box;
  }

  .holiday-gift-panel .construction-step-prompt {
    font-size: 17px;
    line-height: 1.25;
  }

  .page-content-holiday-gift .video-start-choices {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .page-content-holiday-gift .video-start-choice {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
  }

  .page-content-holiday-gift .video-song-picker {
    max-height: min(42vh, 340px);
  }

  .page-content-holiday-gift .album-song-search input {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    font-size: 16px;
  }

  .holiday-gift-actions,
  .page-content-holiday-gift .video-ref-generate-actions {
    width: 100%;
    gap: 6px;
  }

  .holiday-gift-actions .btn,
  .holiday-gift-actions .btn-alt,
  .holiday-gift-actions .hg-upload-label,
  .holiday-gift-actions .opening-step-continue,
  .hg-report-box .btn-alt {
    width: 100%;
    max-width: 100%;
    min-height: 0;
    padding: 8px 12px;
    justify-content: center;
    box-sizing: border-box;
    margin-right: 0;
  }

  /*
   * Mobile footer stays INSIDE the step card — no negative-margin bleed.
   * That bleed was escaping the rounded card and floating over content.
   */
  .page-content-holiday-gift .video-wizard-step.construction-step {
    overflow: hidden;
  }

  .page-content-holiday-gift .construction-step-footer {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 6px;
    position: relative;
    bottom: auto;
    z-index: 1;
    width: 100%;
    max-width: 100%;
    margin: 12px 0 0;
    padding: 10px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background: transparent;
    box-sizing: border-box;
  }

  .page-content-holiday-gift .construction-step-footer .opening-step-continue {
    order: -1;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 9px 14px;
    font-size: 15px;
    line-height: 1.2;
    justify-content: center;
    box-sizing: border-box;
    box-shadow: none;
  }

  .page-content-holiday-gift .construction-step-footer .btn-alt,
  .page-content-holiday-gift .construction-step-footer .construction-step-back,
  .page-content-holiday-gift .construction-step-footer .nav-back-btn {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    margin: 0 !important;
    padding: 7px 10px;
    font-size: 12px;
    line-height: 1.2;
    justify-content: center;
    box-sizing: border-box;
    opacity: 1;
  }

  /* Refine + New still share one row when both are visible. */
  .page-content-holiday-gift .construction-step-footer:has(#hg-still-open-refine:not(.hg-hidden)):has(#hg-compose-btn:not(.hg-hidden)) {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .page-content-holiday-gift .construction-step-footer:has(#hg-still-open-refine:not(.hg-hidden)):has(#hg-compose-btn:not(.hg-hidden)) .opening-step-continue,
  .page-content-holiday-gift .construction-step-footer:has(#hg-still-open-refine:not(.hg-hidden)):has(#hg-compose-btn:not(.hg-hidden)) .nav-back-btn {
    grid-column: 1 / -1;
  }

  .page-content-holiday-gift #hg-song-footer,
  .page-content-holiday-gift #hg-share-footer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .page-content-holiday-gift #hg-song-footer .btn-alt,
  .page-content-holiday-gift #hg-share-footer .btn-alt {
    margin: 0;
    width: 100%;
  }

  .page-content-holiday-gift #hg-song-footer .opening-step-continue,
  .page-content-holiday-gift #hg-share-footer .opening-step-continue {
    order: -1;
    width: 100%;
    min-width: 0;
  }

  .page-content-holiday-gift .video-ref-generate-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .page-content-holiday-gift .video-ref-generate-actions .btn-alt {
    width: 100%;
    min-height: 44px;
    justify-content: center;
    margin: 0;
    box-sizing: border-box;
  }

  .page-content-holiday-gift .hg-send-actions,
  .page-content-holiday-gift .hg-send-secondary {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .page-content-holiday-gift .hg-send-actions .btn,
  .page-content-holiday-gift .hg-send-actions .btn-alt,
  .page-content-holiday-gift .hg-email-box > .btn-alt,
  .page-content-holiday-gift .hg-send-secondary .btn-alt {
    width: 100%;
    min-height: 44px;
    justify-content: center;
    margin: 0;
    box-sizing: border-box;
  }

  .page-content-holiday-gift .hg-send-preview {
    display: flex;
    justify-content: center;
  }

  .page-content-holiday-gift .hg-finish-review .video-review-row {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .page-content-holiday-gift .hg-finish-review .video-review-edit {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .page-content-holiday-gift .hg-animate-motion-label-row {
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
  }

  .page-content-holiday-gift.is-discover {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hg-discover-hero {
    gap: 12px;
  }

  .hg-discover-phone {
    width: 100%;
    max-width: 200px;
    padding: 7px;
  }

  .hg-discover-phone-img {
    max-height: min(38vh, 320px);
  }

  .hg-discover-below {
    margin-top: 28px;
    padding-top: 22px;
  }

  .hg-discover-strip-card {
    width: 120px;
  }

  /* Public share — phone + copy share one column width so CTAs don’t look offset */
  .page-content-holiday-gift-public {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hg-public-stage {
    width: min(100%, 300px);
    margin-left: auto;
    margin-right: auto;
  }

  .hg-public-phone {
    width: 100%;
    padding: 8px;
  }

  .hg-public-copy,
  .hg-public-empty {
    width: 100%;
    max-width: none;
  }

  .hg-public-video {
    max-height: min(58vh, 520px);
  }

  .hg-public-flag {
    width: 100%;
  }

  .page-content-holiday-gift .hg-export-preview {
    max-width: 180px;
    margin-left: auto;
    margin-right: auto;
  }

  .page-content-holiday-gift .hg-finish-clip {
    margin-left: auto;
    margin-right: auto;
  }

  .page-content-holiday-gift .video-social-trim-bar .btn-alt {
    width: 100%;
    min-height: 44px;
    justify-content: center;
    box-sizing: border-box;
  }

  .page-content-holiday-gift .hg-mode-tabs.video-duration-options {
    display: flex;
    flex-wrap: nowrap;
    width: auto;
    max-width: 100%;
    margin-bottom: 10px;
    gap: 8px;
  }

  .page-content-holiday-gift .hg-mode-tabs .video-duration-option {
    width: auto !important;
    flex: 0 0 auto;
    min-height: 0;
    padding: 6px 12px;
    font-size: 12px;
  }

  .hg-template-filters {
    gap: 7px;
    margin-bottom: 10px;
    /* Bleed for edge peek while swiping */
    margin-left: calc(-1 * var(--construction-step-pad-x, 12px));
    margin-right: calc(-1 * var(--construction-step-pad-x, 12px));
    padding-left: var(--construction-step-pad-x, 12px);
    padding-right: var(--construction-step-pad-x, 12px);
  }

  .hg-template-filters .hg-filter-chip {
    width: auto !important;
    flex: 0 0 auto;
    min-height: 0;
    padding: 5px 10px;
    font-size: 12px;
    -webkit-tap-highlight-color: transparent;
  }

  .hg-vibe-chips,
  .hg-chip-row,
  .hg-mode-tabs {
    gap: 8px;
    margin-bottom: 10px;
  }

  /* Don't fatten every duration chip on Scene — keep length pickers elsewhere at 44. */
  .page-content-holiday-gift [data-step="animate"] .video-duration-option,
  .page-content-holiday-gift .video-duration-picker .video-duration-option {
    min-height: 44px;
    padding: 12px 8px;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
  }

  .page-content-holiday-gift .hg-text-btn {
    min-height: 44px;
    padding: 10px 2px;
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
  }

  .page-content-holiday-gift .video-review-edit {
    min-height: 44px;
    padding: 10px 4px;
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
  }

  .hg-photo-drop:not(.is-compact) {
    min-height: 140px;
    padding: 18px 14px;
  }

  .hg-photo-drop-title {
    font-size: 16px;
  }

  .hg-photo-drop.is-compact {
    min-height: 44px;
    padding: 12px;
    box-sizing: border-box;
  }

  .hg-consent {
    padding: 12px;
  }

  .hg-consent label {
    font-size: 13px;
    min-height: 44px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 6px 0;
    box-sizing: border-box;
  }

  .hg-consent-guardian {
    margin-left: 0;
  }

  .hg-crop-box-remove,
  .hg-face-card .hg-face-remove {
    width: 32px;
    height: 32px;
    line-height: 32px;
    font-size: 16px;
    top: 4px;
    right: 4px;
  }

  .hg-face-pack {
    gap: 10px;
  }

  .hg-face-card {
    width: calc(50% - 6px);
    max-width: 160px;
    overflow: hidden;
  }

  .hg-face-card img,
  .hg-face-purged {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    object-position: center top;
  }

  .hg-face-purged {
    object-fit: unset;
  }

  .hg-crop-stage {
    max-width: 100%;
    margin: 16px 0 14px;
  }

  .hg-crop-handle {
    width: 22px;
    height: 22px;
  }

  .hg-crop-handle.se { right: -11px; bottom: -11px; }
  .hg-crop-handle.ne { right: -11px; top: -11px; }
  .hg-crop-handle.sw { left: -11px; bottom: -11px; }
  .hg-crop-handle.nw { left: -11px; top: -11px; }

  /* Page scroll instead of nested template trap */
  .hg-template-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    max-height: none;
    overflow: visible;
    padding: 2px 0 4px;
  }

  /* Phone 2-col: shorter than 9:16, image fills the art box edge-to-edge. */
  .hg-template-art {
    aspect-ratio: auto;
    height: 168px;
  }

  .hg-template-art img,
  .hg-template-card img {
    width: 100%;
    height: 100%;
    max-height: none;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center 30%;
  }

  .hg-template-card figcaption,
  .hg-template-copy {
    padding: 8px 9px 9px;
  }

  .hg-template-title {
    font-size: 12px;
  }

  .hg-template-blurb {
    font-size: 11px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .hg-storyboard {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .hg-story-slot {
    min-height: 160px;
    padding: 8px;
  }

  .hg-song-cast {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    gap: 10px 12px;
  }

  .hg-song-cast-people {
    flex-wrap: wrap;
    gap: 6px;
  }

  .hg-song-cast-face + .hg-song-cast-face {
    margin-left: 0;
  }

  .hg-song-cast-face {
    width: 48px;
  }

  .hg-song-cast-face img {
    width: 44px;
    height: 44px;
  }

  .hg-song-cast-arrow {
    display: none;
  }

  .hg-song-cast-scene {
    width: 64px;
  }

  .hg-song-cast-scene img,
  .hg-song-cast-scene-placeholder {
    width: 64px;
  }

  .hg-still-preview,
  .hg-clip-preview {
    width: min(100%, 180px);
    margin-left: auto;
    margin-right: auto;
  }

  .page-content-holiday-gift #hg-animate-still-row.video-direction-ref {
    margin: 0 0 14px;
    padding: 12px;
    gap: 12px;
  }

  .page-content-holiday-gift #hg-animate-still.video-direction-ref-art {
    width: 88px;
    height: auto;
    aspect-ratio: 9 / 16;
  }

  .hg-slot-row .hg-slot-select,
  .holiday-gift-panel input[type="text"],
  .holiday-gift-panel input[type="email"],
  .holiday-gift-panel textarea,
  .hg-email-box input,
  .hg-email-box textarea,
  .hg-report-box select,
  .hg-report-box textarea,
  .hg-face-card input[type="text"],
  .page-content-holiday-gift .hg-song-prompt.opening-chat-textarea,
  .page-content-holiday-gift .hg-custom-prompt.opening-chat-textarea,
  .page-content-holiday-gift .hg-animate-motion.opening-chat-textarea,
  .page-content-holiday-gift .hg-finish-title-label > input {
    width: 100%;
    max-width: none;
    font-size: 16px; /* avoid iOS zoom */
  }

  .hg-slots {
    max-width: none;
  }

  .hg-assign-layout {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .hg-assign-ref {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
  }

  .hg-assign-ref-copy {
    margin-top: 0;
  }

  .page-content-holiday-gift-public .holiday-gift-actions .btn {
    width: 100%;
    min-height: 44px;
    justify-content: center;
  }

  .hg-report-box {
    margin-top: 22px;
    padding: 12px;
  }

  .page-content-holiday-gift .hg-finish-mix .video-social-waveform {
    min-height: 112px;
  }

  /* Larger touch targets on song-cut region handles when Wavesurfer exposes them */
  .page-content-holiday-gift .video-social-waveform ::part(region-handle-left),
  .page-content-holiday-gift .video-social-waveform ::part(region-handle-right) {
    width: 22px;
  }
}
