/* Bar Assayag video player - gold on a soft dark gradient. See /js/player.js. */
.bp {
  --bp-gold: #c9a96c;
  --bp-gold-hi: #e9d3a1;
  --bp-ink: #fffaf2;
  position: relative; display: block; overflow: hidden; background: #000; outline: none;
  container-type: inline-size; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
  font-family: 'Assistant', system-ui, sans-serif;
}
.bp video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; cursor: pointer; }
.bp.is-full { display: flex; align-items: center; justify-content: center; }
.bp.is-full video { max-height: 100vh; }
.bp:focus-visible { box-shadow: inset 0 0 0 2px var(--bp-gold); }

/* centre play button */
.bp-big {
  position: absolute; left: 50%; top: 50%; width: 78px; height: 78px; margin: -39px 0 0 -39px; padding: 0;
  border-radius: 50%; border: 1.5px solid rgba(255, 250, 242, .75); cursor: pointer; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #e7cf98, #b8975f 55%, #86683b);
  box-shadow: 0 14px 34px -10px rgba(0, 0, 0, .55), 0 0 0 8px rgba(201, 169, 108, .22);
  color: #fff; transition: transform .25s cubic-bezier(.2, .7, .2, 1), opacity .25s, box-shadow .25s;
}
.bp-big svg { width: 32px; height: 32px; fill: currentColor; margin-left: 4px; }
.bp-big:hover { transform: scale(1.07); box-shadow: 0 16px 38px -10px rgba(0, 0, 0, .6), 0 0 0 12px rgba(201, 169, 108, .28); }
.bp:not(.is-paused) .bp-big { opacity: 0; transform: scale(.85); pointer-events: none; }
.bp.is-paused::before { content: ''; position: absolute; inset: 0; background: rgba(20, 14, 8, .18); pointer-events: none; }

/* buffering */
.bp-spin { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%;
  border: 2px solid rgba(255, 250, 242, .25); border-top-color: var(--bp-gold); opacity: 0; pointer-events: none;
  animation: bp-rot .8s linear infinite; transition: opacity .2s; }
.bp.is-loading:not(.is-paused) .bp-spin { opacity: 1; }
@keyframes bp-rot { to { transform: rotate(360deg); } }

/* control bar */
.bp-bar {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 8px;
  background: linear-gradient(to top, rgba(18, 12, 6, .82), rgba(18, 12, 6, .45) 55%, transparent);
  color: var(--bp-ink); transition: opacity .3s, transform .3s;
}
.bp:not(.is-active):not(.is-paused):not(.is-seeking) .bp-bar { opacity: 0; transform: translateY(8px); pointer-events: none; }
.bp:not(.is-active):not(.is-paused) video { cursor: none; }

.bp-track { position: relative; height: 18px; cursor: pointer; touch-action: none; }
.bp-track::before, .bp-buf, .bp-prog { content: ''; position: absolute; left: 0; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 3px; transition: height .15s, margin .15s; }
.bp-track::before { right: 0; background: rgba(255, 250, 242, .22); }
.bp-buf { width: 0; background: rgba(255, 250, 242, .38); }
.bp-prog { width: 0; background: linear-gradient(90deg, #a8875a, var(--bp-gold-hi)); }
.bp-track:hover::before, .bp-track:hover .bp-buf, .bp-track:hover .bp-prog,
.bp.is-seeking .bp-track::before, .bp.is-seeking .bp-buf, .bp.is-seeking .bp-prog { height: 5px; margin-top: -2.5px; }
.bp-knob { position: absolute; top: 50%; width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; border-radius: 50%;
  background: var(--bp-gold-hi); box-shadow: 0 0 0 4px rgba(201, 169, 108, .3); transform: scale(0); transition: transform .15s; }
.bp-track:hover .bp-knob, .bp.is-seeking .bp-knob { transform: scale(1); }
.bp-tip { position: absolute; bottom: 20px; transform: translateX(-50%); padding: 3px 7px; border-radius: 4px; font-size: 12px; font-weight: 700;
  background: rgba(255, 250, 242, .95); color: #2a211b; opacity: 0; pointer-events: none; transition: opacity .15s; white-space: nowrap; }
.bp-track:hover .bp-tip { opacity: 1; }

.bp-row { display: flex; align-items: center; gap: 4px; margin-top: 2px; }
.bp-gap { flex: 1; }
.bp-btn { display: grid; place-items: center; height: 36px; min-width: 36px; padding: 0 6px; border: 0; border-radius: 8px;
  background: transparent; color: var(--bp-ink); cursor: pointer; font: inherit; font-size: 14px; font-weight: 700; transition: background .15s, color .15s; }
.bp-btn svg { width: 22px; height: 22px; fill: currentColor; }
.bp-btn:hover, .bp-btn:focus-visible { background: rgba(255, 250, 242, .14); color: var(--bp-gold-hi); outline: none; }
.bp-back svg, .bp-fwd svg, .bp-vol svg, .bp-full svg { fill: none; }
.bp-time { font-size: 13px; font-variant-numeric: tabular-nums; letter-spacing: .02em; padding: 0 6px; white-space: nowrap; opacity: .92; }
.bp-dur { opacity: .7; }

/* small players (gallery cards): keep the essentials */
@container (max-width: 330px) {
  .bp-back, .bp-fwd, .bp-speed { display: none; }
  .bp-big { width: 62px; height: 62px; margin: -31px 0 0 -31px; }
  .bp-big svg { width: 26px; height: 26px; }
  .bp-bar { padding: 20px 6px 4px; }
}
@container (max-width: 230px) { .bp-time { display: none; } }

@media (prefers-reduced-motion: reduce) { .bp *, .bp *::before { transition: none !important; } }
