@font-face {
  font-family: "Ownglyph okticon";
  src: url("assets/fonts/okticon-bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Ownglyph okticon";
  src: url("assets/fonts/okticon-regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --accent: #3a6524;
}

.figma-stage img {
  pointer-events: none;
}

.fx-home-hit {
  display: block;
  cursor: url("assets/cursor/cursor-pointer.png") 23 28, pointer;
}

.fx-home-hit > * {
  position: absolute;
}

.fx-home-label {
  font-size: 21.951px;
  letter-spacing: 1.7561px;
  transition: color 180ms ease;
}

.fx-home-hit:hover .fx-home-label,
.fx-home-hit:focus-visible .fx-home-label {
  color: var(--accent);
}

.fx-home-hit:hover img,
.fx-home-hit:focus-visible img {
  transform: translateY(-4px);
  transition: transform 180ms ease;
}

.fx-welcome {
  font-family: "Griun Simsimche", cursive;
  font-size: 30px;
  letter-spacing: 2.4px;
}

.fx-tab-group {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.fx-tab-group > * {
  position: absolute;
}

.fx-tab-hit {
  display: block;
  border: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  pointer-events: auto;
  cursor: url("assets/cursor/cursor-pointer.png") 23 28, pointer;
}

.fx-tab-icon {
  width: 100%;
  height: 100%;
  display: block;
  transition: transform 180ms ease;
}

.fx-tab-group[data-active-tab="photos"] [data-tab="photos"] .fx-tab-icon,
.fx-tab-group[data-active-tab="film"] [data-tab="film"] .fx-tab-icon,
.fx-tab-group[data-active-tab="design"] [data-tab="design"] .fx-tab-icon,
.fx-tab-group[data-active-tab="development"] [data-tab="development"] .fx-tab-icon,
.fx-tab-group[data-active-tab="contact"] [data-tab="contact"] .fx-tab-icon {
  transform: translateY(-4px) scale(1.08);
}

.fx-tab-label {
  position: absolute;
  left: 50%;
  top: calc(100% + 14px);
  transform: translateX(-50%);
  white-space: nowrap;
  font-family: "Griun Simsimche", cursive;
  font-size: 21.951px;
  letter-spacing: 1.7561px;
  opacity: 0;
  transition: opacity 160ms ease;
  pointer-events: none;
  z-index: 1;
}

.fx-tab-group[data-active-tab="photos"] [data-label="photos"],
.fx-tab-group[data-active-tab="film"] [data-label="film"],
.fx-tab-group[data-active-tab="design"] [data-label="design"],
.fx-tab-group[data-active-tab="development"] [data-label="development"],
.fx-tab-group[data-active-tab="contact"] [data-label="contact"] {
  opacity: 1;
}

/* ---- Desktop: category filter toggle + chips ----
   Bottom-left corner of the canvas, same macOS-"Stacks" icon-fan pattern as
   Photos (see photos.css's desktop filter block for the full rationale) --
   a plain doodle icon, no circle/border, chips fan upward out of it on
   click. z-index needed since the video slots come after this in the DOM
   and would otherwise paint over the fanned-out chips. See film.js
   renderFilmFilters(), which sets each chip's --i index. */
.fx-film-filters {
  position: absolute;
  left: 84px;
  bottom: 150px;
  width: 0;
  height: 0;
  z-index: 5;
}

.fx-film-filter-toggle {
  position: absolute;
  left: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: url("assets/cursor/cursor-pointer.png") 23 28, pointer;
}

.fx-film-filter-icon {
  display: block;
  width: 100%;
  height: 100%;
  background-color: #000;
  mask-image: url("assets/figma/category-icon.svg");
  -webkit-mask-image: url("assets/figma/category-icon.svg");
  mask-size: contain;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-position: center;
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.fx-film-filter-toggle[aria-expanded="true"] .fx-film-filter-icon {
  transform: rotate(18deg) scale(1.08);
}

.fx-film-filter-tooltip {
  position: absolute;
  left: 50%;
  top: calc(100% + 10px);
  transform: translateX(-50%);
  white-space: nowrap;
  font-family: "Griun Simsimche", cursive;
  font-size: 16px;
  letter-spacing: 0.5px;
  color: #242424;
  opacity: 0;
  transition: opacity 160ms ease;
  pointer-events: none;
}

.fx-film-filter-toggle:hover .fx-film-filter-tooltip,
.fx-film-filter-toggle:focus-visible .fx-film-filter-tooltip {
  opacity: 1;
}

.fx-film-chip {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 9px 22px;
  font-family: "Griun Simsimche", cursive;
  font-size: 18px;
  color: #6b6b6b;
  background: #fff;
  border: 2px solid #ddd;
  border-radius: 999px;
  white-space: nowrap;
  cursor: url("assets/cursor/cursor-pointer.png") 23 28, pointer;
  opacity: 0;
  transform: translate(0, 0);
  pointer-events: none;
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1), opacity 280ms ease,
    color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.fx-film-chip.is-active {
  color: #fff;
  background: #242424;
  border-color: #242424;
}

/* Hover feedback so it's clear each fanned-out chip is actually clickable
   before you commit to clicking one. */
.fx-film-chip:hover:not(.is-active) {
  color: var(--accent);
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, #fff);
}

/* Fanned open: each chip fades/rises straight out of the icon, cascading up
   and slightly left by its own index, with a per-item transition-delay so
   they reveal one after another instead of all at once. */
.fx-film-filters.is-open .fx-film-chip {
  opacity: 1;
  transform: translate(calc(var(--i) * -10px), calc((var(--i) + 1) * -56px));
  pointer-events: auto;
  transition-delay: calc(var(--i) * 55ms);
}

/* ---- Position dots (one per video) ---- */
.fx-film-dots {
  position: absolute;
  left: 69px;
  top: 700px;
  display: grid;
  gap: 13px;
}

.fx-film-dots img {
  width: 19px;
  height: 16px;
  display: block;
  transition: transform 180ms ease;
}

/* ---- Video slots: two fixed positions on screen (a "window" onto the
   list). Content shifts one video at a time — filmSlotB's row visibly
   slides up into filmSlotA's position, and the next video arrives from
   below — via the inner wrapper's transform. ---- */
.fx-film-slot {
  position: absolute;
  left: 0;
  width: 2560px;
  border: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  text-align: left;
  overflow: visible;
  cursor: url("assets/cursor/cursor-pointer.png") 23 28, pointer;
}

#filmSlotA {
  top: 241.9px;
  height: 494px;
}

#filmSlotB {
  top: 849.92px;
  height: 495px;
}

.fx-film-slot-inner {
  position: absolute;
  inset: 0;
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1), opacity 280ms ease;
  will-change: transform, opacity;
}

.fx-film-slot-inner > * {
  position: absolute;
}

.fx-film-thumb {
  left: 303px;
  top: 0;
  overflow: hidden;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-mode: alpha;
  /* The mask SVG is large enough that re-rasterizing it every animation
     frame (while the parent slides) is what causes the stutter — promote
     it to its own compositor layer so it's rasterized once and just moved. */
  transform: translateZ(0);
  will-change: transform;
}

/* Both slots share the exact same crop shape/size — a video must look
   identical whichever slot it's currently sliding through, or resizing
   mid-scroll reads as a glitch. */
#filmSlotA .fx-film-thumb,
#filmSlotB .fx-film-thumb {
  width: 877px;
  height: 494px;
  mask-image: url("assets/figma/film/video1-mask.svg");
  -webkit-mask-image: url("assets/figma/film/video1-mask.svg");
  mask-size: 878.352px 494.512px;
  -webkit-mask-size: 878.352px 494.512px;
  mask-position: -1.261px -0.458px;
  -webkit-mask-position: -1.261px -0.458px;
}

.fx-film-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 320ms ease;
}

.fx-film-slot:hover .fx-film-thumb img {
  transform: scale(1.035);
}

/* Hand-drawn "replay" swirl beside each thumbnail — decorative, fixed
   relative offset from the thumbnail regardless of row. */
.fx-film-swirl {
  left: 1112px;
  width: 214px;
  height: 133px;
  pointer-events: none;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

#filmSlotA .fx-film-swirl {
  top: 6.1px;
}

#filmSlotB .fx-film-swirl {
  top: 7px;
}

.fx-film-slot:hover .fx-film-swirl {
  transform: rotate(8deg) scale(1.06);
}

/* Hovering one row dims its sibling, drawing focus to the hovered video. */
.fx-film-slot-inner.is-dim {
  filter: grayscale(0.75) opacity(0.45);
}

.fx-film-duration {
  margin: 0;
  color: #fff;
  font-family: "Ownglyph okticon", cursive;
  font-weight: 700;
  font-size: 33.964px;
  letter-spacing: 2.7171px;
  text-align: right;
  width: 96px;
}

.fx-film-title,
.fx-film-subtitle,
.fx-film-meta {
  margin: 0;
  white-space: nowrap;
}

.fx-film-title {
  color: #242424;
  font-family: "Ownglyph okticon", cursive;
  font-weight: 700;
  font-size: 62.284px;
  letter-spacing: 4.9827px;
}

.fx-film-subtitle {
  color: var(--accent);
  font-family: "Ownglyph okticon", cursive;
  font-weight: 700;
  font-size: 52px;
  letter-spacing: 4.16px;
}

.fx-film-date {
  margin: 0;
  color: #818181;
  font-family: "Ownglyph okticon", cursive;
  font-weight: 700;
  font-size: 33.964px;
  letter-spacing: 2.7171px;
  text-align: right;
  white-space: nowrap;
  width: 144px;
}

.fx-film-meta {
  color: #242424;
  font-family: "Ownglyph okticon", cursive;
  font-weight: 400;
  font-size: 38.707px;
  letter-spacing: 3.0965px;
}

.fx-film-weeks {
  margin: 0;
  color: #818181;
  font-family: "Ownglyph okticon", cursive;
  font-weight: 400;
  font-size: 38.707px;
  letter-spacing: 3.0965px;
  text-align: right;
  white-space: nowrap;
  width: 90px;
}

/* Slot A field positions */
#filmSlotA .fx-film-duration { left: 1056.21px; top: 426.1px; }
#filmSlotA .fx-film-title { left: 1417.21px; top: 65.9px; }
#filmSlotA .fx-film-subtitle { left: 1417.26px; top: 142.5px; }
#filmSlotA .fx-film-date { left: 2113.42px; top: 93.2px; }
#filmSlotA .fx-film-meta1 { left: 1417.26px; top: 327.1px; }
#filmSlotA .fx-film-meta2 { left: 1417.26px; top: 381.87px; }
#filmSlotA .fx-film-weeks { left: 2172.21px; top: 381.87px; }

/* Slot B field positions */
#filmSlotB .fx-film-duration { left: 1056.21px; top: 426.1px; }
#filmSlotB .fx-film-title { left: 1417.21px; top: 66.78px; }
#filmSlotB .fx-film-subtitle { left: 1417.26px; top: 140.44px; }
#filmSlotB .fx-film-date { left: 2113.42px; top: 94.08px; }
#filmSlotB .fx-film-meta1 { left: 1417.26px; top: 327.98px; }
#filmSlotB .fx-film-meta2 { left: 1417.26px; top: 382.78px; }
#filmSlotB .fx-film-weeks { left: 2171.21px; top: 382.78px; }

.fx-film-slot:hover .fx-film-title,
.fx-film-slot:hover .fx-film-subtitle,
.fx-film-slot:focus-within .fx-film-title,
.fx-film-slot:focus-within .fx-film-subtitle {
  filter: brightness(1.1);
}

/* ---- Up / down nav: exact individual positions, not a shared grid ---- */
.fx-film-nav-btn {
  position: absolute;
  display: block;
  width: 62px;
  height: 161px;
  border: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  cursor: url("assets/cursor/cursor-pointer.png") 23 28, pointer;
  transition: transform 180ms ease, opacity 180ms ease;
}

.fx-film-nav-up {
  left: 2425px;
  top: 715px;
}

.fx-film-nav-down {
  left: 2487px;
  top: 778px;
}

.fx-film-nav-btn.is-disabled {
  opacity: 0.32;
  pointer-events: none;
}

.fx-film-nav-btn:hover,
.fx-film-nav-btn:focus-visible {
  transform: scale(1.05);
}

.fx-film-nav-btn img {
  width: 100%;
  height: 100%;
  display: block;
}

/* ---- Player ---- */
.fx-player {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: #fff;
  opacity: 0;
  visibility: hidden;
  transition: opacity 320ms ease, visibility 0s linear 320ms;
}

.fx-player.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 320ms ease, visibility 0s linear 0s, background 260ms ease;
}

.fx-player-stage {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2560px;
  height: 1440px;
  transform: translate(-50%, -50%) scale(var(--fx-scale, 0.4));
  transform-origin: center center;
}

.fx-player-stage > * {
  position: absolute;
}

.fx-player-title {
  font-family: "Ownglyph okticon", cursive;
  font-weight: 700;
  font-size: 30.269px;
  letter-spacing: 2.4215px;
  color: #818181;
  text-align: center;
  margin: 0;
  transition: color 260ms ease;
}

.fx-player-close {
  border: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  cursor: url("assets/cursor/cursor-pointer.png") 23 28, pointer;
  transition: transform 220ms ease;
}

.fx-player-close:hover,
.fx-player-close:focus-visible {
  transform: rotate(90deg);
}

.fx-player-close img {
  width: 100%;
  height: 100%;
  display: block;
  transition: filter 260ms ease;
}

.fx-player-video {
  overflow: hidden;
  border-radius: 39px;
  background: #111;
}

.fx-player-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #111;
}

.fx-player-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 10, 0.55);
  opacity: 0;
  transition: opacity 200ms ease;
  pointer-events: none;
}

.fx-player-loading.is-visible {
  opacity: 1;
}

/* Same icon-cycling + typed-caption language as the site's own page-entry
   loading screen (see loadingOverlay/loading.js) -- this is that same
   "still working on it" feeling, just scoped to the video box instead of
   the whole page, and with a typed caption instead of the page's dots. */
.fx-player-loading-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.fx-player-loading-icon {
  width: 132px;
  height: 132px;
  object-fit: contain;
}

.fx-player-loading-text {
  margin: 0;
  font-family: "Griun Simsimche", cursive;
  font-size: 26px;
  letter-spacing: 1.5px;
  color: #fff;
}

.fx-player-loading-cursor {
  display: inline-block;
  width: 2px;
  height: 0.9em;
  margin-left: 3px;
  background: #fff;
  vertical-align: -0.15em;
  animation: fx-loading-cursor-blink 800ms step-end infinite;
}

@keyframes fx-loading-cursor-blink {
  0%, 49% {
    opacity: 1;
  }
  50%, 100% {
    opacity: 0;
  }
}

.fx-player-toggle {
  border: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  cursor: url("assets/cursor/cursor-pointer.png") 23 28, pointer;
}

/* Disabled while the loading overlay is up (see showPlayerLoading in
   film.js) so a click during that window can't kick off playback before
   the file has actually fully buffered. */
.fx-player-toggle:disabled {
  opacity: 0.35;
  pointer-events: none;
  cursor: default;
}

.fx-player-toggle > img {
  position: absolute;
}

.fx-player-icon-play {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fx-player-icon-play img {
  width: 100%;
  height: 100%;
  display: block;
  transition: filter 260ms ease;
}

.fx-player-icon-pause {
  display: none;
  transition: filter 260ms ease;
}

.fx-player.is-playing .fx-player-icon-play {
  display: none;
}

.fx-player.is-playing .fx-player-icon-pause {
  display: block;
}

.fx-player-seek {
  cursor: url("assets/cursor/cursor-pointer.png") 23 28, pointer;
}

.fx-player-seek-track {
  position: absolute;
  display: block;
  transition: filter 260ms ease;
}

.fx-player-seek-dot {
  position: absolute;
  transform: translateX(-50%);
  display: block;
  cursor: grab;
  pointer-events: auto;
  transition: left 120ms linear, filter 260ms ease;
}

.fx-player-seek-dot:active {
  cursor: grabbing;
}

.fx-player-seek-dot.is-dragging {
  transition: none !important;
}

.fx-player-time {
  /* Nested inside #playerSeek so it shares the seek dot's coordinate
     space — left is set dynamically in JS to track the dot's x. */
  position: absolute;
  left: 0;
  transform: translateX(-50%);
  margin: 0;
  color: var(--accent);
  font-family: "Ownglyph okticon", cursive;
  font-weight: 400;
  font-size: 29.179px;
  letter-spacing: 2.3343px;
  text-align: center;
  transition: left 120ms linear, color 260ms ease;
}

.fx-player-time.is-dragging {
  transition: none;
}

.fx-player-volume {
  position: relative;
  cursor: url("assets/cursor/cursor-pointer.png") 23 28, pointer;
}

.fx-player-volume-track-img {
  position: absolute;
  display: block;
  pointer-events: none;
  transition: filter 260ms ease;
}

.fx-player-volume-dot {
  position: absolute;
  transform: translateX(-50%);
  display: block;
  cursor: grab;
  transition: left 80ms linear, filter 260ms ease;
}

.fx-player-volume-dot.is-dragging {
  cursor: grabbing;
  transition: none;
}

/* Immersive playback: only once the user actually presses play (see
   togglePlayback() in film.js -- deliberately NOT tied to the native "play"
   event, which also fires during the muted priming play()/pause() used to
   kick off buffering on open, and would otherwise flash the backdrop black
   before the video has even finished loading), invert the whole overlay to
   a black backdrop with white controls so the video itself is the only
   thing that reads as "bright". The default (light) state must stay the
   resting state while loading/paused. Icons are arbitrary hand-drawn SVGs
   (some with a green accent baked into the file), so recoloring them to
   white uses brightness(0) invert(1) -- crush every visible pixel to black,
   then flip to white -- rather than hand-authoring a parallel set of
   "-white" asset files. Every element this touches also declares its own
   `transition` (color/filter) above, and .fx-player.is-open owns the
   `background` transition, so switching either direction fades instead of
   snapping. */
.fx-player.is-dark {
  background: #000;
}

.fx-player.is-dark .fx-player-title,
.fx-player.is-dark .fx-player-time {
  color: #fff;
}

.fx-player.is-dark .fx-player-close img,
.fx-player.is-dark .fx-player-icon-play img,
.fx-player.is-dark .fx-player-icon-pause,
.fx-player.is-dark .fx-player-seek-track,
.fx-player.is-dark .fx-player-seek-dot,
.fx-player.is-dark .fx-player-volume-track-img,
.fx-player.is-dark .fx-player-volume-dot {
  filter: brightness(0) invert(1);
}

/* The hand-drawn cursor images are dark ink -- invisible against the new
   black backdrop -- so swap in white variants for the whole modal while
   it's dark, and re-swap the pointer variant on the specific elements that
   override the cursor for interactivity. */
.fx-player.is-dark {
  cursor: url("assets/cursor/cursor-white.png") 32 25, auto;
}

.fx-player.is-dark .fx-player-close,
.fx-player.is-dark .fx-player-toggle,
.fx-player.is-dark .fx-player-seek,
.fx-player.is-dark .fx-player-volume {
  cursor: url("assets/cursor/cursor-pointer-white.png") 23 28, pointer;
}

@media (prefers-reduced-motion: reduce) {
  .fx-film-slot-inner,
  .fx-film-nav-btn,
  .fx-player,
  .fx-player-close {
    transition: none;
  }

  .fx-player-loading-cursor,
  .fx-m-player-loading-cursor {
    animation: none;
    opacity: 1;
  }
}

/* ---- Mobile: category filter toggle + chips ---- */
/* Hidden outright on mobile -- with everything already visible in one long
   scroll on a phone, there's no real need to filter by category the way
   there is on desktop's fixed-window slide view (see film.js's
   renderFilmFilters, which still builds this markup; it's just never shown). */
.fx-m-film-filters {
  display: none !important;
}

.fx-m-film-filter-toggle {
  position: absolute;
  left: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.fx-m-film-filter-icon {
  display: block;
  width: 100%;
  height: 100%;
  background-color: #000;
  mask-image: url("assets/figma/category-icon.svg");
  -webkit-mask-image: url("assets/figma/category-icon.svg");
  mask-size: contain;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-position: center;
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.fx-m-film-filter-toggle[aria-expanded="true"] .fx-m-film-filter-icon {
  transform: rotate(18deg) scale(1.08);
}

.fx-m-film-filter-tooltip {
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  transform: translateX(-50%);
  white-space: nowrap;
  font-family: "Griun Simsimche", cursive;
  font-size: 12px;
  color: #242424;
  background: #fff;
  padding: 3px 8px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  opacity: 0;
  transition: opacity 160ms ease;
  pointer-events: none;
}

.fx-m-film-filter-toggle:active .fx-m-film-filter-tooltip {
  opacity: 1;
}

.fx-m-film-chip {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 7px 16px;
  font-family: "Griun Simsimche", cursive;
  font-size: 14px;
  color: #6b6b6b;
  background: #fff;
  border: 2px solid #ddd;
  border-radius: 999px;
  white-space: nowrap;
  cursor: pointer;
  opacity: 0;
  transform: translate(0, 0);
  pointer-events: none;
  transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1), opacity 280ms ease,
    color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.fx-m-film-chip.is-active {
  color: #fff;
  background: #242424;
  border-color: #242424;
}

/* Hover feedback so it's clear each fanned-out chip is actually clickable
   before you commit to tapping one. */
.fx-m-film-chip:hover:not(.is-active) {
  color: var(--m-accent, #3a6424);
  border-color: var(--m-accent, #3a6424);
  background: color-mix(in srgb, var(--m-accent, #3a6424) 8%, #fff);
}

.fx-m-film-filters.is-open .fx-m-film-chip {
  opacity: 1;
  transform: translate(calc(var(--i) * -6px), calc((var(--i) + 1) * -46px));
  pointer-events: auto;
  transition-delay: calc(var(--i) * 55ms);
}

/* ---- Mobile: video list + native-controls player ---- */
.fx-m-film-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fx-m-film-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px;
  background: #fff;
  border: 2px solid #3a6424;
  border-radius: 16px;
  text-align: left;
  cursor: pointer;
}

.fx-m-film-thumb {
  position: relative;
  flex: 0 0 auto;
  width: 110px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px;
  background: #eee;
}

.fx-m-film-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fx-m-film-duration {
  position: absolute;
  right: 6px;
  bottom: 6px;
  padding: 1px 6px;
  font-family: "Ownglyph okticon", cursive;
  font-size: 12px;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 6px;
}

.fx-m-film-body {
  flex: 1 1 auto;
  min-width: 0;
}

.fx-m-film-title {
  margin: 0 0 3px;
  font-family: "Ownglyph okticon", cursive;
  font-weight: 700;
  font-size: 17px;
  color: #242424;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fx-m-film-subtitle {
  margin: 0;
  font-family: "Ownglyph okticon", cursive;
  font-size: 13px;
  color: var(--accent);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fx-m-player {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 20px;
  background: #111;
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms ease, visibility 0s linear 200ms;
}

.fx-m-player.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 200ms ease, visibility 0s linear 0s;
}

.fx-m-player-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 1;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

.fx-m-player-title {
  margin: 0 44px 0 4px;
  font-family: "Ownglyph okticon", cursive;
  font-size: 15px;
  color: #ddd;
}

.fx-m-player-video {
  width: 100%;
  max-height: 70vh;
  background: #000;
  border-radius: 10px;
}

.fx-m-player-video-wrap {
  position: relative;
}

.fx-m-player-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  border-radius: 10px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms ease;
  pointer-events: none;
}

.fx-m-player-loading.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.fx-m-player-loading-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.fx-m-player-loading-icon {
  width: 76px;
  height: 76px;
  object-fit: contain;
}

.fx-m-player-loading-text {
  margin: 0;
  font-family: "Griun Simsimche", cursive;
  font-size: 15px;
  letter-spacing: 0.5px;
  color: #fff;
  text-align: center;
  padding: 0 24px;
}

.fx-m-player-loading-cursor {
  display: inline-block;
  width: 2px;
  height: 0.9em;
  margin-left: 2px;
  background: #fff;
  vertical-align: -0.1em;
  animation: fx-loading-cursor-blink 800ms step-end infinite;
}
