.slide-post-preview {
  box-sizing: border-box;
  padding: 0.85rem 1rem;
  border-inline-start: 3px solid var(--border-color);
  color: var(--default-text-color);
  background: var(--background-color-transparent-15);
}

.slide-post-preview > :last-child {
  margin-bottom: 0;
}

.slide-post-badge,
.archive-slide-badge,
.home-slide-badge {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  padding: 0.15rem 0.55rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: var(--third-text-color);
  font-size: 0.7em;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.4;
  opacity: 0.78;
  text-transform: uppercase;
  vertical-align: middle;
  white-space: nowrap;
}

.slide-post-preview .slide-post-badge {
  margin-bottom: 0.65rem;
}

.home-slide-badge {
  margin-inline-start: 0.5rem;
}

.archive-slide-badge {
  margin-inline-end: 0.6rem;
}

.slide-post-player {
  min-width: 0;
  max-width: 100%;
}

.slide-post-player > .hexo-reveal-embed {
  margin: 1.5rem 0 0;
}

.reveal-fullscreen-button {
  position: absolute;
  z-index: 20;
  top: 0.7rem;
  right: 0.7rem;
  display: inline-grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 38%);
  border-radius: 0.45rem;
  color: #fff;
  background: rgb(17 24 39 / 76%);
  box-shadow: 0 0.15rem 0.6rem rgb(0 0 0 / 24%);
  cursor: pointer;
  opacity: 0.82;
  touch-action: manipulation;
  transition:
    background-color 160ms ease,
    opacity 160ms ease,
    transform 160ms ease;
}

.reveal-fullscreen-button:hover,
.reveal-fullscreen-button:focus-visible {
  color: #fff;
  background: rgb(17 24 39 / 92%);
  opacity: 1;
}

.reveal-fullscreen-button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.reveal-fullscreen-button:active {
  transform: scale(0.96);
}

.reveal-fullscreen-button svg {
  width: 1.45rem;
  height: 1.45rem;
  pointer-events: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  fill: none;
}

.reveal-fullscreen-icon-exit,
.reveal-fullscreen-button[data-fullscreen-active="true"]
  .reveal-fullscreen-icon-enter {
  display: none;
}

.reveal-fullscreen-button[data-fullscreen-active="true"]
  .reveal-fullscreen-icon-exit {
  display: inline;
}

.hexo-reveal-embed:fullscreen,
.hexo-reveal-embed:-webkit-full-screen {
  width: 100vw;
  max-width: none;
  height: 100vh;
  margin: 0;
  border-radius: 0;
  aspect-ratio: auto;
  background: #000;
}

.hexo-reveal-embed:fullscreen iframe,
.hexo-reveal-embed:-webkit-full-screen iframe {
  width: 100%;
  height: 100%;
  border-radius: 0;
  box-shadow: none;
}

.slide-post-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.slide-post-actions a {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 0.45rem;
  color: var(--link-color);
  background: var(--background-color-transparent-15);
  text-decoration: none;
}

.slide-post-actions a:hover,
.slide-post-actions a:focus-visible {
  color: var(--first-text-color);
  border-color: currentColor;
}

.slide-post-page .toc-content-container,
body.slide-post-page .page-aside-toggle {
  display: none !important;
}

.slide-post-page .article-content-container {
  width: 100% !important;
}

.home-article-content .slide-post-player,
.home-article-content .slide-post-actions,
.home-article-content .hexo-reveal-embed,
.home-article-content iframe {
  display: none !important;
}

@media (max-width: 640px) {
  .slide-post-preview {
    padding: 0.75rem 0.8rem;
  }

  .home-slide-badge,
  .archive-slide-badge {
    margin-inline-start: 0;
    margin-top: 0.35rem;
  }

  .archive-slide-badge {
    margin-inline-end: 0.5rem;
  }

  .slide-post-actions {
    justify-content: flex-start;
  }

  .reveal-fullscreen-button {
    top: 0.45rem;
    right: 0.45rem;
    width: 2.45rem;
    height: 2.45rem;
  }
}
