/* The Saint (1997) - modern-Chrome compatibility layer.
   Scoped, non-invasive styles. Everything is prefixed .saint-*
   so it cannot alter the original 1997 page styling. */

.saint-lb-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2147483000;
  opacity: 0;
  pointer-events: none; /* when closed, must not intercept page clicks */
  transition: opacity 0.15s ease;
}
.saint-lb-overlay.saint-lb-open { opacity: 1; pointer-events: auto; }

.saint-lb-frame {
  position: relative;
  background: #000;
  border: 2px solid #fcf8ff;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.7);
  max-width: 96vw;
  max-height: 92vh;
  box-sizing: content-box;
}
.saint-lb-frame iframe,
.saint-lb-frame img {
  display: block;
  border: 0;
  max-width: 96vw;
  max-height: 88vh;
}

.saint-lb-close {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid #fcf8ff;
  background: #dd0404;
  color: #fff;
  font: bold 20px/30px Arial, sans-serif;
  text-align: center;
  cursor: pointer;
  padding: 0;
  z-index: 1;
}
.saint-lb-close:hover { background: #ff2020; }

.saint-lb-frame.saint-lb-video { background: #000; padding: 0; }
.saint-vid-holder { max-width: 92vw; }
.saint-vid-note {
  color: #fcf8ff;
  font: 13px/1.5 Arial, sans-serif;
  padding: 10px 14px;
  background: #111;
  width: var(--saint-vid-w, min(92vw, 800px));
  box-sizing: border-box;
}
.saint-vid-note a { color: #ff6b6b; }
.saint-vid-note-err { background: #3a0d0d; }
.saint-vid-unplayable {
  color: #fcf8ff;
  background: #1a1a1a;
  font: 15px/1.5 Arial, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  width: var(--saint-vid-w, min(92vw, 800px));
  aspect-ratio: var(--saint-vid-ratio, 240 / 140);
  max-height: 84vh;
  box-sizing: border-box;
}

/* Faithful placeholder for original Shockwave (Adobe Director) content
   that cannot run in modern browsers. Occupies the exact original box so
   the surrounding table / image-map layout is preserved pixel-for-pixel. */
.saint-shockwave {
  display: inline-block;
  vertical-align: bottom;
  box-sizing: border-box;
  background:
    repeating-linear-gradient(45deg, #14102f 0 12px, #0e082f 12px 24px);
  border: 1px solid #2a2360;
  color: #ccff33;
  font: 12px/1.4 "Courier New", monospace;
  text-align: center;
  overflow: hidden;
  position: relative;
}
.saint-shockwave .saint-sw-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  padding: 6px;
}
.saint-shockwave .saint-sw-badge {
  font-weight: bold;
  letter-spacing: 1px;
  color: #ff3300;
  display: block;
  margin-bottom: 6px;
}
.saint-shockwave .saint-sw-sub { color: #746d61; }
