  .video-wrapper {
  position: relative;
    padding-top:3rem;
    width: 50vw;
}
 #video2 {
  display: block;
  width: 100%;
  overflow: hidden;
  margin:0;
  padding-top:0;
 opacity: 0.05;
  transition: opacity 4s ease;
  z-index: 2;
}
 #video2:hover {
opacity: 0.4;
transition:0.5s ease-in-out;
 }
#playBtn {
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size:clamp(2rem,10vw - 6rem,10rem);
  color: var(--grey--azure);
  cursor: pointer;
  z-index: 10;
  user-select: none;
  pointer-events: auto;
  text-shadow: 0 0 10px black;
}
 #playBtn:hover {
  color:rgba(16, 42, 83, 0.407);
 }
 #playBtn1 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width:clamp(3rem,10vw - 5rem,20rem);
  border:none;
  z-index: 10;
  opacity: 0.3;
 }
  #playBtn1:hover {
  opacity: 0.8;
 }
 #playPause {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
}
.icon {
  width: 0.2rem;
  height: 0.2rem;
  fill: var(--pure--white);
  pointer-events: none;
}
.hidden {
  display: none !important;
}
#timeDisplay {
  font-size: clamp(0.7rem,2vw - 1.1rem,2rem);
   white-space: nowrap; 
}
 #fullscreen {
  color:var(--pure--white);
  font-size: (1rem,3vw - 1.5rem ,4rem);
  display: flex;
.icon, .icon-fullscreen {
  width: 2rem;
  height: 2rem;
  fill: white; /* or your desired color */
}
 }
.video-wrapper:fullscreen {
  width: 100%;
  height: 100%;
  background: black;
  display: flex;
  justify-content: center;
  align-items: center;
}
.video-wrapper:-webkit-full-screen {
  width: 100%;
  height: 100%;
  background: black;
  display: flex;
  justify-content: center;
  align-items: center;
}
.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
 .custom-controls {
  position: absolute;
  width: 100%;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;

  color:var(--pure--white);
  opacity: 0.2;
  z-index: 20;
  transition: opacity 0.3s ease;
  align-items: stretch;
}
 .custom-controls:hover {
  opacity: 1;
 }
.custom-controls.hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.custom-controls button {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
}
.custom-controls button img,
.custom-controls button svg {
  width: 2rem;
  height: 2rem;
  display: block;
  color:white;
}
.range_bar {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-sizing: border-box;
}
#progress {
  flex: 1;
  width: 100%;
  margin: 0; /* important */
}
input[type="range"] {
flex:1;
background: none;
color: white;
height:clamp(0.2rem,2vw - 2.2rem,1rem);
cursor: pointer;
opacity: 1;
-webkit-appearance: none;
appearance: none;
}
/* WebKit-track */
#progress::-webkit-slider-runnable-track {
  height: 0.2rem;
  background: linear-gradient(to right, var(--yellow-star) 0%, var(--yellow-star) 0%, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.1) 100%);
  background-size: 0% 100%;
  background-repeat: no-repeat;
}
/* WebKit-track */
#volume::-webkit-slider-runnable-track {
  height: 0.2rem;
   background:var(--grey-zone);
}
/* Firefox-track */
input[type="range"]::-moz-range-track {
  height: 0.7rem;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.718);
  border-radius: 50%;
}
/* WebKit-thumb */
#volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 0.7rem;
  height: 0.7rem;
  background:var(--pure--white);
  border-radius: 50%;
  cursor: pointer;
  border: none;
  margin-top: -4px;
  transition: left 0.2s linear;
  opacity: 1;
}
#progress::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 0.7rem;
  height: 0.7rem;
  background:var(--pure--white);
  border-radius: 50%;
  cursor: pointer;
  border: none;
  margin-top: -4px;
  transition: left 0.2s linear;
  opacity: 0;
}

/* Firefox-thumb */
input[type="range"]::-moz-range-thumb {
  width: 1rem;
  height: 1rem;
  background: rgb(255, 255, 255);
  border-radius: 50%;
  cursor: pointer;
  border: none;
  transition: transform 0.2s linear;
}
input[type="range"]::-moz-range-progress {
  background-color: var(--yellow-star);  /* bara fyllningen */
  height: 0.4rem;
  border-radius: 5px;
}

 .sound-container {
  display: flex;
  justify-content: space-between; /* Left controls on left, fullscreen on right */
  align-items: center;
  width: 100%; /* full width of video controls */
  padding: 0.5rem 1rem;
  box-sizing: border-box;
}

.controls-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
#volume {
 opacity: 0; 
  pointer-events: none; 
  transition: opacity 0.3s ease;
  width: clamp(2rem,10vw - 3rem,10rem); 
  flex: 0 0 auto;
  height: 0.2rem;
 }
 .sound-container:hover #volume{
opacity: 1;
pointer-events: auto;
 }
#soundBtn {
  color:var(--pure--white);
  border:none;
  height:clamp(1.4rem,3vw - 1.2rem ,2.5rem);
  width:clamp(1.4rem,3vw - 1.2rem,2.5rem);
  z-index: 11;
 }
 #mute {
  position: relative;
  z-index: 11;
  background: none;
  border: none;
  cursor: pointer;
}

#mute img {
  pointer-events: none;
}

@media (max-width: 1024px) {
  .video-wrapper {
  width: 90vw;
}
}
