* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #000;
    padding: 20px;
    padding-top: 70px;
    min-height: 100vh;
}

@media (min-width: 768px) {
    body {
        padding-top: 70px;
    }
}

/* ==========================================
   🔒 GRID DE IMAGENS - TRAVADO NO ZOOM!
   ========================================== */

.gallery {
    display: grid;
    /* Mobile: 2 cards - travado entre 150px e 250px */
    grid-template-columns: repeat(2, minmax(150px, 250px));
    gap: 16px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    justify-content: center; /* Centraliza quando sobra espaço */
}

/* 3 cards por linha - Tablet (600px - 899px) */
@media (min-width: 600px) and (max-width: 899px) {
    .gallery {
        grid-template-columns: repeat(3, minmax(180px, 280px));
        gap: 16px;
        padding: 0 20px;
    }
}

/* 4 cards por linha - Tablet landscape (900px - 1199px) */
@media (min-width: 900px) and (max-width: 1199px) {
    .gallery {
        grid-template-columns: repeat(4, minmax(200px, 280px));
        gap: 18px;
        padding: 0 20px;
    }
}

/* 5 cards por linha - Desktop médio (1200px - 1599px) */
@media (min-width: 1200px) and (max-width: 1599px) {
    .gallery {
        grid-template-columns: repeat(5, minmax(220px, 280px));
        gap: 20px;
        padding: 0 20px;
    }
}

/* 7 cards por linha - Desktop grande (1600px+) */
@media (min-width: 1600px) {
    .gallery {
        grid-template-columns: repeat(7, minmax(220px, 280px));
        gap: 20px;
        padding: 0 20px;
    }
}

/* ==========================================
   🎴 CARDS
   ========================================== */

.card {
    background: #000;
    border: 1px solid #333;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, border-color 0.2s;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-4px);
    border-color: #555;
}

.image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-bottom: 1px solid #333;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.credit-badge {
    position: absolute;
    right: 12px;
    background: rgba(255, 71, 87, 0.7);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    z-index: 10;
}

/* Mobile: badge embaixo da imagem */
@media (max-width: 767px) {
    .credit-badge {
        bottom: 12px;
        top: auto;
        background: rgba(255, 71, 87, 0.7); /* 70% opacidade */
    }
}

/* Desktop: badge em cima da imagem */
@media (min-width: 768px) {
    .credit-badge {
        top: 12px;
        background: rgba(255, 71, 87, 0.9);
    }
}

.content {
    padding: 16px;
}

.title {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.author {
    color: #888;
    font-size: 12px;
    margin-bottom: 12px;
}

.description {
    color: #ccc;
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mode {
    color: #888;
    font-size: 11px;
    margin-bottom: 12px;
    padding: 6px 0;
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
}

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.runs {
    color: #ff4757;
    font-size: 11px;
    font-weight: 500;
}

.official {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #888;
    font-size: 10px;
}

.official::before {
    content: "✓";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border: 1px solid #888;
    border-radius: 50%;
    font-size: 9px;
}

.section-title {
    max-width: 1400px;
    margin: 20px auto 20px auto;
    padding: 0 20px;
}

.section-title h2 {
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    text-align: left;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (max-width: 767px) {
    .section-title {
        margin: 10px auto 15px auto;
    }
    
    .section-title h2 {
        font-size: 24px;
    }
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.card-link:hover .card {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}