.third-section {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.ts-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(4px);
  transform: scale(1.1);
  z-index: -1;
}

.third-section .video-wrapper-container {
  position: relative;
  width: 90%;
  max-width: 1000px;
}

.third-section .video-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
  display: flex;
  flex-direction: column;

  backdrop-filter: blur(10px) saturate(180%);
  -webkit-backdrop-filter: blur(10px) saturate(180%);
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.third-section .video-wrapper video {
  width: 100%;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.third-section-progress-bar {
  -webkit-appearance: none;
  appearance: none;
  position: absolute;
  bottom: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 4px;              
  border-radius: 2px;
  background: #555;
  cursor: pointer;
  overflow: hidden;
  transition: height 0.2s ease, border-radius 0.2s ease;
}

.third-section-progress-bar:hover,
.third-section-progress-bar:active {
  height: 8px;              
  border-radius: 4px;
}

.third-section-progress-bar::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 0;
  height: 0;
  background: transparent;
  border: none;
}
.third-section-progress-bar::-moz-range-thumb {
  width: 0;
  height: 0;
  border: none;
  background: transparent;
}

.third-section-progress-bar::-webkit-slider-runnable-track {
  height: 100%; 
  background: linear-gradient(
    to right,
    #F2F2F7 var(--progress, 0%),
    #555 var(--progress, 0%)
  );
  border-radius: inherit;
}

.third-section-progress-bar::-moz-range-progress {
  background: #F2F2F7;
  height: 100%;
  border-radius: inherit;
}

.third-section-progress-bar::-moz-range-track {
  background: #555;
  height: 100%;
  border-radius: inherit;
}

.third-section-video-controls {
  position: relative;
  display: flex;
  justify-content: flex-end; 
  align-items: center;
  background: rgba(0,0,0,0.4);
  padding: 10px 20px;      
  min-height: 60px;        
  box-sizing: border-box;
}

.third-section-video-controls .center-controls {
  position: absolute;
  left: 50%;
  transform: translateX(-50%); 
  display: flex;
  align-items: center;
  height: 100%; 
  gap: 0;
}

.third-section-video-controls .right-controls {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 5px;
}

.third-section-video-controls .right-controls i {
  font-size: 12px;
}

.third-section-video-controls i {
  font-size: 34px;
  cursor: pointer;
}
.third-section-video-controls i + i {
  margin-left: -10px;
}

.third-section-video-controls button {
  background: #0088FF;
  border: none;
  padding: 4px 10px;  
  border-radius: 1000px;
  cursor: pointer;
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 400;
  font-style: regular;
  line-height: 20px;
  letter-spacing: -0.23px;
}

.third-section-video-controls button i{
  font-size: 15px;
  vertical-align: middle;
}

.third-section .video-wrapper-container.fullscreen .third-section-video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px 20px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    background: rgba(0,0,0,0.3);
    opacity: 1; 
    pointer-events: auto;
    transition: none;
}

.third-section .video-wrapper-container.fullscreen .next-overlay {
  right: 20px;
  transform: translate(0, -50%);
}

.third-section .video-wrapper-container.fullscreen .prev-overlay {
  left: 20px;
  transform: translate(0, -50%);
}

.third-section-volume-bar {
  -webkit-appearance: none;
  appearance: none;
  width: 100px;
  height: 4px;
  background: linear-gradient(to right, #F2F2F7 100%, rgba(255,255,255,0.3) 100%);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.third-section-volume-bar:hover {
  transform: scaleY(1.5);
}

.third-section-volume-bar::-webkit-slider-runnable-track {
  height: 100%;
  border-radius: 2px;
}
.third-section-volume-bar::-moz-range-track {
  height: 100%;
  background: rgba(255,255,255,0.3);
  border-radius: 2px;
}
.third-section-volume-bar::-moz-range-progress {
  height: 100%;
  background: #F2F2F7;
  border-radius: 2px;
}

.third-section-volume-bar::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 0;
  height: 0;
}
.third-section-volume-bar::-moz-range-thumb {
  width: 0;
  height: 0;
  border: none;
}

.third-section-video-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 80px;
  color: white;
  opacity: 0;
  pointer-events: none; 
  transition: opacity 0.3s ease;
  text-shadow: 0 4px 20px rgba(0,0,0,0.6);
}
.third-section-video-overlay .show {
  opacity: 1;
}

.third-section-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;  
  height: 20px;  
  display: none; 
  z-index: 30;
}

.third-section-loader div {
  width: 10%;     
  height: 30%;    
  background: #fff;
  position: absolute;
  left: 50%;
  top: 25%;       
  opacity: 0;
  border-radius: 50px;
  animation: fade 1s linear infinite;
}

@keyframes fade {
  from { opacity: 1; }
  to { opacity: 0.2; }
}

.third-section-loader div:nth-child(1) { transform: rotate(0deg)   translate(0, -120%);  animation-delay: 0s; }
.third-section-loader div:nth-child(2) { transform: rotate(45deg)  translate(0, -120%);  animation-delay: -0.125s; }
.third-section-loader div:nth-child(3) { transform: rotate(90deg)  translate(0, -120%);  animation-delay: -0.25s; }
.third-section-loader div:nth-child(4) { transform: rotate(135deg) translate(0, -120%);  animation-delay: -0.375s; }
.third-section-loader div:nth-child(5) { transform: rotate(180deg) translate(0, -120%);  animation-delay: -0.5s; }
.third-section-loader div:nth-child(6) { transform: rotate(225deg) translate(0, -120%);  animation-delay: -0.625s; }
.third-section-loader div:nth-child(7) { transform: rotate(270deg) translate(0, -120%);  animation-delay: -0.75s; }
.third-section-loader div:nth-child(8) { transform: rotate(315deg) translate(0, -120%);  animation-delay: -0.875s; }


.ts-prevBtn.disabled,
.ts-nextBtn.disabled,
.ts-prevBtn-small.disabled,
.ts-nextBtn-small.disabled{
  opacity: 0.5;    
  pointer-events: none;  
  cursor: not-allowed;
}





