/* استایل‌های ویجت ویدیو */

.top-bar {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 20px;
}

.title-video {
   display: flex;
  flex-direction: row;
 align-items: center;
  gap: 10px;
  width: 40%;
}

.title-one {
  font-size: 16px;
  color: #333;
}

.title-two {
  font-size: 26px;
  color: #212179;
}

.category-video {
  display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 15px;
    border-radius: 15px;
  align-items: center;
  background-image: url('https://appwordpress.ir/wp-content/uploads/2025/06/Frame-1463.svg');
  gap: 10px;
  width: 60%;
}

.category-video span {
  font-size: 16px;
  color: #ffffff;
}

.category-video select {
    width: 130px;
  padding: 5px 12px;
  font-size: 16px;
  border-radius: 4px;
  border: none;
  background-color: #ffffff;
  color: #333;
}

.video-wrapper {
  position: relative;
  width: 100%;
  height: 550px;
  background: #000;
  overflow: hidden;
  border-radius: 10px !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px !important;
}

.video-wrapper #mainVideo {
  border-radius: 10px !important;
}

.play-btn,
.pause-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 10;
  padding: 0;
  margin: 0;
  line-height: 0;
}

.pause-btn {
  display: none;
}

.video-wrapper.playing:hover .pause-btn {
  display: block;
}

.thumbnails {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.thumbnails img {
  width: 140px;
  height: 160px;
  object-fit: cover;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-radius: 15px !important;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s;
}

.thumbnails img:hover {
  transform: scale(1.01);
}

.thumbnails img.active {
  border: 2px solid #01ADED;
}

.view-all {
  position: absolute;
  bottom: 20px;
  left: 30px;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
}

.view-all svg {
  margin-right: 5px;
}

.view-all:hover svg {
  transition: all 0.3s ease-in-out;
  transform: translateX(-5px);
}

.no-videos {
  color: #fff;
  text-align: center;
  padding: 20px;
  font-size: 18px;
}

@media (max-width: 768px) {
    .title-video {
      display: flex;
      flex-direction: row;
      align-items: center;
      gap: 10px;
      width: 100%;
    }
    
    .title-one {
      font-size: 16px;
      color: #333;
    }
    
    .title-two {
      font-size: 20px;
      color: #212179;
    }
    
    .category-video {
        width: 100%;
    }

    .top-bar {
      flex-direction: column;
      align-items: center;
      gap: 10px;
    }

    .video-wrapper {
      height: 300px;
      aspect-ratio: 16 / 9;
      overflow: visible;
      border-radius: 10px !important;
    }

    .thumbnails {
      position: static;
      justify-content: flex-start;
      padding: 10px 0;
    }
    
    .thumbnails img {
      width: 80px;
      height: 100px;
      object-fit: cover;
      border: 2px solid #ffffff;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
      border-radius: 15px !important;
      overflow: hidden;
      cursor: pointer;
      transition: transform 0.3s;
    }

    .view-all {
      position: static;
      display: block;
      margin: 10px auto;
      text-align: center;
      background-color: #212179;
      border-radius: 10px;
      padding: 10px 10px;
    }
    
    .play-btn svg,
    .pause-btn svg {
      width: 80px;
      height: 80px;
    }
}
