/* matching popup affiliate banner styles */
#mppap-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 99999;
  background: rgba(20, 20, 30, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: mppap-fade 0.18s ease-out;
}
@keyframes mppap-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
#mppap-card {
  position: relative;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
  padding: 18px 18px 16px;
  max-width: 360px;
  width: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic UI", "Meiryo", sans-serif;
  animation: mppap-pop 0.22s cubic-bezier(.2,.8,.4,1.1);
}
@keyframes mppap-pop {
  from { transform: scale(0.92); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}
#mppap-close {
  position: absolute;
  top: 6px; right: 8px;
  width: 32px; height: 32px;
  border: 0; background: transparent;
  font-size: 22px; line-height: 1;
  color: #888;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.12s;
}
#mppap-close:hover { background: rgba(0,0,0,0.06); color: #333; }
#mppap-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 0 24px 12px 0;
}
#mppap-lead {
  font-size: 13px;
  color: #444;
  font-weight: 500;
}
#mppap-pr {
  font-size: 11px;
  color: #999;
  margin-left: 8px;
  flex-shrink: 0;
}
#mppap-link {
  display: block;
  text-decoration: none;
  text-align: center;
}
#mppap-img {
  display: inline-block;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.15s;
}
#mppap-img:hover { transform: scale(1.02); }

@media (max-width: 420px) {
  #mppap-card { padding: 14px 14px 12px; }
  #mppap-lead { font-size: 12px; }
}
