        /* TF2 THEMED STATS PAGE */
        :root {
          --tf2-bg-dark: #2E2721;
          --tf2-bg-mid: #3C352E;
          --tf2-bg-light: #524A40;
          --tf2-red: #BD3B3B;
          --tf2-red-dark: #8B2B2B;
          --tf2-blu: #5B818F;
          --tf2-gold: #F0C040;
          --tf2-orange: #CF7336;
          --tf2-cream: #EBE4D8;
          --tf2-border: #7D6E5A;
          --tf2-panel: #3C352E;
          --tf2-panel-light: #4A4136;
          --tf2-green: #5E9C3E;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Oswald', 'Arial Narrow', sans-serif;
            background: var(--tf2-bg-dark);
            color: var(--tf2-cream);
            min-height: 100vh;
            padding: 20px;
            line-height: 1.6;
            display: flex;
            flex-direction: column;
            overflow-x: hidden;
        }
        
        .container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 15px;
            flex: 1;
            width: 100%;
            min-width: 320px;
        }
        
        /* Заголовок */
        .header {
            text-align: center;
            margin-bottom: 30px;
            padding: 20px;
            background: linear-gradient(180deg, var(--tf2-panel-light) 0%, var(--tf2-panel) 100%);
            border-radius: 4px;
            border: 2px solid var(--tf2-border);
            border-top: 4px solid var(--tf2-red);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
            width: 100%;
            min-width: 300px;
            position: relative;
            overflow: hidden;
        }
        
        .header::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 6px;
            background: repeating-linear-gradient(
                -45deg,
                var(--tf2-gold),
                var(--tf2-gold) 10px,
                transparent 10px,
                transparent 20px
            );
        }
        
        .header h1 {
            font-family: 'Russo One', Impact, sans-serif;
            font-size: 2.5em;
            margin-bottom: 10px;
            color: var(--tf2-gold);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 15px;
            flex-wrap: wrap;
            text-transform: uppercase;
            letter-spacing: 2px;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
        }
        
        .header .subtitle {
            color: rgba(235, 228, 216, 0.6);
            font-size: 1.1em;
            white-space: nowrap;
            letter-spacing: 1px;
        }
        
        /* Карточки статистики */
        .stats-overview {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
            width: 100%;
            min-width: 300px;
        }
        
        .stat-card {
            background: linear-gradient(180deg, var(--tf2-panel-light) 0%, var(--tf2-panel) 100%);
            border-radius: 4px;
            padding: 20px;
            text-align: center;
            border: 2px solid var(--tf2-border);
            transition: transform 0.3s, box-shadow 0.3s;
            position: relative;
            overflow: hidden;
            min-height: 130px;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }
        
        .stat-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: var(--tf2-border);
        }
        
        .stat-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
        }
        
        .stat-card.online {
            border-color: var(--tf2-green);
        }
        
        .stat-card.online::before {
            background: var(--tf2-green);
        }
        
        .stat-card.online .stat-value {
            color: var(--tf2-green);
        }
        
        .stat-card.online .stat-icon {
            color: var(--tf2-green);
        }
        
        .stat-card.online:hover {
            box-shadow: 0 5px 15px rgba(94, 156, 62, 0.2);
        }
        
        .stat-card.offline {
            border-color: var(--tf2-red);
        }
        
        .stat-card.offline::before {
            background: var(--tf2-red);
        }
        
        .stat-card.offline .stat-value {
            color: var(--tf2-red);
        }
        
        .stat-card.offline .stat-icon {
            color: var(--tf2-red);
        }
        
        .stat-card.players {
            border-color: var(--tf2-blu);
        }
        
        .stat-card.players::before {
            background: var(--tf2-blu);
        }
        
        .stat-card.players .stat-value {
            color: var(--tf2-blu);
        }
        
        .stat-card.players .stat-icon {
            color: var(--tf2-blu);
        }
        
        .stat-icon {
            font-size: 2em;
            margin-bottom: 10px;
            min-height: 30px;
        }
        
        .stat-value {
            font-size: 2em;
            font-weight: bold;
            margin-bottom: 5px;
            min-height: 50px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: column;
        }
        
        .stat-label {
            color: rgba(235, 228, 216, 0.5);
            font-size: 0.9em;
            min-height: 20px;
        }
        
        /* Панель управління */
        .controls {
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
            margin-bottom: 25px;
            padding: 20px;
            background: linear-gradient(180deg, var(--tf2-panel-light) 0%, var(--tf2-panel) 100%);
            border-radius: 4px;
            border: 2px solid var(--tf2-border);
            align-items: center;
            width: 100%;
            min-width: 300px;
        }
        
        .control-group {
            display: flex;
            flex-direction: column;
            justify-content: center;
            min-height: 60px;
            flex-shrink: 0;
        }
        
        .control-group label {
            font-size: 0.9em;
            color: rgba(235, 228, 216, 0.5);
            margin-bottom: 5px;
            white-space: nowrap;
            font-family: 'Russo One', Impact, sans-serif;
            text-transform: uppercase;
            letter-spacing: 1px;
            font-size: 0.75em;
        }
        
        select {
            padding: 8px 15px;
            border-radius: 4px;
            border: 2px solid var(--tf2-border);
            background: var(--tf2-bg-dark);
            color: var(--tf2-cream);
            font-size: 14px;
            font-family: 'Oswald', sans-serif;
            min-width: 150px;
            height: 40px;
            flex-shrink: 0;
        }
        
        select:focus {
            outline: none;
            border-color: var(--tf2-red);
        }
        
        button {
            padding: 10px 20px;
            border-radius: 4px;
            border: 2px solid var(--tf2-red);
            background: linear-gradient(180deg, var(--tf2-red) 0%, var(--tf2-red-dark) 100%);
            color: #fff;
            font-size: 14px;
            font-family: 'Oswald', sans-serif;
            cursor: pointer;
            transition: background 0.3s, transform 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            height: 40px;
            flex-shrink: 0;
            white-space: nowrap;
            text-transform: uppercase;
            letter-spacing: 1px;
        }
        
        button:hover {
            background: linear-gradient(180deg, #d44444 0%, var(--tf2-red) 100%);
            transform: translateY(-2px);
        }
        
        button:active {
            transform: translateY(0);
        }
        
        #forceRefreshBtn {
            border-color: var(--tf2-orange);
            background: linear-gradient(180deg, var(--tf2-orange) 0%, #a85a2a 100%);
        }
        
        #forceRefreshBtn:hover {
            background: linear-gradient(180deg, #e08040 0%, var(--tf2-orange) 100%);
        }
        
        /* Поиск */
        .search-wrapper {
            flex-grow: 1;
            min-width: 300px;
            position: relative;
            display: flex;
            flex-direction: column;
            justify-content: center;
            min-height: 60px;
            flex-shrink: 1;
        }
        
        .search-container {
            position: relative;
            width: 100%;
            min-width: 200px;
        }
        
        .search-input {
            width: 100%;
            padding: 10px 15px 10px 40px;
            border-radius: 4px;
            border: 2px solid var(--tf2-border);
            background: var(--tf2-bg-dark);
            color: var(--tf2-cream);
            font-size: 14px;
            font-family: 'Oswald', sans-serif;
            transition: border-color 0.3s;
            height: 40px;
            min-width: 200px;
        }
        
        .search-input:focus {
            outline: none;
            border-color: var(--tf2-red);
        }
        
        .search-icon {
            position: absolute;
            left: 15px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--tf2-border);
        }
        
        .search-clear {
            position: absolute;
            right: 15px;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            color: var(--tf2-border);
            cursor: pointer;
            font-size: 18px;
            display: none;
            padding: 0;
            width: 20px;
            height: 20px;
            flex-shrink: 0;
        }
        
        .search-clear:hover {
            color: var(--tf2-red);
        }
        
        /* Результати пошуку */
        .search-results {
            color: var(--tf2-blu);
            font-size: 0.9em;
            margin-top: 8px;
            padding: 6px 12px;
            background: rgba(0, 0, 0, 0.3);
            border-radius: 4px;
            border-left: 3px solid var(--tf2-blu);
            min-height: 32px;
            display: flex;
            align-items: center;
            transition: all 0.3s ease;
            word-break: break-word;
            width: 100%;
        }
        
        .search-results.empty {
            opacity: 0;
            height: 0;
            margin-top: 0;
            padding: 0;
            overflow: hidden;
        }
        
        .search-results.error {
            color: var(--tf2-red);
            border-left-color: var(--tf2-red);
            background: rgba(189, 59, 59, 0.1);
        }
        
        .search-results.success {
            color: var(--tf2-green);
            border-left-color: var(--tf2-green);
            background: rgba(94, 156, 62, 0.1);
        }
        
        /* Час оновлення */
        .last-update {
            text-align: center;
            color: rgba(235, 228, 216, 0.5);
            margin-bottom: 20px;
            font-size: 0.9em;
            width: 100%;
            min-width: 300px;
            min-height: 40px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }
        
        /* Таблиця */
        .players-table {
            background: linear-gradient(180deg, var(--tf2-panel-light) 0%, var(--tf2-panel) 100%);
            border-radius: 4px;
            overflow: hidden;
            border: 2px solid var(--tf2-border);
            margin-bottom: 30px;
            width: 100%;
            min-width: 300px;
            overflow-x: auto;
        }
        
        table {
            width: 100%;
            border-collapse: collapse;
            min-width: 1000px;
        }
        
        thead {
            background: linear-gradient(180deg, var(--tf2-red) 0%, var(--tf2-red-dark) 100%);
        }
        
        th {
            padding: 15px;
            text-align: left;
            font-weight: 600;
            color: #fff;
            border-bottom: 2px solid rgba(0,0,0,0.3);
            white-space: nowrap;
            font-family: 'Russo One', Impact, sans-serif;
            text-transform: uppercase;
            letter-spacing: 1px;
            font-size: 0.85em;
        }
        
        tbody tr {
            border-bottom: 1px solid rgba(125, 110, 90, 0.2);
            transition: background 0.3s;
            cursor: pointer;
        }
        
        tbody tr:hover {
            background: rgba(240, 192, 64, 0.05);
        }
        
        td {
            padding: 15px;
            vertical-align: middle;
        }
        
        /* Стилі для рядків гравців */
        .player-row.online {
            background: rgba(94, 156, 62, 0.05);
        }
        
        .player-row.online:hover {
            background: rgba(94, 156, 62, 0.1);
        }
        
        .rank-cell {
            font-weight: bold;
            font-size: 1.1em;
            text-align: center;
            width: 80px;
            min-width: 80px;
            font-family: 'Russo One', Impact, sans-serif;
        }
        
        .rank-cell.top-1 {
            color: #ffd700;
            text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
        }
        
        .rank-cell.top-2 {
            color: #c0c0c0;
            text-shadow: 0 0 10px rgba(192, 192, 192, 0.5);
        }
        
        .rank-cell.top-3 {
            color: #cd7f32;
            text-shadow: 0 0 10px rgba(205, 127, 50, 0.5);
        }
        
        .player-name {
            font-weight: bold;
            font-size: 1.1em;
            margin-bottom: 5px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            min-width: 200px;
        }
        
        .player-steamid {
            color: rgba(235, 228, 216, 0.4);
            font-size: 0.9em;
            display: flex;
            align-items: center;
            gap: 10px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            min-width: 200px;
        }
        
        .steam-link {
            color: var(--tf2-blu);
            text-decoration: none;
            font-size: 1.2em;
            flex-shrink: 0;
        }
        
        .steam-link:hover {
            color: #7aa8b8;
        }
        
        /* Статус онлайн */
        .online-status {
            display: flex;
            align-items: center;
            gap: 8px;
            white-space: nowrap;
            min-width: 120px;
        }
        
        .online-dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            display: inline-block;
            flex-shrink: 0;
        }
        
        .online-dot.online {
            background: var(--tf2-green);
            box-shadow: 0 0 10px rgba(94, 156, 62, 0.5);
        }
        
        .online-dot.offline {
            background: var(--tf2-red);
        }
        
        .online-dot.recent {
            background: var(--tf2-orange);
            box-shadow: 0 0 10px rgba(207, 115, 54, 0.5);
        }
        
        .status-text {
            font-weight: bold;
            font-size: 0.9em;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        /* K/D стили */
        .kdr-cell {
            font-weight: bold;
            font-size: 1.1em;
            white-space: nowrap;
        }
        
        .kdr-high {
            color: var(--tf2-green);
        }
        
        .kdr-medium {
            color: var(--tf2-orange);
        }
        
        .kdr-low {
            color: var(--tf2-red);
        }
        
        /* Ячейки таблицы с фиксированной шириной */
        .fixed-cell {
            white-space: nowrap;
            text-align: center;
            min-width: 100px;
        }
        
        /* Загрузка - ФИКСИРОВАННЫЙ РАЗМЕР */
        .loading-indicator {
            text-align: center;
            padding: 40px;
            color: var(--tf2-gold);
            font-size: 1.2em;
            font-family: 'Russo One', Impact, sans-serif;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 15px;
            width: 100%;
            min-width: 300px;
            height: 200px;
            justify-content: center;
            background: rgba(0, 0, 0, 0.2);
            border-radius: 4px;
            margin-bottom: 20px;
            border: 2px solid var(--tf2-border);
        }
        
        .loading-indicator .fa-spin {
            font-size: 2em;
        }
        
        /* Помилка */
        .error-message {
            background: rgba(189, 59, 59, 0.1);
            border: 2px solid var(--tf2-red);
            border-radius: 4px;
            padding: 20px;
            margin: 20px 0;
            text-align: center;
            width: 100%;
            min-width: 300px;
        }
        
        .error-message h3 {
            color: var(--tf2-red);
            font-family: 'Russo One', Impact, sans-serif;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }
        
        .retry-btn {
            margin-top: 15px;
            display: inline-flex;
        }
        
        /* Футер */
        .footer {
            text-align: center;
            margin-top: 40px;
            padding: 20px;
            color: var(--tf2-border);
            font-size: 0.9em;
            border-top: 3px solid var(--tf2-bg-light);
            background: var(--tf2-bg-dark);
            border-radius: 4px;
            width: 100%;
            min-width: 300px;
        }
        
        .footer .heart {
            color: var(--tf2-red);
            animation: heartbeat 1.5s infinite;
        }
        
        @keyframes heartbeat {
            0% { transform: scale(1); }
            5% { transform: scale(1.1); }
            10% { transform: scale(1); }
            15% { transform: scale(1.1); }
            20% { transform: scale(1); }
            100% { transform: scale(1); }
        }
        
        /* Модальное окно */
        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.8);
            overflow: auto;
        }
        
        .modal-content {
            background: var(--tf2-bg-dark);
            margin: 2% auto;
            padding: 30px;
            border-radius: 4px;
            border: 2px solid var(--tf2-border);
            border-top: 4px solid var(--tf2-red);
            width: 90%;
            max-width: 1200px;
            max-height: 90vh;
            overflow-y: auto;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
            animation: modalFadeIn 0.3s;
            min-width: 300px;
        }
        
        @keyframes modalFadeIn {
            from {opacity: 0; transform: translateY(-50px);}
            to {opacity: 1; transform: translateY(0);}
        }
        
        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
            padding-bottom: 20px;
            border-bottom: 2px solid var(--tf2-border);
        }
        
        .modal-title {
            font-family: 'Russo One', Impact, sans-serif;
            font-size: 1.8em;
            color: var(--tf2-gold);
            display: flex;
            align-items: center;
            gap: 15px;
            flex-wrap: wrap;
            text-transform: uppercase;
            letter-spacing: 1px;
        }
        
        .close-modal {
            color: var(--tf2-border);
            font-size: 28px;
            font-weight: bold;
            cursor: pointer;
            transition: color 0.3s;
            background: none;
            border: none;
            padding: 0;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }
        
        .close-modal:hover {
            color: var(--tf2-red);
        }
        
        .player-profile {
            display: flex;
            flex-wrap: wrap;
            gap: 30px;
            margin-bottom: 30px;
            padding: 20px;
            background: linear-gradient(180deg, var(--tf2-panel-light) 0%, var(--tf2-panel) 100%);
            border-radius: 4px;
            border: 2px solid var(--tf2-border);
        }
        
        .player-info {
            flex: 1;
            min-width: 300px;
        }
        
        .player-info h3 {
            color: var(--tf2-gold);
            font-family: 'Russo One', Impact, sans-serif;
            margin-bottom: 15px;
            font-size: 1.5em;
            text-transform: uppercase;
        }
        
        .player-steamid-modal {
            color: rgba(235, 228, 216, 0.4);
            font-size: 0.9em;
            margin-bottom: 20px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        .player-status {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 20px;
            flex-wrap: wrap;
        }
        
        .player-stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }
        
        .stats-category {
            background: linear-gradient(180deg, var(--tf2-panel-light) 0%, var(--tf2-panel) 100%);
            border-radius: 4px;
            padding: 20px;
            border: 2px solid var(--tf2-border);
            min-height: 300px;
        }
        
        .stats-category h4 {
            color: var(--tf2-gold);
            font-family: 'Russo One', Impact, sans-serif;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 2px solid var(--tf2-border);
            font-size: 1.1em;
            text-transform: uppercase;
            letter-spacing: 1px;
        }
        
        .stat-item {
            display: flex;
            justify-content: space-between;
            margin-bottom: 10px;
            padding: 8px 0;
            border-bottom: 1px dashed rgba(125, 110, 90, 0.2);
        }
        
        .stat-label {
            color: rgba(235, 228, 216, 0.5);
        }
        
        .stat-value {
            font-weight: bold;
            color: var(--tf2-cream);
            font-size: 1.1em;
        }
        
        .stat-value.high {
            color: var(--tf2-green);
        }
        
        .stat-value.medium {
            color: var(--tf2-orange);
        }
        
        .stat-value.low {
            color: var(--tf2-red);
        }
        
        .additional-stats {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 15px;
            margin-top: 20px;
        }
        
        .modal-loading {
            text-align: center;
            padding: 40px;
            min-height: 200px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }
        
        .modal-error {
            text-align: center;
            padding: 40px;
            color: var(--tf2-red);
            min-height: 200px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }
        
        /* Анимация загрузки */
        @keyframes pulse {
            0% { opacity: 0.6; }
            50% { opacity: 1; }
            100% { opacity: 0.6; }
        }
        
        /* Скелетон для предотвращения сужения */
        .skeleton {
            background: linear-gradient(90deg, rgba(125,110,90,0.1) 25%, rgba(125,110,90,0.2) 50%, rgba(125,110,90,0.1) 75%);
            background-size: 200% 100%;
            animation: loading 1.5s infinite;
            border-radius: 4px;
        }
        
        @keyframes loading {
            0% { background-position: 200% 0; }
            100% { background-position: -200% 0; }
        }
        
        /* Адаптивность */
        @media (max-width: 1200px) {
            .container {
                padding: 0 10px;
            }
        }
        
        @media (max-width: 992px) {
            .stats-overview {
                grid-template-columns: repeat(2, 1fr);
            }
            
            .modal-content {
                margin: 5% auto;
                width: 95%;
                padding: 20px;
            }
        }
        
        @media (max-width: 768px) {
            body {
                padding: 15px;
            }
            
            .controls {
                flex-direction: column;
                align-items: stretch;
                padding: 15px;
            }
            
            .control-group, .search-wrapper {
                width: 100%;
            }
            
            .header h1 {
                font-size: 2em;
                flex-direction: column;
                gap: 10px;
            }
            
            .stats-overview {
                grid-template-columns: 1fr;
            }
            
            table {
                min-width: 700px;
            }
            
            .player-stats-grid {
                grid-template-columns: 1fr;
            }
            
            .modal-content {
                margin: 10% auto;
                width: 98%;
                padding: 15px;
            }
            
            .search-wrapper {
                min-width: 100%;
            }
            
            .search-results {
                font-size: 0.85em;
                padding: 5px 10px;
            }
        }
        
        @media (max-width: 480px) {
            body {
                padding: 10px;
            }
            
            .header {
                padding: 15px;
            }
            
            .header h1 {
                font-size: 1.8em;
            }
            
            .search-results {
                font-size: 0.8em;
            }
            
            .footer {
                padding: 15px 10px;
                font-size: 0.8em;
            }
            
            .online-status {
                flex-direction: column;
                gap: 3px;
            }
            
            .status-text {
                font-size: 0.8em;
            }
            
            .stat-card {
                padding: 15px;
                min-height: 110px;
            }

            .stat-value {
                font-size: 1.8em;
            }
        }

        /* ===========================================================
           TF2 TOPBAR / FOOTER — для консистентності з zadrot.vip
           =========================================================== */
        body { padding: 0 !important; }
        body > .container {
            padding-top: 24px;
            padding-bottom: 24px;
        }

        .tf2-topbar {
            width: 100%;
            background: linear-gradient(180deg, var(--tf2-panel-light) 0%, var(--tf2-panel) 100%);
            border-bottom: 2px solid var(--tf2-border);
            box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
            position: sticky;
            top: 0;
            z-index: 100;
        }
        .tf2-topbar__inner {
            max-width: 1400px;
            margin: 0 auto;
            padding: 12px 20px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            flex-wrap: wrap;
        }
        .tf2-topbar__brand {
            display: inline-flex;
            align-items: center;
            gap: 12px;
            text-decoration: none;
            color: inherit;
        }
        .tf2-topbar__brand-icon {
            width: 44px;
            height: 44px;
            border-radius: 5px;
            background: linear-gradient(180deg, var(--tf2-gold) 0%, #c89a30 100%);
            color: var(--tf2-bg-dark);
            font-family: 'Russo One', Impact, sans-serif;
            font-size: 22px;
            line-height: 44px;
            text-align: center;
            border: 2px solid rgba(0, 0, 0, 0.3);
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35),
                        inset 0 1px 0 rgba(255, 255, 255, 0.3);
            flex-shrink: 0;
        }
        .tf2-topbar__brand-icon.no-bg {
            background: transparent !important;
            border: none !important;
            box-shadow: none !important;
        }
        .tf2-topbar__brand-text {
            display: flex;
            flex-direction: column;
            line-height: 1.1;
        }
        .tf2-topbar__brand-title {
            font-family: 'Russo One', Impact, sans-serif;
            font-size: 1.35em;
            color: var(--tf2-gold);
            text-transform: uppercase;
            letter-spacing: 1.5px;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
        }
        .tf2-topbar__brand-sub {
            font-family: 'Russo One', Impact, sans-serif;
            font-size: 0.7em;
            color: rgba(235, 228, 216, 0.6);
            letter-spacing: 1.5px;
            text-transform: uppercase;
            margin-top: 2px;
        }

        .tf2-topbar__nav {
            display: flex;
            gap: 4px;
            flex-wrap: nowrap;
            align-items: center;
        }
        .tf2-topbar__nav-link {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 8px 12px;
            color: var(--tf2-cream);
            font-family: 'Russo One', Impact, sans-serif;
            font-size: 0.78em;
            letter-spacing: 0.5px;
            text-transform: uppercase;
            text-decoration: none;
            border-radius: 3px;
            background: transparent;
            border: 1px solid transparent;
            transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
            white-space: nowrap;
        }
        .tf2-topbar__nav-link:hover {
            background: rgba(240, 192, 64, 0.1);
            color: var(--tf2-gold);
            border-color: rgba(240, 192, 64, 0.4);
        }
        .tf2-topbar__nav-link.active {
            background: rgba(240, 192, 64, 0.18);
            color: var(--tf2-gold);
            border-color: rgba(240, 192, 64, 0.55);
            box-shadow: inset 0 -2px 0 var(--tf2-gold);
        }
        /* Іконки в меню вимкнено за побажанням — без смайлів чистіше */
        .tf2-topbar__nav-link i { font-size: 0.95em; opacity: 0.85; }
        .tf2-topbar__nav-icon { font-size: 1em; line-height: 1; flex-shrink: 0; }

        /* Burger button — простий unicode-символ, надійніше за span-трюки */
        .tf2-topbar__burger {
            display: none;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            padding: 0;
            background: rgba(0, 0, 0, 0.25);
            border: 1px solid var(--tf2-border);
            border-radius: 4px;
            cursor: pointer;
            flex-shrink: 0;
            color: var(--tf2-cream);
            font-family: inherit;
            font-size: 22px;
            line-height: 1;
            transition: background 0.15s ease, color 0.15s ease;
        }
        .tf2-topbar__burger:hover {
            background: rgba(240, 192, 64, 0.15);
            color: var(--tf2-gold);
        }
        .tf2-topbar__burger.open {
            background: rgba(240, 192, 64, 0.2);
            color: var(--tf2-gold);
            transform: rotate(90deg);
            transition: background 0.15s ease, color 0.15s ease, transform 0.25s ease;
        }

        /* Жовто-чорна "стрічка небезпеки" */
        .tf2-hazard-strip {
            height: 6px;
            background: repeating-linear-gradient(
                -45deg,
                var(--tf2-gold) 0,
                var(--tf2-gold) 14px,
                var(--tf2-bg-dark) 14px,
                var(--tf2-bg-dark) 28px
            );
            width: 100%;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
        }
        .tf2-hazard-strip--bottom {
            box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.5);
            margin-top: 30px;
        }

        /* Футер */
        .tf2-page-footer {
            background: linear-gradient(180deg, var(--tf2-panel) 0%, var(--tf2-bg-dark) 100%);
            border-top: 1px solid var(--tf2-border);
            padding: 22px 20px 26px;
            color: rgba(235, 228, 216, 0.6);
        }
        .tf2-page-footer__inner {
            max-width: 1400px;
            margin: 0 auto;
            text-align: center;
        }
        .tf2-page-footer__links {
            font-family: 'Russo One', Impact, sans-serif;
            font-size: 0.82em;
            letter-spacing: 0.6px;
            text-transform: uppercase;
            margin-bottom: 6px;
        }
        .tf2-page-footer__links a {
            color: var(--tf2-gold);
            text-decoration: none;
            transition: color 0.15s ease;
        }
        .tf2-page-footer__links a:hover { color: var(--tf2-cream); }
        .tf2-page-footer__sep {
            color: var(--tf2-border);
            margin: 0 8px;
        }
        .tf2-page-footer__copy {
            font-size: 0.82em;
            color: rgba(235, 228, 216, 0.45);
        }

        /* Адаптив топбару — burger-меню на вузьких */
        @media (max-width: 900px) {
            .tf2-topbar__inner {
                padding: 10px 14px;
                flex-wrap: wrap;
                gap: 8px;
            }
            .tf2-topbar__burger { display: flex; }
            .tf2-topbar__nav {
                order: 3;
                width: 100%;
                flex-direction: column;
                gap: 2px;
                max-height: 0;
                overflow: hidden;
                transition: max-height 0.25s ease, margin-top 0.25s ease;
                margin-top: 0;
            }
            .tf2-topbar.open .tf2-topbar__nav {
                max-height: 500px;
                margin-top: 10px;
                padding-top: 10px;
                border-top: 1px dashed var(--tf2-border);
            }
            .tf2-topbar__nav-link {
                width: 100%;
                padding: 10px 12px;
                font-size: 0.85em;
                justify-content: flex-start;
            }
            .tf2-topbar__brand-title { font-size: 1.1em; letter-spacing: 1px; }
            .tf2-topbar__brand-icon { width: 38px; height: 38px; font-size: 18px; line-height: 38px; }
            .tf2-topbar__brand-sub { font-size: 0.62em; }
        }

        /* ==========================================================
           PLAYERS GRID — картки гравців у стилі VIP-карток сайту
           ========================================================== */
        .players-grid-wrap {
            margin-top: 20px;
            margin-bottom: 30px;
        }
        .players-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 12px;
        }

        .player-card {
            display: grid;
            grid-template-columns: 56px 1fr auto;
            gap: 14px;
            align-items: center;
            background: linear-gradient(180deg, var(--tf2-panel-light) 0%, var(--tf2-panel) 100%);
            border: 1px solid var(--tf2-border);
            border-left: 4px solid var(--tf2-border);
            border-radius: 6px;
            padding: 14px 18px;
            cursor: pointer;
            color: inherit;
            text-decoration: none;
            transition: transform 0.15s ease, box-shadow 0.18s ease, border-left-color 0.18s ease;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4),
                        inset 0 1px 0 rgba(255, 255, 255, 0.04);
            position: relative;
            overflow: hidden;
        }
        .player-card::before {
            /* Тонкий блік справа — TF2 metallic */
            content: '';
            position: absolute;
            top: 0; right: 0; bottom: 0;
            width: 60px;
            background: linear-gradient(90deg, transparent, rgba(240, 192, 64, 0.04));
            pointer-events: none;
        }
        .player-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55),
                        inset 0 1px 0 rgba(255, 255, 255, 0.06);
            border-left-color: var(--tf2-gold);
        }

        /* Online → зелений лівий бордер */
        .player-card--online {
            border-left-color: var(--tf2-green);
        }
        .player-card--online:hover {
            border-left-color: #8fcb6e;
            box-shadow: 0 8px 24px rgba(94, 156, 62, 0.25),
                        inset 0 1px 0 rgba(255, 255, 255, 0.06);
        }

        /* Топ-3 — золото / срібло / бронза */
        .player-card--top-1 {
            border-left-color: #ffd700;
            box-shadow: 0 2px 12px rgba(255, 215, 0, 0.18),
                        inset 0 1px 0 rgba(255, 255, 255, 0.06);
        }
        .player-card--top-1:hover { border-left-color: #ffe14a; }
        .player-card--top-2 {
            border-left-color: #c0c0c0;
            box-shadow: 0 2px 12px rgba(192, 192, 192, 0.12),
                        inset 0 1px 0 rgba(255, 255, 255, 0.05);
        }
        .player-card--top-3 {
            border-left-color: #cd7f32;
            box-shadow: 0 2px 12px rgba(205, 127, 50, 0.15),
                        inset 0 1px 0 rgba(255, 255, 255, 0.05);
        }

        /* Аватарка зі Steam + corner-бейдж рангу */
        .player-card__avatar-wrap {
            position: relative;
            width: 56px;
            height: 56px;
            flex-shrink: 0;
        }
        .player-card__avatar,
        .player-card__avatar-fallback {
            width: 56px;
            height: 56px;
            border-radius: 5px;
            border: 2px solid rgba(125, 110, 90, 0.5);
            background: var(--tf2-bg-dark);
            display: block;
            object-fit: cover;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
            transition: border-color 0.18s ease, box-shadow 0.18s ease;
        }
        .player-card__avatar-fallback {
            display: flex;
            align-items: center;
            justify-content: center;
            color: rgba(235, 228, 216, 0.35);
            font-size: 1.6em;
        }
        .player-card:hover .player-card__avatar,
        .player-card:hover .player-card__avatar-fallback {
            border-color: var(--tf2-gold);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.55), 0 0 8px rgba(240, 192, 64, 0.25);
        }

        /* Ранг — маленький бейдж у лівому верхньому куточку аватарки */
        .player-card__rank-corner {
            position: absolute;
            top: -6px;
            left: -6px;
            min-width: 26px;
            height: 18px;
            padding: 0 5px;
            background: var(--tf2-bg-dark);
            color: var(--tf2-cream);
            border: 1px solid rgba(125, 110, 90, 0.6);
            border-radius: 3px;
            font-family: 'Russo One', Impact, sans-serif;
            font-size: 0.7em;
            line-height: 18px;
            text-align: center;
            letter-spacing: 0.3px;
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
            z-index: 2;
            pointer-events: none;
        }

        /* Топ-3 — рамка аватарки + corner-бейдж кольорові */
        .player-card--top-1 .player-card__avatar,
        .player-card--top-1 .player-card__avatar-fallback {
            border-color: #ffd700;
            box-shadow: 0 0 10px rgba(255, 215, 0, 0.45),
                        0 2px 6px rgba(0, 0, 0, 0.5);
        }
        .player-card--top-1 .player-card__rank-corner {
            background: linear-gradient(180deg, #ffd700, #c89a30);
            color: var(--tf2-bg-dark);
            border-color: rgba(0, 0, 0, 0.4);
            text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
        }
        .player-card--top-2 .player-card__avatar,
        .player-card--top-2 .player-card__avatar-fallback {
            border-color: #c0c0c0;
            box-shadow: 0 0 8px rgba(192, 192, 192, 0.4),
                        0 2px 6px rgba(0, 0, 0, 0.5);
        }
        .player-card--top-2 .player-card__rank-corner {
            background: linear-gradient(180deg, #e0e0e0, #a8a8a8);
            color: var(--tf2-bg-dark);
            border-color: rgba(0, 0, 0, 0.4);
            text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
        }
        .player-card--top-3 .player-card__avatar,
        .player-card--top-3 .player-card__avatar-fallback {
            border-color: #cd7f32;
            box-shadow: 0 0 8px rgba(205, 127, 50, 0.4),
                        0 2px 6px rgba(0, 0, 0, 0.5);
        }
        .player-card--top-3 .player-card__rank-corner {
            background: linear-gradient(180deg, #e09060, #a05a20);
            color: #fff;
            border-color: rgba(0, 0, 0, 0.4);
            text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
        }

        /* Online — green tint на рамці аватарки */
        .player-card--online .player-card__avatar,
        .player-card--online .player-card__avatar-fallback {
            border-color: var(--tf2-green);
            box-shadow: 0 0 8px rgba(94, 156, 62, 0.4),
                        0 2px 6px rgba(0, 0, 0, 0.5);
        }

        /* Тіло картки */
        .player-card__body {
            min-width: 0;
            display: flex;
            flex-direction: column;
            gap: 7px;
        }
        .player-card__head {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
            min-width: 0;
        }
        .player-card__name {
            font-family: 'Russo One', Impact, sans-serif;
            color: var(--tf2-gold);
            font-size: 1.15em;
            letter-spacing: 0.5px;
            text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            max-width: 100%;
            min-width: 0;
        }
        .player-card__steamid {
            font-family: 'Consolas', monospace;
            color: rgba(235, 228, 216, 0.45);
            font-size: 0.78em;
            letter-spacing: 0.3px;
        }
        .player-card__steam-link {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 24px; height: 24px;
            color: rgba(235, 228, 216, 0.55);
            background: rgba(0, 0, 0, 0.2);
            border-radius: 3px;
            transition: color 0.15s ease, background 0.15s ease, transform 0.15s ease;
            text-decoration: none;
        }
        .player-card__steam-link:hover {
            color: #66c0f4;
            background: rgba(0, 0, 0, 0.4);
            transform: scale(1.1);
        }

        /* Чіпи статистики */
        .player-card__stats {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
        }
        .stat-chip {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            padding: 4px 10px;
            background: rgba(0, 0, 0, 0.3);
            border: 1px solid rgba(125, 110, 90, 0.4);
            border-radius: 100px;
            font-family: 'Oswald', sans-serif;
            font-size: 0.83em;
            color: var(--tf2-cream);
            white-space: nowrap;
            transition: border-color 0.15s ease, background 0.15s ease;
        }
        .player-card:hover .stat-chip {
            border-color: rgba(125, 110, 90, 0.6);
        }
        .stat-chip i {
            font-size: 0.88em;
            opacity: 0.85;
        }
        .stat-chip--kills i  { color: #f0a040; }
        .stat-chip--deaths i { color: #e88080; }
        .stat-chip--points i { color: var(--tf2-gold); }
        .stat-chip--time i   { color: var(--tf2-blu); opacity: 1; }
        .stat-chip--last i   { color: rgba(235, 228, 216, 0.6); }

        /* K/D із кольоровим бордером */
        .stat-chip--kdr.kdr-high {
            border-color: rgba(94, 156, 62, 0.7);
            background: rgba(94, 156, 62, 0.12);
            color: #98e070;
        }
        .stat-chip--kdr.kdr-high i { color: #98e070; }
        .stat-chip--kdr.kdr-medium {
            border-color: rgba(207, 115, 54, 0.6);
            background: rgba(207, 115, 54, 0.1);
            color: #f0a050;
        }
        .stat-chip--kdr.kdr-medium i { color: #f0a050; }
        .stat-chip--kdr.kdr-low {
            border-color: rgba(189, 59, 59, 0.6);
            background: rgba(189, 59, 59, 0.12);
            color: #f08080;
        }
        .stat-chip--kdr.kdr-low i { color: #f08080; }

        /* Бейдж статусу */
        .player-card__status-badge {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            padding: 7px 14px;
            border-radius: 4px;
            font-family: 'Russo One', Impact, sans-serif;
            font-size: 0.72em;
            letter-spacing: 1.2px;
            text-transform: uppercase;
            border: 1px solid;
            flex-shrink: 0;
            line-height: 1;
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
        }
        .player-card__status-badge.online {
            background: linear-gradient(180deg, rgba(94, 156, 62, 0.35), rgba(94, 156, 62, 0.18));
            color: #c0e8a0;
            border-color: rgba(94, 156, 62, 0.6);
        }
        .player-card__status-badge.offline {
            background: rgba(125, 110, 90, 0.15);
            color: rgba(235, 228, 216, 0.5);
            border-color: rgba(125, 110, 90, 0.4);
        }
        .player-card__status-badge.recent {
            background: linear-gradient(180deg, rgba(207, 115, 54, 0.35), rgba(207, 115, 54, 0.18));
            color: #ffc89a;
            border-color: rgba(207, 115, 54, 0.6);
        }

        /* Online dot з пульсацією */
        .player-card__status-badge .online-dot {
            display: inline-block;
            width: 8px; height: 8px;
            border-radius: 50%;
            background: currentColor;
            box-shadow: 0 0 6px currentColor;
        }
        .player-card__status-badge.online .online-dot {
            animation: tf2-online-pulse 1.6s ease-in-out infinite;
        }
        @keyframes tf2-online-pulse {
            0%, 100% { box-shadow: 0 0 6px currentColor; opacity: 1; }
            50%      { box-shadow: 0 0 12px currentColor; opacity: 0.65; }
        }

        /* Skeleton */
        .player-card--skeleton {
            cursor: default;
            pointer-events: none;
        }
        .player-card--skeleton .player-card__rank {
            background: rgba(125, 110, 90, 0.2);
            border: none;
            min-height: 50px;
        }
        .player-card--empty {
            grid-template-columns: 1fr;
            cursor: default;
        }
        .player-card--empty:hover {
            transform: none;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
            border-left-color: var(--tf2-border);
        }

        /* Адаптив */
        @media (max-width: 720px) {
            .player-card {
                grid-template-columns: 48px 1fr;
                gap: 10px;
                padding: 12px;
            }
            .player-card__avatar-wrap,
            .player-card__avatar,
            .player-card__avatar-fallback {
                width: 48px; height: 48px;
            }
            .player-card__avatar-fallback { font-size: 1.3em; }
            .player-card__rank-corner {
                top: -5px;
                left: -5px;
                min-width: 22px;
                height: 16px;
                font-size: 0.62em;
                line-height: 16px;
            }
            .player-card__name { font-size: 1.05em; }
            .player-card__steamid { font-size: 0.72em; }
            .player-card__status-badge {
                grid-column: 2;
                justify-self: start;
                margin-top: 4px;
                padding: 5px 10px;
                font-size: 0.66em;
            }
            .stat-chip { font-size: 0.78em; padding: 3px 8px; }
        }
