/*!
 * 黄果短剧 · 贴片广告层样式（H5）
 * 任务 514 / 版本标记 t514-1
 *
 * 为什么是独立文件而不是 ad-gate.js 里注入 <style>：
 * 线上 CSP 是 style-src 'self'（任务 400 收紧的），脚本创建的 <style> 会被直接拒绝，
 * 广告层的 position/z-index 全部失效 —— DOM 退化成文档流末尾的裸元素，#app 是 fixed
 * 全屏层把它盖住，用户就只听到声音、看不到画面。样式只能走同源外部表。
 *
 * 尺寸不写 inset 简写：老内核（部分 Android WebView）不认 inset，写了等于没写；
 * 这里四边 + width/height 都显式给足，任何一届内核都能铺满视口。
 */
.drama-ad-gate {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}
.drama-ad-gate * { box-sizing: border-box; }
.drama-ad-stage {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000;
  overflow: hidden;
}
.drama-ad-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}
.drama-ad-head {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  background: linear-gradient(180deg, rgba(0, 0, 0, .65), rgba(0, 0, 0, 0));
  pointer-events: none;
}
.drama-ad-badge {
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, .65);
  color: #e8e2cf;
  font-size: 11px;
  letter-spacing: 2px;
}
.drama-ad-count {
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .65);
  color: #ffd21f;
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.drama-ad-count small {
  font-size: 10px;
  font-weight: 500;
  color: #c8b273;
  margin-left: 2px;
}
.drama-ad-foot {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 46px 14px 18px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .82) 62%);
}
.drama-ad-copy { min-width: 0; color: #f2eee1; }
.drama-ad-copy strong {
  display: block;
  font-size: 15px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.drama-ad-copy p {
  margin: 5px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: #b9bfae;
  max-width: 46ch;
}
.drama-ad-actions {
  display: flex;
  flex: none;
  align-items: center;
  gap: 8px;
}
.drama-ad-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, .26);
  background: rgba(255, 255, 255, .08);
  color: #f2eee1;
  font-size: 13px;
  line-height: 1;
  padding: 11px 16px;
  border-radius: 8px;
  cursor: pointer;
}
.drama-ad-btn.primary {
  background: #ffd21f;
  border-color: #ffd21f;
  color: #12140f;
  font-weight: 600;
}
.drama-ad-btn:active { opacity: .82; }
.drama-ad-note {
  color: #a9b19a;
  font-size: 12px;
  white-space: nowrap;
}
.drama-ad-track {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, .16);
}
.drama-ad-track i {
  display: block;
  height: 100%;
  width: 0;
  background: #ffd21f;
  transition: width .25s linear;
}
.drama-ad-veil {
  position: absolute;
  z-index: 5;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
  background: rgba(4, 6, 4, .86);
}
.drama-ad-veil p {
  margin: 0;
  color: #b7c0ab;
  font-size: 13px;
  line-height: 1.7;
  max-width: 34ch;
}
.drama-ad-veil .drama-ad-btn {
  min-height: 46px;
  padding: 14px 26px;
  font-size: 15px;
}
