@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@200..1000&display=swap');

.single-cleint-portfolio-container-video{
  background-color: #ffffff;
  padding: 15px 15px 0 15px;
  width: 100%;
  max-width: 55%;
  border-radius: 10px;
  margin: 30px 0;
}

.general-wrapper {
  width: 100%;
  color: #fff;
  text-align: center;
  direction: ltr;
  font-size: 12px;

}

.video-wrapper {
  position: relative;
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  background: #58595b;
  overflow: hidden;
  padding-top: 56.25%;
  aspect-ratio: 2/1.4;

}
.video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* زر التشغيل الكبير الذي يظهر فوق الفيديو */
.big-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  display: block;
  transition: transform 0.2s ease, opacity 0.2s ease;
  z-index: 10;
  font-size: 60px;
}
.big-play-button:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

/* طبقة الترجمة (الكابتشن) */
.caption-overlay {
  position: absolute;
  bottom: 2%;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  padding: 10px;
  font-size: 14px;
  line-height: 1.4;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  background: rgba(0, 0, 0, 0.5);
  border-radius: 4px;
  pointer-events: none;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;

}
.caption-overlay.arabic {
  text-align: right;
  direction: rtl;
  font-family: "Cairo", sans-serif;
  font-weight:500;
}
.caption-overlay.english {
  text-align: center;
  direction: ltr;
  
}

/* شريط التحكم أسفل الفيديو */
.controls-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;

}
.controls-uppper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: row;
  padding: 10px 0 10px 0;

}

.controls-uppper-left {
  display: flex;
  justify-content:center;
  align-items:center;
  flex-direction: row;
}
.controls-uppper-right {
  display: flex;
  justify-content:space-between;
  align-items: center;
  flex-direction: row;
  position: relative;
}
.controls-lower {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
}

.control-btn{
  margin-right: 5px;
  
}

.fullscreen-btn{
  margin-left: 15px;
  justify-content:flex-end;
}

.caption-btn{
  justify-content:flex-end;
}

.control-btn,
.caption-btn,
.fullscreen-btn {
  color: #58595b;
  cursor: pointer;
  font-size: 18px;
  transition: color 0.2s ease, transform 0.2s ease;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  width: 30px;
  height: 30px;
}
.control-btn:hover,
.caption-btn:hover,
.fullscreen-btn:hover {
  color: #ccc;
  transform: scale(1.1);
}
.progress-container {
  flex: 1;
  cursor: pointer;
  height: 6px;
  background: #ccc;
  position: relative;
}
.progress-filled {
  height: 100%;
  width: 0%;
  background: #58595b;
  transition: width 0.2s ease;
}
.time-display {
  height: 30px;
  border-radius: 3px;
  font-size: 12px;
  color: #58595b;
  margin-right: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "Cairo", sans-serif;
  font-weight:400;
  letter-spacing: 0.03em;
}

/* إعدادات التحكم بالصوت */
.volume-container {
  display: flex;
  align-items: center;
  position: relative;
}
/* قائمة إعدادات الصوت تُعرض عند النقر على أيقونة الصوت */
.volume-options {
  display: none;
  position: absolute;
  bottom: 30%;
  left:90%;
  background: #fff;
  padding: 0;
  border-radius: 4px;
  z-index: 50;
}
/* تغيير اتجاه مؤشر الصوت ليكون عموديًا */
.volume-slider {
  width: 80px;
  -webkit-appearance: none;
  appearance: none;
  height: 5px;
  border-radius: 5px;
  outline: none;
  /* تدوير العنصر لكي يكون عموديًا */
}
.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #58595b;
  cursor: pointer;
}
.volume-slider::-moz-range-thumb {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #58595b;
  cursor: pointer;

}

/* إعدادات قائمة اختيار الترجمة */
.caption-options {
  display: none;
  position: absolute;
  bottom: 100%;
  right: 50%;
  background:#fff;
  z-index: 50;

}
.caption-options button {
  background: none;
  border: none;
  color: #58595b;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease;
  padding: 4px 10px ;

}
/* تحديد الخيار المختار بإظهار خلفية ولون ونمط خط مختلف */
.caption-options button.active {
  font-weight: bold;
}
.caption-options button:hover {
  background: #686868;
  color: #fff;
}

@media only screen and (max-width: 768px) {

  .single-cleint-portfolio-container-video{
    width: 100%;
    max-width: 100%;
    padding: 30px 0 0 0px;
    border-radius: 0;
    margin: 0px;
  }
  


  .control-btn{
    margin-left: 10px;
  }
  
  .fullscreen-btn{
    margin-right: 10px;
  }
  


}




  

