/*
  CSS ORIGINAL RESTAURADO E CORRIGIDO
  - Alteração 1: Adicionado "!important" em .winners-track { display: flex; } para vencer conflitos.
  - Alteração 2: Adicionado "!important" em .winner-item { flex-shrink: 0; } para evitar que os itens encolham.
  - Alteração 3: As regras de tamanho dentro de @media (max-width: 768px) foram desativadas para manter o layout do desktop no mobile.
*/

.winners-section {
    padding: 1.1rem 0.5rem;
    overflow: hidden;
    margin-top: 1rem;
}

.winners-container {
    max-width: 1400px;
    margin: 0 auto;
}

.winners-header {
    display: flex;
    flex-direction: column;
    margin: 0 0 16px 0;
    padding: 0;
    background: #10131a;
    border: 1px solid #20232c;
    border-radius: 12px;
    overflow: hidden;
}

.winners-carousel {
    position: relative;
    overflow: hidden;
    padding: 12px 14px;
    background: #0e1118;
    border-radius: 0 0 12px 12px;
    mask: linear-gradient(90deg, transparent 0%, black 2%, black 98%, transparent 100%);
    -webkit-mask: linear-gradient(90deg, transparent 0%, black 2%, black 98%, transparent 100%);
}

.winners-track {
    display: flex !important; /* ALTERAÇÃO 1: Força o layout horizontal */
    gap: 12px;
    animation: scrollWinners 60s linear infinite;
    width: fit-content;
}

@keyframes scrollWinners {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.winner-item {
    flex-shrink: 0 !important; /* ALTERAÇÃO 2: Impede que os itens se espremam */
    width: 220px;
    background: #0f1115 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2) !important;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    overflow: hidden;
}

.winner-item:hover {
    border-color: rgba(34, 197, 94, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.prize-image {
    width: 80px;
    height: 60px;
    border-radius: 8px 0 0 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: transparent;
}

.prize-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.prize-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
    padding: 12px;
    gap: 4px;
}

.winner-name-muted {
    font-size: 10px;
    color: #9ca3af;
    text-transform: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.prize-title {
    font-size: 13px;
    color: #e5e7eb;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.prize-amount {
    font-size: 13px;
    font-weight: 800;
    color: #facc15;
    line-height: 1.2;
}

.prize-type {
    font-size: 0.65rem;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.winners-carousel:hover .winners-track {
    animation-play-state: paused;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    /* ALTERAÇÃO 3: Regras que mudavam o tamanho dos cards foram desativadas (//) para manter o layout do desktop */
    .winners-section {
        padding: 1.5rem 0.75rem;
    }
    .winners-header {
        flex-direction: column;
    }
    .winners-title {
        font-size: clamp(13px, 4.5vw, 16px);
    }
    /*
    .winner-item {
        width: 200px;
    }
    .prize-image {
        width: 70px;
        height: 50px;
    }
    .prize-title {
        font-size: 10px;
    }
    .prize-amount {
        font-size: 13px;
    }
    */
    .winners-track {
        animation-duration: 50s;
    }
}

@media (max-width: 480px) {
    /* As regras de tamanho aqui também foram desativadas */
    /*
    .winner-item {
        width: 200px;
    }
    .prize-image {
        width: 60px;
        height: 45px;
    }
    .prize-title {
        font-size: 10px;
    }
    .prize-amount {
        font-size: 10px;
    }
    */
}

.winners-section {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@supports not (backdrop-filter: blur(8px)) {
    .winner-item {
        background: rgba(15, 17, 21, 0.95) !important;
    }
}

@supports not (mask: linear-gradient(90deg, transparent 0%, black 2%, black 98%, transparent 100%)) {
    .winners-carousel {
        position: relative;
    }
    .winners-carousel::before,
    .winners-carousel::after {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        width: 20px;
        z-index: 2;
        pointer-events: none;
    }
    .winners-carousel::before {
        left: 0;
        background: linear-gradient(to right, #0e1118, transparent);
    }
    .winners-carousel::after {
        right: 0;
        background: linear-gradient(to left, #0e1118, transparent);
    }
}

.winners-track {
    min-height: 60px;
}

.winners-section {
    display: block !important;
    visibility: visible !important;
}

.winner-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    padding: 1px;
    background: linear-gradient(45deg, transparent, rgba(34, 197, 94, 0.3), transparent);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: subtract;
    -webkit-mask-composite: subtract;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.winner-item:hover::before {
    opacity: 1;
}