*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    background:#000;
    color:#fff;
    font-family:Arial, Helvetica, sans-serif;
    overflow-x:hidden;
}

a{
    color:inherit;
}

header{
    max-width:1240px;
    margin:0 auto;
    padding:36px 36px 26px;
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
}

.logo{
    text-align:center;
}

.logo h1{
    font-size:36px;
    font-weight:900;
    letter-spacing:-1px;
    text-transform:uppercase;
    text-shadow:3px 3px 0 #1e6cff;
}

.logo p{
    font-size:11px;
    font-weight:900;
    margin-top:6px;
    text-transform:uppercase;
}

.side-link{
    color:#ddd;
    text-decoration:none;
    font-size:34px;
    font-family:cursive;
    font-style:italic;
    transform:rotate(-8deg);
    transition:.25s;
}

.side-link:hover{
    color:#fff;
    transform:rotate(-8deg) scale(1.08);
}

main{
    max-width:1120px;
    margin:0 auto;
    padding:0 20px 40px;
}

.tabs{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    border:1px solid #fff;
}

.tabs div{
    text-align:center;
    font-size:13px;
    font-weight:900;
    padding:9px 5px;
    border-right:1px solid #fff;
    text-transform:uppercase;
}

.tabs div:last-child{
    border-right:none;
}

.grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    align-items:start;
}

.column{
    min-height:260px;
}

.card{
    height:220px;
    display:block;
    position:relative;
    overflow:hidden;
    background:#111;
    color:#fff;
    text-decoration:none;
    cursor:pointer;
}

.card::after{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(to top, rgba(0,0,0,.65), transparent 55%);
    opacity:.55;
    transition:.3s;
    z-index:3;
    pointer-events:none;
}

.card:hover::after{
    opacity:.9;
}

.card img,
.card video{
    width:100%;
    height:100%;
    object-fit:cover;
}

.preview-video{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
    opacity:1;
    z-index:2;
    filter:brightness(.8) contrast(1.08);
}

.thumb{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
    opacity:0;
    z-index:1;
}

.card span{
    position:absolute;
    left:13px;
    bottom:13px;
    z-index:4;
    font-size:14px;
    font-weight:900;
    opacity:0;
    transform:translateY(10px);
    transition:.3s;
    text-transform:uppercase;
    text-shadow:0 2px 10px #000;
}

.card:hover span{
    opacity:1;
    transform:translateY(0);
}

.empty{
    height:220px;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#555;
    border:1px solid #111;
    font-size:12px;
    text-transform:uppercase;
}

.video-placeholder{
    width:100%;
    height:100%;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    background:
        radial-gradient(circle at center, rgba(30,108,255,.35), transparent 45%),
        #080808;
    color:#fff;
    text-align:center;
    padding:20px;
    position:absolute;
    inset:0;
    z-index:1;
}

.video-placeholder .play-icon{
    width:58px;
    height:58px;
    border:2px solid #fff;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:22px;
    margin-bottom:14px;
}

.video-placeholder p{
    font-size:14px;
    font-weight:900;
    text-transform:uppercase;
}

.video-modal{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.94);
    display:none;
    align-items:center;
    justify-content:center;
    z-index:9999;
    padding:20px;
}

.video-modal.active{
    display:flex;
}

.video-box{
    width:920px;
    max-width:100%;
    aspect-ratio:16/9;
    position:relative;
}

.video-box iframe{
    width:100%;
    height:100%;
    border:0;
    background:#000;
}

.close-video{
    position:absolute;
    top:-48px;
    right:0;
    color:#fff;
    font-size:42px;
    line-height:1;
    cursor:pointer;
}

section{
    max-width:850px;
    margin:90px auto;
    padding:0 25px;
    text-align:center;
}

section h2{
    font-size:46px;
    font-weight:900;
    margin-bottom:22px;
    text-transform:uppercase;
    text-shadow:3px 3px 0 #1e6cff;
}

section p{
    color:#ddd;
    font-size:17px;
    line-height:1.75;
}

.admin-body{
    min-height:100vh;
    background:#000;
    color:#fff;
}

.login-box{
    width:390px;
    max-width:92%;
    margin:115px auto;
    padding:30px;
    background:#101010;
    border:1px solid #333;
    box-shadow:0 0 40px rgba(255,255,255,.05);
}

.login-box h2{
    margin-bottom:22px;
    font-size:28px;
}

.login-box input,
.login-box select{
    width:100%;
    padding:14px;
    margin-bottom:12px;
    background:#000;
    color:#fff;
    border:1px solid #444;
    outline:none;
}

.login-box input:focus,
.login-box select:focus{
    border-color:#fff;
}

.login-box button,
.add-btn{
    display:block;
    width:100%;
    padding:14px;
    background:#fff;
    color:#000;
    border:none;
    text-align:center;
    text-decoration:none;
    font-weight:900;
    cursor:pointer;
    transition:.25s;
}

.login-box button:hover,
.add-btn:hover{
    background:#1e6cff;
    color:#fff;
}

.error{
    color:#ff3b3b;
    margin-bottom:12px;
    font-weight:bold;
}

.admin-wrap{
    max-width:1100px;
    margin:40px auto;
    padding:20px;
}

.admin-top{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:20px;
}

.admin-top h1{
    font-size:32px;
}

.admin-top a{
    color:#fff;
    text-decoration:none;
    border:1px solid #444;
    padding:10px 16px;
}

.admin-top a:hover{
    background:#fff;
    color:#000;
}

table{
    width:100%;
    border-collapse:collapse;
    margin-top:20px;
    background:#080808;
}

th,td{
    border:1px solid #333;
    padding:12px;
    text-align:left;
    font-size:14px;
}

th{
    background:#151515;
}

td img{
    width:90px;
    height:70px;
    object-fit:cover;
}

td a{
    color:#ff4d4d;
    font-weight:bold;
    text-decoration:none;
}

@media(max-width:768px){
    header{
        padding:28px 18px 20px;
    }

    .logo h1{
        font-size:22px;
    }

    .logo p{
        font-size:9px;
    }

    .side-link{
        font-size:21px;
    }

    main{
        padding:0 12px 30px;
    }

    .tabs div{
        font-size:10px;
        padding:8px 3px;
    }

    .card,
    .empty{
        height:145px;
    }

    .video-placeholder .play-icon{
        width:46px;
        height:46px;
        font-size:18px;
    }

    .video-placeholder p{
        font-size:11px;
    }

    .video-box{
        width:100%;
    }

    .close-video{
        top:-42px;
        font-size:36px;
    }

    section{
        margin:70px auto;
    }

    section h2{
        font-size:34px;
    }

    section p{
        font-size:15px;
    }

    .admin-wrap{
        padding:12px;
    }

    table{
        display:block;
        overflow-x:auto;
        white-space:nowrap;
    }
}