/* Base Styles */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #0d3561;
    color: #fff;
    line-height: 1.5;
}

a {
    color: #1e90ff;
    text-decoration: none;
}
a:hover, a:focus {
    text-decoration: underline;
}

/* Container */
.container, .wrap {
    max-width: 900px;
    margin: 20px auto;
    padding: 0 15px;
}

/* Navigation */
nav {
    background-color: #222;
    padding: 10px 0;
    text-align: center;
}
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
}
nav ul li {
    display: inline-block;
}
nav ul li a {
    color: #eee;
    font-weight: 600;
    font-size: 16px;
    padding: 6px 12px;
    display: inline-block;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}
nav ul li a:hover,
nav ul li a:focus {
    background-color: #7d8fa0;
    color: #fff;
    outline: none;
}

/* Search Form */
form.search-form {
    margin: 20px auto;
    max-width: 400px;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 8px;
}
form.search-form input[type="text"] {
    flex: 1;
    min-width: 200px;
    padding: 8px 10px;
    font-size: 16px;
    border: none;
    border-radius: 4px 0 0 4px;
    box-sizing: border-box;
}
form.search-form input[type="submit"] {
    padding: 8px 20px;
    font-size: 16px;
    border: none;
    background-color: #1e90ff;
    color: #fff;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    white-space: nowrap;
}
form.search-form input[type="submit"]:hover {
    background-color: #0f6ac0;
}
form.search-form a {
    display: inline-block;
    padding: 8px 15px;
    background: #1e2b3a;
    color: #fff;
    border-radius: 8px;
    margin-left: 4px;
    font-size: 15px;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.2s;
}
form.search-form a:hover {
    background: #324b66;
    color: #fff;
}

/* Table Styling: Use .stats-table for ALL tables */
table.stats-table {
    width: 100%;
    max-width: 900px;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 0 8px #0018 inset;
    border-radius: 6px;
    overflow: hidden;
}
table.stats-table th,
table.stats-table td {
    border-bottom: 1px solid #ddd;
    padding: 8px 10px;
    text-align: left;
    font-size: 13px;
    color: #222;
}
table.stats-table th {
    background-color: #6c7a89;
    font-weight: 700;
    color: #fff;
    text-align: left;
}
table.stats-table tr:last-child td {
    border-bottom: none;
}
table.stats-table tr:hover {
    background: #f3f5fa;
}

/* Player Cards & Top Lists */
.top-players {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    gap: 16px;
}
.player-card {
    background: #1e2b3a;
    border-radius: 8px;
    width: 18%;
    min-width: 140px;
    text-align: center;
    padding: 8px;
    color: #fff;
    box-shadow: 0 0 10px #0008 inset;
    font-size: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.player-identity {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
}

.player-identity img {
  flex-shrink: 0;
  margin-right: 4px;
  width: 16px;
  height: 12px;
  vertical-align: middle;
}

.player-name {
  display: inline-block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100px;   /* Tweak this value as needed */
  text-align: left;
  font-weight: bold;
  font-size: 15px;
  vertical-align: middle;
}
.player-avatar {
    border-radius: 50%;
    width: 90px;
    height: 90px;
    margin-bottom: 8px;
    object-fit: cover;
    background: #222;
}
.rank {
    font-weight: bold;
    font-size: 12px;
    margin-bottom: 6px;
}
.player-name {
    font-weight: bold;
    font-size: 12px;
    margin-top: 4px;
}
.country-flag {
    margin-right: 5px;
    vertical-align: middle;
    display: inline-block;
    height: 14px;
    width: 18px;
}
.player-name[title] {
    cursor: help;
    border-bottom: 1px dotted #aaa;
}
.grid-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 30px;
}
h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
    text-align: left;
}
h2 {
    margin: 0 0 14px 0;
    text-align: center;
}

/* Recent Matches - Full Width Table */
.fullwidth-table {
    width: 100%;
    max-width: 1150px;
    margin: 0 auto 30px auto;
}
.fullwidth-table .stats-table {
    width: 100%;
    max-width: 100%;
    margin: 20px 0 22px 0;
}

/* Responsive */
@media (max-width:900px){
    .grid-top { grid-template-columns: 1fr; }
    .top-players { flex-direction: column; gap: 20px; }
    .player-card { width: 100%; }
}
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        gap: 10px;
    }
    form.search-form input[type="text"] {
        width: 70%;
    }
    table.stats-table {
        font-size: 14px;
    }
    .player-card {
        min-width: 100%;
    }
    .top-players {
        flex-direction: column;
        gap: 10px;
    }
    .grid-top {
        gap: 10px;
    }
    .fullwidth-table {
        max-width: 100vw;
        padding: 0 5px;
    }
}

/* Weapon boxes (homepage, optional) */
.weapon-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto 20px auto;
    justify-content: flex-start;
}
.weapon-box {
    flex: 1 1 calc(20% - 20px);
    background: #222;
    border-radius: 6px;
    padding: 12px;
    color: #ddd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.7);
    text-align: center;
    transition: background-color 0.3s ease;
}
.weapon-box:hover {
    background-color: #7d8fa0;
    color: #fff;
}
.weapon-box img {
    max-width: 90px;
    height: auto;
    margin-bottom: 8px;
}
.weapon-box span {
    font-weight: 600;
    font-size: 16px;
    display: block;
    margin-bottom: 8px;
}
.weapon-box p {
    font-size: 14px;
    margin: 0;
}
//servers.php
/* ----- Server List Page Standalone Table/Button Styles ----- */
.server-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  color: #222;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: none;
  margin: 0 auto 32px auto;
}
.server-table th, .server-table td {
  padding: 8px 10px;
  font-size: 13px;
  border-bottom: 1px solid #ddd;
  text-align: left;
}
.server-table th {
  background: #6c7a89;
  color: #fff;
}
.server-table tr:last-child td {
  border-bottom: none;
}
.server-table tr:hover td {
  background: #f3f5fa;
}

/* --- Button styles, just like your original page --- */
/* ---- Server List Button & Status Coloring ---- */
.stats-table.server-table .btn,
.stats-table.server-table .btn.join {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 8px;
  background: #1e2b3a;
  color: #fff !important;
  text-decoration: none;
  font-weight: bold;
  font-size: 13px;
  min-height: 24px;
  border: none;
  box-shadow: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.stats-table.server-table .btn.hltv {
  background: #4667ea;
  margin-right: 8px;
}
.stats-table.server-table .btn .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #27c340;
  display: inline-block;
}
.stats-table.server-table .btn .playicon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 12px;
}
.stats-table.server-table .btn:hover, .stats-table.server-table .btn:focus {
  background: #324b66;
  color: #fff !important;
  outline: none;
}
/* Cell Alignment */
.stats-table.server-table .actioncell {
  display: flex;
  align-items: center;
  gap: 6px;
}
.stats-table.server-table .hltvcell {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
}
/* Status Colors */
.stats-table.server-table .status { font-weight: bold; }
.stats-table.server-table .status-warmup { color: #ffaa3c; }
.stats-table.server-table .status-starting { color: #ffaa3c; }
.stats-table.server-table .status-1st { color: #46e686; }
.stats-table.server-table .status-2nd { color: #4cc7ea; }
.stats-table.server-table .status-halftime { color: #cfa8ff; }
.stats-table.server-table .status-overtime { color: #f658aa; }
.stats-table.server-table .status-finished { color: #bbbbbb; }
.stats-table.server-table .status-notlive { color: #111; }

//match.php
.match-summary {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 30px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.summary-table, .status-table {
  min-width: 220px;
  max-width: 100%;
  margin-bottom: 0;
}
.status-table th {
  width: 120px;
  font-weight: 700;
  background: #f5f6fa;
  color: #444;
}
.status-table td {
  color: #222;
}
@media (max-width: 800px) {
  .match-summary { flex-direction: column; gap: 0; }
  .summary-table, .status-table { width: 100%; min-width: 0; margin-bottom: 18px; }
}
<!-- Add CSS to your style.css for .profile-header-flex if not already present:
.profile-header-flex {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    max-width: 900px;
    margin: 0 auto 30px auto;
}
.profile-header-flex .profile-avatar-col {
    flex: 0 0 180px;
    text-align: center;
}
.profile-header-flex .profile-table-col {
    flex: 1 1 0%;
}
@media (max-width: 700px) {
    .profile-header-flex {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    .profile-header-flex .profile-avatar-col,
    .profile-header-flex .profile-table-col {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }
}
.profile-header-flex .profile-avatar-col {
    flex: 0 0 180px;
    text-align: center;
    margin-top: 22px;
}
@media (max-width: 700px) {
    .profile-header-flex .profile-avatar-col {
        margin-top: 0;
    }
}
.profile-avatar-col img {
    margin-bottom: 0px; /* or 0px for no space */
}

//weapons
.weapon-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    max-width: 1150px;
    margin: 0 auto 40px auto;
    justify-content: flex-start;
}
.weapon-box {
    background: #1e2b3a;
    border-radius: 8px;
    width: 18%;
    min-width: 170px;
    text-align: center;
    padding: 16px 10px 12px 10px;
    color: #fff;
    box-shadow: 0 0 10px #0008 inset;
    font-size: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 18px;
    transition: background 0.2s;
}
.weapon-box:hover {
    background: #324b66;
    color: #fff;
}
.weapon-box img {
    max-width: 90px;
    height: 60px;
    margin-bottom: 10px;
    object-fit: contain;
}
.weapon-box span {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 5px;
    display: block;
}
.weapon-box p {
    font-size: 13px;
    margin: 0;
    color: #f5d65d;
}
@media (max-width:900px) {
    .weapon-list { gap: 10px; }
    .weapon-box { width: 48%; min-width: 120px; }
}
@media (max-width:600px) {
    .weapon-box { width: 100%; min-width: 90px; }
}
<style>
img[alt][src*="flagcdn.com"] {
    width: 16px !important;
    height: 12px !important;
    margin-right: 2px !important;
    vertical-align: middle !important;
}
//elipse ... weapons page
.weapon-box a.player-name {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
//
.stats-table td:first-child,
.stats-table th:first-child {
    border-left: none;            /* remove from first col cells */
}
.stats-table {
  border-collapse: separate !important;
  border-spacing: 0;
  border-radius: 0px;
  overflow: hidden;
  border: 0px solid #ddd; /* Adjust as needed */
}