*,
*::before,
*::after {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  outline: none !important;
}

body {
  font-family: "poppins";
}

a {
  text-decoration: none;
}

li {
  list-style: none;
}

.h-fit {
  height: fit-content;
}

/******** 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;
}

.player {
  width: 100%;
  /* height: 203px; */
  display: flex;
  position: relative;
  margin: 0.5rem auto;
  width: 100%;
  height: auto;
  overflow: hidden;
}

.full.player {
  height: auto;
  flex-direction: column;
}

.add-comment.player-section {
  min-height: unset;
}

.video-section {
  /* width: 310px; */
  width: 50%;
  padding: 15px 17px 15px 0;
  position: relative;
  direction: ltr;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  background: var(--theme-primary);
  border-radius: 20px;
}

.full.player .video-section {
  width: 100%;
  padding: 15px;
}

.video-section .icon-arafi-type {
  position: absolute;
  z-index: 10;
  font-size: 35px;
  top: 26px;
  right: 26px;
  color: #00b8be;
}

.video-container {
  display: flex;
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
  background: linear-gradient(
    143deg,
    rgba(60, 210, 255, 0.7) 2.07%,
    rgba(140, 215, 196, 0) 46.98%,
    rgba(225, 221, 134, 0.7) 94.15%
  );
  background-blend-mode: color, normal;
}

.video-layer {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 5px;
  background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0) 61.47%,
      rgba(0, 0, 0, 0.8) 95.45%
    ),
    url(<path-to-image>) transparent -28.425px -28.63px / 105.652% 123.699%
      no-repeat;
}

.controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  padding: 32px;
}

.top-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  margin: 0 0 10px;
}

.player .left {
  display: flex;
  align-items: center;
  top: 0;
  left: unset;
  background-color: transparent;
}

.player .left::after,
.player .left::before {
  width: 0;
  height: 0;
  border: unset;
  box-shadow: unset;
}

.play-pause-btn,
.volume-btn {
  background: none;
  border: none;
  color: #ffff;
  font-size: 18px;
  cursor: pointer;
  padding-left: 0;
  display: flex;
}

.volume-container {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.video-section .icon-volume-loud-svgrepo-com-1 {
  opacity: 0.6;
  transition: 0.3s;
  line-height: 0;
}

.video-section .icon-volume-loud-svgrepo-com-1:hover,
.volume-container.active .icon-volume-loud-svgrepo-com-1 {
  opacity: 1;
}

.video-section .volume-dropdown {
    margin-top: 4px;
}

.video-section #volumeControl {
  width: 60px;
}

.volume-container.active .volume-dropdown {
  display: block !important;
}

.progress-bar-container {
  width: 100%;
  height: 2px;
  background: rgb(110, 110, 110);
  cursor: pointer;
  position: relative;
  border-radius: 20px;
  bottom: -3px;
}

.audio .progress-bar-container {
  bottom: -5px;
  background-color: #b5b5b5;
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: #ffff;
}

.video-title-time {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: flex-end;
  gap: 6px;
  overflow: hidden;
  font-family: Iran-Sans;
  font-weight: 300;
  line-height: 10.96px;
  word-wrap: break-word;
}

#currentTime {
  overflow: hidden;
  color: rgb(113, 114, 114);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: Rubik;
  font-size: 11px;
  font-style: normal;
  font-weight: 300;
  line-height: 10.96px;
}

#videoTitle {
  max-width: 100px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: rgb(113, 114, 114);
  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: 100%;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.sticky .playlist-section {
  margin-top: 0;
}

.playlist {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-content: start;
  overflow-y: auto;
  direction: ltr;
  margin-block: 1rem;
  padding-block: 1rem;
}

.full .playlist {
  width: 100%;
}

.full .playlist img {
  position: absolute;
  width: 100%;
  height: 100%;
}

.sticky .playlist {
  overflow-x: hidden;
  height: 90%;
}

.sticky .playlist img {
  width: 100%;
}

.playlist-item img {
  transition: 0.4s;
}

.playlist-item:not(.active):hover img {
  filter: drop-shadow(0 0px 3px #04f1c1);
}

.sticky .playlist-item {
  width: 98%;
  right: -0.5%;
}

.sticky .playlist-item.active {
  width: 101.9%;
}

.sticky .playlist-item.active {
  right: 0.5%;
}

.sticky .playlist-item.active:first-child {
  margin-top: 0;
}

.sticky .video-section {
  padding: 15px;
}

.playlist-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #323232;
  cursor: pointer;
  transition: background 0.3s;
  border-radius: 7px;
  width: 100%;
  min-height: 80px;
  position: relative;
}

.playlist-item .item-info {
  z-index: 2;
  width: 100%;
  height: 100%;
  padding: 0 24px;
}

.playlist-item.active .item-right span:last-child {
  color: white;
}

.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;
}

.audio .playlist-item.active {
  padding: 0 2rem 0 0rem;
}

.active .audio-overlay {
  padding-right: 0;
}

.playlist-item::after,
.playlist-item::before {
  content: "";
}

.item-left {
  display: flex;
  align-items: center;
  height: 100%;
}

.item-left span,
.audio-overlay > span {
  direction: rtl;
  padding: 2px 17px 4px;
  margin-left: 4px;
  border-radius: 6px;
  border: 0.5px solid rgba(0, 0, 0, 0.07);
  background: var(--theme-primary);
  color: white;
}

.item-right button,
.play-pause-button {
  background: none;
  border: none;
  color: var(--theme-primary);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-content: center;
  align-items: center;
  z-index: 1;
  line-height: 0;
}

.active .item-left span,
.active .audio-overlay > span {
  border-radius: 6px;
  border: 0.5px solid rgba(0, 0, 0, 0.07);
  background: rgba(255, 255, 255, 0.77);
  color: #5c5c5c;
}

.active .item-right button,
.active .item-right span,
.active .play-pause-button {
  color: white;
}

.audio .active .play-pause-button svg {
    margin-inline-start: 0.5em;
}

.item-right button .demo-icon,
.play-pause-button .demo-icon {
  font-size: 32px;
}

.item-right {
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-right span,
.audio-overlay > div span {
  direction: rtl;
  color: #323232;
  text-align: right;
  font-family: Iran-Sans;
  font-size: 16px;
  font-style: normal;
  font-weight: 300;
  line-height: 200%;
  /* margin-bottom: 5px; */
  margin-right: 4px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}

.active .audio-overlay > div span {
  color: white;
}

.item-right span:last-child {
  direction: rtl;
  width: 80%;
  padding-right: 20px;
  color: #323232;
  font-size: 13px;
  font-family: Rubik;
  font-weight: 700;
  line-height: 17.81px;
  word-wrap: break-word;
}

/******* audio player ***/
.audio.player {
  height: unset !important;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.audio.player img {
  width: 100%;
}

.audio .demo-icon.icon-arafi-type {
  font-size: 41px;
  flex-shrink: 0;
}

.audio .playlist-section {
  width: 100%;
}

.audio .scroll-buttons img {
  width: 48px !important;
}

.audio .playlist {
  width: 100%;
  min-height: 38px;
  padding: 0.4rem 0;
}

.audio .playlist img {
  position: absolute;
  width: 100%;
  height: 100%;
}

.audio-overlay,
.audio .bottom-controls {
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 2rem;
}

.audio .active .bottom-controls {
  padding: 0 0.25rem 0 2.3rem !important;
}

.audio-overlay div {
  display: flex;
  align-items: center;
}

.audio.player .playlist {
  margin: 0;
}

.audio.player .item-right {
  margin-left: 15px;
  margin-right: 15px;
}

.audio-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.progress-wrapper {
  flex: 1;
  background-color: #ccc;
  height: 5px;
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.audio-progress-bar {
  height: 100%;
  background-color: #00b8be;
  width: 0%;
}

.time-display {
  white-space: nowrap;
  font-size: 12px;
  color: #333;
}

.audio.player .item-left,
.audio.player .audio-controls {
  height: 100%;
}

.item-left img {
  width: auto;
  height: 100%;
}

.controls {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.top-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.35rem;
}

.left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.video-title-time {
  display: flex;
  align-items: center;
  gap: 10px;
}

.audio .controls {
  position: absolute;
  bottom: 0px;
  left: 138px;
  right: 14px;
  height: 100%;
  display: inline;
  /* justify-content: center; */
}

.audio .playlist-item {
  position: relative;
}

.audio .volume-container {
  height: 14px;
}

#audio-playlist .volume-dropdown {
  display: none;
  position: absolute;
  bottom: -11px;
  left: 15px;
}

.audio .item-right span:last-child {
  width: unset;
}

.audio .top-controls {
  margin: 0;
}

.audio .item-right span:first-child {
  padding: 0;
  margin-right: 6px;
}

.audio .volume-btn {
  margin-top: 2px;
}

@media screen and (max-width: 768px) {
  .audio .top-controls span:first-child,
  .audio .left {
    display: none;
  }

  .audio .video-title-time {
    justify-content: space-between;
  }

  .audio .video-title-time span:first-child {
    display: block;
  }

  .audio .controls {
    right: 5px;
  }
}

@media screen and (max-width: 992px) {
  .audio.player {
    padding: 0;
  }

  .form-scroll > .row {
    margin-top: 0;
  }

  .form-scroll .title {
    margin-bottom: 5rem;
  }

  .form-scroll .form-group {
    margin-top: 0.25rem;
  }
}

#masonryGrid {
  column-count: 5;
  column-gap: 1rem;
}

@media (max-width: 1200px) {
  #masonryGrid {
    column-count: 4;
  }
}
@media (max-width: 768px) {
  #masonryGrid {
    column-count: 2;
  }
}
@media (max-width: 576px) {
  #masonryGrid {
    column-count: 1;
  }
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  width: 100%;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
