body.post-type-archive-shorts {
  background: #000;
}

#topbar,
.btp_mobile_app_btn {
  display: none;
}

/* The Shorts nav pills */
.nav-pills .nav-link {
  border: 2px solid #ff00ff;
}
.nav-pills .nav-link.active {
  background-color: #ff00ff;
}

/* The Shorts sliding behavior */
.btp_archive {
  height: calc( 100dvh - 60px - 76px ); /* TODO: iOS<15.4 */
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scrollbar-width: none; /* Hides scrollbar in Firefox */
}
.btp_archive::-webkit-scrollbar {
  width: 0;
  height: 0;
}
.bt_shorts {
  display: flex;
  align-items: center;
  justify-content: center;
  height: calc( 100dvh - 60px - 76px ); /* TODO: iOS<15.4 */
  margin: 0 auto;
  max-width: 100%;
  position: relative;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.bt_shorts .freedomplayer {
  margin-bottom: 0;
}

/* Betube uses !important rule to make sure splash images always cover the player, we need to override that here */
.bt_shorts .freedomplayer .fp-splash,
.bt_shorts .freedomplayer .fp-player .fp-splash {
  object-fit: contain !important;
}

.bt_shorts-vv-overlay, .bt_shorts-vv-overlay * {
  box-sizing: border-box;
}

.bt_shorts-vv-side {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 24px;
  z-index: 3000;
}
.btp_like,
.bt_shorts-vv-views {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #ff00cc;
  background: rgba(0, 0, 0, .35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff00cc;
}
.btp_like::before,
.bt_shorts-vv-views::before {
  content: "";
  width: 22px; height: 22px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 22px 22px;
}
.btp_like::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff00cc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M20.8 4.6a5.5 5.5 0 0 0-7.8 0L12 5.6l-1-1a5.5 5.5 0 0 0-7.8 7.8l1 1L12 21l7.8-7.6 1-1a5.5 5.5 0 0 0 0-7.8z'/></svg>");
}
.btp_like.liked::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ff00cc'><path d='M12 21s-6.716-4.73-9.192-7.206a6.5 6.5 0 1 1 9.192-9.192 6.5 6.5 0 1 1 9.192 9.192C18.716 16.27 12 21 12 21z'/></svg>");
}
.bt_shorts-vv-views::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff00cc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M1 12s4-7 11-7 11 7 11 7-4 7-11 7S1 12 1 12z'/><circle cx='12' cy='12' r='3'/></svg>");
}
.btp-count,
.bt_shorts-vv-views-count {
  position: absolute;
  bottom: -17px;
  font-size: 11px;
  line-height: 1;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
}
.btp-count {
  margin: 0 !important;
}
.btp_like i {
  display: none;
}

.bt_shorts-vv-overlay {
  position: absolute;
  bottom: calc(53px + env(safe-area-inset-bottom));
  max-width: 420px;
  width: 100vw; 
  color: #fff;
  padding: 10px 12px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.55) 40%, rgba(0,0,0,.75) 100%);
  border-radius: 12px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  box-sizing: border-box;
}

.bt_shorts-vv-author {
  display: flex;
  align-items: center;
  gap: .5em;
}

.bt_shorts-vv-date {
  font-size: 14px;
  display: block;
  line-height: 14px;
  height: 44px;
  padding-top: 14px;
}

.bt_shorts-vv-author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #fff;
  flex-shrink: 0;
  object-fit: cover;
}

.bt_shorts-vv-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .25em;
  margin-top: .5em;
}
.bt_shorts-vv-tags a {
  border: 2px solid #ff00ff;
  border-radius: 2em;
  font-size: .75em;
  padding: .4em .7em;
  white-space: nowrap;
}
.bt_shorts-vv-tags a:hover {
  background: #ff00ff;
  color: #fff;
  text-decoration: none;
}
.bt_shorts-vv-tags a.hidden-tag {
  display: none;
}
.bt_shorts-vv-tags.show-all a {
  display: inline-block;
}

/* TODO: Fix this in JS to not show errors if we cancel video loading */
.freedomplayer .fp-message.fp-shown {
  display: none !important;
}
.is-error.flowplayer .fp-player:before {
  background: transparent !important;
}

@media (min-width: 1200px) {
  .btp_archive {
    height: calc( 100dvh - 72px - 76px ); /* TODO: iOS<15.4 */
  }
  .bt_shorts {
    height: calc( 100dvh - 72px - 76px ); /* TODO: iOS<15.4 */
  }
}