/* ChefBear on awesome-bears.cn: what differs from chef-bear.com's home page.
   Loaded after base.css, brand.css and home.css (copied from chef-bear.com). */

/* ── Launch film slot ────────────────────────────────────────
   Full width, 16:9 (9:16 on portrait phones), never taller than the
   screen. The frame holds the box, so the page does not move while the
   film loads (README.md). */
.cn-film { position: relative; }
/* The film sits right under the "30 秒看懂" button of the header. */
.cn-film__frame { margin-top: 28px; }
.cn-film__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg-hero);
}
@media (max-width: 759px) and (orientation: portrait) {
  .cn-film__frame { aspect-ratio: 9 / 16; margin-top: 24px; }
}
.cn-film__frame > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}
.cn-film__frame > video:focus-visible { outline: 3px solid var(--color-ring); outline-offset: -3px; }
/* Poster softly blurred until the first play (chef-bear.com #268); scaled so
   the blur has no soft edge. film.js adds is-playing on play and keeps it. */
.cn-film__frame > video { transition: filter 320ms var(--ease-standard), transform 320ms var(--ease-standard); }
.cn-film__frame.is-enhanced:not(.is-playing) > video { filter: blur(5px); transform: scale(1.04); }
/* Play over the poster, replay on the last frame (js/film.js shows them). */
.cn-film__play, .cn-film__replay {
  position: absolute;
  display: none;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--hp-gold-light) 38%, transparent);
  color: var(--hp-gold-light);
  background: color-mix(in srgb, var(--hp-gold-ink) 58%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  cursor: pointer;
  font: inherit;
  transition: transform var(--duration-quick) var(--ease-standard), background-color var(--duration-quick) var(--ease-standard);
}
.cn-film__play { left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; padding: 0 0 0 4px; border-radius: var(--radius-full); }
.cn-film__replay { top: 16px; right: 16px; gap: 6px; min-height: 44px; padding: 0 16px 0 12px; border-radius: var(--radius-full); font-size: 14px; font-weight: 600; }
.cn-film__frame.is-enhanced .cn-film__play { display: flex; }
.cn-film__frame.is-playing .cn-film__play { display: none; }
.cn-film__frame.is-ended .cn-film__replay { display: inline-flex; }
.cn-film__play:hover, .cn-film__replay:hover { background: color-mix(in srgb, var(--hp-gold-ink) 74%, transparent); }
.cn-film__play:hover { transform: scale(1.05); }
.cn-film__play:active { transform: scale(.96); }
.cn-film__play:focus-visible, .cn-film__replay:focus-visible { outline: 3px solid var(--hp-gold-light); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .cn-film__play, .cn-film__replay, .cn-film__frame > video { transition: none; }
  .cn-film__play:hover, .cn-film__play:active { transform: none; }
}

/* ── Footer with the filing number ─────────────────────────── */
.cn-foot .hp-wrap { display: grid; justify-items: center; gap: 12px; text-align: center; }
.cn-foot__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; margin: 0; padding: 0; list-style: none; }
.cn-foot__filing { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 16px; margin: 0; font-size: 13px; }
.cn-foot__filing a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--color-text-tertiary); }
.cn-foot__filing img { width: 16px; height: 16px; }
.cn-foot .hp-footer__legal { margin-top: 0; }
