/* 全站广告位、Cookie 同意条与激励视频占位层的共享样式 */

/* ---------------------------------------------------------------- 广告位 */
.ad-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 728px;
  margin: 0 auto;
  min-height: 90px;
  border: 1px dashed rgba(120, 170, 255, 0.22);
  border-radius: 10px;
  background: rgba(10, 17, 30, 0.55);
  color: rgba(143, 163, 199, 0.55);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  overflow: hidden;
}

.ad-slot > span {
  pointer-events: none;
}

/* 广告脚本成功填充后去掉占位边框 */
.ad-slot.is-filled {
  border-style: solid;
  min-height: 0;
}

.ad-rectangle {
  max-width: 336px;
  min-height: 280px;
}

@media (max-width: 720px) {
  .ad-slot {
    min-height: 60px;
  }
  .ad-rectangle {
    min-height: 250px;
  }
}

/* ---------------------------------------------------------------- Cookie 同意条 */
.cc-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 9999;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  max-width: 960px;
  margin: 0 auto;
  padding: 14px 18px;
  border: 1px solid rgba(103, 232, 249, 0.3);
  border-radius: 12px;
  background: rgba(6, 10, 18, 0.96);
  color: #dbe7ff;
  font-size: 13px;
  line-height: 1.5;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6);
}

.cc-banner p {
  flex: 1 1 320px;
  margin: 0;
}

.cc-banner a {
  color: #7dd3fc;
}

.cc-banner .cc-actions {
  display: flex;
  gap: 8px;
}

.cc-banner button {
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 9px;
  border: 1px solid rgba(120, 170, 255, 0.35);
  background: rgba(120, 170, 255, 0.1);
  color: #dbe7ff;
}

.cc-banner button.cc-accept {
  border-color: rgba(103, 232, 249, 0.6);
  background: rgba(103, 232, 249, 0.18);
}

/* ---------------------------------------------------------------- 激励视频占位层 */
.ad-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(3, 6, 12, 0.86);
  backdrop-filter: blur(4px);
}

.ad-modal[hidden] {
  display: none;
}

.ad-modal .ad-card {
  width: min(420px, 100%);
  padding: 26px 24px;
  border: 1px solid rgba(255, 209, 102, 0.45);
  border-radius: 14px;
  background: rgba(10, 17, 30, 0.98);
  text-align: center;
  color: #dbe7ff;
}

.ad-modal h3 {
  margin: 0 0 8px;
  font-size: 16px;
  letter-spacing: 0.08em;
  color: #ffe6a7;
}

.ad-modal p {
  margin: 0 0 14px;
  font-size: 12px;
  color: #8fa3c7;
}

.ad-modal .ad-count {
  font-size: 26px;
  font-weight: 800;
  color: #ffd166;
  font-variant-numeric: tabular-nums;
}

.ad-modal button {
  margin-top: 14px;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  padding: 7px 14px;
  border-radius: 9px;
  border: 1px solid rgba(120, 170, 255, 0.3);
  background: transparent;
  color: #8fa3c7;
}
