/*
 * Ad placement previews only. No ad network code is loaded by this stylesheet.
 * For production, replace each preview with the provider's responsive unit and
 * collapse its wrapper on no-fill; do not leave empty ad-shaped gaps.
 */
.ad-slot[hidden] {
  display: none !important;
}

.ad-slot:not([hidden]) {
  width: min(calc(100% - 40px), 1096px);
  margin: 30px auto;
  color: #a2a5b8;
  font: 11px/1.45 var(--sans, "DM Sans", sans-serif);
}

.ad-slot-banner:not([hidden]) {
  min-height: 90px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px dashed rgba(198, 183, 255, .34);
  border-radius: 14px;
  background: rgba(23, 27, 52, .38);
}

.ad-slot-native:not([hidden]),
.ad-slot-multiplex:not([hidden]) {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 18px;
  background: rgba(17, 21, 42, .72);
}

.ad-disclosure {
  display: block;
  width: fit-content;
  margin-bottom: 10px;
  color: #a2a5b8;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ad-slot-content {
  min-width: 0;
}

.ad-placeholder {
  width: 100%;
  min-height: 86px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-align: center;
  border: 1px dashed rgba(198, 183, 255, .28);
  border-radius: 12px;
  background: rgba(10, 13, 28, .22);
}

.ad-placeholder strong {
  color: #c8c3df;
  font-size: 12px;
  font-weight: 500;
}

.ad-placeholder small {
  color: #85899f;
  font-size: 10px;
  overflow-wrap: anywhere;
}

.anchor-ad-slot:not([hidden]) {
  display: flex;
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  width: min(970px, calc(100% - 32px));
  min-height: 78px;
  padding: 8px 52px 8px 14px;
  align-items: center;
  border: 1px solid rgba(198, 183, 255, .48);
  border-radius: 16px;
  background: rgba(20, 22, 45, .96);
  box-shadow: 0 8px 34px rgba(0, 0, 0, .38);
  backdrop-filter: blur(18px);
  color: #a2a5b8;
  font: 11px/1.4 var(--sans, "DM Sans", sans-serif);
}

.anchor-ad-copy {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 10px;
  text-align: center;
}

.anchor-ad-copy .ad-disclosure {
  margin: 0;
}

.anchor-ad-copy strong {
  color: #c8c3df;
  font-size: 11px;
  font-weight: 500;
}

.anchor-ad-copy small {
  color: #85899f;
  font-size: 10px;
}

.anchor-ad-close {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  color: #e6e1f0;
  font: 20px/1 var(--sans, "DM Sans", sans-serif);
  cursor: pointer;
}

.anchor-ad-close:hover,
.anchor-ad-close:focus-visible {
  border-color: #c7b7ff;
  outline: none;
}

body.has-anchor-ad {
  padding-bottom: 118px;
}

.ad-slot-banner .ad-placeholder {
  min-height: 74px;
  border: 0;
  background: transparent;
}

.ad-slot .ad-disclosure {
  margin: 0 0 2px;
}

.page .ad-slot:not([hidden]) {
  width: 100%;
  max-width: 100%;
  margin: 28px 0;
}

.page > .ad-slot-top:not([hidden]) {
  margin: 14px 0 0;
}

.page > .ad-slot-top + main > .detail-hero {
  padding-top: 30px;
}

@media (max-width: 700px) {
  .ad-slot:not([hidden]) {
    width: calc(100% - 32px);
    margin-block: 24px;
  }

  .ad-slot-banner:not([hidden]) {
    min-height: 100px;
  }

  .ad-placeholder {
    padding-inline: 10px;
  }

}

@media (max-width: 760px) {
  body.has-anchor-ad {
    padding-bottom: 112px;
  }

  .anchor-ad-slot:not([hidden]) {
    display: flex;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    width: calc(100% - 16px);
    min-height: 72px;
    padding: 9px 48px 9px 9px;
    border-radius: 13px;
  }

  .anchor-ad-copy {
    flex-direction: column;
    gap: 1px;
  }

  .anchor-ad-copy .ad-disclosure,
  .anchor-ad-copy small {
    font-size: 9px;
  }
}
