/* bb-player: one player for every click-to-play film on studio.bizarrebunny.com.
   Pairs with /assets/bb-player.js. Accent comes from --bbp-accent (BB lime by default);
   a partner-branded page can override it on :root. */
.bbp-host { --bbp-ink: #0a0a0a; position: relative; }
.bbp-host:focus-visible { outline: 2px solid var(--bbp-accent, #daff00); outline-offset: 2px; }
.bbp-host video { cursor: pointer; }
.bbp-host.bbp-full:fullscreen, .bbp-host.bbp-full:-webkit-full-screen { width: 100vw; height: 100vh; background: #000; display: flex; align-items: center; justify-content: center; }
.bbp-host:fullscreen video, .bbp-host:-webkit-full-screen video { width: 100% !important; height: 100% !important; max-height: none !important; object-fit: contain !important; }

/* The big lime button: shown before play, while paused, and at the end. Never while playing. */
.bbp-host .play-btn {
  position: absolute !important; top: 50% !important; left: 50% !important; z-index: 6 !important;
  transform: translate(-50%, -50%) !important;
  width: 64px !important; height: 64px !important; padding: 0 !important; margin: 0 !important;
  border-radius: 50% !important; border: 0 !important;
  background: var(--bbp-accent, #daff00) !important; color: var(--bbp-ink) !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  cursor: pointer; box-shadow: 0 6px 24px rgba(0,0,0,.28);
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  transition: transform .18s ease, opacity .18s ease !important; opacity: 1 !important;
}
.bbp-host .play-btn:hover { transform: translate(-50%, -50%) scale(1.07) !important; }
.bbp-host .play-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.bbp-host .play-btn svg { width: 24px !important; height: 24px !important; fill: currentColor !important; display: block !important; }
.bbp-host .play-btn svg.bbp-ico-play { margin-left: 3px; }
.bbp-host.bbp-sm .play-btn { width: 52px !important; height: 52px !important; }
.bbp-host.bbp-sm .play-btn svg { width: 20px !important; height: 20px !important; }
.bbp-host.bbp-playing .play-btn, .bbp-host.bbp-waiting .play-btn { display: none !important; }

/* Spinner while buffering */
.bbp-spin { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; z-index: 6; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.25); border-top-color: var(--bbp-accent, #daff00); animation: bbp-spin .8s linear infinite; display: none; pointer-events: none; }
.bbp-host.bbp-waiting.bbp-full .bbp-spin { display: block; }
@keyframes bbp-spin { to { transform: rotate(360deg); } }

/* Control bar: only after the viewer has started the film with sound. */
.bbp-bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 7;
  display: none; flex-direction: column; gap: 6px;
  padding: 28px 12px 10px; color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,.35) 55%, transparent);
  font: 600 12px/1 "JetBrains Mono", "Syne Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .02em; transition: opacity .25s ease; opacity: 1;
  border-bottom-left-radius: inherit; border-bottom-right-radius: inherit;
}
.bbp-host.bbp-full .bbp-bar { display: flex; }
.bbp-host.bbp-full.bbp-idle .bbp-bar { opacity: 0; pointer-events: none; }
.bbp-host.bbp-full.bbp-idle { cursor: none; }
.bbp-host.bbp-full.bbp-idle video { cursor: none; }
.bbp-row { display: flex; align-items: center; gap: 4px; min-width: 0; }
.bbp-sp { flex: 1 1 auto; }
.bbp-b { appearance: none; background: none; border: 0; color: #fff; width: 34px; height: 34px; padding: 0; margin: 0;
  display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; cursor: pointer; flex: 0 0 auto; }
.bbp-b:hover { background: rgba(255,255,255,.14); }
.bbp-b:focus-visible { outline: 2px solid var(--bbp-accent, #daff00); outline-offset: 0; }
.bbp-b svg { width: 20px; height: 20px; fill: currentColor; display: block; }
.bbp-b[aria-pressed="true"] { color: var(--bbp-accent, #daff00); }
.bbp-b[hidden] { display: none; }
.bbp-time { padding: 0 6px; white-space: nowrap; font-variant-numeric: tabular-nums; opacity: .92; }
.bbp-rate { width: auto; min-width: 40px; padding: 0 6px; font: inherit; }

/* Scrubber: played (accent) over buffered (light) over track */
.bbp-seek { position: relative; height: 16px; display: flex; align-items: center; cursor: pointer; touch-action: none; }
.bbp-seek:focus-visible { outline: 2px solid var(--bbp-accent, #daff00); outline-offset: 2px; border-radius: 4px; }
.bbp-track { position: relative; width: 100%; height: 4px; border-radius: 4px; background: rgba(255,255,255,.22); overflow: hidden; transition: height .15s; }
.bbp-seek:hover .bbp-track, .bbp-seek.bbp-drag .bbp-track { height: 6px; }
.bbp-buf, .bbp-played { position: absolute; left: 0; top: 0; bottom: 0; width: 0; }
.bbp-buf { background: rgba(255,255,255,.38); }
.bbp-played { background: var(--bbp-accent, #daff00); }
.bbp-knob { position: absolute; top: 50%; width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; border-radius: 50%; background: var(--bbp-accent, #daff00);
  left: 0; transform: scale(0); transition: transform .15s; pointer-events: none; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.bbp-seek:hover .bbp-knob, .bbp-seek.bbp-drag .bbp-knob, .bbp-seek:focus-visible .bbp-knob { transform: scale(1); }
.bbp-tip { position: absolute; bottom: 20px; transform: translateX(-50%); background: rgba(0,0,0,.85); color: #fff; padding: 4px 6px; border-radius: 4px;
  font-size: 11px; pointer-events: none; display: none; white-space: nowrap; }
.bbp-seek:hover .bbp-tip, .bbp-seek.bbp-drag .bbp-tip { display: block; }

/* Volume */
.bbp-vol { display: flex; align-items: center; }
.bbp-vol input { width: 0; opacity: 0; transition: width .2s, opacity .2s; accent-color: var(--bbp-accent, #daff00); height: 4px; margin: 0; cursor: pointer; }
.bbp-vol:hover input, .bbp-vol:focus-within input { width: 72px; opacity: 1; margin: 0 6px 0 2px; }

/* Small tiles: keep the essentials */
.bbp-host.bbp-sm .bbp-bar { padding: 22px 6px 6px; gap: 2px; }
.bbp-host.bbp-sm .bbp-b { width: 30px; height: 30px; }
.bbp-host.bbp-sm .bbp-b svg { width: 18px; height: 18px; }
.bbp-host.bbp-sm .bbp-rate, .bbp-host.bbp-sm .bbp-pip, .bbp-host.bbp-sm .bbp-vol input { display: none; }
.bbp-host.bbp-xs .bbp-time .bbp-dur, .bbp-host.bbp-xs .bbp-time .bbp-slash { display: none; }
@media (hover: none) { .bbp-vol input { display: none; } }
@media (prefers-reduced-motion: reduce) { .bbp-spin { animation-duration: 2s; } .bbp-bar, .bbp-host .play-btn { transition: none !important; } }

/* Click-to-create tiles (a poster plus a play glyph, the <video> is built on click) get
   the same lime button, so it looks the same before and after the click. */
.pt-play { background: var(--bbp-accent, #daff00) !important; color: #0a0a0a !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important; border: 0 !important;
  box-shadow: 0 6px 24px rgba(0,0,0,.28); }
