.video-widget {
  transform-origin: left bottom;
  inset: auto auto 2% 1%;
  position: fixed;
  height: 180px;
  width: 130px;
  box-sizing: border-box;
  border-color: rgb(246, 89, 50);
  background-color: rgb(246, 89, 50);
  border-radius: 18px;
  border-width: 3px;
  border-style: solid;
  -webkit-transition: background-color 0.3s ease, border-color 0.3s ease, border-radius 0.3s ease, box-shadow 0.3s ease-out, border-width 1s ease-in, border-style 1s ease-in, width .3s ease,height .3s ease;
  transition: background-color 0.3s ease, border-color 0.3s ease-out, border-radius 0.3s ease-out, box-shadow 0.3s ease-out, border-width 1s ease-in, border-style 1s ease-in, width .3s ease,height .3s ease;
}
.video-widget:hover:not(.open) {
  height: 190px;
  width: 140px;
}
.video-widget:hover {
  border-color: rgb(32, 163, 158);
  background-color: rgb(32, 163, 158);
}
.video-widget.open {
  width: 330px;
  height: 500px;
}

.video-wrapper {
  height: 100%;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  position: relative;
  cursor: pointer;
  justify-content: center;
  box-sizing: border-box;
  border-radius: 14px;
  border: 0;
}

.video-wrapper video {
  display: block;
  width: 100%;
  background-image: url(video.jpg);
  background-size: contain;
  height: 100%;
  border-radius: 14px;
  box-sizing: border-box;
  object-fit: cover;

  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%,-50%);
  -ms-transform: translate(-50%,-50%);
  transform: translate(-50%,-50%);
}

.video-widget:not(.open) .video-controls {
  display: none;
}
.video-wrapper .video-controls {
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
}

.video-controls .video-title {
  position: absolute;
  left: 10px;
  top: 25px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.5px;
  font-family: sans-serif;
  color: white;
}

.video-controls .video-time {
  position: absolute;
  top: 20px;
  right: 12px;
  font-size: 12px;
  color: white;
  letter-spacing: normal;
  font-family: sans-serif;
}

.video-controls .video-progress-wrapper {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0;
  left: 0;
  width: calc(100% - 20px);
  padding: 0 10px;
}

.video-progress {
  width: 100%;
}

.video-progress progress {
  width: 100%;
  height: 2px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: 0;
  border-radius: 8px;
  margin-bottom: 5px;
  box-sizing: border-box;
  color: #FFF;
  background: #fff;
}
.video-progress progress::-webkit-progress-value {
  background: rgba(224, 224, 224, 1);
}
.video-progress progress::-webkit-progress-bar {
  background: #FFF;
}
.video-progress:hover~.video-seek {
  display: block !important;
}
.video-seek {
  display: none;
  position: absolute;
  left: 0px;
  top: 32px;
  margin-left: 10px;
  content: attr(data-title);
  color: #FFF;
  background-color: rgba(0, 0, 0, 0.6);
  padding: 1px;
  font-family: sans-serif;
  font-size: 12px;
  letter-spacing: normal;
  z-index: 9999;
}

.video-controls .video-buttons {
  top: 50px;
  right: 12px;
  position: absolute;
}

.video-buttons * {
  width: 20px;
  height: 20px;
  margin: 5px;
  color: rgba(224, 224, 224, 1);
  border-radius: 10px;
}
.video-buttons .video-volume-btn.volume-on {
  background-image: url("sound-on.svg");
  background-size: contain;
}
.video-buttons .video-volume-btn {
  background-image: url("sound-off.svg");
  background-size: contain;
}
.video-buttons .video-close-btn {
  /* background-image: url("close-btn.png"); */
  background-color: white;
  background-size: contain;
}

.video-wrapper .close-icon {
  color: rgb(224, 224, 224);
  width: 8px;
  height: 8px;
  margin: 6px;
}
.video-wrapper .icon {
  display: inline-block;
  stroke-width: 0;
  stroke: currentColor;
  fill: currentColor;
}

.video-buttons .volume-status-icon {
  width: 19px;
  height: 19px;
  padding: 1px;
}

.video-widget:hover:not(.open) .video-remove-btn {
  display: initial;
}

.video-remove-btn {
  display: none;
  position: absolute;
  top: 7px;
  right: 7px;
  width: 20px;
  height: 20px;
  margin: 5px;
  border-radius: 10px;
  color: rgba(224, 224, 224, 1);
  /* background-image: url("close-btn.png"); */
  background-color: white;
  background-size: contain;
}
