.vote-sites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.vote-site-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 1.5rem 2rem 2.5rem 2rem;
    background: var(--color-bg-card);
    border: 3px solid var(--color-primary);
    border-radius: 0.5rem;
    overflow: hidden;
    aspect-ratio: 3 / 4;
}

.vote-site-card img {
    width: 260px;
    height: 260px;
    object-fit: contain;
    margin-bottom: 2rem;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
}

.vote-site-card .vote-content {
    text-align: center;
    width: 100%;
}

.vote-site-card .btn-vote {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    background: var(--color-primary);
    color: var(--color-text);
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 900;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid var(--color-primary);
    box-shadow: 0 4px 0 var(--color-primary-dark);
    min-width: 180px;
    margin-top: 3rem;
}

.vote-site-card .btn-vote .vote-timer {
    display: none;
    font-size: 0.85rem;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.2rem 0.5rem;
    border-radius: 0.3rem;
    margin-right: 0.5rem;
}

.vote-site-card .btn-vote .vote-timer:not(:empty) {
    display: inline;
}

.vote-site-card.voted {
    opacity: 0.7;
    pointer-events: none;
}

.vote-site-card.voted::after {
    content: '✓';
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2rem;
    color: #28a745;
    font-weight: 900;
}

#vote-card .spinner-parent {
    display: none;
}

#vote-card.voting .spinner-parent {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(44, 24, 16, 0.8);
    z-index: 10;
    border-radius: 0.5rem;
}

.vote-ranking-card {
    background: var(--color-bg-card);
    border: 3px solid var(--color-primary);
    border-radius: 0.5rem;
    overflow: hidden;
}

.vote-podium {
    background: var(--color-bg-card);
    border: 3px solid var(--color-primary);
    border-radius: 0.5rem;
    padding: 2rem;
}

.podium-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 2rem;
    flex-wrap: wrap;
}

.podium-place {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    background: var(--color-bg);
    border: 2px solid var(--color-primary);
    border-radius: 0.5rem;
}

.podium-2 {
    order: 1;
    width: 180px;
}

.podium-1 {
    order: 2;
    width: 220px;
    border-color: #ffd700;
}

.podium-3 {
    order: 3;
    width: 180px;
}

.podium-rank {
    font-size: 2rem;
    font-weight: 900;
    color: var(--color-primary);
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.podium-1 .podium-rank {
    color: #ffd700;
    font-size: 2.5rem;
}

.podium-2 .podium-rank {
    color: #c0c0c0;
}

.podium-3 .podium-rank {
    color: #cd7f32;
}

.podium-avatar {
    margin-bottom: 1rem;
}

.podium-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 0.5rem;
    border: 3px solid var(--color-primary);
    object-fit: cover;
}

.podium-1 .podium-avatar img {
    width: 100px;
    height: 100px;
    border-color: #ffd700;
}

.podium-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.podium-votes {
    font-size: 1rem;
    font-weight: 900;
    color: var(--color-primary);
}

.podium-1 .podium-votes {
    color: #ffd700;
}

.vote-ranking-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.vote-user-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem 2rem;
    background: var(--color-bg-card);
    border: 3px solid var(--color-primary);
    border-radius: 0.5rem;
    min-height: 80px;
}

.user-rank {
    font-size: 2rem;
    font-weight: 900;
    color: var(--color-primary);
    min-width: 80px;
    text-align: center;
}

.user-avatar {
    flex-shrink: 0;
}

.user-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 0.5rem;
    border: 3px solid var(--color-primary);
    object-fit: cover;
}

.user-info {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 1px;
    word-break: break-word;
}

.user-votes {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--color-primary);
    min-width: 150px;
    text-align: right;
    white-space: nowrap;
}


@media (max-width: 1199px) {
    .podium-container {
        gap: 1.5rem;
    }

    .podium-place {
        min-width: 170px;
        padding: 1.25rem;
    }

    .podium-1 {
        min-width: 200px;
    }

    .podium-avatar img {
        width: 75px;
        height: 75px;
    }

    .podium-1 .podium-avatar img {
        width: 90px;
        height: 90px;
    }

    .podium-name {
        font-size: 1rem;
    }

    .podium-votes {
        font-size: 0.9rem;
    }
}

@media (max-width: 991px) {
    .vote-sites-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.25rem;
    }

    .vote-site-card {
        padding: 2rem 1.5rem;
        aspect-ratio: auto;
        min-height: 380px;
    }

    .vote-site-card img {
        width: 140px;
        height: 140px;
        margin-bottom: 1.5rem;
    }

    .vote-site-card .btn-vote {
        font-size: 0.9rem;
        padding: 0.8rem 1.5rem;
        min-width: 150px;
        margin-top: 1.5rem;
    }

    .vote-site-card .btn-vote .vote-timer {
        font-size: 0.75rem;
    }

    .podium-container {
        gap: 1rem;
    }

    .podium-place {
        min-width: 150px;
        padding: 1rem;
    }

    .podium-1 {
        min-width: 180px;
    }

    .podium-avatar img {
        width: 70px;
        height: 70px;
    }

    .podium-1 .podium-avatar img {
        width: 80px;
        height: 80px;
    }

    .podium-name {
        font-size: 1rem;
        word-break: break-word;
    }

    .podium-votes {
        font-size: 0.9rem;
    }

    .user-avatar img {
        width: 55px;
        height: 55px;
    }

    .user-name {
        font-size: 1.1rem;
    }

    .user-votes {
        font-size: 1.3rem;
        min-width: 120px;
    }

    .vote-user-card {
        padding: 1rem 1.5rem;
        gap: 1rem;
    }
}

@media (max-width: 767px) {
    .vote-sites-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .vote-site-card {
        padding: 1.5rem 1rem;
        aspect-ratio: 1 / 1;
        min-height: auto;
    }

    .vote-site-card img {
        width: 100px;
        height: 100px;
        margin-bottom: 1rem;
    }

    .vote-site-card .btn-vote {
        font-size: 0.8rem;
        padding: 0.7rem 1.2rem;
        min-width: 120px;
        margin-top: 1rem;
    }

    .vote-site-card .btn-vote .vote-timer {
        font-size: 0.7rem;
    }

    .podium-container {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .podium-place {
        width: 100%;
        max-width: 280px;
        padding: 1.25rem;
    }

    .podium-1,
    .podium-2,
    .podium-3 {
        order: initial;
        min-width: auto;
        width: 100%;
    }

    .podium-1 {
        max-width: 300px;
    }

    .podium-rank {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }

    .podium-1 .podium-rank {
        font-size: 2rem;
    }

    .podium-avatar img {
        width: 70px;
        height: 70px;
    }

    .podium-1 .podium-avatar img {
        width: 85px;
        height: 85px;
    }

    .podium-name {
        font-size: 1.1rem;
    }

    .podium-votes {
        font-size: 0.95rem;
    }

    .vote-user-card {
        padding: 1rem 1.25rem;
        gap: 1rem;
        min-height: 70px;
    }

    .user-rank {
        font-size: 1.5rem;
        min-width: 60px;
    }

    .user-avatar img {
        width: 50px;
        height: 50px;
    }

    .user-name {
        font-size: 1rem;
    }

    .user-votes {
        font-size: 1.2rem;
        min-width: 100px;
    }

    .vote-podium {
        padding: 1.5rem;
    }

    .mb-4 h2 {
        font-size: 2rem !important;
    }
}

@media (max-width: 576px) {
    .vote-sites-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .vote-site-card {
        padding: 2rem 1.5rem;
        aspect-ratio: auto;
        min-height: auto;
    }

    .vote-site-card img {
        width: 120px;
        height: 120px;
        margin-bottom: 1.5rem;
    }

    .vote-site-card .btn-vote {
        font-size: 0.9rem;
        padding: 0.8rem 1.5rem;
        min-width: 140px;
        margin-top: 2rem;
    }

    .vote-site-card .btn-vote .vote-timer {
        font-size: 0.75rem;
    }

    .podium-place {
        padding: 1rem;
    }

    .podium-rank {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .podium-1 .podium-rank {
        font-size: 1.75rem;
    }

    .podium-avatar img {
        width: 60px;
        height: 60px;
    }

    .podium-1 .podium-avatar img {
        width: 75px;
        height: 75px;
    }

    .podium-name {
        font-size: 1rem;
    }

    .podium-votes {
        font-size: 0.85rem;
    }

    .vote-user-card {
        padding: 0.875rem 1rem;
        gap: 0.875rem;
        min-height: 65px;
    }

    .user-rank {
        font-size: 1.3rem;
        min-width: 50px;
    }

    .user-avatar img {
        width: 45px;
        height: 45px;
    }

    .user-name {
        font-size: 0.95rem;
    }

    .user-votes {
        font-size: 1.1rem;
        min-width: 90px;
    }

    .mb-4 h2 {
        font-size: 1.75rem !important;
        letter-spacing: 1px !important;
    }
}
