.ultra-video-widget {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  align-items: flex-start;
  font-family:"یکان بخ", Sans-serif;
  height: 380px;
    overflow: hidden;
}

.ultra-video-widget .video-overlay {
  position: absolute;
  top: 0;
  right: 0;
   border-radius: 24px;
  bottom: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.4); /* مشکی با شفافیت 40% */
  pointer-events: none; /* تا کلیک از طریقش عبور کنه */
  
  height: 380px;
}
.video-preview {
  opacity: 1;
  transition: opacity 0.4s ease;
  position: relative;
  overflow: hidden;
}

.video-preview.fade {
  opacity: 0;
}

.video-preview.show {
  opacity: 1;
}


.video-preview {
  flex: 1 1 60%;
  max-width: 650px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.video-preview img {
  display: block;
  width: 100%;
  height: auto;
  max-width:650px;
  height:380px;
  object-fit:cover;
  border-radius: 24px;
 
}

.video-info {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
   position: absolute;
  bottom: 30px;
  right: 16px;
  background-color:white;
      width: 95%;
z-index: 9;
    padding:20px;
    border-radius: 24px;
}

.video-info .video-meta-main {
    display:flex;
    gap:10px;
    align-items:center;
}

.video-link {
  background-color: #f58d70;
  color: #fff;
  padding: 10px 18px;
  border-radius: 25px;
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: all 0.3s ease;
}

.video-link:hover {
  background-color: #e55a4c;
  transform: translateX(5px);
}

.video-title {
  font-size: 16px;
  font-weight: bold;
  color: #222;
}

.video-duration {
  font-size: 14px;
  color: #999;
}

.video-list {
  flex: 1 1 35%;
  max-height: 380px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding:20px 10px;
}

.video-list::-webkit-scrollbar {
  width: 4px;
}
.video-list::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}

.video-preview .play-icon {
    display: flex;
    width: 48px;
    height: 48px;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 0px 10px 0px;
    transition: 0.3s ease-in-out;
    gap: 10px;
    border-radius: 53.5px;
    background:  #FFF;
    z-index: 9;
}
 .video-preview .play-icon svg path {
    fill: #ff6f61;
    transition: 0.3s ease-in-out;
}
 .video-preview .outer-icon {
    position: absolute;
top: 35%;
    right: 42%;
    display: flex;
    width: 80px;
    height: 80px;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(2px);
    gap: 10px;
    border-radius: 60.5px;
    background: rgba(255, 255, 255, 0.32);
    transition: all .3s ease-in-out;
}

 .video-preview:hover .outer-icon{
         width: 85px;
    height: 85px;
    transition: all .3s ease-in-out;
    top: 34.5%;
    right: 41.5%;
 }
 .video-preview:hover .play-icon {
background: #ff6f61;
    width: 58px;
    height: 58px;
transition: all .3s ease-in-out;
}
 .video-preview .play-icon svg {

    transition: all .3s ease-in-out;
 }
 .video-preview:hover .play-icon svg {
    width: 20px;
    height: 20px;
    transition: all .3s ease-in-out;
 }
 .video-preview:hover .play-icon svg path{
fill: white;
transition: all .3s ease-in-out;
}

.video-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #eee;
  transition: background 0.3s ease;
  
    gap: 20px;
    background-color: #ffffff;
    border-radius: 20px;
    padding: 20px 10px;
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.05);


}

.video-list-item:hover {
  background-color: #f0f0f0;
}

.video-meta {
  display: flex;
    flex-direction: row;
    gap: 20px;
}

.video-number {
  font-size: 16px;
  font-weight: bold;
  color: #F58D70;
  background-color:#FFF0EC;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex
;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}
.video-list-item.active {
  background-color: #fff0ec;
  border-color: #F58D70;
}
.video-number-main {
 
  background: #F58D70;
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
}
.video-preview {
  position: relative;  
}


@media (max-width: 860px) {
    
.ultra-video-widget {

    flex-direction:column;
    overflow:visible;
    height: auto;
    align-items: center;

}
.video-preview {
      width:100%;
}
.video-list {
   width:100%;
   max-height: 200px;
}
}

