.brand-video-player {
  position: relative;
  isolation: isolate;
}

.brand-video-player video::-webkit-media-controls {
  display: none !important;
}

.brand-video-center-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: clamp(58px, 8vw, 86px);
  height: clamp(58px, 8vw, 86px);
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, .32), transparent 34%),
    linear-gradient(135deg, #6558ff, #4238e6);
  box-shadow: 0 24px 48px rgba(31, 27, 126, .44), inset 0 1px 0 rgba(255, 255, 255, .2);
  cursor: pointer;
  transform: translate(-50%, -50%) scale(1);
  transition: opacity .18s ease, transform .18s ease, border-color .16s ease, background .16s ease;
}

.brand-video-player.is-playing .brand-video-center-play {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(.92);
}

.brand-video-center-play:hover {
  transform: translate(-50%, -50%) scale(1.03);
}

.brand-video-controls {
  position: absolute;
  left: clamp(10px, 2vw, 18px);
  right: clamp(10px, 2vw, 18px);
  bottom: clamp(10px, 2vw, 18px);
  z-index: 4;
  display: grid;
  grid-template-columns: auto auto minmax(80px, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(16, 20, 44, .88), rgba(7, 9, 22, .78)),
    rgba(8, 10, 24, .82);
  box-shadow: 0 18px 38px rgba(0, 0, 0, .32), inset 0 1px 0 rgba(255, 255, 255, .12);
  backdrop-filter: blur(16px);
}

.brand-video-btn {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.brand-video-btn:hover,
.brand-video-center-play:hover {
  border-color: rgba(255, 255, 255, .34);
  background: rgba(255, 255, 255, .14);
}

.brand-video-btn:hover {
  transform: translateY(-1px);
}

.brand-video-play {
  background: linear-gradient(135deg, #6558ff, #4338ca);
  box-shadow: 0 10px 24px rgba(67, 56, 202, .34);
}

.brand-video-play-icon {
  display: block;
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 13px solid #fff;
}

.brand-video-player.is-playing .brand-video-play-icon {
  width: 14px;
  height: 16px;
  margin-left: 0;
  border: 0;
  background:
    linear-gradient(90deg, #fff 0 5px, transparent 5px 9px, #fff 9px 14px);
}

.brand-video-time {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 78px;
  color: rgba(255, 255, 255, .78);
  font-size: 12px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.brand-video-range {
  --video-progress: 0%;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, #6d5dff 0 var(--video-progress), rgba(255, 255, 255, .18) var(--video-progress) 100%);
  cursor: pointer;
  appearance: none;
}

.brand-video-range::-webkit-slider-thumb {
  width: 16px;
  height: 16px;
  border: 3px solid #fff;
  border-radius: 999px;
  background: #5b4bff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .32);
  appearance: none;
}

.brand-video-range::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 3px solid #fff;
  border-radius: 999px;
  background: #5b4bff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .32);
}

.brand-video-volume-icon {
  position: relative;
  width: 17px;
  height: 14px;
  border-left: 7px solid #fff;
}

.brand-video-volume-icon::before {
  content: "";
  position: absolute;
  left: -13px;
  top: 3px;
  width: 7px;
  height: 8px;
  border-radius: 2px 0 0 2px;
  background: #fff;
}

.brand-video-volume-icon::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 1px;
  width: 8px;
  height: 12px;
  border: 2px solid #fff;
  border-left: 0;
  border-radius: 0 999px 999px 0;
}

.brand-video-player.is-muted .brand-video-volume-icon::after {
  left: 5px;
  top: 6px;
  width: 13px;
  height: 2px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  transform: rotate(-42deg);
}

.brand-video-fullscreen-icon {
  position: relative;
  width: 18px;
  height: 18px;
}

.brand-video-fullscreen-icon::before,
.brand-video-fullscreen-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid #fff;
  border-radius: 3px;
}

.brand-video-fullscreen-icon::before {
  clip-path: polygon(0 0, 42% 0, 42% 18%, 18% 18%, 18% 42%, 0 42%, 0 0);
}

.brand-video-fullscreen-icon::after {
  clip-path: polygon(58% 82%, 82% 82%, 82% 58%, 100% 58%, 100% 100%, 58% 100%);
}

@media (max-width: 560px) {
  .brand-video-controls {
    left: 8px;
    right: 8px;
    bottom: 8px;
    grid-template-columns: auto minmax(76px, 1fr) auto auto;
    gap: 8px;
    min-height: 46px;
    padding: 7px;
    border-radius: 14px;
  }

  .brand-video-time {
    display: none;
  }

  .brand-video-btn {
    width: 34px;
    height: 34px;
    border-radius: 11px;
  }

  .brand-video-center-play {
    width: 58px;
    height: 58px;
  }
}
