body {
    background-color: #0b0b0f;
    color: #e0e0e0;
    font-family: monospace;
    margin: 0;
}

.container {
    width: 900px;
    margin: auto;
    padding: 20px 0;
}

.site-title {
    color: #00ffff;
}

.subtitle {
    color: #999;
}

nav {
    margin-bottom: 20px;
}

nav a {
    margin-right: 15px;
    text-decoration: none;
    color: #8ae6ff;
}

nav a:hover {
    color: #ffffff;
}

/* --- GRADE PADRONIZADA --- */

.item-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 15px;
    margin-top: 20px;
    margin-bottom: 40px;
}

.item-card {
    position: relative;
    /* Tamanho padrão fixo (largura total da coluna) */
    width: 100%; 
    /* Define a proporção: 1/1 para quadrado perfeito ou 2/3 para poster vertical */
    aspect-ratio: 1 / 1; 
    background-color: #1a1a20;
    border: 1px solid #333;
    overflow: hidden;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.item-card:hover {
    border-color: #00ffff;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4); /* Efeito de brilho (glow) */
}

.item-card img {
    /* Faz a imagem ocupar 100% do card sem distorcer */
    width: 100%;
    height: 100%;
    object-fit: cover; 
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.item-card:hover img {
    opacity: 1;
}

.item-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.85);
    color: #00ffff;
    font-size: 0.75em;
    padding: 8px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    /* Garante que o texto longo não quebre o card */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-card:hover .item-title {
    opacity: 1;
}

/* --- SEÇÕES EXTRAS --- */

.favorites-section h3 {
    border-bottom: 1px solid #00ffff;
    padding-bottom: 5px;
    color: #00ffff;
    margin-top: 30px;
}

.favorites-section ul {
    list-style-type: square;
    line-height: 1.6;
}

.separator {
    border: 0;
    border-top: 1px solid #333;
    margin: 40px 0;
}

footer {
    margin-top: 40px;
    border-top: 1px solid #333;
    padding-top: 20px;
}

.footer-links a {
    margin-right: 15px;
    color: #8ae6ff;
    text-decoration: none;
}