@tailwind base;
@tailwind components;
@tailwind utilities;

.video-player {
  @apply w-[70%] max-[870px]:w-[100%];
  background-color: #645858;
  margin: auto;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.con {
  position: relative;
  width: max-content;
}

.con:fullscreen {
  width: 100%;
  height: 100%;
}
.video-player .pause-btn {
  @apply text-primary-300 duration-200 hover:text-primary-400  text-[86px] max-[730px]:text-[66px] max-[430px]:text-[46px] max-[600px]:!opacity-100;
  position: absolute !important;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 100%;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.487));
}

.video-player .control-bar {
  @apply max-[500px]:h-[30px];
  width: 100%;
  height: 100px;
  background: linear-gradient(0deg, #000000 0%, rgba(0, 128, 0, 0)) !important;
  position: absolute;
  bottom: 0;
  overflow: hidden;
  direction: ltr !important;
  opacity: 1;
  z-index: 30000;
  transition: all 300ms;
}

.video-player .progress-container {
  @apply max-[430px]:top-[8px];
  width: 100%;
  height: 5px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  position: absolute;
  margin: 0px;
  padding: 0px 18px;
}
.video-player .time-counter {
  width: fit-content !important;
  color: #ffffffaa;
  font-size: 18px;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin: 0px;
  padding: 0px 15px 0px 0px;
}
.video-player .time {
  color: #ffffffaa;
  font-size: 18px;
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  margin: 0px;
  padding: 0px 0px 0px 15px;
}
.video-player .progress-range {
  margin-right: 15px;
  height: 7px;
  background: rgba(255, 255, 255, 0.783);
  border-radius: 8px;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  margin-left: 5px;
  margin-right: 70px;
  margin-top: 7px;
}
.video-player .progress-timeline {
  /* @apply bg-gradient-to-l from-primary-300 to-primary-300; */
  width: calc(100% - 32px);
  cursor: pointer;
  height: 8px;
  /* background-color: rgba(255, 255, 255, 0.645); */
  position: absolute;
  border-radius: 1em 1em 1em 1em;
  background-size: 0% 100%;
  background-repeat: no-repeat;
}
.video-player .btn-group {
  position: absolute;
  bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin: auto;
}
.video-player .btn-group .control-btns {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.video-player .btn-group button {
  @apply duration-200;
}
.video-player .btn-group button:hover {
  @apply text-primary-400;
}

.video-player [type="range"]::-webkit-slider-thumb:hover {
  @apply bg-primary-300;
}

.video-player [type="range"]::-moz-range-thumb:hover {
  @apply bg-primary-300;
}

.video-player [type="range"]::-ms-thumb:hover {
  @apply bg-primary-300;
}

.video-player [type="range"]::-webkit-slider-runnable-track {
  -webkit-appearance: none;
  box-shadow: none;
  border: none;
  background: transparent;
}

.video-player [type="range"]::-moz-range-track {
  -webkit-appearance: none;
  box-shadow: none;
  border: none;
  background: transparent;
}

.video-player [type="range"]::-ms-track {
  -webkit-appearance: none;
  box-shadow: none;
  border: none;
  background: transparent;
}

.video-player [type="range"]::-webkit-slider-thumb {
  @apply bg-primary-300;
  -webkit-appearance: none;
  height: 14px;
  width: 14px;
  border: 0;
  border-radius: 50%;
  cursor: move;
  box-shadow: 0 0 2px 0 #555;
}

.video-player [type="range"]::-moz-range-thumb {
  @apply bg-primary-300;
  -webkit-appearance: none;
  height: 18px;
  width: 18px;
  border: 0;
  border-radius: 50%;
  cursor: move;
  box-shadow: 0 0 2px 0 #555;
}

.video-player [type="range"]::-ms-thumb {
  @apply bg-primary-300;
  -webkit-appearance: none;
  height: 18px;
  width: 18px;
  border: 0;
  border-radius: 50%;
  cursor: move;
  box-shadow: 0 0 2px 0 #555;
}

.video-player input[type="range"] {
  -webkit-appearance: none;
  margin-right: 15px;
  height: 7px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 5px;
  background-image: linear-gradient(#0e71e7, #168afb);
  background-size: 0% 100%;
  background-repeat: no-repeat;
}

.video-player [dir="ltr"] input[type="range"] {
  @apply bg-primary-300;
  background-image: linear-gradient(#fff, #fff);
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

.video-player .volume-box {
  @apply bg-primary-600 max-[630px]:hidden;
  background-color: #0e70e7a1;
  width: 50px;
  height: 180px;
  position: absolute;
  bottom: 120px;
  right: 20px;
  border-radius: 4px;
}
.video-player .volume-box button {
  position: absolute;
  bottom: 8px;
  right: 12px;
  font-size: 24px;
  color: #fff;
  border-radius: 4px;
}

.video-player .volume-box input[type="range"] {
  width: 120px !important;
  position: absolute;
  direction: ltr;
  transform: rotate(-90deg);
  right: -50px;
  bottom: 100px;
}
