.mvp-container {
  font-family: "Montserrat", sans-serif;
  width: 100%;
  height: calc((9 / 16) * 100%);
  position: relative;
  color: #fff;
  overflow: hidden;
  background: rgb(25, 25, 25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mvp-container video {
  max-width: 100%;
  max-height: 100%;
}

.mvp-loader {
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border-top: 5px solid transparent;
  border-right: 5px solid #ffffff;
  border-left: 5px solid #ffffff;
  border-bottom: 5px solid #ffffff;
  z-index: 9999;
  animation: rotation 2s infinite ease;
  -webkit-animation: rotation 2s infinite ease;
  display: none;
}

.mvp-player-state {
  display: flex;
  position: absolute;
  width: 100%;
  justify-content: space-around;
}

.mvp-state-btn {
  font-size: 2.3rem;
  width: 80px;
  height: 80px;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  background: rgba(36, 36, 36, 0.667);
  z-index: 9999;
  -webkit-tap-highlight-color: transparent;
  opacity: 0;
  user-select: none;
  transform: scale(0);
}

.mvp-state-forward,
.mvp-state-backward {
  font-size: 1.5rem;
}

.mvp-state-forward .mvp-forward-duration {
  margin-right: 0.5rem;
}
.mvp-state-backward .mvp-backward-duration {
  margin-left: 0.5rem;
}

.animate-state {
  animation: playPause 0.5s forwards;
}

.show-state {
  transform: scale(1);
  opacity: 1;
}

.show-controls {
  opacity: 1 !important;
  transform: translateY(0) !important;
  visibility: visible !important;
}

.mvp-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 5rem 1rem 0.5rem 1rem;
  width: 100%;
  background: linear-gradient(to top, #000000b8 -100%, transparent);
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(40px);
  visibility: hidden;
  z-index: 99;
  transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.mvp-duration {
  position: relative;
  width: 100%;
  height: 15px;
  background: #62626274;
  cursor: pointer;
  transition: all 0.2s;
}

.mvp-duration:hover {
  height: 17px;
}

.mvp-duration .mvp-buffer {
  height: 100%;
  position: absolute;
  inset: 0;
  background-color: #ff6a0045;
  z-index: 9;
  width: 0;
}

.mvp-hover-time {
  height: 100%;
  position: absolute;
  inset: 0;
  background: #ffffff9a;
  z-index: 99;
  display: flex;
  align-items: center;
  width: 0;
}

.mvp-hover-time .mvp-hover-duration {
  position: absolute;
  right: calc((-25px / 2));
  top: -25px;
  background: #3c3c3ca7;
  padding: 0.2rem;
  border-radius: 5px;

  font-size: 0.7rem;
  visibility: hidden;
  font-weight: bold;
  opacity: 0;
  transform: scale(0);
}

.mvp-duration:hover .mvp-hover-time .mvp-hover-duration {
  visibility: visible;
  opacity: 1;
  transition: all 0.2s;
  transform: scale(1);
}

.mvp-duration .mvp-current-time {
  height: 100%;
  position: absolute;
  inset: 0;
  background: #ff6a00;
  z-index: 999;
  display: flex;
  align-items: center;
  width: 0;
}

.mvp-current-time::before {
  content: "";
  position: absolute;
  right: calc((-25px / 2));
  background: #ff6a00;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  transition: all 0.2s;
  visibility: hidden;
  transform: scale(0);
}

.mvp-duration:hover .mvp-current-time::before {
  visibility: visible;
  transform: scale(1);
}

.mvp-btn-controls {
  padding-top: 1rem;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mvp-btn-con {
  display: flex;
  align-items: center;
}

.mvp-btn-con,
.mvp-btn-controls > span {
  cursor: pointer;
}

.mvp-play-pause {
  display: flex;
  margin-right: 0.5rem;
}

.mvp-control-btn {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: #33333372;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  box-sizing: border-box;
  position: relative;
  margin-right: 0.5rem;
}

.mvp-control-btn:last-child {
  margin-right: 0;
}

.mvp-control-btn:hover {
  border: 1px solid #3131315c;
}

.mvp-control-btn::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #2424246a;
  position: absolute;
  transition: all 0.1s;
  transform: scale(0);
}

.mvp-control-btn:active::before {
  transform: scale(1);
  border: 1px solid #3131315c;
}

.mvp-time-container {
  font-size: 13px;
  font-weight: 500;
  padding-left: 0.7rem;
}

.mvp-volume {
  display: flex;
  align-items: center;
  cursor: default;
}

.mvp-mute-unmute {
  display: flex;
  cursor: pointer;
}

.mvp-max-vol {
  height: 3px;
  cursor: pointer;
  background: #ffffff6e;
  transition: all 0.1s;
  width: 0;
  visibility: hidden;
  transform: scaleX(0);
  transform-origin: left;
  display: flex;
  align-items: center;
}

.mvp-max-vol.show {
  width: 56px;
  visibility: visible;
  transform: scaleX(1);
}

.mvp-current-vol {
  position: absolute;
  inset: 0;
  width: 20%;
  height: 100%;
  background: #fff;
  display: flex;
  transition: none;
  align-items: center;
}

.mvp-current-vol::before {
  content: "";
  position: absolute;
  right: -5px;
  width: 12px;
  height: 12px;
  display: block;
  border-radius: 50%;
  background: #eee;
}

.mvp-setting-menu {
  opacity: 0;
  visibility: hidden;
  list-style: none;
  padding-inline-start: 0;
  margin-block-start: 0;
  margin-block-end: 0;
  position: absolute;
  bottom: 4.5rem;
  transition: all 0.2s;
  background: rgba(28, 28, 28, 0.9);
  transform: scaleY(0);
  transform-origin: bottom;
  border-radius: 5px;
}

.mvp-setting-menu li {
  padding: 0.3rem 2rem;
  margin: 0.5rem;
  transition: all 0.2s;
  border-radius: 5px;
  font-size: 0.9rem;
  font-weight: 500;
}

.mvp-speed-active {
  background: rgb(23, 23, 23);
}

.mvp-setting-menu li:hover {
  background: rgb(31, 31, 31);
}

.mvp-setting-btn {
  display: flex;
}

.show-setting-menu {
  opacity: 1;
  transform: scaleY(1);
  visibility: visible;
}

.theater {
  width: 100% !important;
}

.mvp-theater-btn .mvp-theater-default,
.mvp-theater-btn .mvp-theater-active {
  display: flex;
}
.mvp-container.theater .mvp-theater-default {
  display: none;
}

.mvp-container:not(.theater) .mvp-theater-active {
  display: none;
}

.fullscreen {
  position: absolute !important;
  max-width: 100% !important;
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  background: #000 !important;
  align-items: center !important;
}

.mvp-right-controls {
  display: flex;
  align-items: center;
}

.mvp-right-controls span {
  cursor: pointer;
}

.mvp-full,
.mvp-contract {
  display: none;
}

.mvp-container:not(.fullscreen) .mvp-full {
  display: flex;
}

.mvp-container.fullscreen .mvp-contract {
  display: flex;
}

@keyframes playPause {
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
  100% {
    opacity: 0;
    transform: scale(1);
  }
}

@keyframes rotation {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
