/* Anast Soccer — Stadium Neon Edition (Compatible with CS 1.6 MOTD) */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    width: 100%;
    height: 100%;
    background: #030706;
}

body {
    width: 100%;
    min-height: 100%;
    padding: 14px 2%;
    overflow-x: hidden;
    color: #00f5d4;
    /* Установлен красивый современный шрифт */
    font: 600 13px/1.3 'Inter', 'Segoe UI', sans-serif;
    background-color: #09090b;
    background-image: url("img/soccer_bg.jpg");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 100% 100%;
    background-attachment: fixed;
}

@keyframes backgroundDrift {
    0% { background-position: 47% center; }
    100% { background-position: 53% center; }
}

@keyframes goldOrbit {
    0% { left: -250px; top: -125px; opacity: .68; }
    100% { left: -185px; top: -55px; opacity: 1; }
}
@keyframes redOrbit {
    0% { right: -245px; bottom: -155px; opacity: .65; }
    100% { right: -175px; bottom: -80px; opacity: 1; }
}

h1, h2 {
    position: relative;
    z-index: 2;
    width: 96%;
    margin: 0 auto 10px;
    padding: 7px 0 10px;
    color: #ffffff;
    font-size: 22px;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 3.5px;
    text-shadow: 0 0 6px #00ff88, 0 0 14px #00d4ff, 0 0 28px rgba(0, 255, 136, 0.55);
    animation: titleGlow 3s ease-in-out infinite;
}
h1:after, h2:after {
    content: "";
    display: block;
    width: 42%;
    height: 2px;
    margin: 8px auto 0;
    background: linear-gradient(90deg, transparent, #ffd700, #00ff88, #00d4ff, transparent);
    box-shadow: 0 0 8px #00ff88, 0 0 20px rgba(255, 215, 0, 0.65);
    animation: titleLine 3s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% { color: #ffffff; text-shadow: 0 0 6px #00ff88, 0 0 14px #00d4ff, 0 0 28px rgba(0, 255, 136, 0.55); }
    50% { color: #eafff5; text-shadow: 0 0 8px #ffd700, 0 0 16px #00ff88, 0 0 34px rgba(0, 212, 255, 0.65); }
}
@keyframes titleLine {
    0%, 100% { width: 35%; background: #00ff88; box-shadow: 0 0 8px #00ff88, 0 0 20px rgba(0, 212, 255, 0.6); }
    50% { width: 58%; background: #ffd700; box-shadow: 0 0 10px #ffd700, 0 0 24px rgba(0, 255, 136, 0.75); }
}

table {
    position: relative;
    z-index: 2;
    width: 96% !important;
    max-width: 1400px;
    margin: 0 auto;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    color: #d6fff0;
    background-color: rgba(7, 17, 13, 0.95);
    background: linear-gradient(135deg, rgba(9, 22, 17, 0.96), rgba(5, 13, 10, 0.95));
    border: 1px solid #00ff88;
    border-radius: 13px;
    box-shadow: 0 0 7px rgba(0, 255, 136, 0.7), 0 0 26px rgba(0, 212, 255, 0.22),
                0 18px 40px rgba(0, 0, 0, 0.88);
    animation: panelGlow 4s ease-in-out infinite;
}

@keyframes panelGlow {
    0%, 100% { border-color: #00ff88; box-shadow: 0 0 8px #00ff88, 0 0 28px rgba(0, 255, 136, 0.32), 0 18px 40px rgba(0,0,0,.88); }
    50% { border-color: #00d4ff; box-shadow: 0 0 10px #00d4ff, 0 0 32px rgba(255, 215, 0, 0.32), 0 18px 40px rgba(0,0,0,.88); }
}

/* Заголовки колонок таблицы */
th {
    height: 45px;
    padding: 6px 4px;
    overflow: hidden;
    color: #d9fff1;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    white-space: normal;
    background-color: #09261b;
    background: linear-gradient(90deg, #09261b, #0e3828, #082233, #09261b);
    background-size: 300% 100%;
    border-bottom: 2px solid #00ff88;
    text-shadow: 0 0 7px rgba(0, 255, 136, 0.65);
    animation: headerFlow 7s linear infinite;
}

@keyframes headerFlow {
    0% { background-position: 0 0; }
    100% { background-position: 300% 0; }
}
th + th { border-left: 1px solid rgba(0, 255, 136, 0.22); }

tr { background-color: rgba(8, 19, 15, 0.93); }
tbody tr:nth-child(even), tr#b, tr.b { background-color: rgba(12, 27, 21, 0.95); }
tbody tr:hover {
    background-color: rgba(0, 255, 136, 0.14);
    background: linear-gradient(90deg, rgba(0, 255, 136, 0.18), rgba(255, 215, 0, 0.14), rgba(0, 212, 255, 0.16));
    box-shadow: 4px 0 0 #00ff88 inset, 0 0 25px rgba(0, 255, 136, 0.22) inset;
}

tbody tr:hover td:first-child {
    color: #ffffff;
    text-shadow: 0 0 8px #ffd700, 0 0 18px #00ff88;
}

/* TOP 3 — STADIUM PODIUM BANDS */
body > table > tbody > tr:nth-child(2) td {
    background-color: rgba(255, 215, 0, 0.17);
    border-top: 1px solid rgba(255, 215, 0, 0.72);
    border-bottom: 1px solid rgba(255, 215, 0, 0.65);
    animation: podiumGold 2.4s ease-in-out infinite;
}

body > table > tbody > tr:nth-child(3) td {
    background-color: rgba(0, 240, 255, 0.15);
    border-top: 1px solid rgba(0, 240, 255, 0.7);
    border-bottom: 1px solid rgba(0, 240, 255, 0.6);
    animation: podiumSilver 2.7s ease-in-out infinite;
}

body > table > tbody > tr:nth-child(4) td {
    background-color: rgba(0, 255, 136, 0.15);
    border-top: 1px solid rgba(0, 255, 136, 0.65);
    border-bottom: 1px solid rgba(0, 255, 136, 0.6);
    animation: podiumBronze 3s ease-in-out infinite;
}

body > table > tbody > tr:nth-child(2) td:first-child { border-left: 3px solid #ffd700; }
body > table > tbody > tr:nth-child(2) td:last-child  { border-right: 3px solid #ffd700; }
body > table > tbody > tr:nth-child(3) td:first-child { border-left: 3px solid #00f0ff; }
body > table > tbody > tr:nth-child(3) td:last-child  { border-right: 3px solid #00f0ff; }
body > table > tbody > tr:nth-child(4) td:first-child { border-left: 3px solid #00ff88; }
body > table > tbody > tr:nth-child(4) td:last-child  { border-right: 3px solid #00ff88; }

body > table > tbody > tr:nth-child(2) td:first-child,
body > table > tbody > tr:nth-child(2) td:nth-child(2) {
    color: #fffbcf;
    text-shadow: 0 0 4px #fff, 0 0 9px #ffd700, 0 0 17px #ff8800;
}
body > table > tbody > tr:nth-child(3) td:first-child,
body > table > tbody > tr:nth-child(3) td:nth-child(2) {
    color: #ffffff;
    text-shadow: 0 0 4px #fff, 0 0 9px #00f0ff, 0 0 16px #0088ff;
}
body > table > tbody > tr:nth-child(4) td:first-child,
body > table > tbody > tr:nth-child(4) td:nth-child(2) {
    color: #d8ffec;
    text-shadow: 0 0 4px #fff, 0 0 9px #00ff88, 0 0 16px #009955;
}

/* --- ИКОНКИ PNG ДЛЯ ТОП-3 --- */
body > table > tbody > tr:nth-child(2) > td:nth-child(2) {
    background-image: url("img/1st-prize.png");
    background-position: right;
    background-repeat: no-repeat;
    background-size: 35px;
    padding-right: 40px;
}

body > table > tbody > tr:nth-child(3) > td:nth-child(2) {
    background-image: url("img/2nd-place.png");
    background-position: right;
    background-repeat: no-repeat;
    background-size: 35px;
    padding-right: 40px;
}

body > table > tbody > tr:nth-child(4) > td:nth-child(2) {
    background-image: url("img/3rd-place.png");
    background-position: right;
    background-repeat: no-repeat;
    background-size: 35px;
    padding-right: 40px;
}

@keyframes podiumGold {
    0%, 100% { background-color: rgba(255, 215, 0, 0.14); box-shadow: 0 5px 17px rgba(255, 215, 0, .15) inset; }
    50% { background-color: rgba(255, 215, 0, 0.25); box-shadow: 0 0 25px rgba(255, 215, 0, .35) inset; }
}
@keyframes podiumSilver {
    0%, 100% { background-color: rgba(0, 240, 255, 0.12); box-shadow: 0 5px 15px rgba(0, 240, 255, .13) inset; }
    50% { background-color: rgba(0, 240, 255, 0.22); box-shadow: 0 0 23px rgba(0, 240, 255, .3) inset; }
}
@keyframes podiumBronze {
    0%, 100% { background-color: rgba(0, 255, 136, 0.12); box-shadow: 0 5px 15px rgba(0, 255, 136, .13) inset; }
    50% { background-color: rgba(0, 255, 136, 0.22); box-shadow: 0 0 22px rgba(0, 255, 136, .3) inset; }
}

/* Ячейки статистики */
td {
    height: 40px;
    min-width: 0;
    padding: 6px 6px;
    overflow: hidden;
    color: #c2f8e4;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    vertical-align: middle;
    border-bottom: 1px solid rgba(0, 255, 136, 0.12);
    text-shadow: 0 1px 2px #000;
}

tbody tr:last-child td { border-bottom: 0; }

th:first-child, td:first-child { width: 5%; }
td:first-child {
    color: #00ff88;
    font-size: 15px;
    font-weight: 800;
    text-shadow: 0 0 7px rgba(0, 255, 136, 0.75), 0 0 14px rgba(0, 212, 255, 0.45);
}

th:nth-child(2), td:nth-child(2) { width: 23%; }
td:nth-child(2) {
    color: #ffffff;
    font-weight: 700;
    text-align: left;
    white-space: normal;
    word-wrap: break-word;
    word-break: break-all;
    text-shadow: 0 0 5px rgba(0, 255, 136, 0.35), 0 1px 2px #000;
}

body > table > tbody > tr:nth-child(2) td:nth-child(2) {
    color: #fffbd2;
    text-shadow: 0 0 4px #fff, 0 0 9px #ffd700, 0 0 17px #ff8800;
}
body > table > tbody > tr:nth-child(3) td:nth-child(2) {
    color: #ffffff;
    text-shadow: 0 0 4px #fff, 0 0 9px #00f0ff, 0 0 16px #0088ff;
}
body > table > tbody > tr:nth-child(4) td:nth-child(2) {
    color: #d8ffec;
    text-shadow: 0 0 4px #fff, 0 0 9px #00ff88, 0 0 16px #009955;
}

p {
    position: relative;
    z-index: 2;
    width: 92%;
    margin: 0 auto 7px;
    color: #00ff88;
    font-size: 12px;
    text-align: left;
    text-shadow: 0 0 7px rgba(0, 255, 136, 0.5);
}

table[cellspacing="10"] {
    width: 92% !important;
    margin: 0 auto;
    table-layout: fixed;
    border-spacing: 8px;
    background-color: rgba(7, 17, 13, 0.88);
}

table[cellspacing="10"] > tbody > tr > td {
    height: auto;
    padding: 0;
    vertical-align: top;
    border: 0;
    background: transparent;
    box-shadow: none;
    animation: none;
}

table[cellspacing="10"] > tbody > tr > td:first-child { width: 22% !important; }
table[cellspacing="10"] > tbody > tr > td:nth-child(2) { width: 78% !important; }

table[cellspacing="10"] table {
    width: 100% !important;
    max-width: none;
    margin: 0;
    table-layout: auto;
    border-radius: 8px;
    animation: none;
}

table[cellspacing="10"] table th {
    width: auto;
    height: 31px;
    padding: 4px 5px;
    font-size: 9px;
    line-height: 10px;
}

table[cellspacing="10"] table td {
    width: auto;
    height: 29px;
    padding: 3px 5px;
    font-size: 10px;
    line-height: 11px;
    text-align: center;
    word-break: normal;
    animation: none;
}

table[cellspacing="10"] > tbody > tr > td:first-child table td:first-child {
    width: 67%;
    color: #00ff88;
    text-align: left;
    text-shadow: 0 0 6px rgba(0, 255, 136, 0.55);
}

table[cellspacing="10"] > tbody > tr > td:first-child table td:nth-child(2) {
    width: 33%;
    color: #fff;
    text-align: center;
}

table[cellspacing="10"] > tbody > tr > td:nth-child(2) table th:first-child,
table[cellspacing="10"] > tbody > tr > td:nth-child(2) table td:first-child {
    width: 19%;
    text-align: left;
}

.player-cell { display: block; width: 100%; min-height: 24px; }
.player-avatar {
    float: left;
    width: 24px;
    height: 24px;
    margin-right: 7px;
    border: 1px solid #00ff88;
    border-radius: 5px;
    box-shadow: 0 0 9px rgba(0, 255, 136, 0.6);
}
.player-name {
    display: block;
    padding-top: 5px;
    white-space: normal;
    word-wrap: break-word;
    word-break: break-all;
}

.q, #q { background: rgba(0, 255, 136, 0.12); box-shadow: 0 0 0 1px rgba(0, 255, 136, 0.3) inset; }
.iN { color: #ff5e57; font-weight: bold; text-shadow: 0 0 9px rgba(255, 94, 87, 0.6); }
.iY { color: #00ff88; font-weight: bold; text-shadow: 0 0 9px rgba(0, 255, 136, 0.65); }

/* Rank Capsules */
#Lm, #L, #Lp, #Mm, #M, #Mp, #Hm, #H, #Hp, #Pm, #P, #Pp, #G {
    position: relative;
    display: inline-block;
    min-width: 54px;
    height: 25px;
    padding: 0 7px 0 22px;
    overflow: hidden;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    line-height: 23px;
    vertical-align: middle;
    border: 1px solid #00ff88;
    border-radius: 13px;
    background-color: #0b1914;
    box-shadow: 0 0 9px rgba(0, 255, 136, 0.5);
    text-shadow: 0 0 6px #fff;
}

#Lm:before, #L:before, #Lp:before, #Mm:before, #M:before, #Mp:before,
#Hm:before, #H:before, #Hp:before, #Pm:before, #P:before, #Pp:before, #G:before {
    content: "";
    position: absolute;
    left: 7px;
    top: 7px;
    width: 9px;
    height: 9px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #00ff88;
    box-shadow: 0 0 8px #00ff88;
}

#Lm, #L, #Lp { border-color: #ff7b00; background: linear-gradient(90deg,#4d2200,#1b1108); box-shadow: 0 0 10px rgba(255,123,0,.72); }
#Lm:before, #L:before, #Lp:before { background: #ff7b00; box-shadow: 0 0 9px #ff5500; }
#Mm, #M, #Mp { border-color: #00f0ff; background: linear-gradient(90deg,#00334d,#0b1920); box-shadow: 0 0 10px rgba(0,240,255,.74); }
#Mm:before, #M:before, #Mp:before { background: #00f0ff; box-shadow: 0 0 9px #0088ff; }
#Hm, #H, #Hp { border-color: #ffd700; background: linear-gradient(90deg,#4d4000,#1f1b08); box-shadow: 0 0 11px rgba(255,215,0,.80); }
#Hm:before, #H:before, #Hp:before { background: #ffd700; box-shadow: 0 0 9px #ffaa00; }
#Pm, #P, #Pp { border-color: #00ff88; background: linear-gradient(90deg,#004d2a,#091f15); box-shadow: 0 0 11px rgba(0,255,136,.78); }
#Pm:before, #P:before, #Pp:before { background: #00ff88; box-shadow: 0 0 9px #00cc66; }
#G {
    border-color: #ffd700;
    background: linear-gradient(90deg,#4d3a00,#1a1607);
    box-shadow: 0 0 10px #ffd700, 0 0 23px rgba(255,215,0,.68);
    animation: godPulse 2s ease-in-out infinite;
}
#G:before { background: #fff3b0; box-shadow: 0 0 9px #ffd700, 0 0 16px #ffd700; }

@keyframes godPulse {
    0%, 100% { box-shadow: 0 0 9px #ffd700, 0 0 19px rgba(255,215,0,.55); }
    50% { box-shadow: 0 0 15px #fff3b0, 0 0 31px rgba(255,215,0,.88); }
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #030706; }
::-webkit-scrollbar-thumb { border-radius: 6px; background: linear-gradient(180deg,#00ff88,#00d4ff,#ffd700); }

/* Compact mode / Responsive */
@media screen and (max-height: 420px) {
    body { padding: 5px 1%; background-position: center center; }
    table, h1, h2 { width: 96% !important; margin-left: auto; margin-right: auto; }
    h1, h2 { margin-bottom: 5px; padding: 4px 0 6px; font-size: 15px; letter-spacing: 2px; }
    h1:after, h2:after { margin-top: 4px; }
    th { height: 28px; padding: 2px 3px; font-size: 8px; line-height: 10px; letter-spacing: 0; }
    td { height: 27px; padding: 2px 4px; font-size: 10px; line-height: 11px; }
    td:first-child { font-size: 13px; }
    td:nth-child(2) { font-size: 10px; }
    .player-cell { min-height: 20px; }
    .player-avatar { width: 20px; height: 20px; margin-right: 5px; }
    .player-name { padding-top: 4px; }
    #Lm, #L, #Lp, #Mm, #M, #Mp, #Hm, #H, #Hp, #Pm, #P, #Pp, #G {
        min-width: 44px; height: 21px; padding: 0 5px 0 18px; font-size: 9px; line-height: 19px;
    }
    #Lm:before, #L:before, #Lp:before, #Mm:before, #M:before, #Mp:before,
    #Hm:before, #H:before, #Hp:before, #Pm:before, #P:before, #Pp:before, #G:before {
        left: 6px; top: 6px; width: 7px; height: 7px; border-width: 1px;
    }
}

@media screen and (max-width: 760px) {
    body { padding: 3px 1%; }
    table, h1, h2 { width: 98% !important; }
    h1, h2 { margin-bottom: 3px; padding: 3px 0 4px; font-size: 13px; letter-spacing: 1px; }
    th { height: 25px; padding: 2px; font-size: 7px; line-height: 9px; letter-spacing: 0; }
    td { height: 24px; padding: 1px 2px; font-size: 9px; line-height: 10px; }
    th:first-child, td:first-child { width: 6%; }
    th:nth-child(2), td:nth-child(2) { width: 25%; }
    #Lm, #L, #Lp, #Mm, #M, #Mp, #Hm, #H, #Hp, #Pm, #P, #Pp, #G {
        min-width: 39px; height: 19px; padding: 0 3px 0 15px; font-size: 8px; line-height: 17px;
    }
}

@media screen and (max-height: 360px) {
    body { padding: 2px 1%; }
    h1, h2 { margin-bottom: 2px; padding: 2px 0 3px; font-size: 12px; }
    h1:after, h2:after { margin-top: 2px; }
    th { height: 23px; padding: 1px 2px; font-size: 7px; line-height: 8px; }
    td { height: 22px; padding: 1px 3px; font-size: 9px; line-height: 10px; }
    td:first-child { font-size: 11px; }
    td:nth-child(2) { font-size: 9px; }
    #Lm, #L, #Lp, #Mm, #M, #Mp, #Hm, #H, #Hp, #Pm, #P, #Pp, #G {
        min-width: 39px; height: 18px; padding-left: 15px; font-size: 8px; line-height: 16px;
    }
}

/* ==========================================
   ИКОНКИ СТАТИСТИКИ (ПОБЕДЫ, ПОРАЖЕНИЯ, СКИЛЛ)
   ========================================== */
th:nth-child(3)::before, 
th:nth-child(4)::before, 
th:nth-child(5)::before,
th:nth-child(6)::before,
th:nth-child(7)::before,
th:nth-child(8)::before,
th:nth-child(9)::before {
    content: "" !important;
    display: inline-block !important;
    width: 22px !important;
    height: 22px !important;
    margin-right: 6px !important;
    vertical-align: middle !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}

th:nth-child(3)::before {
    background-image: url('img/goal.png') !important;
}

th:nth-child(4)::before {
    background-image: url('img/football_assist.png') !important;
}

th:nth-child(5)::before {
    background-image: url('img/football_save_vorota.png') !important;
}

th:nth-child(6)::before {
    background-image: url('img/tackle.png') !important;
}

th:nth-child(7)::before {
    background-image: url('img/football_kill.png') !important;
}

th:nth-child(8)::before {
    background-image: url('img/cup_win_team.png') !important;
}

th:nth-child(9)::before {
    background-image: url('img/score.png') !important;
}


/* ==========================================
   ПОКРАСКА КОЛОНОК ФУТБОЛЬНОЙ СТАТИСТИКИ
   ========================================== */

/* 3. ГОЛЫ — яркий футбольный изумруд */
td:nth-child(3) {
    color: #00ff88;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.45);
    font-weight: 800;
}

/* 4. АССИСТЫ — бирюзово-мятный пас */
td:nth-child(4) {
    color: #64ffda;
    text-shadow: 0 0 9px rgba(100, 255, 218, 0.35);
    font-weight: 800;
}

/* 5. ЗАЩИТА ВОРОТ — надёжный золотисто-песочный */
td:nth-child(5) {
    color: #ffe082;
    text-shadow: 0 0 9px rgba(255, 224, 130, 0.35);
    font-weight: 800;
}

/* 6. ОТБОРЫ / ПЕРЕХВАТЫ — электро-голубой */
td:nth-child(6) {
    color: #38f2ff;
    text-shadow: 0 0 9px rgba(56, 242, 255, 0.35);
    font-weight: 800;
}

/* 7. УБИЙСТВ МЯЧОМ — мощный пушечный оранжевый */
td:nth-child(7) {
    color: #ff9e44;
    text-shadow: 0 0 9px rgba(255, 158, 68, 0.4);
    font-weight: 800;
}

/* 8. ПОБЕД — чемпионское золото */
td:nth-child(8) {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.45);
    font-weight: 800;
}

/* 9. ОЧКИ — итоговый рейтинг в ярком неоне */
td:nth-child(9) {
    color: #00f5d4 !important;
    text-shadow: 0 0 11px rgba(0, 245, 212, 0.75);
    font-weight: 900;
}