.video-wrapper {
  max-width: 1300px;
  overflow: hidden;
  display: flex;
  direction: rtl;
}

.video-main {
  flex: 1;
  padding: 0 0 0 20px;
}

.video-main-title {
  display: none !important;
}

.video-main-frame {
  position: relative;
  min-height: 260px;
  max-height: 500px;
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
}

.video-main iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.video-list {
  width: 30%;
  min-width: 270px;
  border-right: 1px solid #c5c5c5;
  padding: 0 10px;
  max-height: 460px;
  overflow-y: auto;
  direction: rtl;
}

.video-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  transition: background 0.2s ease;
  position: relative;
}

.video-item:not(:last-child) {
  border-bottom: 1px solid #c5c5c5;
  margin-bottom: 16px;
  padding-bottom: 16px;
}

.video-item::before {
  content: none;
}

.video-item:hover {
  background: transparent;
}

.video-item.active {
  background: transparent;
}

.video-item.active .video-text span {
  color: #24aac1;
}

.thumb {
  position: relative;
  width: 120px;
  height: auto;
  aspect-ratio: 16 / 9;
  flex-shrink: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  transition: background 0.3s ease-in-out; 
  background: transparent; 
}

.thumb:hover::after {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65), transparent);
}

.play-icon-wrapper img {
  width: 30px !important;
  height: 30px !important;
  transition: transform 0.3s ease;
  opacity: 0.7;
}

.thumb:hover .play-icon-wrapper img {
  transform: scale(1.3);
  opacity: 0.7;
}

.play-icon-wrapper {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.video-text {
  flex: 1;
  font-family: "STV", "Myriad", sans-serif !important;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.4;
  color: #ffffff;
  display: flex;
  align-items: center;
}

.video-text span {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: none;
	transition: color 0.3s ease;
}

.video-item:hover .video-text span {
  color: #24aac1;
}

.video-list::-webkit-scrollbar {
  width: 8px;
}

.video-list::-webkit-scrollbar-track {
  background: #c5c5c56b;
}

.video-list::-webkit-scrollbar-thumb {
  background: #ffffff;
}

.video-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.8);
}

.fade-in {
  animation: vp-fade-in 0.2s ease forwards;
}

.fade-out {
  animation: vp-fade-out 0.2s ease forwards;
}

@keyframes vp-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes vp-fade-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@media (max-width: 900px) {
  .video-wrapper {
    flex-direction: column;
    height: auto;
  }

  .video-main {
    order: 1;
    height: auto;
  }

  .video-list {
    order: 2;
    width: 100%;
    height: 220px;
    display: block;
    max-height: none;
  }
}