.vw {
  border: 3px solid #fff;
  box-shadow: 0px 5px 15px rgba(0,0,0,0.2);
  position: fixed;
  box-sizing: border-box;
  left: 20px;
  bottom: 20px;
  z-index: 9999;
  width: 220px;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .35);
  transition: width .25s ease, height .25s ease, transform .25s ease;
  transform: scale(1);
}
.vw--collapsed:hover, .vw--collapsed:focus {
  transform: scale(1.05);
}

.vw.--rb {
  left: auto;
  right: 20px;
}
.vw.--lt {
  bottom: auto;
  top: 20px;
}
.vw.--rt {
  bottom: auto;
  left: auto;
  right: 20px;
  top: 20px;
}

.vw--collapsed {
  width: 130px;
}

.vw--expanded {
  width: min(318px, calc(100vw - 40px));
  border: 3px solid rgba(19,19,68,1);
}

.vw__video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 13;
}

.vw__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  background: #000;
}

.vw__close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .3);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: 0.2s;
}
.vw--collapsed:hover .vw__close,
.vw--collapsed:focus .vw__close,
.vw--expanded .vw__close {
  opacity: 1;
}
.vw--expanded .vw__close {
  top: 40px;
}

.vw__close:hover, .vw__close:focus {
  transform: scale(1.1);
}

.vw__controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .75));
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease;
}

.vw--expanded .vw__controls {
  opacity: 1;
  transform: translateY(0);
}

.vw__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .3);
  color: #fff;
  cursor: pointer;
  flex: 0 0 auto;
  opacity: 0;
  position: absolute;
  right: 8px;
  top: 80px;
  transition: 0.2s;
  z-index: 1;
}
.vw--expanded .vw__btn {
  opacity: 1;
}

.vw__btn:hover, .vw__btn:focus {
  transform: scale(1.1);
}

.vw__icon-pause,
.vw__icon-muted {
  display: none;
}

.vw.is-playing .vw__icon-play {
  display: none;
}

.vw.is-playing .vw__icon-pause {
  display: inline;
}

.vw.is-muted .vw__icon-sound {
  display: none;
}
.vw .vw__icon-sound svg,
.vw .vw__icon-muted svg {
  margin-top: 5px;
}

.vw.is-muted .vw__icon-muted {
  display: inline;
}

.vw__seek {
  flex: 1 1 auto;
  min-width: 40px;
  accent-color: #fff;
  opacity: 0;
  pointer-events: none;
}

.vw__time {
  color: #fff;
  font: 11px/1 system-ui, sans-serif;
  opacity: 0;
  position: absolute;
  right: 10px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
  top: 20px;
  white-space: nowrap;
  z-index: 1;
}
.vw--expanded .vw__time {
  opacity: 1;
}

.vw__cta {
  position: absolute;
  left: 30px;
  bottom: 30px;
  z-index: 3;
  display: none;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--theme-base-color);
  color: #fff;
  font-size: 16px;
  line-height: 18px;
  padding: 10px 20px;
  text-align: center;
  transition: 0.2s;
  width: calc(100% - 60px);
}
.vw__cta:hover,
.vw__cta:focus {
  color: var(--color);
  transform: scale(1.05);
}

.vw--expanded .vw__cta {
  display: block;
  text-decoration: none;
}

.vm__progress {
  background-color: rgba(230,230,230,0.3);
  cursor: pointer;
  height: 6px;
  left: 0;
  opacity: 0;
  position: absolute;
  top: 0px;
  transition: 0.2s;
  width: 100%;
  z-index: 1;
}
.vw--expanded .vm__progress {
  opacity: 1;
}
.vm__progress:hover,
.vm__progress:hover .vm__progress-cur {
  height: 8px;
}
.vm__progress-cur {
  background-color: rgba(255,61,62,1);
  height: 5px;
  left: 0;
  position: absolute;
  top: 0;
  transition: 0.2s;
  width: 0;
}

@media (max-width: 480px) {
  .vw {
    left: 12px;
    bottom: 12px;
  }

  .vw--collapsed {
    width: 140px;
  }
}
