.safeghar-video-library{
max-width:1200px;
margin:auto;
}

.video-search{
width:100%;
padding:12px;
border:1px solid #ddd;
border-radius:6px;
margin-bottom:20px;
}

.video-filters{
display:flex;
flex-wrap:wrap;
gap:10px;
margin-bottom:30px;
}

.video-filters button{
padding:8px 16px;
border-radius:30px;
border:none;
background:#f3f4f6;
cursor:pointer;
transition:.3s;
}

.video-filters button.active,
.video-filters button:hover{
background:#1e73be;
color:white;
}

.safeghar-video-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
gap:30px;
}

.video-thumb{
position:relative;
cursor:pointer;
border-radius:12px;
overflow:hidden;
box-shadow:0 10px 25px rgba(0,0,0,.1);
}

.video-thumb img{
width:100%;
display:block;
transition:.4s;
}

.video-thumb:hover img{
transform:scale(1.08);
}

.play-icon{
position:absolute;
top:50%;
left:50%;
transform:translate(-50%,-50%);
background:#ff0000;
color:white;
width:60px;
height:60px;
border-radius:50%;
display:flex;
align-items:center;
justify-content:center;
font-size:24px;
box-shadow:0 6px 16px rgba(0,0,0,.4);
}

.video-card h3{
margin-top:12px;
font-size:16px;
text-align:center;
}

/* modal */

#video-modal{
display:none;
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,.8);
z-index:9999;
}

.video-modal-inner{
width:80%;
max-width:900px;
margin:100px auto;
background:#000;
position:relative;
}

.video-close{
position:absolute;
top:-40px;
right:0;
color:white;
font-size:30px;
cursor:pointer;
}

#video-frame iframe{
width:100%;
height:500px;
}