/* Background */

.svm-login-container{

    min-height:80vh;

    display:flex;

    justify-content:center;

    align-items:center;

    background:linear-gradient(135deg,#eef4ff,#f8fbff);

    padding:40px 20px;

}

/* Card */

.svm-login-card{

    width:100%;

    max-width:420px;

    background:#fff;

    border-radius:18px;

    padding:40px;

    box-shadow:0 15px 40px rgba(0,0,0,.08);

}

.svm-login-header{

    text-align:center;

    margin-bottom:30px;

}

.svm-logo{

    width:75px;

    height:75px;

    border-radius:50%;

    background:#2563eb;

    color:#fff;

    font-size:34px;

    display:flex;

    align-items:center;

    justify-content:center;

    margin:0 auto 20px;

}

.svm-login-header h2{

    margin:0;

    font-size:28px;

}

.svm-login-header p{

    margin-top:8px;

    color:#777;

}

.svm-field{

    margin-bottom:22px;

}

.svm-field label{

    display:block;

    margin-bottom:8px;

    font-weight:600;

}

.svm-field input{

    width:100%;

    height:50px;

    border:1px solid #ddd;

    border-radius:10px;

    padding:0 15px;

    font-size:15px;

    transition:.3s;

    box-sizing:border-box;

}

.svm-field input:focus{

    border-color:#2563eb;

    box-shadow:0 0 0 3px rgba(37,99,235,.15);

    outline:none;

}

.password-wrapper{

    position:relative;

}

.password-wrapper input{

    padding-right:45px;

}

#togglePassword{

    position:absolute;

    top:50%;

    right:15px;

    transform:translateY(-50%);

    cursor:pointer;

    font-size:18px;

    user-select:none;

}

.svm-btn{

    width:100%;

    height:52px;

    border:none;

    border-radius:10px;

    background:#2563eb;

    color:#fff;

    font-size:16px;

    font-weight:600;

    cursor:pointer;

    transition:.3s;

}

.svm-btn:hover{

    background:#1d4ed8;

}

.svm-alert{

    background:#ffe8e8;

    color:#d11a2a;

    padding:14px;

    border-radius:8px;

    margin-bottom:20px;

    text-align:center;

}
/* Dashboard */

.svm-dashboard {
    max-width: 1300px;
    margin: 0px auto;
    padding: 0px;
}

.svm-topbar{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:30px;


}

.svm-topbar h2{

    margin:0;

    font-size:30px;

}

.svm-topbar p{

    color:#777;

}

.svm-logout-btn{

    background:#ef4444;

    color:#fff;

    padding:12px 20px;

    border-radius:10px;

    text-decoration:none;

}

.svm-grid{

    display:flex;

    flex-direction:column;

    gap:30px;

}

.svm-card h3{

    margin-top:0;

    margin-bottom:25px;

}

.svm-group{

    margin-bottom:20px;

}

.svm-group label{

    display:block;

    font-weight:600;

    margin-bottom:8px;

}

.svm-group input,

.svm-group select{

    width:100%;

    height:50px;

    border:1px solid #ddd;

    border-radius:10px;

    padding:0 15px;

    box-sizing:border-box;

}

.svm-upload-box{

    border:2px dashed #2563eb;

    border-radius:15px;

    text-align:center;

    padding:45px 20px;

    margin:25px 0;

    background:#f8fbff;

    cursor:pointer;

}

.svm-upload-box:hover{

    background:#eef5ff;

}

.svm-upload-box span{

    font-size:55px;

}

.svm-upload-box h4{

    margin:15px 0 8px;

}

.svm-primary-btn{

    width:100%;

    height:55px;

    border:none;

    border-radius:12px;

    background:#2563eb;

    color:#fff;

    font-size:17px;

    cursor:pointer;

}

.svm-empty{

    text-align:center;

    padding:70px 20px;

}

.svm-empty .icon{

    font-size:60px;

    margin-bottom:20px;

}


.svm-upload-box{

    transition:.3s;

}

.svm-upload-box.selected{

    border-color:#16a34a;

    background:#f0fff5;

}

.svm-upload-icon{

    font-size:55px;

    margin-bottom:10px;

}

#svm-file-name{

    margin:10px 0;

    font-size:18px;

    font-weight:600;

    word-break:break-word;

}

#svm-file-size{

    color:#666;

    display:block;

}
.svm-video-card{

    display:flex;

    gap:25px;

    padding:20px;

    margin-bottom:25px;

    border-radius:18px;

    background:#fff;

    border:1px solid #ececec;

    transition:.3s;

}

.svm-video-card:hover{

    transform:translateY(-3px);

    box-shadow:0 20px 40px rgba(0,0,0,.08);

}

.svm-video-thumb{

    width:280px;

    flex-shrink:0;

}

.svm-video-thumb video{

    width:100%;

    aspect-ratio:16/9;

    object-fit:cover;

    border-radius:12px;

    background:#000;

}

.svm-video-content{

    flex:1;

}

.svm-video-content h4{

    margin:0 0 15px;

    font-size:24px;

}

.svm-meta-list p{

    margin:10px 0;

    color:#666;

}

.svm-video-actions{

    display:flex;

    gap:12px;

    margin-top:25px;

    flex-wrap:wrap;

}

.svm-video-actions a{

    padding:12px 18px;

    border-radius:10px;

    text-decoration:none;

    color:#fff;

    font-size:15px;

}

.svm-view{

    background:#2563eb;

}

.svm-download{

    background:#10b981;

}

.svm-delete{

    background:#ef4444;

}
.svm-video-card{
    display:flex;
    align-items:flex-start;
    gap:25px;
}

.svm-video-thumb{
    flex:auto;
    max-width:320px;
}

.svm-video-content{
    flex:1;
    min-width:0;
}

.svm-video-actions{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    margin-top:20px;
}

.svm-video-actions a{
    flex:1;
    min-width:130px;
    text-align:center;
}
.svm-meta-list p {
    padding-bottom: 0;
}
.svm-card{

    width:100%;

}
.svm-video-card{

    display:flex;

    gap:25px;

    align-items:flex-start;

    width:100%;

}

.svm-video-thumb{

    width:320px;

    flex:auto;

}

.svm-video-content{

    flex:1;

}

.svm-video-actions{

    display:flex;

    flex-direction:row;

    gap:12px;

    margin-top:25px;

    flex-wrap:wrap;

}

.svm-video-actions a{

    flex:none;

}
@media(max-width:991px){

.svm-video-card{

flex-direction:column;

}
.svm-video-actions a {
    padding: 6px 7px;
    border-radius: 10px;
    text-decoration: none;
    color: #fff;
    font-size: 12px;
}
.svm-video-actions a {
    flex: 1;
    min-width: 95px;
    text-align: center;
}
.svm-video-thumb{

width:100%;

}
.svm-video-actions {
    display: flex;
    flex-direction: row;
    gap: 5px;
    margin-top: 15px;
    flex-wrap: wrap;
}

}

/* Modal */

.svm-modal{

    display:none;

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.75);

    z-index:99999;

    justify-content:center;

    align-items:center;

    padding:30px;

}

.svm-modal-content{

    background:#fff;

    width:100%;

    max-width:900px;

    border-radius:18px;

    padding:25px;

    position:relative;

    animation:svmPop .25s ease;

}

@keyframes svmPop{

from{

transform:scale(.9);

opacity:0;

}

to{

transform:scale(1);

opacity:1;

}

}

.svm-close{

    position:absolute;

    right:20px;

    top:15px;

    font-size:32px;

    cursor:pointer;

    line-height:1;

}

.svm-modal video{

    width:100%;

    max-height:75vh;

    object-fit:contain;

    background:#000;

    border-radius:12px;

}

.svm-meta{

    display:flex;

    gap:20px;

    margin-bottom:15px;

    color:#666;

    flex-wrap:wrap;

}

body.svm-modal-open{

    overflow:hidden;

}
/* Parent Gallery */

.svm-gallery-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:25px;
    margin-top:30px;
}

/* Tablet */

@media (max-width:991px){

    .svm-gallery-grid{

        grid-template-columns:repeat(2,1fr);

    }

}

/* Mobile */

@media (max-width:767px){

    .svm-gallery-grid{

        grid-template-columns:1fr;

    }

}
.svm-gallery-card{
    background:#fff;
    border-radius:18px;
    overflow:hidden;
    box-shadow:0 10px 25px rgba(0,0,0,.08);
    transition:.3s;
}

.svm-gallery-card:hover{
    transform:translateY(-5px);
}

.svm-gallery-card video{

    width:100%;

    height:220px;

    object-fit:contain;

    background:#000;

}

.svm-gallery-body{
    padding:20px;
}

.svm-gallery-body h4{
    margin:0 0 15px;
}

.svm-gallery-body p{
    margin:8px 0;
    color:#666;
    padding-bottom: 0;
}

.svm-download-btn{
    display:inline-block;
    margin-top:15px;
    background:#10b981;
    color:#fff;
    padding:10px 18px;
    border-radius:8px;
    text-decoration:none;
}
.svm-gallery-thumb{
    position:relative;
    overflow:hidden;
}

.svm-gallery-thumb video{
    width:100%;
    height:220px;
    object-fit:cover; /* ya contain */
    display:block;
}

.svm-date-badge{

    position:absolute;

    top:15px;

    right:15px;

    background:rgba(255,255,255,.18);

    border:1px solid rgba(255,255,255,.25);

    color:#fff;

    padding:8px 14px;

    border-radius:50px;

    backdrop-filter:blur(10px);

    -webkit-backdrop-filter:blur(10px);

    font-size:13px;

    font-weight:600;

}
.svm-gallery-thumb{

    position:relative;

    overflow:hidden;

    cursor:pointer;

}

.svm-gallery-thumb video{

    width:100%;

    height:240px;

    object-fit:cover;

    display:block;

    pointer-events:none;

}

.svm-play-btn{

    position:absolute;

    top:50%;

    left:50%;

    transform:translate(-50%,-50%);

    width:70px;

    height:70px;

    border-radius:50%;

    background:rgba(255,255,255,.9);

    display:flex;

    align-items:center;

    justify-content:center;

    text-decoration:none;

    color:#2563eb;

    font-size:28px;

    transition:.3s;

    box-shadow:0 10px 25px rgba(0,0,0,.25);

}

.svm-play-btn:hover{

    transform:translate(-50%,-50%) scale(1.08);

}
.svm-progress-bar{
    width:100%;
    height:12px;
    background:#e5e7eb;
    border-radius:30px;
    overflow:hidden;
    margin-bottom:10px;
}

.svm-progress-fill{
    width:0%;
    height:100%;
    background:#2563eb;
    transition:width .2s linear;
}

.svm-progress-text{
    text-align:center;
    font-weight:600;
    color:#2563eb;
}
.svm-video-actions a {
   text-transform: none !important;
    text-decoration: none !important;
    color: #fff !important;
    font-weight: 900;
}
.svm-edit{
    background:#f59e0b;
    color:#fff;
}