/* General Styles */
body {
    background: #000 url('../images/bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #fff;
    font-family: "Source Sans Pro", Helvetica, sans-serif;
    margin: 0;
    padding: 20px;
    min-height: 100vh;
}

.nav-links {
    text-align: center;
    margin-bottom: 20px;
}
.nav-links a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    margin: 0 15px;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.2s ease-in-out;
}
.nav-links a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.075);
}

h1, h2, h6 {
    color: #fff;
    text-align: center;
    margin-bottom: 20px;
}

h6 {
    color: #9bf1ff;
    font-weight: 600;
}

.section-title {
    border-bottom: 2px solid #9bf1ff;
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 20px;
    color: #9bf1ff;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(27, 31, 34, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.125);
    border-radius: 4px;
    padding: 2rem;
    box-shadow: 0 0.25rem 1rem 0 rgba(0, 0, 0, 0.25);
}

.tournament-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.125);
}

.tournament-name {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #fff;
}

.tournament-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 1rem;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.btn-custom {
    background: rgba(255, 255, 255, 0.075);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.125);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease-in-out;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.btn-custom:hover {
    background: rgba(255, 255, 255, 0.125);
    border-color: #9bf1ff;
    color: #fff;
    text-decoration: none;
}

/* Cover Image */
.cover {
    background-image: url("https://images.unsplash.com/photo-1530305408560-82d13781b33a?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1352&q=80");
    background-size: cover;
    background-repeat: no-repeat;
    position: absolute;
    width: 100%;
    left: 0;
    right: 0;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 20px;
    padding: 10px;
    background-color: #111111;
    color: #888888;
    font-size: 0.75em;
}

#footer a {
    color: inherit;
    text-decoration: none;
}

#footer a:hover {
    text-decoration: underline;
}

/* Buttons */
.button {
    display: inline-block;
    padding: 10px 20px;
    margin-top: 20px;
    background-color: #444444;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s;
}

.button:hover {
    background-color: #555555;
}

/* Table Styles */
.table-wrapper {
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.table-wrapper:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.table-wrapper h2 {
    margin: 0;
    padding: 0;
    background: none;
}

.table-wrapper .btn-link {
    color: #9bf1ff !important;
    text-decoration: none !important;
    font-weight: 600;
    width: 100%;
    text-align: left;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: none;
    border-radius: 0;
    transition: all 0.3s ease;
}

.table-wrapper .btn-link:hover {
    background: rgba(155, 241, 255, 0.1);
    color: #fff !important;
}

.table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    background: transparent;
}

.table th {
    background: rgba(255, 255, 255, 0.1);
    color: #9bf1ff;
    padding: 0.75rem;
    border: none;
    font-weight: 600;
    text-align: center;
}

.table td {
    padding: 0.75rem;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: #fff;
}

.table a {
    color: #9bf1ff;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.table a:hover {
    color: #fff;
    text-decoration: underline;
}

.table tbody tr:hover {
    background: rgba(155, 241, 255, 0.05);
    transition: background-color 0.3s ease;
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* Collapsible content styling */
.collapse {
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.show {
    padding: 0 1.5rem 1.5rem 1.5rem;
}

/* Toggle icon styling */
.toggle-icon {
    float: right;
    transition: transform 0.3s ease;
    font-weight: normal;
}

/* Loading states */
.loading-text {
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
    text-align: center;
    padding: 2rem;
}

/* Modal Styling */
.modal-content {
    background: rgba(27, 31, 34, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.125);
    border-radius: 8px;
    color: #fff;
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.125);
}

.modal-body {
    padding: 1.5rem;
}

.form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 4px;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: #9bf1ff;
    box-shadow: 0 0 0 0.2rem rgba(155, 241, 255, 0.25);
    color: #fff;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.btn-primary {
    background: linear-gradient(45deg, #9bf1ff, #7dd3fc);
    border: none;
    color: #000;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #7dd3fc, #9bf1ff);
    transform: translateY(-1px);
}

.close {
    color: #fff;
    opacity: 0.75;
}

.close:hover {
    color: #9bf1ff;
    opacity: 1;
}

/* Rankings table specific styling */
.rankings-table {
    margin-bottom: 2rem;
}

.rankings-table .table th:first-child,
.rankings-table .table td:first-child {
    width: 10%;
    text-align: center;
}

.rankings-table .table th:nth-child(2),
.rankings-table .table td:nth-child(2) {
    width: 50%;
    text-align: left;
    padding-left: 1rem;
}

.rankings-table .table th:last-child,
.rankings-table .table td:last-child {
    width: 40%;
    text-align: center;
}

/* Team Medals table specific styling */
#teamMedalsTable .table th:first-child,
#teamMedalsTable .table td:first-child {
    width: 8%;
    text-align: center;
}

#teamMedalsTable .table th:nth-child(2),
#teamMedalsTable .table td:nth-child(2) {
    width: 40%;
    text-align: left;
    padding-left: 1rem;
}

#teamMedalsTable .table th:nth-child(3),
#teamMedalsTable .table td:nth-child(3) {
    width: 13%;
    text-align: center;
}

#teamMedalsTable .table th:nth-child(4),
#teamMedalsTable .table td:nth-child(4) {
    width: 13%;
    text-align: center;
}

#teamMedalsTable .table th:nth-child(5),
#teamMedalsTable .table td:nth-child(5) {
    width: 13%;
    text-align: center;
}

#teamMedalsTable .table th:last-child,
#teamMedalsTable .table td:last-child {
    width: 13%;
    text-align: center;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    body {
        padding: 5px !important;
        font-size: 14px !important;
    }
    
    .container {
        padding: 0.75rem !important;
        margin: 5px auto !important;
        max-width: 100% !important;
    }
    
    .tournament-name {
        font-size: 1.8rem !important;
        line-height: 1.2 !important;
    }
    
    .tournament-subtitle {
        font-size: 1rem !important;
        margin-bottom: 1rem !important;
    }
    
    .nav-links {
        margin-bottom: 15px !important;
    }
    
    .nav-links a {
        display: inline-block !important;
        margin: 3px 2px !important;
        padding: 0.6rem 0.5rem !important;
        font-size: 0.8rem !important;
    }
    
    .action-buttons {
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 0.75rem !important;
        flex-wrap: nowrap !important;
        margin-bottom: 1.5rem !important;
    }
    
    .btn-custom {
        width: auto !important;
        max-width: none !important;
        justify-content: center !important;
        font-size: 0.8rem !important;
        padding: 0.5rem 0.75rem !important;
        flex: 1 !important;
        max-width: 48% !important;
    }
    
    .table-wrapper {
        margin-bottom: 1.5rem !important;
    }
    
    .table-wrapper .btn-link {
        padding: 0.75rem 1rem !important;
        font-size: 0.95rem !important;
    }
    
    .table {
        font-size: 0.85rem !important;
    }
    
    .table th,
    .table td {
        padding: 0.5rem 0.3rem !important;
        font-size: 0.85rem !important;
        word-break: break-word !important;
    }
    
    .table th {
        font-size: 0.8rem !important;
    }
    
    /* Table mobile optimizations */
    .table-responsive .table th,
    .table-responsive .table td {
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 120px !important;
    }
    
    .table-responsive .table th:first-child,
    .table-responsive .table td:first-child {
        max-width: 50px !important;
    }
    
    .table-responsive .table th:nth-child(2),
    .table-responsive .table td:nth-child(2) {
        max-width: none !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        word-break: break-word !important;
        overflow: visible !important;
        text-overflow: clip !important;
    }
    
    .collapse,
    .show {
        padding: 0 1rem 1rem 1rem !important;
    }
    
    /* Rankings table mobile optimizations */
    .rankings-table .table th:first-child,
    .rankings-table .table td:first-child {
        width: 15% !important;
    }
    
    .rankings-table .table th:nth-child(2),
    .rankings-table .table td:nth-child(2) {
        width: 60% !important;
        padding-left: 0.5rem !important;
    }
    
    .rankings-table .table th:last-child,
    .rankings-table .table td:last-child {
        width: 25% !important;
    }
    
    /* Team Medals table mobile optimizations */
    #teamMedalsTable .table th:nth-child(4),
    #teamMedalsTable .table td:nth-child(4),
    #teamMedalsTable .table th:nth-child(5),
    #teamMedalsTable .table td:nth-child(5) {
        display: none !important;
    }
    
    #teamMedalsTable .table th:first-child,
    #teamMedalsTable .table td:first-child {
        width: 15% !important;
    }
    
    #teamMedalsTable .table th:nth-child(2),
    #teamMedalsTable .table td:nth-child(2) {
        width: 50% !important;
        padding-left: 0.5rem !important;
    }
    
    #teamMedalsTable .table th:nth-child(3),
    #teamMedalsTable .table td:nth-child(3) {
        width: 17.5% !important;
    }
    
    #teamMedalsTable .table th:last-child,
    #teamMedalsTable .table td:last-child {
        width: 17.5% !important;
    }
    
    /* Additional mobile optimizations for team medals table - highest specificity */
    #teamMedalsTable .table-responsive .table th:nth-child(4),
    #teamMedalsTable .table-responsive .table td:nth-child(4),
    #teamMedalsTable .table-responsive .table th:nth-child(5),
    #teamMedalsTable .table-responsive .table td:nth-child(5),
    #teamMedalsTable .table thead th:nth-child(4),
    #teamMedalsTable .table thead td:nth-child(4),
    #teamMedalsTable .table thead th:nth-child(5),
    #teamMedalsTable .table thead td:nth-child(5),
    #teamMedalsTable .table tbody th:nth-child(4),
    #teamMedalsTable .table tbody td:nth-child(4),
    #teamMedalsTable .table tbody th:nth-child(5),
    #teamMedalsTable .table tbody td:nth-child(5) {
        display: none !important;
        visibility: hidden !important;
    }
}

@media screen and (max-width: 480px) {
    body {
        padding: 2px !important;
        font-size: 13px !important;
    }
    
    .container {
        padding: 0.5rem !important;
        margin: 2px auto !important;
    }
    
    .tournament-name {
        font-size: 1.4rem !important;
        line-height: 1.1 !important;
    }
    
    .tournament-subtitle {
        font-size: 0.9rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .nav-links {
        margin-bottom: 10px !important;
    }
    
    .nav-links a {
        display: inline-block !important;
        margin: 2px 1px !important;
        padding: 0.4rem 0.3rem !important;
        font-size: 0.75rem !important;
    }
    
    .action-buttons {
        flex-direction: column !important;
        align-items: center !important;
        gap: 0.5rem !important;
        margin-bottom: 1rem !important;
    }
    
    .btn-custom {
        width: 100% !important;
        max-width: 250px !important;
        justify-content: center !important;
        font-size: 0.8rem !important;
        padding: 0.45rem 0.6rem !important;
        flex: none !important;
    }
    
    .table-wrapper .btn-link {
        padding: 0.6rem 0.75rem !important;
        font-size: 0.9rem !important;
    }
    
    .table {
        font-size: 0.75rem !important;
    }
    
    .table th,
    .table td {
        padding: 0.4rem 0.2rem !important;
        font-size: 0.75rem !important;
    }
    
    .table th {
        font-size: 0.7rem !important;
    }
    
    .table-responsive .table th,
    .table-responsive .table td {
        max-width: 80px !important;
        font-size: 0.7rem !important;
    }
    
    .table-responsive .table th:first-child,
    .table-responsive .table td:first-child {
        max-width: 40px !important;
    }
    
    .collapse,
    .show {
        padding: 0 0.5rem 0.75rem 0.5rem !important;
    }
    
    /* Rankings table mobile optimizations */
    .rankings-table .table th:first-child,
    .rankings-table .table td:first-child {
        width: 20% !important;
    }
    
    .rankings-table .table th:nth-child(2),
    .rankings-table .table td:nth-child(2) {
        width: 55% !important;
        padding-left: 0.3rem !important;
    }
    
    .rankings-table .table th:last-child,
    .rankings-table .table td:last-child {
        width: 25% !important;
    }
    
    /* Team Medals table mobile optimizations */
    #teamMedalsTable .table th:nth-child(4),
    #teamMedalsTable .table td:nth-child(4),
    #teamMedalsTable .table th:nth-child(5),
    #teamMedalsTable .table td:nth-child(5) {
        display: none !important;
    }
    
    #teamMedalsTable .table th:first-child,
    #teamMedalsTable .table td:first-child {
        width: 15% !important;
    }
    
    #teamMedalsTable .table th:nth-child(2),
    #teamMedalsTable .table td:nth-child(2) {
        width: 50% !important;
        padding-left: 0.5rem !important;
    }
    
    #teamMedalsTable .table th:nth-child(3),
    #teamMedalsTable .table td:nth-child(3) {
        width: 17.5% !important;
    }
    
    #teamMedalsTable .table th:last-child,
    #teamMedalsTable .table td:last-child {
        width: 17.5% !important;
    }
}

@media screen and (max-width: 320px) {
    body {
        font-size: 12px !important;
        padding: 1px !important;
    }
    
    .container {
        padding: 0.25rem !important;
        margin: 1px auto !important;
    }
    
    .tournament-name {
        font-size: 1.2rem !important;
        line-height: 1.0 !important;
    }
    
    .tournament-subtitle {
        font-size: 0.8rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .nav-links a {
        font-size: 0.7rem !important;
        padding: 0.3rem 0.2rem !important;
        margin: 1px !important;
    }
    
    .action-buttons {
        gap: 0.25rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .btn-custom {
        font-size: 0.75rem !important;
        padding: 0.4rem 0.5rem !important;
    }
    
    .table-wrapper .btn-link {
        padding: 0.5rem 0.6rem !important;
        font-size: 0.85rem !important;
    }
    
    .table {
        font-size: 0.7rem !important;
    }
    
    .table th,
    .table td {
        padding: 0.3rem 0.1rem !important;
        font-size: 0.7rem !important;
    }
    
    .table th {
        font-size: 0.65rem !important;
    }
    
    .table-responsive .table th,
    .table-responsive .table td {
        max-width: 60px !important;
        font-size: 0.65rem !important;
    }
    
    .table-responsive .table th:first-child,
    .table-responsive .table td:first-child {
        max-width: 30px !important;
    }
    
    .collapse,
    .show {
        padding: 0 0.25rem 0.5rem 0.25rem !important;
    }
    
    /* Rankings table mobile optimizations */
    .rankings-table .table th:first-child,
    .rankings-table .table td:first-child {
        width: 25% !important;
    }
    
    .rankings-table .table th:nth-child(2),
    .rankings-table .table td:nth-child(2) {
        width: 50% !important;
        padding-left: 0.2rem !important;
    }
    
    .rankings-table .table th:last-child,
    .rankings-table .table td:last-child {
        width: 25% !important;
    }
    
    /* Team Medals table mobile optimizations */
    #teamMedalsTable .table th:nth-child(4),
    #teamMedalsTable .table td:nth-child(4),
    #teamMedalsTable .table th:nth-child(5),
    #teamMedalsTable .table td:nth-child(5) {
        display: none !important;
    }
    
    #teamMedalsTable .table th:first-child,
    #teamMedalsTable .table td:first-child {
        width: 15% !important;
    }
    
    #teamMedalsTable .table th:nth-child(2),
    #teamMedalsTable .table td:nth-child(2) {
        width: 50% !important;
        padding-left: 0.5rem !important;
    }
    
    #teamMedalsTable .table th:nth-child(3),
    #teamMedalsTable .table td:nth-child(3) {
        width: 17.5% !important;
    }
    
    #teamMedalsTable .table th:last-child,
    #teamMedalsTable .table td:last-child {
        width: 17.5% !important;
    }
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 1.5rem;
    }
}

/* Ranking Items */
.ranking-item {
    text-align: center;
    cursor: pointer;
    transition: color 0.3s ease;
}

.ranking-item:hover {
    background-color: #f8f9fa;
    color: #555;
}

/* Force hide silver and bronze columns in team medals table on mobile - highest priority */
@media screen and (max-width: 768px) {
    #teamMedalsTable .table th:nth-child(4),
    #teamMedalsTable .table td:nth-child(4),
    #teamMedalsTable .table th:nth-child(5),
    #teamMedalsTable .table td:nth-child(5),
    #teamMedalsTable .table-responsive th:nth-child(4),
    #teamMedalsTable .table-responsive td:nth-child(4),
    #teamMedalsTable .table-responsive th:nth-child(5),
    #teamMedalsTable .table-responsive td:nth-child(5) {
        display: none !important;
        visibility: hidden !important;
        width: 0 !important;
        padding: 0 !important;
        border: 0 !important;
    }
}

@media screen and (max-width: 480px) {
    #teamMedalsTable .table th:nth-child(4),
    #teamMedalsTable .table td:nth-child(4),
    #teamMedalsTable .table th:nth-child(5),
    #teamMedalsTable .table td:nth-child(5) {
        display: none !important;
        visibility: hidden !important;
        width: 0 !important;
        padding: 0 !important;
        border: 0 !important;
    }
}

@media screen and (max-width: 320px) {
    #teamMedalsTable .table th:nth-child(4),
    #teamMedalsTable .table td:nth-child(4),
    #teamMedalsTable .table th:nth-child(5),
    #teamMedalsTable .table td:nth-child(5) {
        display: none !important;
        visibility: hidden !important;
        width: 0 !important;
        padding: 0 !important;
        border: 0 !important;
    }
}

/* Medal Winners Grid Mobile Responsiveness */
@media screen and (max-width: 768px) {
    .medal-winners-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
        gap: 8px !important;
        font-size: 0.8rem !important;
    }
    
    .medal-winners-grid > div {
        padding: 6px !important;
    }
    
    .medal-winners-grid a {
        font-size: 0.9rem !important;
    }
    
    .medal-winners-grid .place-gold,
    .medal-winners-grid .place-silver,
    .medal-winners-grid .place-bronze {
        font-size: 0.75rem !important;
    }
}

@media screen and (max-width: 480px) {
    .medal-winners-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)) !important;
        gap: 6px !important;
        font-size: 0.75rem !important;
    }
    
    .medal-winners-grid > div {
        padding: 5px !important;
    }
    
    .medal-winners-grid a {
        font-size: 0.85rem !important;
    }
}

@media screen and (max-width: 320px) {
    .medal-winners-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)) !important;
        gap: 4px !important;
        font-size: 0.7rem !important;
    }
    
    .medal-winners-grid > div {
        padding: 4px !important;
    }
    
    .medal-winners-grid a {
        font-size: 0.8rem !important;
    }
}

/* Expand Button Font Size Responsiveness - Make buttons smaller than table text */
@media screen and (max-width: 768px) {
    /* Reduce expand button font size to be smaller than 0.85rem table text */
    button[id*="expand-"][id*="-btn"] {
        font-size: 0.75rem !important;
    }
}

@media screen and (max-width: 480px) {
    /* Reduce expand button font size to be smaller than 0.75rem table text */
    button[id*="expand-"][id*="-btn"] {
        font-size: 0.65rem !important;
    }
}

@media screen and (max-width: 320px) {
    /* Reduce expand button font size to be smaller than 0.7rem table text */
    button[id*="expand-"][id*="-btn"] {
        font-size: 0.6rem !important;
    }
}

/* Tournament Results Table Mobile Responsiveness - Hide Team and Category/Division columns */
@media screen and (max-width: 768px) {
    /* Hide Team column (2nd column) and Category/Division column (3rd column) */
    #tournamentResultsTable .table th:nth-child(2),
    #tournamentResultsTable .table td:nth-child(2),
    #tournamentResultsTable .table th:nth-child(3),
    #tournamentResultsTable .table td:nth-child(3),
    #tournamentResultsTable .table-responsive th:nth-child(2),
    #tournamentResultsTable .table-responsive td:nth-child(2),
    #tournamentResultsTable .table-responsive th:nth-child(3),
    #tournamentResultsTable .table-responsive td:nth-child(3) {
        display: none !important;
        visibility: hidden !important;
        width: 0 !important;
        padding: 0 !important;
        border: 0 !important;
    }
    
    /* Set Fighter column to 60% width */
    #tournamentResultsTable .table th:nth-child(1),
    #tournamentResultsTable .table td:nth-child(1),
    #tournamentResultsTable .table-responsive th:nth-child(1),
    #tournamentResultsTable .table-responsive td:nth-child(1) {
        width: 60% !important;
        text-align: left !important;
        padding-left: 0.5rem !important;
    }
    
    /* Set Place column to 20% width */
    #tournamentResultsTable .table th:nth-child(4),
    #tournamentResultsTable .table td:nth-child(4),
    #tournamentResultsTable .table-responsive th:nth-child(4),
    #tournamentResultsTable .table-responsive td:nth-child(4) {
        width: 20% !important;
        text-align: center !important;
    }
    
    /* Set ELO column to 20% width */
    #tournamentResultsTable .table th:nth-child(5),
    #tournamentResultsTable .table td:nth-child(5),
    #tournamentResultsTable .table-responsive th:nth-child(5),
    #tournamentResultsTable .table-responsive td:nth-child(5) {
        width: 20% !important;
        text-align: center !important;
    }
}

@media screen and (max-width: 480px) {
    /* Hide Team column (2nd column) and Category/Division column (3rd column) */
    #tournamentResultsTable .table th:nth-child(2),
    #tournamentResultsTable .table td:nth-child(2),
    #tournamentResultsTable .table th:nth-child(3),
    #tournamentResultsTable .table td:nth-child(3) {
        display: none !important;
        visibility: hidden !important;
        width: 0 !important;
        padding: 0 !important;
        border: 0 !important;
    }
    
    /* Adjust Fighter column for smaller screens */
    #tournamentResultsTable .table th:nth-child(1),
    #tournamentResultsTable .table td:nth-child(1) {
        width: 60% !important;
        text-align: left !important;
        padding-left: 0.3rem !important;
    }
    
    /* Adjust Place column for smaller screens */
    #tournamentResultsTable .table th:nth-child(4),
    #tournamentResultsTable .table td:nth-child(4) {
        width: 20% !important;
        text-align: center !important;
    }
    
    /* Adjust ELO column for smaller screens */
    #tournamentResultsTable .table th:nth-child(5),
    #tournamentResultsTable .table td:nth-child(5) {
        width: 20% !important;
        text-align: center !important;
    }
}

@media screen and (max-width: 320px) {
    /* Hide Team column (2nd column) and Category/Division column (3rd column) */
    #tournamentResultsTable .table th:nth-child(2),
    #tournamentResultsTable .table td:nth-child(2),
    #tournamentResultsTable .table th:nth-child(3),
    #tournamentResultsTable .table td:nth-child(3) {
        display: none !important;
        visibility: hidden !important;
        width: 0 !important;
        padding: 0 !important;
        border: 0 !important;
    }
    
    /* Adjust Fighter column for very small screens */
    #tournamentResultsTable .table th:nth-child(1),
    #tournamentResultsTable .table td:nth-child(1) {
        width: 60% !important;
        text-align: left !important;
        padding-left: 0.2rem !important;
    }
    
    /* Adjust Place column for very small screens */
    #tournamentResultsTable .table th:nth-child(4),
    #tournamentResultsTable .table td:nth-child(4) {
        width: 20% !important;
        text-align: center !important;
    }
    
    /* Adjust ELO column for very small screens */
    #tournamentResultsTable .table th:nth-child(5),
    #tournamentResultsTable .table td:nth-child(5) {
        width: 20% !important;
        text-align: center !important;
    }
}
