/* Drama page ops (sk-ops-front.php) — play ad overlay, free-episode dialog / placeholder.
 * Colours: --sk-ops-* (themes map them to their palette); defaults = neutral dark card, light text. */

/* —— overlays (fixed; mounted in the fullscreen element when there is one) —— */
.sk-op-mask {
  position: fixed;
  inset: 0;
  z-index: 998; /* under the age gate (1000) and the 下载APP float (999, 「层级最高」) */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, .78);
}
.sk-op-box {
  position: relative;
  width: min(360px, 100%);
  padding: 32px 24px 24px;
  border-radius: var(--sk-ops-radius, 12px);
  background: var(--sk-ops-bg, #14141a);
  color: var(--sk-ops-fg, #f4f4f6);
  text-align: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .45);
}
.sk-op-x {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 36px;
  height: 36px;
  border: 0;
  background: none;
  color: var(--sk-ops-muted, #9a9aa8);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.sk-op-pw-t { margin: 0 0 18px; font-size: 18px; font-weight: 600; line-height: 1.4; }
.sk-op-btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--sk-ops-accent, #e24b5a);
  color: var(--sk-ops-accent-fg, #fff);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.sk-op-btn:hover { filter: brightness(.9); }

/* locked episode: covers the player (above big play / controls) */
.sk-op-locked {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, .82);
  color: #fff;
  text-align: center;
}
.sk-op-locked .sk-op-pw-t { margin-bottom: 14px; font-size: 16px; }

/* play ad */
.sk-op-ad-box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: min(720px, 100%);
}
.sk-op-ad-a { display: block; }
.sk-op-ad-img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 140px);
  max-height: calc(100dvh - 140px);
  border-radius: 8px;
  object-fit: contain;
}
.sk-op-ad-lab {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, .6);
  color: #fff;
  font-size: 12px;
  line-height: 18px;
}
.sk-op-ad-x {
  min-width: 120px;
  padding: 8px 18px;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 999px;
  background: rgba(0, 0, 0, .4);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}
.sk-op-ad-x:disabled { opacity: .7; cursor: default; }

@media (max-width: 767px) {
  .sk-op-box { padding: 28px 18px 20px; }
}
