/* Figma 51039:422807 / 49066:475907: shared PC/H5 floating controls. */
.to-top,
.mobile-site-back-to-top,
.mobile-short-drama-back-to-top,
.site-floating-download {
  box-sizing: border-box;
  border: 0;
  background: linear-gradient(135deg, #fd3666 47.596%, #c60030 100%);
  box-shadow: none;
  color: #fff;
  -webkit-tap-highlight-color: transparent;
}
.to-top,
.mobile-site-back-to-top,
.mobile-short-drama-back-to-top {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  padding: 20px;
}
.to-top img,
.mobile-site-back-to-top > span,
.mobile-short-drama-back-to-top > span {
  display: block;
  width: 20px;
  height: 20px;
  margin: 0;
  border: 0;
  transform: none;
}
.mobile-site-back-to-top > span,
.mobile-short-drama-back-to-top > span {
  background: url("/static/images/site-chrome/back-top.svg") center / 20px 20px no-repeat;
}
.site-floating-download {
  position: fixed;
  right: max(24px, calc((100vw - 1730px) / 2));
  bottom: 28%;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 8px 12px;
  border-radius: 999px;
  font: 400 16px/22px "PingFang SC", "Microsoft YaHei", sans-serif;
  white-space: nowrap;
  text-decoration: none;
  background: linear-gradient(161.421deg, #fd3666 47.596%, #c60030 100%);
}
.site-floating-download img { display: block; width: 24px; height: 24px; }
.to-top:focus-visible,
.mobile-site-back-to-top:focus-visible,
.mobile-short-drama-back-to-top:focus-visible,
.site-floating-download:focus-visible { outline: 2px solid #fd3666; outline-offset: 4px; }
@media (min-width: 769px) {
  .to-top,
  .pc-long-list-page:has(.pc-home-activity-entries:not([hidden])) > .to-top {
    right: max(24px, calc((100vw - 1730px) / 2));
    bottom: calc(28% + 88px);
  }
}
@media (max-width: 768px) {
  .site-floating-download { right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
  .to-top,
  .mobile-site-back-to-top,
  .mobile-short-drama-back-to-top {
    right: max(16px, env(safe-area-inset-right, 0px));
    bottom: calc(148px + env(safe-area-inset-bottom, 0px));
  }
  .mobile-home-page .site-floating-download { bottom: calc(148px + env(safe-area-inset-bottom, 0px)); }
  .mobile-home-page .to-top { bottom: calc(216px + env(safe-area-inset-bottom, 0px)); }
}
@media (hover: hover) {
  .to-top--visible:hover,
  .site-floating-download:hover { color: #fff; filter: brightness(1.08); }
}
