/**
 * VG Memes – Masonry Grid Styles
 */
.memes-main {
    background: #05070a;
    background-image: radial-gradient(circle at 10% 20%, #11151f, #020304);
    min-height: 100vh;
    padding: 0;
}

/* Hero */
.memes-hero {
    position: relative;
    width: 100%;
    min-height: 45vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 2rem;
    overflow: hidden;
}
.memes-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.25;
    z-index: 0;
}
.memes-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 3rem 1rem;
}
.memes-hero-title {
    font-size: clamp(2rem, 6vw, 3.5rem);
    color: white;
    margin-bottom: 0.5rem;
}
.memes-hero-desc {
    font-size: 1.1rem;
    opacity: 0.9;
    color: #E2E8F0;
}
.memes-hero-stats {
    margin-top: 1rem;
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}
.memes-hero-stats span {
    background: rgba(124, 58, 237, 0.3);
    backdrop-filter: blur(4px);
    padding: 0.3rem 1rem;
    border-radius: 40px;
    font-size: 0.9rem;
    color: white;
}
.memes-hero-stats strong {
    color: #F59E0B;
}

/* Masonry Grid */
.memes-grid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}
.memes-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}
.meme-item {
    background: rgba(12, 20, 30, 0.65);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.5rem;
    overflow: hidden;
    transition: transform 0.2s;
}
.meme-item:hover {
    transform: translateY(-4px);
}
.meme-media {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    aspect-ratio: 16/9;
}
.meme-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.meme-media .play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}
.meme-media:hover .play-overlay {
    opacity: 1;
}
.play-btn {
    width: 64px;
    height: 64px;
    background: rgba(124, 58, 237, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}
.meme-info {
    padding: 1rem;
}
.meme-title {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.3rem;
}
.meme-desc {
    font-size: 0.85rem;
    color: #94A3B8;
    margin-bottom: 0.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.meme-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.meme-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.3rem 0.8rem;
    border-radius: 40px;
    font-size: 0.7rem;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 36px;
}
.meme-btn:hover {
    background: #7C3AED;
    transform: translateY(-2px);
}
.watch-btn {
    background: rgba(124, 58, 237, 0.3);
}
.download-btn {
    background: rgba(245, 158, 11, 0.2);
}
.share-btn {
    background: rgba(236, 72, 153, 0.2);
}
.load-more-container {
    text-align: center;
    margin: 2rem 0;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #7C3AED, #EC4899);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 60px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    min-height: 44px;
}
.btn:hover {
    transform: translateY(-2px);
}

/* Modal */
.meme-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
}
.meme-modal-content {
    position: relative;
    margin: 10% auto;
    width: 90%;
    max-width: 800px;
}
.meme-modal-content iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
    border-radius: 16px;
}
.meme-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    .memes-hero {
        min-height: 35vh;
    }
    .memes-hero-stats {
        gap: 1rem;
    }
    .memes-hero-stats span {
        font-size: 0.7rem;
    }
    .meme-actions {
        flex-wrap: wrap;
    }
    .meme-btn {
        font-size: 0.65rem;
        padding: 0.2rem 0.6rem;
    }
    .memes-masonry {
        grid-template-columns: 1fr;
    }
}
@media (min-width: 769px) and (max-width: 1024px) {
    .memes-masonry {
        grid-template-columns: repeat(2, 1fr);
    }
}