/* Premie.premier-rating-bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 120px 120px;
    z-index: 1;
}ackground images by tier */
.premier-rating-bg {
    position: relative;
    width: 130px;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.premier-rating-bg::before {
    content: "";
    position: absolute;
    top: -5px;
    left: 15%;
    transform: translateX(-50%);
    width: 170px;
    height: 55px;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 170px 55px;
    z-index: 1;
}
.premier-rating-bg.premier-gray::before {
    background-image: url('http://www.majesticsz.ihosts3.pt/ranking_map_global/imagens/tier1.png');
}
.premier-rating-bg.premier-lightblue::before {
    background-image: url('http://www.majesticsz.ihosts3.pt/ranking_map_global/imagens/tier2.png');
}
.premier-rating-bg.premier-blue::before {
    background-image: url('http://www.majesticsz.ihosts3.pt/ranking_map_global/imagens/tier3.png');
}
.premier-rating-bg.premier-purple::before {
    background-image: url('http://www.majesticsz.ihosts3.pt/ranking_map_global/imagens/tier4.png');
}
.premier-rating-bg.premier-pink::before {
    background-image: url('http://www.majesticsz.ihosts3.pt/ranking_map_global/imagens/tier5.png');
}
.premier-rating-bg.premier-red::before {
    background-image: url('http://www.majesticsz.ihosts3.pt/ranking_map_global/imagens/tier6.png');
}
.premier-rating-bg.premier-yellow::before {
    background-image: url('http://www.majesticsz.ihosts3.pt/ranking_map_global/imagens/tier7.png');
}

/* ===== SISTEMA UNIFICADO - CLASSES p1-p7 (NOVAS) ===== */
.premier-rating-bg.p1::before {
    background-image: url('http://www.majesticsz.ihosts3.pt/ranking_map_global/imagens/tier1.png');
}
.premier-rating-bg.p2::before {
    background-image: url('http://www.majesticsz.ihosts3.pt/ranking_map_global/imagens/tier2.png');
}
.premier-rating-bg.p3::before {
    background-image: url('http://www.majesticsz.ihosts3.pt/ranking_map_global/imagens/tier3.png');
}
.premier-rating-bg.p4::before {
    background-image: url('http://www.majesticsz.ihosts3.pt/ranking_map_global/imagens/tier4.png');
}
.premier-rating-bg.p5::before {
    background-image: url('http://www.majesticsz.ihosts3.pt/ranking_map_global/imagens/tier5.png');
}
.premier-rating-bg.p6::before {
    background-image: url('http://www.majesticsz.ihosts3.pt/ranking_map_global/imagens/tier6.png');
}
.premier-rating-bg.p7::before {
    background-image: url('http://www.majesticsz.ihosts3.pt/ranking_map_global/imagens/tier7.png');
}
.premier-rating {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-left: 65px;
}

/* ===================================================================
   MAPSTATS PERSONAL - CSS IGUAL AO TOPMAP COM ESTATÍSTICAS EM COLUNAS
   Autor: MAJESTIC S+Z
   Versão: 2025 - CS2 STYLE RANKS + PREMIER SYSTEM
   Compatível com: Counter-Strike 1.6
   Table Structure: KILLS | DEATHS | HEADSHOTS | K/D | POINTS | HS%
   =================================================================== */

/* Reset básico e configurações globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', sans-serif;
    font-size: 12px;
    line-height: 1.4;
    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: 650px;
    margin: 20px auto;
    padding: 15px;
    background: rgba(5, 10, 30, 0.95);
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(0, 191, 255, 0.6);
    border: 2px solid rgba(0, 255, 255, 0.8);
    position: relative;
}

/* Título principal */
.header {
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    color: #FFA500;
    margin-bottom: 15px;
    padding: 10px;
    background: linear-gradient(90deg, transparent, rgba(0, 50, 100, 0.4), transparent);
    border-radius: 6px;
    text-shadow: 0 0 10px rgba(255, 165, 0, 0.8);
}

.player-name {
    font-size: 20px;
    font-weight: bold;
    color: #00FFFF;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
    margin-bottom: 2px;
}

.map-name {
    font-size: 28px;
    color: #FFA500;
    text-shadow: 0 0 10px rgba(255, 165, 0, 0.8);
    opacity: 1;
    font-weight: bold;
}

/* Performance Section */
.performance-item {
    text-align: center;
    margin: 10px auto;
    padding: 12px 8px;
    max-width: 600px;
    background: linear-gradient(90deg, rgba(0, 50, 100, 0.25), rgba(0, 50, 100, 0.15));
    border-left: 3px solid #0066CC;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.performance-item:hover {
    background: linear-gradient(90deg, rgba(0, 191, 255, 0.3), rgba(0, 191, 255, 0.2)) !important;
    transform: scale(1.02);
    box-shadow: 0 3px 15px rgba(0, 255, 255, 0.5);
    border-left: 4px solid #00FFFF !important;
}

.kd-ratio {
    font-size: 24px;
    font-weight: bold;
    margin: 5px 0;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.kd-good { color: #00FF00; }
.kd-average { color: #FFD700; }
.kd-poor { color: #FF4500; }

/* Tabela única com 3 colunas - Rank/Posição/Premier */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px auto;
    max-width: 600px;
    background: linear-gradient(90deg, rgba(0, 100, 150, 0.2), rgba(0, 100, 150, 0.1));
    border: 3px solid #FFD700; /* Contorno amarelo */
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.info-table:hover {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.3), rgba(255, 215, 0, 0.2)) !important; /* Hover amarelo */
    transform: scale(1.02);
    box-shadow: 0 3px 15px rgba(255, 215, 0, 0.5); /* Sombra amarela */
    border: 4px solid #FFD700 !important; /* Contorno amarelo hover */
}

.info-table td {
    padding: 15px 8px;
    text-align: center;
    vertical-align: top;
    width: 33.33%;
    min-width: 120px; /* Largura mínima para cada coluna */
    border: none;
}

/* Coluna ESQUERDA - Rank */
.rank-column .rank-icon {
    max-width: 150px;
    max-height: 150px;
    width: auto;
    height: auto;
    border-radius: 3px;
    margin-bottom: 8px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 15px; /* Alinha com os valores das outras colunas */
    flex-shrink: 0; /* Previne compressão */
    
    /* Melhor renderização das imagens */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
    -ms-interpolation-mode: nearest-neighbor;
    
    object-fit: contain;
    object-position: center;
}

.rank-column .rank-title {
    font-size: 14px; /* Aumentado de 12px para 14px */
    font-weight: bold;
    color: #ffffff;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.3);
    margin-bottom: 15px; /* Espaço antes do ícone */
    height: 20px; /* Altura aumentada para melhor alinhamento */
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 20px; /* Line-height para centralização vertical */
}

.rank-column .rank-points {
    font-size: 12px; /* Tamanho para o texto */
    color: #cccccc;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.3);
    opacity: 0.8;
    margin-top: 8px;
}

.rank-column .rank-points-value {
    font-size: 16px; /* Tamanho maior para o valor */
    color: #ffffff;
    font-weight: bold;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.3);
    margin-top: 4px;
}

/* Coluna CENTRO - Posição */
.position-column .position-title {
    font-size: 14px; /* Aumentado de 10px para 14px */
    font-weight: bold;
    color: #ffffff;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.3);
    margin-bottom: 15px; /* Alinha com título do rank */
    height: 20px; /* Altura aumentada para melhor alinhamento */
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 20px; /* Line-height para centralização vertical */
}

.position-column .position-value {
    font-size: 32px; /* Aumentado de 28px para 32px */
    font-weight: bold;
    color: #00bcd4;
    text-shadow: 0 0 5px rgba(0, 188, 212, 0.5);
    margin-top: 15px; /* Alinha com ícone do rank */
    height: 130px; /* Mesma altura do ícone ajustado */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Estrela atrás do número da posição - AJUSTADO */
.position-value-bg {
    display: inline-block;
    width: 40px;
    height: 40px;
    position: relative;
}
.position-value-bg .position-value {
    width: 40px;
    height: 130px; /* Igual ao premier-rating */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    color: #FFD700;
    text-align: center;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.3);
    z-index: 2;
}

/* Coluna DIREITA - Premier */
.premier-column .premier-title {
    font-size: 14px; /* Aumentado de 10px para 14px */
    font-weight: bold;
    color: #ffffff;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.3);
    margin-bottom: 15px; /* Alinha com título do rank */
    height: 20px; /* Altura aumentada para melhor alinhamento */
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 20px; /* Line-height para centralização vertical */
}

.premier-column .premier-rating {
    font-size: 28px; /* Aumentado de 24px para 28px */
    font-weight: bold;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.3);
    margin-top: 15px; /* Alinha com ícone do rank */
    height: 130px; /* Mesma altura do ícone ajustado */
    display: flex;
    align-items: center;
    justify-content: center;
}
    font-weight: bold;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.3);
    margin-top: 2px;
}

/* ===== SISTEMA PREMIER - 7 TIER COLORS ===== */
.premier-gray { color: #909090 !important; text-shadow: 0 0 5px rgba(144, 144, 144, 0.5) !important; }
.premier-lightblue { color: #87CEEB !important; text-shadow: 0 0 5px rgba(135, 206, 235, 0.5) !important; }
.premier-blue { color: #4169E1 !important; text-shadow: 0 0 5px rgba(65, 105, 225, 0.5) !important; }
.premier-purple { color: #9370DB !important; text-shadow: 0 0 5px rgba(147, 112, 219, 0.5) !important; }
.premier-pink { color: #FF69B4 !important; text-shadow: 0 0 5px rgba(255, 105, 180, 0.5) !important; }
.premier-red { color: #FF4500 !important; text-shadow: 0 0 5px rgba(255, 69, 0, 0.5) !important; }
.premier-yellow { color: #FFD700 !important; text-shadow: 0 0 5px rgba(255, 215, 0, 0.5) !important; }

/* ===== SISTEMA UNIFICADO - CORES p1-p7 (NOVAS) ===== */
.p1 { color: #909090 !important; text-shadow: 0 0 5px rgba(144, 144, 144, 0.5) !important; }
.p2 { color: #87CEEB !important; text-shadow: 0 0 5px rgba(135, 206, 235, 0.5) !important; }
.p3 { color: #4169E1 !important; text-shadow: 0 0 5px rgba(65, 105, 225, 0.5) !important; }
.p4 { color: #9370DB !important; text-shadow: 0 0 5px rgba(147, 112, 219, 0.5) !important; }
.p5 { color: #FF69B4 !important; text-shadow: 0 0 5px rgba(255, 105, 180, 0.5) !important; }
.p6 { color: #FF4500 !important; text-shadow: 0 0 5px rgba(255, 69, 0, 0.5) !important; }
.p7 { color: #FFD700 !important; text-shadow: 0 0 5px rgba(255, 215, 0, 0.5) !important; }

/* Tabela principal - IGUAL AO TOPMAP */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 auto;
    background: rgba(0, 30, 60, 0.9);
    border: 3px solid #FFD700; /* Contorno amarelo */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.6), 0 0 15px rgba(255, 215, 0, 0.3); /* Sombra com toque amarelo */
    table-layout: fixed;
}

/* Larguras das 5 colunas para estatísticas */
th:nth-child(1), td:nth-child(1) { width: 20%; }  /* KILLS */
th:nth-child(2), td:nth-child(2) { width: 20%; }  /* DEATHS */
th:nth-child(3), td:nth-child(3) { width: 20%; }  /* HEADSHOTS */
th:nth-child(4), td:nth-child(4) { width: 20%; }  /* K/D */
th:nth-child(5), td:nth-child(5) { width: 20%; }  /* HS% */

/* Cabeçalho da tabela */
th {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 50%, #ff8c42 100%);
    color: #ffffff;
    font-weight: bold;
    font-size: 12px;
    padding: 12px 8px;
    text-align: center;
    border-bottom: 2px solid #d4651a;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Headers com imagens e textos via CSS */
.header-kills,
.header-deaths,
.header-headshots,
.header-kd,
.header-hs {
    text-align: center !important;
    vertical-align: middle !important;
    position: relative;
    padding: 12px 8px !important;
    height: 50px;
    /* Removido text-indent para permitir pseudo-elementos */
}

.header-kills:before {
    content: "";
    position: absolute;
    left: 34%;
    top: 10%;
    transform: translate(-50%, -50%);
    width: 45px;
    height: 45px;
    background-image: url('http://www.majesticsz.ihosts3.pt/ranking_map_global/imagens/icons/icon-kills_deagle.png');
    background-size: 45px 45px;
    background-repeat: no-repeat;
    background-position: center;
}

.header-kills:after {
    content: "" !important;
    display: none !important;
}

.header-deaths:before {
    content: "";
    position: absolute;
    left: 34%;
    top: 10%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background-image: url('http://www.majesticsz.ihosts3.pt/ranking_map_global/imagens/icons/icon-skull.png');
    background-size: 40px 40px;
    background-repeat: no-repeat;
    background-position: center;
}

.header-deaths:after {
    content: "" !important;
    display: none !important;
}

.header-headshots:before {
    content: "";
    position: absolute;
    left: 34%;
    top: 1%;
    transform: translate(-50%, -50%);
    width: 45px;
    height: 45px;
    background-image: url('http://www.majesticsz.ihosts3.pt/ranking_map_global/imagens/icons/icon-headshot.png');
    background-size: 45px 45px;
    background-repeat: no-repeat;
    background-position: center;
}

.header-headshots:after {
    content: "" !important;
    display: none !important;
}

.header-kd:before {
    content: "";
    position: absolute;
    left: 34%;
    top: 15%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    background-image: url('http://www.majesticsz.ihosts3.pt/ranking_map_global/imagens/KDcolorido.png');
    background-size: 36px 36px;
    background-repeat: no-repeat;
    background-position: center;
}

.header-kd:after {
    content: "" !important;
    display: none !important;
}

.header-hs:before {
    content: "";
    position: absolute;
    left: 34%;
    top: 1%;
    transform: translate(-50%, -50%);
    width: 45px;
    height: 45px;
    background-image: url('http://www.majesticsz.ihosts3.pt/ranking_map_global/imagens/icon-headshot2_2.png');
    background-size: 45px 45px;
    background-repeat: no-repeat;
    background-position: center;
}

.header-hs:after {
    content: "" !important;
    display: none !important;
}

/* Células da tabela */
td {
    padding: 10px 6px;
    text-align: center;
    font-size: 11px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    vertical-align: middle;
}

/* Linhas da tabela - Alternadas */
tr.a {
    background: linear-gradient(90deg, rgba(0, 50, 100, 0.25), rgba(0, 50, 100, 0.15));
    border-left: 3px solid #FFD700; /* Borda amarela */
}

tr.b {
    background: linear-gradient(90deg, rgba(0, 100, 150, 0.2), rgba(0, 100, 150, 0.1));
    border-left: 3px solid #FFA500; /* Borda laranja */
}

/* Hover effect nas linhas */
tr:hover {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.3), rgba(255, 215, 0, 0.2)) !important; /* Hover amarelo */
    transform: scale(1.02);
    box-shadow: 0 3px 15px rgba(255, 215, 0, 0.5); /* Sombra amarela */
    border-left: 4px solid #FFD700 !important; /* Borda amarela hover */
}

/* === COLUNAS DAS ESTATÍSTICAS === */
td:nth-child(1), /* KILLS */
td:nth-child(2), /* DEATHS */
td:nth-child(3), /* HEADSHOTS */
td:nth-child(4), /* K/D */
td:nth-child(5) { /* HS% */
    font-weight: bold;
    font-size: 16px;
    color: #00FF00;
    text-shadow: 0 0 3px rgba(0, 255, 0, 0.5);
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 15px;
    padding: 8px;
    font-size: 10px;
    color: #87CEEB;
    text-shadow: 0 0 3px rgba(135, 206, 235, 0.5);
    opacity: 0.8;
}

/* ===== RESPONSIVIDADE PARA CS 1.6 MOTD ===== */
@media screen and (max-width: 800px) {
    body {
        font-size: 10px;
    }
    
    .container {
        max-width: 95%;
        margin: 10px auto;
        padding: 10px;
        border-radius: 8px;
    }
    
    .header {
        font-size: 16px;
        margin-bottom: 10px;
        padding: 8px;
    }
    
    th, td {
        font-size: 10px;
        padding: 6px 4px;
    }
    
    table {
        border-radius: 6px;
    }
    
    /* Ajustar larguras em mobile */
    th:nth-child(1), td:nth-child(1) { width: 20%; }   /* KILLS */
    th:nth-child(2), td:nth-child(2) { width: 20%; }   /* DEATHS */
    th:nth-child(3), td:nth-child(3) { width: 20%; }   /* HEADSHOTS */
    th:nth-child(4), td:nth-child(4) { width: 20%; }   /* K/D */
    th:nth-child(5), td:nth-child(5) { width: 20%; }   /* HS% */
    
    .rank-icon {
        width: 60px;
        height: 60px;
        margin-right: 8px;
    }
    
    .rank-title {
        font-size: 12px;
    }
    
    .rank-points {
        font-size: 9px;
    }
    
    .premier-rating {
        font-size: 11px;
    }
}

/* ===== ANIMAÇÕES SUAVES ===== */
table {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Efeito hover nas células de dados importantes */
td:nth-child(4):hover, 
td:nth-child(5):hover {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}
