:root {
    --primary: #4e54c8;
    --secondary: #8f94fb;
    --accent: #ff6b6b;
    --dark: #2c3e50;
    --light: #ecf0f1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    color: var(--dark);
    line-height: 1.6;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary);
}

.fantasias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.fantasia-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-align: center;
}

.fantasia-card:hover {
    transform: translateY(-10px);
}

.fantasia-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 3px solid var(--accent);
}

.fantasia-card h3 {
    margin: 15px 0;
    color: var(--dark);
}

.fantasia-card p {
    padding: 0 15px;
    color: #666;
    font-size: 0.9rem;
    min-height: 60px;
}

.btn-votar {
    background: var(--accent);
    color: white;
    border: none;
    padding: 10px 20px;
    margin: 15px 0;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-votar:hover {
    background: #ff5252;
}

.votos {
    display: block;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 15px;
}

.ranking {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 30px;
    margin-top: 40px;
    text-align: center;
}

.podium-item {
    flex: 0 1 200px;
}

.posicao-1 {
    order: 2;
    height: 300px;
}

.posicao-2 {
    order: 1;
    height: 200px;
}

.posicao-3 {
    order: 3;
    height: 150px;
}

.posicao {
    font-size: 2rem;
    font-weight: bold;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.btn {
    display: block;
    width: 200px;
    margin: 30px auto 0;
    padding: 12px;
    background: var(--primary);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: background 0.3s;
}

.btn:hover {
    background: var(--secondary);
}

/* Responsividade */
@media (max-width: 768px) {
    .fantasias-grid {
        grid-template-columns: 1fr;
    }
    
    .ranking {
        flex-direction: column;
        align-items: center;
    }
    
    .podium-item {
        width: 80%;
        height: auto !important;
        margin-bottom: 30px;
    }
}