.video-swap-page {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 6px 30px;
  color: #f4f4f4;
}

.video-swap-page .section-title-row {
  margin-right: 5px;
  margin-left: 5px;
}

.video-swap-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  padding: 4px 6px 13px;
}

.video-swap-heading h2 {
  margin: 0;
  color: #e8e8e8;
  font-size: 15px;
  font-weight: 500;
}

.video-swap-heading a {
  color: var(--orange);
  font-size: 14px;
  text-decoration: none;
}

.video-template-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 10px;
}

.video-template-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  color: inherit;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.video-cover {
  position: relative;
  width: 100%;
  display: block;
  overflow: hidden;
  background: #141414;
  border: 1px solid rgba(255, 255, 255, .055);
  border-radius: 8px;
  aspect-ratio: 3 / 4;
  transform: translateZ(0);
  transition: border-color .22s ease, transform .22s ease, box-shadow .22s ease;
}

.video-cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .4s ease, filter .4s ease;
}

.video-template-card:hover .video-cover {
  border-color: rgba(255, 139, 19, .5);
  box-shadow: 0 13px 30px rgba(0, 0, 0, .34);
  transform: translateY(-2px);
}

.video-template-card:hover .video-cover img {
  transform: scale(1.025);
}

.video-play {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: rgba(30, 30, 30, .77);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 50%;
  box-shadow: 0 5px 18px rgba(0, 0, 0, .32);
  transform: translate(-50%, -50%);
  backdrop-filter: blur(2px);
}

.video-play::after {
  width: 0;
  height: 0;
  margin-left: 3px;
  content: "";
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid #ff9e20;
}

.video-coin {
  position: absolute;
  z-index: 3;
  top: 7px;
  left: 0;
  padding: 4px 6px;
  color: #fff;
  font-size: 10px;
  line-height: 1;
  background: linear-gradient(90deg, #ff3131, #f79004);
  border-radius: 0 4px 4px 0;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, .22);
}

.video-template-name {
  max-width: 100%;
  overflow: hidden;
  color: #959595;
  font-size: 14px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-empty {
  grid-column: 1 / -1;
  padding: 70px 16px;
  color: #777;
  text-align: center;
}

.video-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 24px 0 0;
}

.video-pagination button {
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  color: #999;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 5px;
}

.video-pagination button.active {
  color: var(--orange);
  border-color: var(--orange);
}

.video-pagination button:disabled {
  opacity: .35;
}

.video-toast {
  position: fixed;
  z-index: 120;
  left: 50%;
  bottom: 28px;
  max-width: calc(100vw - 28px);
  padding: 10px 16px;
  color: #fff;
  font-size: 13px;
  visibility: hidden;
  background: #202020;
  border: 1px solid #383838;
  border-radius: 999px;
  opacity: 0;
  transform: translate(-50%, 10px);
  transition: .2s ease;
}

.video-toast.show {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (min-width: 768px) {
  .video-swap-page {
    padding-right: 12px;
    padding-left: 12px;
  }

  .video-swap-heading h2 {
    font-size: 18px;
  }

  .video-swap-heading a {
    font-size: 15px;
  }

  .video-template-grid {
    gap: 24px 14px;
  }

  .video-play {
    width: 58px;
    height: 58px;
  }

  .video-template-name {
    font-size: 15px;
  }
}
