/* Video section on the body-film landing page. */
#body-film-tests {
  --hf-bg: #0f0c0f;
  --hf-muted: #b1b1b1;
  --hf-green: #0cb563;
  --hf-focus: #18d77d;
  padding: clamp(104px, 9vw, 130px) 0;
}
#body-film-tests :where(p) { margin: 0; }
#body-film-tests .body-film-tests__kicker { margin-bottom: 18px !important; color: var(--hf-green); font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.body-film-tests { border-top: 1px solid rgba(255,255,255,.06); background: var(--hf-bg); }
.body-film-tests__heading { display: flex; justify-content: space-between; gap: 28px; align-items: end; margin-bottom: clamp(36px, 5vw, 58px); }
.body-film-tests__heading > div:first-child { min-width: 0; max-width: 810px; }
.body-film-tests__heading h2 { text-wrap: balance; }
#body-film-tests .body-film-tests__heading p:last-child { max-width: 720px; margin-top: 24px; color: var(--hf-muted); font-size: clamp(16px, 1.45vw, 19px); line-height: 1.65; }
.body-film-tests__controls { display: flex; flex: 0 0 auto; gap: 12px; }
.body-film-tests__controls[hidden], .body-film-tests__dots[hidden] { display: none; }
.body-film-tests__controls button { display: inline-flex; width: 52px; height: 52px; padding: 0; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; align-items: center; justify-content: center; background: transparent; color: #fff; font-size: 23px; line-height: 1; cursor: pointer; transition: color .18s ease, border-color .18s ease, background-color .18s ease, transform .18s ease; }
.body-film-tests__controls button:hover:not(:disabled) { border-color: var(--hf-green); color: #0f0c0f; background: var(--hf-green); transform: translateY(-1px); }
.body-film-tests__controls button:active:not(:disabled) { transform: translateY(1px); }
.body-film-tests__controls button:disabled { opacity: .34; cursor: default; }
.body-film-tests__viewport { width: 100%; overflow-x: auto; overflow-y: hidden; scroll-behavior: smooth; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.body-film-tests__viewport::-webkit-scrollbar { display: none; }
.body-film-tests__track { display: flex; gap: 18px; margin: 0; padding: 0; list-style: none; }
.body-film-tests-card { flex: 0 0 calc((100% - 36px)/3); min-width: 0; scroll-snap-align: start; }
.body-film-tests-card article { height: 100%; overflow: hidden; border: 1px solid rgba(255,255,255,.1); border-radius: 22px; background: #171617; }
.body-film-tests-card__media { position: relative; overflow: hidden; aspect-ratio: 16/9; background: #090909; }
.body-film-tests-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 48%, rgba(0,0,0,.58) 100%); pointer-events: none; }
.body-film-tests-card__media.is-playing::after, .body-film-tests-card__media.is-playing > img, .body-film-tests-card__media.is-playing > button, .body-film-tests-card__media.is-playing > span { display: none; }
.body-film-tests-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .32s ease; }
.body-film-tests-card:hover .body-film-tests-card__media img { transform: scale(1.035); }
.body-film-tests-card__play { position: absolute; z-index: 2; top: 50%; left: 50%; display: grid; width: 62px; height: 62px; padding: 0; border: 1px solid rgba(255,255,255,.8); border-radius: 50%; place-items: center; color: #fff; background: rgba(15,12,15,.68); cursor: pointer; transform: translate(-50%, -50%); backdrop-filter: blur(5px); transition: border-color .18s ease, background-color .18s ease, color .18s ease, transform .18s ease; }
.body-film-tests-card__play span { width: 0; height: 0; margin-left: 4px; border-top: 9px solid transparent; border-bottom: 9px solid transparent; border-left: 14px solid currentColor; }
.body-film-tests-card__play:hover { border-color: var(--hf-green); color: #0f0c0f; background: var(--hf-green); transform: translate(-50%, -50%) scale(1.06); }
.body-film-tests-card__duration { position: absolute; z-index: 2; right: 14px; bottom: 12px; padding: 5px 8px; border-radius: 7px; color: #fff; background: rgba(0,0,0,.72); font-size: 12px; font-weight: 700; line-height: 1; }
.body-film-tests-card__iframe { position: absolute; z-index: 3; inset: 0; width: 100%; height: 100%; border: 0; }
.body-film-tests-card__body { padding: 22px 22px 24px; }
.body-film-tests-card__body h3 { min-height: 3.9em; margin: 0; font-size: clamp(17px, 1.45vw, 20px); font-weight: 750; line-height: 1.3; }
.body-film-tests-card__body h3 a { color: #fff; text-decoration: none; }
.body-film-tests-card__body h3 a:hover { color: var(--hf-green); }
#body-film-tests .body-film-tests-card__body p { margin-top: 14px; color: var(--hf-muted); font-size: 14px; line-height: 1.45; }
.body-film-tests__dots { display: flex; min-height: 44px; margin-top: 20px; align-items: center; justify-content: center; gap: 4px; }
.body-film-tests__dot { position: relative; width: 34px; height: 34px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.body-film-tests__dot::before { content: ""; position: absolute; top: 50%; left: 50%; width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.32); transform: translate(-50%, -50%); transition: width .18s ease, border-radius .18s ease, background-color .18s ease; }
.body-film-tests__dot:hover::before, .body-film-tests__dot.is-active::before { background: var(--hf-green); }
.body-film-tests__dot.is-active::before { width: 22px; border-radius: 5px; }
.body-film-tests__status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.body-film-tests__actions { display: flex; margin-top: 30px; align-items: center; justify-content: center; }
.body-film-tests__action { display: inline-flex; min-width: 220px; min-height: 58px; padding: 15px 24px; border: 1px solid var(--hf-green); border-radius: 14px; box-sizing: border-box; align-items: center; justify-content: center; color: #fff; background: transparent; font-size: 16px; font-weight: 800; line-height: 1.25; text-decoration: none; transition: border-color .18s ease, background-color .18s ease, color .18s ease, transform .18s ease; }
.body-film-tests__action:hover { border-color: var(--hf-green); color: #0f0c0f; background: var(--hf-green); transform: translateY(-1px); }
.body-film-tests__action:active { transform: translateY(1px); }
.body-film-tests__close { display: block; margin-top: 14px; color: var(--hf-green); }
.body-film-tests__close[hidden] { display: none; }
@media (max-width: 760px) {
  #body-film-tests { padding: 72px 0 88px; }
  .body-film-tests__heading { align-items: start; margin-bottom: 34px; }
  #body-film-tests .body-film-tests__heading p:last-child { margin-top: 18px; font-size: 15px; line-height: 1.55; }
  .body-film-tests__controls { flex-shrink: 0; }
  .body-film-tests__track { gap: 14px; }
  .body-film-tests-card { flex-basis: 100%; }
  .body-film-tests-card article { border-radius: 18px; }
  .body-film-tests-card__body { padding: 20px 20px 22px; }
  .body-film-tests-card__body h3 { min-height: 0; font-size: 18px; }
  .body-film-tests__actions { align-items: stretch; }
  .body-film-tests__action { width: 100%; min-width: 0; }
}
@media (max-width: 390px) {
  #body-film-tests .body-film-tests__kicker { font-size: 11px; }
  .body-film-tests__heading { display: block; }
  .body-film-tests__controls { margin-top: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  #body-film-tests *, #body-film-tests *::before, #body-film-tests *::after {
    scroll-behavior: auto;
    transition-duration: .01ms;
  }
}
.body-film-tests__controls button:focus-visible, .body-film-tests__viewport:focus-visible, .body-film-tests__dot:focus-visible, .body-film-tests-card__play:focus-visible, .body-film-tests-card__body a:focus-visible, .body-film-tests__action:focus-visible { outline: 3px solid var(--hf-focus); outline-offset: -4px; }
