/* In-flight video (js/ui/airshow_ui_landing_video.js). On the arrival card's stub: the First Class button that makes
   the film (the card's main action, so Close steps back to a quiet link), or the locked row with the FIRST class tag.
   The film is made on a sheet: a seatback monitor showing the film as it is drawn, beside a cabin announcement. */
.landing-video-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 9px 12px;
  border-radius: 8px;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: filter 150ms ease, transform 150ms ease, background-color 150ms ease;
}
.landing-video-row svg { width: 24px; height: 24px; }
.landing-video-row-text { display: grid; gap: 2px; min-width: 0; }
.landing-video-row-text b { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 7px; font-size: 14.5px; font-weight: 720; line-height: 1.2; }
.landing-video-row-text b > span { white-space: nowrap; }
.landing-video-row-text small { font-size: 11px; font-weight: 550; line-height: 1.25; opacity: 0.8; }
.landing-video-btn { border: 0; background: var(--lc-band); color: #fff; box-shadow: 0 6px 14px -8px var(--lc-band); }
.landing-video-btn:hover { filter: brightness(1.18); }
.landing-video-btn:active { transform: scale(0.98); }
.landing-video-locked { border: 1.5px dashed var(--lc-rule); background: transparent; color: var(--lc-sub); }
.landing-video-locked b { color: var(--lc-ink); }
.landing-video-locked:hover { background: rgba(23, 18, 63, 0.04); }
/* The upgrade slip opens above the arrival card while it is up. */
body.airshow-landing-card-open #tier-notice-overlay { z-index: 2450; }
.landing-video-row:focus-visible { outline: 2px solid var(--lc-band); outline-offset: 3px; }
/* Body classes from the script (no :has(), so older browsers lay the stub out the same way). */
body.airshow-landing-video-row .landing-card-share { margin-top: 0; }
body.airshow-landing-video-first .landing-card-close { height: 30px; margin-top: -6px; background: transparent; color: var(--lc-sub); }
body.airshow-landing-video-first .landing-card-close:hover { color: var(--lc-ink); filter: none; }

html.airshow-mobile-runtime .landing-video-row { grid-template-columns: minmax(0, 1fr); margin: 2px -8px 0; padding: 6px 4px; border-radius: 7px; text-align: center; }
html.airshow-mobile-runtime .landing-video-row svg { display: none; }
html.airshow-mobile-runtime .landing-video-row-text b { justify-content: center; gap: 2px 4px; font-size: 11.5px; letter-spacing: -0.01em; }
html.airshow-mobile-runtime .landing-video-row-text small { display: none; }
html.airshow-mobile-runtime body.airshow-landing-video-row .landing-card-facts > div[data-row="fuel"] { display: none; }
html.airshow-mobile-runtime body.airshow-landing-video-row .landing-card-stub { gap: 6px; }
/* The strip reaches the zoom keys on a phone (already so with Share landing); they step aside while it is open. */
html.airshow-mobile-runtime body.airshow-landing-card-open #map-zoom-dock {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* --- The sheet ------------------------------------------------------------------------------------------- */
.landing-video-layer {
  position: fixed;
  inset: 0;
  z-index: 2400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(6, 5, 24, 0.55);
  opacity: 0;
  transition: opacity 200ms ease;
}
.landing-video-layer[hidden] { display: none; }
.landing-video-layer.is-open { opacity: 1; }
.landing-video-sheet {
  --lv-ink: #17123f;
  --lv-sub: #5b6077;
  --lv-band: var(--airshow-theme-color, #1D0D78);
  --lv-screen-h: min(68vh, 640px);
  display: grid;
  grid-template-columns: auto minmax(0, 360px);
  align-items: center;
  gap: 34px;
  max-height: 100%;
  padding: 26px 34px 26px 26px;
  border-radius: 16px;
  background: #fbfcfe;
  color: var(--lv-ink);
  font-family: var(--airshow-ui-font-family, "Pretendard Variable", sans-serif);
  font-variant-numeric: tabular-nums;
  box-shadow: 0 30px 60px -20px rgba(3, 5, 18, 0.6);
  transform: translateY(12px);
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.landing-video-layer.is-open .landing-video-sheet { transform: none; }

/* A seatback monitor: dark plastic bezel around the screen. */
.landing-video-monitor { padding: 12px 12px 22px; border-radius: 14px; background: linear-gradient(#2a2733, #17151d); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08); }
.landing-video-screen { height: var(--lv-screen-h); aspect-ratio: 9 / 16; overflow: hidden; border-radius: 4px; background: #0b0633; }
.landing-video-sheet[data-format="square"] .landing-video-screen { aspect-ratio: 1 / 1; }
.landing-video-screen canvas,
.landing-video-screen video { display: block; width: 100%; height: 100%; object-fit: contain; }
.landing-video-sheet[data-state="ready"] canvas,
.landing-video-sheet:not([data-state="ready"]) video { display: none; }

.landing-video-side { display: grid; gap: 14px; min-width: 0; }
.landing-video-pa { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; font-weight: 650; color: var(--lv-sub); }
.landing-video-pa svg { flex: none; width: 26px; height: 26px; padding: 4px; border-radius: 50%; background: var(--lv-band); color: #fff; }
.landing-video-side h2 { margin: 0; font-size: 27px; font-weight: 760; line-height: 1.2; letter-spacing: -0.01em; }
.landing-video-note { margin: -4px 0 0; font-size: 14px; font-weight: 500; line-height: 1.45; color: var(--lv-sub); }
.landing-video-progress { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 700; }
.landing-video-rail { position: relative; height: 4px; border-radius: 2px; background: #e1e4ec; }
.landing-video-rail i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 2px; background: var(--lv-band); }
.landing-video-rail b {
  position: absolute;
  top: 50%;
  left: 0;
  width: 22px;
  height: 22px;
  background: var(--lv-band);
  transform: translate(-50%, -50%) rotate(90deg);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M21 16v-2l-8-5V3.5a1.5 1.5 0 0 0-3 0V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5z'/></svg>") center / contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M21 16v-2l-8-5V3.5a1.5 1.5 0 0 0-3 0V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5z'/></svg>") center / contain no-repeat;
}
.landing-video-formats { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border-radius: 9px; background: #eef0f5; }
.landing-video-formats button { height: 34px; border: 0; border-radius: 7px; background: transparent; color: var(--lv-sub); font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; }
.landing-video-formats button[aria-checked="true"] { background: #fff; color: var(--lv-ink); box-shadow: 0 1px 3px rgba(23, 18, 63, 0.18); }
.landing-video-actions { display: grid; gap: 8px; margin-top: 4px; }
.landing-video-actions button { height: 46px; border-radius: 9px; font: inherit; font-size: 15px; font-weight: 680; cursor: pointer; transition: filter 150ms ease, transform 150ms ease, background-color 150ms ease; }
.landing-video-actions button[hidden] { display: none; }
.landing-video-primary { border: 0; background: var(--lv-band); color: #fff; }
.landing-video-primary:hover { filter: brightness(1.18); }
.landing-video-secondary { border: 1.5px solid var(--lv-band); background: transparent; color: var(--lv-band); }
.landing-video-quiet { height: 36px !important; border: 0; background: transparent; color: var(--lv-sub); }
.landing-video-quiet:hover { color: var(--lv-ink); }
.landing-video-actions button:active { transform: scale(0.98); }
.landing-video-status { min-height: 1.3em; margin: -4px 0 0; font-size: 13px; font-weight: 600; color: var(--lv-band); }
.landing-video-status:empty { display: none; }
.landing-video-actions button:focus-visible,
.landing-video-formats button:focus-visible { outline: 2px solid var(--lv-band); outline-offset: 2px; }
.landing-video-sheet:not([data-state="making"]) .landing-video-progress,
.landing-video-sheet:not([data-state="ready"]) .landing-video-formats { display: none; }

/* Phone (the app turns an upright phone sideways, so this is a landscape strip of ~390 px). */
html.airshow-mobile-runtime .landing-video-layer { padding: 10px; }
html.airshow-mobile-runtime .landing-video-sheet { --lv-screen-h: min(calc(100vh - 60px), 330px); grid-template-columns: auto minmax(0, 330px); gap: 20px; padding: 12px 20px 12px 12px; border-radius: 12px; }
html.airshow-mobile-runtime .landing-video-monitor { padding: 6px 6px 10px; border-radius: 9px; }
html.airshow-mobile-runtime .landing-video-side { gap: 9px; }
html.airshow-mobile-runtime .landing-video-pa { font-size: 11px; }
html.airshow-mobile-runtime .landing-video-pa svg { width: 20px; height: 20px; padding: 3px; }
html.airshow-mobile-runtime .landing-video-side h2 { font-size: 19px; }
html.airshow-mobile-runtime .landing-video-note { margin: -2px 0 0; font-size: 12px; }
html.airshow-mobile-runtime .landing-video-formats button { height: 30px; font-size: 12px; }
html.airshow-mobile-runtime .landing-video-actions { gap: 6px; margin-top: 0; }
html.airshow-mobile-runtime .landing-video-actions button { height: 36px; font-size: 13.5px; }
html.airshow-mobile-runtime .landing-video-quiet { height: 28px !important; }
@media (prefers-reduced-motion: reduce) {
  .landing-video-layer,
  .landing-video-sheet,
  .landing-video-row,
  .landing-video-actions button { transition: none; }
  .landing-video-sheet { transform: none; }
}
