/* HELPER CSS */
.line-clamp {
  display: -webkit-box !important;
  padding: 0 !important;
  --line-clamp: attr(data-line-clamp type(<integer>), none);
  --line-height: 1.5em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: var(--line-clamp);
  line-height: var(--line-height);
  height: calc(var(--line-height) * var(--line-clamp));
  overflow: hidden !important;
  text-overflow: ellipsis;
}

.overlay {
  --alpha: 0.5;
  --clr: rgba(0, 0, 0, var(--alpha));
  --clr-gradient: linear-gradient(var(--clr), var(--clr));
  border-image: var(--clr-gradient) fill 1;
}

/******** player **********/
.playlist::-webkit-scrollbar {
  width: 0px;
}

.playlist::-webkit-scrollbar-track {
  background: transparent;
}

.playlist::-webkit-scrollbar-thumb {
  background-color: #756750;
  border-radius: 20px;
  border: 3px solid transparent;
}

.playlist {
  scrollbar-width: thin;
  scrollbar-color: #756750 transparent;
}

* {
  outline: none !important;
}

.player {
  width: 100%;
  display: flex;
  position: relative;
  border-radius: 20px;
}

.player .demo-icon {
  font-size: 10px;
}

.video-section {
  width: 69.94%;
  position: relative;
  direction: ltr;
  display: flex;
  justify-content: center;
  align-items: top;
  flex-shrink: 0;
  background-color: #9ebd9c;
  border-radius: 30px;
}

.video-title {
  overflow: hidden;
  color: #002a4c;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: IRANSansXFaNum;
  font-size: 20px;
  font-style: normal;
  font-weight: 900;
  line-height: normal;
}

.video-container {
  display: flex;
  height: 100%;
  overflow: hidden;
  border-radius: 30px;
  /* background: linear-gradient(143deg, rgba(60, 210, 255, 0.70) 2.07%, rgba(140, 215, 196, 0.00) 46.98%, rgba(225, 221, 134, 0.70) 94.15%); */
  /* background-blend-mode: color, normal; */
}

video {
  width: 100%;
  height: 100%;
  display: flex;
  object-fit: cover;
  border-radius: 30px;
}

.controls {
  position: absolute;
  bottom: 5px;
  left: 5px;
  right: 5px;
  display: flex;
  flex-direction: column;
  padding: 5px;
}

.top-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  margin: 0 0 3px;
}

.left {
  display: flex;
  align-items: center;
}

.play-pause-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding-left: 0;
  display: flex;
  position: absolute;
  right: 50%;
  transform: translateX(50%);
  bottom: 53%;
  z-index: 100;
}

.video .fa-play {
  cursor: pointer;
  color: #0d7f7a;
}

.video .play-left {
  transform: rotate(180deg);
}

.progress-bar-container {
  width: 92%;
  height: 3px;
  background: #0d7f7a;
  cursor: pointer;
  position: absolute;
  border-radius: 20px;
  bottom: 25%;
  right: calc(4% + 3px);
  border-radius: 50px;
  direction: rtl;
}

.video-svg {
  width: 100%;
  height: auto;
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: #ffffff;
  border-radius: 50px;
  direction: rtl;
  transition: all ease 50ms;
}

#video-popup {
  width: 38.5px;
  height: 19px;
  border-radius: 5px;
  background-color: #9ebd9c;
  color: #fff;
  position: absolute;
  top: -30px;
  font-size: 10px;
  font-family: Rubik;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity ease 300ms;
  transform: translateX(50%);
  z-index: 100;
}
#video-popup span {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
}

#video-popup::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background-color: inherit;
  position: absolute;
  transform: rotate(45deg);
  bottom: -14%;
  right: 35%;
}

.circle {
  position: absolute;
  width: 7px;
  height: 7px;
  background-color: #ffffff;
  border-radius: 50px;
  top: 50%;
  transform: translate(50%, -50%);
  box-shadow: 0 0 0 5px #ffffff80;
  transition: all ease 50ms;
}

.video-title-time {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: flex-end;
  gap: 6px;
  overflow: hidden;
  font-family: Rubik;
  font-weight: 300;
  line-height: 10.96px;
  word-wrap: break-word;
}

.video-times {
  width: 93%;
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: space-between;
  top: 43%;
  right: 4%;
  flex-direction: row-reverse;
}

#currentTime,
#totalTime {
  overflow: hidden;
  color: #fff;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: Rubik;
  font-size: 10px;
  font-style: normal;
  font-weight: 400;
  line-height: 19px;
}

#videoTitle {
  max-width: 100px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #00b8be;
  font-size: 10px;
  font-family: Rubik;
  font-weight: 700;
  line-height: 10.96px;
  word-wrap: break-word;
}

.total-video {
  overflow: hidden;
  color: #00767a;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: Rubik;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 190%;
  letter-spacing: -0.84px;
}

.total-video-time {
  overflow: hidden;
  color: #ab9d86;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: Rubik;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 190%;
  letter-spacing: -0.84px;
}

.loading-spinner {
  position: absolute;
  transform: translate(-50%, -50%);
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid #00b8be;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
  display: none;
  z-index: 10;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.playlist-section {
  width: 30%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.scroll-buttons {
  display: flex;
  position: absolute;
  width: 100%;
  flex-direction: row;
  justify-content: space-between;
  bottom: 0;
}

.scroll-buttons button {
  background: none;
  border: none;
  color: #00b8be;
  font-size: 16px;
  cursor: pointer;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.scroll-buttons img {
  width: 40px;
}

.scroll-buttons svg {
  position: absolute;
}

.playlist {
  height: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  align-content: start;
  margin-right: 24px;
  padding-right: 24px;
  overflow-y: auto;
  direction: ltr;
  width: 100%;
}

.playlist-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #00c4cc;
  cursor: pointer;
  transition: background 0.3s;
  width: calc(100% - 8px);
  flex-shrink: 0;
  border-bottom: 1px solid #9a9a9a;
  height: 50px;
}

.playlist-item.active .item-left button:first-child,
.playlist-item.active .item-left button:nth-child(3) {
  font-size: 8px;
}

.playlist-item.active .item-left button:nth-child(3) {
  margin-left: -8px;
  margin-right: 3px;
}

.playlist-item.active .item-left button:nth-child(2) {
  margin-left: -3px;
}

.item-left {
  display: flex;
  align-items: center;
  height: 100%;
}

.item-left button {
  background: none;
  border: none;
  color: #00c4cc;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-content: center;
  align-items: center;
}

.item-left img {
  width: 100%;
  position: relative;
  border-radius: 10px;
  max-width: 100%;
  overflow: hidden;
  height: 28px;
  object-fit: cover;
}

.item-right {
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-grow: 1;
}

.item-right span:first-child {
  color: #9ebd9c;
  font-size: 12px;
  font-family: Rubik;
  font-weight: 300;
  line-height: 16.44px;
  padding-left: 8px;
  direction: rtl;
  word-wrap: break-word;
  transition: 0.3s;
}

.playlist-item:not(.active):hover .item-right span:first-child {
  color: #0d7f7a;
}

.item-right span:last-child {
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: IRANSansXFaNum;
  font-size: 15px;
  font-style: normal;
  font-weight: 900;
  line-height: normal;
}

.active .item-right span:last-child {
  color: #002a4c;
}

@media (max-width: 768px) {
  .video.player {
    width: 100%;
    height: auto;
    flex-direction: column;
    justify-content: center;
  }
  .play-pause-btn svg {
    width: 35px;
    height: 35px;
  }

  .video-section,
  .playlist-section {
    width: 100%;
  }

  .video-section {
    padding: 15px 15px 0px;
  }
  .playlist {
    justify-content: center;
    margin-right: 0;
    padding-bottom: 10px;
  }

  .playlist-item,
  .playlist-item.active {
    width: 93%;
  }

  video {
    height: auto;
  }
  .mt-on-sm-3 {
    margin-top: 1rem;
  }
}

@media (max-width:565px) {
  .audio-container {
    flex-direction: column;
  }
  #audioPlayPause {
    order: -1;
  }
}

.audio-container {
  display: flex;
  align-items: center;
  column-gap: 0.5rem;
  row-gap: .25rem;
}

.audio.player {
  height: 42px;
  width: 100%;
  background-color: #479887;
  border-radius: 50px;
  position: relative;
  padding: 0.5rem 1rem;
  justify-content: space-between;
}

.play-right,
.play-left {
  cursor: pointer;
  transition: all ease 300ms;
}

.audio_play-pause {
  background-color: transparent;
  border: none;
  outline: none;
}

.audio-progress-wrapper {
  width: 93%;
  height: 3px;
  border-radius: 50px;
  background-color: #0d7f7a;
  position: absolute;
  right: calc(7% / 2);
  bottom: 30%;
  cursor: pointer;
}

.audio-progress-bar {
  position: absolute;
  height: 100%;
  background-color: #fff;
  border-radius: 50px;
}

.audio-thumb {
  position: absolute;
  width: 7px;
  height: 7px;
  background-color: #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 3px #ffffff6f;
  transform: translate(50%);
  top: -2.5px;
}

.audio.player .time-display,
.audio.player .total-time-display {
  color: #fff;
  font-size: 10px;
}
