/* ============================================
   CARDS DE GANHADORES - VERSÃO ULTRA PREMIUM V6.0
   Layout: Glassmorphism + Destaque de Vídeo + Controle Mestre
   ============================================ */

.ganhadores-container {
    --gold-primary: #FFD700;
    --gold-light: #FFF8DC;
    --gold-dark: #b8902f;
    --neon-green: #00ff88;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding: 20px;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    box-sizing: border-box;
    position: relative;
    align-items: center;
    background: linear-gradient(145deg, rgba(20, 20, 20, 0.9), rgba(0, 0, 0, 0.95));
    border-radius: 30px;
    z-index: 5;
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
}

/* CABEÇALHO DE INFORMAÇÃO DO SORTEIO */
.sorteio-info {
    width: 100%;
    position: relative;
    padding: 20px;
    border-radius: 20px;
    background: var(--glass-bg);
    box-shadow: inset 0 0 20px rgba(255,255,255,0.05);
    text-align: center;
    box-sizing: border-box;
    border: 1px solid var(--glass-border);
    overflow: hidden;
}

.sorteio-nome {
    font-size: 1.2rem;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    background: linear-gradient(to right, #fff, var(--gold-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sorteio-valor {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--gold-primary);
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
    animation: prizePulse 2s infinite ease-in-out;
    display: inline-block;
    margin: 5px 0;
}

@keyframes prizePulse {
    0%, 100% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.05); filter: brightness(1.3); }
}

/* GRID DE GANHADORES */
.ganhadores-grid {
    display: grid;
    width: 100%;
    gap: 20px;
    justify-items: center;
    align-items: start;
}

.ganhadores-container[data-total="1"] .ganhadores-grid { grid-template-columns: 1fr; }
.ganhadores-container[data-total="2"] .ganhadores-grid { grid-template-columns: 1fr 1fr; }
.ganhadores-container[data-total="3"] .ganhadores-grid { grid-template-columns: 1fr 1fr; }
.ganhadores-container[data-total="4"] .ganhadores-grid { grid-template-columns: 1fr 1fr; }

/* CARD DE GANHADOR - ESTILO PREMIUM */
.ganhador-card {
    position: relative;
    width: 130px;
    height: 130px;
    background: #000;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.ganhador-card.position-1 {
    grid-column: 1 / -1;
    width: 200px !important;
    height: 200px !important;
    border: 2px solid var(--gold-primary);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.3), 0 15px 35px rgba(0,0,0,0.6);
}

.ganhador-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(255,255,255,0.3);
}

/* MOLDURA DO VÍDEO */
.ganhador-media-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: #000;
}

.ganhador-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ganhador-card:hover .ganhador-media {
    transform: scale(1.1);
}

.ganhador-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
        rgba(0,0,0,0.2) 0%, 
        transparent 40%, 
        rgba(0,0,0,0.8) 85%, 
        rgba(0,0,0,0.95) 100%);
    z-index: 2;
}

/* BOTÃO DE ÁUDIO MESTRE (APENAS NO 1º) */
.master-audio-control {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--gold-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-primary);
    font-size: 14px;
    z-index: 10;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.master-audio-control:hover {
    background: var(--gold-primary);
    color: #000;
    transform: scale(1.1);
}

.master-audio-control.muted {
    border-color: #fff;
    color: #fff;
}

/* INFO BOX */
.ganhador-info-box {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    z-index: 3;
    box-sizing: border-box;
}

.ganhador-badge {
    color: #fff;
    font-weight: 800;
    font-size: 11px;
    text-align: center;
    width: 90%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 2px 4px #000;
}

.ganhador-card.position-1 .ganhador-badge {
    font-size: 15px;
    color: var(--gold-primary);
    letter-spacing: 0.5px;
}

.ganhador-cota {
    background: var(--neon-green);
    color: #000;
    padding: 3px 10px;
    border-radius: 8px;
    font-weight: 900;
    font-size: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
}

.ganhador-card.position-1 .ganhador-cota {
    font-size: 13px;
    padding: 4px 15px;
}

.ganhador-position {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--gold-primary);
    color: #000;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 11px;
    z-index: 4;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.ganhador-card.position-1 .ganhador-position {
    width: 32px;
    height: 32px;
    font-size: 15px;
}

@media (max-width: 400px) {
    .ganhadores-container { padding: 15px; gap: 15px; }
    .ganhador-card { width: 120px; height: 120px; }
    .ganhador-card.position-1 { width: 180px !important; height: 180px !important; }
}
