/* MacCMS default ad blocks inside juduoduo layout */
.jdd-ad-slot .pannel.ads_all,
.jdd-ad-slot .ads_all {
  margin: 0;
}

.jdd-ad-slot .ads img {
  border-radius: var(--jdd-radius);
}

#bottom_ads.hl_bottom_ads,
.jdd-ad-slot--sticky-bottom #bottom_ads {
  background: var(--jdd-bg-elevated);
  border-top: 1px solid var(--jdd-border);
}

#bottom_ads .close_ads_btn,
.hl_ads_double .close_ads_lbtn,
.hl_ads_double .close_ads_rbtn {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 2;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border-radius: 50%;
  text-decoration: none;
}

.jdd-ad-slot .ads_icon1_grid {
  max-width: none !important;
  margin: 0 !important;
}

.jdd-ad-slot .ads_icon1-marquee {
  margin-block: 8px;
}

.jdd-ad-native-card {
  position: relative;
}

.jdd-ad-native-card::after {
  content: "广告";
  position: absolute;
  top: 6px;
  left: 6px;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(11, 18, 32, 0.75);
  color: var(--jdd-accent);
  border: 1px solid rgba(78, 205, 196, 0.35);
}

/* Play page reserved units — desktop cinema only */
.jdd-play-ad {
  position: relative;
  overflow: hidden;
  color: var(--jdd-text);
  border: 1px dashed color-mix(in srgb, var(--jdd-accent) 45%, transparent);
  background:
    repeating-linear-gradient(
      -32deg,
      rgba(52, 211, 153, 0.05) 0 10px,
      rgba(255, 255, 255, 0.02) 10px 20px
    ),
    color-mix(in srgb, var(--jdd-bg-card) 88%, transparent);
}

.jdd-play-ad[hidden] {
  display: none !important;
}

.jdd-play-ad__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid color-mix(in srgb, var(--jdd-accent) 40%, transparent);
  background: rgba(8, 9, 10, 0.78);
  color: var(--jdd-accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.jdd-play-ad__close {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.jdd-play-ad__copy {
  position: relative;
  z-index: 1;
}

.jdd-play-ad__copy strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
}

.jdd-play-ad__copy p {
  margin: 4px 0 0;
  color: var(--jdd-muted);
  font-size: 11px;
  font-weight: 600;
}

.jdd-play-ad--player {
  position: absolute;
  z-index: 40;
  right: 14px;
  bottom: 72px;
  width: min(240px, calc(100% - 28px));
  min-height: 132px;
  padding: 28px 12px 12px;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.38);
}

.jdd-play-ad--player .jdd-play-ad__art {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 18%, rgba(52, 211, 153, 0.28), transparent 38%),
    linear-gradient(180deg, rgba(19, 86, 106, 0.35), transparent 62%);
  pointer-events: none;
}

.jdd-play-ad--side {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 10px;
  align-items: center;
  margin: 12px 0 4px;
  padding: 10px;
  border-radius: 10px;
}

.jdd-play-ad--side .jdd-play-ad__thumb {
  width: 88px;
  height: 56px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 30% 30%, rgba(52, 211, 153, 0.4), transparent 55%),
    linear-gradient(135deg, #13566a, #0b3a4a);
}

.jdd-play-ad--side .jdd-play-ad__copy {
  padding-right: 4px;
}

html.jdd-tv .jdd-play-ad {
  display: none !important;
}

@media (max-width: 1199px) {
  .jdd-play-ad {
    display: none !important;
  }
}
