/* The Hyperion films, hosted on the site.
   - .fc-filmsec: the film block on the Hyperion case page: one player, with cards to choose the film.
   - .fc-film-dlg: the lightbox that data-film buttons open (the News card on the new homepage).
   film.js adds the behaviour; without it the video simply shows its own controls. */

/* Case page block: same side padding as the hero text (16%), Elementor-style heading and text. */
.fc-filmsec { padding: 1.5% 16% 5%; background: #fff; }
.fc-filmsec__title {
  margin: 0; font-family: "Fredoka", sans-serif; font-size: 40px; font-weight: 500; line-height: 54px;
  background: linear-gradient(90deg, #8CB56F 0%, #044E9D 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  width: fit-content;
}
.fc-filmsec__lead { max-width: 930px; margin: 10px 0 0; font-family: "Alegreya Sans", sans-serif; font-size: 22px; line-height: 37px; color: #003C7C; }

.fc-film {
  position: relative; margin-top: 28px; aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden;
  background: #E9EEF4; box-shadow: 0 24px 60px -28px rgba(4, 40, 90, .45), 0 0 0 1px rgba(4, 78, 157, .08);
}
.fc-film video { display: block; width: 100%; height: 100%; object-fit: cover; background: #E9EEF4; }
.fc-film.is-playing video { object-fit: contain; background: #000; }
.fc-film__play {
  position: absolute; inset: 0; display: none; place-items: center; align-content: center; gap: 14px;
  width: 100%; border: 0; padding: 0; background: linear-gradient(180deg, rgba(4, 30, 70, 0) 45%, rgba(4, 30, 70, .28) 100%); cursor: pointer;
  font-family: "Fredoka", sans-serif; color: #fff;
}
.fc-film.is-ready .fc-film__play { display: grid; }
.fc-film.is-playing .fc-film__play { display: none; }
.fc-film__btn {
  display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%;
  background: linear-gradient(135deg, #8CB56F, #044E9D); box-shadow: 0 12px 34px -8px rgba(4, 40, 90, .6), 0 0 0 10px rgba(255, 255, 255, .55);
  transition: transform .25s cubic-bezier(.3, 1.4, .5, 1), box-shadow .25s;
}
.fc-film__btn svg { width: 38px; height: 38px; margin-left: 5px; fill: #fff; }
.fc-film__label {
  padding: 7px 16px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: #044E9D;
  font-size: 17px; font-weight: 500; line-height: 1.2; box-shadow: 0 6px 18px -8px rgba(4, 40, 90, .5);
}
.fc-film__label span { margin-left: 6px; color: #46A06A; font-variant-numeric: tabular-nums; }
.fc-film__play:hover .fc-film__btn, .fc-film__play:focus-visible .fc-film__btn { transform: scale(1.07); box-shadow: 0 14px 38px -8px rgba(4, 40, 90, .65), 0 0 0 14px rgba(255, 255, 255, .6); }
.fc-film__play:focus-visible { outline: 3px solid #044E9D; outline-offset: -3px; }
.fc-film__note { margin: 12px 0 0; font-family: "Alegreya Sans", sans-serif; font-size: 15px; line-height: 1.4; color: #5B6B7D; }

/* The film cards under the player: three in a row; the chosen one has a blue ring and
   "Now showing" on its thumbnail. */
.fc-films { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 22px; }
.fc-films__pick {
  display: flex; flex-direction: column; gap: 12px; padding: 10px 10px 16px; border: 0; border-radius: 20px; background: #F1F1F1;
  text-align: left; cursor: pointer; font: inherit; color: inherit; transition: background-color .2s, box-shadow .2s;
}
.fc-films__pick:hover { background: #E9EEF4; }
.fc-films__pick[aria-pressed="true"] { background: #E9EEF4; box-shadow: inset 0 0 0 2px #044E9D; }
.fc-films__pick:focus-visible { outline: 3px solid #044E9D; outline-offset: 3px; }
.fc-films__thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 13px; overflow: hidden; background: #DDE5EE; }
.fc-films__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.fc-films__pick:hover .fc-films__thumb img { transform: scale(1.04); }
.fc-films__dur, .fc-films__pick[aria-pressed="true"] .fc-films__thumb::after {
  position: absolute; bottom: 8px; padding: 3px 9px; border-radius: 999px; font-family: "Fredoka", sans-serif; font-size: 13px; font-weight: 500; line-height: 1.3;
}
.fc-films__dur { right: 8px; background: rgba(2, 22, 52, .78); color: #fff; font-variant-numeric: tabular-nums; }
.fc-films__pick[aria-pressed="true"] .fc-films__thumb::after { content: "Now showing"; left: 8px; background: #044E9D; color: #fff; }
.fc-films__txt { display: flex; flex-direction: column; gap: 3px; padding: 0 6px; }
.fc-films__kicker { font-family: "Fredoka", sans-serif; font-size: 13px; font-weight: 500; letter-spacing: .03em; color: #46A06A; }
.fc-films__name { font-family: "Fredoka", sans-serif; font-size: 19px; font-weight: 500; line-height: 1.25; color: #044E9D; }
.fc-films__desc { font-family: "Alegreya Sans", sans-serif; font-size: 16.5px; line-height: 1.4; color: #003C7C; }

@media (max-width: 1024px) {
  .fc-filmsec { padding: 10px 50px 50px; }
  .fc-films { gap: 12px; }
  .fc-films__name { font-size: 17px; }
  .fc-films__desc { font-size: 15.5px; }
  .fc-filmsec__title { font-size: 32px; line-height: 42px; }
  .fc-filmsec__lead { font-size: 20px; line-height: 32px; }
}
@media (max-width: 767px) {
  .fc-filmsec { padding: 6px 20px 40px; }
  .fc-film { margin-top: 20px; border-radius: 16px; }
  .fc-film__btn { width: 68px; height: 68px; box-shadow: 0 10px 26px -8px rgba(4, 40, 90, .6), 0 0 0 7px rgba(255, 255, 255, .55); }
  .fc-film__btn svg { width: 28px; height: 28px; margin-left: 4px; }
  .fc-film__label { font-size: 15px; padding: 5px 12px; }
  /* Phone: the cards become a list, thumbnail on the left. */
  .fc-films { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 16px; }
  .fc-films__pick { display: grid; grid-template-columns: 128px minmax(0, 1fr); align-items: center; gap: 12px; padding: 8px 12px 8px 8px; border-radius: 16px; }
  .fc-films__thumb { border-radius: 10px; }
  .fc-films__txt { padding: 0; }
  .fc-films__desc { display: none; }
  .fc-films__dur { bottom: 5px; right: 5px; padding: 1px 6px; font-size: 11.5px; }
  .fc-films__pick[aria-pressed="true"] .fc-films__thumb::after { content: "Showing"; bottom: 5px; left: 5px; padding: 1px 6px; font-size: 11.5px; }
}

/* Lightbox: full screen, the film centred at up to 1200px wide. */
.fc-film-dlg { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; overflow: hidden; }
.fc-film-dlg[open] { display: grid; place-items: center; animation: fc-film-in .3s ease-out; }
.fc-film-dlg::backdrop { background: rgba(2, 22, 52, .82); backdrop-filter: blur(4px); }
.fc-film-dlg__box { position: relative; width: min(1200px, calc(100vw - 48px), calc((100dvh - 120px) * 16 / 9)); }
.fc-film-dlg video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 18px; background: #000; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .6); }
.fc-film-dlg__close {
  position: absolute; right: 0; top: -52px; display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; transition: background-color .2s;
}
.fc-film-dlg__close:hover, .fc-film-dlg__close:focus-visible { background: rgba(255, 255, 255, .28); }
.fc-film-dlg__close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.fc-film-dlg__note { margin: 12px 4px 0; font-family: "Alegreya Sans", sans-serif; font-size: 15px; line-height: 1.4; color: rgba(255, 255, 255, .78); }
html.fc-film-open { overflow: hidden; }
@keyframes fc-film-in { from { opacity: 0; transform: scale(.97); } }
@media (max-width: 767px) {
  .fc-film-dlg__box { width: calc(100vw - 24px); }
  .fc-film-dlg video { border-radius: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .fc-film-dlg[open] { animation: none; }
  .fc-film__btn { transition: none; }
}
