/* ==========================================================================
   mrink.missjessicajade.com — one video, in the site's own look.
   Layers on top of the live site's styles.css; only what that file has no
   equivalent for lives here. The page head and onward links are the same as
   /video/'s, so the two read as one site.
   ========================================================================== */

/* ── Page head ───────────────────────────────────────────────────────────── */

.page-head {
  padding: clamp(3.5rem, 9vw, 6rem) 0 clamp(1.5rem, 4vw, 2.5rem);
  text-align: center;
}

.page-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  font-weight: 500;
  line-height: 1.08;
  color: var(--cream);
  margin-bottom: 1rem;
}

.page-head + .section { padding-top: 0; }

/* ── Player ──────────────────────────────────────────────────────────────── */

/* The video's shape is not known here — portrait off a phone or landscape — so
   the frame takes the video's own proportions rather than imposing one. It is
   capped by height as well as width: a portrait video given the full width of
   a laptop would stand several screens tall. */
.player {
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  background: #000;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.player-video {
  display: block;
  max-width: 100%;
  max-height: min(78vh, 42rem);
  width: auto;
  height: auto;
  /* Holds a sensible box while the first frame's size is still unknown. */
  min-width: min(100%, 18rem);
  min-height: 10rem;
  background: #000;
}

/* ── The file ────────────────────────────────────────────────────────────── */

/* One line above the player: the link to save, then what it is. Wraps under
   itself on a phone rather than squeezing, and the details stay one item to a
   line-fragment so "3.08 GB" never breaks across two lines. */
.video-file {
  text-align: center;
  margin-bottom: 1.5rem;
}

.video-file-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  color: var(--gold);
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

.video-file-link:hover {
  background: var(--gold);
  color: #111;
}

.video-file-meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0;
  margin: 0.9rem 0 0;
  padding: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.video-file-meta li { white-space: nowrap; }

/* A thin rule between details, drawn rather than typed so a screen reader
   reads four items and not the separators. */
.video-file-meta li + li::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 0.8em;
  margin: 0 0.75rem;
  background: var(--border-hi);
  vertical-align: -0.05em;
}

.video-file-hint {
  margin-top: 0.5rem;
  font-size: 0.78rem;
  color: var(--muted);
  opacity: 0.8;
}

/* ── Onward ──────────────────────────────────────────────────────────────── */

.page-onward {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 2.75rem;
}
