/* Unified ad-slot + video interstitial styles ============================ */

.ad-slot {
  margin: 32px auto;
  max-width: 970px;
  text-align: center;
  background: var(--bg-2, #f6f7fb);
  border: 1px dashed var(--line, #d8dbe6);
  border-radius: 14px;
  padding: 14px;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.ad-slot[data-ad="rectangle"] { max-width: 336px; min-height: 280px; }
.ad-slot[data-ad="sidebar"]   { max-width: 320px; min-height: 600px; }
.ad-slot[data-ad="banner"]    { max-width: 500px; min-height: 80px;  }

.ad-slot::before {
  content: 'Advertisement';
  position: absolute;
  font-family: var(--font-mono, monospace);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted, #8a90a6);
  transform: translateY(-30px);
  pointer-events: none;
  opacity: 0.6;
}
.ad-slot[data-ad-filled="1"]::before { display: none; }

/* Video interstitial ===================================================== */

.cm-video-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 10, 25, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  display: grid;
  place-items: center;
  padding: 16px;
  animation: cm-fade 0.18s ease-out;
}
@keyframes cm-fade { from { opacity: 0; } to { opacity: 1; } }

body.cm-video-locked { overflow: hidden; }

.cm-video-card {
  width: 100%;
  max-width: 720px;
  background: #0E1330;
  color: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cm-video-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
}

.cm-video-skip {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s, opacity 0.15s;
}
.cm-video-skip[disabled] { opacity: 0.55; cursor: not-allowed; }
.cm-video-skip:not([disabled]):hover {
  background: #1E7FE8;
  border-color: #1E7FE8;
}

.cm-video-frame {
  aspect-ratio: 16 / 9;
  background: #000;
  display: grid;
  place-items: center;
}
.cm-video-frame > * { width: 100%; height: 100%; }

@media (max-width: 540px) {
  .cm-video-card { max-width: 100%; border-radius: 14px; }
  .cm-video-head { padding: 10px 12px; font-size: 0.78rem; }
}
