body{
    margin:0;
    font-family:Arial, sans-serif;
    background:#0f0f0f;
    color:white;
    overflow-x:hidden;
}

/* ================= HEADER ================= */
header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:15px 20px;
    background:#111;
    position:sticky;
    top:0;
    z-index:1000;
}

header h1{
    margin:0;
    font-size:20px;
    letter-spacing:2px;
}

header input{
    padding:8px 12px;
    border:none;
    border-radius:20px;
    outline:none;
    background:#222;
    color:white;
}

/* ================= HERO ================= */
#hero{
    position:relative;
    height:65vh;
    background-size:cover;
    background-position:center;
    display:flex;
    align-items:flex-end;
    padding:40px;
    transition:background 0.5s ease;
}

#hero::after{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(to top,rgba(0,0,0,0.95),rgba(0,0,0,0.3),transparent);
    z-index:1;
}

.hero-content{
    position:relative;
    z-index:2;
    max-width:600px;
}

.hero-content h2{
    margin:0 0 10px 0;
    font-size:32px;
}

.hero-content p{
    margin:0 0 15px 0;
    color:#ccc;
}

.hero-content button{
    padding:10px 20px;
    background:red;
    border:none;
    border-radius:4px;
    cursor:pointer;
    font-weight:bold;
    transition:0.3s;
}

.hero-content button:hover{
    background:#ff2a2a;
}

/* ================= GRID ================= */
.grid{
    display:grid;
    gap:10px;
    padding:20px;
}

/* 3 grid mobile */
@media(max-width:600px){
    .grid{
        grid-template-columns:repeat(3,1fr);
    }
}

/* auto desktop */
@media(min-width:601px){
    .grid{
        grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
    }
}

/* ================= CARD ================= */
.card{
    position:relative;
    cursor:pointer;
    overflow:hidden;
    border-radius:6px;
    transition:transform 0.3s ease;
}

.card:hover{
    transform:scale(1.05);
    z-index:5;
}

.card img,
.card video{
    width:100%;
    display:block;
    border-radius:6px;
}

/* ================= OVERLAY ================= */
.overlay{
    position:absolute;
    bottom:5px;
    left:5px;
    right:5px;
    display:flex;
    justify-content:space-between;
    font-size:12px;
    background:rgba(0,0,0,0.7);
    padding:4px 6px;
    border-radius:4px;
}

/* ================= PAGINATION ================= */
.pagination{
    text-align:center;
    padding:20px;
}

.pagination button{
    margin:3px;
    padding:8px 12px;
    border:none;
    border-radius:20px;
    cursor:pointer;
    background:#222;
    color:white;
    transition:0.3s;
}

.pagination button:hover{
    background:red;
}

/* ================= MODAL ================= */
.modal{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.95);
    justify-content:center;
    align-items:center;
    z-index:9999;
    backdrop-filter:blur(6px);
}

.modal-content{
    width:90%;
    max-width:1000px;
    position:relative;
}

.modal video{
    width:100%;
    border-radius:10px;
}

.close{
    position:absolute;
    top:-35px;
    right:0;
    font-size:30px;
    cursor:pointer;
    color:white;
}

/* ================= SKELETON ================= */
.skeleton{
    height:250px;
    border-radius:6px;
    background:linear-gradient(90deg,#222,#333,#222);
    background-size:200% 100%;
    animation:shimmer 1.5s infinite;
}

@keyframes shimmer{
    0%{background-position:200% 0}
    100%{background-position:-200% 0}
}