/* Shared video player (see js/player.js).
   Deliberately NO full-frame overlay: iOS Safari's native controls draw a
   dark scrim over the whole picture, so this player uses custom controls.
   The only translucent layer is the thin strip along the bottom edge,
   behind the control bar — it never washes over the picture itself. */
.vp { position:relative; background:#000; border-radius:12px; overflow:hidden; }
.vp video { width:100%; display:block; max-height:70vh; background:#000; }
.vp-big {
  position:absolute; left:50%; top:50%; transform:translate(-50%,-50%);
  width:64px; height:64px; border-radius:50%; border:0;
  background:rgba(0,0,0,.55); color:#fff; font-size:26px; line-height:1;
  cursor:pointer; z-index:2; transition:opacity .25s;
}
.vp-playing .vp-big { opacity:0; pointer-events:none; }
.vp-bar {
  position:absolute; left:0; right:0; bottom:0;
  display:flex; align-items:center; gap:8px; padding:8px 10px;
  background:linear-gradient(to top, rgba(0,0,0,.65), rgba(0,0,0,0));
  color:#fff; z-index:2; transition:opacity .3s;
}
.vp-idle .vp-bar { opacity:0; pointer-events:none; }
.vp-bar button { background:transparent; border:0; color:#fff; font-size:16px; cursor:pointer; padding:4px 6px; }
.vp-bar input[type=range] { flex:1; accent-color:#fff; min-width:0; }
.vp-time { font-size:12px; white-space:nowrap; font-variant-numeric:tabular-nums; }
/* Unplayable video: shown instead of a black 0:00 rectangle when the
   browser can't decode the file (e.g. a WebM recording on an iPhone). */
.vp-error { background:#fff; border:2px solid #e12c48; border-radius:12px; padding:18px; font-family:"Nunito",system-ui,sans-serif; color:#12203c; }
.vp-error p { margin:0 0 8px; font-size:15px; line-height:1.5; }
.vp-error .btn { margin-top:6px; }
