                /* Mobile Styles for Player Actions and List */
@media (max-width: 992px) {
    .mt-3 h4 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .d-flex.gap-2 {
        flex-wrap: wrap;
        gap: 8px !important;
    }
    
    .btn-sm {
        padding: 6px 10px;
        font-size: 0.75rem;
    }
    
    .btn-sm i {
        margin-right: 5px;
        font-size: 0.8rem;
    }
    
    #playersTable {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    #playersTable th,
    #playersTable td {
        min-width: 100px;
        padding: 8px 10px;
        font-size: 0.85rem;
    }
    
    #playersTable th {
        font-size: 0.8rem;
    }
    
    #start-ai, #stop-ai {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .d-flex.gap-2 {
        justify-content: space-between;
    }
    
    .btn-sm {
        flex: 1 0 calc(50% - 4px);
        margin-bottom: 8px;
        text-align: center;
    }
    
    #start-ai, #stop-ai {
        flex: 1 0 100%;
        margin-bottom: 8px;
    }
    
    #playersTable th:nth-child(5),
    #playersTable td:nth-child(5),
    #playersTable th:nth-child(6),
    #playersTable td:nth-child(6) {
        display: none;
    }
}

@media (max-width: 576px) {
    .mt-3 h4 {
        font-size: 1.1rem;
    }
    
    .btn-sm {
        padding: 5px 8px;
        font-size: 0.7rem;
    }
    
    #playersTable th:nth-child(4),
    #playersTable td:nth-child(4) {
        display: none;
    }
    
    #playersTable th,
    #playersTable td {
        padding: 6px 8px;
        font-size: 0.8rem;
    }
    
    #playersTable th:first-child,
    #playersTable td:first-child {
        position: sticky;
        left: 0;
        background-color: white;
        z-index: 1;
    }
}

/* Special styling for very small devices */
@media (max-width: 400px) {
    .btn-sm {
        flex: 1 0 100%;
    }
    
    #playersTable th:nth-child(3),
    #playersTable td:nth-child(3) {
        display: none;
    }
    
    #playersTable td:last-child {
        position: sticky;
        right: 0;
        background-color: white;
    }
}