/* PLAYER — FRONT PORCH 2026-11-11 — the Library's in-house video player. Live Nov 11, 2026.
   Colours only from the site's own skin variables (--bg2, --card, --ink,
   --ink2, --accent, --accent-ink, --gold, --line) so the player wears
   whichever of the five skins the visitor picked. No layout rules reach
   outside .house-player. Native <video> underneath; this file only dresses
   the frame and the control bar player.js builds. */

.house-player{
  position:relative;
  max-width:340px;
  margin:14px auto 6px;
  background:#000;
  border:1px solid var(--line);
  border-radius:14px;
  overflow:hidden;
  box-shadow:var(--shadow);
  font-family:"Archivo",system-ui,sans-serif;
  -webkit-tap-highlight-color:transparent;
}
.house-player:fullscreen{
  max-width:none;
  width:100%;
  height:100%;
  border-radius:0;
  border:0;
  display:flex;
  flex-direction:column;
}
.house-player .hp-video{
  display:block;
  width:100%;
  aspect-ratio:9/16;
  max-height:62vh;
  background:#000;
  object-fit:contain;
}
.house-player:fullscreen .hp-video{
  flex:1 1 auto;
  min-height:0;
  max-height:none;
  aspect-ratio:auto;
}

/* Big centre play — the one tap that starts a house video. Nothing ever
   autoplays; this button (or the bar's play button) is the only door. */
.house-player .hp-bigplay{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  width:100%;
  height:100%;
  padding:0 20px calc(52px + 10px);
  border:0;
  background:linear-gradient(to bottom, rgba(0,0,0,.08), rgba(0,0,0,.38));
  color:#fff;
  cursor:pointer;
  font-family:inherit;
}
.house-player .hp-bigplay .hp-bigplay-disc{
  display:flex;
  align-items:center;
  justify-content:center;
  width:74px;
  height:74px;
  border-radius:50%;
  background:var(--accent);
  color:var(--accent-ink);
  font-size:29px;
  line-height:1;
  padding-left:5px;
  box-shadow:0 2px 14px rgba(0,0,0,.45);
}
.house-player .hp-bigplay .hp-bigplay-label{
  font-size:15px;
  font-weight:700;
  letter-spacing:.02em;
  text-shadow:0 1px 6px rgba(0,0,0,.7);
}
.house-player.is-playing .hp-bigplay{display:none}

/* Control bar */
.house-player .hp-bar{
  position:relative;
  display:flex;
  align-items:center;
  gap:4px;
  padding:6px 8px calc(6px + env(safe-area-inset-bottom));
  background:var(--card);
  border-top:1px solid var(--line);
  color:var(--ink);
}
.house-player .hp-btn{
  flex:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  padding:0;
  border:0;
  border-radius:10px;
  background:transparent;
  color:var(--ink);
  font-size:17px;
  line-height:1;
  cursor:pointer;
  font-family:inherit;
}
.house-player .hp-btn:hover{background:var(--bg2)}
.house-player .hp-time{
  flex:none;
  font-size:12.5px;
  font-weight:600;
  color:var(--ink2);
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
  padding:0 2px;
}
.house-player .hp-seek{
  flex:1 1 auto;
  min-width:44px;
  height:44px;
  margin:0;
  padding:0;
  background:transparent;
  cursor:pointer;
  -webkit-appearance:none;
  appearance:none;
}
.house-player .hp-seek::-webkit-slider-runnable-track{
  height:6px;border-radius:3px;
  background:linear-gradient(to right, var(--gold) 0%, var(--gold) var(--hp-fill,0%), var(--line) var(--hp-fill,0%), var(--line) 100%);
}
.house-player .hp-seek::-webkit-slider-thumb{
  -webkit-appearance:none;
  width:16px;height:16px;border-radius:50%;
  background:var(--gold);
  margin-top:-5px;
  border:2px solid var(--card);
  box-shadow:0 0 0 1px var(--line);
}
.house-player .hp-seek::-moz-range-track{
  height:6px;border-radius:3px;background:var(--line);
}
.house-player .hp-seek::-moz-range-progress{
  height:6px;border-radius:3px;background:var(--gold);
}
.house-player .hp-seek::-moz-range-thumb{
  width:12px;height:12px;border-radius:50%;
  background:var(--gold);border:2px solid var(--card);
  box-shadow:0 0 0 1px var(--line);
}
.house-player .hp-vol{
  flex:none;
  width:64px;
  height:44px;
  margin:0;
  padding:0;
  background:transparent;
  cursor:pointer;
  -webkit-appearance:none;
  appearance:none;
}
.house-player .hp-vol::-webkit-slider-runnable-track{
  height:5px;border-radius:3px;
  background:linear-gradient(to right, var(--ink2) 0%, var(--ink2) var(--hp-fill,80%), var(--line) var(--hp-fill,80%), var(--line) 100%);
}
.house-player .hp-vol::-webkit-slider-thumb{
  -webkit-appearance:none;
  width:13px;height:13px;border-radius:50%;
  background:var(--ink);margin-top:-4px;
}
.house-player .hp-vol::-moz-range-track{height:5px;border-radius:3px;background:var(--line)}
.house-player .hp-vol::-moz-range-progress{height:5px;border-radius:3px;background:var(--ink2)}
.house-player .hp-vol::-moz-range-thumb{width:11px;height:11px;border-radius:50%;background:var(--ink);border:0}
@media (max-width:480px){
  .house-player .hp-vol{display:none}  /* phones use their own volume keys */
}

/* Visible focus for keyboard visitors, in the skin's own accent */
.house-player .hp-btn:focus-visible,
.house-player .hp-bigplay:focus-visible,
.house-player .hp-seek:focus-visible,
.house-player .hp-vol:focus-visible{
  outline:2px solid var(--accent);
  outline-offset:2px;
}

/* Caption line under a slot — what the video is, in the site's own words */
.hp-caption{
  max-width:340px;
  margin:0 auto 18px;
  text-align:center;
  font-size:14px;
  line-height:1.45;
  color:var(--ink2);
  font-family:"Archivo",system-ui,sans-serif;
}
.hp-caption b{color:var(--ink)}
