/* Bands VSL player (assets/js/vplayer.js). Same behaviour as the HTR VSL player, in this page's look:
   dark glass, violet accent, Inter and Sora. Uses the page's tokens with fallbacks. */
.vp {
  position: absolute; inset: 0; overflow: hidden; border-radius: inherit; background: #000; outline: none;
  --vp-a: var(--violet, #8b5cf6); --vp-a2: var(--violet2, #b49cff);
  font-family: var(--font, "Inter", system-ui, -apple-system, sans-serif);
  -webkit-tap-highlight-color: transparent;
}
.vp:focus-visible { box-shadow: inset 0 0 0 2px rgba(180, 156, 255, .7); }
.vp video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; cursor: pointer; }
.vp.is-live.is-playing:not(.is-ui), .vp.is-live.is-playing:not(.is-ui) video { cursor: none; }

/* "Tap for sound" over the muted preview */
.vp-sound {
  position: absolute; left: 50%; top: 71%; z-index: 6; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 12px; padding: 15px 22px 15px 18px; border-radius: 999px; cursor: pointer;
  color: #fff; background: rgba(10, 10, 18, .62); border: 1px solid rgba(180, 156, 255, .6);
  -webkit-backdrop-filter: blur(12px) saturate(150%); backdrop-filter: blur(12px) saturate(150%);
  font: 700 13px/1 var(--display, "Sora", "Inter", sans-serif); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .7);
  animation: vp-pulse 2.2s ease-out infinite; transition: transform .25s ease;
}
.vp-sound:hover, .vp-sound:focus-visible { transform: translate(-50%, -50%) scale(1.04); outline: none; }
@keyframes vp-pulse {
  0% { box-shadow: 0 0 0 0 rgba(139, 92, 246, .55), 0 20px 50px -10px rgba(0, 0, 0, .7); }
  100% { box-shadow: 0 0 0 16px rgba(139, 92, 246, 0), 0 20px 50px -10px rgba(0, 0, 0, .7); }
}
.vp-eq { display: inline-flex; align-items: flex-end; gap: 3px; height: 15px; }
.vp-eq i { width: 3px; height: 100%; border-radius: 2px; background: var(--vp-a2); transform-origin: bottom; animation: vp-eq 1.05s ease-in-out infinite; }
.vp-eq i:nth-child(2) { animation-delay: -.3s; }
.vp-eq i:nth-child(3) { animation-delay: -.6s; }
.vp-eq i:nth-child(4) { animation-delay: -.15s; }
@keyframes vp-eq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
.vp.is-live .vp-sound { display: none; }

/* middle: back 10, play or pause, forward 10 (below his face on the vertical video) */
.vp-mid {
  position: absolute; left: 50%; top: 71%; z-index: 5; display: flex; align-items: center; gap: 22px; transform: translate(-50%, -50%);
  opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility 0s linear .2s;
}
.vp.is-live.is-ui .vp-mid, .vp.is-live.is-paused .vp-mid { opacity: 1; visibility: visible; transition: opacity .2s ease; }
.vp.is-live.is-ended .vp-mid { opacity: 0; visibility: hidden; }
.vp-rw {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  width: 54px; height: 54px; padding: 0; border-radius: 50%; cursor: pointer;
  color: #fff; background: rgba(10, 10, 18, .6); border: 1px solid rgba(255, 255, 255, .22);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font: 700 10px/1 var(--font, "Inter", sans-serif); letter-spacing: .02em;
  transition: color .2s ease, border-color .2s ease, transform .1s ease, opacity .2s ease;
}
.vp-rw svg { width: 20px; height: 20px; }
.vp-ff svg { transform: scaleX(-1); }
.vp-rw:hover, .vp-rw:focus-visible { color: var(--vp-a2); border-color: var(--vp-a2); outline: none; }
.vp-rw:active { transform: scale(.93); }
.vp-rw:disabled, .vp-rw:disabled:hover { opacity: .32; cursor: default; color: #fff; border-color: rgba(255, 255, 255, .22); transform: none; }
.vp-play {
  position: relative; width: 76px; height: 76px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: #fff;
  background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 45%, #6d28d9 100%);
  box-shadow: 0 0 0 7px rgba(139, 92, 246, .2), 0 18px 48px -12px rgba(139, 92, 246, .75), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: transform .15s ease, box-shadow .2s ease;
}
.vp-play:hover, .vp-play:focus-visible { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(139, 92, 246, .28), 0 18px 48px -12px rgba(139, 92, 246, .85), inset 0 1px 0 rgba(255, 255, 255, .35); outline: none; }
.vp-play:active { transform: scale(.95); }
.vp-play svg { width: 32px; height: 32px; }
.vp-play .ip { margin-left: 4px; }
.vp-play .is { display: none; }
.vp.is-playing .vp-play .ip { display: none; }
.vp.is-playing .vp-play .is { display: block; }
.vp-play::after {          /* loading ring around the button */
  content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 3px solid transparent; border-top-color: #fff;
  opacity: 0; pointer-events: none; animation: vp-spin .8s linear infinite;
}
.vp.is-loading .vp-play::after { opacity: 1; }

/* loading ring when the controls are tucked away */
.vp-spin {
  position: absolute; left: 50%; top: 71%; z-index: 4; width: 50px; height: 50px; margin: -25px 0 0 -25px; border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .2); border-top-color: #fff; opacity: 0; pointer-events: none;
  transition: opacity .15s ease; animation: vp-spin .8s linear infinite;
}
.vp.is-live.is-loading:not(.is-ui):not(.is-paused) .vp-spin { opacity: 1; transition: opacity .2s ease .3s; }
@keyframes vp-spin { to { transform: rotate(360deg); } }

/* bottom right: time, speed, mute */
.vp-corner {
  position: absolute; right: 12px; bottom: 34px; z-index: 5; display: flex; align-items: center; gap: 6px;
  opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility 0s linear .2s;
}
.vp.is-live.is-ui .vp-corner, .vp.is-live.is-paused .vp-corner { opacity: 1; visibility: visible; transition: opacity .2s ease; }
.vp.is-live.is-ended .vp-corner { opacity: 0; visibility: hidden; }
.vp-time {
  height: 34px; padding: 0 10px; display: inline-flex; align-items: center; border-radius: 10px;
  background: rgba(10, 10, 18, .6); border: 1px solid rgba(255, 255, 255, .12); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font: 600 12.5px/1 var(--font, "Inter", sans-serif); font-variant-numeric: tabular-nums; color: #f4f4fa; white-space: nowrap;
}
.vp-time b { font-weight: 600; }
.vp-time i { font-style: normal; margin: 0 4px; color: rgba(255, 255, 255, .4); }
.vp-time .vp-total { color: rgba(255, 255, 255, .62); }
.vp.is-behind .vp-time, .vp.is-resumed .vp-time { display: none; }    /* room for the pill on phones */
.vp-btn {
  width: 36px; height: 34px; padding: 0; display: grid; place-items: center; border-radius: 10px; cursor: pointer; color: #f4f4fa;
  background: rgba(10, 10, 18, .6); border: 1px solid rgba(255, 255, 255, .12); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: color .15s ease, border-color .15s ease, transform .1s ease;
}
.vp-btn:hover, .vp-btn:focus-visible { color: var(--vp-a2); border-color: rgba(180, 156, 255, .6); outline: none; }
.vp-btn:active { transform: scale(.93); }
.vp-btn svg { width: 20px; height: 20px; }
.vp-speed { width: auto; min-width: 44px; padding: 0 10px; font: 700 12.5px/1 var(--font, "Inter", sans-serif); font-variant-numeric: tabular-nums; }
.vp-speed.is-fast { color: #fff; border-color: rgba(180, 156, 255, .75); background: rgba(139, 92, 246, .3); }

/* pills: "Continue from" (bottom left, after rewinding), "Resumed at" (bottom left, coming back), "Watch again" (top left, at the end) */
.vp-pill, .vp-resume {
  position: absolute; left: 12px; bottom: 34px; z-index: 6; display: none; align-items: center; height: 40px; border-radius: 999px; white-space: nowrap;
  font: 700 11.5px/1 var(--display, "Sora", "Inter", sans-serif); letter-spacing: .08em; text-transform: uppercase;
}
.vp-pill {
  gap: 9px; padding: 0 16px 0 13px; border: 0; cursor: pointer; color: #fff;
  background: linear-gradient(135deg, #a78bfa, #7c3aed);
  box-shadow: 0 12px 30px -10px rgba(139, 92, 246, .8), inset 0 1px 0 rgba(255, 255, 255, .3);
  transition: transform .15s ease, filter .15s ease;
}
.vp-pill:hover, .vp-pill:focus-visible { transform: translateY(-1px); filter: brightness(1.08); outline: none; }
.vp-pill svg { width: 16px; height: 16px; flex: none; }
.vp-pill b { font-weight: 800; }
.vp .vp-again { top: 10px; left: 10px; bottom: auto; height: 32px; padding: 0 12px 0 10px; gap: 7px; font-size: 10.5px; }   /* small, clear of the end card's logo */
.vp .vp-again svg { width: 14px; height: 14px; }
.vp.is-behind .vp-jump, .vp.is-live.is-ended .vp-again { display: inline-flex; }
.vp-resume {
  gap: 10px; padding: 0 5px 0 15px; color: #fff;
  background: rgba(10, 10, 18, .74); border: 1px solid rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.vp-resume b { font-weight: 800; }
.vp-resume button {
  height: 30px; padding: 0 12px; border: 0; border-radius: 999px; cursor: pointer; color: #fff; background: rgba(139, 92, 246, .38);
  font: inherit; letter-spacing: inherit; text-transform: inherit; transition: background .15s ease;
}
.vp-resume button:hover, .vp-resume button:focus-visible { background: rgba(139, 92, 246, .6); outline: none; }
.vp.is-resumed .vp-resume { display: inline-flex; }

/* the progress line: thin, always there once the sound is on */
.vp-line {
  position: absolute; left: 14px; right: 14px; bottom: 9px; z-index: 5; height: 18px;
  opacity: 0; pointer-events: none; touch-action: none; outline: none; transition: opacity .3s ease;
}
.vp-line::before { content: ""; position: absolute; left: -14px; right: -14px; top: -6px; bottom: -9px; }   /* easy to grab */
.vp.is-live .vp-line { opacity: 1; pointer-events: auto; cursor: pointer; }
.vp-rail {
  position: absolute; left: 0; right: 0; top: 7px; height: 4px; border-radius: 4px; overflow: hidden;
  background: rgba(255, 255, 255, .18); box-shadow: 0 1px 6px rgba(0, 0, 0, .35); transition: top .15s ease, height .15s ease;
}
.vp-line:hover .vp-rail, .vp.is-drag .vp-rail, .vp-line:focus-visible .vp-rail { top: 5.5px; height: 7px; }
.vp-seen, .vp-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; transform: scaleX(0); transform-origin: left; }
.vp-seen { background: rgba(255, 255, 255, .34); }
.vp-fill { background: linear-gradient(90deg, var(--vp-a), var(--vp-a2)); }
.vp-knob {
  position: absolute; left: 0; top: 9px; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 4px rgba(139, 92, 246, .42), 0 2px 6px rgba(0, 0, 0, .5); transition: transform .15s ease;
}
.vp-line:hover .vp-knob, .vp.is-drag .vp-knob, .vp-line:focus-visible .vp-knob { transform: scale(1.3); }
.vp-tip {
  position: absolute; bottom: 20px; left: 0; transform: translateX(-50%);
  padding: 5px 8px; border-radius: 8px; background: rgba(10, 10, 18, .92); border: 1px solid rgba(255, 255, 255, .12);
  font: 600 12px/1 var(--font, "Inter", sans-serif); font-variant-numeric: tabular-nums; color: #fff;
  opacity: 0; pointer-events: none; transition: opacity .15s ease; white-space: nowrap;
}
.vp-line:hover .vp-tip, .vp.is-drag .vp-tip { opacity: 1; }

@media (max-width: 480px) {
  .vp-mid { gap: 18px; }
  .vp-rw { width: 48px; height: 48px; }
  .vp-play { width: 68px; height: 68px; }
  .vp-play svg { width: 28px; height: 28px; }
  .vp-sound { padding: 13px 18px 13px 15px; font-size: 12px; }
  .vp-pill, .vp-resume { height: 36px; font-size: 10.5px; letter-spacing: .06em; left: 10px; }
  .vp-corner { right: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .vp-sound, .vp-eq i { animation: none; }
}
