/* Rounds photo/video corners and turns the download icon into a full text button */

html,
body {
  background: #061024 !important;
}

body {
  position: relative;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: -30vmax;
  z-index: 0;
  pointer-events: none;
}

body::before {
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.13), transparent 28vmax),
    radial-gradient(circle at 82% 12%, rgba(109, 155, 255, 0.14), transparent 30vmax),
    radial-gradient(circle at 52% 88%, rgba(255, 255, 255, 0.08), transparent 32vmax);
  animation: neeko-spotlight-drift 18s ease-in-out infinite alternate;
}

body::after {
  background:
    radial-gradient(circle at 72% 72%, rgba(255, 255, 255, 0.08), transparent 26vmax),
    radial-gradient(circle at 24% 78%, rgba(89, 196, 255, 0.1), transparent 28vmax);
  animation: neeko-spotlight-drift-reverse 24s ease-in-out infinite alternate;
}

.session-page {
  position: relative;
  z-index: 1;
  background: transparent !important;
}

.session-page .header,
.session-page .card,
.session-page .card-footer,
.session-page .footer,
.session-page footer,
.session-page .container,
.session-page .container-fluid {
  background: transparent !important;
}

@keyframes neeko-spotlight-drift {
  0% {
    transform: translate3d(-2%, -1%, 0) scale(1);
  }

  100% {
    transform: translate3d(3%, 2%, 0) scale(1.06);
  }
}

@keyframes neeko-spotlight-drift-reverse {
  0% {
    transform: translate3d(2%, 2%, 0) scale(1.04);
  }

  100% {
    transform: translate3d(-3%, -2%, 0) scale(1);
  }
}

.card-body figure,
.card-body .preview,
.card-body img,
.card-body video {
  border-radius: 20px;
  box-shadow: 0 14px 32px rgba(6, 16, 36, 0.18);
}

.card-body figure {
  overflow: hidden;
}

.card-body img,
.card-body video,
img.preview,
video.preview {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.card-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 100%;
  padding-top: 4px;
  padding-bottom: 14px;
  text-align: center;
}

.card-footer .action-buttons,
.card-footer form,
.action-buttons,
form[action*="/download"] {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100%;
  margin: 0 auto !important;
  padding: 0 !important;
}

.card-footer a,
.card-footer button,
.card-footer [role="button"],
.action-buttons a,
.action-buttons button,
.action-buttons [role="button"],
form[action*="/download"] button,
form[action*="/download"] [type="submit"] {
  position: relative;
  overflow: hidden;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 144px;
  min-height: 48px;
  padding: 0 22px;
  border: 0 !important;
  border-radius: 999px;
  background: #061024 !important;
  color: #fff !important;
  font-size: 0 !important;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow:
    0 10px 24px rgba(6, 16, 36, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease;
  cursor: pointer;
  margin: 0 auto !important;
  float: none !important;
}

.card-footer a::before,
.card-footer button::before,
.card-footer [role="button"]::before,
.action-buttons a::before,
.action-buttons button::before,
.action-buttons [role="button"]::before,
form[action*="/download"] button::before,
form[action*="/download"] [type="submit"]::before {
  content: "";
  position: absolute;
  top: -35%;
  bottom: -35%;
  left: -55%;
  width: 42%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.46),
    transparent
  );
  transform: skewX(-22deg);
  animation: neeko-button-sheen 4.8s ease-in-out infinite;
}

@keyframes neeko-button-sheen {
  0%,
  45% {
    left: -55%;
  }

  72%,
  100% {
    left: 115%;
  }
}

.card-footer a::after,
.card-footer button::after,
.card-footer [role="button"]::after,
.action-buttons a::after,
.action-buttons button::after,
.action-buttons [role="button"]::after,
form[action*="/download"] button::after,
form[action*="/download"] [type="submit"]::after {
  content: "Download";
  font-size: 13px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: 0.12em;
}

.card-footer a:hover,
.card-footer button:hover,
.card-footer [role="button"]:hover,
.action-buttons a:hover,
.action-buttons button:hover,
.action-buttons [role="button"]:hover,
form[action*="/download"] button:hover,
form[action*="/download"] [type="submit"]:hover {
  background: #0b1936;
  filter: brightness(1.03);
  transform: translateY(-1px);
  box-shadow:
    0 14px 28px rgba(6, 16, 36, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.card-footer a:active,
.card-footer button:active,
.card-footer [role="button"]:active,
.action-buttons a:active,
.action-buttons button:active,
.action-buttons [role="button"]:active,
form[action*="/download"] button:active,
form[action*="/download"] [type="submit"]:active {
  transform: translateY(1px);
  box-shadow:
    0 6px 14px rgba(6, 16, 36, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.card-footer a svg,
.card-footer button svg,
.card-footer [role="button"] svg,
.card-footer a i,
.card-footer button i,
.card-footer [role="button"] i,
.card-footer a span,
.card-footer button span,
.card-footer [role="button"] span,
.action-buttons a svg,
.action-buttons button svg,
.action-buttons [role="button"] svg,
.action-buttons a i,
.action-buttons button i,
.action-buttons [role="button"] i,
.action-buttons a span,
.action-buttons button span,
.action-buttons [role="button"] span,
form[action*="/download"] button svg,
form[action*="/download"] [type="submit"] svg,
form[action*="/download"] button i,
form[action*="/download"] [type="submit"] i,
form[action*="/download"] button span,
form[action*="/download"] [type="submit"] span {
  display: none !important;
}

.session-page .fa-download,
.session-page .button.fa-download,
.session-page i.fa-download {
  position: relative;
  overflow: hidden;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 144px;
  min-height: 48px;
  padding: 0 22px;
  border: 0 !important;
  border-radius: 999px;
  background: #061024 !important;
  color: #fff !important;
  font-size: 0 !important;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow:
    0 10px 24px rgba(6, 16, 36, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.session-page .fa-download::before,
.session-page .button.fa-download::before,
.session-page i.fa-download::before {
  display: none !important;
  content: "" !important;
}

.session-page .fa-download::after,
.session-page .button.fa-download::after,
.session-page i.fa-download::after {
  content: "Download";
  font-size: 13px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: 0.12em;
}

.session-page button .fa-download,
.session-page [role="button"] .fa-download,
.session-page a .fa-download,
.action-buttons button .fa-download,
.action-buttons [role="button"] .fa-download,
.action-buttons a .fa-download,
form[action*="/download"] button .fa-download,
form[action*="/download"] [type="submit"] .fa-download {
  display: none !important;
}

.session-page button .fa-download::before,
.session-page button .fa-download::after,
.session-page [role="button"] .fa-download::before,
.session-page [role="button"] .fa-download::after,
.session-page a .fa-download::before,
.session-page a .fa-download::after,
.action-buttons button .fa-download::before,
.action-buttons button .fa-download::after,
.action-buttons [role="button"] .fa-download::before,
.action-buttons [role="button"] .fa-download::after,
.action-buttons a .fa-download::before,
.action-buttons a .fa-download::after,
form[action*="/download"] button .fa-download::before,
form[action*="/download"] button .fa-download::after,
form[action*="/download"] [type="submit"] .fa-download::before,
form[action*="/download"] [type="submit"] .fa-download::after {
  content: "" !important;
  display: none !important;
}

@supports selector(:has(*)) {
  a[download]:not(:has(img, video, picture)),
  a[aria-label*="download" i]:not(:has(img, video, picture)),
  a[title*="download" i]:not(:has(img, video, picture)) {
    position: relative;
    overflow: hidden;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 144px;
    min-height: 48px;
    padding: 0 22px;
    border: 0 !important;
    border-radius: 999px;
    background: #061024 !important;
    color: #fff !important;
    font-size: 0 !important;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    box-shadow:
      0 10px 24px rgba(6, 16, 36, 0.28),
      inset 0 1px 0 rgba(255, 255, 255, 0.35);
    transition:
      transform 0.18s ease,
      box-shadow 0.18s ease,
      filter 0.18s ease;
    cursor: pointer;
    margin: 0 auto !important;
    float: none !important;
  }

  a[download]:not(:has(img, video, picture))::before,
  a[aria-label*="download" i]:not(:has(img, video, picture))::before,
  a[title*="download" i]:not(:has(img, video, picture))::before {
    content: "";
    position: absolute;
    top: -35%;
    bottom: -35%;
    left: -55%;
    width: 42%;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(255, 255, 255, 0.46),
      transparent
    );
    transform: skewX(-22deg);
    animation: neeko-button-sheen 4.8s ease-in-out infinite;
  }

  a[download]:not(:has(img, video, picture))::after,
  a[aria-label*="download" i]:not(:has(img, video, picture))::after,
  a[title*="download" i]:not(:has(img, video, picture))::after {
    content: "Download";
    font-size: 13px;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    letter-spacing: 0.12em;
  }

  a[download]:not(:has(img, video, picture)) svg,
  a[aria-label*="download" i]:not(:has(img, video, picture)) svg,
  a[title*="download" i]:not(:has(img, video, picture)) svg,
  a[download]:not(:has(img, video, picture)) i,
  a[aria-label*="download" i]:not(:has(img, video, picture)) i,
  a[title*="download" i]:not(:has(img, video, picture)) i,
  a[download]:not(:has(img, video, picture)) span,
  a[aria-label*="download" i]:not(:has(img, video, picture)) span,
  a[title*="download" i]:not(:has(img, video, picture)) span {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  body::after,
  .card-footer a::before,
  .card-footer button::before,
  .card-footer [role="button"]::before,
  .action-buttons a::before,
  .action-buttons button::before,
  .action-buttons [role="button"]::before,
  form[action*="/download"] button::before,
  form[action*="/download"] [type="submit"]::before {
    animation: none !important;
  }

  @supports selector(:has(*)) {
    a[download]:not(:has(img, video, picture))::before,
    a[aria-label*="download" i]:not(:has(img, video, picture))::before,
    a[title*="download" i]:not(:has(img, video, picture))::before {
      animation: none !important;
    }
  }
}
