* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    background: #0a0a0a;
    color: white;
}

/* NAVBAR */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
    background: #0d0d0d;
    position: relative;
}

.nav-logo img {
    height: 70px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s;
}

.nav-links a:hover { color: #9d4edd; }

.nav-btn {
    background: linear-gradient(90deg, #6c63ff, #9d4edd);
    color: white;
    text-decoration: none;
    padding: 10px 22px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    transition: opacity 0.2s;
}

.nav-btn:hover { opacity: 0.85; }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    border-radius: 2px;
}

/* VIRALS GRID */
.virals-section {
    padding: 60px 40px;
}

.virals-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
}

.viral-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    border-radius: 16px;
    overflow: visible;
    background: #1a1a2e;
    transition: all 0.3s ease;
}

.video-wrapper::before {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 18px;
    background: linear-gradient(90deg, #6c63ff, #9d4edd);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-wrapper:hover::before { opacity: 1; }

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    border-radius: 16px;
    overflow: hidden;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.55);
    color: white;
    font-size: 22px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, opacity 0.2s;
}

.play-btn:hover { background: rgba(0,0,0,0.8); }

.viral-info {
    margin-top: 14px;
    text-align: center;
    padding: 0 8px;
}

.viral-info h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    color: white;
}

.viral-info p {
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    line-height: 1.6;
}

/* POPUP */
#overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.popup-inner {
    position: relative;
    width: 360px;
    max-width: 90vw;
}

#popup-video {
    width: 100%;
    border-radius: 18px;
    display: block;
}

#close-btn {
    position: absolute;
    top: -16px; right: -16px;
    background: linear-gradient(90deg, #6c63ff, #9d4edd);
    border: none;
    color: white;
    font-size: 20px;
    font-weight: 700;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
}

/* TABLET */
@media (max-width: 900px) {
    .virals-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .virals-section { padding: 40px 24px; }
}

/* MOBIEL */
@media (max-width: 768px) {
    .navbar {
        padding: 14px 20px;
        flex-wrap: wrap;
    }

    .nav-logo img { height: 50px; }

    .hamburger { display: flex; }

    .nav-links {
        display: none;
        position: static;
        transform: none;
        flex-direction: column;
        width: 100%;
        gap: 0;
        background: #0d0d0d;
        padding: 10px 0 16px;
        order: 3;
    }

    .nav-links.open { display: flex; }

    .nav-links li {
        text-align: center;
        padding: 10px 0;
        border-top: 1px solid rgba(255,255,255,0.05);
    }

    .nav-links a { font-size: 16px; }

    .nav-btn { font-size: 13px; padding: 8px 16px; }

    .virals-section { padding: 30px 16px; }

    .virals-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .viral-info h3 { font-size: 14px; }
    .viral-info p { font-size: 12px; }
    .play-btn { width: 44px; height: 44px; font-size: 18px; }
}

@media (max-width: 480px) {
    .virals-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin: 0 auto;
    }
}