/* Little Orbit — 10-second love video maker (video.php) */
@import url("https://fonts.googleapis.com/css2?family=Noto+Nastaliq+Urdu:wght@500;700&family=Caveat:wght@600&display=swap");

.video-head { max-width: 640px; margin: 0 auto 24px; }
.small-notice { display: inline-block; font-size: .92rem; }
.video-layout { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 900px) {
  .video-layout { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
  .video-stage { position: sticky; top: 16px; }
}
.video-form fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.video-form legend { margin-bottom: 8px; }
.video-file { display: inline-flex; width: fit-content; }
.style-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.style-grid .choice-body { padding: 12px; }
.colour-row { display: flex; flex-wrap: wrap; gap: 12px; }
.colour-choice { display: grid; justify-items: center; gap: 4px; cursor: pointer; position: relative; font-weight: 700; }
.colour-choice input { position: absolute; opacity: 0; pointer-events: none; }
.colour-swatch { width: 46px; height: 46px; border-radius: 50%; border: 3px solid transparent; box-shadow: var(--shadow); }
.colour-choice input:checked + .colour-swatch { border-color: var(--ink); }
.colour-choice input:focus-visible + .colour-swatch { outline: 3px solid var(--accent); outline-offset: 2px; }
.video-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 8px; }
.video-form textarea { min-height: 90px; }
.video-form textarea.is-urdu, .video-form input.is-urdu { font-family: "Noto Nastaliq Urdu", serif; line-height: 2.1; }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; font-weight: 800; cursor: pointer; }

.canvas-box { position: relative; width: 100%; max-width: 360px; margin: 0 auto; aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); background: #2a1220; }
.canvas-box canvas { display: block; width: 100%; height: 100%; cursor: crosshair; touch-action: manipulation; }
.focus-dot { position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 0 0 2px rgba(232, 70, 111, .9); pointer-events: none; }
.play-overlay { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 72px; height: 72px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .88); color: var(--accent); font-size: 1.8rem; cursor: pointer; box-shadow: var(--shadow); }
.play-overlay[hidden] { display: none; }
.video-result { max-width: 360px; margin: 16px auto 0; }
.video-result video { width: 100%; border-radius: 22px; background: #000; display: block; }
.video-faq { max-width: 720px; margin: 40px auto 0; }
.video-page.is-busy .video-form { opacity: .6; pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  .colour-swatch, .choice-body { transition: none !important; }
}
/* On phones the preview comes first, so the face can be tapped right after choosing the photo. */
@media (max-width: 899px) {
  .video-stage { order: -1; }
  .canvas-box { max-width: 280px; }
}
