@font-face {
  font-family: Haffer VF;
  src: url("../fonts/HafferStandardUprights-VF.ttf") format("truetype");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

img,
video,
svg {
  display: block;
}

::selection {
  background-color: var(--color-red);
  color: var(--color-white);
}

::-moz-selection {
  background-color: var(--color-red);
  color: var(--color-white);
}

/* Desktop */
:root {
  --size-unit: 16; /* body font-size in design - no px */
  --size-container-ideal: 1920; /* screen-size in design - no px */
  --size-container-min: 992px;
  --size-container-max: 1920px;
  --size-container: clamp(
    var(--size-container-min),
    100vw,
    var(--size-container-max)
  );
  --size-font: calc(
    var(--size-container) / (var(--size-container-ideal) / var(--size-unit))
  );

  /* colors */
  --color-red: #f63a3a;
  --color-dark: #2c2c2c;
  --color-darker: #1c1c1c;
  --color-light: #f5f5f5;
  --color-grey: #eeeeee;
  --color-white: #ffffff;

  /* font family */
  --ff-sans: "Haffer VF", sans-serif;
  --ff-serif: "Instrument Serif", serif;
}

/* Tablet */
@media screen and (max-width: 991px) {
  :root {
    --size-container-ideal: 834; /* screen-size in design - no px */
    --size-container-min: 768px;
    --size-container-max: 991px;
  }
}

/* Mobile Landscape */
@media screen and (max-width: 767px) {
  :root {
    --size-container-ideal: 550; /* screen-size in design - no px */
    --size-container-min: 480px;
    --size-container-max: 767px;
  }
}

/* Mobile Portrait */
@media screen and (max-width: 479px) {
  :root {
    --size-container-ideal: 390; /* screen-size in design - no px */
    --size-container-min: 320px;
    --size-container-max: 479px;
  }
}

.container {
  max-width: var(--size-container);
}

.container.medium {
  max-width: calc(var(--size-container) * 0.85);
}

.container.small {
  max-width: calc(var(--size-container) * 0.7);
}

body {
  font-size: var(--size-font);
  font-family: var(--ff-sans);
  font-weight: 500;
  color: var(--color-dark);
  background-color: var(--color-light);
}

/* Hero */
.hero {
  position: relative;
  overflow-x: clip;
  background-color: var(--color-darker);
  color: var(--color-light);
  z-index: 1;
}

/* Dither background — sits behind everything in the hero */
.hero_bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero_bg .dither-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* Black overlay between the dither and the content */
.hero_overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-color: rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.hero_wrap {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto 1fr auto;
  gap: 1em;
  min-height: 100svh;
  padding: 2em;
  position: relative;
  z-index: 2;
}

/* Hero Marquee */
.hero_marquee {
  grid-column: 1 / -1;
  width: 100vw;
  margin: -1em 0 0 -2em;
  position: relative;
  overflow: hidden;
}

.hero_marquee__main,
.hero_marquee__next {
  display: block;
  overflow: hidden;
}

.hero_marquee__next {
  position: absolute;
  inset: 0;
}

.hero_marquee__scroll {
  will-change: transform;
  width: 100%;
  display: flex;
  position: relative;
}

.hero_marquee__collection {
  will-change: transform;
  display: flex;
  position: relative;
}

.hero_marquee__item {
  justify-content: flex-start;
  align-items: center;
  display: flex;
}

.hero_marquee__text {
  white-space: nowrap;
  font-family: var(--ff-serif);
  font-size: 20em;
  font-weight: 400;
  line-height: 0.85;
  text-transform: uppercase;
  padding-right: 0.15em;
}

/* Hero Video */
.hero_video {
  position: absolute;
  top: 11em;
  left: 50%;
  transform: translateX(-50%);
  width: 28.75em;
  aspect-ratio: 1;
  z-index: 2;
  display: block;
}

.hero_video__poster {
  display: none;
}

.hero_video .bunny-bg {
  border-radius: 1em;
}

.hero_video__btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 4em;
  height: 4em;
  border-radius: 50%;
  background-color: var(--color-dark);
  color: var(--color-white);
  justify-content: center;
  align-items: center;
  display: flex;
  pointer-events: none;
  z-index: 2;
}

.hero_video__btn-svg {
  width: 1.5em;
}

/* Hero Title */
.hero_title {
  grid-row: 3;
  grid-column: 1 / 7;
  align-self: end;
  font-size: 9em;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
}

/* Hero Content */
.hero_content {
  grid-row: 3;
  grid-column: 9 / -1;
  align-self: end;
  justify-self: end;
  width: 29em;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2.5em;
  margin-bottom: 2em;
  padding: 0 2em;
}

.hero_content__text {
  font-size: 1.25em;
  line-height: 1.3;
  letter-spacing: -2%;
}

.hero_cta {
  color: var(--color-white);
  font-size: 1.25em;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.1;
  letter-spacing: -2%;
  overflow: hidden;
}

.hero_cta__text {
  line-height: 1;
  height: 1em;
}

/* Hero - Tablet */
@media screen and (max-width: 991px) {
  .hero_wrap {
    display: flex;
    flex-direction: column;
    padding: 2em 1em;
  }

  .hero_marquee {
    margin: 0.5em 0 0 -1em;
  }

  .hero_marquee__text {
    font-size: 14em;
  }

  .hero_video {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    align-self: center;
    margin-top: -4em;
    width: 26em;
  }

  .hero_title {
    align-self: flex-start;
    margin-top: auto;
    font-size: 7em;
  }

  .hero_content {
    align-self: flex-start;
    width: 100%;
    padding: 0;
    gap: 1.25em;
    margin-bottom: 1em;
  }
}

/* Hero - Mobile Landscape */
@media screen and (max-width: 767px) {
  .hero_marquee__text {
    font-size: 10em;
  }

  .hero_video {
    margin-top: -3em;
    width: 22em;
  }

  .hero_video .bunny-bg {
    border-radius: 0.5em;
  }

  .hero_title {
    font-size: 5.5em;
  }
}

/* Hero - Mobile Portrait */
@media screen and (max-width: 479px) {
  .hero_marquee__text {
    font-size: 7em;
  }

  .hero_video {
    margin-top: -3em;
    width: 17em;
  }

  .hero_title {
    font-size: 4em;
  }
}

/* Work */
.work {
  position: relative;
  z-index: 2;
  padding-top: 80svh;
}

.work_wrap {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 3em 1em;
  padding: 2em;
}

.work_card {
  grid-column: span 6;
  display: block;
  position: relative;
}

.work_card__media {
  width: 100%;
  aspect-ratio: 1;
  position: relative;
  overflow: hidden;
}

/* The AIZIZA shot is near-black edge to edge, so it disappears into the dark
   backdrop — a light hairline gives it an edge. */
.work_card__media--outlined {
  border: 1px solid #f5f5f559;
}

.work_card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

/* Dark overlay over the image, shown with the details */
.work_card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: #00000059;
  opacity: 0;
  transition: opacity 0.4s linear;
}

.work_card:hover .work_card__media::after {
  opacity: 1;
}

/* Desc sits over the bottom of the image: 1em above it, past the title row */
.work_card__desc {
  position: absolute;
  left: 1em;
  bottom: 3.9em;
  color: var(--color-light);
  font-size: 1.125em;
  max-width: 17em;
  z-index: 1;
}

.work_card__hot {
  position: absolute;
  top: 1em;
  right: 1em;
  width: 2.5em;
  height: 2.5em;
  background-color: var(--color-white);
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  display: flex;
  font-size: 1.125em;
  z-index: 1;
}

.work_card__tags {
  position: absolute;
  right: 1em;
  bottom: 1em;
  display: flex;
  gap: 0.5em;
  z-index: 1;
}

.work_card__tag {
  background-color: var(--color-light);
  color: var(--color-dark);
  font-size: 0.875em;
  line-height: 1;
  padding: 0.5em 0.75em;
  border-radius: 0.125em;
  white-space: nowrap;
}

.work_card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5em;
}

.work_card__title {
  color: var(--color-light);
  font-size: 2em;
  font-weight: 500;
  line-height: 1.2;
}

.work_card__arrow {
  width: 1.85em;
  height: 1.85em;
}

/* Card details: hidden by default, animate in on hover */
.work_card__desc,
.work_card__tags,
.work_card__arrow {
  opacity: 0;
  transform: translateY(0.75em);
  transition:
    opacity 0.4s linear,
    transform 0.4s cubic-bezier(0.625, 0.05, 0, 1);
}

.work_card__arrow {
  transform: translate(-0.5em, 0.5em);
}

.work_card:hover .work_card__desc,
.work_card:hover .work_card__tags {
  opacity: 1;
  transform: translateY(0);
}

.work_card:hover .work_card__arrow {
  opacity: 1;
  transform: translate(0, 0);
}

/* Work - Tablet */
@media screen and (max-width: 991px) {
  .work_wrap {
    padding: 2em 1em;
  }

  /* No hover on smaller screens: details always visible, no overlay */
  .work_card__desc,
  .work_card__tags,
  .work_card__arrow {
    opacity: 1;
    transform: none;
  }

  /* Desc flows below the title row instead of overlaying the image */
  .work_card__desc {
    position: static;
    max-width: 100%;
    margin-top: 0.5em;
  }

  /* Pin both edges so the row has a real width to wrap inside of, and let the
     wrapped lines start from the left rather than trailing off the right edge */
  .work_card__tags {
    left: 1em;
    right: 1em;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

/* Work - Mobile Landscape */
@media screen and (max-width: 767px) {
  /* Cards stack one per row, so they need a wider gutter between them */
  .work_wrap {
    gap: 4.5em 1em;
  }

  .work_card {
    grid-column: 1 / -1;
  }
}

/* About */
.about {
  position: relative;
  z-index: 2;
  padding: 7.5em 0 2em;
}

@media (max-width: 991px) {
  .about.about-padding {
    display: hidden;
  }
}

.about_wrap {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1em;
  padding: 0 2em;
}

.about_awards {
  grid-column: 1 / 6;
  display: flex;
  flex-direction: column;
}

.about_awards__item {
  font-size: 1.75em;
  font-weight: 500;
  line-height: 1.5;
}

.about_content {
  grid-column: 7 / -1;
  display: flex;
  flex-direction: column;
  gap: 1.5em;
}

.about_content__quote,
.about_content__text {
  font-size: 2em;
  line-height: 1.3;
  letter-spacing: -2%;
}

.about_content__quote {
  color: #9e9e9e;
}

/* Osmo - Draggable Marquee */
.draggable-marquee {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex: none;
  width: 100%;
  overflow: hidden;
}

.draggable-marquee__collection {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex: none;
  will-change: transform;
}

.draggable-marquee__list {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex: none;
}

.draggable-marquee__item {
  width: 15em;
  aspect-ratio: 1;
  border-radius: 1.25em;
  margin-right: 1em;
  flex: none;
  overflow: hidden;
}

.draggable-marquee__item-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* About Logo Cards */
.about_marquee {
  margin-top: 12em;
}

.about_logo {
  width: 18.5em;
  aspect-ratio: 1;
  border-radius: 0;
  margin-right: 0.75em;
  background-color: var(--color-white);
  justify-content: center;
  align-items: center;
  display: flex;
  position: relative;
  transition: background-color 0.4s linear;
}

.about_logo__img {
  height: auto;
  pointer-events: none;
}

.about_logo__text {
  position: absolute;
  left: 1.5em;
  right: 1.5em;
  bottom: 1.25em;
  text-align: center;
  font-size: 0.875em;
  line-height: 1.3;
  opacity: 0;
  transform: translateY(0.5em);
  transition:
    opacity 0.4s linear,
    transform 0.4s cubic-bezier(0.625, 0.05, 0, 1);
}

.about_logo:hover {
  background-color: var(--color-grey);
}

.about_logo:hover .about_logo__text {
  opacity: 1;
  transform: translateY(0);
}

/* About - Tablet */
@media screen and (max-width: 991px) {
  .about {
    padding-top: 4em;
  }

  .about_wrap {
    padding: 0 1em;
  }

  .about_awards,
  .about_content {
    grid-column: 1 / -1;
  }

  /* Stacked: the 1em grid gap alone reads as cramped against the quote */
  .about_awards {
    margin-bottom: 2em;
  }

  .about_awards__item {
    font-size: 1.375em;
  }

  .about_content {
    gap: 2em;
  }

  .about_content__quote,
  .about_content__text {
    font-size: 1.5em;
  }

  .about_marquee {
    margin-top: 6em;
  }

  /* No hover on smaller screens: captions always visible */
  .about_logo__text {
    opacity: 1;
    transform: none;
  }
}

/* About - Mobile Landscape */
@media screen and (max-width: 767px) {
  .about_awards__item {
    font-size: 1.25em;
  }

  .about_content__quote,
  .about_content__text {
    font-size: 1.375em;
  }
}

/* About - Mobile Portrait */
@media screen and (max-width: 479px) {
  .about_awards__item {
    font-size: 1.125em;
  }

  .about_content__quote,
  .about_content__text {
    font-size: 1.25em;
  }
}

/* Footer */
.footer {
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.footer_inner {
  min-height: 100svh;
  background-color: var(--color-grey);
  padding: 2em;
  display: flex;
  position: relative;
  overflow: hidden;
}

.footer_wrap {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1em;
  width: 100%;
  position: relative;
  z-index: 1;
}

.footer_title {
  grid-column: 1 / 7;
  font-family: var(--ff-serif);
  font-size: 9em;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
}

.footer_contact {
  grid-column: 10 / -1;
  display: flex;
  flex-direction: column;
  gap: 1.5em;
}

.footer_contact__heading {
  font-size: 1.5em;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.footer_links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer_link {
  display: inline-flex;
  align-items: center;
  gap: 0.25em;
  font-size: 1.125em;
  line-height: 1.5;
  text-transform: uppercase;
}

.footer_link__arrow {
  position: relative;
  width: 1em;
  height: 1em;
  flex: none;
  overflow: hidden;
}

.footer_link__arrow-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: transform 0.735s cubic-bezier(0.625, 0.05, 0, 1);
}

/* Second arrow waits off-screen at the bottom-left */
.footer_link__arrow-svg:last-child {
  transform: translate(-100%, 100%) rotate(0.001deg);
}

/* On hover the first arrow flies out along its diagonal (top-right),
   while the second slides in from the bottom-left to take its place */
.footer_link:hover .footer_link__arrow-svg:first-child {
  transform: translate(100%, -100%) rotate(0.001deg);
}

.footer_link:hover .footer_link__arrow-svg:last-child {
  transform: translate(0, 0) rotate(0.001deg);
}

.footer_dark {
  opacity: 0;
  pointer-events: none;
  background-color: var(--color-darker);
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

/* Osmo - Underline Link */
[data-underline-link] {
  text-decoration: none;
  position: relative;
}

[data-underline-link]::before {
  content: "";
  position: absolute;
  bottom: -0.0625em;
  left: 0;
  width: 100%;
  height: 0.08em;
  background-color: currentColor;
  transition: transform 0.735s cubic-bezier(0.625, 0.05, 0, 1);
  transform-origin: right;
  transform: scaleX(0) rotate(0.001deg);
}

@media (hover: hover) and (pointer: fine) {
  [data-hover]:hover [data-underline-link]::before,
  [data-underline-link]:hover::before {
    transform-origin: left;
    transform: scaleX(1) rotate(0.001deg);
  }
}

/* Footer Game Scene */
.footer_game {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.footer_game__clouds {
  position: absolute;
  inset: 0;
}

.footer_game__cloud {
  position: absolute;
  height: auto;
  will-change: transform;
  image-rendering: pixelated;
}

/* One uniform block unit drives the ground tiles and the obstacle stacks */
.footer_game {
  --fb-block: 2.8em;
}

.footer_game__ground {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: var(--fb-block);
  background-color: var(--color-dark);
  background-image:
    repeating-linear-gradient(
      90deg,
      var(--color-grey) 0 2px,
      transparent 2px var(--fb-block)
    ),
    repeating-linear-gradient(
      0deg,
      var(--color-grey) 0 2px,
      transparent 2px var(--fb-block)
    );
  background-position:
    var(--fb-gx, 0px) 0,
    0 0;
}

.footer_game__obstacle {
  position: absolute;
  left: 0;
  bottom: var(--fb-block);
  width: var(--fb-block);
  /* height is a whole number of blocks, set per-instance in JS */
  background-color: var(--color-dark);
  background-image:
    repeating-linear-gradient(
      90deg,
      var(--color-grey) 0 2px,
      transparent 2px var(--fb-block)
    ),
    repeating-linear-gradient(
      0deg,
      var(--color-grey) 0 2px,
      transparent 2px var(--fb-block)
    );
  will-change: transform;
}

.footer_game__actor {
  position: absolute;
  left: 13%;
  bottom: var(--fb-block);
  width: 9.5em;
  will-change: transform;
}

.footer_game__dino {
  width: 100%;
  will-change: transform;
}

.footer_game__dino svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Footer - Tablet */
@media screen and (max-width: 991px) {
  .footer_inner {
    padding: 2em 1em;
  }

  .footer_wrap {
    display: flex;
    flex-direction: column;
    gap: 3em;
  }

  .footer_title {
    font-size: 6em;
  }

  .footer_game {
    --fb-block: 2.2em;
  }

  .footer_game__actor {
    width: 7em;
  }
}

/* Footer - Mobile Landscape */
@media screen and (max-width: 767px) {
  .footer_title {
    font-size: 4em;
  }

  .footer_game {
    --fb-block: 1.9em;
  }

  .footer_game__actor {
    width: 5.5em;
  }
}

/* Footer - Mobile Portrait */
@media screen and (max-width: 479px) {
  .footer_title {
    font-size: 3em;
  }

  .footer_game {
    --fb-block: 1.7em;
  }

  .footer_game__actor {
    width: 5em;
  }
}

/* Bunny HLS Background Player */
.bunny-bg {
  pointer-events: none;
  color: #fff;
  isolation: isolate;
  border-radius: 1em;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  transform: translateX(0);
}

.bunny-bg__video {
  object-fit: cover;
  width: 100%;
  height: 100%;
  padding-bottom: 0;
  padding-right: 0;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}

/* Animation */
[data-bunny-background-init] :is(.bunny-bg__placeholder, .bunny-bg__loading) {
  transition:
    opacity 0.3s linear,
    visibility 0.3s linear;
}

/* Placeholder */
.bunny-bg__placeholder {
  object-fit: cover;
  width: 100%;
  height: 100%;
  position: absolute;
}

[data-bunny-background-init][data-player-status="playing"]
  .bunny-bg__placeholder,
[data-bunny-background-init][data-player-status="paused"]
  .bunny-bg__placeholder,
[data-bunny-background-init][data-player-activated="true"][data-player-status="ready"]
  .bunny-bg__placeholder {
  opacity: 0;
  visibility: hidden;
}

/* Loading */
.bunny-bg__loading {
  opacity: 0;
  visibility: hidden;
  background-color: #00000054;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  display: flex;
  position: absolute;
}

.bunny-bg__loading-svg {
  width: 6em;
}

[data-bunny-background-init][data-player-status="loading"] .bunny-bg__loading {
  opacity: 1;
  visibility: visible;
}

/* Bunny HLS Lightbox */
.bunny-lightbox {
  z-index: 300;
  pointer-events: none;
  justify-content: center;
  align-items: center;
  padding: 5vw;
  display: flex;
  position: fixed;
  inset: 0;
  overflow: hidden;
}

.bunny-lightbox__calc {
  transition:
    transform 0.3s cubic-bezier(0.625, 0.05, 0, 1),
    opacity 0.3s linear,
    visibility 0.3s linear;
  width: 100%;
  height: 100%;
  position: relative;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.9) rotate(0.001deg);
}

[data-bunny-lightbox-status="active"] .bunny-lightbox__calc {
  opacity: 1;
  visibility: visible;
  transform: scale(1) rotate(0.001deg);
}

.bunny-lightbox__dark {
  opacity: 0.95;
  pointer-events: auto;
  background-color: #191512;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
}

.bunny-lightbox__close {
  z-index: 600;
  pointer-events: auto;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 3em;
  height: 3em;
  display: flex;
  position: absolute;
  top: 2.5vw;
  right: 2.5vw;
  color: #fff;
}

.bunny-lightbox__close-bar {
  background-color: currentColor;
  width: 1em;
  height: 0.125em;
  position: absolute;
  transform: rotate(-45deg);
}

.bunny-lightbox__close-bar.is--duplicate {
  transform: rotate(45deg);
}

[data-bunny-lightbox-status] .bunny-lightbox__dark,
[data-bunny-lightbox-status] .bunny-lightbox__close {
  transition:
    opacity 0.3s linear,
    visibility 0.3s linear;
  opacity: 0;
  visibility: hidden;
}

[data-bunny-lightbox-status="active"] .bunny-lightbox__dark,
[data-bunny-lightbox-status="active"] .bunny-lightbox__close {
  opacity: 1;
  visibility: visible;
}

/* Lightbox Player */
.bunny-lightbox-player {
  pointer-events: none;
  color: #fff;
  isolation: isolate;
  border-radius: 1em;
  justify-content: center;
  align-items: center;
  width: 100%;
  display: flex;
  position: relative;
  overflow: hidden;
  -webkit-mask-image: radial-gradient(#fff, #000);
  mask-image: radial-gradient(#fff, #000);
}

.bunny-lightbox-player__before {
  padding-top: 62.5%;
}

/* Animation */
[data-bunny-lightbox-init]
  :is(
    .bunny-lightbox-player__placeholder,
    .bunny-lightbox-player__dark,
    .bunny-lightbox-player__playpause,
    .bunny-lightbox-player__loading
  ) {
  transition:
    opacity 0.3s linear,
    visibility 0.3s linear;
}

/* Placeholder */
.bunny-lightbox-player__placeholder {
  object-fit: cover;
  width: 100%;
  height: 100%;
  position: absolute;
}

[data-bunny-lightbox-init][data-player-status="playing"]
  .bunny-lightbox-player__placeholder,
[data-bunny-lightbox-init][data-player-status="paused"]
  .bunny-lightbox-player__placeholder,
[data-bunny-lightbox-init][data-player-activated="true"][data-player-status="ready"]
  .bunny-lightbox-player__placeholder {
  opacity: 0;
  visibility: hidden;
}

/* Dark Overlay */
.bunny-lightbox-player__dark {
  opacity: 0.1;
  background-color: #000;
  width: 100%;
  height: 100%;
  position: absolute;
}

[data-bunny-lightbox-init][data-player-status="paused"]
  .bunny-lightbox-player__dark,
[data-bunny-lightbox-init][data-player-status="playing"][data-player-hover="active"]
  .bunny-lightbox-player__dark {
  opacity: 0.3;
}

[data-bunny-lightbox-init][data-player-status="playing"]
  .bunny-lightbox-player__dark {
  opacity: 0;
}

.bunny-lightbox-player__video {
  width: 100%;
  height: 100%;
  padding-bottom: 0;
  padding-right: 0;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}

/* Play/Pause */
.bunny-lightbox-player__playpause {
  pointer-events: auto;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  display: flex;
  position: absolute;
}

[data-bunny-lightbox-init][data-player-status="playing"]
  .bunny-lightbox-player__playpause,
[data-bunny-lightbox-init][data-player-status="loading"]
  .bunny-lightbox-player__playpause {
  opacity: 0;
}

[data-bunny-lightbox-init][data-player-status="playing"][data-player-hover="active"]
  .bunny-lightbox-player__playpause {
  opacity: 1;
}

[data-bunny-lightbox-init][data-player-status="playing"]
  .bunny-lightbox-player__play-svg,
[data-bunny-lightbox-init][data-player-status="loading"]
  .bunny-lightbox-player__play-svg {
  display: none;
}

[data-bunny-lightbox-init][data-player-status="playing"]
  .bunny-lightbox-player__pause-svg,
[data-bunny-lightbox-init][data-player-status="loading"]
  .bunny-lightbox-player__pause-svg {
  display: block;
}

/* Loading */
.bunny-lightbox-player__loading {
  opacity: 0;
  visibility: hidden;
  background-color: #00000054;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  display: flex;
  position: absolute;
}

[data-bunny-lightbox-init][data-player-status="loading"]
  .bunny-lightbox-player__loading {
  opacity: 1;
  visibility: visible;
}

/* Interface */
.bunny-lightbox-player__interface {
  flex-flow: column;
  justify-content: flex-end;
  align-items: baseline;
  width: 100%;
  height: 100%;
  display: flex;
  position: absolute;
  transition: all 0.6s cubic-bezier(0.625, 0.05, 0, 1);
}

[data-bunny-lightbox-init][data-player-status="playing"]
  .bunny-lightbox-player__interface,
[data-bunny-lightbox-init][data-player-status="loading"]
  .bunny-lightbox-player__interface {
  opacity: 0;
  transform: translateY(1em) rotate(0.001deg);
}

[data-bunny-lightbox-init][data-player-status="playing"][data-player-hover="active"]
  .bunny-lightbox-player__interface,
[data-bunny-lightbox-init][data-player-status="loading"][data-player-hover="active"]
  .bunny-lightbox-player__interface {
  opacity: 1;
  transform: translateY(0em) rotate(0.001deg);
}

.bunny-lightbox-player__interface-bottom {
  grid-column-gap: 1em;
  grid-row-gap: 1em;
  pointer-events: auto;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: min(2em, 4vw);
  display: flex;
  position: relative;
}

.bunny-lightbox-player__toggle-mute,
.bunny-lightbox-player__toggle-fullscreen {
  cursor: pointer;
  width: 1.5em;
  height: 1.5em;
}

.bunny-lightbox-player__timeline {
  cursor: pointer;
  flex: 1;
  align-items: center;
  height: 1em;
  margin-left: 0.5em;
  margin-right: 0.5em;
  display: flex;
  position: relative;
}

[data-bunny-lightbox-init][data-player-status="idle"][data-player-activated="false"]
  .bunny-lightbox-player__timeline,
[data-bunny-lightbox-init][data-player-status="ready"][data-player-activated="false"]
  .bunny-lightbox-player__timeline {
  pointer-events: none;
}

.bunny-lightbox-player__timeline-progress {
  pointer-events: none;
  background-color: #ff4c24;
  border-radius: 1em;
  width: 100%;
  height: 100%;
  position: absolute;
  transform: translateX(-100%);
}

.bunny-lightbox-player__timeline-buffered {
  opacity: 0.2;
  pointer-events: none;
  background-color: #fff;
  border-radius: 1em;
  width: 100%;
  height: 100%;
  position: absolute;
  transform: translateX(-100%);
}

.bunny-lightbox-player__timeline-handle {
  transition: transform 0.15s ease-in-out;
  pointer-events: none;
  background-color: #ff4c24;
  border-radius: 1em;
  width: 1em;
  height: 1em;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%) scale(0);
}

[data-bunny-lightbox-init][data-timeline-drag="true"]
  .bunny-lightbox-player__timeline-handle {
  transform: translate(-50%, -50%) scale(1);
}

.bunny-lightbox-player__timeline-bar {
  border-radius: 1em;
  width: 100%;
  height: 30%;
  position: absolute;
  overflow: hidden;
}

.bunny-lightbox-player__time {
  grid-column-gap: 0.125em;
  grid-row-gap: 0.125em;
  flex: none;
  justify-content: center;
  align-items: center;
  width: 5.75em;
  display: flex;
}

.bunny-lightbox-player__timeline-bg {
  background-color: #ffffff26;
  border-radius: 1em;
  width: 100%;
  height: 100%;
  position: absolute;
}

.bunny-lightbox-player__toggle-playpause {
  cursor: pointer;
  width: 1.5em;
  height: 1.5em;
}

.bunny-lightbox-player__text {
  white-space: nowrap;
  margin-bottom: 0;
  font-size: 0.9375em;
  line-height: 1;
}

.bunny-lightbox-player__text.is--transparent {
  opacity: 0.5;
}

.bunny-lightbox-player__big-btn {
  -webkit-backdrop-filter: blur(1em);
  backdrop-filter: blur(1em);
  cursor: pointer;
  background-color: #64646433;
  border: 1px solid #ffffff1a;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 6em;
  height: 6em;
  padding: 2em;
  display: flex;
  position: relative;
}

.bunny-lightbox-player__loading-svg {
  width: 6em;
}

.bunny-lightbox-player__pause-svg {
  display: none;
}

.bunny-lightbox-player__interface-fade {
  opacity: 0.5;
  background-image: linear-gradient(#0000, #000);
  width: 100%;
  height: 25%;
  position: absolute;
  bottom: 0;
}

.bunny-lightbox-player__interface-btns {
  grid-column-gap: 0.5em;
  grid-row-gap: 0.5em;
  align-items: center;
  display: flex;
}

[data-bunny-lightbox-init][data-player-muted="true"]
  .bunny-lightbox-player__volume-mute-svg {
  display: block;
}

[data-bunny-lightbox-init][data-player-muted="true"]
  .bunny-lightbox-player__volume-up-svg {
  display: none;
}

.bunny-lightbox-player__volume-mute-svg {
  display: none;
}

.bunny-lightbox-player__volume-up-svg {
  display: block;
}

.bunny-lightbox-player__fullscreen-shrink-svg {
  display: none;
}

.bunny-lightbox-player__fullscreen-scale-svg {
  display: block;
}

[data-bunny-lightbox-init][data-player-fullscreen="true"]
  .bunny-lightbox-player__fullscreen-shrink-svg {
  display: block;
}

[data-bunny-lightbox-init][data-player-fullscreen="true"]
  .bunny-lightbox-player__fullscreen-scale-svg {
  display: none;
}

/* Cover Mode */
[data-bunny-lightbox-init][data-player-update-size="cover"] {
  height: 100%;
  top: 0;
  left: 0;
  position: absolute;
}

[data-bunny-lightbox-init][data-player-update-size="cover"]
  [data-player-before] {
  display: none;
}

[data-bunny-lightbox-init][data-player-update-size="cover"][data-player-fullscreen="false"]
  .bunny-lightbox-player__video {
  object-fit: cover;
}
