@import url('color.css');
@import url('fonts.css');
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "vazir";
   
}
.spase{
    height: 0px;
}

.videos_box{
background-color: #eee;
box-shadow: 0 6px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.1); /* سایه باکس */
padding: 1.5rem;
margin: 0 auto;
padding-top: 2.5rem;
border-radius: 1rem;
margin-top:4rem;
}
.video-thumbnail {
    position: relative;
    margin-bottom: 1rem;
    cursor: pointer;
    border-radius: 5px;
    overflow: hidden;
    transition: transform 0.3s ease;
}
.list_v{
    overflow-y: scroll;
    height: 500px;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}







/* استایل اسکرول‌بار */
.list_v::-webkit-scrollbar {
    width: 10px;
    background-color: #f1f1f1;
    border-radius: 10px;
}

.list_v::-webkit-scrollbar-thumb {
    background-color: var(--blue_one);
    border-radius: 10px;
    border: 2px solid #f1f1f1;
}

.list_v::-webkit-scrollbar-thumb:hover {
    background-color: var(--blue_one);
}

.list_v::-webkit-scrollbar-track {
    background-color: #f1f1f1;
    border-radius: 10px;
}
.video-thumbnail img {
    width: 100%;
    height: 250px;
  
}

.video-thumbnail:hover {
    transform: scale(1.05);
}

.video-thumbnail .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 15px;
    color: white;
    background-color: var(--blue_one);
    border-radius: 50%;
    padding: 10px;
    padding-left: 15px;
    padding-right: 15px;
    box-shadow: 0 6px 6px rgba(183, 179, 179, 0.1), 0 1px 3px rgba(242, 237, 237, 0.1); /* سایه باکس */
}

.video-thumbnail .video-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    font-family: 'vazir';
    background-color: var(--blue_one);
    color: white;
    text-align: center;
    padding: 5px;
    font-size: 0.95rem;
}

.video-display video {
    width: 100%;
    height: 500px;
    object-fit: fill;
    border-radius: 10px;
}
@media screen and (max-width: 1200px) {
    .video-thumbnail img {
        width: 100%;
        height: 200px;
      
    }
    .video-thumbnail .play-icon {
        
        padding-left: 14px;
        padding-right: 14px;
    }
    .video-display video {
        width: 100%;
        height: 400px;
       
    }
    .video-thumbnail img {
        width: 100%;
        height: 170px;
      
    }
    .video-thumbnail .video-title {
  
        font-size: 0.8rem;
    }

    .video-thumbnail .play-icon {
     
        font-size: 12px;
        padding: 8px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .list_v{
        height: 400px;
      
    }
    
}
@media screen and (max-width: 992px) {
 
    .video-thumbnail img {
        width: 100%;
        height: 180px;
      
    }
    .video-thumbnail .play-icon {
        
        padding-left: 14px;
        padding-right: 14px;
    }
    .video-display video {
        width: 100%;
        height: 400px;
       
    }
    
    .video-thumbnail .video-title {
    
        font-size: 0.9rem;
    }

    .list_v {
        display: flex;
        flex-wrap: nowrap; /* جلوگیری از رفتن آیتم‌ها به خط بعد */
        overflow-x: auto; /* اسکرول افقی فعال می‌شود */
        overflow-y: hidden; /* حذف اسکرول عمودی */
        white-space: nowrap; /* جلوگیری از شکستن خطوط */
        height: auto; /* ارتفاع به صورت خودکار تنظیم می‌شود */
        padding-bottom: 1rem; /* فضای پایین برای وضوح بیشتر */
    }

    .video-thumbnail {
        flex: 0 0 auto; /* اجازه نمی‌دهد آیتم‌ها تغییر اندازه دهند */
        width: 250px; /* عرض ثابت برای هر آیتم */
        margin-left: 10px; /* فاصله بین آیتم‌ها */
    }

    .list_v::-webkit-scrollbar {
        height: 8px; /* اسکرول‌بار کوچک‌تر می‌شود */
    }

    .list_v::-webkit-scrollbar-thumb {
       
        border-radius: 10px;
    }
    .video-thumbnail .play-icon {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 12px;
        color: white;
   
        border-radius: 50%;
        padding: 8px;
        padding-left: 10px;
        padding-right: 10px;
    }
    
    
    
}

@media screen and (max-width: 992px) {
    .titel_section_video{
        background-color: yellowgreen;
    } 
    .spase{
        height: 300px;
    }
    .videos_box{
        margin-top: -20px;
    }
}
@media screen and (max-width: 668px) {
    .video-display video {
        width: 100%;
        height: 330px;
       
    }
   
    .video-thumbnail img {
        width: 100%;
        height: 170px;
      
    }
    .video-thumbnail .video-title {
  
        font-size: 0.8rem;
    }
}

@media screen and (max-width: 568px) {
    .video-display video {
        width: 100%;
        height: 320px;
       
    }
}
@media screen and (max-width: 520px) {
    .video-display video {
        width: 100%;
        height: 250px;
       
    }   
    .spase{
        height: 250px;
    }
   
    .video-thumbnail img {
        width: 100%;
        height: 160px;
      
    }
}
@media screen and (max-width: 400px) {
    .video-display video {
        width: 100%;
        height: 200px;
       
    }
    .spase{
        height: 200px;
    }
}

/* ===================== */
