.ib-video-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(255, 52, 172, 0.9);
  border-radius: 19px;
  background: #05030b;
  box-shadow:
    0 0 0 1px rgba(180, 35, 219, 0.2),
    0 0 22px rgba(224, 30, 200, 0.3);
  isolation: isolate;
}

.ib-video-player__video {
  display: block;
  width: 100%;
  height: 100%;
  background: #05030b;
  object-fit: contain;
}

.ib-video-player__freeze {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  background: #05030b;
  object-fit: contain;
  pointer-events: none;
}

.ib-video-player__loader {
  position: absolute;
  z-index: 6;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(3, 1, 13, 0.18), transparent 42%);
  pointer-events: none;
}

.ib-video-player__spinner {
  width: 42px;
  height: 42px;
  border: 3px solid rgba(255, 255, 255, 0.28);
  border-top-color: var(--ib-video-accent, #ff2795);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(255, 39, 149, 0.3);
  animation: ib-video-spin 760ms linear infinite;
}

@keyframes ib-video-spin {
  to { transform: rotate(360deg); }
}

.ib-video-player.is-source-switching .ib-video-player__center-play,
.ib-video-player.is-buffering .ib-video-player__center-play {
  opacity: 0;
  pointer-events: none;
}

.ib-video-player::after {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  height: 44%;
  background: linear-gradient(transparent, rgba(2, 0, 10, 0.94));
  content: "";
  pointer-events: none;
  transition: opacity 200ms ease;
}

.ib-video-player__center-play {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  display: grid;
  width: clamp(58px, 17vw, 82px);
  height: clamp(58px, 17vw, 82px);
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 50%;
  background: rgba(5, 2, 15, 0.82);
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.34);
  color: #fff;
  cursor: pointer;
  transform: translate(-50%, -55%);
  transition: opacity 160ms ease, transform 160ms ease;
}

.ib-video-player__center-play svg {
  width: 42%;
  margin-left: 5%;
  fill: currentColor;
}

.ib-video-player.is-playing .ib-video-player__center-play {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.9);
}

.ib-video-player__controls {
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 0 12px 9px;
  opacity: 1;
  visibility: visible;
  transition: opacity 200ms ease, visibility 0s linear 0s;
}

.ib-video-player.is-controls-hidden::after {
  opacity: 0;
}

.ib-video-player.is-controls-hidden .ib-video-player__controls {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 200ms ease, visibility 0s linear 200ms;
}

.ib-video-player__timeline,
.ib-video-player__volume {
  height: 18px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.ib-video-player__timeline {
  width: 100%;
  --ib-video-progress: 0%;
}

.ib-video-player__timeline::-webkit-slider-runnable-track,
.ib-video-player__volume::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--ib-video-accent, #ff2795) 0 var(--ib-video-progress), rgba(255, 255, 255, 0.48) var(--ib-video-progress) 100%);
}

.ib-video-player__volume::-webkit-slider-runnable-track {
  background: rgba(255, 255, 255, 0.72);
}

.ib-video-player__timeline::-moz-range-track,
.ib-video-player__volume::-moz-range-track {
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
}

.ib-video-player__timeline::-moz-range-progress {
  height: 4px;
  border-radius: 999px;
  background: var(--ib-video-accent, #ff2795);
}

.ib-video-player__timeline::-webkit-slider-thumb,
.ib-video-player__volume::-webkit-slider-thumb {
  width: 13px;
  height: 13px;
  margin-top: -4.5px;
  border: 0;
  border-radius: 50%;
  background: var(--ib-video-accent, #ff2795);
  box-shadow: 0 0 9px rgba(255, 39, 149, 0.75);
  appearance: none;
  -webkit-appearance: none;
}

.ib-video-player__timeline::-moz-range-thumb,
.ib-video-player__volume::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border: 0;
  border-radius: 50%;
  background: var(--ib-video-accent, #ff2795);
}

.ib-video-player__control-row {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 4px;
}

.ib-video-player__control,
.ib-video-player__speed {
  display: inline-grid;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.ib-video-player__control svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.ib-video-player__speed {
  width: auto;
  padding: 0 7px;
  font-size: 0.83rem;
  font-weight: 750;
}

.ib-video-player__control .is-pause,
.ib-video-player__control .is-muted {
  display: none;
}

.ib-video-player.is-playing .ib-video-player__control .is-play,
[data-muted="true"] .ib-video-player__control .is-volume {
  display: none;
}

.ib-video-player.is-playing .ib-video-player__control .is-pause,
[data-muted="true"] .ib-video-player__control .is-muted {
  display: block;
}

.ib-video-player__volume-wrap {
  display: flex;
  align-items: center;
}

.ib-video-player__volume {
  width: 72px;
  --ib-video-progress: 100%;
}

.ib-video-player__time {
  min-width: 54px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.ib-video-player__spacer {
  flex: 1 1 auto;
}

.ib-video-player__status {
  position: absolute;
  z-index: 7;
  inset: 0;
  display: grid;
  padding: 24px;
  place-items: center;
  background: rgba(3, 1, 13, 0.9);
  color: #fff;
  text-align: center;
}

.ib-video-player__status[hidden] {
  display: none;
}


.ib-video-player { box-sizing: border-box; color: #fff; font-family: inherit; }
.ib-video-player *, .ib-video-player *::before, .ib-video-player *::after { box-sizing: border-box; }
.ib-video-player [hidden] { display: none; }
.ib-video-player button:focus-visible, .ib-video-player input:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.ib-video-player input[type=range] { border: 0; padding: 0; margin: 0; }
.ib-video-player input[type=range]::-webkit-slider-thumb { background: var(--ib-video-accent, #ff2795); }
.ib-video-player input[type=range]::-moz-range-thumb { background: var(--ib-video-accent, #ff2795); }
.ib-video-player:fullscreen, .ib-video-player:-webkit-full-screen, .ib-video-player.is-pseudo-fullscreen {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; aspect-ratio: auto; border: 0; border-radius: 0; box-shadow: none;
}
.ib-video-player.is-pseudo-fullscreen { position: fixed; inset: 0; z-index: 2147483647; }
.ib-video-player:fullscreen .ib-video-player__video, .ib-video-player.is-pseudo-fullscreen .ib-video-player__video { object-fit: contain; }
.ib-video-player__controls { padding-bottom: max(9px, env(safe-area-inset-bottom)); }
@media (max-width: 600px) {
  .ib-video-player__volume { display: none; }
  .ib-video-player__controls { padding-left: 8px; padding-right: 8px; }
  .ib-video-player__control-row { gap: 0; }
}
@media (prefers-reduced-motion: reduce) { .ib-video-player *, .ib-video-player::after { transition: none; } }
