/* The First 39: Videos (/videos/ and /videos/<id>), built by tools/build_videos.py. */

.mv-hero { padding-block: clamp(3rem, 7vw, 5.5rem); }
.mv-hero h1 { margin: 0 0 var(--s-4); }
.mv-lead { color: var(--muted-on-dark); max-width: 60ch; margin-bottom: var(--s-6); }

.mv-player { background: #000; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9;
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.8); }
.mv-player video { display: block; width: 100%; height: 100%; }
/* Captions: the brand face, on a soft Ink box, a touch larger than the browser default */
.mv-player video::cue { font-family: var(--font-display); font-weight: 600; font-size: 1.15em; line-height: 1.35;
  color: #F7F3EC; background: rgba(22, 21, 20, 0.78); }

.mv-bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4); margin-top: var(--s-5); }
.mv-meta { margin: 0; font-size: var(--fs-small); }

/* The Captions toggle: a ghost button that fills in while captions are on */
.mv-cc::after { display: none; }
.mv-cc-icon { display: inline-grid; place-items: center; min-width: 2.1em; height: 1.45em; padding: 0 .3em;
  border: 2px solid currentColor; border-radius: 3px; font-size: .78em; letter-spacing: .04em; line-height: 1; }
.mv-cc[aria-pressed="true"] { background: var(--scroll); color: var(--ink); }

.mv-cols { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.mv-cols h2 { margin-bottom: var(--s-5); }
.mv-side { display: grid; gap: var(--s-6); padding: var(--s-5); background: var(--linen); border-radius: var(--radius); }
.mv-side h2 { margin: 0 0 var(--s-3); }
.mv-refs, .mv-credits { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.mv-credits { font-size: var(--fs-small); }

/* ---------- The About slider (a dialog): one slide per beat of the storyboard ---------- */
.mvs { width: min(1120px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); padding: 0; border: 0;
  border-radius: var(--radius); background: var(--ink); color: var(--scroll); box-shadow: 0 40px 120px -20px rgba(0, 0, 0, .7); }
.mvs::backdrop { background: rgba(22, 21, 20, .78); }
.mvs-in { display: flex; flex-direction: column; max-height: calc(100dvh - 32px); }
.mvs-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-4);
  padding: var(--s-5) var(--s-6) var(--s-4); border-bottom: 1px solid var(--line-on-dark); }
.mvs-head .eyebrow { margin-bottom: var(--s-2); }
.mvs-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 var(--s-2); }
.mvs-intro { color: var(--muted-on-dark); font-size: var(--fs-small); margin: 0; }
.mvs-close { flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--scroll);
  font-size: 2rem; line-height: 1; cursor: pointer; }
.mvs-close:hover { background: rgba(247, 243, 236, .1); }
.mvs-stage { overflow-y: auto; padding: var(--s-5) var(--s-6); touch-action: pan-y; }
.mvs-slide { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(1.25rem, 3vw, 2.5rem); align-items: start; }
.mvs-slide[hidden] { display: none; }
.mvs-slide img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.mvs-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); margin: 0 0 var(--s-3); }
.mvs-tag { font-family: var(--font-display); font-size: var(--fs-eyebrow); font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  padding: .3rem .6rem; border: 1px solid var(--muted-on-dark); border-radius: 3px; color: var(--muted-on-dark); }
.mvs-tag.is-genesis { border-color: var(--gold); color: var(--gold); }
.mvs-time { font-family: var(--font-display); font-size: var(--fs-small); font-weight: 600; color: var(--muted-on-dark); }
.mvs-body h3 { margin: 0 0 var(--s-3); }
.mvs-body p { margin-bottom: var(--s-4); }
.mvs-quote { margin: 0 0 var(--s-4); padding: var(--s-2) 0 var(--s-2) var(--s-4); border-left: 3px solid var(--gold); }
.mvs-quote p { font-family: var(--font-scripture); font-style: italic; font-size: 1.15rem; line-height: 1.5; margin: 0 0 var(--s-2); }
.mvs-quote footer { font-size: var(--fs-small); color: var(--muted-on-dark); }
.mvs-nlt { margin-left: .25em; }
.mvs-refs { font-size: var(--fs-small); color: var(--muted-on-dark); }
.mvs-watch::after { display: none; }
.mvs-nav { display: flex; align-items: center; gap: var(--s-4); padding: var(--s-3) var(--s-6) var(--s-4); border-top: 1px solid var(--line-on-dark); }
.mvs-arrow { flex: none; width: 48px; height: 48px; border: 2px solid var(--scroll); border-radius: 50%; background: transparent;
  color: var(--scroll); font-size: 1.9rem; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0 0 4px; }
.mvs-arrow:hover:not(:disabled) { background: var(--scroll); color: var(--ink); }
.mvs-arrow:disabled { opacity: .35; cursor: default; }
.mvs-progress { flex: 1; display: grid; gap: var(--s-2); justify-items: center; }
.mvs-count { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-small); color: var(--muted-on-dark); }
.mvs-bar { width: 100%; height: 3px; background: var(--line-on-dark); border-radius: 2px; overflow: hidden; }
.mvs-bar i { display: block; height: 100%; background: var(--gold); transition: width .3s var(--ease); }
@media (prefers-reduced-motion: reduce) { .mvs-bar i { transition: none; } }
.mv-meta a { color: inherit; }

/* The index: one card per video, newest first */
.mv-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-7); }
.mv-card { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.mv-card-img { position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: #000;
  box-shadow: var(--shadow); }
.mv-card-img img { display: block; width: 100%; height: auto; transition: transform .4s var(--ease); }
.mv-card-img:hover img { transform: scale(1.02); }
.mv-card-play { position: absolute; left: 50%; top: 50%; width: 4.5rem; height: 4.5rem; margin: -2.25rem 0 0 -2.25rem;
  border-radius: 50%; background: rgba(22, 21, 20, 0.72); box-shadow: 0 0 0 2px rgba(247, 243, 236, 0.85); }
.mv-card-play::after { content: ""; position: absolute; left: 55%; top: 50%; width: 1.4rem; height: 1.6rem; transform: translate(-50%, -50%);
  background: #F7F3EC; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.mv-card-len { position: absolute; right: var(--s-3); bottom: var(--s-3); padding: .15rem .5rem; border-radius: 3px;
  background: rgba(22, 21, 20, 0.8); color: #F7F3EC; font-family: var(--font-display); font-weight: 600; font-size: .8rem; }
.mv-card-kicker { font-family: var(--font-display); font-size: var(--fs-eyebrow); font-weight: 600; letter-spacing: .32em;
  text-transform: uppercase; color: var(--stone); margin-bottom: var(--s-3); }
.mv-card h2 { margin: 0 0 var(--s-3); }
.mv-card h2 a { color: inherit; text-decoration: none; }
.mv-card h2 a:hover { text-decoration: underline; }

@media (max-width: 1023px) {
  .mv-cols { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  .mv-card { grid-template-columns: minmax(0, 1fr); }
  .mvs-slide { grid-template-columns: minmax(0, 1fr); }
  .mvs-head, .mvs-stage, .mvs-nav { padding-inline: var(--s-4); }
}
@media (max-width: 479px) {
  .mv-bar .btn { width: 100%; justify-content: center; }
  .mvs { width: 100vw; max-height: 100dvh; margin: 0; border-radius: 0; }
  .mvs-in { max-height: 100dvh; }
}
