/* CSS PARA TABELA HTML TRADICIONAL - Inspirado no topdeaths */
html, body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', 'Tahoma', 'Arial', sans-serif;
    font-size: 12px;
    line-height: 1.3;
    color: #ffffff;
    background: url('http://www.majesticsz.ihosts3.pt/adp3.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center center;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Container principal */
.container {
    max-width: 750px;
    width: 98%;
    margin: 15px auto;
    padding: 12px;
    background: rgba(25, 5, 15, 0.95); /* Fundo vermelho escuro para revenge */
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(255, 107, 107, 0.7); /* Sombra vermelha */
    border: 2px solid rgba(255, 107, 107, 0.8); /* Borda vermelha */
    position: relative;
}

/* Título principal usando imagem */
.container::before {
    content: "";
    display: block;
    background-image: url('http://www.majesticsz.ihosts3.pt/Cha2.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    height: 60px;
    margin-bottom: 12px;
    padding: 8px 0;
}

/* Estilo da tabela HTML */
table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.7);
}

/* Headers da tabela */
th {
    background: linear-gradient(135deg, #B22222 0%, #ff6b6b 50%, #DC143C 100%);
    color: #ffffff;
    font-weight: bold;
    font-size: 12px;
    padding: 9px 7px;
    text-align: center;
    border-bottom: 2px solid #B22222;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

/* Células da tabela */
td {
    padding: 7px;
    text-align: center;
    font-size: 11px;
    border-bottom: 1px solid rgba(255, 107, 107, 0.2);
    transition: all 0.3s ease;
}

/* Alternância de cores nas linhas */
tr.a {
    background: rgba(0, 0, 0, 0.3); /* Escuro para classe 'a' */
}

tr.b {
    background: rgba(255, 50, 50, 0.15); /* Vermelho claro para classe 'b' */
}

/* Hover nas linhas */
tr:hover td {
    background: rgba(255, 107, 107, 0.3) !important;
    transform: translateX(2px);
}

/* Estilos específicos para cada coluna */
td:nth-child(1) {
    /* Posição */
    font-weight: bold;
    color: #ffa500;
    font-size: 13px;
    width: 12%;
}

td:nth-child(2) {
    /* Jogadores A vs B */
    font-weight: bold;
    color: #ffffff;
    font-size: 12px;
    width: 50%;
}

td:nth-child(3) {
    /* Total de duelos */
    color: #90ee90;
    font-weight: bold;
    font-size: 13px;
    width: 15%;
}

td:nth-child(4) {
    /* A→B */
    color: #66d9ff;
    font-weight: bold;
    font-size: 12px;
    width: 11%;
}

td:nth-child(5) {
    /* B→A */
    color: #ff9999;
    font-weight: bold;
    font-size: 12px;
    width: 12%;
}

/* Headers específicos */
th:nth-child(1) { 
    width: 12%; 
    background-image: url('http://www.majesticsz.ihosts3.pt/top_armas_global/weapons/dualelites.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 50%;
    text-indent: -9999px; /* esconder texto "Pos" */
    position: relative;
}
th:nth-child(2) { 
    width: 50%; 
    background-image: url('http://www.majesticsz.ihosts3.pt/versus.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 65%;
    text-indent: -9999px; /* esconder texto "Jogador A vs Jogador B" */
    position: relative;
}
th:nth-child(3) { 
    width: 15%; 
    background-image: url('http://www.majesticsz.ihosts3.pt/Duelos2.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 65%;
    text-indent: -9999px; /* esconder texto "Total" */
    position: relative;
}
th:nth-child(4) { 
    width: 11%; 
    background-image: url('http://www.majesticsz.ihosts3.pt/AB.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 75%;
    text-indent: -9999px; /* esconder texto "A→B" */
    position: relative;
}
th:nth-child(5) { 
    width: 12%; 
    background-image: url('http://www.majesticsz.ihosts3.pt/BA.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 75%;
    text-indent: -9999px; /* esconder texto "B→A" */
    position: relative;
}

/* Animações suaves */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header da tabela sempre visível */
thead tr, th {
    opacity: 1 !important;
    animation: none !important;
}

/* Aplicar animação apenas às linhas de dados (tbody) */
tbody tr {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

/* Fallback: todas as linhas visíveis por padrão */
tr {
    opacity: 1;
}

/* Animações específicas para linhas de dados */
tbody tr:nth-child(1) { animation-delay: 0.1s; }
tbody tr:nth-child(2) { animation-delay: 0.2s; }
tbody tr:nth-child(3) { animation-delay: 0.3s; }
tbody tr:nth-child(4) { animation-delay: 0.4s; }
tbody tr:nth-child(5) { animation-delay: 0.5s; }
tbody tr:nth-child(6) { animation-delay: 0.6s; }
tbody tr:nth-child(7) { animation-delay: 0.7s; }
tbody tr:nth-child(8) { animation-delay: 0.8s; }
tbody tr:nth-child(9) { animation-delay: 0.9s; }
tbody tr:nth-child(10) { animation-delay: 1.0s; }







/* Classe ultra-curta para imagem vs */
.v {
    background-image: url('http://www.majesticsz.ihosts3.pt/vs_fogo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    text-indent: -9999px; /* esconder texto "vs" */
    width: 35px;
    height: 20px;
    display: inline-block;
    vertical-align: middle;
}

/* Estilo para mensagem de vazio */
td[colspan="5"] {
    font-size: 15px !important;
    font-weight: bold !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    opacity: 1 !important;
}

/* REGRAS DE SEGURANÇA - GARANTIR VISIBILIDADE */
table, tr, td, th {
    opacity: 1 !important;
}

/* Só aplicar animação se browser suportar */
@media (prefers-reduced-motion: no-preference) {
    tbody tr {
        opacity: 0;
        animation: fadeInUp 0.6s ease forwards;
    }
}

/* Para browsers antigos ou sem animação, sempre visível */
@media (prefers-reduced-motion: reduce) {
    tbody tr {
        opacity: 1 !important;
        animation: none !important;
    }
}