body {
    font-family: 'DM Sans', sans-serif;
    background-color: #000;
    color: #A0AEC0;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: auto;
}

/* âœ… HEADER & SEARCH BAR */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

/* âœ… HEADINGS */
h1, h2 {
    color: #E2E8F0;
    border-bottom: 1px solid #2D3748;
    padding-bottom: 10px;
    margin-top: 40px;
    font-weight: 700;
}
h2 { font-size: 1.2em; margin-top: 10px; }

/* âœ… MODERN TABLE DESIGN */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 12px;
    margin-top: 20px;
    background: transparent;
}

th, td {
    padding: 18px 20px;
    text-align: left;
    background: #1F2937;
    color: #E5E7EB;
    border: none;
    font-size: 15px;
    vertical-align: middle; /* Ensures all cell content aligns vertically */
}

th {
    background: #111827;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.5px;
}

tr {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 10px;
    overflow: hidden;
}
tr:hover td { background: #2D3748; }
tr:hover {
    transform: scale(1.01);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

td:first-child { border-radius: 10px 0 0 10px; font-weight: 600; }
td:last-child { border-radius: 0 10px 10px 0; }
thead tr th { border-bottom: 2px solid #374151; }
tbody tr:nth-child(odd) td { background: #1E293B; }

a { color: #3B82F6; text-decoration: none; font-weight: bold; }
a:hover { text-decoration: underline; }

.site-header .logo-text {
    border: none;
    margin: 0;
    font-size: 1.5em;
    color: #FFFFFF;
}

@media (max-width: 768px) {
    body { padding: 10px; }
    h1, h2 { font-size: 1.5em; }
    .site-header { flex-direction: column; align-items: stretch; gap: 15px; }
    .site-header h1 { text-align: center; }
    table { border-spacing: 0; margin-top: 15px; }
    table, thead, tbody, th, td, tr { display: block; }
    thead tr { position: absolute; top: -9999px; left: -9999px; }
    tr {
        border: 1px solid #374151;
        border-radius: 8px;
        overflow: visible;
        margin-bottom: 15px;
    }
    tr:last-child { margin-bottom: 0; }
    tr:hover { transform: none; box-shadow: none; }
    td {
        border: none;
        border-bottom: 1px solid #2D3748;
        position: relative;
        padding-left: 50%;
        text-align: right;
    }
    td:before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: bold;
        color: #E2E8F0;
    }
    td:first-child { border-radius: 8px 8px 0 0; }
    td:last-child { border-bottom: 0; border-radius: 0 0 8px 8px; }

    .address-wrapper {
        display: block; /* Stack on mobile */
        text-align: right; /* Match the td alignment */
    }
    .address-wrapper span {
        display: block; /* Make span take full width */
        margin-bottom: 10px; /* Add space below text */
    }
    .copy-btn {
        width: 100%; /* Make button full width */
        padding: 10px;
    }
}

/* --- Version Tag Styles --- */
.version-tag {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    display: inline-block;
    color: white;
    text-transform: uppercase;
    white-space: nowrap; 
}
.version-cs2 { background: #a72e62; }
.version-csgo { background: #c30770; }
/* --- End of Version Styles --- */

/* --- Pagination Styles --- */
.pagination-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px; /* Reduced gap for more buttons */
    margin-top: 25px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}
.pagination-wrap a, .pagination-wrap span {
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9em;
    text-decoration: none;
    border: 1px solid #374151;
}
.pagination-wrap a {
    background: #1F2937; /* Changed link background */
    color: #A0AEC0;
    border-color: #374151;
    cursor: pointer;
    transition: background 0.3s ease;
}
.pagination-wrap a:hover { 
    background: #1a9fff; 
    color: #FFFFFF;
    border-color: #1a9fff;
    text-decoration: none; 
}
.pagination-wrap span.disabled { 
    background: #111827; 
    color: #4A5568; 
    cursor: not-allowed; 
}
.pagination-wrap span.active {
    background: #1a9fff;
    color: #FFFFFF;
    border-color: #1a9fff;
}
/* --- End of Pagination Styles --- */

/* --- Copy Button Styles --- */
.address-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
.copy-btn {
    background: #374151;
    color: #A0AEC0;
    border: none;
    padding: 6px 10px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}
.copy-btn:hover { background: #4A5568; color: #FFF; }
.copy-btn:disabled {
    background: #34D399; 
    color: #111827;
    cursor: not-allowed;
}
/* --- END of Copy Button Styles --- */

/* --- Player Cell Style --- */
.players-cell {
    white-space: nowrap; /* Prevents "0/25 (1 bot)" from wrapping */
}
/* --- END of Player Cell Style --- */

/* --- Footer Styles --- */
.site-footer {
    border-top: 1px solid #2D3748;
    margin-top: 40px;
    padding-top: 30px;
    color: #A0AEC0;
    text-align: center;
    font-size: 0.9em;
}
.site-footer p {
    margin: 0 0 10px 0;
}
.site-footer a {
    color: #1a9fff; /* Use the button color for links */
}