/* Shared custom video player bar — overlays the bottom of the video's
   container (.stage / .fotw-player, both position:relative). Replaces the
   browser's native controls, which can't represent split-stream (video-only
   mp4 + separate audio) media. Always visible; matches the site's dark
   theme. */

.fp-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.45) 55%, rgba(0, 0, 0, 0.12));
  font-family: inherit;
  box-sizing: border-box;
}
.fp-bar button {
  flex: none;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
}
.fp-bar button:hover { background: rgba(255, 255, 255, 0.18); }
.fp-bar button:focus-visible { outline: 2px solid #ff2233; outline-offset: 1px; }

/* Play / pause icon swap */
.fp-ico-pause { display: none; }
.fp-bar.is-playing .fp-ico-play { display: none; }
.fp-bar.is-playing .fp-ico-pause { display: inline-flex; }

/* Sound / mute icon swap */
.fp-ico-mute { display: none; }
.fp-bar.is-muted .fp-ico-sound { display: none; }
.fp-bar.is-muted .fp-ico-mute { display: inline-flex; }

/* Volume control — a slider that pops out beside the mute button on hover
   / focus (keeps the bar compact; works for muxed videos and the separate
   IG audio track alike). */
.fp-vol { position: relative; display: flex; align-items: center; }
.fp-vol-pop {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 0;
  overflow: hidden;
  opacity: 0;
  transition: width 0.18s ease, opacity 0.18s ease;
}
.fp-vol:hover .fp-vol-pop,
.fp-vol:focus-within .fp-vol-pop {
  width: 96px;
  opacity: 1;
}
.fp-vol-slider {
  width: 80px;
  height: 4px;
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  outline: none;
  cursor: pointer;
}
.fp-vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff2233;
  border: 0;
  cursor: pointer;
}
.fp-vol-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff2233;
  border: 0;
  cursor: pointer;
}
.fp-vol-slider:focus-visible { box-shadow: 0 0 0 2px rgba(255, 34, 51, 0.6); }

/* Seek slider */
.fp-seek {
  flex: 1;
  min-width: 40px;
  height: 4px;
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  outline: none;
  cursor: pointer;
}
.fp-seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #ff2233;
  border: 0;
  cursor: pointer;
}
.fp-seek::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #ff2233;
  border: 0;
  cursor: pointer;
}
.fp-seek:focus-visible { box-shadow: 0 0 0 2px rgba(255, 34, 51, 0.6); }

/* Time readout */
.fp-time {
  flex: none;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #eee;
  white-space: nowrap;
}