*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #080808;
}

body {
  color: #fff;
  font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button {
  padding: 0;
  border: 0;
  color: inherit;
  cursor: pointer;
  background: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

button:focus-visible,
input:focus-visible {
  outline: 2px solid #25f4ee;
  outline-offset: 4px;
}

button,
svg,
img {
  user-select: none;
  -webkit-user-select: none;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.app {
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  position: relative;
  width: min(100vw, calc(100dvh * 402 / 874));
  height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  background: #000;
}

.canvas {
  --bottom-nav-height: calc(56px + var(--safe-bottom, 0px));
  position: absolute;
  width: 402px;
  height: 874px;
  transform-origin: top left;
  overflow: hidden;
  background: #000;
}

.status {
  position: absolute;
  inset: 0 0 auto;
  height: 69px;
  background: #000;
  z-index: 30;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px 36px 0 51px;
}

.time {
  font-size: 17px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: -.7px;
  font-variant-numeric: tabular-nums;
}

.status-icons {
  display: flex;
  height: 16px;
  align-items: center;
  gap: 7px;
  margin-top: 2px;
}

.signal {
  width: 20px;
  height: 14px;
}

.wifi {
  width: 18px;
  height: 14px;
}

.battery {
  position: relative;
  width: 25px;
  height: 14px;
  border-radius: 5px;
  background: #858585;
  color: #000;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 14px;
  text-align: center;
  isolation: isolate;
}

.battery::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 48% 0 0;
  background: #fff;
  border-radius: 5px 0 0 5px;
}

.battery::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 5px;
  right: -3px;
  top: 5px;
  background: #737373;
  border-radius: 0 2px 2px 0;
}

.feed {
  position: absolute;
  top: 0;
  bottom: var(--bottom-nav-height);
  left: 0;
  right: 0;
  overflow: hidden;
  touch-action: none;
}

.feed-track {
  width: 100%;
  height: 100%;
  transition: transform .36s cubic-bezier(.22, .8, .25, 1);
  will-change: transform;
}

.slide {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #242220;
}

.media-empty {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 5% 30%, #524c42 0%, transparent 60%), radial-gradient(ellipse at 95% 65%, #383030 0%, transparent 60%), linear-gradient(160deg, #38332f, #1a191c 75%);
}

.slide:nth-child(2) .media-empty {
  background: radial-gradient(ellipse at 10% 25%, #3d4e50, transparent 65%), linear-gradient(160deg, #263033, #15161d);
}

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

.shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, #0002 0%, transparent 22%, transparent 55%, #0001 65%, #0009 100%);
}

.top-nav {
  position: absolute;
  top: 40px;
  left: 0;
  width: 100%;
  height: 44px;
  z-index: 5;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 4px;

}

.top-tabs {
  display: flex;
  gap: 17px;
  transform: translateX(0);
}

.top-tab {
  position: relative;
  height: 31px;
  font-size: 17px;
  line-height: 25px;
  font-weight: 700;
  letter-spacing: .5px;
  color: #fffc;
}

.top-tab.active {
  color: #fff;
}

.top-tab.active::after {
  position: absolute;
  content: "";
  width: 24px;
  height: 2px;
  border-radius: 1px;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  background: #fff;
}

.live {
  position: absolute;
  left: 16px;
  top: 3px;
  width: 24px;
  height: 25px;
}

.search {
  position: absolute;
  right: 16px;
  top: 5px;
  width: 23px;
  height: 23px;
}

.play-area {
  position: absolute;
  inset: 44px 64px 160px 0;
  z-index: 1;
}

.pause-mark {
  position: absolute;
  left: 204px;
  top: 45%;
  width: 48px;
  height: 58px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  color: #e8e8ef;
  opacity: .36;
  transition: opacity .16s;
}

.slide.playing .pause-mark {
  opacity: 0;
}

.empty-label {
  position: absolute;
  top: calc(45% + 36px);
  left: 0;
  right: 0;
  text-align: center;
  pointer-events: none;
  color: #fff5;
  font-size: 10px;
  letter-spacing: 1px;
}

.slide.has-media .empty-label {
  display: none;
}

.rail {
  position: absolute;
  z-index: 5;
  right: 2px;
  bottom: 14px;
  width: 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  color: #f1eff0;
}

.profile {
  position: relative;
  width: 56px;
  height: 56px;
  margin-bottom: 10px;
}

.avatar {
  position: relative;
  display: block;
  width: 56px;
  height: 56px;
  padding: 3px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0b9bff 15%, #00ddc3 90%);
}

.avatar-core {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 2px solid #171719;
  border-radius: 50%;
  background: #27272b;
}

.avatar-core .placeholder-person {
  display: block;
  width: 100%;
  height: 100%;
  padding: 10px;
  color: #b6b6ba;
}

.avatar-image {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-core.loaded .avatar-image {
  display: block;
}

.avatar-core.loaded .placeholder-person {
  display: none;
}

.follow {
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fe2c55;
  color: #fff;
  display: grid;
  place-items: center;
}

.follow .icon {
  width: 15px;
  height: 15px;
}

.follow[aria-pressed="true"] {
  background: #fff;
  color: #fe2c55;
}

.action {
  width: 58px;
  height: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  filter: drop-shadow(0 1px 1px #0002);
}

.action .icon {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  transition: transform .18s ease;
}

.action:active .icon {
  transform: scale(.87);
}

.action .count {
  font-size: 12.5px;
  line-height: 15px;
  font-weight: 500;
  white-space: nowrap;
}

.action[data-action="like"][aria-pressed="true"] {
  color: #fe2c55;
}

.action[data-action="save"][aria-pressed="true"] {
  color: #face15;
}

.action[aria-pressed="true"] .count {
  color: #fff;
}

.action[data-action="comment"] .icon {
  width: 31px;
}

.action[data-action="save"] .icon {
  width: 28px;
}

.disc {
  width: 40px;
  height: 40px;
  margin-top: 1px;
  padding: 0;
  border-radius: 50%;
  overflow: hidden;
  background: #242427;
  box-shadow: inset 0 0 0 1px #ffffff17;
}

.disc .avatar-core {
  border-width: 0;
}

.disc .placeholder-person {
  padding: 11px;
  color: #d4d4d6;
}

.info {
  position: absolute;
  z-index: 4;
  left: 12px;
  bottom: 56px;
  width: 290px;
  pointer-events: none;
  text-shadow: 0 1px 2px #0002;
}

.effect {
  display: inline-flex;
  height: 28px;
  align-items: center;
  gap: 4px;
  padding: 4px 6px 4px 4px;
  margin-bottom: 10px;
  background: #a5a0a02b;
  border-radius: 5px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  max-width: 100%;
}

.effect-icon { flex-shrink: 0; }
.effect-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.effect-icon {
  width: 20px;
  height: 20px;
  background: #ffba13;
  border-radius: 2px;
  padding: 2px;
}

.author {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 21px;
  font-weight: 700;
}

.description {
  margin: 0;
  font-size: 15px;
  line-height: 19px;
  font-weight: 500;
  color: #e5e3e6;
  overflow-wrap: anywhere;
}

.description .clip {
  color: #fff;
  font-weight: 400;
}

.interests {
  position: absolute;
  z-index: 5;
  left: 12px;
  bottom: 10px;
  width: 290px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.interest {
  height: 40px;
  border-radius: 6px;
  background: #c2c1d04a;
  font-size: 14px;
  font-weight: 500;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background .18s;
}

.interest[aria-pressed="true"] {
  background: #ffffff58;
  box-shadow: inset 0 0 0 1px #ffffff5c;
}

.timeline {
  position: absolute;
  z-index: 8;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 4px;
  background: #ffffff35;
  border-radius: 5px;
}

.timeline-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 29.5%;
  background: #fff;
  border-radius: inherit;
  pointer-events: none;
}

.timeline-fill::after {
  content: "";
  position: absolute;
  right: -4px;
  top: -2px;
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
}

.timeline input {
  position: absolute;
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  opacity: 0;
  width: 100%;
  height: 20px;
  top: -8px;
  cursor: pointer;
  touch-action: none;
}

.bottom-nav {
  position: absolute;
  bottom: 0;
  height: var(--bottom-nav-height);
  left: 0;
  right: 0;
  z-index: 30;
  border-top: .5px solid #ffffff26;
  background: #000;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding-top: 7px;
  padding-bottom: var(--safe-bottom, 0px);
  align-items: start;
}

.bottom-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: #a8a8aa;
  font-size: 10px;
  line-height: 15px;
}

.bottom-tab .nav-icon {
  width: 27px;
  height: 25px;
  position: relative;
}

.bottom-tab.active {
  color: #fff;
}

.bottom-tab[data-nav="inbox"] .nav-icon::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  top: -5px;
  right: -3px;
  background: #fe2c55;
  border-radius: 50%;
}

.create {
  position: relative;
  margin: 1px auto 0;
  width: 43px;
  height: 28px;
  border-radius: 9px;
  background: linear-gradient(90deg, #20cee2 0 36%, #fe2c75 64% 100%);
}

.create::before {
  content: "";
  position: absolute;
  inset: 0 3.5px;
  border-radius: 8px;
  background: #fff;
}

.create .icon {
  position: relative;
  width: 20px;
  height: 20px;
  margin: 4px auto;
  color: #191a24;
}


[hidden] {
  display: none !important;
}

@media(max-width: 600px) {
  .app {
    width: 100%;
  }
}

.feed,
.canvas {
  touch-action: none;
}

.feed video {
  pointer-events: none;
}

.media-empty {
  pointer-events: none;
}

.info {
  pointer-events: auto;
}

.timeline-fill::after {
  display: none;
}

.action:active .icon {
  transform: none;
}

.pause-mark {
  opacity: 0;
}

.video-unavailable .pause-mark {
  opacity: .36;
}

#activate-modal {
  position: fixed;
  inset: 0;
  margin: auto;
  border: 0;
  width: min(90vw, 400px);
  max-height: min(90dvh, 620px);
  overflow-y: auto;
  padding: 28px;
  border-radius: 20px;
  background: #fff;
  color: #161823;
  box-shadow: 0 20px 80px #0003;
  overscroll-behavior: contain;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  touch-action: pan-y;
}

#activate-modal::backdrop {
  background: #0008;
}

#activate-modal .close-button {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  font-size: 26px;
  color: #777;
  display: grid;
  place-items: center;
}

#activate-modal .modal-logo {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 9px;
}

#activate-modal h2 {
  font-size: 23px;
  line-height: 1.4;
  margin: 16px 0 10px;
}

#activate-modal p {
  font-size: 13px;
  color: #74747d;
  line-height: 1.7;
  margin: 0 0 16px;
}

#activate-modal label {
  display: block;
  font-size: 13px;
  margin: 20px 0 9px;
}

#activate-modal input {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  color: #161823;
  font-size: 16px;
}

#activate-modal .button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 14px 22px;
  border: 0;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  margin-top: 12px;
}

#activate-modal .primary {
  background: #fe2c55;
  color: #fff;
}

#activate-modal .primary:hover {
  background: #e8244a;
}

#activate-modal .secondary {
  background: #f3f3f5;
  color: #161823;
}

#activate-modal .entry-note {
  margin: 16px 0 0;
  font-size: 12px;
  text-align: center;
  color: #85858d;
}

@media(prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
