.global-ad-tracker {
  display: none;
  width: 1px;
  height: 1px;
}

.global-side-ads {
  position: fixed;
  top: 120px;
  z-index: 999;
  display: none;
  flex-direction: column;
  gap: 12px;
}

.global-side-ads--left {
  left: max(16px, calc(50% - 760px));
}

.global-side-ads--right {
  right: max(16px, calc(50% - 760px));
}

.global-ad-card {
  position: relative;
  width: 180px;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 12, 16, 0.94);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
}

.global-ad-card__title {
  margin-bottom: 8px;
  padding-right: 28px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.global-ad-card__close,
.global-popup-card__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 14px;
  line-height: 24px;
  cursor: pointer;
}

.global-ad-card__body img,
.global-popup-card__body img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.ad-image-link,
.ad-video-link {
  display: block;
}

.ad-video-link {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #000;
}

.ad-video-player {
  display: block;
  width: 100%;
  height: auto;
  background: #000;
}

.ad-video-mask {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.72));
}

.ad-video-title {
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.ad-video-cta,
.vod-preroll__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #857dff, #ff17c8);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.global-popup-stack {
  position: fixed;
  top: 110px;
  left: 50%;
  z-index: 1200;
  width: 100%;
  pointer-events: none;
}

.global-popup-card {
  position: absolute;
  left: 50%;
  width: min(90vw, 340px);
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(10, 10, 14, 0.96);
  box-shadow: 0 24px 42px rgba(0, 0, 0, 0.4);
  transform: translate(calc(-50% + (var(--popup-index, 0) * 18px)), calc(var(--popup-index, 0) * 18px));
  pointer-events: auto;
}

.global-popup-card__title {
  margin-bottom: 10px;
  padding-right: 30px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.vod-player-stage {
  position: relative;
  overflow: hidden;
}

.vod-preroll {
  position: absolute;
  inset: 0;
  z-index: 9;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  background: rgba(0, 0, 0, 0.9);
}

.vod-preroll__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.vod-preroll__count {
  color: #ffd46b;
}

.vod-preroll__progress {
  width: 100%;
  height: 6px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.vod-preroll__progress-bar {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #857dff, #ff17c8);
}

.vod-preroll__body {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 18px 0 14px;
  overflow: hidden;
  border-radius: 16px;
  background: #000;
}

.vod-preroll__body video,
.vod-preroll__body img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vod-preroll__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.vod-preroll__tips {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  line-height: 1.5;
}

@media (min-width: 1200px) {
  .global-side-ads {
    display: flex;
  }
}

@media (max-width: 768px) {
  .global-popup-stack {
    top: 72px;
  }

  .global-popup-card {
    width: min(92vw, 320px);
  }

  .vod-preroll {
    padding: 12px;
  }
}
