/* v4.7 Genesis & Exodus films only; preserve v4.6.1 mobile safety fixes */
.v47-overlay .v47-heading{margin:0 0 14px;padding:4px 4px 0;color:#f5f2e9}.v47-heading h1{font-family:Georgia,"Noto Serif KR",serif;font-size:clamp(23px,4vw,36px);margin:7px 0 5px;line-height:1.3}.v47-heading p{font-size:12px;color:#b9cbd7;margin:0;line-height:1.5}.v47-overlay .v4-track{grid-template-columns:repeat(3,minmax(0,1fr))}.v47-overlay .v4-track button{min-width:0;overflow:hidden}.v47-overlay .v4-track img{aspect-ratio:16/7;object-fit:cover}.v47-overlay .v4-action{margin-top:10px}.v47-overlay .v4-fineprint{max-width:100%;overflow-wrap:break-word}
.v45-cover.v45-creation .v45-cover-photo{background-image:url('./media/genesis-poster.jpg');background-size:cover;background-position:57% 50%}
.v45-cover.v47-exodus .v45-cover-photo{background-image:url('./media/exodus-poster.jpg');background-size:cover;background-position:53% 40%}
.v45-cover.v47-exodus .v45-cover-wash{background:linear-gradient(90deg,rgba(6,17,29,.89),rgba(8,21,34,.39) 70%,rgba(8,21,34,.32))}
.mb-catalog-exodus .mb-catalog-img{background:linear-gradient(90deg,#071a26aa,#102b33bb),url('./media/exodus-poster.jpg') center/cover}
.mb-catalog-genesis .mb-catalog-img{background:linear-gradient(90deg,#071a26aa,#172b35aa),url('./media/genesis-poster.jpg') center/cover}
.v47-overlay{box-sizing:border-box;overflow-x:hidden;max-width:100%;width:100%}.v47-overlay .v4-main,.v47-overlay .v4-layout,.v47-overlay .v4-player{min-width:0;max-width:100%}
@media(max-width:900px){.v47-overlay .v4-track{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.v47-overlay .v4-video-wrap{min-height:0!important;aspect-ratio:16/9;height:auto}.v47-overlay .v4-track img{aspect-ratio:2.1}.v47-overlay .v47-heading h1{font-size:25px}.v47-overlay .v4-shell{padding-top:max(10px,env(safe-area-inset-top))}}
/* Keep tap targets in place as playback and narration labels change. */
@media(max-width:650px) {
  .v4-overlay .v4-panel .v4-ctrl {
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:6px;
  }
  .v4-overlay .v4-panel .v4-control {
    box-sizing:border-box;
    width:100%;
    min-width:0;
    min-height:44px;
    padding:4px 2px;
    line-height:1.15;
    white-space:normal;
    touch-action:manipulation;
  }
  .v4-overlay .v4-ctrl .v4-time {grid-row:3;grid-column:1/-1;margin:0;text-align:right}
  .v4-overlay .v4-ctrl .v4-switch {box-sizing:border-box;grid-column:2/4;grid-row:2;width:100%;margin:0}
  .v4-overlay .v4-switch button {flex:1;min-height:44px;padding:4px}
  .v4-overlay .v4-panel [aria-pressed].v4-control {grid-row:2;grid-column:1}
  .v4-overlay .v4-ctrl button[data-v4=fullscreen],
  .v4-overlay .v4-ctrl button[data-v47=fullscreen] {grid-row:2;grid-column:4}
}

.ot-guide{margin:12px 0;border:1px solid #506571;border-radius:12px;background:#142936;color:#f4eee3;padding:0 15px}.ot-guide summary{cursor:pointer;padding:15px 0;color:#efd5a4;font-weight:700}.ot-body{padding:2px 0 16px}.ot-body p{margin:14px 0;font-size:1.08rem;line-height:1.6}.ot-guide select,.ot-guide button{font:inherit;background:#203b4c;color:#fff;border:1px solid #637b86;border-radius:7px;padding:8px;min-height:42px}.ot-stops,.ot-read{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.ot-read{margin-top:14px}.ot-guide button{cursor:pointer}

.ot-lesson{margin:12px 0;padding:12px 16px;border:1px solid #48616c;border-radius:12px;background:#192f3a;color:#fff}.ot-lesson summary{cursor:pointer;padding:4px 0;font-weight:700}.ot-lesson small{display:block;margin-top:16px;color:#efd5a4}.ot-lesson h3{margin:.4em 0}.ot-lesson fieldset{min-width:0;border:0;margin:0;padding:0}.ot-lesson button{display:block;width:100%;margin:.6em 0;text-align:left;padding:12px;border:1px solid #72909c;border-radius:7px;background:#233e4c;color:white;font:inherit;cursor:pointer}

.jer-demo{width:100%;box-sizing:border-box;min-height:144px;display:flex;align-items:center;justify-content:space-between;text-align:left;gap:14px;margin:14px 0;padding:20px 24px;color:#fff8e8;border:1px solid #80684d;border-radius:12px;background:linear-gradient(90deg,#19191aee,#18181a88 63%,#16161833),url('./media/jerusalem-poster.jpg') center 54%/cover;cursor:pointer}.jer-demo small,.jer-demo strong,.jer-demo em{display:block}.jer-demo small{color:#f2d7a9;letter-spacing:.07em}.jer-demo strong{font:600 clamp(23px,4.7vw,35px)/1.35 Georgia,serif;margin:8px 0 4px}.jer-demo em{font-style:normal;font-size:14px}.jer-demo b{border:1px solid #f1d2a5;border-radius:100%;padding:11px 13px}.jer-hero .v45-cover-photo,.mb-catalog-jerusalem .mb-catalog-img{background:url('./media/jerusalem-poster.jpg') center/cover}

.ot-guide select{max-width:100%;min-width:0}.ot-read label{min-width:0;max-width:100%}.ot-review{margin:14px 0}.ot-journey{display:flex;gap:10px}.ot-journey button{text-align:center}.ot-lesson legend{padding-top:6px}

.v47-heading .v47-passage {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem .8rem;
  min-height: 44px;
  max-width: 100%;
  margin-top: .55rem;
  padding: .5rem .85rem;
  border: 1px solid #ad905e;
  border-radius: .55rem;
  background: #292319;
  color: #fff3d3;
  font: inherit;
  cursor: pointer;
}
.v47-heading .v47-passage:focus-visible { outline: 2px solid #fff3d3; outline-offset: 3px; }
#v47-passage-action { color: #e7cc95; font-size: .875em; }
.mb-cinematic-poster { overflow: hidden; }
.mb-cinematic-poster img { width: 100%; height: 100%; display: block; object-fit: cover; }
.v47-overlay [hidden] { display: none !important; }

.v47-overlay .v4-topline .v47-library { margin-inline-start: auto; }
.v47-overlay .v4-topline { gap: .45rem; }
@media (max-width: 430px) {
  .v47-overlay .v4-topline .v4-exit { padding-inline: .55rem; white-space: nowrap; }
}

.v4-overlay .v4-player .v4-caption-strip {
  position: static;
  inset: auto;
  transform: none;
  width: auto;
  max-width: none;
  min-height: 3.75em;
  padding: .65rem 1rem;
  margin: 0;
  display: grid;
  place-items: center;
  border-radius: 0;
  background: #111c24;
  color: #faf5e9;
  font-size: clamp(.875rem, 2.8vw, 1.05rem);
  line-height: 1.45;
  text-align: center;
  text-shadow: none;
}
.v4-overlay .v4-player .v4-caption-strip.hidden { display: none; }
.v4-overlay .v4-player::fullscreen { overflow: auto; }
