* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Fredoka', sans-serif; /* Fonte Cartoon */
}

body {
    background-color: #009c3b; /* Fallback caso a imagem demore a carregar */
    color: #fff;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative; /* Necessário para o pseudo-elemento do background funcionar */
}

/* Camada separada apenas para a imagem de fundo desfocada */
body::before {
    content: "";
    position: fixed; /* Fixa o fundo na tela toda */
    top: -15px;      /* Expande um pouco além da tela para esconder as bordas borradas */
    left: -15px;
    right: -15px;
    bottom: -15px;
    background-image: url('https://i.imgur.com/Xc0rKMv.png');
    background-size: cover; /* Força a imagem a preencher tudo sem sobrar espaço */
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(6px); /* Força do desfoque */
    z-index: -1; /* Garante que fique atrás de todo o seu conteúdo principal */
}

.header {
    text-align: center;
    padding: 30px 20px 10px;
}

.logo {
    max-width: 300px;
    width: 100%; /* Garante que a logo diminua em telas muito pequenas */
    border-radius: 20px;
    border: 5px solid #fedf00;
    box-shadow: 0 8px 0 rgba(0,0,0,0.2);
    animation: flutuar 3s ease-in-out infinite;
}

@keyframes flutuar {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Contador Regressivo */
.countdown-section {
    text-align: center;
    margin: 20px 0 50px;
}

.titulo-animado {
    color: #fedf00;
    margin-bottom: 25px;
    font-size: 2rem;
    text-transform: uppercase;
    text-shadow: 3px 3px 0 #005a22;
    letter-spacing: 1px;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.time-box {
    background-color: #fedf00;
    color: #009c3b;
    padding: 15px 20px;
    border-radius: 20px;
    min-width: 100px;
    border: 4px solid #fff;
    box-shadow: 0 8px 0 rgba(0,0,0,0.2);
    transform: rotate(-2deg);
    transition: transform 0.3s;
}

.time-box:nth-child(even) {
    transform: rotate(2deg);
}

.time-box:hover {
    transform: scale(1.1) rotate(0deg);
}

.time-box span {
    font-size: 3rem;
    font-weight: 700;
    display: block;
    line-height: 1;
}

.time-box p {
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 5px;
}

/* Botões de Rodada */
.buttons-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.btn-rodada {
    background-color: #fff;
    color: #009c3b;
    border: 4px solid #005a22;
    padding: 12px 30px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 6px 0 #005a22;
    transition: all 0.1s;
}

.btn-rodada:active {
    transform: translateY(6px);
    box-shadow: 0 0px 0 #005a22;
}

.btn-rodada.active {
    background-color: #0047bb;
    color: #fff;
    border-color: #fff;
    box-shadow: 0 6px 0 #002e7a;
}

/* =========================================
   MATCH CARDS (Novo Design Escuro/Esportivo)
   ========================================= */
.jogos-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 25px;
}

.match-card {
    background-color: #1153b6; /* NOVO: Azul escuro profundo e profissional */
    border-radius: 25px;
    padding: 20px;
    text-align: center;
    border: 4px solid #fedf00; /* NOVO: Borda amarela cartum para destacar no fundo */
    box-shadow: 0 8px 0 rgba(0,0,0,0.3);
    color: #fff; /* NOVO: Texto principal agora é branco */
    transition: transform 0.2s, border-color 0.2s;
    position: relative;
    overflow: hidden;
}

.match-card:hover {
    transform: translateY(-8px);
    border-color: #0047bb; /* Altera a borda para azul ao passar o mouse */
}

.match-header {
    background-color: rgba(255, 255, 255, 0.1); /* NOVO: Fundo sutil e transparente */
    display: inline-block;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fedf00; /* NOVO: Texto dourado/amarelo para informações da rodada */
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.match-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
}

.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 40%;
}

.team img {
    width: 70px;
    height: 50px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 10px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 0 rgba(0,0,0,0.3);
}

.team span {
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff; /* NOVO: Nomes das seleções em branco */
}

.vs {
    font-size: 1.5rem;
    font-weight: 900;
    color: #051937; /* NOVO: Texto azul escuro */
    background-color: #fedf00; /* NOVO: Círculo central amarelo vibrante */
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 4px 0 rgba(0,0,0,0.2);
    z-index: 2;
}

/* =========================================
   RESPONSIVIDADE (Mobile)
   ========================================= */
@media (max-width: 600px) {
    .countdown {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    .time-box {
        min-width: auto;
        width: 100%;
        padding: 15px 10px;
    }
    .time-box span {
        font-size: 2.2rem;
    }
    .titulo-animado {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }
    
    .buttons-container {
        gap: 10px;
    }
    .btn-rodada {
        flex: 1 1 100%;
        max-width: 300px;
        padding: 10px 20px;
        font-size: 1.1rem;
    }

    .match-card {
        padding: 15px 10px;
    }
    .team img {
        width: 50px;
        height: 35px;
    }
    .team span {
        font-size: 0.95rem;
    }
    .vs {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
}

/* =========================================
   WIDGET DA RÁDIO FRETES
   ========================================= */
.radio-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #051937; /* Mesmo azul escuro dos cards */
    border: 4px solid #fedf00; /* Borda amarela */
    border-radius: 20px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 8px 0 rgba(0,0,0,0.3);
    z-index: 1000;
    max-width: 340px;
}

.radio-info {
    display: flex;
    flex-direction: column;
    text-align: left;
    overflow: hidden; /* Evita que nomes muito grandes quebrem o layout */
}

.radio-nome {
    color: #fedf00;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.musica-nome {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    max-width: 180px; /* Corta o texto com "..." se for muito comprido */
}

.music-btn {
    background-color: #fedf00;
    color: #051937;
    border: 3px solid #fff;
    padding: 8px 15px;
    border-radius: 15px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 0 rgba(0,0,0,0.2);
    transition: all 0.2s;
    white-space: nowrap;
}

.music-btn:hover {
    transform: scale(1.05);
}

.music-btn:active {
    transform: translateY(4px);
    box-shadow: 0 0px 0 rgba(0,0,0,0.2);
}

/* Responsividade do Widget no Celular */
@media (max-width: 600px) {
    .radio-container {
        bottom: 15px;
        right: 15px;
        left: 15px; /* Ocupa a largura inteira na base do celular */
        max-width: none;
        justify-content: space-between;
        padding: 10px 15px;
    }
    .musica-nome {
        max-width: 200px;
    }
}

/* Container para alinhar os 3 botões da rádio */
.radio-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Estilo para os botões menores de passar/voltar */
.music-btn.secondary {
    padding: 8px 12px;
    font-size: 1.1rem;
    background-color: #fff;
    color: #051937;
    border-color: #051937;
}

.music-btn.secondary:hover {
    background-color: #fedf00;
}